|
|
!(function(){var ac=Math.pow;var Tc=(gn,Kt,ie)=>new Promise((oe,ke)=>{var Ce=Ee=>{try{ye(ie.next(Ee))}catch(he){ke(he)}},Ye=Ee=>{try{ye(ie.throw(Ee))}catch(he){ke(he)}},ye=Ee=>Ee.done?oe(Ee.value):Promise.resolve(Ee.value).then(Ce,Ye);ye((ie=ie.apply(gn,Kt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[2338],{89489:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},59477:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},40001:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},49198:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},84105:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},18785:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},73331:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},15277:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},52671:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},8657:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},56082:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},61481:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},33853:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},15075:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},62772:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},43531:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},61485:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},38819:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},47472:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},87395:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},32050:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(54476),ke=ie(59301),Ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},Ye=Ce,ye=ie(7657),Ee=function(Te,qe){return ke.createElement(ye.Z,(0,oe.Z)({},Te,{ref:qe,icon:Ye}))},he=ke.forwardRef(Ee),xe=he},32012:function(){"use strict"},55651:function(){"use strict"},76769:function(gn,Kt){"use strict";Kt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},93670:function(gn,Kt){"use strict";Kt.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"}},8292:function(gn,Kt,ie){"use strict";var oe=ie(59301),ke=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,Ee=(we,Te,qe)=>Te in we?ke(we,Te,{enumerable:!0,configurable:!0,writable:!0,value:qe}):we[Te]=qe,he=(we,Te)=>{for(var qe in Te||(Te={}))Ye.call(Te,qe)&&Ee(we,qe,Te[qe]);if(Ce)for(var qe of Ce(Te))ye.call(Te,qe)&&Ee(we,qe,Te[qe]);return we};const xe=we=>React.createElement("svg",he({width:99,height:80,xmlns:"http://www.w3.org/2000/svg"},we),React.createElement("title",null,"\u6279\u6CE8\u6587\u4EF6"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M62.7 79.6H0V8.5h39.3l23.4 18.4z",fill:"#F0A221"}),React.createElement("path",{d:"M71.4 71.1H8.7V0h44.4l18.3 18z",fill:"#F1C84C"}),React.createElement("path",{d:"M53.3 7.3v11.5h11.5z",fill:"#FFF"}),React.createElement("path",{d:"M34.9 13.9h-17v4.6h17zM45.9 27h-28v4.6h28zM45.9 40.6h-28v4.6h28zM45.9 53.7h-28v4.7h28z",fill:"#F0A221"}),React.createElement("path",{d:"M65 32H50v4.6h15zM65 45.6H50v4.6h15zM65 58.7H50v4.7h15z",fill:"#FFF"}),React.createElement("path",{d:"M60 56.5c.7 4.3-1 8.3-1 8.3s4-1.7 8.3-1c0 0 1.4-4.5 5.2-10L70 51.2c-5.5 3.9-10 5.3-10 5.3Z",fill:"#000"}),React.createElement("path",{d:"m64 59.2 7.1-7.1.5.5-7.1 7.1z",fill:"#F9A54C"}),React.createElement("path",{d:"M62.8 59.8c0 .7.5 1.2 1.2 1.2s1.2-.5 1.2-1.2-.5-1.2-1.2-1.2-1.2.6-1.2 1.2Z",fill:"#FFF"}),React.createElement("path",{d:"M71.6 55.8c4-2.6 6.7-4.5 12.6-10.5 10.2-10.2 16-18.3 14.3-20-1.7-1.7-9.5 3.8-20 14.3-6 6-7.6 8.6-10.5 12.6l3.6 3.6Z",fill:"#324A5E"}),React.createElement("path",{d:"m78 39.8 5.7 5.7.5-.5 1.4-1.4-5.6-5.7-1.4 1.4-.6.5Zm10.5-5.7c-.5.2-1.2.7-1.7 1.4-1.2 1.2-1.9 2.4-1.7 2.9.5.5 1.7-.5 2.9-1.7.7-.7 1.2-1.2 1.4-1.7l6.2-6.2 1.4 1.4c1.7-2.6 2.1-4.5 1.4-5-.5-.5-2.6-.2-5 1.4l1.6 1.6-6.5 5.9Z",fill:"#FFC65B"}),React.createElement("path",{d:"m49.6 36.4-3.8-3.9H18v-1h28.2l4.2 4.1zM49.6 50.4l-3.8-3.9H18v-1h28.2l4.2 4.1zM49.6 64.4l-3.8-3.9H18v-1h28.2l4.2 4.1z",fill:"#FFF"})));Kt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTkiIGhlaWdodD0iODAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNjIuNyA3OS42SDBWOC41aDM5LjNsMjMuNCAxOC40eiIgZmlsbD0iI0YwQTIyMSIvPjxwYXRoIGQ9Ik03MS40IDcxLjFIOC43VjBoNDQuNGwxOC4zIDE4eiIgZmlsbD0iI0YxQzg0QyIvPjxwYXRoIGQ9Ik01My4zIDcuM3YxMS41aDExLjV6IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0iTTM0LjkgMTMuOWgtMTd2NC42aDE3ek00NS45IDI3aC0yOHY0LjZoMjh6TTQ1LjkgNDAuNmgtMjh2NC42aDI4ek00NS45IDUzLjdoLTI4djQuN2gyOHoiIGZpbGw9IiNGMEEyMjEiLz48cGF0aCBkPSJNNjUgMzJINTB2NC42aDE1ek02NSA0NS42SDUwdjQuNmgxNXpNNjUgNTguN0g1MHY0LjdoMTV6IiBmaWxsPSIjRkZGIi8+PGc+PHBhdGggZD0iTTYwIDU2LjVjLjcgNC4zLTEgOC4zLTEgOC4zczQtMS43IDguMy0xYzAgMCAxLjQtNC41IDUuMi0xMEw3MCA1MS4yYy01LjUgMy45LTEwIDUuMy0xMCA1LjNaIiBmaWxsPSIjMDAwIi8+PHBhdGggZD0ibTY0IDU5LjIgNy4xLTcuMS41LjUtNy4xIDcuMXoiIGZpbGw9IiNGOUE1NEMiLz48cGF0aCBkPSJNNjIuOCA1OS44YzAgLjcuNSAxLjIgMS4yIDEuMnMxLjItLjUgMS4yLTEuMi0uNS0xLjItMS4yLTEuMi0xLjIuNi0xLjIgMS4yWiIgZmlsbD0iI0ZGRiIvPjxwYXRoIGQ9Ik03MS42IDU1LjhjNC0yLjYgNi43LTQuNSAxMi42LTEwLjUgMTAuMi0xMC4yIDE2LTE4LjMgMTQuMy0yMC0xLjctMS43LTkuNSAzLjgtMjAgMTQuMy02IDYtNy42IDguNi0xMC41IDEyLjZsMy42IDMuNloiIGZpbGw9IiMzMjRBNUUiLz48cGF0aCBkPSJtNzggMzkuOCA1LjcgNS43LjUtLjUgMS40LTEuNC01LjYtNS43LTEuNCAxLjQtLjYuNVptMTAuNS01LjdjLS41LjItMS4yLjctMS43IDEuNC0xLjIgMS4yLTEuOSAyLjQtMS43IDIuOS41LjUgMS43LS41IDIuOS0xLjcuNy0uNyAxLjItMS4yIDEuNC0xLjdsNi4yLTYuMiAxLjQgMS40YzEuNy0yLjYgMi4xLTQuNSAxLjQtNS0uNS0uNS0yLjYtLjItNSAxLjRsMS42IDEuNi02LjUgNS45WiIgZmlsbD0iI0ZGQzY1QiIvPjwvZz48ZyBmaWxsPSIjRkZGIj48cGF0aCBkPSJtNDkuNiAzNi40LTMuOC0zLjlIMTh2LTFoMjguMmw0LjIgNC4xeiIvPjwvZz48ZyBmaWxsPSIjRkZGIj48cGF0aCBkPSJtNDkuNiA1MC40LTMuOC0zLjlIMTh2LTFoMjguMmw0LjIgNC4xeiIvPjwvZz48ZyBmaWxsPSIjRkZGIj48cGF0aCBkPSJtNDkuNiA2NC40LTMuOC0zLjlIMTh2LTFoMjguMmw0LjIgNC4xeiIvPjwvZz48L2c+PC9zdmc+"},91922:function(gn,Kt,ie){"use strict";var oe=ie(59301),ke=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,Ee=(we,Te,qe)=>Te in we?ke(we,Te,{enumerable:!0,configurable:!0,writable:!0,value:qe}):we[Te]=qe,he=(we,Te)=>{for(var qe in Te||(Te={}))Ye.call(Te,qe)&&Ee(we,qe,Te[qe]);if(Ce)for(var qe of Ce(Te))ye.call(Te,qe)&&Ee(we,qe,Te[qe]);return we};const xe=we=>React.createElement("svg",he({width:72,height:80,xmlns:"http://www.w3.org/2000/svg"},we),React.createElement("title",null,"\u6587\u4EF6 "),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{fill:"#F0A221",d:"M62.698 79.631H.04V8.534h39.22l23.438 18.332z"}),React.createElement("path",{d:"M71.387 71.1H8.73V.005h44.326l18.337 18.03v53.067h-.005ZM53.331 7.336v11.48h11.48L53.33 7.335Zm-8.367 6.536H17.938v4.623h27.026V13.87ZM62.26 27.024H17.857v4.623H62.26v-4.623Zm0 13.551H17.857v4.623H62.26v-4.623Zm0 13.158H17.857v4.623H62.26v-4.623Z",fill:"#F1C84C"})));Kt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iODAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsPSIjRjBBMjIxIiBkPSJNNjIuNjk4IDc5LjYzMUguMDRWOC41MzRoMzkuMjJsMjMuNDM4IDE4LjMzMnoiLz48cGF0aCBkPSJNNzEuMzg3IDcxLjFIOC43M1YuMDA1aDQ0LjMyNmwxOC4zMzcgMTguMDN2NTMuMDY3aC0uMDA1Wk01My4zMzEgNy4zMzZ2MTEuNDhoMTEuNDhMNTMuMzMgNy4zMzVabS04LjM2NyA2LjUzNkgxNy45Mzh2NC42MjNoMjcuMDI2VjEzLjg3Wk02Mi4yNiAyNy4wMjRIMTcuODU3djQuNjIzSDYyLjI2di00LjYyM1ptMCAxMy41NTFIMTcuODU3djQuNjIzSDYyLjI2di00LjYyM1ptMCAxMy4xNThIMTcuODU3djQuNjIzSDYyLjI2di00LjYyM1oiIGZpbGw9IiNGMUM4NEMiLz48L2c+PC9zdmc+"},95295: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 gn={},Kt="5.0",ie={},oe=null,ke=!1,Ce=!1,Ye=null,ye=!1,Ee=null,he=null,xe=0;xe<arguments.length;xe++){var we=arguments[xe];if(we!==null)switch(typeof we){case"number":Kt=we.toFixed(1);break;case"string":we.match(new RegExp("^[0-9]\\.[0-9]+$"))?Kt=we:Ye=we;break;case"object":typeof we.is3D!="undefined"?oe=we:ie=we;break;case"boolean":ke=we,Ce=!0;break}}oe===null&&(oe={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ie.material_id!==void 0&&!Ce&&(ke=!0)),Ye!==null&&ie.id===void 0&&(ie.id=Ye);var Te="",qe="",Ie=!1,Re=null,lt=null,Ue=null,We=!1,ct=null,tt=null,At=null,ut=null,ot=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var je=function(Qe){return parseFloat(Qe)>4?parseFloat(Qe):5};gn.setHTML5Codebase=function(Qe,et){he=Qe,at(Qe,et)},gn.setJavaCodebase=gn.setJavaCodebaseVersion=gn.isCompiledInstalled=gn.setPreCompiledScriptPath=gn.setPreCompiledResourcePath=function(){},gn.setHTML5CodebaseVersion=function(Qe,et){var Lt=parseFloat(Qe);if(Lt!==NaN&&Lt<5){console.log("The GeoGebra HTML5 codebase version "+Lt+" is deprecated. Using version latest instead.");return}Ee=Qe,ge(Qe,et)},gn.getHTML5CodebaseVersion=function(){return lt},gn.getParameters=function(){return ie},gn.setFontsCSSURL=function(Qe){ut=Qe},gn.setGiacJSURL=function(Qe){},gn.setJNLPFile=function(Qe){Te=Qe},gn.setJNLPBaseDir=function(Qe){},gn.inject=function(){function Qe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var et="auto",Lt=ie.id,dn,_t=!1,tn=0;tn<arguments.length;tn++){var en=arguments[tn];typeof en=="string"?(en=en.toLowerCase(),en.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?et=en:Lt=arguments[tn]):typeof en=="boolean"?_t=en:en instanceof HTMLElement&&(dn=en)}Jt();function Jt(){if(!ye){setTimeout(Jt,200);return}et=Bt(et);var Vt=dn||document.getElementById(Lt);if(!Vt){console.log("possibly bug on ajax loading? ");return}if(gn.removeExistingApplet(Vt,!1),ie.width===void 0&&Vt.clientWidth&&(ie.width=Vt.clientWidth),ie.height===void 0&&Vt.clientHeight&&(ie.height=Vt.clientHeight),!(ie.width&&ie.height)&&et==="html5"&&(delete ie.width,delete ie.height),Re=et,et==="screenshot")He(Vt,ie);else{var be=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?be=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(be=(!Se()||Qe())&&Fe()),be?(Re="screenshot",mt(Vt,ie,_t,et)):kt(Vt,ie,_t)}}};function Se(){try{return window.self!==window.top}catch(Qe){return!0}}function Fe(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}gn.getViews=function(){return oe},gn.isJavaInstalled=function(){return!1};var Ze=function(Qe){var et=function(tn){var en=JSON.parse(tn),Jt=function(ce){return ce.type=="G"||ce.type=="E"},Vt=en.elements?en.elements.filter(Jt)[0]:en;if(!Vt||!Vt.url){Lt();return}ie.fileName=Vt.url,xt(Vt.settings||{}),oe.is3D=!0;var be="https://www.geogebra.org/images/";gn.setPreviewImage(ct||Vt.previewUrl,be+"GeoGebra_loading.png",be+"applet_play.png"),Qe()},Lt=function(){ie.onError&&ie.onError(),Ct("Error: Fetching material (id "+ie.material_id+") failed.",ie)},dn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",_t="/materials/"+ie.material_id+"?scope=basic";Je("https://"+dn+"/api/proxy.php?path="+encodeURIComponent(_t),et,Lt)};function xt(Qe){var et=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Lt){Qe[Lt]=!!Qe[Lt]}),et.forEach(function(Lt){ie[Lt]===void 0&&Qe[Lt]!==void 0&&(ie[Lt]=Qe[Lt])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function Je(Qe,et,Lt){var dn=new XMLHttpRequest;dn.open("GET",Qe),dn.onload=function(){et(dn.responseText)},dn.onerror=Lt,dn.send()}gn.isHTML5Installed=function(){return!0},gn.getLoadedAppletType=function(){return Re},gn.setPreviewImage=function(Qe,et,Lt){ct=Qe,tt=et,At=Lt},gn.removeExistingApplet=function(Qe,et){var Lt;typeof Qe=="string"&&(Qe=document.getElementById(Qe)),Re=null;var dn=null;for(Lt=0;Lt<Qe.childNodes.length;Lt++){var _t=Qe.childNodes[Lt],tn=_t.className;tn==="applet_screenshot"?et?(_t.style.display="block",Re="screenshot"):_t.style.display="none":tn!=="applet_scaler prerender"&&(Qe.removeChild(_t),dn=tn&&tn.indexOf("appletParameters")!=-1?_t.id:null,Lt--)}var en=ie.id!==void 0?ie.id:dn,Jt=window[en];Jt&&typeof Jt.getBase64=="function"&&(Jt.remove(),window[en]=null)},gn.refreshHitPoints=function(){if(je(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Qe=gn.getAppletObject();return Qe&&typeof Qe.recalculateEnvironments=="function"?(Qe.recalculateEnvironments(),!0):!1},gn.startAnimation=function(){var Qe=gn.getAppletObject();return Qe&&typeof Qe.startAnimation=="function"?(Qe.startAnimation(),!0):!1},gn.stopAnimation=function(){var Qe=gn.getAppletObject();return Qe&&typeof Qe.stopAnimation=="function"?(Qe.stopAnimation(),!0):!1},gn.getAppletObject=function(){var Qe=ie.id!==void 0?ie.id:"ggbApplet";return window[Qe]},gn.resize=function(){};var dt=function(Qe,et,Lt){var dn=document.createElement("param");dn.setAttribute("name",et),dn.setAttribute("value",Lt),Qe.appendChild(dn)},Be=function(Qe){return Qe&&Qe!=="false"},kt=function(Qe,et,Lt){je(lt)<=4.2&&(Lt=!0);var dn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==lt||ggbHTML5LoadedCodebaseIsWebSimple&&!We)&&(dn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var _t=document.createElement("div");_t.classList.add("appletParameters","notranslate");var tn=et.width,en=et.height;if(et.disableAutoScale=et.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():et.disableAutoScale,et.width!==void 0)if(je(lt)<=4.4)Be(et.showToolBar)&&(et.height-=7),Be(et.showAlgebraInput)&&(et.height-=37),et.width<605&&Be(et.showToolBar)&&(et.width=605,tn=605);else{var Jt=100;(Be(et.showToolBar)||Be(et.showMenuBar))&&(et.hasOwnProperty("customToolBar")&&(et.customToolbar=et.customToolBar),Jt=Be(et.showMenuBar)?245:155),tn<Jt&&(et.width=Jt,tn=Jt)}_t.style.border="none",_t.style.display="inline-block";for(var Vt in et)et.hasOwnProperty(Vt)&&Vt!=="appletOnLoad"&&_t.setAttribute("data-param-"+Vt,et[Vt]);ut&&_t.setAttribute("data-param-fontscssurl",ut),gn.resize=function(){GGBAppletUtils.responsiveResize(Qe,et)},window.addEventListener("resize",function(Xe){gn.resize()});var be=typeof et.appletOnLoad=="function"?et.appletOnLoad:function(){};if(!Lt&&et.width!==void 0){et.hasOwnProperty("showSplash")||_t.setAttribute("data-param-showSplash","false");var ce=Qe.querySelector(".applet_scaler.prerender"),ue=ce!==null;if(ue)var de=ce.querySelector(".ggb_preview");else{var de=zt(tn,en,et.borderColor,!1);ce=document.createElement("div"),ce.className="applet_scaler",ce.style.position="relative",ce.style.display="block",ce.style.width=tn+"px",ce.style.height=en+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ce,"66%"),je(lt)>=5?(et.appletOnLoad=function(Xe){var wt=Qe.querySelector(".ggb_preview");wt&&wt.parentNode.removeChild(wt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ce),window.GGBT_wsf_view&&$(window).trigger("resize"),be(Xe)},ue||ce.appendChild(de)):_t.appendChild(de),ce.appendChild(_t),ue||Qe.appendChild(ce),setTimeout(function(){gn.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(_t),Qe.appendChild(pe),et.appletOnLoad=function(Xe){gn.resize(),be(Xe)}}function se(Xe,wt){wt&&typeof wt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Xe,wt.appletOnLoad):renderGGBElement(Xe),Ct("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",wt)}function Le(Xe,wt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Xe,params:wt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Xt){se(Xt.article,Xt.params)}),html5AppletsToProcess=null)},je(lt)<5&&(Xe.className+=" geogebraweb")):se(Xe,wt)}if(dn){scriptLoadStarted=!0;for(var ht=0;ht<_t.childNodes.length;ht++){var _e=_t.childNodes[ht].tagName;_e==="TABLE"&&(_t.removeChild(_t.childNodes[ht]),ht--)}if(ggbHTML5LoadedScript!==null){var Ne=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ne!=null&&Ne.parentNode.removeChild(Ne)}var St=document.createElement("script"),gt=function(){Le(_t,et)};St.src=qe+Ue,ggbHTML5LoadedCodebaseIsWebSimple=We,ggbHTML5LoadedCodebaseVersion=lt,ggbHTML5LoadedScript=St.src,Ct("GeoGebra HTML5 codebase loaded: '"+qe+"'.",et),!he&&(!Ee||Ee=="5.0")?(We?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),gt()):qe.requirejs?__webpack_require__.e(3858).then(function(){var Xe=[__webpack_require__(43858)];gt.apply(null,Xe)}.bind(this)).catch(__webpack_require__.oe):(St.onload=gt,Qe.appendChild(St))}else Le(_t,et);et.height=en,et.width=tn},He=function(Qe,et,Lt){var dn=zt(et.width,et.height,et.borderColor,Lt),_t=document.createElement("div");_t.style.position="relative",_t.style.display="block",_t.style.width=et.width+"px",_t.style.height=et.height+"px",_t.className="applet_screenshot applet_scaler"+(Lt?" applet_screenshot_play":""),_t.appendChild(dn);var tn=GGBAppletUtils.getScale(et,Qe,Lt);Lt?(Qe.appendChild(Et()),window.GGBT_wsf_view||(Qe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(_t,"66%"),Qe.appendChild(_t),tn!==1&&!isNaN(tn)&&(GGBAppletUtils.scaleElement(_t,tn),_t.style.width=et.width+"px",_t.style.height=et.height+"px",_t.parentNode.style.width=et.width*tn+"px",_t.parentNode.style.height=et.height*tn+"px"),gn.resize=function(){Tt(Qe,dn,_t,Lt)},window.addEventListener("resize",function(en){gn.resize()}),gn.resize()};function Tt(Qe,et,Lt,dn){if(Qe.contains(et)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Qe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Qe)}var _t=GGBAppletUtils.getScale(ie,Qe,dn);Lt.parentNode!==null&&(!isNaN(_t)&&_t!==1?(GGBAppletUtils.scaleElement(Lt,_t),Lt.parentNode.style.width=ie.width*_t+"px",Lt.parentNode.style.height=ie.height*_t+"px"):(GGBAppletUtils.scaleElement(Lt,1),Lt.parentNode.style.width=ie.width+"px",Lt.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Qe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}gn.onExitFullscreen=function(Qe,et){et.appendChild(Qe)};var mt=function(Qe,et,Lt,dn){He(Qe,et,!0);for(var _t=function(){var Jt=[];for(en=0;en<Qe.childNodes.length;en++)Jt.push(Qe.childNodes[en]);if(window.GGBT_wsf_view){var Vt=window.GGBT_wsf_view.renderFullScreen(Qe,et.id),be=document.getElementById("fullscreencontainer"),ce=jQuery(Qe).find(".fullscreencontent");ce.length>0?(Vt.remove(),ce.attr("id","fullscreencontent").show(),jQuery(be).append(ce),window.dispatchEvent(new Event("resize"))):kt(Vt,et,!1),window.GGBT_wsf_view.launchFullScreen(be)}else Re=dn,kt(Qe,et,!1);if(!window.GGBT_wsf_view)for(en=0;en<Jt.length;en++)Qe.removeChild(Jt[en])},tn=Qe.getElementsByClassName("ggb_preview_play"),en=0;en<tn.length;en++)tn[en].addEventListener("click",_t,!1),tn[en].addEventListener("ontouchstart",_t,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Qe),Fe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Et=function(){var Qe=document.createElement("div");if(Qe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var et='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Lt=document.createElement("style");Lt.styleSheet?Lt.styleSheet.cssText=et:Lt.appendChild(document.createTextNode(et)),document.getElementsByTagName("head")[0].appendChild(Lt)}return Qe},zt=function(Qe,et,Lt,dn){var _t=document.createElement("div");_t.className="ggb_preview",_t.style.position="absolute",_t.style.zIndex="90",_t.style.width=Qe-2+"px",_t.style.height=et-2+"px",_t.style.top="0px",_t.style.left="0px",_t.style.overflow="hidden",_t.style.backgroundColor="white";var tn="lightgrey";Lt!==void 0&&(Lt==="none"?tn="transparent":tn=Lt),_t.style.border="1px solid "+tn;var en=document.createElement("img");if(en.style.position="relative",en.style.zIndex="1000",en.style.top="-1px",en.style.left="-1px",ct!==null&&en.setAttribute("src",ct),en.style.opacity=.7,tt!==null){var Jt,Vt,be;if(!dn){Jt=document.createElement("img"),Jt.style.position="absolute",Jt.style.zIndex="1001",Jt.style.opacity=1,en.style.opacity=.3,Vt=360,Vt>Qe/4*3&&(Vt=Qe/4*3),be=Vt/5.8,Jt.setAttribute("src",tt),Jt.setAttribute("width",Vt),Jt.setAttribute("height",be);var ce=(Qe-Vt)/2,ue=(et-be)/2;Jt.style.left=ce+"px",Jt.style.top=ue+"px",_t.appendChild(Jt)}}return _t.appendChild(en),_t},Bt=function(Qe){return Qe=Qe.toLowerCase(),Qe==="html5"||Qe==="screenshot"?Qe:"html5"},De=["web","webSimple","web3d","tablet","tablet3d","phone"],ge=function(Qe,et){if(lt=Qe,et){at(lt,!0);return}var Lt=!ke;if(Lt){var dn=je(lt);!isNaN(dn)&&dn<4.4&&(Lt=!1)}var _t,tn;window.location.protocol.substr(0,4)==="http"?_t=window.location.protocol:_t="http:";var en=lt.indexOf("//");en>0?tn=lt:en===0?tn=_t+lt:tn="https://www.geogebra.org/apps/5.2.814.0/";for(var Jt in De)if(lt.slice(De[Jt].length*-1)===De[Jt]||lt.slice((De[Jt].length+1)*-1)===De[Jt]+"/"){at(tn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Lt&&!oe.is3D&&!oe.AV&&!oe.SV&&!oe.CV&&!oe.EV2&&!oe.CP&&!oe.PC&&!oe.DA&&!oe.FI&&!oe.PV&&!Be(ie.showToolBar)&&!Be(ie.showMenuBar)&&!Be(ie.showAlgebraInput)&&!Be(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?tn+="webSimple/":tn+="web3d/",at(tn,!1)},at=function(Qe,et){if(Qe.requirejs){qe=Qe;return}Qe.slice(-1)!=="/"&&(Qe+="/"),qe=Qe,et===null&&(et=Qe.indexOf("http")===-1),Ie=et,Ue="web.nocache.js",We=!1;var Lt=qe.split("/");Lt.length>1&&(!et&&Lt[Lt.length-2]==="webSimple"?(Ue="webSimple.nocache.js",We=!0):De.indexOf(Lt[Lt.length-2])>=0&&(Ue=Lt[Lt.length-2]+".nocache.js")),Lt=Qe.split("/"),lt=Lt[Lt.length-3],lt.substr(0,4)==="test"?lt=lt.substr(4,1)+"."+lt.substr(5,1):(lt.substr(0,3)==="war"||lt.substr(0,4)==="beta")&&(lt="5.0");var dn=parseFloat(lt);dn!==NaN&&dn<5&&Qe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+dn+" is deprecated. Using version latest instead."),ge("5.0",et))},Ct=function(Qe,et){window.console&&window.console.log&&(!et||typeof et.showLogging=="undefined"||et.showLogging&&et.showLogging!=="false")&&console.log(Qe)};ie.material_id!==void 0?Ze(It):It();function It(){var Qe=Kt;Ee!==null?Qe=Ee:parseFloat(Qe)<5&&(Qe="5.0"),ge(Qe,!1),he!==null&&at(he,Ie),ye=!0}return gn},GGBAppletUtils=function(){"use strict";function gn(){return window.GGBT_wsf_edit!==void 0}function Kt(ye,Ee){Ee!=1?(ye.style.transformOrigin="0% 0% 0px",ye.style.webkitTransformOrigin="0% 0% 0px",ye.style.transform="scale("+Ee+","+Ee+")",ye.style.webkitTransform="scale("+Ee+","+Ee+")",ye.style.maxWidth="initial",ye.querySelector(".ggb_preview")!==null&&(ye.querySelector(".ggb_preview").style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ye.style.transform="none",ye.style.webkitTransform="none")}function ie(ye,Ee,he,xe,we,Te){var qe=null;if(Te!=null&&Te!="")for(var Ie=ye.parentNode;Ie!=null;)if((" "+Ie.className+" ").indexOf(" "+Te+" ")>-1){qe=Ie;break}else Ie=Ie.parentNode;var Re=0,lt=0,Ue=0,We=0,ct=0,tt=0,At=0;if(qe)Re=qe.offsetWidth,lt=Math.max(xe?qe.offsetWidth:0,qe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Re=Math.min(window.innerWidth,document.documentElement.clientWidth),lt=Math.min(window.innerHeight,document.documentElement.clientHeight),Ue=Re):(Re=window.innerWidth,lt=window.innerHeight,Ue=window.innerWidth),ye){var ut=ye.getBoundingClientRect();ut.left>0&&ut.left<=Re&&(we===void 0||!we)&&(document.dir==="rtl"?(ct=Re-ut.width-ut.left,tt=Ue<=480?10:30):(tt=ut.left,ct=Ue<=480?10:30),We=tt+ct)}if(ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ot=ye.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(We=40,At=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(We=0,At=40)}}return ye&&((he===void 0||!he)&&Ee>0&&Ee+We<Re?Re=Ee:Re-=We,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he===void 0||!he)&&(lt-=At)),{width:Re,height:lt}}function oe(ye,Ee,he,xe,we){if(ye.isScreenshoGenerator)return 1;var Te=xe!==void 0&&xe,qe=ye.noScaleMargin!=null&&ye.noScaleMargin,Ie=function(ot){return ot&&ot!=="false"},Re=Ie(ye.autoHeight),lt=ie(Ee,ye.width,he,Re,Te&&window.GGBT_wsf_view||qe,we),Ue=parseInt(lt.width),We=ye.width,ct=ye.height;if(We===void 0){var tt=Ee.querySelector(".appletParameters");tt&&(We=tt.offsetWidth,ct=tt.offsetHeight)}var At=Ue/We,ut=Te?1:lt.height/ct;return he!==void 0&&!he&&(At=Math.min(1,At),ut=Math.min(1,ut)),Math.min(At,ut)}function ke(ye,Ee,he){var xe=1,we,Te=!1;if(ye.hasOwnProperty("allowUpscale")&&(Te=ye.allowUpscale),ye.hasOwnProperty("scale")&&(xe=parseFloat(ye.scale),(isNaN(xe)||xe===null||xe===0)&&(xe=1),xe>1&&(Te=!0)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te=!0),!(ye.hasOwnProperty("disableAutoScale")&&ye.disableAutoScale))we=oe(ye,Ee,Te,he,ye.scaleContainerClass);else return xe;return Te&&(!ye.hasOwnProperty("scale")||xe===1)?we:Math.min(xe,we)}function Ce(ye){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),he=Math.min(window.innerHeight,document.documentElement.clientHeight),xe=ye.getBoundingClientRect(),we=(Ee-xe.width)/2,Te=(he-xe.height)/2;Te<0&&(Te=0),ye.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(we<40?ye.style.left="40px":ye.style.left=we+"px",ye.style.top=Te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te<40?ye.style.top="40px":ye.style.top=Te+"px",ye.style.left=we+"px")}function Ye(ye,Ee){var he=ye.querySelector(".appletParameters");if(he){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!==he.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}if(he.parentElement&&/fullscreen/.test(he.parentElement.className))return;var xe=ke(Ee,ye);gn()&&he.setAttribute("data-param-scale",xe);for(var we=null,Te=0;Te<ye.childNodes.length;Te++)if(ye.childNodes[Te].className!==void 0&&ye.childNodes[Te].className.match(/^applet_scaler/)){we=ye.childNodes[Te];break}if(we!==null&&we.querySelector(".noscale")!==null)return;var qe=Ee.id!==void 0?Ee.id:"ggbApplet",Ie=window[qe];(Ie==null||!Ie.recalculateEnvironments)&&we!==null&&!we.className.match(/fullscreen/)&&(we.parentNode.style.transform="",!isNaN(xe)&&xe!==1?(we.parentNode.style.width=Ee.width*xe+"px",we.parentNode.style.height=Ee.height*xe+"px",Kt(we,xe)):(Kt(we,1),we.parentNode.style.width=Ee.width+"px",we.parentNode.style.height=Ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ce(ye),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(he).parents(".content-added-content"))}}return{responsiveResize:Ye,isFlexibleWorksheetEditor:gn,positionCenter:Ce,getScale:ke,scaleElement:Kt}}();__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 gn=n.location.search;return gn.indexOf(J)!=-1||gn.indexOf(K)!=-1}function q(gn,Kt){}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(gn){var Kt=s[L].bindings;s[L].bindings=function(){for(var ie=Kt?Kt():{},oe=gn[webModule.__softPermutationId],ke=O;ke<oe.length;ke++){var Ce=oe[ke];ie[Ce[O]]=Ce[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var gn=o.createElement(Q);if(gn.id=L,gn.style.cssText=R+S,gn.tabIndex=-1,o.body.appendChild(gn),t=gn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Kt=document.compatMode==U?V:W;t.write(Kt+X),t.close()}}}function w(gn){function Kt(oe){function ke(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ce=ke();if(Ce){oe();return}function Ye(){if(!Ce){if(!ke())return;Ce=!0,oe(),o.removeEventListener&&o.removeEventListener(Z,Ye,!1),ye&&clearInterval(ye)}}o.addEventListener&&o.addEventListener(Z,Ye,!1);var ye=setInterval(function(){Ye()},$)}function ie(oe){var ke=u(),Ce=ke.body,Ye=ke.createElement(_);Ye.language=ab,Ye.crossOrigin=W,Ye.src=oe,webModule.__errFn&&(Ye.onerror=function(){webModule.__errFn(L,new Error(bb+oe))}),Ce.appendChild(Ye)}Kt(function(){ie(gn)})}webModule.__startLoadingFragment=function(gn){return C(gn)},webModule.__installRunAsyncCode=function(gn){var Kt=u(),ie=Kt.body,oe=Kt.createElement(_);oe.language=ab,oe.text=gn,ie.appendChild(oe),ie.removeChild(oe)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(gn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(gn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(gn){var Kt=c[gn];return Kt==null?null:Kt},r=d,webModule.__errFn=e}function B(){function gn(ye){var Ee=ye.lastIndexOf(rb);Ee==-1&&(Ee=ye.length);var he=ye.indexOf(sb);he==-1&&(he=ye.length);var xe=ye.lastIndexOf(tb,Math.min(he,Ee));return xe>=O?ye.substring(O,xe+P):W}function Kt(ye){if(!ye.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=ye+vb,ye=gn(Ee.src)}return ye}function ie(){var ye=__gwt_getMetaProperty(wb);return ye!=null?ye:W}function oe(){for(var ye=o.getElementsByTagName(_),Ee=O;Ee<ye.length;++Ee)if(ye[Ee].src.indexOf(xb)!=-1)return gn(ye[Ee].src);return W}function ke(){var ye=o.getElementsByTagName(yb);return ye.length>O?ye[ye.length-P].href:W}function Ce(){var ye=o.location;return ye.href==ye.protocol+zb+ye.host+ye.pathname+ye.search+ye.hash}var Ye=ie();return Ye==W&&(Ye=oe()),Ye==W&&(Ye=ke()),Ye==W&&Ce()&&(Ye=gn(o.location.href)),Ye=Kt(Ye),Ye}function C(gn){return gn.match(/^\//)||gn.match(/^[a-zA-Z]+:\/\//)?gn:webModule.__moduleBase+gn}function D(){var gn=[],Kt=O,ie=[],oe=[];function ke(ye){var Ee=oe[ye](),he=ie[ye];if(Ee in he)return Ee;var xe=[];for(var we in he)xe[he[we]]=we;throw r&&r(ye,xe,Ee),null}if(__gwt_isKnownPropertyValue=function(ye,Ee){return Ee in ie[ye]},webModule.__getPropMap=function(){var ye={};for(var Ee in ie)ie.hasOwnProperty(Ee)&&(ye[Ee]=ke(Ee));return ye},webModule.__computePropValue=ke,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ce;try{Ce=Cb;var Ye=Ce.indexOf(Db);Ye!=-1&&(Kt=parseInt(Ce.substring(Ye+P),$),Ce=Ce.substring(O,Ye))}catch(ye){}return webModule.__softPermutationId=Kt,C(Ce+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})()},25391:function(gn,Kt,ie){"use strict";ie.d(Kt,{Ax:function(){return Ye},Ds:function(){return ye},KI:function(){return he},SI:function(){return Ce},f1:function(){return ke}});var oe=ie(45919);function ke(xe){let we=!0;if(xe.length>0){for(let Te=0;Te<xe.length;Te++)if(xe[Te].compile_success==0||!xe[Te].compile_success){we=!1;break}}else we=!1;return we}function Ce(xe,we=""){let Te=[];for(let qe=0;qe<xe.length;qe++){let Ie=xe[qe],Re=we?`${we}/${Ie.name}`:`${Ie.name}`;Te.push({title:Ie.name,type:Ie.type,isLeaf:Ie.type!=="tree",key:Re})}return Te}function Ye(xe,we,Te){for(let qe=0;qe<xe.length;qe++){let Ie=xe[qe];if(Ie.key===we){Ie.children=Te;break}Ie.children&&Ye(Ie.children,we,Te)}return xe}function ye(xe,we,Te){let qe;return function(){let Ie=this,Re=arguments,lt=function(){qe=null,Te||xe.apply(Ie,Re)},Ue=Te&&!qe;clearTimeout(qe),qe=setTimeout(lt,we),Ue&&xe.apply(Ie,Re)}}const Ee=!0,he=oe.Z.API_SERVER},86150:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return ye}});var oe=ie(59301),ke=ie(27338),Ce={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj",extraNode:"extraNode___tnBrt"},ye=({src:Ee,onClick:he,topPercentage:xe=.62,draggableExtraNode:we})=>{const Te=(0,oe.useRef)(null),qe=(0,oe.useRef)(!1),Ie=(0,oe.useRef)(!1),[Re,lt]=(0,oe.useState)(window.innerHeight*xe),[Ue,We]=(0,oe.useState)(!1),ct=10;return(0,oe.useEffect)(()=>{if(Te.current){let tt=function(Se){var Fe;qe.current=!0,je=Se.pageY,ot=Se.pageY-(((Fe=Te.current)==null?void 0:Fe.getBoundingClientRect().top)||0),(0,ke.kk)("none"),document.onselectstart=function(){return!1}},At=function(){qe.current&&!Ie.current&&he&&he(),qe.current=!1,Ie.current=!1,(0,ke.kk)("auto"),document.onselectstart=null},ut=function(Se){var Fe;if(qe.current){const xt=Se.pageY-ot,Je=window.innerHeight-(((Fe=Te.current)==null?void 0:Fe.offsetHeight)||0)-50,dt=50;if(!Ie.current&&Math.abs(je-Se.pageY)>ct&&(Ie.current=!0),Ie.current){let Be=Math.max(dt,Math.min(xt,Je));lt(Be)}}},ot=0,je=0;return Te.current.addEventListener("mousedown",tt),document.addEventListener("mousemove",ut),document.addEventListener("mouseup",At),()=>{var Se,Fe;(Fe=(Se=Te==null?void 0:Te.current)==null?void 0:Se.removeEventListener)==null||Fe.call(Se,"mousedown",tt),document.removeEventListener("mousemove",ut),document.removeEventListener("mouseup",At)}}},[he]),(0,oe.useEffect)(()=>{const tt=()=>{lt(window.innerHeight*xe)};return window.addEventListener("resize",tt),()=>{window.removeEventListener("resize",tt)}},[xe]),oe.createElement("div",{className:Ce.draggableImage,style:{top:`${Re}px`,display:Ue?"none":"block",cursor:qe.current?"grabbing":"grab"},ref:Te},we&&oe.createElement("div",{className:Ce.extraNode,onMouseUp:tt=>tt.stopPropagation(),onMouseDownCapture:tt=>tt.stopPropagation()},we),oe.createElement("img",{className:Ce.img,src:Ee,width:60,draggable:"false"}),oe.createElement("i",{className:`iconfont icon-tupianguanbi ${Ce.close}`,onMouseUp:tt=>{tt.stopPropagation(),We(!0)}}))}},84674:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return je}});var oe=ie(59301),ke={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},Ce=ie(81327),Ye=Object.defineProperty,ye=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,xe=(Se,Fe,Ze)=>Fe in Se?Ye(Se,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Se[Fe]=Ze,we=(Se,Fe)=>{for(var Ze in Fe||(Fe={}))Ee.call(Fe,Ze)&&xe(Se,Ze,Fe[Ze]);if(ye)for(var Ze of ye(Fe))he.call(Fe,Ze)&&xe(Se,Ze,Fe[Ze]);return Se};const Te=Se=>React.createElement("svg",we({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Se),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var qe="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",Ie=Object.defineProperty,Re=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,We=(Se,Fe,Ze)=>Fe in Se?Ie(Se,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Se[Fe]=Ze,ct=(Se,Fe)=>{for(var Ze in Fe||(Fe={}))lt.call(Fe,Ze)&&We(Se,Ze,Fe[Ze]);if(Re)for(var Ze of Re(Fe))Ue.call(Fe,Ze)&&We(Se,Ze,Fe[Ze]);return Se};const tt=Se=>React.createElement("svg",ct({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},Se),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var At="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyMC42NzQgNDUuMzcxYy03LjQwNC00MS44MjYtMzIuMDYtNjYuODc1LTY5LjU1My04Mi44NjUtMTkuNjkzLTguMzUtMzkuNTQzLTE2LjctNTMuMjQ4LTM0LjczNy05LjYxLTEyLjkxOS0xMi4yODgtMjcuMzMzLTE3LjAxNS00MS41MTItMy4xNS04LjUwNy02LjE0NC0xNy4yNS0xNi4zODQtMTguNjY4LTExLjE4NS0xLjczMy0xNS41MTcgNy4yNDctMTkuOTI4IDE0LjczYTE4OS4xMjUgMTg5LjEyNSAwIDAgMC0yMy41NTIgOTguNDYxYzEuNTc1IDc2Ljg4IDM1LjQ0NiAxMzguMDgzIDEwMi42MzYgMTgxLjY0MiA3LjU2MiA0Ljk2MyA5LjUzMSA5LjkyNSA3LjA5IDE3LjI1LTQuNDkgMTQuOTY3LTkuOTI2IDI5LjU0LTE0LjgxIDQ0LjU4NC0yLjk5MiA5LjYxLTcuNTYxIDExLjY1OC0xOC4yNzQgNy40ODNhMzA5LjQ4NCAzMDkuNDg0IDAgMCAxLTk2Ljg4Ni02My4wMTVjLTQ3LjgxMy00NC40MjYtOTEuMDU3LTkzLjM0Mi0xNDQuOTM1LTEzMS43MDJhNjM1LjgyNSA2MzUuODI1IDAgMCAwLTM4LjM2LTI1LjIwN2MtNTQuOTgyLTUxLjIgNy4xNjctOTMuMjYyIDIxLjU4Mi05OC4yMjUgMTQuOTY2LTUuMTk5IDUuMjc3LTIzLjE1OC00My40MDItMjIuOTIyLTQ4LjY4LjIzNy05My4xODQgMTUuODMzLTE0OS45NzcgMzYuNjI4LTguNDI4IDMuMTUtMTcuMDkyIDUuNTE0LTI1Ljk5MyA3LjMyNmE1NTcuODQ0IDU1Ny44NDQgMCAwIDAtMTYwLjc2OC01LjQzNmMtMTA1LjE1NyAxMS4yNjQtMTg5LjIwNCA1OC45Mi0yNTAuOTYgMTQwLjM2Ny03NC4yIDk3LjgzMi05MS42ODcgMjA4Ljk3NS03MC4yNjEgMzI1LjAwMiAyMi40NDkgMTIyLjI1IDg3LjQzNCAyMjMuNDY4IDE4Ny40NyAzMDIuNjMxIDEwMy41ODIgODIgMjIyLjkxNyAxMjIuMTcyIDM1OS4xODggMTE0LjQ1MiA4Mi43MDgtNC41NjggMTc0Ljc5LTE1LjIwMiAyNzguNjg2LTk5LjQ4NSAyNi4xNTEgMTIuNDQ1IDUzLjY0MiAxNy40ODYgOTkuMjQ5IDIxLjI2NyAzNS4xMzEgMy4wNzIgNjkuMDAyLTEuNzMzIDk1LjE1My02LjkzMSA0MC45Ni04LjM1IDM4LjIwMy00NC43NDEgMjMuMzE2LTUxLjQzNy0xMjAuMjAyLTUzLjcyLTkzLjgxNC0zMS44MjItMTE3LjgzOS00OS42MjQgNjEuMTI1LTY5LjMxNyAxNTMuMjA2LTE0MS4zMTIgMTg5LjIwNC0zNzQuNzA2IDIuODM1LTE4LjUxLjQ3Mi0zMC4xNjggMC00NS4yMTMtLjIzNy05LjEzNyAxLjk2OS0xMi42MDMgMTIuOTE4LTEzLjcwNmEyNDAuMDg5IDI0MC4wODkgMCAwIDAgODYuMTczLTI1LjQ0MmM3Ny45ODItNDAuODAzIDEwOS4zMzItMTA3LjkxNCAxMTYuNzM2LTE4OC4yNTkgMS4xMDMtMTIuMjg4LS4yMzYtMjQuOTctMTMuNzA1LTMxLjQyOXpNNjg1LjQ1IDg0Mi4wNDNDNTY5LjEwOCA3NTQuMjE1IDUxMi41NSA3MjUuMzA3IDQ4OS4xNTcgNzI2LjQ5Yy0yMS44MiAxLjI2LTE3Ljk2IDI1LjIwNi0xMy4xNTUgNDAuODAyIDUuMDQyIDE1LjQzOSAxMS41OCAyNi4wNzMgMjAuNzE3IDM5LjYyMSA2LjMwMSA4LjkgMTAuNzkxIDIyLjIxMy02LjMwMiAzMi4yOTUtMzcuNDk0IDIyLjIxMy0xMDIuNzk0LTcuNTYxLTEwNS43ODctOC45OC03Ni4wMTItNDIuOTI5LTEzOS40MjEtOTkuNTY0LTE4NC4yNDEtMTc2Ljk5NGE1MjMuODk0IDUyMy44OTQgMCAwIDEtNzIuNDY4LTIzOS45M2MtMS4wMjQtMjAuNTYgNS4yNzgtMjcuODg1IDI2LjcwMy0zMS41ODdhMjcyLjE0OCAyNzIuMTQ4IDAgMCAxIDg1LjMwNy0yLjEyN2MxMTguOTQyIDE2LjY5OSAyMjAuMTYgNjcuNzQxIDMwNS4wNzMgMTQ4LjQ4IDQ4LjQ0MyA0Ni4wMDEgODUuMDcxIDEwMC45ODIgMTIyLjg4IDE1NC43MDMgNDAuMTczIDU3LjAyOSA4My4zMzggMTExLjQ1OCAxMzguMzIgMTU1Ljk2MyAxOS4zNzYgMTUuNjc1IDM0Ljg5NCAyNy41NjkgNDkuNzgxIDM2LjIzNC00NC43NCA0LjgwNS0xMTkuNDE0IDUuODI5LTE3MC40NTYtMzIuOTI2em01NS45MjYtMzQ0LjYxNWMwLTUuMzU3IDIuNzU3LTEwLjM5OCA3LjMyNi0xMy40N2ExNy43MjMgMTcuNzIzIDAgMCAxIDIyLjEzNCAyLjA0OGMzLjA3MiAyLjkxNSA0LjgwNSA3LjA5IDQuODA1IDExLjQyMmExNi43NzggMTYuNzc4IDAgMCAxLTE3LjI1IDE2LjU0MSAxNy4zMyAxNy4zMyAwIDAgMS0xMi4xMzEtNC44ODMgMTUuOTExIDE1LjkxMSAwIDAgMS00Ljg4NC0xMS42NTh6bTE3My41MjkgODUuNDY0YTEwNC4zNyAxMDQuMzcgMCAwIDEtMzMuMDA1IDguNTg2IDcxLjQ0NCA3MS40NDQgMCAwIDEtNDQuNTA0LTEzLjU0OGMtMTUuMjgyLTEyLjI4OC0yNi4yMy0xOS4xNDEtMzAuNzItNDAuNjQ1YTg5LjE2NyA4OS4xNjcgMCAwIDEgLjc4Ny0zMS40MjljMy45MzktMTcuNDg3LS4zOTMtMjguNzUtMTMuMzEyLTM4LjkxMi0xMC40NzYtOC4zNS0yMy43MS0xMC42MzQtMzguMzYtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",ut=ie(59301),je=({value:Se,onChange:Fe})=>{const[Ze,xt]=(0,oe.useState)(!1),Je=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:qe},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:At}],dt=Je.find(Be=>Be.key===Se);return ut.createElement("div",{className:ke.select},ut.createElement(Ce.Z,{size:10},ut.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),ut.createElement("div",{className:ke.box,onMouseLeave:()=>xt(!1)},ut.createElement("div",{className:ke.text,onClick:()=>xt(!0)},ut.createElement("img",{src:dt.img,width:20}),ut.createElement("span",null,dt.name),ut.createElement("b",{className:"iconfont icon-zhankai6"})),Ze&&ut.createElement("div",{className:ke.itemWrap},ut.createElement("aside",null,Je.map(Be=>ut.createElement("div",{key:Be.key,className:`${ke.item} ${Be.key===Se?ke.active:""}`,onClick:kt=>{kt.stopPropagation(),Fe(Be.key),xt(!1)}},ut.createElement("img",{src:Be.img,width:20}),ut.createElement("span",null,Be.name))))))))}},22149:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return he}});var oe=ie(59301),ke={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},Ce=ie(71418),Ye=ie(59301),ye=(xe,we,Te)=>new Promise((qe,Ie)=>{var Re=We=>{try{Ue(Te.next(We))}catch(ct){Ie(ct)}},lt=We=>{try{Ue(Te.throw(We))}catch(ct){Ie(ct)}},Ue=We=>We.done?qe(We.value):Promise.resolve(We.value).then(Re,lt);Ue((Te=Te.apply(xe,we)).next())}),he=({value:xe="",streamingStatus:we,onFinish:Te,cancelIndex:qe,time:Ie,loading:Re,loadAll:lt})=>{const[Ue,We]=(0,oe.useState)(""),[ct,tt]=(0,oe.useState)(!0),At=(0,oe.useRef)(xe),ut=(0,oe.useRef)(we),ot=(0,oe.useRef)(0),je=(0,oe.useRef)(null),[Se,Fe]=(0,oe.useState)(!1),Ze=70;(0,oe.useEffect)(()=>{ut.current=we},[we]),(0,oe.useEffect)(()=>{At.current=xe},[xe]),(0,oe.useEffect)(()=>{if(!we){We(At.current);return}return Fe(!0),je.current=setInterval(xt,Ze),()=>{clearInterval(je.current)}},[]),(0,oe.useEffect)(()=>{Se&&(We(At.current),clearInterval(je.current),Fe(!1),Te())},[qe]);const xt=()=>ye(void 0,null,function*(){const Je=At.current[ot.current];Je!==void 0?(We(dt=>dt+Je),ot.current++,clearInterval(je.current),je.current=setInterval(xt,280/(At.current.length-ot.current))):ut.current===!1&&(We(At.current),clearInterval(je.current),Fe(!1),Te())});return Ye.createElement("div",{className:`${ke.reasoning} fadeIn animated`},Ye.createElement("div",{className:ke.btn,onClick:()=>tt(!ct)},Ye.createElement("i",{className:"iconfont icon-shendusikao"}),Ie?Ye.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",Ie," \u79D2\uFF09"):Ye.createElement("span",null,"\u601D\u8003\u4E2D..."),ct?Ye.createElement("b",{className:"iconfont icon-shouqi6"}):Ye.createElement("b",{className:"iconfont icon-zhankai6"})),Re&&Ye.createElement(Ce.Z,{spinning:!0,className:"mt20"}),ct&&!Re&&Ye.createElement("div",{className:ke.content},Ue,Se?Ye.createElement("span",{className:"aiBlink"},"__"):""))}},96729:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return It}});var oe=ie(59301),ke=ie(43428),Ce=ie(8591),Ye=ie(54580),ye=ie(43418),Ee=ie(6848),he=ie(92832),xe=ie(3113),we=ie(71418),Te=ie(64165),qe=ie(14478),Ie=ie(38854),Re=ie(92310),lt=ie.n(Re),Ue=ie(26528),We=ie(22149),ct=ie(84674),tt={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},At=ie(60343),ut=ie(27338),ot=ie(86150),je=ie(37166),Se=ie(28984),Fe=ie(71986),Ze=ie(45919),xt=ie(56102),Je=ie(38022),dt=ie(58617),Be=ie(32050),kt=Object.defineProperty,He=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Bt=(Qe,et,Lt)=>et in Qe?kt(Qe,et,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Qe[et]=Lt,De=(Qe,et)=>{for(var Lt in et||(et={}))Et.call(et,Lt)&&Bt(Qe,Lt,et[Lt]);if(mt)for(var Lt of mt(et))zt.call(et,Lt)&&Bt(Qe,Lt,et[Lt]);return Qe},ge=(Qe,et)=>He(Qe,Tt(et)),at=(Qe,et,Lt)=>new Promise((dn,_t)=>{var tn=Vt=>{try{Jt(Lt.next(Vt))}catch(be){_t(be)}},en=Vt=>{try{Jt(Lt.throw(Vt))}catch(be){_t(be)}},Jt=Vt=>Vt.done?dn(Vt.value):Promise.resolve(Vt.value).then(tn,en);Jt((Lt=Lt.apply(Qe,et)).next())}),It=({title:Qe="\u5934\u6B4CAI",placeholder:et,hideUpload:Lt,hideInputBox:dn,aiIcon:_t=je,userIcon:tn=Se,dragIcon:en=Fe,children:Jt,fetchUrl:Vt,fetchData:be={},extraAnswerAction:ce,showDefaultTips:ue=!0,onOpen:de,onClose:pe,loadingOption:se,showPreference:Le=!1,initMessage:ht,customRequest:_e,visible:Ne,width:St=1200,isCheckRestrictNumber:gt=!1,headNode:Xe,headFunctionNode:wt,showRedraw:Xt,showEdit:bt,promptPropName:$t="prompt",topPercentage:on,showSwitchingModel:vt=!1,showImageGenerator:Oe=!1,showLookHistory:yt=!1,fetchListObject:jt,customPreference:Zt,customDataNode:nn,showAddSession:Cn,historyId:In,draggableExtraNode:Dn,drawerExtraNode:Kn,menuExtraFunctionNode:Vn,showSceneAwareness:_n=!1,ReactComponent:or=ke.Z,topFunctionNode:wr,footerContainerStyle:Tr,chatContainerStyle:Yn={},showCodePreview:hr=!1,showSource:kr=!0,onSendMessage:Qn,onDynamic:Fr=()=>{}})=>{var ci,Cr;const[pi,ai]=(0,oe.useState)(!1),[nr,yr]=(0,oe.useState)("qwen-max"),[Hn,Gn]=(0,oe.useState)([]),[Or,Rt]=(0,oe.useState)([]),[Ke,nt]=(0,oe.useState)(!1),[rt,it]=(0,oe.useState)(!1),[Dt,Ht]=(0,oe.useState)(!1),[sn,qt]=(0,oe.useState)([]),[mn,An]=(0,oe.useState)(""),[Tn,Pn]=(0,oe.useState)(0),[Qt,wn]=(0,oe.useState)(void 0),[Xn,Wn]=(0,oe.useState)(!1),[sr,Jn]=(0,oe.useState)(null),[Ar,Fn]=(0,oe.useState)(""),dr=(0,oe.useRef)(),Ot=(0,oe.useRef)(null),cn=(0,oe.useRef)(null),[vn,Mn]=(0,oe.useState)(!1),[yn,Sn]=(0,oe.useState)(!1),[bn,zn]=(0,oe.useState)(!1),[Zn,qn]=(0,oe.useState)(!1),[_r,ei]=(0,oe.useState)(!1),[di,zr]=(0,oe.useState)(0),Lr=(0,oe.useRef)(null),mi=(0,oe.useRef)(!1),oi=(0,oe.useRef)(null),[ti,Pr]=(0,oe.useState)(void 0),[Vr,En]=(0,oe.useState)(!0),[Yr,Li]=(0,oe.useState)(St-28),[Yi,ni]=(0,oe.useState)(!1),[tr,Un]=(0,oe.useState)(!0),[Qr,Dr]=(0,oe.useState)([]),fi=(0,oe.useRef)([]),Ni=(0,oe.useRef)(null),si=(0,oe.useRef)(null),ea=(0,oe.useRef)(!1),ki=Yr-22,Da=mn==null?void 0:mn.split(`
|
|
|
`).length,{onAdd:jr,onGetList:$r,onListClick:Di,onListDelete:Ii,onListDealData:La}=jt||{},So=50,Ga=10,la={maxCount:So,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Hn,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:xn=>at(void 0,null,function*(){var gr,Hr,Ti,Ui;const ji=(Ui=(Ti=(Hr=(gr=xn==null?void 0:xn.name)==null?void 0:gr.split("."))==null?void 0:Hr.slice(-1))==null?void 0:Ti[0])==null?void 0:Ui.toLowerCase(),Co=["doc","docx","md","pdf","txt","xlsx","xls"].includes(ji);return xn.size==0?(Ce.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Ye.default.LIST_IGNORE):Co?xn.size/1024/1024>100?(Ce.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Ye.default.LIST_IGNORE):!0:(Ce.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),Ye.default.LIST_IGNORE)}),onChange:({fileList:xn})=>{Gn(xn)},action:`${(ci=Ze.Z)==null?void 0:ci.API_SERVER}/api/intelligent_imports/upload_file.json`},Oa={maxCount:Ga,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Or,multiple:!0,accept:".jpg,.png,",beforeUpload:xn=>{var gr,Hr,Ti,Ui;const ji=(Ui=(Ti=(Hr=(gr=xn==null?void 0:xn.name)==null?void 0:gr.split("."))==null?void 0:Hr.slice(-1))==null?void 0:Ti[0])==null?void 0:Ui.toLowerCase(),Co=["jpg","png"].includes(ji);return xn.size==0?(Ce.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Ye.default.LIST_IGNORE):Co?xn.size/1024/1024>10?(Ce.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Ye.default.LIST_IGNORE):!0:(Ce.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),Ye.default.LIST_IGNORE)},onChange:({fileList:xn})=>{Rt(xn)},action:`${(Cr=Ze.Z)==null?void 0:Cr.API_SERVER}/api/ai/generals/update_file.json`};(0,oe.useEffect)(()=>{if(!sn.length||!dr.current)return;const xn=sn[sn.length-1];xn!=null&&xn.loading&&(dr.current.scrollTop=dr.current.scrollHeight)},[sn.length]),(0,oe.useEffect)(()=>{if(!dr.current||!Lr.current)return;const xn=new IntersectionObserver(([gr])=>{En(gr.isIntersecting)},{root:dr.current,rootMargin:"70px",threshold:0});return xn.observe(Lr.current),()=>{Lr.current&&xn.unobserve(Lr.current)}},[dr.current,Lr.current]),(0,oe.useEffect)(()=>{if(!vn)return;const xn=dr.current,gr=oi.current;mi.current=!1;let Hr=xn.scrollTop;const Ti=()=>{const{scrollTop:ji,scrollHeight:ba,clientHeight:Co}=xn;ji>Hr?ji+Co>=ba-50&&(xn.scrollTop=xn.scrollHeight,mi.current=!1):ji<Hr&&(mi.current=!0),Hr=ji};xn.addEventListener("scroll",Ti);const Ui=new ResizeObserver(()=>{mi.current||(xn.scrollTop=xn.scrollHeight)});return Ui.observe(gr),()=>{var ji;Ui.unobserve(gr),(ji=xn==null?void 0:xn.removeEventListener)==null||ji.call(xn,"scroll",Ti)}},[vn]),(0,oe.useEffect)(()=>{!vn&&fi.current.length&&(qt([...sn,...fi.current]),fi.current=[])},[vn]),(0,oe.useEffect)(()=>{if(!dr.current)return;const xn=new ResizeObserver(()=>{var gr;dr.current&&Li((gr=dr.current)==null?void 0:gr.offsetWidth)});return xn.observe(dr.current),()=>{dr.current&&xn.unobserve(dr.current)}},[dr.current]),(0,oe.useEffect)(()=>{typeof Ne=="boolean"&&ai(Ne)},[Ne]),(0,oe.useEffect)(()=>{var xn;if(Ot.current&&sr!==null){Ot.current.focus();const gr=(xn=Ot.current.resizableTextArea)==null?void 0:xn.textArea;gr&&(gr.selectionStart=gr.selectionEnd=gr.value.length)}},[sr]),(0,oe.useEffect)(()=>{Da<5&&Wn(!1)},[Da]),(0,oe.useEffect)(()=>{pi&&ht&&(qt(Ma(ht)),nt(!0),Sa(ht,{history:[]})),pi&&(ia(),In?fo(In):Cn&&!ti&&Wo()),pi||vr()},[pi]);const Ma=(xn="",gr=[],Hr=[])=>{const Ti=Date.now();return[{text:xn,key:Ti,sender:"user",fileList:gr,imageList:Hr,show:!0},{loading:!0,key:Ti,sender:"AI",show:!0,model:nr,imageGenerator:Zn,thinkingEnabled:yn,codePreview:bn}]},vr=()=>{Fn(""),Jn(null),Gn([]),Rt([]),An("")},br=()=>{if(de){de({chatData:sn,setChatData:qt,setLoading:nt,getData:Sa,renderChatItems:Ma,handleAdd:Wo,identifier:ti});return}ai(!0)},xr=()=>{if(Un(!0),pe){pe();return}ai(!1)},Gr=()=>{Wn(!Xn)},ia=()=>at(void 0,null,function*(){if(!gt)return;const xn=yield(0,At.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(xn==null?void 0:xn.status)===0&&(xn==null?void 0:xn.total_number)!==-1&&(Pn((xn==null?void 0:xn.total_number)-(xn==null?void 0:xn.remaining_number)),wn(xn==null?void 0:xn.total_number))}),wa=()=>{ye.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:oe.createElement("div",null,oe.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),oe.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",Qt,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},Ea=xn=>xn.reduce((Hr,Ti)=>{if(Ti.sender==="user"){const Ui=xn.find(ji=>ji.key===Ti.key&&ji.sender==="AI");Ui&&(Ui!=null&&Ui.text)&&!(Ui!=null&&Ui.error)&&Hr.push({question:Ti.text,answer:Ui.text})}return Hr},[]),Sa=(...xn)=>at(void 0,[...xn],function*(gr="",Hr={},Ti=sn){if(_e&&(yield _e({mes:gr,setChatData:qt,fileList:Hn,body:Hr,checkNum:ia,setLoading:nt,bodyChatData:Ti,setTyping:Mn,setImageGenerator:qn,renderChatItems:Ma})),!_e){const Ui=Hn==null?void 0:Hn.map(Xa=>{var ho;return(ho=Xa==null?void 0:Xa.response)==null?void 0:ho.file_id}),ji=Or==null?void 0:Or.map(Xa=>{var ho;return(ho=Xa==null?void 0:Xa.response)==null?void 0:ho.data}),ba=Hr.history||Ea(Ti),Co=De(De({identifier:ti,response_mode:"streaming",scene_awareness:_r,thinking_enabled:yn,image_generator:Zn,code_preview:bn,file_ids:Ui,image_list:ji,history:ba,[$t]:gr},be),Hr),fn=Object.fromEntries(Object.entries(Co).filter(([Xa,ho])=>ho!==void 0));cn.current=new Je.Z(Ze.Z.API_SERVER+Vt,fn),yield new Promise((Xa,ho)=>{let El=null,ys=null;cn.current.on("data",Oo=>{Mn(!0);const{chunk:{content:Lo,type:As,created:po,msg:es}}=Oo,Gs=es==="error";As==="text"&&(ys=ys||po,qt(al=>[...al].map((os,cs)=>cs===al.length-1?ge(De({},os),{text:(os.text||"")+Lo,loading:!1,startTime:El,endTime:ys,error:Gs}):os)))}),cn.current.on("done",()=>{Xa()}),cn.current.on("error",Oo=>{let Lo="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(Oo)==="[object Object]"&&Oo.status===-9&&(Lo=Oo==null?void 0:Oo.message),qt(As=>[...As].map((po,es)=>es===As.length-1?ge(De({},po),{text:Lo,loading:!1,error:!0}):po)),Xa()}),cn.current.on("cancelled",()=>{Xa()}),cn.current.startStream()})}ia(),nt(!1)}),Aa=xn=>{An(xn.target.value)},_a=(xn,gr)=>{if(vr(),nt(!0),xn==="edit"){fi.current=sn.slice(gr+2);const Hr=sn.splice(gr),{fileList:Ti=[],imageList:Ui=[]}=(Hr==null?void 0:Hr[0])||{},ji=Ti.map(fn=>{var Xa;return(Xa=fn.response)==null?void 0:Xa.file_id}),ba=Ui.map(fn=>{var Xa;return(Xa=fn.response)==null?void 0:Xa.data}),Co={history:Ea(sn),file_ids:ji,image_list:ba,edit:!0};qt([...sn,...Ma(Ar,Ti,Ui)]),Sa(Ar,Co,sn)}if(xn==="redraw"){fi.current=sn.slice(gr+1);const Hr=sn.splice(gr-1),{text:Ti,fileList:Ui=[],imageList:ji=[]}=(Hr==null?void 0:Hr[0])||{},ba=Ui.map(Xa=>{var ho;return(ho=Xa.response)==null?void 0:ho.file_id}),Co=ji.map(Xa=>{var ho;return(ho=Xa.response)==null?void 0:ho.data}),fn={history:Ea(sn),file_ids:ba,image_list:Co,edit:!0};qt([...sn,...Ma(Ti,Ui,ji)]),Sa(Ti,fn,sn)}},mo=()=>{if(mn.trim()!==""){vr(),nt(!0);const xn=Hn.filter(Hr=>Hr.status==="done"),gr=Or.filter(Hr=>Hr.status==="done");qt([...sn,...Ma(mn,xn,gr)]),Sa(mn)}},co=xn=>{if(xn.shiftKey){if(xn.key==="Enter")return}else if(xn.key==="Enter"){if(xn.preventDefault(),va||ea.current)return;mo()}},qo=(xn,gr)=>{let Hr=!1;bt===!0?Hr=!0:bt==="last"&&(Hr=sn.reduce((ba,Co,fn)=>Co.sender==="user"?fn:ba,-1)===gr);const Ti=gr===sr,Ui=[...(xn==null?void 0:xn.fileList)||[],...(xn==null?void 0:xn.imageList)||[]];return oe.createElement("div",{className:tt.li,style:De({width:ki},Yn)},oe.createElement("div",{className:tt.avatarIcon},oe.createElement("img",{className:tt.img,src:tn})),oe.createElement("div",{className:tt.content},!!(Ui!=null&&Ui.length)&&oe.createElement("div",{className:tt.fileWrap},Ui==null?void 0:Ui.map((ji,ba)=>{var Co,fn;return oe.createElement("div",{key:ba,className:tt.file},oe.createElement("img",{src:ie(90034)(`./${((fn=(Co=ji==null?void 0:ji.name)==null?void 0:Co.split("."))==null?void 0:fn.pop())||"txt"}.png`),width:20,className:"mr10"}),oe.createElement("aside",null,oe.createElement(Ee.Z,{title:ji==null?void 0:ji.name},oe.createElement("div",{className:tt.fileName},ji==null?void 0:ji.name)),oe.createElement("div",{className:"c-grey-999 font12"},(0,ut.RD)(ji==null?void 0:ji.size))))})),oe.createElement("div",{className:tt.borderBox},Ti?oe.createElement(he.default.TextArea,{value:Ar,ref:Ot,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:ji=>Fn(ji.target.value)}):oe.createElement("div",{className:tt.text},xn==null?void 0:xn.text)),Ti?oe.createElement("div",{className:tt.action},oe.createElement(xe.ZP,{onClick:()=>{Fn(""),Jn(null)},size:"small"},"\u53D6\u6D88"),oe.createElement(xe.ZP,{disabled:!Ar.trim(),onClick:()=>_a("edit",gr),type:"primary",size:"small"},"\u786E\u8BA4")):oe.createElement("div",{className:tt.action},oe.createElement(xt.CopyToClipboard,{text:(xn==null?void 0:xn.text)||"",onCopy:()=>Ce.ZP.success("\u590D\u5236\u6210\u529F")},oe.createElement(Ee.Z,{title:"\u590D\u5236"},oe.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Hr&&!Ke&&oe.createElement(Ee.Z,{title:"\u7F16\u8F91"},oe.createElement("i",{onClick:()=>{Jn(gr),Fn((xn==null?void 0:xn.text)||"")},className:"iconfont icon-bianji10 font14"})))))},Bo=(xn,gr)=>{let Hr=!1;Xt===!0?Hr=!0:Xt==="last"&&(Hr=sn.reduce((ji,ba,Co)=>ba.sender==="AI"?Co:ji,-1)===gr);let Ti="";return xn!=null&&xn.source?Ti=xn==null?void 0:xn.source:(xn==null?void 0:xn.model)==="deepseek-r1"?Ti="\u7531deepseek\u751F\u6210":(xn==null?void 0:xn.model)==="qwen-max"&&(Ti="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),oe.createElement("div",{className:tt.li,style:De({width:ki},Yn)},oe.createElement("div",{className:tt.avatarIcon},oe.createElement("img",{className:tt.img,src:_t})),oe.createElement("div",{className:tt.content},oe.createElement("div",{className:tt.borderBox},xn.loading&&oe.createElement(oe.Fragment,null,xn!=null&&xn.imageGenerator?oe.createElement("div",{className:tt.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",oe.createElement("div",{className:"ai-loading"})):!(xn!=null&&xn.thinkingEnabled)&&oe.createElement("div",null,oe.createElement("div",{className:tt.loading},oe.createElement("div",{className:tt.dot}),oe.createElement("div",{className:tt.dot}),oe.createElement("div",{className:tt.dot})),oe.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(se==null?void 0:se.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(xn==null?void 0:xn.thinkingEnabled)&&oe.createElement(We.Z,{time:xn==null?void 0:xn.time,cancelIndex:di,loading:xn.loading,streamingStatus:!(xn!=null&&xn.text),onFinish:()=>{zr(0),qt(Ui=>[...Ui].map((ji,ba)=>ba===Ui.length-1?ge(De({},ji),{hideAnswer:!1,time:ji.startTime?ji.endTime-ji.startTime:null}):ji))},value:xn==null?void 0:xn.reasoning}),!!(xn!=null&&xn.text)&&!xn.hideAnswer&&oe.createElement(Ue.Z,{onDynamic:Fr,cancelIndex:di,streamingStatus:Ke,loadImage:!!(xn!=null&&xn.imageGenerator),onFinish:()=>at(void 0,null,function*(){zr(0),setTimeout(()=>Mn(!1),0)}),value:xn==null?void 0:xn.text})),kr&&!!(xn!=null&&xn.text)&&Ti&&oe.createElement("div",{className:tt.source},Ti),oe.createElement("div",{className:tt.action},ce==null?void 0:ce(xn,gr,{onMenuClick:fo}),!(xn!=null&&xn.imageGenerator)&&oe.createElement(xt.CopyToClipboard,{text:String((xn==null?void 0:xn.text)||""),onCopy:()=>Ce.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},oe.createElement(Ee.Z,{title:"\u590D\u5236"},oe.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),Le&&!Ke&&oe.createElement(oe.Fragment,null,oe.createElement(Ee.Z,{title:"\u559C\u6B22"},oe.createElement("i",{style:xn!=null&&xn.like?{color:"#FA8D30"}:{},onClick:()=>eo("like",!(xn!=null&&xn.like),gr),className:"iconfot icon-yijiejue font15"})),oe.createElement(Ee.Z,{title:"\u4E0D\u559C\u6B22"},oe.createElement("i",{style:xn!=null&&xn.dislike?{color:"#e86d7c"}:{},onClick:()=>eo("dislike",!(xn!=null&&xn.dislike),gr),className:"iconfot icon-weijiejuezhengchang font15"}))),Hr&&!Ke&&oe.createElement(Ee.Z,{title:"\u91CD\u65B0\u751F\u6210"},oe.createElement("i",{onClick:()=>_a("redraw",gr),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},eo=(xn,gr,Hr)=>at(void 0,null,function*(){if(Zt){const Ti=sn.slice(0,Hr+1),ji=Ea(Ti).length;yield Zt({type:xn,value:gr,index:Hr,identifier:ti,objectIndex:ji})}qt(Ti=>(Ti[Hr][xn]=gr,gr&&(Ti[Hr][xn==="like"?"dislike":"like"]=!1),[...Ti]))}),Bs=()=>{var xn,gr;zr(1),(gr=(xn=cn.current)==null?void 0:xn.cancelRequest)==null||gr.call(xn),nt(!1),Mn(!1)},Wo=()=>at(void 0,null,function*(){var xn,gr,Hr;(gr=(xn=cn.current)==null?void 0:xn.cancelRequest)==null||gr.call(xn),vr(),qt([]),nt(!0);const Ti=yield jr();(Ti==null?void 0:Ti.status)===0&&Pr((Hr=Ti==null?void 0:Ti.data)==null?void 0:Hr.identifier),nt(!1),Mn(!1)}),Ro=()=>at(void 0,null,function*(){var xn;Ht(!0);const gr=yield $r();(gr==null?void 0:gr.status)===0&&Dr(((xn=gr==null?void 0:gr.data)==null?void 0:xn.list)||[]),Ht(!1)}),fo=(...xn)=>at(void 0,[...xn],function*(gr=ti){var Hr,Ti,Ui,ji;(Ti=(Hr=cn.current)==null?void 0:Hr.cancelRequest)==null||Ti.call(Hr),vr(),it(!0);const ba=yield Di(gr);if(ba.status===0){const Co=La(((Ui=ba==null?void 0:ba.data)==null?void 0:Ui.messages)||[]);qt(Co),it(!1),Pr((ji=ba==null?void 0:ba.data)==null?void 0:ji.identifier);return}qt([]),it(!1)}),za=(xn,gr)=>at(void 0,null,function*(){(yield Ii(xn)).status===0&&(Ce.ZP.success("\u5220\u9664\u6210\u529F"),gr===ti&&Wo(),Ro())}),Ei=()=>oe.createElement("div",{className:tt.menuWarp},oe.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),oe.createElement(we.Z,{spinning:Dt},!Qr.length&&oe.createElement(Te.Z,{style:{width:250,paddingBottom:30},image:Te.Z.PRESENTED_IMAGE_SIMPLE}),!!Qr.length&&oe.createElement("div",{className:tt.menu},Qr.map(function(xn,gr){return oe.createElement("aside",{className:lt()(ti===xn.identifier&&tt.active),key:xn.id,onClick:()=>fo(xn.id)},oe.createElement("div",{className:tt.menuText},oe.createElement(Ee.Z,{title:xn==null?void 0:xn.question},oe.createElement("span",null,xn==null?void 0:xn.question)),Vn&&Vn(xn)),oe.createElement("div",{className:tt.menuDel,onClick:Hr=>Hr.stopPropagation()},oe.createElement(qe.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>za(xn.id,xn.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},oe.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),ta=xn=>{if(xn==="file"){if(Or.length){ye.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Rt([]),Ni.current.upload.uploader.fileInput.click()}});return}Ni.current.upload.uploader.fileInput.click()}if(xn==="image"){if(Hn.length){ye.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Gn([]),si.current.upload.uploader.fileInput.click()}});return}si.current.upload.uploader.fileInput.click()}},Zi=[{key:"file",disabled:Hn.length>=So,label:oe.createElement(Ee.Z,{placement:"right",title:oe.createElement("div",null,oe.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),oe.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},nr!=="deepseek-r1"&&{key:"image",disabled:Or.length>=Ga,label:oe.createElement(Ee.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),Ci=[...Hn,...Or],va=Ci.some(xn=>xn.status==="uploading")||Ke||vn,oa=Tn>=Qt,to=Lt||Hn.length>=So||Or.length>=Ga,go=Zn||yn||_r||bn||!!Ci.length,no={chatData:sn,stream:cn,isDisabledNum:oa,checkNumModal:wa,checkNum:ia,onClose:xr,setChatData:qt,setLoading:nt,getData:Sa,clearStatus:vr,typing:vn,setImageGenerator:qn,renderChatItems:Ma,setSceneAwareness:ei,setIdentifier:Pr,setCodePreview:zn,setTyping:Mn};return oe.createElement(oe.Fragment,null,Jt?oe.createElement("div",{onClick:br},Jt):Jt!==null&&oe.createElement(ot.Z,{draggableExtraNode:Dn,src:en,onClick:br,topPercentage:on}),oe.createElement(or,{open:pi,width:Yi?"100%":St,afterOpenChange:xn=>{xn&&Un(!1)},push:!1,contentWrapperStyle:tr?{}:{transition:"none"},extra:oe.createElement("div",{className:tt.head},Kn,vt&&oe.createElement(ct.Z,{value:nr,onChange:xn=>{Sn(!1),qn(!1),yr(xn),Rt([]),Gn([])}}),yt&&oe.createElement(oe.Fragment,null,oe.createElement(Ie.Z,{dropdownRender:Ei,onOpenChange:xn=>{xn&&Ro()},placement:"bottomLeft",arrow:!0},oe.createElement("div",{className:tt.headBtn},oe.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),Cn&&oe.createElement(oe.Fragment,null,oe.createElement("div",{className:tt.headBtn,onClick:Wo},oe.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),oe.createElement(Ee.Z,{title:Yi?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},oe.createElement("div",{className:tt.headBtn,style:{padding:"0 12px"},onClick:()=>ni(!Yi)},Yi&&oe.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!Yi&&oe.createElement("i",{className:"iconfont icon-quanping4"})))),title:oe.createElement("span",{className:"c-grey-333 font16"},Qe),onClose:xr,bodyStyle:{paddingRight:4}},oe.createElement("div",{className:lt()(tt.wrap,pi&&"body-overflow-hidden")},oe.createElement("div",{ref:dr,className:tt.chatContainer},wr==null?void 0:wr(no),ue&&oe.createElement("div",{className:`${tt.li} mb20`,style:De({width:ki},Yn)},oe.createElement("div",{className:tt.avatarIcon},oe.createElement("img",{className:tt.img,src:_t})),oe.createElement("div",{className:tt.content},oe.createElement("div",{className:tt.borderBox},Xe,wt==null?void 0:wt(no)))),oe.createElement("div",{ref:oi},oe.createElement(we.Z,{spinning:rt,className:"mt20"},sn==null?void 0:sn.map((xn,gr)=>oe.createElement(oe.Fragment,{key:xn.key+gr},xn.show&&oe.createElement(oe.Fragment,null,xn.sender==="user"&&qo(xn,gr),xn.sender==="AI"&&Bo(xn,gr),nn&&!["AI","user"].includes(xn.sender)&&nn(xn,gr,{width:ki})))))),!Vr&&oe.createElement("div",{className:tt.backBottom,onClick:()=>{dr.current.scrollTop=dr.current.scrollHeight}},oe.createElement("i",{className:"iconfont icon-huidaodibu"})),oe.createElement("div",{ref:Lr})),!dn&&oe.createElement("div",{style:Tr,className:lt()(tt.footerContainer,Xn&&tt.full,go&&tt.footerContainerSelected)},oe.createElement("div",{className:tt.btnWrp},hr&&oe.createElement(Ee.Z,{title:"\u66F4\u64C5\u957F\u5904\u7406\u4EE3\u7801\u95EE\u9898\uFF0C\u652F\u6301\u4E00\u53E5\u8BDD\u751F\u6210\u5E94\u7528"},oe.createElement("div",{onClick:()=>zn(!bn),className:lt()(tt.btn,bn&&tt.btnActive)},oe.createElement("i",{className:"iconfont icon-daimamoshi1 mr10 font12"}),"\u4EE3\u7801\u6A21\u5F0F")),_n&&oe.createElement(Ee.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},oe.createElement("div",{onClick:()=>ei(!_r),className:lt()(tt.btn,_r&&tt.btnActive)},oe.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),nr==="deepseek-r1"&&oe.createElement(Ee.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},oe.createElement("div",{onClick:()=>Sn(!yn),className:lt()(tt.btn,yn&&tt.btnActive)},oe.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),Oe&&nr==="qwen-max"&&oe.createElement("div",{onClick:()=>qn(!Zn),className:lt()(tt.btn,Zn&&tt.btnActive)},oe.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),Ci.map(xn=>oe.createElement("div",{key:xn.uid},(xn==null?void 0:xn.status)==="uploading"&&oe.createElement(we.Z,{indicator:oe.createElement(dt.Z,{rev:"",spin:!0}),className:"mr10",size:"small",spinning:!0}),oe.createElement("span",{title:xn==null?void 0:xn.name,className:"mr10"},(0,ut.Pq)(xn.name,20)),oe.createElement("i",{onClick:()=>{Gn(gr=>gr.filter(Hr=>Hr.uid!==xn.uid)),Rt(gr=>gr.filter(Hr=>Hr.uid!==xn.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),oe.createElement(Ee.Z,{title:oa&&oe.createElement("div",null,oe.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),oe.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",Qt,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},oe.createElement("div",{className:lt()(tt.inputContainer,Da>4&&tt.lineFour,oa&&tt.disabledInput)},oe.createElement(Ye.default,De({ref:Ni},la)),oe.createElement(Ye.default,De({ref:si},Oa)),oe.createElement(Ie.Z,{className:`${to&&"hide"}`,menu:{items:Zi,onClick:xn=>ta(xn.key)},placement:"top"},oe.createElement(xe.ZP,{className:tt.uploadBtn,icon:oe.createElement(Be.Z,{rev:"",style:{fontSize:18,color:"#FFF"}})})),oe.createElement(he.default.TextArea,{rows:Da>4?4:Da,placeholder:et||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u95EE\u9898\u5427\uFF0CShift+Enter\u6362\u884C\uFF5E",value:mn,bordered:!1,style:to?{paddingLeft:0,marginLeft:0}:{},onChange:Aa,onPressEnter:co,onFocus:()=>Qn==null?void 0:Qn(),onCompositionStart:()=>{ea.current=!0},onCompositionEnd:()=>{ea.current=!1}}),vn?oe.createElement(Ee.Z,{title:"\u505C\u6B62\u751F\u6210"},oe.createElement("div",{className:`iconfont icon-tingzhihuida ${tt.cancelBtn}`,onClick:Bs})):oe.createElement(xe.ZP,{className:(mn==null?void 0:mn.trim())===""?tt.sendBtnDisabled:tt.sendBtn,icon:oe.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:va,onClick:mo}),Da>4&&oe.createElement("span",{className:tt.fullIcon,onClick:Gr},Xn&&oe.createElement("span",{className:"iconfont icon-shousuo"}),!Xn&&oe.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},30327:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Ue}});var oe=ie(59301),ke={flex_box_center:"flex_box_center___A3pzf",flex_space_between:"flex_space_between___JBoa5",flex_box_vertical_center:"flex_box_vertical_center___MJuIO",flex_box_center_end:"flex_box_center_end___OcjUA",flex_box_column:"flex_box_column___zSH4A",list:"list___KhJas",middle:"middle___IjlYi",row:"row___GGtIx",title:"title___o_xqf",size:"size___OVRoL",download:"download___ZLcIH",preview:"preview___gi0kI",annotation:"annotation___KVSwj"},Ce=ie(92310),Ye=ie.n(Ce),ye=ie(34598),Ee=ie(44971),he=ie(27338),xe=ie(45919),we=ie(60343),Te=ie(9166),qe=ie(43006),Ie=ie(8591),Re=(We,ct,tt)=>new Promise((At,ut)=>{var ot=Fe=>{try{Se(tt.next(Fe))}catch(Ze){ut(Ze)}},je=Fe=>{try{Se(tt.throw(Fe))}catch(Ze){ut(Ze)}},Se=Fe=>Fe.done?At(Fe.value):Promise.resolve(Fe.value).then(ot,je);Se((tt=tt.apply(We,ct)).next())});const lt=({className:We,style:ct,dataSource:tt=[],authority:At=!1,callback:ut,showDimensions:ot=!0,classroomList:je})=>{var Se;const[Fe,Ze]=(0,oe.useState)({content:"",type:""}),[xt,Je]=(0,oe.useState)({}),[dt,Be]=(0,oe.useState)(!1),[kt,He]=(0,oe.useState)({title:"",visible:!1,src:"",snapshotData:{}}),Tt=(0,oe.useRef)(),mt=De=>Re(void 0,null,function*(){if(Je(De),De.file_type==="txt"){const ge=yield(0,we.ZP)(De.url,{method:"get",headers:{"Content-Type":"application/xml"}});Tt.current=ge}Ze({type:De.file_type,content:xe.Z.API_SERVER+De.url})}),Et=De=>{var ge;He({visible:!0,src:xe.Z.API_SERVER+De.url,id:De.id,title:De.title,snapshotData:(ge=De==null?void 0:De.subitem)==null?void 0:ge.settings})},zt=De=>Re(void 0,null,function*(){var ge;Ze({type:De.file_type,content:xe.Z.API_SERVER+((ge=De==null?void 0:De.subitem)==null?void 0:ge.url)})}),Bt=()=>{ut(),He({visible:!1})};return tt!=null&&tt.length?oe.createElement(oe.Fragment,null,oe.createElement("div",{className:Ye()(ke.list,We),style:ct},tt.map((De,ge)=>{var at,Ct,It;return oe.createElement("div",{key:ge,className:ke.row},oe.createElement("div",{className:ke.title,onClick:()=>mt(De)},oe.createElement("i",{className:"iconfont icon-fujian1"}),oe.createElement("span",{title:De.title},De.title)),oe.createElement("div",{className:ke.size},De.filesize),oe.createElement("div",{className:ke.download,onClick:()=>{var Qe,et;if((0,Te.Rm)()&&!((Qe=je.AssistantObject.normal)!=null&&Qe.can_download)){Ie.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(0,he.Nd)("",`${xe.Z.API_SERVER}${(et=De.url)==null?void 0:et.replace("disposition=inline","")}`)}},oe.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D"),!["other","download"].includes(De==null?void 0:De.file_type)&&oe.createElement("div",{className:ke.preview,onClick:()=>mt(De)},oe.createElement("i",{className:"iconfont icon-yulan"}),"\u9884\u89C8"),["image"].includes(De==null?void 0:De.file_type)&&ot&&(At?oe.createElement("div",{className:ke.annotation,onClick:()=>Et(De)},oe.createElement("i",{className:"iconfont icon-pizhu"}),(at=De.subitem)!=null&&at.id?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"):((Ct=De.subitem)==null?void 0:Ct.id)&&oe.createElement("div",{className:ke.annotation,onClick:()=>zt(De)},oe.createElement("i",{className:"iconfont icon-chakanlaoshipizhu1"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8")),["image"].includes(De==null?void 0:De.file_type)&&((It=De.subitem)==null?void 0:It.id)&&oe.createElement("div",{className:ke.download,style:{marginLeft:20},onClick:()=>{var Qe,et;(0,he.Nd)("",`${xe.Z.API_SERVER}${(et=(Qe=De==null?void 0:De.subitem)==null?void 0:Qe.url)==null?void 0:et.replace("disposition=inline","")}`)}},oe.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D\u6279\u6CE8\u6587\u4EF6"),["office"].includes(De==null?void 0:De.file_type)&&(0,Te.eB)()&&["xlsx","docx","pptx"].includes(De==null?void 0:De.file_sub)&&ot&&oe.createElement("div",{className:ke.annotation,onClick:()=>{Be(!0),mt(De)}},oe.createElement("i",{className:"iconfont icon-pizhu"}),De.is_edit?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"),De.is_edit&&(0,Te.dE)()&&ot&&oe.createElement("div",{className:ke.annotation,onClick:()=>{mt(De)}},oe.createElement("i",{className:"iconfont icon-sousuo7"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8"))})),oe.createElement(ye.Z,{close:!0,data:Fe==null?void 0:Fe.content,type:Fe==null?void 0:Fe.type,hasMask:!0,disabledDownload:(0,Te.Rm)()&&!((Se=je.AssistantObject.normal)!=null&&Se.can_download),editOffice:dt?"edit":"view",monacoEditor:{value:Tt.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onImgDimensions:At&&ot&&Fe.type==="image"?()=>Et(xt):null,onClose:()=>{ut(),Be(!1),Ze({content:"",type:""})}}),oe.createElement(Ee.Z,{onOk:Bt,onClose:()=>He({visible:!1}),data:kt,showFullTools:!0})):null};var Ue=(0,qe.connect)(({classroomList:We})=>({classroomList:We}))(lt)},44971:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return qe}});var oe=ie(59301),ke={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ce=ie(92310),Ye=ie.n(Ce),ye=ie(71418),Ee=ie(2859),he=ie(60343),xe=ie(27338),we=(Ie,Re,lt)=>new Promise((Ue,We)=>{var ct=ut=>{try{At(lt.next(ut))}catch(ot){We(ot)}},tt=ut=>{try{At(lt.throw(ut))}catch(ot){We(ot)}},At=ut=>ut.done?Ue(ut.value):Promise.resolve(ut.value).then(ct,tt);At((lt=lt.apply(Ie,Re)).next())}),qe=({data:Ie,className:Re,fullWidth:lt,style:Ue={},onClose:We,onOk:ct,showFullTools:tt,noAssociationId:At})=>{const ut=(0,oe.useRef)(null),ot=(0,oe.useRef)(null),je=(0,oe.useRef)(null),Se=(0,oe.useRef)(null),[Fe,Ze]=(0,oe.useState)(!1),[xt,Je]=(0,oe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,oe.useEffect)(()=>{je.current||(je.current=document.createElement("style"),document.head.appendChild(je.current)),Ie!=null&&Ie.visible?(document.body.setAttribute("data-custom","y-hidden"),je.current.innerHTML=" html { overflow-y: hidden; }",Ie!=null&&Ie.src&&dt()):(document.body.removeAttribute("data-custom"),je.current&&(document.head.removeChild(je.current),je.current=null))},[Ie==null?void 0:Ie.visible]);const dt=()=>we(void 0,null,function*(){Ze(!0),Je("\u6B63\u5728\u52A0\u8F7D\u4E2D");const mt=yield(0,xe.ZJ)(Ie==null?void 0:Ie.src);ut.current.src="",ut.current.src=mt,ut.current.onload=function(){Tt()},Ze(!1),Je("")}),Be=()=>{document.body.removeAttribute("data-custom"),je.current.innerHTML=" ",We()},kt=mt=>we(void 0,null,function*(){Ze(!0),Je("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Et=yield(0,he.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ie.title,file:mt.dataUrl}});Et!=null&&Et.id&&!At?(yield(0,he.ZP)(`/api/attachments/${Ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:Et==null?void 0:Et.id,settings:JSON.stringify(mt.state)}})).status===0&&ct():Et!=null&&Et.id&&ct(Et),document.body.removeAttribute("data-custom"),je.current.innerHTML=" ",Ze(!1),Je("")}),He=()=>{const mt=document.querySelector('a[href="https://markerjs.com/"]');mt&&mt.parentNode&&(mt.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(zt=>{const Bt=document.querySelector(zt.name);Bt&&Bt.setAttribute("title",zt.title)})},Tt=()=>{ot.current=new Ee.hP(ut.current),ot.current.targetRoot=Se.current,ot.current.addEventListener("render",kt),ot.current.addEventListener("beforeclose",Be),tt&&(ot.current.availableMarkerTypes=ot.current.ALL_MARKER_TYPES,ot.current.uiStyleSettings.redoButtonVisible=!0,ot.current.uiStyleSettings.notesButtonVisible=!0,ot.current.uiStyleSettings.zoomButtonVisible=!0,ot.current.uiStyleSettings.zoomOutButtonVisible=!0,ot.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ot.current.uiStyleSettings,ot.current.show(),Ie!=null&&Ie.snapshotData&&ot.current.restoreState(Ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),He()},300)};return oe.createElement(oe.Fragment,null,(Ie==null?void 0:Ie.visible)&&oe.createElement(ye.Z,{spinning:Fe,tip:xt,style:{position:"absolute"}},oe.createElement("div",{ref:Se,className:Ye()(ke.imageDimensions,Re,lt?ke.fullWidth:""),style:Ue},oe.createElement("img",{className:ke.img,ref:ut}))))}},93492:function(gn,Kt,ie){"use strict";var oe=ie(59301),ke=ie(95237),Ce=ie(43604),Ye=ie(99313),ye=ie(3113),Ee=ie(97688),he=ie(76769),xe=ie(48136),we=ie(59301);const Te=(0,oe.forwardRef)(({callback:qe,showSaveButton:Ie,value:Re=""},lt)=>{const Ue=(0,oe.useRef)(),We=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ct=[{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}`}]}]}],tt=ot=>{Ue.current.setValue(Ue.current.getValue()+" "+ot.value+" ")},At=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:we.createElement(ke.Z,{className:he.Z.lists,gutter:[10,10]},We.map((ot,je)=>we.createElement(Ce.Z,{flex:"110px",className:he.Z.item},we.createElement("div",null,we.createElement(Ee.Z,{value:`$$${ot.value}$$`}),ot.name),we.createElement("div",{className:he.Z.children},ot.children.map((Se,Fe)=>we.createElement("div",{key:Fe},we.createElement("h1",null,Se.name),we.createElement(ke.Z,{gutter:[10,10]},Se.data.map((Ze,xt)=>we.createElement(Ce.Z,{key:xt,onClick:()=>tt(Ze),className:he.Z.diamond},we.createElement(Ee.Z,{value:"`$$"+Ze.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:we.createElement(ke.Z,{className:he.Z.lists,gutter:[10,10]},ct.map((ot,je)=>we.createElement(Ce.Z,{flex:"110px",className:he.Z.item},we.createElement("div",null,we.createElement(Ee.Z,{value:"`$$"+ot.value+"$$`"}),ot.name),we.createElement("div",{className:he.Z.children},ot.children.map((Se,Fe)=>we.createElement("div",{key:Fe},Se.name&&we.createElement("h1",null,Se.name),we.createElement(ke.Z,{gutter:[10,10]},Se.data.map((Ze,xt)=>we.createElement(Ce.Z,{key:xt,onClick:()=>tt(Ze),className:he.Z.diamond},we.createElement(Ee.Z,{value:"`$$"+Ze.value+"$$`"}))))))))))}],ut=()=>{var ot=document.createElement("div");ot.innerHTML=Ue.current.getValue();var je=ot.innerText;return qe&&qe(je),je};return(0,oe.useImperativeHandle)(lt,()=>({getData:ut})),we.createElement("div",{className:he.Z.mathWrap},we.createElement(Ye.default,{defaultActiveKey:"1",items:At}),we.createElement("math-field",{locale:"zh_cn",className:he.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ue,style:{width:800,marginTop:30,fontSize:18}},Re||""),Ie&&we.createElement("div",{className:he.Z.button},we.createElement(ye.ZP,{size:"large",onClick:ut,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Kt.Z=Te},73059:function(gn,Kt,ie){"use strict";ie.d(Kt,{z:function(){return Bt},Z:function(){return De}});var oe=ie(59301),ke=ie(54580),Ce=ie(8591),Ye=ie(43418),ye=ie(3113),Ee=ie(45919),he=ie(28333),xe=Object.defineProperty,we=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Ie=(ge,at,Ct)=>at in ge?xe(ge,at,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):ge[at]=Ct,Re=(ge,at)=>{for(var Ct in at||(at={}))Te.call(at,Ct)&&Ie(ge,Ct,at[Ct]);if(we)for(var Ct of we(at))qe.call(at,Ct)&&Ie(ge,Ct,at[Ct]);return ge},lt=(ge,at,Ct)=>new Promise((It,Qe)=>{var et=_t=>{try{dn(Ct.next(_t))}catch(tn){Qe(tn)}},Lt=_t=>{try{dn(Ct.throw(_t))}catch(tn){Qe(tn)}},dn=_t=>_t.done?It(_t.value):Promise.resolve(_t.value).then(et,Lt);dn((Ct=Ct.apply(ge,at)).next())});const Ue="\u3000\u3000";function We(ge){var at=["Bytes","KB","MB","GB","TB"];if(ge==0)return"0 Byte";var Ct=parseInt(""+Math.floor(Math.log(ge)/Math.log(1024)),10);return(ge/Math.pow(1024,Ct)).toFixed(1)+" "+at[Ct]}var ct=({value:ge=[],action:at,onChange:Ct,className:It,maxSize:Qe=150,title:et="\u6587\u4EF6\u4E0A\u4F20",accept:Lt=null})=>{const dn={multiple:!1,fileList:ge,accept:Lt,withCredentials:!0,beforeUpload:tn=>tn.size/1024/1024<Qe?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Qe}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(tn){var en,Jt,Vt,be;let ce=[...tn.fileList];if(ce=ce.map(ue=>(ue.name.indexOf(Ue)===-1&&(ue.name=`${ue.name}${Ue}${We(ue.size)}`),Re({},ue))),tn.file.status==="done"&&((Jt=(en=tn.file)==null?void 0:en.response)==null?void 0:Jt.status)===-1){message.error((be=(Vt=tn.file)==null?void 0:Vt.response)==null?void 0:be.message),Ct([]);return}Ct(ce)},onRemove:tn=>lt(void 0,null,function*(){const en=tn.size/1024/1024;return tn.status==="uploading"?!0:en<Qe&&(tn.response?tn.response.id:tn.uid)?yield removeAttachment(tn.response?tn.response.id:tn.id):!0})};function _t(tn){tn.preventDefault(),tn.stopPropagation()}return React.createElement("div",{className:`single-upload ${It||""}`},React.createElement(Upload,Re({},dn),React.createElement(Button,{type:"primary",title:ge.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:ge.length>0,ghost:!0},et),React.createElement("span",{onClick:_t,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Qe,"M)"," ")))},tt=ie(61481),At=ie(89392),ut=Object.defineProperty,ot=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Fe=(ge,at,Ct)=>at in ge?ut(ge,at,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):ge[at]=Ct,Ze=(ge,at)=>{for(var Ct in at||(at={}))je.call(at,Ct)&&Fe(ge,Ct,at[Ct]);if(ot)for(var Ct of ot(at))Se.call(at,Ct)&&Fe(ge,Ct,at[Ct]);return ge};const xt=ge=>React.createElement("svg",Ze({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},ge),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var Je="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",dt=Object.defineProperty,Be=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Tt=(ge,at,Ct)=>at in ge?dt(ge,at,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):ge[at]=Ct,mt=(ge,at)=>{for(var Ct in at||(at={}))kt.call(at,Ct)&&Tt(ge,Ct,at[Ct]);if(Be)for(var Ct of Be(at))He.call(at,Ct)&&Tt(ge,Ct,at[Ct]);return ge},Et=(ge,at,Ct)=>new Promise((It,Qe)=>{var et=_t=>{try{dn(Ct.next(_t))}catch(tn){Qe(tn)}},Lt=_t=>{try{dn(Ct.throw(_t))}catch(tn){Qe(tn)}},dn=_t=>_t.done?It(_t.value):Promise.resolve(_t.value).then(et,Lt);dn((Ct=Ct.apply(ge,at)).next())});const{Dragger:zt}=ke.default;function Bt(ge){let at=[];return ge&&ge.length>0&&(at=ge.map(Ct=>({uid:Ct.id,id:Ct.id,name:Ct.title+Ue+Ct.filesize,url:Ct.url,filesize:Ct.filesize,status:"done",response:{id:Ct.id}}))),at}var De=({value:ge,onChange:at,action:Ct,data:It,className:Qe,maxSize:et=150,title:Lt="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:dn=!1,accept:_t="",additionalText:tn,isDragger:en,number:Jt=1e3,aloneClear:Vt=!1,realTimeRemove:be=!0,uploadText:ce,setFileProgress:ue,showFileProgress:de})=>{const[pe,se]=(0,oe.useState)(!1);let[Le,ht]=(0,oe.useState)(ge||[]),[_e,Ne]=(0,oe.useState)(1);(0,oe.useEffect)(()=>{ge&&(_e===1&&ht([...ge]),Ne(2),Jt===(ge==null?void 0:ge.length)&&se(!0))},[ge]);const St=()=>{setTimeout(()=>{Le.pop(),ht([...Le])},500)};de&&ue(Le.some(wt=>wt.status==="uploading"));const gt={multiple:!0,disabled:pe,accept:_t,withCredentials:!0,fileList:Le,beforeUpload:(wt,Xt)=>{const bt=wt.size/1024/1024;return Le.concat(Xt).length>Jt?(Le.pop(),ht([...Le]),Ce.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Jt}\u4E2A\u6587\u4EF6`),Vt?Promise.reject():(St(),!1)):bt<et?!0:(Ce.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${et}MB).`),Vt?Promise.reject():(St(),!1))},data:It,action:Ct||`${Ee.Z.API_SERVER}/api/attachments.json`,onChange(wt){var Xt,bt,$t,on;if(wt.file.status==="removed"?Le=wt.fileList:Le=(0,At.uniqBy)([...wt.fileList,...Le],"uid"),wt.file.status==="done"&&((bt=(Xt=wt.file)==null?void 0:Xt.response)==null?void 0:bt.status)===-1){Ce.ZP.error((on=($t=wt.file)==null?void 0:$t.response)==null?void 0:on.message);return}Le.length>=Jt?se(!0):se(!1),ht([...Le]),Le=Le.map(vt=>{var Oe,yt;return(Oe=vt==null?void 0:vt.response)!=null&&Oe.id&&(vt.url=(yt=vt==null?void 0:vt.response)==null?void 0:yt.url),vt.name.indexOf(Ue)===-1&&(vt.name=`${vt.name}${Ue}${We(vt.size)}`),mt({},vt)}),console.log("info:",wt,Le),at(Le)},onRemove:wt=>Et(void 0,null,function*(){if(!be)return!0;const Xt=()=>Et(void 0,null,function*(){if(wt.response?wt.response.id:wt.id){let $t=yield(0,he.JZ)(wt.response?wt.response.id:wt.uid);return Promise.resolve($t)}else return!0});return dn?new Promise((bt,$t)=>{Ye.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:oe.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Et(void 0,null,function*(){const on=yield Xt();Ce.ZP.success("\u5220\u9664\u6210\u529F"),bt(!0)}),onCancel:()=>bt(!1)})}):yield Xt()})};function Xe(wt){wt.preventDefault(),wt.stopPropagation()}return oe.createElement("div",{className:`multi-upload ${Qe||""}`},en&&oe.createElement(zt,mt({},gt),oe.createElement("p",{className:"ant-upload-drag-icon"},oe.createElement(tt.Z,null)),oe.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",oe.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",et,"MB)"," "),tn),!en&&oe.createElement(ke.default,mt({},gt),oe.createElement(ye.ZP,{disabled:pe,className:"upload_button"},oe.createElement("img",{className:"aBtn_img",src:Je}),Lt),oe.createElement("span",{onClick:Xe,className:"upload_text"},ce||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${et}MB)`)))}},61110:function(gn,Kt,ie){"use strict";ie.d(Kt,{h:function(){return Ue},x:function(){return We}});var oe=ie(4773),ke=ie(93670),Ce=ie(97688),Ye=ie(59301),ye=Object.defineProperty,Ee=Object.defineProperties,he=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,qe=(ct,tt,At)=>tt in ct?ye(ct,tt,{enumerable:!0,configurable:!0,writable:!0,value:At}):ct[tt]=At,Ie=(ct,tt)=>{for(var At in tt||(tt={}))we.call(tt,At)&&qe(ct,At,tt[At]);if(xe)for(var At of xe(tt))Te.call(tt,At)&&qe(ct,At,tt[At]);return ct},Re=(ct,tt)=>Ee(ct,he(tt)),lt=(ct,tt)=>{var At={};for(var ut in ct)we.call(ct,ut)&&tt.indexOf(ut)<0&&(At[ut]=ct[ut]);if(ct!=null&&xe)for(var ut of xe(ct))tt.indexOf(ut)<0&&Te.call(ct,ut)&&(At[ut]=ct[ut]);return At};const Ue=ct=>{var tt=ct,{value:At,onChange:ut,scrollId:ot}=tt,je=lt(tt,["value","onChange","scrollId"]);return Ye.createElement("div",{id:ot||""},Ye.createElement(oe.Z,Re(Ie({},je),{defaultValue:At,onChange:(Se,Fe)=>{Fe!=null&&Fe.length?ut(Se,Fe):ut(Se)}})))},We=({value:ct,onChange:tt,placeholder:At,height:ut=140,isEdit:ot,miniToolbar:je,watch:Se=!0})=>ot?Ye.createElement(oe.Z,{watch:Se,isFocus:!0,height:ut||void 0,placeholder:At,defaultValue:ct,onChange:tt,miniToolbar:je}):Ye.createElement("div",{style:{cursor:"pointer"}},ct?Ye.createElement(Ce.Z,{className:ke.Z.inputBorder,value:ct}):Ye.createElement("div",{className:`${ke.Z.inputBorder} ${ke.Z.placeholder} inputBorderError`},At))},61226:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return kt}});var oe=ie(59301),ke=ie(43006),Ce=ie(43418),Ye=ie(78241),ye=ie(8591),Ee=ie(71418),he=ie(17574),xe=ie(95237),we=ie(43604),Te=ie(6848),qe=ie(92832),Ie={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},Re=ie(10907),lt=ie(90738),Ue=ie(68606),We=ie(29319),ct=Object.defineProperty,tt=Object.defineProperties,At=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Se=(He,Tt,mt)=>Tt in He?ct(He,Tt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):He[Tt]=mt,Fe=(He,Tt)=>{for(var mt in Tt||(Tt={}))ot.call(Tt,mt)&&Se(He,mt,Tt[mt]);if(ut)for(var mt of ut(Tt))je.call(Tt,mt)&&Se(He,mt,Tt[mt]);return He},Ze=(He,Tt)=>tt(He,At(Tt)),xt=(He,Tt)=>{var mt={};for(var Et in He)ot.call(He,Et)&&Tt.indexOf(Et)<0&&(mt[Et]=He[Et]);if(He!=null&&ut)for(var Et of ut(He))Tt.indexOf(Et)<0&&je.call(He,Et)&&(mt[Et]=He[Et]);return mt},Je=(He,Tt,mt)=>new Promise((Et,zt)=>{var Bt=at=>{try{ge(mt.next(at))}catch(Ct){zt(Ct)}},De=at=>{try{ge(mt.throw(at))}catch(Ct){zt(Ct)}},ge=at=>at.done?Et(at.value):Promise.resolve(at.value).then(Bt,De);ge((mt=mt.apply(He,Tt)).next())});const dt=(He=[])=>He==null?void 0:He.map(Tt=>Ze(Fe({},Tt),{title:(Tt==null?void 0:Tt.value)||"",key:Tt==null?void 0:Tt.id,isLeaf:!0})),Be=He=>{var Tt=He,{user:mt,children:Et,isShowComponent:zt=!0,ModalProps:Bt={},onDataSelect:De}=Tt,ge=xt(Tt,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[at,Ct]=Ce.default.useModal(),[It]=Ye.default.useForm(),[Qe,et]=(0,oe.useState)([]),[Lt,dn]=(0,oe.useState)(!1),[_t,tn]=(0,oe.useState)(!1),[,en,Jt,Vt]=(0,Re.U)(lt.qE,{page:1,limit:9999}),[,,be]=(0,Re.U)(lt.V8,{}),[,,ce]=(0,Re.U)(lt.B$,{}),[,,ue]=(0,Re.U)(lt.DH,{}),[,,de]=(0,Re.U)(lt.bJ,{}),pe=()=>{dn(!1),It.resetFields(),tn(!1)},se=ht=>Je(void 0,null,function*(){const{node:_e,dragNode:Ne,event:St}=ht,gt=ht.node.pos.split("-"),Xe=ht.dropPosition-Number(gt[gt.length-1]);if(Xe==0){ye.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(Xe==1&&(Ne==null?void 0:Ne.item_index)==(_e==null?void 0:_e.item_index)+1){ye.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const wt=yield de({id:Ne==null?void 0:Ne.key,position:Xe==-1?1:(Ne==null?void 0:Ne.item_index)>(_e==null?void 0:_e.item_index)?(_e==null?void 0:_e.item_index)+1:_e==null?void 0:_e.item_index});(wt==null?void 0:wt.status)===0&&(ye.ZP.success("\u79FB\u52A8\u6210\u529F"),Jt({},!0))}),Le=ht=>Je(void 0,null,function*(){let _e={};_t?_e=yield ce(Fe({},ht)):_e=yield ue(Fe({},ht)),(_e==null?void 0:_e.status)==0&&(ye.ZP.success((_e==null?void 0:_e.message)||(_t?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),Jt({},!0),pe())});return(0,oe.useEffect)(()=>{Bt!=null&&Bt.open&&Jt({},!0)},[Bt==null?void 0:Bt.open]),(0,oe.useEffect)(()=>{var ht;et(dt((ht=Vt==null?void 0:Vt.data)==null?void 0:ht.list))},[Vt]),zt?oe.createElement(oe.Fragment,null,Ct,Et,oe.createElement(Ce.default,Fe({},Fe({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},Bt)),oe.createElement(Ee.Z,{spinning:en},(Qe==null?void 0:Qe.length)>0?oe.createElement(oe.Fragment,null,oe.createElement(he.default.DirectoryTree,{height:500,className:Ie.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:De,treeData:Qe,onDrop:se,titleRender:ht=>oe.createElement(oe.Fragment,null,oe.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},ht==null?void 0:ht.title),oe.createElement("div",{className:`${Ie.EditDom}`},oe.createElement(xe.Z,{wrap:!1,align:"middle",gutter:16},oe.createElement(we.Z,null,oe.createElement(Te.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},oe.createElement("i",{className:`iconfont icon-tuodong1 font12 ${Ie.currentPrimary}`}))),oe.createElement(we.Z,null,oe.createElement(Te.Z,{title:"\u7F16\u8F91"},oe.createElement("i",{className:`iconfont icon-bianji11 font12 ${Ie.currentPrimary}`,onClick:_e=>{_e.stopPropagation(),It.setFieldsValue(Fe({},ht)),dn(!0)}}))),oe.createElement(we.Z,null,oe.createElement(Te.Z,{title:"\u5220\u9664"},oe.createElement("i",{className:`iconfont icon-shanchu14 font12 ${Ie.currentDelete}`,onClick:_e=>{_e.stopPropagation(),at.confirm({icon:null,title:"\u5220\u9664\u5E38\u7528\u8BC4\u8BED",centered:!0,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u5E38\u7528\u8BC4\u8BED\u5417\uFF1F",onOk:()=>Je(void 0,null,function*(){const Ne=yield be({id:ht==null?void 0:ht.key});(Ne==null?void 0:Ne.status)==0&&(ye.ZP.success((Ne==null?void 0:Ne.message)||"\u5220\u9664\u6210\u529F"),Jt({},!0))})})}}))))))}),oe.createElement(We.op,{className:"ml20 mt20",icon:oe.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{tn(!0),dn(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):oe.createElement(Ue.Z,{styles:{margin:"30px auto"},customText:oe.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",oe.createElement("a",{onClick:()=>{tn(!0),dn(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),oe.createElement(Ce.default,{title:_t?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:Lt,okText:_t?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{pe()},onOk:()=>{It.submit()}},oe.createElement(Ye.default,{form:It,onFinish:Le},_t&&oe.createElement("span",{className:"font14",style:{color:"#191919"}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED\uFF0C\u53EF\u4EE5\u5E2E\u52A9\u4F60\u63D0\u9AD8\u8BC4\u9605\u4F5C\u4E1A\u7684\u6548\u7387"),oe.createElement(Ye.default.Item,{hidden:!0,name:"id"}),oe.createElement(Ye.default.Item,{className:"mt10",name:"value"},oe.createElement(qe.default.TextArea,{placeholder:"\u8F93\u5165\u5E38\u7528\u8BC4\u8BED\u3002\u4F8B\u5982\uFF1A\u4F60\u7684\u7F16\u7A0B\u4F5C\u4E1A\u6574\u4F53\u8868\u73B0\u826F\u597D\uFF0C\u4F46\u4ECD\u6709\u4E00\u4E9B\u5C0F\u7684\u6539\u8FDB\u7A7A\u95F4\u3002",autoSize:{minRows:8,maxRows:9},maxLength:100,showCount:!0}))))):null};var kt=(0,ke.connect)(({loading:He,user:Tt})=>({user:Tt,loading:He.effects}))(Be)},20630:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Ye}});var oe=ie(59301),ke=ie(78918),Ce=ie(11611),Ye=()=>{const[ye,Ee]=(0,oe.useState)(""),[he,xe]=(0,oe.useState)(0);let[we,Te]=(0,oe.useState)(),[qe,Ie]=(0,oe.useState)();const[Re,lt]=(0,oe.useState)(!1),Ue=(0,oe.useRef)("");(0,oe.useEffect)(()=>ke.Z.subscribe("preview-image",xt=>{Ee(xt),console.log(Se.current),document.body.style.overflow="hidden"}),[]),(0,oe.useEffect)(()=>(document.addEventListener("keydown",We),()=>{document.removeEventListener("keydown",We)}),[]),(0,oe.useEffect)(()=>{Ue.current=ye},[ye]);function We(Ze){Ze.keyCode==27&&Ue.current&&ct()}function ct(){document.body.style.overflow="auto",Te(void 0),Ie(void 0),xe(0),Ee("")}function tt(){xe(he+90)}function At(){we=Se.current.width*1.1,qe=Se.current.height*1.1,Ie(qe),Te(we)}function ut(){we=Se.current.width/1.1,qe=Se.current.height/1.1,Ie(qe),Te(we)}const ot=(0,oe.useRef)(),je=(0,oe.useRef)(),Se=(0,oe.useRef)(),Fe=Ze=>{(Ze.nativeEvent.target===ot.current||Ze.nativeEvent.target===je.current)&&ct()};return oe.createElement(oe.Fragment,null,ye?oe.createElement("div",null,oe.createElement("div",{className:"preview-wrp-group",ref:je},oe.createElement(Ce.Z,{className:"image-preview",src:ye,style:{display:"none"},preview:{visible:!0,src:ye,movable:!1,onVisibleChange:Ze=>{Ee("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},96172:function(gn,Kt,ie){"use strict";ie.d(Kt,{h:function(){return ot}});var oe=ie(59301),ke=ie(57809),Ce=ie(78241),Ye=ie(3113),ye=ie(89780),Ee=ie.n(ye),he=ie(32012),xe=ie(55651),we=Object.defineProperty,Te=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,Ue=(je,Se,Fe)=>Se in je?we(je,Se,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):je[Se]=Fe,We=(je,Se)=>{for(var Fe in Se||(Se={}))Re.call(Se,Fe)&&Ue(je,Fe,Se[Fe]);if(Ie)for(var Fe of Ie(Se))lt.call(Se,Fe)&&Ue(je,Fe,Se[Fe]);return je},ct=(je,Se)=>Te(je,qe(Se));const tt=ke.default.Option,At={labelCol:{span:4},wrapperCol:{span:20}},ut={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"]};Kt.Z=({callback:je,onCancel:Se})=>{const[Fe,Ze]=(0,oe.useState)("python");function xt(dt){Ze(ut[dt][1])}function Je(dt){je(dt)}return oe.createElement(Ce.default,ct(We({},At),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Je,style:{width:500}}),oe.createElement(Ce.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},oe.createElement(ke.default,{getPopupContainer:dt=>dt.parentNode,onChange:xt},Object.keys(ut).map(dt=>oe.createElement(tt,{key:dt,value:dt},ut[dt][0])))),oe.createElement(Ce.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},oe.createElement(ot,{mode:Fe})),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Ye.ZP,{type:"ghost",onClick:Se},"\u53D6\u6D88")))};function ot({value:je,onChange:Se,mode:Fe,options:Ze={}}){const xt=(0,oe.useRef)(),[Je,dt]=(0,oe.useState)();return(0,oe.useEffect)(()=>{if(Je){let Be=function(kt){const He=kt.getValue();Se&&Se(He)};return Je.on("change",Be),()=>{Je.off("change",Be)}}},[Je,Se]),(0,oe.useEffect)(()=>{Je&&Je.setOption("mode",Fe)},[Je,Fe]),(0,oe.useEffect)(()=>{Je&&(je!==Je.getValue()||je==="")&&setTimeout(()=>{Je.setValue(je||"")},300)},[Je,je]),(0,oe.useEffect)(()=>{if(xt.current&&!Je){const Be=Ee().fromTextArea(xt.current,We({mode:Fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ze));dt(Be)}},[xt.current,Je]),oe.createElement("div",{className:"my-codemirror-container"},oe.createElement("textarea",{ref:xt}))}},4773:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return ai}});var oe=ie(59301),ke=ie(89780),Ce=ie.n(ke),Ye=ie(76374),ye=ie(32012),Ee=ie(6313),he=ie(25717),xe=ie(99498),we=ie(25419),Te=ie(67549),qe=ie(97688),Ie=({value:nr="",className:yr,showTextOnly:Hn,showLines:Gn,style:Or={}})=>{const Rt=(0,oe.useMemo)(()=>"",[nr]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{dangerouslySetInnerHTML:{__html:Rt}}))},Re=ie(59301),lt=Object.defineProperty,Ue=Object.defineProperties,We=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,ut=(nr,yr,Hn)=>yr in nr?lt(nr,yr,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):nr[yr]=Hn,ot=(nr,yr)=>{for(var Hn in yr||(yr={}))tt.call(yr,Hn)&&ut(nr,Hn,yr[Hn]);if(ct)for(var Hn of ct(yr))At.call(yr,Hn)&&ut(nr,Hn,yr[Hn]);return nr},je=(nr,yr)=>Ue(nr,We(yr));let Se=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Fe({onActionCallback:nr,title:yr,icon:Hn,actionName:Gn,className:Or="",children:Rt}){function Ke(){nr(Gn)}return Re.createElement("a",{title:yr,className:Or,onClick:Ke},Re.createElement("i",{className:`${Hn}`}),Rt)}var Ze=({watch:nr,showNullButton:yr,showNullProgramButton:Hn,onActionCallback:Gn,fullScreen:Or,insertTemp:Rt,hidetoolBar:Ke,extraUse:nt})=>{const rt=[...Se,{title:`${nr?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${nr?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Re.createElement("ul",{className:"markdown-toolbar-container"},!Ke&&rt.map((it,Dt)=>Re.createElement("li",{key:Dt},it.actionName?Re.createElement(Fe,je(ot({},it),{onActionCallback:Gn})):Re.createElement("span",{className:"v-line"}))),yr?Re.createElement("li",null,Re.createElement(Fe,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Gn},Re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Hn?Re.createElement(Re.Fragment,null,Re.createElement("li",null,Re.createElement(Fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Gn},Re.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Re.createElement("li",null,Re.createElement(Fe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Gn},Re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Rt&&Re.createElement("li",null,Re.createElement(Fe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Rt}`,onActionCallback:Gn},Re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),nt&&Re.createElement("li",null,nt),Re.createElement("li",{className:"btn-full-screen"},Re.createElement(Fe,{icon:`${Or?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Or?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Gn})))},xt=ie(52163),Je=ie(78241),dt=ie(92832),Be=ie(3113),kt=Object.defineProperty,He=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Bt=(nr,yr,Hn)=>yr in nr?kt(nr,yr,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):nr[yr]=Hn,De=(nr,yr)=>{for(var Hn in yr||(yr={}))Et.call(yr,Hn)&&Bt(nr,Hn,yr[Hn]);if(mt)for(var Hn of mt(yr))zt.call(yr,Hn)&&Bt(nr,Hn,yr[Hn]);return nr},ge=(nr,yr)=>He(nr,Tt(yr));const at={labelCol:{span:4},wrapperCol:{span:20}};var Ct=({callback:nr,onCancel:yr})=>{function Hn(Gn){nr(Gn)}return oe.createElement(Je.default,ge(De({},at),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Hn,style:{width:500}}),oe.createElement(Je.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},oe.createElement(dt.default,null)),oe.createElement(Je.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},oe.createElement(dt.default,null)),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Be.ZP,{type:"ghost",onClick:yr},"\u53D6\u6D88")))},It=ie(96172),Qe=ie(40738),et=ie(43418),Lt=ie(95237),dn=ie(44971),_t=ie(59301),tn=({callback:nr,onCancel:yr})=>{const Hn=document.createElement("canvas"),Gn=Hn.getContext("2d");Hn.width=1e3,Hn.height=800,Gn.fillStyle="#ffffff",Gn.fillRect(0,0,Hn.width,Hn.height);const Or=Hn.toDataURL("image/png");return _t.createElement(et.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},_t.createElement(Lt.Z,{style:{height:"100vh"}},_t.createElement(dn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Or,visible:!0,title:String(Date.now())},onOk:Rt=>{nr({src:Rt.url})},onClose:yr})))},en=ie(8591),Jt=ie(43428),Vt=ie(43604),be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ce=ie(59301),de=(0,oe.forwardRef)(({onCancel:nr,editImgId:yr,callback:Hn},Gn)=>{let Or=(0,oe.useRef)(),Rt=(0,oe.useRef)(),Ke=(0,oe.useRef)(),nt=(0,oe.useRef)(!1);const rt=(0,oe.useRef)(!1);console.log("ref:",Gn);const[it,Dt]=(0,oe.useState)(0),[Ht,sn]=(0,oe.useState)("100vh");(0,oe.useEffect)(()=>{Dt(1);try{indexedDB.databases().then(An=>{An.forEach(Tn=>indexedDB.deleteDatabase(Tn.name))})}catch(An){}},[]),(0,oe.useEffect)(()=>(window.addEventListener("message",mn),()=>{window.removeEventListener("message",mn)}),[]),(0,oe.useImperativeHandle)(Gn,()=>({setHeight:sn}));const qt=An=>{window.saveDrawData(Tn=>{if(Tn===null&&!An){en.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}en.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Hn({src:`/api/attachments/${Tn}`,id:Tn,disabledClose:!0})})},mn=An=>{var Tn;((Tn=An==null?void 0:An.data)==null?void 0:Tn.type)==="closePop"&&qt(!0)};return ce.createElement("div",{ref:rt,className:"body-overflow-initial"},ce.createElement(Jt.Z,{width:"100vw",height:Ht,footer:null,closable:!0,placement:"bottom",open:!!it,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${be.drawerWrap}`,onClose:()=>{window.saveDrawData(An=>{Hn({src:`/api/attachments/${An}`,id:An})})},title:ce.createElement(Lt.Z,{align:"middle"},ce.createElement(Vt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ce.createElement(Vt.Z,{onClick:()=>{sn(Ht==="60px"?"100vh":"60px")}},ce.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ce.createElement(Vt.Z,{onClick:qt},ce.createElement(Be.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ce.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${yr||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Rt})))}),pe=ie(45919),se=ie(5112),Le=ie(5871);const ht=se.ZP.Group,_e={margin:"0 8px"};var Ne=({callback:nr,onCancel:yr})=>{function Hn(Gn){nr(Gn)}return oe.createElement(Je.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Hn},oe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},oe.createElement("span",{style:_e},"\u5355\u5143\u683C\u6570\uFF1A"),oe.createElement("span",{style:_e},"\u884C\u6570"),oe.createElement(Je.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},oe.createElement(Le.Z,null)),oe.createElement("span",{style:_e},"\u5217\u6570"),oe.createElement(Je.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},oe.createElement(Le.Z,null))),oe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},oe.createElement("span",{style:_e},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),oe.createElement(Je.default.Item,{name:"align"},oe.createElement(ht,null,oe.createElement(se.ZP,{value:"default"},oe.createElement("i",{className:"fa fa-align-justify"})),oe.createElement(se.ZP,{value:"left"},oe.createElement("i",{className:"fa fa-align-left"})),oe.createElement(se.ZP,{value:"center"},oe.createElement("i",{className:"fa fa-align-center"})),oe.createElement(se.ZP,{value:"right"},oe.createElement("i",{className:"fa fa-align-right"}))))),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Be.ZP,{type:"ghost",onClick:yr},"\u53D6\u6D88")))},St=ie(78673),gt=ie(95295),Xe=ie.n(gt),Xt=(0,oe.forwardRef)(({use3d:nr,width:yr,height:Hn,callback:Gn,showSaveButton:Or},Rt)=>{const Ke=(0,oe.useRef)(),nt=(0,oe.useRef)(),[rt,it]=(0,oe.useState)(!1),Dt=(0,oe.useRef)({id:Ke,appName:"graphing",width:yr||1e3,height:Hn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,oe.useEffect)(()=>{nt.current=new(Xe())(Dt.current,!0),window.onload=function(){nt.current.inject("applet_container")}},[]);const Ht=()=>{var sn=window.ggbApplet.getPNGBase64(1,!0,72);return Gn&&Gn(sn),sn};return(0,oe.useEffect)(()=>{Dt.current.appName=rt?"3D":"graphing",nt.current.inject("applet_container")},[rt]),(0,oe.useEffect)(()=>{it(nr)},[nr]),(0,oe.useImperativeHandle)(Rt,()=>({getImgData:Ht})),oe.createElement(oe.Fragment,null,oe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ke}),oe.createElement(Lt.Z,{align:"middle"},oe.createElement(Vt.Z,{flex:1},oe.createElement(St.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:rt,onChange:sn=>it(sn)})),oe.createElement(Vt.Z,null,oe.createElement(Be.ZP,{size:"large",onClick:Ht,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),bt=ie(93492),$t=ie(1012);const on="link",vt="upload-image",Oe="add-flowchart",yt="draw-image",jt="add-flowchart",Zt="code-block",nn="add-table",Cn="------------",In={default:Cn,left:`:${Cn}`,center:`:${Cn}:`,right:`${Cn}:`};var Dn=ie(13066),Kn=(nr,yr,Hn)=>new Promise((Gn,Or)=>{var Rt=rt=>{try{nt(Hn.next(rt))}catch(it){Or(it)}},Ke=rt=>{try{nt(Hn.throw(rt))}catch(it){Or(it)}},nt=rt=>rt.done?Gn(rt.value):Promise.resolve(rt.value).then(Rt,Ke);nt((Hn=Hn.apply(nr,yr)).next())});function Vn(){}let _n=0;const or=1e4,wr="\u2581",Tr="@\u2581\u2581@",Yn="@\u2581@",hr=`
|
|
|
**\u6A21\u677F\u6807\u9898**
|
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,kr=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Qn(nr){return/^\d+$/.test(nr)?`${nr}px`:nr}const ci=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Cr={[ci+"-B"]:"bold",[ci+"-I"]:"italic"},pi={[on]:"\u6DFB\u52A0\u94FE\u63A5",[Zt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[vt]:"\u6DFB\u52A0\u56FE\u7247",[yt]:"\u6DFB\u52A0\u753B\u56FE",[Oe]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[nn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ai=({defaultValue:nr="",onChange:yr,width:Hn="100%",height:Gn=400,miniToolbar:Or=!1,isFocus:Rt=!1,watch:Ke,insertTemp:nt,mode:rt="markdown",id:it="markdown-editor-id",showResizeBar:Dt=!1,noStorage:Ht=!1,showNullButton:sn=!1,showNullProgramButton:qt=!1,hidetoolBar:mn=!1,fullScreen:An=!1,onBlur:Tn,onCMBeforeChange:Pn,onFullScreen:Qt,className:wn="",disablePaste:Xn=!1,disabled:Wn=!1,disabledFill:sr=!1,placeholder:Jn="",values:Ar="",extraUse:Fn,onAddBlank:dr})=>{const[Ot,cn]=(0,oe.useState)(null),[vn,Mn]=(0,oe.useState)(nr),[yn,Sn]=(0,oe.useState)(Ke),[bn,zn]=(0,oe.useState)(An),[Zn,qn]=(0,oe.useState)(""),[_r,ei]=(0,oe.useState)(0),[di,zr]=(0,oe.useState)(Gn),[Lr,mi]=(0,oe.useState)(!1),oi=(0,oe.useRef)((0,$t.Z)()),ti=(0,oe.useRef)(!1),Pr=(0,oe.useRef)(),[Vr,En]=(0,oe.useState)(0),[Yr,Li]=(0,oe.useState)(0),Yi=(0,oe.useRef)(),ni=(0,oe.useRef)(),tr=(0,oe.useRef)(),Un=(0,oe.useRef)(),Qr=(0,oe.useRef)(),Dr=(0,oe.useRef)(),fi=()=>Kn(void 0,null,function*(){var vr;const br=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:oi.current}});(vr=br==null?void 0:br.attachments)!=null&&vr.length&&(console.log("cm:",Ot,Yi),br.attachments.map(xr=>{xr.content_type.indexOf("image")>-1?Ot.replaceSelection(``):xr.content_type.indexOf("video")>-1?Ot.replaceSelection(`<video width="100%" controls src="${pe.Z.API_SERVER}/api/attachments/${data.id}"></video>`):xr.content_type.indexOf("pdf")>-1?Ot.replaceSelection(`<a href="${pe.Z.API_SERVER}/api/attachments/${xr.id}?type=${xr.content_type}&disposition=inline" target="_blank">${xr.name}</a>`):Ot.replaceSelection(`[${xr.name}](${pe.Z.API_SERVER}/api/attachments/${xr.id}?type=${xr.content_type})`)}))});(0,oe.useEffect)(()=>{const vr=window.scrollY||window.pageYOffset;Mn(Ar),Ot==null||Ot.setValue(Ar),window.scrollTo(0,vr)},[Ar]),(0,oe.useEffect)(()=>{Qt==null||Qt(bn)},[bn]),(0,oe.useEffect)(()=>{if(Yi.current){let vr=function(xr,Gr){var ia;if(Xn){Gr.preventDefault();return}const wa=Gr.clipboardData;if(wa){const Ea=wa.types.toString(),Sa=wa.items;if(Ea==="Files"||wa.types.indexOf("Files")>-1){if(Gr.preventDefault(),rt=="stex")return;try{let Aa=Sa[1];((ia=Sa[0])==null?void 0:ia.kind)==="file"&&(Aa=Sa[0]);const _a=Aa.getAsFile(),mo=_a.name.split(".").pop();(0,Qe.I)(_a,co=>{var qo,Bo,eo;co.id?((qo=_a==null?void 0:_a.type)==null?void 0:qo.indexOf("image"))>-1?br.replaceSelection(`<img width="100%" src="/api/attachments/${co.id}?type=${co.content_type})" alt="" />`):((Bo=_a==null?void 0:_a.type)==null?void 0:Bo.indexOf("video"))>-1?br.replaceSelection(`<video width="100%" controls src="/api/attachments/${co.id}"></video>`):((eo=_a==null?void 0:_a.type)==null?void 0:eo.indexOf("pdf"))>-1?br.replaceSelection(`<a href="/api/attachments/${co.id}?type=${_a.type}&disposition=inline" target="_blank">${_a.name}</a>`):kr.includes(mo)?br.replaceSelection(`<a href="/api/attachments/${co.id}?type=office&disposition=inline" target="_blank">${_a.name}</a>`):br.replaceSelection(`[${_a.name}](/api/attachments/${co.id}?type=${co.content_type})`):(co==null?void 0:co.status)===401&&(en.ZP.warning((co==null?void 0:co.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Aa){en.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const br=Ce().fromTextArea(Yi.current,{mode:rt,lineNumbers:!Or,lineWrapping:!0,value:nr,autoCloseTags:!qt,autoCloseBrackets:!0});return br.on("keyup",function(xr,Gr){Gr.keyCode===8&&(xr.getValue()==""?br.setOption("placeholder",Jn):br.setOption("placeholder",null))}),br.on("keydown",function(xr,Gr){if(Gr.keyCode===8){var ia=si(xr);ia&&Gr.preventDefault()}}),Rt&&br.focus(),br.on("paste",vr),br.on("dragleave",function(xr,Gr){ni.current.classList.remove("mouse-hover-md")}),Wn&&br.on("beforeChange",function(xr,Gr){(Gr.origin==="paste"||Gr.origin==="+input")&&Gr.cancel()}),cn(br),()=>{br.off("paste",vr)}}},[]);const Ni=(0,oe.useCallback)(()=>{if(ni.current)try{}catch(vr){console.log(vr,"---- to set md editor body height")}},[di,ni,bn]);(0,oe.useEffect)(()=>{function vr(){let br=new Ye.Z(xr=>{for(let Gr of xr)(Gr.target.offsetHeight>0||Gr.target.offsetWidth>0)&&(Ni(),Ot.setSize("100%","100%"),Ot.refresh())});return br.observe(Yi.current.parentElement),br}if(Ot){const br=vr();return()=>{var xr,Gr;(xr=Yi.current)!=null&&xr.parentElement&&br.unobserve((Gr=Yi.current)==null?void 0:Gr.parentElement)}}},[Ot,Ni]),(0,oe.useEffect)(()=>{if(Ot){let vr=[];for(const[br,xr]of Object.entries(Cr)){let Gr={[br]:()=>{ea(xr)}};vr.push(Gr),Ot.addKeyMap(Gr)}return Pr.current=setInterval(()=>{ti.current&&fi()},4e3),()=>{clearInterval(Pr.current);for(let br of vr)Ot.removeKeyMap(br)}}},[Ot]),(0,oe.useEffect)(()=>{An!==bn&&zn(An)},[An]),(0,Dn.Z)(()=>{if(!Ht&&_r>0){let vr=new Date().getTime(),br=window.sessionStorage.getItem(it);vr>=_r+or&&(!br||br!==vn)&&(window.sessionStorage.setItem(it,vn),mi(!0))}},or),(0,oe.useEffect)(()=>{Sn(Ke)},[Ot,Ke]),(0,oe.useEffect)(()=>{Ot&&Rt&&Ot.focus()},[Ot,Rt]),(0,oe.useEffect)(()=>{if(yn&&Ot){let vr=function(xr){let Gr=xr.target;if(Un.current){let ia=Gr.scrollTop/Gr.scrollHeight;Un.current.scrollTop=Un.current.scrollHeight*ia}};const br=Ot.getScrollerElement();return br.addEventListener("scroll",vr),()=>{br.removeEventListener("scroll",vr)}}},[Ot,yn]),(0,oe.useEffect)(()=>{if(Ot&&Pn){let vr=function(br,xr){Pn(br,xr)};return Ot.on("beforeChange",vr),()=>{Ot.off("beforeChange",vr)}}},[Ot,Pn]),(0,oe.useEffect)(()=>{if(Ot&&Tn){let vr=function(){Tn(Ot.getValue())};return Ot.on("blur",vr),()=>{Ot.off("blur",vr)}}},[Ot,Tn]);function si(vr,br){var xr=vr.getDoc(),Gr=xr.getCursor(),ia=xr.getLine(Gr.line),wa=ia.charAt(Gr.ch-1),Ea=ia.lastIndexOf("@\u2581@",Gr.ch),Sa=ia.lastIndexOf("@\u2581\u2581@",Gr.ch),Aa=Ea>Sa?Ea:Sa,_a=Ea>Sa?3:4;if(Tr.indexOf(wa)===-1)return null;if(console.log("change1:",br,vr,ia,Gr,Aa,Ea,Sa,wa),Aa>=0&&Gr.ch-Aa<5){var mo=Aa+_a;return xr.replaceRange("",{line:Gr.line,ch:Aa},{line:Gr.line,ch:mo}),{line:Gr.line,ch:mo}}return null}(0,oe.useEffect)(()=>{if(Ot){let vr=function(br,xr){const Gr=br.getValue();Mn(Gr),ei(new Date().getTime()),br.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),yr&&(qt?yr(Gr,So(Gr)):yr(Gr))};return Ot.on("change",vr),()=>{Ot.off("change",vr)}}},[Ot,yr]),(0,oe.useEffect)(()=>{if(Ot)if(nr==null)Ot.setValue(""),Mn("");else{const vr=window.scrollY||window.pageYOffset;nr!==Ot.getValue()&&(Ot.setValue(nr),Mn(nr),Ot.setCursor(Wn?1:Ot.lineCount(),0),window.scrollTo(0,vr))}},[Ot,nr]);const ea=(0,oe.useCallback)(vr=>{const br=Ot.getCursor(),xr=Ot.getSelection();let Gr=xr.split(`
|
|
|
`);switch(vr){case"bold":return Ot.replaceSelection("**"+xr+"**"),xr===""&&Ot.setCursor(br.line,br.ch+2),Ot.focus();case"italic":return Ot.replaceSelection("*"+xr+"*"),xr===""&&Ot.setCursor(br.line,br.ch+1),Ot.focus();case"code":return Ot.replaceSelection("`"+xr+"`"),xr===""&&Ot.setCursor(br.line,br.ch+1),Ot.focus();case"inline-latex":return qn("inline-latex"),Ot.focus();case"latex":return Ot.replaceSelection("```latex\n"+xr+"\n```"),Ot.setCursor(br.line+1,xr.length+1),Ot.focus();case"line-break":return Ot.replaceSelection(`<br/>
|
|
|
`),Ot.focus();case"list-ul":return xr===""?Ot.replaceSelection("- "+xr):Ot.replaceSelection(Gr.map(ia=>ia===""?"":`- ${ia}`).join(`
|
|
|
`)),Ot.focus();case"list-ol":return xr===""?Ot.replaceSelection("1. "+xr):Ot.replaceSelection(Gr.map((ia,wa)=>ia===""?"":`${wa+1}. ${ia}`).join(`
|
|
|
`)),Ot.focus();case"add-null-ch":dr==null||dr();return;case"add-signal":return xr===""&&Ot.setCursor(br.line,br.ch),Ot.replaceSelection(Yn),Ot.focus();case"add-multiple":return xr===""&&Ot.setCursor(br.line,br.ch),Ot.replaceSelection(Tr),Ot.focus();case"inster-template-1":return xr===""&&Ot.setCursor(br.line,br.ch),Ot.replaceSelection(hr),Ot.focus();case"eraser":return Ot.setValue(""),Ot.focus();case"trigger-watch":return Sn(!yn),Ot.focus();case"trigger-full-screen":return zn(!bn),Ot.focus();case on:qn(on);return;case Zt:qn(Zt);return;case vt:qn(vt);return;case yt:qn(yt);return;case"maths-latex":qn("maths-latex");return;case Oe:Qr.current="",sessionStorage.removeItem("file_id"),qn(Oe);return;case nn:qn(nn);return;default:throw new Error}},[Ot,yn,bn]),ki=(0,oe.useCallback)((vr,br)=>{var xr,Gr,ia,wa,Ea,Sa;qn("");const{src:Aa,alt:_a,id:mo}=vr||{};switch(Zn){case on:const{title:Bs,link:Wo}=vr;return Ot.replaceSelection(`[${Bs}](${Wo})`),Ot.focus();case Zt:const{language:Ro,content:fo}=vr;return Ot.replaceSelection(["```"+Ro,fo,"```"].join(`
|
|
|
`)),Ot.focus();case"maths-latex":for(var co=atob(vr),qo=new Uint8Array(co.length),Bo=0;Bo<co.length;Bo++)qo[Bo]=co.charCodeAt(Bo);var eo=new Blob([qo],{type:"image/png"});(0,Qe.I)(eo,oa=>{oa.id?Ot.replaceSelection(``):(oa==null?void 0:oa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ot.replaceSelection("`$$"+vr+"$$`");break;case jt:if(!mo)return;Ot.focus(),Ot.getValue().indexOf(Aa)===-1?Ot.replaceSelection(`<center><img id="${mo}" width="80%" src="${Aa}" class="draw-flowchart" alt="${_a||""}" /></center>`):document.getElementById(mo).src=pe.Z.API_SERVER+Aa+"?t="+Date.now();try{setTimeout(()=>{Tn(Ot.getValue())},100)}catch(oa){}break;case vt:case yt:const za=br,Ei=(ia=(Gr=(xr=za==null?void 0:za.name)==null?void 0:xr.split("."))==null?void 0:Gr.pop)==null?void 0:ia.call(Gr);return((wa=za==null?void 0:za.type)==null?void 0:wa.indexOf("image"))>-1||!(za!=null&&za.type)?za!=null&&za.align||za!=null&&za.width?Ot.replaceSelection(`<p style="text-align:${za.align||"initial"}"><img width="${za.width?za.width+"%":"initial"}" src="${Aa}" alt="${_a||""}" /></p>`):Ot.replaceSelection(`<img width="100%" src="${Aa}" alt="${_a||""}" />`):((Ea=za==null?void 0:za.type)==null?void 0:Ea.indexOf("video"))>-1?Ot.replaceSelection(`<video width="100%" controls src="${Aa}"></video>`):((Sa=za==null?void 0:za.type)==null?void 0:Sa.indexOf("pdf"))>-1?Ot.replaceSelection(`<a href="${Aa}?type=${za.type}&disposition=inline" target="_blank">${za.name}</a>`):kr.includes(Ei)?Ot.replaceSelection(`<a href="${Aa}?type=office&disposition=inline" target="_blank">${za.name}</a>`):Ot.replaceSelection(`[${za.name}](${Aa})`),Ot.focus();case nn:const{row:ta,col:Zi,align:Ci}=vr;let va=`
|
|
|
`;for(let oa=0;oa<ta;oa++){let to=[],go=[];for(let no=0;no<Zi;no++)oa===1&&go.push(In[Ci]),to.push(" ");oa===1&&(va+=`| ${go.join(" | ")} |
|
|
|
`),va+=`| ${to.join(Zi===1?"":" | ")} |
|
|
|
`}return Ot.replaceSelection(va+`
|
|
|
`),Ot.focus();default:throw new Error}},[Ot,Zn]),Da=(0,oe.useMemo)(()=>{switch(Zn){case on:return oe.createElement(Ct,{callback:ki,onCancel:jr});case Zt:return oe.createElement(It.Z,{callback:ki,onCancel:jr});case vt:return oe.createElement(Qe.Z,{callback:ki,onCancel:jr});case Oe:return oe.createElement(de,{editImgId:Qr.current,callback:ki,onCancel:jr});case nn:return oe.createElement(Ne,{callback:ki,onCancel:jr});case"maths-latex":return oe.createElement(Xt,{showSaveButton:!0,callback:ki});case"inline-latex":return oe.createElement(bt.Z,{showSaveButton:!0,callback:ki});default:return null}},[Zn]);function jr(){qn("")}(0,oe.useEffect)(()=>{if(tr.current){let vr=function(Ea){ia=!0,wa=Ea.pageY},br=function(){ia=!1},xr=function(Ea){if(ia){let Sa=Ea.pageY-wa;Sa<0&&(Sa=0),Sa>300&&(Sa=300);let Aa=Gn+Sa+"px";zr(Aa)}},Gr=tr.current,ia=!1,wa=0;return Gr.addEventListener("mousedown",vr),document.addEventListener("mousemove",xr),document.addEventListener("mouseup",br),()=>{Gr.removeEventListener("mousedown",vr),document.removeEventListener("mousemove",xr),document.removeEventListener("mouseup",br)}}},[Ot,tr]),(0,oe.useEffect)(()=>{zr(Gn)},[Gn]);const $r=Qn(Hn),Di=Qn(di),Ii={width:$r,height:Di},La=(0,oe.useMemo)(()=>{if(_r){let vr=new Date(_r),br=vr.getHours(),xr=vr.getMinutes(),Gr=vr.getSeconds();return br=br<10?"0"+br:br,xr=xr<10?"0"+xr:xr,Gr=Gr<10?"0"+Gr:Gr,`${br}:${xr}:${Gr}`}return 0},[_r]),So=vr=>{const br=[];if(qt){let xr=-1;vr=vr.replace(/(@▁▁@|@▁@)/g,function(Gr,ia,wa){br.push({multiLine:Gr!==Yn})})}return br};function Ga(){window.sessionStorage.removeItem(it),mi(!1),ei(0)}function la(){mi(!1),ei(0),Ot.setValue(window.sessionStorage.getItem(it))}(0,oe.useEffect)(()=>{pi[Zn]&&Zn!==yt&&Zn!==Oe&&setTimeout(()=>{const vr=document.getElementsByClassName("markdown-popup-form")[0],br=window.innerWidth/2-vr.offsetWidth/2,xr=window.innerHeight/2-vr.offsetHeight/2;En(br),Li(xr)},0)},[Zn]);const Oa=vr=>{vr.preventDefault();const br=vr.clientX-Vr,xr=vr.clientY-Yr;document.body.onmousemove=Gr=>{let ia=Gr.clientX-br,wa=Gr.clientY-xr;const Ea=document.getElementsByClassName("markdown-popup-form")[0],Sa=window.innerWidth-Ea.offsetWidth,Aa=window.innerHeight-Ea.offsetHeight;ia=Math.max(0,Math.min(ia,Sa)),wa=Math.max(0,Math.min(wa,Aa)),Ma(Gr.clientX,Gr.clientY,br,xr)&&(En(ia),Li(wa))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ma=(vr,br,xr,Gr)=>{const ia=document.body.clientHeight,wa=document.body.clientWidth;return vr<20&&xr>vr||vr>wa-20&&xr<vr||br<20&&Gr>br||br>ia-20&&Gr<br?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:"markdown-editor-wrapper",ref:ni},oe.createElement("div",{className:`markdown-editor-container ${wn} ${yn?"on-preview":""} ${Or?"mini":""} ${bn?"full-screen":""}`,style:Ii},oe.createElement(Ze,{insertTemp:nt,watch:yn,fullScreen:bn,showNullButton:sn,showNullProgramButton:qt,onActionCallback:ea,hidetoolBar:mn,extraUse:Fn}),oe.createElement("div",{className:"markdown-editor-body"},oe.createElement("div",{className:"codemirror-container"},oe.createElement("textarea",{ref:Yi,placeholder:Jn})),yn?oe.createElement("div",{ref:Un,className:"preview-container"},rt==="stex"&&oe.createElement(Ie,{value:vn}),rt!=="stex"&&oe.createElement(qe.Z,{edit:!0,disabledFill:sr,showProgramFill:qt,value:vn,openEditor:vr=>{var br;Qr.current=vr,(br=Dr.current)==null||br.setHeight("100vh"),setTimeout(()=>{qn("add-flowchart")},150)}})):null))),Dt?oe.createElement("a",{ref:tr,className:"editor-resize"}):null,Zn===yt&&oe.createElement(tn,{callback:ki,onCancel:jr}),Zn===Oe&&oe.createElement(de,{ref:Dr,editImgId:Qr.current,callback:ki,onCancel:jr}),oe.createElement(xt.Z,null,pi[Zn]&&Zn!==yt&&Zn!==Oe?oe.createElement(et.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Vr,top:Yr},title:oe.createElement("div",{style:{cursor:"move"},onMouseDown:Oa},pi[Zn]),open:!0,onCancel:jr,footer:null,destroyOnClose:!0,width:Zn===Oe?"1200px":null,height:Zn===Oe?"80vh":null,className:"markdown-popup-form"},Da):null))}},40738:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Fe},I:function(){return xt}});var oe=ie(78241),ke=ie(8591),Ce=ie(92832),Ye=ie(81327),ye=ie(5871),Ee=ie(5112),he=ie(3113),xe=ie(25391),we=ie(59301),Te=ie(9166),qe=ie(59301),Ie=Object.defineProperty,Re=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,tt=(Je,dt,Be)=>dt in Je?Ie(Je,dt,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Je[dt]=Be,At=(Je,dt)=>{for(var Be in dt||(dt={}))We.call(dt,Be)&&tt(Je,Be,dt[Be]);if(Ue)for(var Be of Ue(dt))ct.call(dt,Be)&&tt(Je,Be,dt[Be]);return Je},ut=(Je,dt)=>Re(Je,lt(dt));const{useForm:ot}=oe.default,je={width:280,marginRight:10},Se={labelCol:{span:5},wrapperCol:{span:19}};var Fe=({callback:Je,onCancel:dt})=>{const[Be]=ot();let kt=(0,we.useRef)();function He(Et){kt.current.width=Be.getFieldValue("width"),kt.current.align=Be.getFieldValue("align"),Je(Et,kt.current)}function Tt(Et,zt){if(Et.status===-1){ke.ZP.error(Et.message);return}Be.setFieldsValue({src:`/api/attachments/${Et.id}`,type:zt.type})}function mt(Et){let zt=Et.target.files[0];kt.current=zt,xt(zt,Tt)}return qe.createElement(oe.default,ut(At({form:Be},Se),{className:"upload-image-panel",onFinish:He,style:{width:470,overflow:"hidden"}}),qe.createElement(oe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},qe.createElement("div",{className:"flex-container"},qe.createElement(oe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},qe.createElement(Ce.default,{style:je})),qe.createElement(Ze,{onFileChange:mt}))),qe.createElement(oe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},qe.createElement(Ce.default,{style:{width:264}})),qe.createElement(oe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},qe.createElement(Ye.Z,null,qe.createElement(oe.default.Item,{name:"width",style:{margin:0}},qe.createElement(ye.Z,{style:{width:264}})),qe.createElement("span",{className:"ml8"},"%"))),qe.createElement(oe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},qe.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"}]})),qe.createElement("aside",null,qe.createElement(oe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},qe.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),qe.createElement(he.ZP,{type:"default",onClick:dt},"\u53D6\u6D88"))))};function Ze({onFileChange:Je}){return qe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",qe.createElement("input",{type:"file",onChange:Je}))}function xt(Je,dt){if(!Je)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Te.bg)())throw ke.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Be=new FormData;Be.append("editormd-image-file",Je),Be.append("file_param_name","editormd-image-file"),Be.append("byxhr","true");var kt=new window.XMLHttpRequest;kt.withCredentials=!0,kt.addEventListener("load",function(He){dt(JSON.parse(He.target.responseText),Je)},!1),kt.addEventListener("error",function(He){console.error(He)},!1),kt.open("POST",`${xe.KI}/api/attachments.json`),kt.send(Be)}},52163:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Ce}});var oe=ie(59301),ke=ie(4676);class Ce extends oe.Component{constructor(ye){super(ye);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:ye}=this.props;return(0,ke.createPortal)(ye,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},13066:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return ke}});var oe=ie(59301);function ke(Ce,Ye){const ye=(0,oe.useRef)();(0,oe.useEffect)(()=>{ye.current=Ce}),(0,oe.useEffect)(()=>{function Ee(){ye.current()}if(Ye!==null){let he=setInterval(Ee,Ye);return()=>clearInterval(he)}},[Ye])}},56925:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return We}});var oe=ie(78241),ke=ie(43418),Ce=ie(95237),Ye=ie(43604),ye=ie(92832),Ee=ie(5871),he=ie(8591),xe=ie(24905),we=ie(59301),Te=ie(43006),qe={form_item_warp:"form_item_warp___jRcx8",lable_name1:"lable_name1___NOUD6",h_lh_40:"h_lh_40___murfL",config_title:"config_title___Pz2EP"},Ie=ie(27338),Re=ie(59301),lt=(ct,tt,At)=>new Promise((ut,ot)=>{var je=Ze=>{try{Fe(At.next(Ze))}catch(xt){ot(xt)}},Se=Ze=>{try{Fe(At.throw(Ze))}catch(xt){ot(xt)}},Fe=Ze=>Ze.done?ut(Ze.value):Promise.resolve(Ze.value).then(je,Se);Fe((At=At.apply(ct,tt)).next())});const Ue=({shixunHomeworks:ct,loading:tt,dispatch:At,getData:ut})=>{var ot,je;const{ai_review_settings:Se}=ct==null?void 0:ct.studentWorkDetail,[Fe]=oe.default.useForm(),Ze=[{name:"\u683C\u5F0F\u89C4\u8303",content:"\u4F5C\u4E1A\u7B26\u5408\u63D0\u4EA4\u8981\u6C42\uFF08\u547D\u540D\u3001\u683C\u5F0F\u3001\u9644\u4EF6\u5B8C\u6574\uFF09\uFF0C\u6587\u6863\u7ED3\u6784\u6E05\u6670\uFF0C\u8BED\u8A00\u8868\u8FBE\u51C6\u786E",weight:10},{name:"\u903B\u8F91\u4E25\u8C28",content:"\u8BBA\u8FF0\u6E05\u6670\uFF0C\u5185\u5BB9\u8FDE\u8D2F\uFF0C\u8BBA\u8BC1\u5408\u7406\uFF0C\u6709\u5145\u5206\u7684\u6570\u636E\u6216\u7406\u8BBA\u652F\u6491",weight:20},{name:"\u5185\u5BB9\u5B8C\u6574",content:"\u8986\u76D6\u6240\u6709\u8981\u6C42\u7684\u5185\u5BB9\uFF0C\u5206\u6790\u6DF1\u5165\uFF0C\u5305\u542B\u5B9E\u9A8C\u73B0\u8C61\u3001\u6570\u636E\u548C\u7ED3\u8BBA",weight:60},{name:"\u521B\u65B0\u4E0E\u601D\u8003",content:"\u63D0\u51FA\u4E2A\u4EBA\u89C1\u89E3\u6216\u6539\u8FDB\u5EFA\u8BAE\uFF0C\u5BF9\u5B9E\u9A8C\u7ED3\u679C\u6216\u95EE\u9898\u6709\u53CD\u601D\u4E0E\u603B\u7ED3",weight:10}];(0,we.useEffect)(()=>{var dt;((dt=ct.actionTabs)==null?void 0:dt.key)==="\u667A\u80FD\u8BC4\u9605\u914D\u7F6E"&&Fe.setFieldsValue({ai_review_settings:(Se==null?void 0:Se.length)>0?Se:Ze,update_ai_review_settings:!1})},[(ot=ct.actionTabs)==null?void 0:ot.key]);const xt=()=>{At({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},Je=()=>lt(void 0,null,function*(){var dt;const Be=Fe.getFieldValue("ai_review_settings");if(!(0,Ie.BR)(Be))return;const He=Fe.getFieldsValue();(dt=ct.actionTabs)==null||dt.onOk(He),xt()});return Re.createElement(ke.default,{width:1150,centered:!0,title:"\u667A\u80FD\u8BC4\u9605",open:((je=ct.actionTabs)==null?void 0:je.key)==="\u667A\u80FD\u8BC4\u9605\u914D\u7F6E",destroyOnClose:!0,onCancel:()=>xt(),okText:"\u5F00\u59CB\u8BC4\u9605",onOk:()=>Je(),bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"}},Re.createElement("div",{className:`${qe.config_title}`},"\u8BC4\u5206\u6807\u51C6"),Re.createElement(oe.default,{form:Fe,colon:!1},Re.createElement("div",{className:qe.form_item_warp},Re.createElement(oe.default.List,{name:"ai_review_settings"},(dt,{add:Be,remove:kt})=>dt.map((He,Tt)=>{var mt;return Re.createElement(Ce.Z,{key:He.key,style:{padding:"5px 14px 5px 30px"}},Re.createElement(Ye.Z,{className:qe.lable_name1},"\u8BC4\u5206\u9879\u76EE"),Re.createElement(Ye.Z,null,Re.createElement(oe.default.Item,{className:"ml10",name:[He.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u9879\u76EE"}]},Re.createElement(ye.default,{onChange:Et=>{Fe.setFieldValue([He.name,"content"],Et.target.value)},placeholder:"\u8BF7\u8F93\u5165\u6700\u591A10\u5B57\u7B26",size:"large",style:{width:164},maxLength:10,className:"mr20"}))),Re.createElement(Ye.Z,{className:qe.lable_name1},"\u8BC4\u5206\u6807\u51C6"),Re.createElement(Ye.Z,null,Re.createElement(oe.default.Item,{className:"ml10",name:[He.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},Re.createElement(ye.default,{onChange:Et=>{Fe.setFieldValue([He.name,"content"],Et.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:467},className:"mr20",maxLength:500}))),Re.createElement(Ye.Z,{className:qe.lable_name1},"\u6743\u91CD"),Re.createElement(Ye.Z,null,Re.createElement(oe.default.Item,{className:"ml10",name:[He.name,"weight"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6743\u91CD"}]},Re.createElement(Ee.Z,{onChange:Et=>{Number.isInteger(Et)||Fe.setFieldValue([He.name,"weight"],parseFloat(Et).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"134px"}}))),Re.createElement(Ce.Z,{className:(mt=qe)==null?void 0:mt.h_lh_40},Re.createElement(Ye.Z,null,Re.createElement("i",{className:"iconfont icon-tianjiatimu ml20 current",style:{color:"#00B187"},onClick:()=>{if(dt.length>=10)return he.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u9879\u76EE");Be()}})),Tt>0&&Re.createElement(Ye.Z,null,Re.createElement("i",{className:"iconfont icon-shanjian1 ml10 current",style:{color:"#E30000"},onClick:()=>{kt(He.name)}}))))}))),Re.createElement(oe.default.Item,{name:"update_ai_review_settings",valuePropName:"checked"},Re.createElement(xe.default,{style:{color:"#000"}},"\u5C06\u5F53\u524D\u8BC4\u5206\u6807\u51C6\u5E94\u7528\u4E8E\u6574\u4EFD\u4F5C\u4E1A",Re.createElement("span",{style:{color:"#666"}},"\uFF08\u9009\u4E2D\u540E\uFF0C\u5C06\u66FF\u6362\u667A\u80FD\u8BC4\u9605\u7684\u8BC4\u5206\u6807\u51C6\uFF1B\u672A\u9009\u4E2D\uFF0C\u4EC5\u5BF9\u672C\u6B21\u667A\u80FD\u8BC4\u9605\u751F\u6548\uFF09")))))};var We=(0,Te.connect)(({shixunHomeworks:ct,loading:tt,user:At})=>({shixunHomeworks:ct,loading:tt.effects,user:At}))(Ue)},57443:function(gn,Kt,ie){"use strict";ie.r(Kt),ie.d(Kt,{default:function(){return yl}});var oe=ie(59301),ke=ie(43006),Ce=ie(78241),Ye=ie(43418),ye=ie(8591),Ee=ie(3113),he=ie(38854),xe=ie(6848),we=ie(99313),Te=ie(71418),qe=ie(24905),Ie=ie(1710),Re=ie(92832),lt=ie(20630),Ue=ie(60343),We=ie(4773),ct=ie(78918),tt=ie(34598),At=ie(66649),ut=ie.n(At),ot=ie(45919),je=ie(41832),Se=ie(5871),Fe=Object.defineProperty,Ze=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,dt=(ln,Ft,st)=>Ft in ln?Fe(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,Be=(ln,Ft)=>{for(var st in Ft||(Ft={}))xt.call(Ft,st)&&dt(ln,st,Ft[st]);if(Ze)for(var st of Ze(Ft))Je.call(Ft,st)&&dt(ln,st,Ft[st]);return ln},kt=(ln,Ft,st)=>new Promise((mr,bi)=>{var Oi=Jr=>{try{$i(st.next(Jr))}catch(lr){bi(lr)}},Qi=Jr=>{try{$i(st.throw(Jr))}catch(lr){bi(lr)}},$i=Jr=>Jr.done?mr(Jr.value):Promise.resolve(Jr.value).then(Oi,Qi);$i((st=st.apply(ln,Ft)).next())});const He=({shixunHomeworks:ln,dispatch:Ft})=>{const st=(0,ke.useParams)(),[mr,bi]=(0,oe.useState)(!0),[Oi]=Ce.default.useForm();return oe.createElement(oe.Fragment,null,oe.createElement(Ye.default,{centered:!0,title:"\u8C03\u5206",open:ln.actionTabs.key==="\u8C03\u5206",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>kt(void 0,null,function*(){yield Oi.validateFields();const Qi=Oi.getFieldsValue();(yield(0,Ue.ZP)(`/api/student_works/${ln.actionTabs.id}/adjust_score.json`,{method:"post",body:Be({},Qi)})).status===0&&(ye.ZP.success("\u8BC4\u9605\u6210\u529F"),Oi.resetFields(),Ft({type:"shixunHomeworks/setActionTabs",payload:{}}),Ft({type:"shixunHomeworks/getStudentWorkCommon",payload:Be({},st)}))}),onCancel:()=>{Ft({type:"shixunHomeworks/setActionTabs",payload:{}})}},oe.createElement("p",{className:"tc"},"\u8BE5\u5B66\u751F\u7684\u6700\u7EC8\u6210\u7EE9\u5C06\u4E0D\u4F1A\u6309\u7167\u8BC4\u5206\u89C4\u5219\u8FDB\u884C\u8BA1\u7B97"),oe.createElement(Ce.default,{form:Oi,layout:"horizontal"},oe.createElement("div",{style:{display:"flex",alignItems:"baseline"}},oe.createElement(Ce.default.Item,{label:"\u6210\u7EE9",name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},oe.createElement(Se.Z,{min:0,placeholder:"\u8BF7\u586B\u5199\u5206\u6570"})),oe.createElement("span",{className:"ml10"},"\u5206")),oe.createElement("div",null,oe.createElement(Ce.default.Item,{name:"comment"},oe.createElement(Re.default.TextArea,{placeholder:"\u8BF7\u586B\u5199\u60A8\u5BF9\u4F5C\u54C1\u8C03\u5206\u7684\u539F\u56E0",rows:8}))))))};var Tt=(0,ke.connect)(({shixunHomeworks:ln})=>({shixunHomeworks:ln}))(He),mt={flex_box_center:"flex_box_center___tMwax",flex_space_between:"flex_space_between___8GJsg",flex_box_vertical_center:"flex_box_vertical_center___IFELt",flex_box_center_end:"flex_box_center_end___IrFRG",flex_box_column:"flex_box_column___s0LgG",TabsStyle:"TabsStyle___r0bwM",bg:"bg___sFhaA",title:"title___bk4oD",nextComment:"nextComment___NmNBo",modal:"modal___tWPO8",MdEditor:"MdEditor___AAxeb",ratewarp:"ratewarp___NGrsd",item:"item___Le8W0",total:"total___MNh4V",a1:"a1___g1iJT",a2:"a2___h8k2X",a3:"a3___yk1km",export_type_modal_title:"export_type_modal_title___nMqX0",export_type_modal:"export_type_modal___dbFVU",export_type_modal_con:"export_type_modal_con___ujWeL",type_item:"type_item___oF9R5",type_item_active:"type_item_active___dfBaM",export_type_modal_waring:"export_type_modal_waring___k8RaP",ReviewStyle:"ReviewStyle___o5d5N",left_content:"left_content___Tdt77",left_title:"left_title___V11QV",see_work:"see_work___HAfMs",left_list:"left_list___sXmxX",list_title:"list_title___NmWRs",list_box:"list_box___nK01J",list_item:"list_item___rrWl_",item_img:"item_img___yMYSc",item_content:"item_content___ZJr_4",item_name:"item_name___PkA99",item_code:"item_code___g13cU",item_states:"item_states___Rwb1r",center_top:"center_top___hgoJF",center_top_title:"center_top_title___rVfnl",center_top_content:"center_top_content___Wfmlt",right_content:"right_content___nMMjC",right_form:"right_form___ahOzz",work_score:"work_score___sJRnv",work_img:"work_img___p6zO4",work_button:"work_button___NDoqh",pingyue:"pingyue___PDoT9",pingyue_title:"pingyue_title___Wsqbg",pingyue_score:"pingyue_score___kvMiC",pingyue_teacher_title:"pingyue_teacher_title___lyJ0m",top_content:"top_content___mJifP",top_content_img:"top_content_img___vbTWm",item_tags:"item_tags___K9Qrr",daochu:"daochu___WdJvT",foldClose:"foldClose___DQSiP",foldOpen:"foldOpen___J18go",ScoreDetailsBase:"ScoreDetailsBase___UG7u2",lastAdd:"lastAdd___T9F0p",btnAdd:"btnAdd___GCat1",buttonStyle:"buttonStyle___jWXWa",hiddenBar:"hiddenBar___ZRZYH",apply:"apply___WQ6t7"},Et=ie(97688),zt=ie(89392),Bt=ie(73059),De=ie(59301),ge=Object.defineProperty,at=Object.defineProperties,Ct=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Lt=(ln,Ft,st)=>Ft in ln?ge(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,dn=(ln,Ft)=>{for(var st in Ft||(Ft={}))Qe.call(Ft,st)&&Lt(ln,st,Ft[st]);if(It)for(var st of It(Ft))et.call(Ft,st)&&Lt(ln,st,Ft[st]);return ln},_t=(ln,Ft)=>at(ln,Ct(Ft)),tn=(ln,Ft,st)=>new Promise((mr,bi)=>{var Oi=Jr=>{try{$i(st.next(Jr))}catch(lr){bi(lr)}},Qi=Jr=>{try{$i(st.throw(Jr))}catch(lr){bi(lr)}},$i=Jr=>Jr.done?mr(Jr.value):Promise.resolve(Jr.value).then(Oi,Qi);$i((st=st.apply(ln,Ft)).next())});const en=({classroomList:ln,loading:Ft,dispatch:st,studentWorkDetail:mr})=>{const bi=(0,ke.useParams)(),[Oi]=Ce.default.useForm(),Qi=()=>tn(void 0,null,function*(){var $i;yield Oi.validateFields();const Jr=dn({},Oi.getFieldValue()),{selectArrs:lr}=ln.actionTabs;Jr.attachment_ids=($i=Jr.attachment_ids)==null?void 0:$i.map(ro=>ro.response.id),(yield(0,je.mz)(_t(dn({},Jr),{homeworkId:lr.work_id}))).status===0&&(Oi.resetFields(),st({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:dn({},ln.actionTabs.params)}),st({type:"classroomList/setActionTabs",payload:{}}))});return De.createElement(Ye.default,{centered:!0,title:"\u8865\u4EA4\u9644\u4EF6",open:ln.actionTabs.key==="\u8865\u4EA4\u9644\u4EF6",bodyStyle:{minHeight:200},onOk:()=>tn(void 0,null,function*(){if(mr!=null&&mr.can_submit){if(!(mr!=null&&mr.submit_size)){ye.ZP.warning("\u60A8\u7684\u4F5C\u54C1\u63D0\u4EA4\u673A\u4F1A\u5DF2\u7528\u5B8C\u3002\u5982\u9700\u7EE7\u7EED\u4FEE\u6539\uFF0C\u8BF7\u8054\u7CFB\u6307\u5BFC\u8001\u5E08\u6216\u5E73\u53F0\u8FD0\u8425\u3002");return}Ye.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:472,content:De.createElement(De.Fragment,null,"\u4F60\u8FD8\u6709 ",De.createElement("span",{className:"ml5 mr5",style:{color:"#DF711C"}},mr==null?void 0:mr.submit_size)," \u6B21\u63D0\u4EA4\u673A\u4F1A\u3002\u786E\u8BA4\u63D0\u4EA4\u540E\uFF0C\u4E0A\u4E00\u6B21\u7684\u63D0\u4EA4\u8BB0\u5F55\u4F1A\u88AB\u8986\u76D6\u3002\u8BF7\u6CE8\u610F\uFF0C\u5230\u8FBE\u89C4\u5B9A\u7684\u63D0\u4EA4\u6B21\u6570\u540E\u5C06\u4E0D\u53EF\u518D\u6B21\u63D0\u4EA4\uFF0C\u786E\u5B9A\u662F\u5426\u63D0\u4EA4\uFF1F"),onOk:()=>{Qi()}});return}Qi()}),onCancel:()=>{Oi.resetFields(),st({type:"classroomList/setActionTabs",payload:{}})}},De.createElement(Ce.default,{form:Oi,initialValues:{}},De.createElement(Ce.default.Item,{name:"attachment_ids",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},De.createElement(Bt.Z,null)),De.createElement(Ce.default.Item,{name:"description"},De.createElement(Re.default.TextArea,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u8865\u4EA4\u9644\u4EF6\u7684\u539F\u56E0\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26",rows:7}))))};var Jt=(0,ke.connect)(({classroomList:ln,loading:Ft})=>({classroomList:ln,loading:Ft}))(en),Vt=ie(27338),be=ie(9166),ce=ie(91922),ue=ie(8292),de=ie(10907),pe=ie(68606),se=ie(30327),Le=ie(95237),ht=ie(43604),_e=ie(37906),Ne={pinfen:"pinfen____hgN7",left:"left___ZyTXs",right:"right___OSPEM",tagStyleSzz:"tagStyleSzz___fzxbk",headpic:"headpic___d7fnl",new_style_box:"new_style_box___XOWhi",box_child:"box_child___uYxgt",box_item_top:"box_item_top___MohWv",yichang:"yichang___ppIPI",text_style:"text_style___V3FT_",text_style_red:"text_style_red___reUfY",btnWarp:"btnWarp___n5eYa",active:"active___JVU0m",feedbackSty:"feedbackSty___CeTDz"},St=ie(61110),gt=ie(61226),Xe=ie(96729),wt=Object.defineProperty,Xt=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,on=(ln,Ft,st)=>Ft in ln?wt(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,vt=(ln,Ft)=>{for(var st in Ft||(Ft={}))bt.call(Ft,st)&&on(ln,st,Ft[st]);if(Xt)for(var st of Xt(Ft))$t.call(Ft,st)&&on(ln,st,Ft[st]);return ln};const Oe=ln=>React.createElement("svg",vt({width:14,height:13,xmlns:"http://www.w3.org/2000/svg"},ln),React.createElement("title",null,"\u661F\u5F62"),React.createElement("path",{d:"m7 10.5-4.114 2.163.785-4.581L.343 4.837l4.6-.669L7 0l2.057 4.168 4.6.669-3.328 3.245.785 4.581z",fill:"#FA6400",fillRule:"evenodd"}));var yt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcgMTAuNS00LjExNCAyLjE2My43ODUtNC41ODFMLjM0MyA0LjgzN2w0LjYtLjY2OUw3IDBsMi4wNTcgNC4xNjggNC42LjY2OS0zLjMyOCAzLjI0NS43ODUgNC41ODF6IiBmaWxsPSIjRkE2NDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",jt=Object.defineProperty,Zt=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,In=(ln,Ft,st)=>Ft in ln?jt(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,Dn=(ln,Ft)=>{for(var st in Ft||(Ft={}))nn.call(Ft,st)&&In(ln,st,Ft[st]);if(Zt)for(var st of Zt(Ft))Cn.call(Ft,st)&&In(ln,st,Ft[st]);return ln};const Kn=ln=>React.createElement("svg",Dn({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},ln),React.createElement("title",null,"\u62A5\u544A"),React.createElement("path",{d:"M3.629 14a2.38 2.38 0 0 1-2.373-2.373V4.311a.057.057 0 0 0-.06-.06H.564A.542.542 0 0 1 0 3.737V1.691C0 .76.81 0 1.81 0h8.868c.999 0 1.809.81 1.81 1.81v7.563a.057.057 0 0 0 .059.06h1.997a.557.557 0 0 1 .563.563v2.185a1.81 1.81 0 0 1-1.809 1.81L3.628 14Zm8.927-3.56a.057.057 0 0 0-.059.06v1.69a.81.81 0 0 0 1.622 0V10.5a.057.057 0 0 0-.06-.06h-1.503ZM2.314 4.252a.057.057 0 0 0-.06.06v7.306a1.377 1.377 0 0 0 1.375 1.375h7.959c.02 0 .04-.012.049-.03a.063.063 0 0 0 0-.06 1.814 1.814 0 0 1-.148-.721V1.819a.81.81 0 0 0-1.622 0v1.918a.536.536 0 0 1-.563.514h-6.99Zm-.505-3.243c-.445 0-.81.307-.81.683v1.502a.058.058 0 0 0 .059.06h7.741a.057.057 0 0 0 .06-.06V1.82c0-.248.05-.494.148-.722.01-.02 0-.04 0-.059a.054.054 0 0 0-.05-.03H1.81Zm2.314 9.462a.504.504 0 1 1 0-1.008H9.62a.504.504 0 1 1 0 1.008H4.123Zm0-2.689a.504.504 0 0 1 0-1.008H9.62a.504.504 0 1 1 0 1.008H4.123Z",fill:"#3061D0",fillRule:"nonzero"}));var Vn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMuNjI5IDE0YTIuMzggMi4zOCAwIDAgMS0yLjM3My0yLjM3M1Y0LjMxMWEuMDU3LjA1NyAwIDAgMC0uMDYtLjA2SC41NjRBLjU0Mi41NDIgMCAwIDEgMCAzLjczN1YxLjY5MUMwIC43Ni44MSAwIDEuODEgMGg4Ljg2OGMuOTk5IDAgMS44MDkuODEgMS44MSAxLjgxdjcuNTYzYS4wNTcuMDU3IDAgMCAwIC4wNTkuMDZoMS45OTdhLjU1Ny41NTcgMCAwIDEgLjU2My41NjN2Mi4xODVhMS44MSAxLjgxIDAgMCAxLTEuODA5IDEuODFMMy42MjggMTRabTguOTI3LTMuNTZhLjA1Ny4wNTcgMCAwIDAtLjA1OS4wNnYxLjY5YS44MS44MSAwIDAgMCAxLjYyMiAwVjEwLjVhLjA1Ny4wNTcgMCAwIDAtLjA2LS4wNmgtMS41MDNaTTIuMzE0IDQuMjUyYS4wNTcuMDU3IDAgMCAwLS4wNi4wNnY3LjMwNmExLjM3NyAxLjM3NyAwIDAgMCAxLjM3NSAxLjM3NWg3Ljk1OWMuMDIgMCAuMDQtLjAxMi4wNDktLjAzYS4wNjMuMDYzIDAgMCAwIDAtLjA2IDEuODE0IDEuODE0IDAgMCAxLS4xNDgtLjcyMVYxLjgxOWEuODEuODEgMCAwIDAtMS42MjIgMHYxLjkxOGEuNTM2LjUzNiAwIDAgMS0uNTYzLjUxNGgtNi45OVptLS41MDUtMy4yNDNjLS40NDUgMC0uODEuMzA3LS44MS42ODN2MS41MDJhLjA1OC4wNTggMCAwIDAgLjA1OS4wNmg3Ljc0MWEuMDU3LjA1NyAwIDAgMCAuMDYtLjA2VjEuODJjMC0uMjQ4LjA1LS40OTQuMTQ4LS43MjIuMDEtLjAyIDAtLjA0IDAtLjA1OWEuMDU0LjA1NCAwIDAgMC0uMDUtLjAzSDEuODFabTIuMzE0IDkuNDYyYS41MDQuNTA0IDAgMSAxIDAtMS4wMDhIOS42MmEuNTA0LjUwNCAwIDEgMSAwIDEuMDA4SDQuMTIzWm0wLTIuNjg5YS41MDQuNTA0IDAgMCAxIDAtMS4wMDhIOS42MmEuNTA0LjUwNCAwIDEgMSAwIDEuMDA4SDQuMTIzWiIgZmlsbD0iIzMwNjFEMCIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9zdmc+";const _n=({handleCloseOrOpenModal:ln,dataInfo:Ft,isShowButton:st=!0,className:mr=""})=>{const bi=()=>{if(Ft!=null&&Ft.teacher_score&&(Ft==null?void 0:Ft.teacher_score)>=0)return oe.createElement(oe.Fragment,null,"\u6559\u5E08\u8BC4\u5206",oe.createElement("span",{style:{color:"#CA7720"}},Ft==null?void 0:Ft.teacher_score));if(Ft!=null&&Ft.teaching_asistant_score&&(Ft==null?void 0:Ft.teaching_asistant_score)>=0)return oe.createElement(oe.Fragment,null,"\u52A9\u6559\u8BC4\u5206",oe.createElement("span",{style:{color:"#CA7720"}},Ft==null?void 0:Ft.teaching_asistant_score));if(Ft!=null&&Ft.student_score&&(Ft==null?void 0:Ft.student_score)>=0)return oe.createElement(oe.Fragment,null,"\u533F\u8BC4\u8BC4\u5206",oe.createElement("span",{style:{color:"#CA7720"}},Ft==null?void 0:Ft.student_score))};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:`${mt.work_score} ${mr}`},oe.createElement("div",{style:{color:"#191919",fontWeight:600}},"\u4F5C\u4E1A\u5F97\u5206"),oe.createElement("div",{className:mt.work_img},oe.createElement("div",{style:{height:"40px",lineHeight:"50px",fontSize:"24px",color:"#009C0F",fontWeight:600}},(Ft==null?void 0:Ft.work_score)||"--",oe.createElement("span",{style:{fontSize:"14px"}},"\u5206")),oe.createElement("div",{style:{fontSize:"12px",color:"#666666"}},"\u6700\u7EC8\u6210\u7EE9")),oe.createElement("img",{src:yt}),oe.createElement("div",{style:{marginLeft:"10px",flex:1,marginRight:"10px",fontSize:"12px"}},"\u8BA1\u7B97\u89C4\u5219",oe.createElement(xe.Z,{title:oe.createElement("span",{className:"font12"},"\u5728\u591A\u9879\u8BC4\u5206\u5360\u6BD4\u8BBE\u7F6E\u4E2D\uFF0C\u82E5\u67D0\u9879\u8BC4\u5206\u7F3A\u5931\uFF0C\u5176\u5360\u6BD4\u5C06\u7531\u5176\u4ED6\u5DF2\u8BC4\u5206\u9879\u5E73\u5206\uFF1B\u82E5\u4E24\u9879\u8BC4\u5206\u7F3A\u5931\uFF0C\u5219\u552F\u4E00\u5DF2\u8BC4\u5206\u9879\u5C06\u5360100%\u7684\u6BD4\u91CD\u3002")},oe.createElement("i",{className:"iconfont icon-tishixiaowenhao ml5 mr5 font12 c-grey-999 current",style:{lineHeight:"18px"}})),"=",Ft!=null&&Ft.final_mode?bi():oe.createElement(oe.Fragment,null,"\u6559\u5E08\u8BC4\u5206",oe.createElement("span",{style:{color:"#CA7720"}},(Ft==null?void 0:Ft.teacher_score)||"--","*",Ft==null?void 0:Ft.te_proportion),"+\u52A9\u6559\u8BC4\u5206",oe.createElement("span",{style:{color:"#CA7720"}},(Ft==null?void 0:Ft.teaching_asistant_score)||"--","*",Ft==null?void 0:Ft.ta_proportion),"+\u533F\u8BC4\u8BC4\u5206",oe.createElement("span",{style:{color:"#CA7720"}},(Ft==null?void 0:Ft.student_score)||"--","*",Ft==null?void 0:Ft.st_proportion)),"-\u6263\u5206\u9879 (\u8865\u4EA4\u6263\u5206",oe.createElement("span",{style:{color:"#CA7720"}},Ft==null?void 0:Ft.late_penalty),"+\u67E5\u91CD\u6263\u5206",oe.createElement("span",{style:{color:"#CA7720"}},Ft==null?void 0:Ft.repeat_minus_score),"+\u7F3A\u8BC4\u6263\u5206",oe.createElement("span",{style:{color:"#CA7720"}},Ft==null?void 0:Ft.absence_penalty),")"),st&&oe.createElement("div",{className:mt.work_button,onClick:()=>{ln({key:"\u5F97\u5206\u8BE6\u60C5"})}},oe.createElement("img",{src:Vn,style:{marginRight:"5px"}}),"\u67E5\u770B\u5F97\u5206\u8BE6\u60C5")))};var or=(0,ke.connect)(({shixunHomeworks:ln})=>({shixunHomeworks:ln}))(_n),wr=ie(56925),Tr=Object.defineProperty,Yn=Object.defineProperties,hr=Object.getOwnPropertyDescriptors,kr=Object.getOwnPropertySymbols,Qn=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable,ci=(ln,Ft,st)=>Ft in ln?Tr(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,Cr=(ln,Ft)=>{for(var st in Ft||(Ft={}))Qn.call(Ft,st)&&ci(ln,st,Ft[st]);if(kr)for(var st of kr(Ft))Fr.call(Ft,st)&&ci(ln,st,Ft[st]);return ln},pi=(ln,Ft)=>Yn(ln,hr(Ft)),ai=(ln,Ft)=>{var st={};for(var mr in ln)Qn.call(ln,mr)&&Ft.indexOf(mr)<0&&(st[mr]=ln[mr]);if(ln!=null&&kr)for(var mr of kr(ln))Ft.indexOf(mr)<0&&Fr.call(ln,mr)&&(st[mr]=ln[mr]);return st},nr=(ln,Ft,st)=>new Promise((mr,bi)=>{var Oi=Jr=>{try{$i(st.next(Jr))}catch(lr){bi(lr)}},Qi=Jr=>{try{$i(st.throw(Jr))}catch(lr){bi(lr)}},$i=Jr=>Jr.done?mr(Jr.value):Promise.resolve(Jr.value).then(Oi,Qi);$i((st=st.apply(ln,Ft)).next())});const yr=({shixunHomeworks:ln,loading:Ft,user:st,globalSetting:mr})=>({shixunHomeworks:ln,loading:Ft.effects,user:st,globalSetting:mr}),Hn=ln=>{var Ft=ln,{ModalProps:st={},shixunHomeworks:mr,user:bi}=Ft,Oi=ai(Ft,["ModalProps","shixunHomeworks","user"]),Qi,$i;const[Jr]=Ce.default.useForm(),lr=(0,ke.useParams)(),{userInfo:gi={}}=bi,[,ro,Fo,ca]=(0,de.U)(je.Yn,{homeworkId:lr==null?void 0:lr.userId}),[,Pa,$o,Uo]=(0,de.U)(je.Am,{homeworkId:lr==null?void 0:lr.userId}),[,bs,ds]=(0,de.U)(je.QC,{userId:lr==null?void 0:lr.userId}),[io,fs]=(0,oe.useState)({page:1,limit:10}),[No,Ra]=(0,oe.useState)(!1),wo=[{title:"\u8BC4\u9605\u4EBA\u59D3\u540D",dataIndex:"user_name",ellipsis:!0,width:100,render:Mi=>oe.createElement(xe.Z,{title:Mi},oe.createElement("span",null,Mi))},{title:"\u8BC4\u5206",dataIndex:"score",width:80},{title:"\u8BC4\u8BED",dataIndex:"content",ellipsis:!0,render:Mi=>oe.createElement(xe.Z,{title:Mi},oe.createElement("span",null,Mi))},{title:"\u63D0\u4EA4\u4F5C\u4E1A\u7248\u672C",dataIndex:"student_work_num",width:110,render:(Mi,Bi)=>{var ua;return oe.createElement("a",{style:{color:Mi===((ua=ca==null?void 0:ca.data)==null?void 0:ua.max_student_work_num)?"#1B8565":"#FA6400"},target:"_blank",href:`/classrooms/${lr==null?void 0:lr.coursesId}/common_homework/${lr==null?void 0:lr.categoryId}/review/${Bi==null?void 0:Bi.student_work_id}?history_id=${Bi==null?void 0:Bi.history_id}`},"\u7B2C ",Mi," \u6B21")}},{title:"\u64CD\u4F5C",dataIndex:"comment_id",width:150,render:(Mi,Bi)=>oe.createElement("div",{className:"flex item-center gap-20px"},(Bi==null?void 0:Bi.user_login)===(gi==null?void 0:gi.login)&&oe.createElement("a",{onClick:()=>{var ua;Jr.setFieldsValue(pi(Cr({},Bi),{comment:Bi==null?void 0:Bi.content,score_details:((ua=Bi==null?void 0:Bi.score_details)==null?void 0:ua.map(Ca=>Cr({},Ca)))||[]})),Ra(!0)}},"\u7F16\u8F91"),oe.createElement("a",{target:"_blank",href:`/classrooms/${lr==null?void 0:lr.coursesId}/common_homework/${lr==null?void 0:lr.categoryId}/review/${Bi==null?void 0:Bi.student_work_id}?history_id=${Bi==null?void 0:Bi.history_id}`},"\u67E5\u770B"),(Bi==null?void 0:Bi.user_login)===(gi==null?void 0:gi.login)&&oe.createElement("a",{className:"current-delete-hover",onClick:()=>{Os(Bi)}},"\u5220\u9664"))}],Os=(Mi={})=>{Ye.default.confirm({title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",centered:!0,onOk:()=>nr(void 0,null,function*(){(yield ds({score_id:Mi==null?void 0:Mi.comment_id})).status===0&&(ye.ZP.success("\u5220\u9664\u6210\u529F"),fs({page:1,limit:10}),Ra(!1))})})};return(0,oe.useEffect)(()=>{st!=null&&st.open&&Fo(Cr({homeworkId:lr==null?void 0:lr.userId},io))},[io,st==null?void 0:st.open]),oe.createElement(oe.Fragment,null,oe.createElement(Ye.default,Cr({},Cr({title:"\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55",centered:!0,width:800},st)),oe.createElement(Ie.default,{className:"mt10",loading:ro,columns:wo,locale:{emptyText:oe.createElement(pe.Z,null)},dataSource:((Qi=ca==null?void 0:ca.data)==null?void 0:Qi.list)||[],pagination:{hideOnSinglePage:!0,total:(($i=ca==null?void 0:ca.data)==null?void 0:$i.size)||0,onChange:(Mi,Bi)=>{fs(pi(Cr({},io),{page:Mi,limit:Bi}))},current:io==null?void 0:io.page,pageSize:io==null?void 0:io.limit,showTotal:Mi=>oe.createElement(oe.Fragment,null,"\u5171",oe.createElement("span",{className:"ml5 mr5 c-blue"},Mi),"\u6761\u6570\u636E")}})),oe.createElement(nt,{FormProps:{form:Jr,onFinish:(...Mi)=>nr(void 0,[...Mi],function*(Bi={}){const ua=yield $o(pi(Cr({},Bi),{homeworkId:lr==null?void 0:lr.userId}));(ua==null?void 0:ua.status)===0&&(ye.ZP.success("\u4FEE\u6539\u6210\u529F"),fs({page:1,limit:10}),Ra(!1))})},ModalProps:{open:No,onCancel:()=>{Ra(!1)},onOk:()=>{Jr.submit()},confirmLoading:Pa}}))},Gn=(0,ke.connect)(yr)(Hn),Or=ln=>{var Ft=ln,{FormProps:st,DataProps:mr={},isShowStyles:bi=!0,shixunHomeworks:Oi,dispatch:Qi}=Ft,$i=ai(Ft,["FormProps","DataProps","isShowStyles","shixunHomeworks","dispatch"]);const[Jr]=Ce.default.useForm(),{form:lr=Jr}=st,{studentWorkDetail:gi,workDetail:ro}=Oi,Fo=(0,ke.useParams)(),ca=Ce.default.useWatch("comment",lr),Pa=Ce.default.useWatch("score",lr),$o=Ce.default.useWatch("score_details",lr),[Uo,bs]=Ye.default.useModal(),[ds,io]=(0,oe.useState)(!1),[fs,No]=(0,oe.useState)(!1),Ra=(0,oe.useRef)({});(0,oe.useEffect)(()=>{var Mi;!(gi!=null&&gi.single_score)&&($o==null?void 0:$o.length)>0&&lr.setFieldsValue({score:(Mi=$o||[])==null?void 0:Mi.reduce((Bi,ua)=>(0,Vt.EN)(Bi,ua.score||0,"+"),0)})},[$o]);const wo=Mi=>nr(void 0,null,function*(){const{mes:Bi,setChatData:ua,setTyping:Ca}=Mi,Ta=yield(0,Ue.ZP)("/api/intelligent_reviews/large_model_intelligent_qa.json",{method:"post",body:Cr({query:Bi,student_work_id:Fo.userId},Ra.current)});Ta.answer=(Ta==null?void 0:Ta.status)==-3?Ta.message:Ta==null?void 0:Ta.answer,Ta!=null&&Ta.answer&&ua(_o=>[..._o].map((Mo,To)=>To===_o.length-1?pi(Cr({},Mo),{text:Ta==null?void 0:Ta.answer,loading:!1,response:Ta}):Mo))}),Os=({chatData:Mi,setChatData:Bi,setLoading:ua,getData:Ca,renderChatItems:Ta})=>{Qi({type:"shixunHomeworks/setActionTabs",payload:{key:"\u667A\u80FD\u8BC4\u9605\u914D\u7F6E",onOk:_o=>{Ra.current=_o,No(!0),ua(!0);const Mo=Ta();Mo[0].show=!1,Bi(Mo),Ca()}}})};return oe.createElement(oe.Fragment,null,bs,oe.createElement(Ce.default.Item,{hidden:!0,name:"score_id",label:"\u8FD9\u4E2A\u662F\u7528\u6765\u6536\u96C6score_id\u7684"}),!(mr!=null&&mr.disabledScore)&&oe.createElement(oe.Fragment,null,gi!=null&&gi.single_score?oe.createElement(Ce.default.Item,{className:mt.ReviewStyle,name:"score",rules:[{required:!(0,be.GJ)(),message:"\u8BF7\u586B\u5199\u5206\u6570"}],label:oe.createElement("div",{className:"w-full flex justify-between item-center"},oe.createElement("span",null,"\u8BC4\u5206"),(ro==null?void 0:ro.is_open_ai_review)&&oe.createElement(Xe.Z,{title:"\u667A\u80FD\u8BC4\u9605",visible:fs,onOpen:Os,onClose:()=>{No(!1)},loadingOption:{text:"AI\u8BC4\u9605\u4E2D..."},hideUpload:!0,showDefaultTips:!1,hideInputBox:!0,customRequest:wo,extraAnswerAction:Mi=>{var Bi;return!Mi.loading&&![-1,-3].includes((Bi=Mi==null?void 0:Mi.response)==null?void 0:Bi.status)&&oe.createElement("div",{className:mt.apply,onClick:()=>{const ua=()=>{var Ca,Ta;lr.setFieldsValue({score:(Ca=Mi==null?void 0:Mi.response)==null?void 0:Ca.score,comment:(Ta=Mi==null?void 0:Mi.response)==null?void 0:Ta.remarks}),No(!1)};if(Pa||ca){Uo.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u5206\u6216\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4E00\u952E\u5E94\u7528\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u5E94\u7528\uFF1F",okText:"\u5E94\u7528",onOk:ua});return}ua()}},oe.createElement("i",{style:{color:"#3061D0"},className:"iconfont icon-yijianyingyong1 font12 mr5"}),"\u4E00\u952E\u5E94\u7528")}},oe.createElement(Ee.ZP,{icon:oe.createElement("img",{src:ie(11689)}),type:"link"},"\u667A\u80FD\u8BC4\u9605")))},oe.createElement(Se.Z,{className:"w-full",step:.1,min:0,placeholder:"\u8BF7\u586B\u5199\u5206\u6570",addonAfter:"\u5206"})):oe.createElement("div",{className:bi?"gap-10px":"gap-20px mb20",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))"}},oe.createElement(Ce.default.List,{name:"score_details"},(Mi,{add:Bi,remove:ua})=>oe.createElement(oe.Fragment,null,Mi.map(Ca=>oe.createElement("div",{key:Ca.key,className:bi?"pt10 pb10 p20":"",style:{background:bi&&"#F6F7F9"}},oe.createElement("div",{className:"flex justify-between mb10"},oe.createElement("div",{className:"multi_ellipsis1"},lr.getFieldValue(["score_details",Ca.name,"name"])),oe.createElement("div",{className:"c-grey-666"},"\uFF08\u6EE1\u5206",lr.getFieldValue(["score_details",Ca.name,"full_score"]),"\u5206\uFF09")),oe.createElement(Ce.default.Item,{className:"mb0",name:[Ca.name,"score"],rules:lr.getFieldValue(["score_details",Ca.name,"isAllScore"])?null:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u6570"}]},oe.createElement(Se.Z,{className:"w-full",stringMode:!0,min:0,max:lr.getFieldValue(["score_details",Ca.name,"full_score"]),placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",controls:!1,addonAfter:"\u5206"})))))),oe.createElement("div",{key:"allScore",className:bi?"pt10 pb10 p20":"",style:{background:bi&&"#F6F7F9"}},oe.createElement("div",{className:"flex justify-between mb10"},oe.createElement("div",{className:"multi_ellipsis1 c-blue"},"\u7EFC\u5408\u5F97\u5206"),oe.createElement("div",{className:"c-grey-666"},"\uFF08\u6EE1\u5206100\u5206\uFF09")),oe.createElement(Ce.default.Item,{className:"mb0",name:"score"},oe.createElement(Se.Z,{className:"w-full",stringMode:!0,disabled:!0,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",controls:!1,addonAfter:"\u5206"}))))),oe.createElement(Ce.default.Item,{name:"comment",className:mt.ReviewStyle,label:oe.createElement("div",{className:"w-full flex justify-between item-center"},oe.createElement("span",null,"\u8BC4\u8BED"),oe.createElement(gt.Z,{isShowComponent:(0,be.G5)(),ModalProps:{open:ds,onCancel:()=>{io(!1)}},onDataSelect:(Mi,{node:Bi})=>{const ua=()=>{lr.setFieldsValue({comment:Bi==null?void 0:Bi.value}),io(!1)};if(ca){Uo.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:ua});return}ua()}},oe.createElement(Ee.ZP,{style:{padding:0,height:"auto"},icon:oe.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Mi=>{Mi.stopPropagation(),io(!0)}},"\u5E38\u7528\u8BC4\u8BED")))},oe.createElement(St.h,{height:200,scrollId:"comment",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5BF9\u672C\u4F5C\u54C1\u7684\u8BC4\u8BED\uFF0C\u6700\u5927\u9650\u52362000\u4E2A\u5B57\u7B26"})),oe.createElement(wr.Z,null))},Rt=(0,ke.connect)(yr)(Or),Ke=ln=>{var Ft=ln,{ModalProps:st={},DataProps:mr={},shixunHomeworks:bi,FormProps:Oi}=Ft,Qi=ai(Ft,["ModalProps","DataProps","shixunHomeworks","FormProps"]);const{form:$i}=Oi,{studentWorkDetail:Jr}=bi;return oe.createElement(Ye.default,Cr({},Cr({title:oe.createElement(oe.Fragment,null,"\u7F16\u8F91\u8BC4\u8BED",!(Jr!=null&&Jr.single_score)&&oe.createElement("span",{className:"ml20 font16",style:{color:"#FA6400"}},"\u6CE8\u610F\uFF1A\u5F00\u542F\u591A\u7EF4\u5EA6\u8BC4\u5206")),centered:!0,width:Jr!=null&&Jr.single_score?662:1120},st)),oe.createElement(Ce.default,Cr({},Cr({size:"large",layout:"vertical"},Oi)),oe.createElement(Rt,{FormProps:{form:$i},DataProps:mr})))},nt=(0,ke.connect)(yr)(Ke),rt=ln=>{var Ft=ln,{ModalProps:st={},DataProps:mr={},shixunHomeworks:bi}=Ft,Oi=ai(Ft,["ModalProps","DataProps","shixunHomeworks"]),Qi,$i,Jr;const{studentWorkDetail:lr}=bi,[gi,ro]=(0,oe.useState)({teacherList:[],assistantsList:[],anonymousCommentList:[]}),Fo=(ca,Pa,$o="")=>({title:$o==="anonymous_comment"?oe.createElement(xe.Z,{title:(0,be.G5)()&&(ca==null?void 0:ca.name)},oe.createElement("a",null,"\u533F\u540D")):ca==null?void 0:ca.name,dataIndex:`score${Pa}`,align:"center",render:(Uo,bs,ds)=>ds===0?oe.createElement(oe.Fragment,null,Uo,bs[`old_score${Pa}`]&&oe.createElement("span",{style:{color:"#009C0F"}},"\uFF08\u6559\u5E08\u8865\u5206\uFF1A",bs[`old_score${Pa}`],"\uFF09")):oe.createElement("div",{className:"flex item-center justify-center"},oe.createElement("div",{style:{width:166}},Uo==null?void 0:Uo.map((io,fs)=>oe.createElement("div",{key:fs,className:"flex justify-between"},io==null?void 0:io.name,oe.createElement("span",{className:"ml5",style:{color:"#009C0F"}},io==null?void 0:io.score)))))});return(0,oe.useEffect)(()=>{var ca,Pa,$o,Uo,bs,ds;if(lr&&(st!=null&&st.open)){const io=[{},{}],fs=[{},{}],No=[{},{}];((ca=lr==null?void 0:lr.teacher_score_list)==null?void 0:ca.length)>0&&((Pa=lr==null?void 0:lr.teacher_score_list)==null||Pa.forEach((Ra,wo)=>{io[0][`score${wo}`]=Ra==null?void 0:Ra.score,io[1][`score${wo}`]=Ra==null?void 0:Ra.user_score})),(($o=lr==null?void 0:lr.assistants_score_list)==null?void 0:$o.length)>0&&((Uo=lr==null?void 0:lr.assistants_score_list)==null||Uo.forEach((Ra,wo)=>{fs[0][`score${wo}`]=Ra==null?void 0:Ra.score,fs[1][`score${wo}`]=Ra==null?void 0:Ra.user_score})),((bs=lr==null?void 0:lr.anonymous_comment_score_list)==null?void 0:bs.length)>0&&((ds=lr==null?void 0:lr.anonymous_comment_score_list)==null||ds.forEach((Ra,wo)=>{Ra!=null&&Ra.old_score?(No[0][`score${wo}`]=Ra==null?void 0:Ra.old_score,No[0][`old_score${wo}`]=Ra==null?void 0:Ra.score):(No[0][`score${wo}`]=Ra==null?void 0:Ra.score,No[0][`old_score${wo}`]=Ra==null?void 0:Ra.old_score),No[1][`score${wo}`]=Ra==null?void 0:Ra.user_score})),ro({teacherList:lr!=null&&lr.single_score?[io[0]]:io,assistantsList:lr!=null&&lr.single_score?[fs[0]]:fs,anonymousCommentList:lr!=null&&lr.single_score?[No[0]]:No})}},[lr,st==null?void 0:st.open]),oe.createElement(Ye.default,Cr({},Cr({title:"\u5F97\u5206\u8BE6\u60C5",centered:!0,width:1200,bodyStyle:{maxHeight:"80vh"}},st)),oe.createElement(or,{className:"mt0",dataInfo:lr,isShowButton:!1}),oe.createElement("div",{className:`${mt.ScoreDetailsBase} flex flex-col gap-20px`},((Qi=lr==null?void 0:lr.teacher_score_list)==null?void 0:Qi.length)>0&&oe.createElement("div",{className:"flex"},oe.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u6559\u5E08\u8BC4\u5206"),oe.createElement(Ie.default,{className:"flex-1",style:{minWidth:0},bordered:!0,dataSource:gi==null?void 0:gi.teacherList,pagination:!1,scroll:{x:"max-content"},columns:[...((lr==null?void 0:lr.teacher_score_list)||[]).map((ca,Pa)=>Fo(ca,Pa)),{title:`\u6700\u7EC8\u5F97\u5206\uFF08${(lr==null?void 0:lr.teacher_mode)===1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206"}\uFF09`,dataIndex:"value",align:"center",width:224,fixed:"right",render:ca=>oe.createElement("span",{style:{color:"#009C0F"}},lr==null?void 0:lr.teacher_score),onCell:(ca,Pa)=>({rowSpan:Pa%2==0?2:0})}]})),(($i=lr==null?void 0:lr.assistants_score_list)==null?void 0:$i.length)>0&&oe.createElement("div",{className:"flex"},oe.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u52A9\u6559\u8BC4\u5206"),oe.createElement(Ie.default,{className:"flex-1",style:{minWidth:0},bordered:!0,dataSource:(gi==null?void 0:gi.assistantsList)||[],pagination:!1,scroll:{x:"max-content"},columns:[...((lr==null?void 0:lr.assistants_score_list)||[]).map((ca,Pa)=>Fo(ca,Pa)),{title:`\u6700\u7EC8\u5F97\u5206\uFF08${(lr==null?void 0:lr.ta_mode)===1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206"}\uFF09`,dataIndex:"value",align:"center",width:224,fixed:"right",render:ca=>oe.createElement("span",{style:{color:"#009C0F"}},lr==null?void 0:lr.teaching_asistant_score),onCell:(ca,Pa)=>({rowSpan:Pa%2==0?2:0})}]})),(lr==null?void 0:lr.anonymous_comment)&&((Jr=lr==null?void 0:lr.anonymous_comment_score_list)==null?void 0:Jr.length)>0&&oe.createElement("div",{className:"flex"},oe.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u533F\u8BC4\u8BC4\u5206"),oe.createElement(Ie.default,{className:"flex-1",style:{minWidth:0},bordered:!0,dataSource:(gi==null?void 0:gi.anonymousCommentList)||[],pagination:!1,scroll:{x:"max-content"},columns:[...((lr==null?void 0:lr.anonymous_comment_score_list)||[]).map((ca,Pa)=>Fo(ca,Pa,"anonymous_comment")),{title:"\u6700\u7EC8\u5F97\u5206\uFF08\u53D6\u5E73\u5747\u5206\uFF09",dataIndex:"value",align:"center",width:224,fixed:"right",render:ca=>oe.createElement("span",{style:{color:"#009C0F"}}," ",lr==null?void 0:lr.student_score),onCell:(ca,Pa)=>({rowSpan:Pa%2==0?2:0})}]})),oe.createElement("div",{className:"flex"},oe.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u6263\u5206"),oe.createElement(Ie.default,{className:" flex-1",bordered:!0,dataSource:[lr],pagination:!1,columns:[{title:"\u8865\u4EA4\u6263\u5206",dataIndex:"late_penalty",align:"center"},{title:"\u67E5\u91CD\u6263\u5206",dataIndex:"repeat_minus_score",align:"center"},(lr==null?void 0:lr.anonymous_comment)&&{title:"\u7F3A\u8BC4\u6263\u5206",dataIndex:"absence_penalty",align:"center"},{title:"\u8FDD\u8BC4\u6263\u5206",dataIndex:"appeal_penalty",align:"center"},{title:"\u6700\u7EC8\u6263\u5206",dataIndex:"value",align:"center",width:224,render:(ca,Pa)=>oe.createElement("span",{style:{color:"#009C0F"}},((Pa==null?void 0:Pa.late_penalty)||0)+((Pa==null?void 0:Pa.repeat_minus_score)||0)+((Pa==null?void 0:Pa.absence_penalty)||0)+((Pa==null?void 0:Pa.appeal_penalty)||0))}].filter(ca=>ca)}))))},it=(0,ke.connect)(yr)(rt),Dt=ln=>{var Ft=ln,{ModalProps:st={},DataProps:mr={},shixunHomeworks:bi,dispatch:Oi}=Ft,Qi=ai(Ft,["ModalProps","DataProps","shixunHomeworks","dispatch"]);const{workDetail:$i}=bi,Jr=(0,ke.useParams)();return oe.createElement(Ye.default,Cr({},Cr({title:"\u4F5C\u4E1A\u63CF\u8FF0",centered:!0,width:1200,bodyStyle:{maxHeight:"80vh"}},st)),oe.createElement(Et.Z,{className:"mt10",value:($i==null?void 0:$i.description)||"\u6682\u65E0\uFF5E"}),oe.createElement(se.Z,{authority:(0,be.GJ)(),showDimensions:!1,dataSource:$i==null?void 0:$i.attachments,callback:()=>{Oi({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:Jr.categoryId}})}}))},Ht=(0,ke.connect)(yr)(Dt);var sn=Object.defineProperty,qt=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,Tn=(ln,Ft,st)=>Ft in ln?sn(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,Pn=(ln,Ft)=>{for(var st in Ft||(Ft={}))mn.call(Ft,st)&&Tn(ln,st,Ft[st]);if(qt)for(var st of qt(Ft))An.call(Ft,st)&&Tn(ln,st,Ft[st]);return ln};const Qt=ln=>React.createElement("svg",Pn({width:13,height:12,xmlns:"http://www.w3.org/2000/svg"},ln),React.createElement("title",null,"4"),React.createElement("path",{d:"M2.573 1.787v.006c.018.135.324 2.394 2.146 4.04C6.597 7.53 9.481 7.66 9.481 7.66h.003c.084.001 1.985.07 3.035 3.16.033.096.074.232.123.407a.583.583 0 0 1-.563.739H3.578a.583.583 0 0 1-.584-.592c.025-1.732-.115-2.97-.421-3.714C2.057 6.405.735 5.392.038 2.183c-.04-.188-.246-1.41.997-1.578C2.277.437 2.573 1.787 2.573 1.787ZM7.876.007c1.611 0 2.917 1.371 2.917 3.063 0 1.69-1.306 3.062-2.917 3.062-1.611 0-2.917-1.37-2.917-3.062C4.96 1.379 6.265.007 7.876.007Z",fill:"#FA6400",fillRule:"nonzero"}));var wn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNTczIDEuNzg3di4wMDZjLjAxOC4xMzUuMzI0IDIuMzk0IDIuMTQ2IDQuMDRDNi41OTcgNy41MyA5LjQ4MSA3LjY2IDkuNDgxIDcuNjZoLjAwM2MuMDg0LjAwMSAxLjk4NS4wNyAzLjAzNSAzLjE2LjAzMy4wOTYuMDc0LjIzMi4xMjMuNDA3YS41ODMuNTgzIDAgMCAxLS41NjMuNzM5SDMuNTc4YS41ODMuNTgzIDAgMCAxLS41ODQtLjU5MmMuMDI1LTEuNzMyLS4xMTUtMi45Ny0uNDIxLTMuNzE0QzIuMDU3IDYuNDA1LjczNSA1LjM5Mi4wMzggMi4xODNjLS4wNC0uMTg4LS4yNDYtMS40MS45OTctMS41NzhDMi4yNzcuNDM3IDIuNTczIDEuNzg3IDIuNTczIDEuNzg3Wk03Ljg3Ni4wMDdjMS42MTEgMCAyLjkxNyAxLjM3MSAyLjkxNyAzLjA2MyAwIDEuNjktMS4zMDYgMy4wNjItMi45MTcgMy4wNjItMS42MTEgMC0yLjkxNy0xLjM3LTIuOTE3LTMuMDYyQzQuOTYgMS4zNzkgNi4yNjUuMDA3IDcuODc2LjAwN1oiIGZpbGw9IiNGQTY0MDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Xn=Object.defineProperty,Wn=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,Jn=Object.prototype.propertyIsEnumerable,Ar=(ln,Ft,st)=>Ft in ln?Xn(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,Fn=(ln,Ft)=>{for(var st in Ft||(Ft={}))sr.call(Ft,st)&&Ar(ln,st,Ft[st]);if(Wn)for(var st of Wn(Ft))Jn.call(Ft,st)&&Ar(ln,st,Ft[st]);return ln};const dr=ln=>React.createElement("svg",Fn({width:12,height:12,xmlns:"http://www.w3.org/2000/svg"},ln),React.createElement("title",null,"5"),React.createElement("g",{fill:"#5E54E7",fillRule:"nonzero"},React.createElement("path",{d:"M8.477 5.651c.569 0 1.101.138 1.569.377V1.257C10.046.56 9.486 0 8.789 0H1.257C.56 0 0 .56 0 1.257v8.789c0 .697.56 1.257 1.257 1.257h4.56a3.411 3.411 0 0 1-.79-2.193 3.448 3.448 0 0 1 3.45-3.459Zm-3.138.624H2.202a.31.31 0 0 1-.312-.312.31.31 0 0 1 .312-.312h3.137a.31.31 0 0 1 .312.312.31.31 0 0 1-.312.312ZM1.257 3.138V1.88c0-.349.284-.624.624-.624h6.275c.349 0 .624.284.624.624v1.257H1.257Zm2.826 5.651H2.202a.31.31 0 0 1-.312-.312.31.31 0 0 1 .312-.312h1.88a.31.31 0 0 1 .312.312.31.31 0 0 1-.311.312Z"}),React.createElement("path",{d:"M8.477 6.275a2.827 2.827 0 0 0 0 5.652 2.827 2.827 0 0 0 0-5.652Zm1.587 4.743C10.22 8.752 8.44 9.661 8.44 9.661v.981L6.908 9.101 8.44 7.54l-.009.9c2.835.421 1.633 2.577 1.633 2.577Z"})));var Ot="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzVFNTRFNyIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNOC40NzcgNS42NTFjLjU2OSAwIDEuMTAxLjEzOCAxLjU2OS4zNzdWMS4yNTdDMTAuMDQ2LjU2IDkuNDg2IDAgOC43ODkgMEgxLjI1N0MuNTYgMCAwIC41NiAwIDEuMjU3djguNzg5YzAgLjY5Ny41NiAxLjI1NyAxLjI1NyAxLjI1N2g0LjU2YTMuNDExIDMuNDExIDAgMCAxLS43OS0yLjE5MyAzLjQ0OCAzLjQ0OCAwIDAgMSAzLjQ1LTMuNDU5Wm0tMy4xMzguNjI0SDIuMjAyYS4zMS4zMSAwIDAgMS0uMzEyLS4zMTIuMzEuMzEgMCAwIDEgLjMxMi0uMzEyaDMuMTM3YS4zMS4zMSAwIDAgMSAuMzEyLjMxMi4zMS4zMSAwIDAgMS0uMzEyLjMxMlpNMS4yNTcgMy4xMzhWMS44OGMwLS4zNDkuMjg0LS42MjQuNjI0LS42MjRoNi4yNzVjLjM0OSAwIC42MjQuMjg0LjYyNC42MjR2MS4yNTdIMS4yNTdabTIuODI2IDUuNjUxSDIuMjAyYS4zMS4zMSAwIDAgMS0uMzEyLS4zMTIuMzEuMzEgMCAwIDEgLjMxMi0uMzEyaDEuODhhLjMxLjMxIDAgMCAxIC4zMTIuMzEyLjMxLjMxIDAgMCAxLS4zMTEuMzEyWiIvPjxwYXRoIGQ9Ik04LjQ3NyA2LjI3NWEyLjgyNyAyLjgyNyAwIDAgMCAwIDUuNjUyIDIuODI3IDIuODI3IDAgMCAwIDAtNS42NTJabTEuNTg3IDQuNzQzQzEwLjIyIDguNzUyIDguNDQgOS42NjEgOC40NCA5LjY2MXYuOTgxTDYuOTA4IDkuMTAxIDguNDQgNy41NGwtLjAwOS45YzIuODM1LjQyMSAxLjYzMyAyLjU3NyAxLjYzMyAyLjU3N1oiLz48L2c+PC9zdmc+",cn=Object.defineProperty,vn=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,Sn=(ln,Ft,st)=>Ft in ln?cn(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,bn=(ln,Ft)=>{for(var st in Ft||(Ft={}))Mn.call(Ft,st)&&Sn(ln,st,Ft[st]);if(vn)for(var st of vn(Ft))yn.call(Ft,st)&&Sn(ln,st,Ft[st]);return ln};const zn=ln=>React.createElement("svg",bn({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},ln),React.createElement("title",null,"2"),React.createElement("g",{fill:"#00B187",fillRule:"nonzero"},React.createElement("path",{d:"M2.573 1.787v.006c.018.135.324 2.394 2.146 4.04C6.597 7.53 9.481 7.66 9.481 7.66h.003c.084.001 1.985.07 3.035 3.16.033.096.074.232.123.407a.583.583 0 0 1-.563.739H3.578a.583.583 0 0 1-.584-.592c.025-1.732-.115-2.97-.421-3.714C2.057 6.405.735 5.392.038 2.183c-.04-.188-.246-1.41.997-1.578C2.277.437 2.573 1.787 2.573 1.787Z"}),React.createElement("path",{d:"M13.09 1.787v.006c-.017.135-.324 2.394-2.146 4.04C9.066 7.53 6.182 7.66 6.182 7.66h-.003c-.084.001-1.985.07-3.035 3.16a7.91 7.91 0 0 0-.122.407.583.583 0 0 0 .562.739h8.502a.583.583 0 0 0 .583-.592c-.025-1.732.116-2.97.422-3.714.515-1.255 1.837-2.268 2.534-5.477.041-.188.246-1.41-.996-1.578-1.242-.168-1.538 1.182-1.538 1.182Z"}),React.createElement("path",{d:"M7.876.007c1.611 0 2.917 1.371 2.917 3.063 0 1.69-1.306 3.062-2.917 3.062-1.611 0-2.917-1.37-2.917-3.062C4.96 1.379 6.265.007 7.876.007Z"})));var Zn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwQjE4NyIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMi41NzMgMS43ODd2LjAwNmMuMDE4LjEzNS4zMjQgMi4zOTQgMi4xNDYgNC4wNEM2LjU5NyA3LjUzIDkuNDgxIDcuNjYgOS40ODEgNy42NmguMDAzYy4wODQuMDAxIDEuOTg1LjA3IDMuMDM1IDMuMTYuMDMzLjA5Ni4wNzQuMjMyLjEyMy40MDdhLjU4My41ODMgMCAwIDEtLjU2My43MzlIMy41NzhhLjU4My41ODMgMCAwIDEtLjU4NC0uNTkyYy4wMjUtMS43MzItLjExNS0yLjk3LS40MjEtMy43MTRDMi4wNTcgNi40MDUuNzM1IDUuMzkyLjAzOCAyLjE4M2MtLjA0LS4xODgtLjI0Ni0xLjQxLjk5Ny0xLjU3OEMyLjI3Ny40MzcgMi41NzMgMS43ODcgMi41NzMgMS43ODdaIi8+PHBhdGggZD0iTTEzLjA5IDEuNzg3di4wMDZjLS4wMTcuMTM1LS4zMjQgMi4zOTQtMi4xNDYgNC4wNEM5LjA2NiA3LjUzIDYuMTgyIDcuNjYgNi4xODIgNy42NmgtLjAwM2MtLjA4NC4wMDEtMS45ODUuMDctMy4wMzUgMy4xNmE3LjkxIDcuOTEgMCAwIDAtLjEyMi40MDcuNTgzLjU4MyAwIDAgMCAuNTYyLjczOWg4LjUwMmEuNTgzLjU4MyAwIDAgMCAuNTgzLS41OTJjLS4wMjUtMS43MzIuMTE2LTIuOTcuNDIyLTMuNzE0LjUxNS0xLjI1NSAxLjgzNy0yLjI2OCAyLjUzNC01LjQ3Ny4wNDEtLjE4OC4yNDYtMS40MS0uOTk2LTEuNTc4LTEuMjQyLS4xNjgtMS41MzggMS4xODItMS41MzggMS4xODJaIi8+PHBhdGggZD0iTTcuODc2LjAwN2MxLjYxMSAwIDIuOTE3IDEuMzcxIDIuOTE3IDMuMDYzIDAgMS42OS0xLjMwNiAzLjA2Mi0yLjkxNyAzLjA2Mi0xLjYxMSAwLTIuOTE3LTEuMzctMi45MTctMy4wNjJDNC45NiAxLjM3OSA2LjI2NS4wMDcgNy44NzYuMDA3WiIvPjwvZz48L3N2Zz4=",qn=Object.defineProperty,_r=Object.getOwnPropertySymbols,ei=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,zr=(ln,Ft,st)=>Ft in ln?qn(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,Lr=(ln,Ft)=>{for(var st in Ft||(Ft={}))ei.call(Ft,st)&&zr(ln,st,Ft[st]);if(_r)for(var st of _r(Ft))di.call(Ft,st)&&zr(ln,st,Ft[st]);return ln};const mi=ln=>React.createElement("svg",Lr({width:12,height:12,xmlns:"http://www.w3.org/2000/svg"},ln),React.createElement("title",null,"1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M6.325 1.6a.578.578 0 0 1 .448.197c.135.176.215.387.23.608a.672.672 0 0 1 .535-.107c.497.088.628.632.653 1.043a.565.565 0 0 1 .292-.037c.699.079.686.756.68 1.046-.008.29-.248 2.06-.28 2.288.04.277.343 2.649-.851 3.6l.057.849-3.338.113v-1.168c-.27-.219-1.33-1.136-1.544-2.283a4.077 4.077 0 0 0-.475-1.201c-.277-.514-.515-.96-.114-1.436a.585.585 0 0 1 .457-.236c.608 0 1.154 1.1 1.302 1.935l.16.08-.12-3.53c0-.015-.043-.516.228-.809a.651.651 0 0 1 .493-.205h.036a.767.767 0 0 1 .375.106c.016-.233.104-.456.252-.636a.692.692 0 0 1 .524-.217Z",fill:"#EE5D5D"}),React.createElement("path",{d:"M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0ZM2.019 2.655a5.2 5.2 0 0 0 6.472 7.91ZM6 .8a5.18 5.18 0 0 0-3.417 1.28l6.582 8.046A5.2 5.2 0 0 0 6 .8Z",fill:"#E30000"})));var oi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNi4zMjUgMS42YS41NzguNTc4IDAgMCAxIC40NDguMTk3Yy4xMzUuMTc2LjIxNS4zODcuMjMuNjA4YS42NzIuNjcyIDAgMCAxIC41MzUtLjEwN2MuNDk3LjA4OC42MjguNjMyLjY1MyAxLjA0M2EuNTY1LjU2NSAwIDAgMSAuMjkyLS4wMzdjLjY5OS4wNzkuNjg2Ljc1Ni42OCAxLjA0Ni0uMDA4LjI5LS4yNDggMi4wNi0uMjggMi4yODguMDQuMjc3LjM0MyAyLjY0OS0uODUxIDMuNmwuMDU3Ljg0OS0zLjMzOC4xMTN2LTEuMTY4Yy0uMjctLjIxOS0xLjMzLTEuMTM2LTEuNTQ0LTIuMjgzYTQuMDc3IDQuMDc3IDAgMCAwLS40NzUtMS4yMDFjLS4yNzctLjUxNC0uNTE1LS45Ni0uMTE0LTEuNDM2YS41ODUuNTg1IDAgMCAxIC40NTctLjIzNmMuNjA4IDAgMS4xNTQgMS4xIDEuMzAyIDEuOTM1bC4xNi4wOC0uMTItMy41M2MwLS4wMTUtLjA0My0uNTE2LjIyOC0uODA5YS42NTEuNjUxIDAgMCAxIC40OTMtLjIwNWguMDM2YS43NjcuNzY3IDAgMCAxIC4zNzUuMTA2Yy4wMTYtLjIzMy4xMDQtLjQ1Ni4yNTItLjYzNmEuNjkyLjY5MiAwIDAgMSAuNTI0LS4yMTdaIiBmaWxsPSIjRUU1RDVEIi8+PHBhdGggZD0iTTYgMGE2IDYgMCAxIDEgMCAxMkE2IDYgMCAwIDEgNiAwWk0yLjAxOSAyLjY1NWE1LjIgNS4yIDAgMCAwIDYuNDcyIDcuOTFaTTYgLjhhNS4xOCA1LjE4IDAgMCAwLTMuNDE3IDEuMjhsNi41ODIgOC4wNDZBNS4yIDUuMiAwIDAgMCA2IC44WiIgZmlsbD0iI0UzMDAwMCIvPjwvZz48L3N2Zz4=",ti=(ln,Ft,st)=>new Promise((mr,bi)=>{var Oi=Jr=>{try{$i(st.next(Jr))}catch(lr){bi(lr)}},Qi=Jr=>{try{$i(st.throw(Jr))}catch(lr){bi(lr)}},$i=Jr=>Jr.done?mr(Jr.value):Promise.resolve(Jr.value).then(Oi,Qi);$i((st=st.apply(ln,Ft)).next())}),Vr=({open:ln,onClose:Ft,onOk:st})=>{const[mr,bi]=(0,oe.useState)(!1),[Oi,Qi]=(0,oe.useState)("\u6263\u5206\u7406\u7531\u4E0D\u6E05\u6670"),[$i,Jr]=(0,oe.useState)(""),lr=()=>ti(void 0,null,function*(){bi(!0),(yield st(Oi,$i))===0&&Ft(),bi(!1)}),gi=["\u6263\u5206\u7406\u7531\u4E0D\u6E05\u6670","\u4F5C\u4E1A\u6B63\u786E\u4F46\u88AB\u6263\u5206","\u8BC4\u8BED\u8FC7\u4E8E\u4E3B\u89C2\u6216\u7B3C\u7EDF","\u8BC4\u8BED\u4E0E\u5B9E\u9645\u60C5\u51B5\u4E0D\u7B26","\u8BC4\u8BED\u4E0E\u8BC4\u5206\u4E0D\u5339\u914D","\u8BC4\u5206\u6807\u51C6\u6267\u884C\u4E0D\u4E00\u81F4","\u7F3A\u4E4F\u6539\u8FDB\u5EFA\u8BAE","\u81EA\u52A8\u8BC4\u5206\u7CFB\u7EDF\u95EE\u9898","\u5176\u5B83"];return oe.createElement(Ye.default,{centered:!0,open:ln,confirmLoading:mr,onCancel:()=>{Ft()},afterClose:()=>{Jr(""),Qi("\u6263\u5206\u7406\u7531\u4E0D\u6E05\u6670")},onOk:lr,title:"\u53CD\u9988",width:"1000px",okText:"\u63D0\u4EA4"},oe.createElement("div",{className:Ne.btnWarp},gi.map(ro=>oe.createElement("div",{key:ro,className:Oi===ro?Ne.active:"",onClick:()=>Qi(ro)},ro))),oe.createElement(Re.default.TextArea,{style:{height:280},placeholder:"\u6211\u4EEC\u60F3\u77E5\u9053\u4F60\u5BF9\u8BC4\u5206\u6216\u8BC4\u8BED\u4E0D\u6EE1\u610F\u7684\u539F\u56E0~",value:$i,onChange:ro=>Jr(ro.target.value)}))},En=ie(59301),Yr=Object.defineProperty,Li=Object.defineProperties,Yi=Object.getOwnPropertyDescriptors,ni=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable,Qr=(ln,Ft,st)=>Ft in ln?Yr(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,Dr=(ln,Ft)=>{for(var st in Ft||(Ft={}))tr.call(Ft,st)&&Qr(ln,st,Ft[st]);if(ni)for(var st of ni(Ft))Un.call(Ft,st)&&Qr(ln,st,Ft[st]);return ln},fi=(ln,Ft)=>Li(ln,Yi(Ft)),Ni=(ln,Ft)=>{var st={};for(var mr in ln)tr.call(ln,mr)&&Ft.indexOf(mr)<0&&(st[mr]=ln[mr]);if(ln!=null&&ni)for(var mr of ni(ln))Ft.indexOf(mr)<0&&Un.call(ln,mr)&&(st[mr]=ln[mr]);return st},si=(ln,Ft,st)=>new Promise((mr,bi)=>{var Oi=Jr=>{try{$i(st.next(Jr))}catch(lr){bi(lr)}},Qi=Jr=>{try{$i(st.throw(Jr))}catch(lr){bi(lr)}},$i=Jr=>Jr.done?mr(Jr.value):Promise.resolve(Jr.value).then(Oi,Qi);$i((st=st.apply(ln,Ft)).next())});const ea=ln=>{var Ft=ln,{Data:st,layer:mr=1,type:bi,index:Oi=0,newType:Qi,user:$i,showName:Jr,showNm:lr}=Ft,gi=Ni(Ft,["Data","layer","type","index","newType","user","showName","showNm"]),ro,Fo,ca,Pa,$o,Uo,bs,ds,io,fs,No,Ra,wo,Os,Mi,Bi,ua;const Ca=(0,ke.useParams)(),{studentWorkDetail:Ta}=gi==null?void 0:gi.shixunHomeworks,[_o,Mo]=(0,oe.useState)({type:0,show:!1}),[To,qs]=(0,oe.useState)(null),[,Ya,ii]=(0,de.U)(je.qP,{userId:Ca==null?void 0:Ca.userId}),[,_s,Ml]=(0,de.U)(je.R$,{userId:Ca==null?void 0:Ca.userId}),[,du,cr]=(0,de.U)(je.QC,{userId:Ca==null?void 0:Ca.userId}),[,da,fu]=(0,de.U)(je.Mf,{userId:Ca==null?void 0:Ca.userId}),[,mc,Cu,hs]=(0,de.U)(je.Am,{homeworkId:Ca==null?void 0:Ca.userId}),[,wu,Eu,Pl]=(0,de.U)(je.oK,{}),[hu,Rl]=(0,oe.useState)(!1),[Vo]=Ce.default.useForm(),[ol]=Ce.default.useForm(),[Al]=Ce.default.useForm(),[tu,Hl]=(0,oe.useState)(!1),[Mu,Fl]=(0,oe.useState)(!1),[xs,Au]=(0,oe.useState)(!1),Ps=(xa=st)=>{Ye.default.confirm({title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",centered:!0,onOk:()=>si(void 0,null,function*(){(yield cr({score_id:xa==null?void 0:xa.comment_id})).status===0&&(ye.ZP.success("\u5220\u9664\u6210\u529F"),gi!=null&&gi.getInitData&&(gi==null||gi.getInitData()))})})},ku=(xa=st)=>{Ye.default.confirm({title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",centered:!0,onOk:()=>si(void 0,null,function*(){(yield fu({object_id:xa.id,object_type:"journals_for_message"})).status===0&&(ye.ZP.success("\u5220\u9664\u6210\u529F"),gi!=null&&gi.getInitData&&(gi==null||gi.getInitData()))})})},bl=(xa,Ao)=>{let Ss="";for(let ss=0;ss<(xa==null?void 0:xa.length);ss++){const Ys=xa[ss];Ao!=null&&Ao.old_score?Ss+=`<span style="color:#999999">${Ys.name}<span style="color:#999999;"}}> ${Ys.score}\u5206 </span></span>`:Ss+=`<span>${Ys.name}<span style="color:#CA7720;"}}> ${Ys.score}\u5206 </span></span>`,ss<(xa==null?void 0:xa.length)-1&&(Ao!=null&&Ao.old_score?Ss+=' <span style="color:#999999"> + </span> ':Ss+=" + ")}return En.createElement("span",{dangerouslySetInnerHTML:{__html:Ss}})},Du=(xa,Ao,Ss)=>si(void 0,null,function*(){const ss={type:xa,score_id:st==null?void 0:st.comment_id,reason:Ao||null,content:Ss||null},Ys=yield(0,Ue.ZP)(`/api/student_works/${Ca==null?void 0:Ca.categoryId}/add_score_like.json`,{method:"post",body:ss});return Ys.status===0&&gi!=null&&gi.getInitData&&(gi==null||gi.getInitData()),Ys.status});return En.createElement("div",{className:mr==1&&Ne.new_style_box,style:Qi&&{background:"#FCF8F4",border:"none"}},En.createElement(Le.Z,{wrap:!1,gutter:15,className:mr!=1&&Ne.box_child,style:Qi&&{marginTop:"0px"}},bi=="appeal_info"?En.createElement(ht.Z,{flex:1},En.createElement("div",{className:Ne.box_item_top},En.createElement(xe.Z,{title:Jr?(ro=st==null?void 0:st.appeal_info)==null?void 0:ro.user_name:""},En.createElement("span",{style:{color:Jr?"#3061D0":"#333333",fontWeight:600}},lr?"\u533F\u540D":(Fo=st==null?void 0:st.appeal_info)==null?void 0:Fo.user_name)),(st==null?void 0:st.appeal_status)==1&&En.createElement("span",{className:Ne.tagStyleSzz,style:{color:"#CF5300",border:"1px solid rgba(250,100,0,0.2)",background:"rgba(250,100,0,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},En.createElement("img",{src:wn,className:"mr5"}),"\u7533\u8BC9\u4E2D"),(st==null?void 0:st.appeal_status)==2&&En.createElement("span",{className:Ne.tagStyleSzz,style:{color:"#4237E7",border:"1px solid rgba(94,84,231,0.2)",background:"rgba(94,84,231,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},En.createElement("img",{src:Ot,className:"mr5"}),"\u7533\u8BC9\u5DF2\u64A4\u9500"),(st==null?void 0:st.appeal_status)==3&&En.createElement("span",{className:Ne.tagStyleSzz,style:{color:"#00B187",border:"1px rgba(0,177,135,0.2) solid",background:"rgba(0,177,135,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},En.createElement("img",{src:Zn,className:"mr5"}),"\u7533\u8BC9\u6210\u529F"),(st==null?void 0:st.appeal_status)==4&&En.createElement("span",{className:Ne.tagStyleSzz,style:{color:"#E30000",border:"1px solid rgba(227,0,0,0.2)",background:"rgba(227,0,0,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},En.createElement("img",{src:oi,className:"mr5"}),"\u7533\u8BC9\u88AB\u62D2\u7EDD"),(st==null?void 0:st.reason)&&En.createElement("span",{className:`${Ne.tagStyleSzz} ${Ne.feedbackSty}`},st==null?void 0:st.reason)),En.createElement(Et.Z,{className:"font14 mt10",value:`${((ca=st==null?void 0:st.appeal_info)==null?void 0:ca.content)||"\u6682\u672A\u5199\u8BC4\u8BED"}`})):En.createElement(ht.Z,{flex:1},En.createElement("div",{className:Ne.box_item_top},En.createElement(xe.Z,{title:Jr?(Pa=st==null?void 0:st.user_info)==null?void 0:Pa.user_name:""},En.createElement("span",{style:{color:Jr?"#3061D0":"#333333",fontWeight:600}},lr?"\u533F\u540D":($o=st==null?void 0:st.user_info)==null?void 0:$o.user_name)),(st==null?void 0:st.student_work_num)&&En.createElement(ht.Z,null,En.createElement("span",{style:{padding:"3px 8px",background:(st==null?void 0:st.student_work_num)==1?"#5A9781":"#FFD28D",color:(st==null?void 0:st.student_work_num)==1?"#FFFFFF":"#AC4C0C",fontSize:"12px",borderRadius:"2px"}},"\u7B2C ",st==null?void 0:st.student_work_num," \u6B21\u63D0\u4EA4\u7684\u4F5C\u4E1A")),((st==null?void 0:st.score)||(st==null?void 0:st.score)==0)&&(Ta==null?void 0:Ta.single_score)&&En.createElement(ht.Z,null,En.createElement("span",{style:{color:st!=null&&st.anonymous_exception?"#E30000":st!=null&&st.old_score?"#999999":"#009C0F",fontWeight:600,marginLeft:"-7px"}}," ",(st==null?void 0:st.old_score)||(st==null?void 0:st.score),"\u5206 ",(st==null?void 0:st.old_score)&&"\uFF08\u5DF2\u5931\u6548\uFF09")),bi!="feedback"&&(mr==1&&!(st!=null&&st.can_reply)||!(st!=null&&st.can_reply)&&bi=="teacher"&&Oi!=0)&&En.createElement(ht.Z,null,En.createElement("span",{className:"c-light-black"},"\uFF08\u5DF2\u5931\u6548\uFF09")),!(Ta!=null&&Ta.single_score)&&(st==null?void 0:st.score)!==null&&En.createElement("div",{style:{color:"#333333"}},En.createElement(xe.Z,{title:((Uo=st==null?void 0:st.score_details)==null?void 0:Uo.length)>0?bl(st==null?void 0:st.score_details,st):"",overlayInnerStyle:{width:"min-content",whiteSpace:"nowrap",overflow:"visible"},placement:"topLeft"},En.createElement("div",{style:{display:"flex",alignItems:"center"}},((st==null?void 0:st.score)||(st==null?void 0:st.score)==0)&&En.createElement("span",{style:{color:st!=null&&st.anonymous_exception?"#E30000":st!=null&&st.old_score?"#999999":"#009C0F",fontWeight:600,marginRight:"5px"}},(st==null?void 0:st.old_score)||(st==null?void 0:st.score),"\u5206 ",(st==null?void 0:st.old_score)&&"\uFF08\u5DF2\u5931\u6548\uFF09"),((bs=st==null?void 0:st.score_details)==null?void 0:bs.length)>0&&En.createElement("div",{className:Ne.left,style:{width:"200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},"= ",bl(st==null?void 0:st.score_details,st))))),(st==null?void 0:st.anonymous_exception)&&En.createElement("div",{className:Ne.yichang,style:{marginLeft:((ds=st==null?void 0:st.score_details)==null?void 0:ds.length)>0&&"10px"}},En.createElement("i",{className:"iconfont icon-tishi12",style:{fontSize:"11px",marginRight:"3px"}}),"\u8BC4\u5206\u5F02\u5E38"),(st==null?void 0:st.reason)&&En.createElement("span",{className:`${Ne.tagStyleSzz} ${Ne.feedbackSty}`},st==null?void 0:st.reason)),En.createElement(Et.Z,{className:"font14 mt10",value:`${(st==null?void 0:st.content)||(st==null?void 0:st.hidden_comment)||"\u6682\u672A\u5199\u8BC4\u8BED"}`}),((io=st==null?void 0:st.attachments)==null?void 0:io.length)>0&&En.createElement("div",{className:"mt10",style:{display:"flex",flexDirection:"column",gap:10}},(fs=st==null?void 0:st.attachments)==null?void 0:fs.map((xa,Ao)=>En.createElement("a",{key:Ao,href:`${ot.Z.API_SERVER}${xa.url}`},En.createElement("i",{className:"iconfont icon-fujian font14"}),En.createElement("span",{className:"ml10"},xa==null?void 0:xa.title),En.createElement("span",{className:"c-light-black ml20 font12"},xa==null?void 0:xa.filesize))))),bi!="feedback"&&En.createElement(En.Fragment,null,bi=="appeal_info"?En.createElement(ht.Z,{style:{whiteSpace:"nowrap"}},En.createElement(Le.Z,{wrap:!1,gutter:10},(st==null?void 0:st.delete)&&(st==null?void 0:st.can_appeal)&&En.createElement(ht.Z,null,En.createElement("span",{className:Ne.text_style,onClick:()=>{Ye.default.confirm({centered:!0,title:En.createElement("div",null,"\u64A4\u9500\u7533\u8BC9\u540E\uFF0C\u65E0\u6CD5\u518D\u5BF9\u672C\u8BC4\u9605\u8BB0\u5F55\u8FDB\u884C\u7533\u8BC9",En.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BC9"),onOk:()=>si(void 0,null,function*(){gi!=null&&gi.getInitData&&(gi==null||gi.getInitData())})})}},"\u64A4\u9500\u7533\u8BC9")),(st==null?void 0:st.appeal_status)==1&&(0,be.GJ)()&&En.createElement(ht.Z,null,En.createElement("span",{className:Ne.text_style,style:{marginRight:"10pz"},onClick:()=>{Hl(!0)}},"\u63A5\u53D7\u7533\u8BC9")),(st==null?void 0:st.appeal_status)==1&&(0,be.GJ)()&&En.createElement(ht.Z,null,En.createElement("span",{className:Ne.text_style_red,onClick:()=>{Ye.default.confirm({centered:!0,title:En.createElement("div",null,"\u6B64\u533F\u8BC4\u6210\u7EE9\u5C06\u88AB\u8BA4\u4E3A\u5408\u7406",En.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u7533\u8BC9"),onOk:()=>si(void 0,null,function*(){const xa=yield(0,Ue.ZP)(`/api/student_works/${Ca.userId}/deal_appeal_score.json`,{method:"post",body:{score_id:st==null?void 0:st.score_id,status:4}});(xa==null?void 0:xa.status)===0&&gi!=null&&gi.getInitData&&(gi==null||gi.getInitData())})})}},"\u62D2\u7EDD\u7533\u8BC9")))):En.createElement(En.Fragment,null,mr==1&&(0,be.Yh)()&&(Ta==null?void 0:Ta.can_feedback)&&En.createElement(En.Fragment,null,En.createElement(xe.Z,{title:"\u559C\u6B22"},En.createElement("i",{style:{color:(st==null?void 0:st.like)&&"#E30000",cursor:"pointer",lineHeight:"21px"},onClick:()=>Du("like"),className:"iconfot icon-yijiejue font16 mr15"})),En.createElement(xe.Z,{title:"\u4E0D\u559C\u6B22"},En.createElement("i",{style:{color:(st==null?void 0:st.dislike)&&"#37AD83",cursor:"pointer",lineHeight:"21px"},onClick:()=>{st!=null&&st.dislike?Du("dislike"):Au(!0)},className:"iconfot icon-weijiejuezhengchang font16 mr5"}))),(mr==1||bi=="teacher")&&En.createElement(ht.Z,{style:{whiteSpace:"nowrap"}},En.createElement(Le.Z,{wrap:!1,gutter:10},((st==null?void 0:st.delete)||((No=$i==null?void 0:$i.userInfo)==null?void 0:No.user_id)==(st==null?void 0:st.user_id))&&En.createElement(ht.Z,null,En.createElement("span",{className:`${Ne.text_style} ml5`,onClick:()=>{var xa;Rl(!0),ol.setFieldsValue(fi(Dr({},st),{comment:st==null?void 0:st.content,score_details:((xa=st==null?void 0:st.score_details)==null?void 0:xa.map(Ao=>Dr({},Ao)))||[]}))}},"\u7F16\u8F91")),(st==null?void 0:st.is_invalid)&&(st==null?void 0:st.delete)&&En.createElement(ht.Z,null,En.createElement("span",{className:Ne.text_style,onClick:()=>{Ps(st)}},"\u5220\u9664")),(st==null?void 0:st.can_appeal)&&En.createElement(ht.Z,null,En.createElement("span",{className:Ne.text_style,onClick:()=>{Mo({type:1,show:!0})}},"\u7533\u8BC9")),(st==null?void 0:st.can_reply)&&En.createElement(ht.Z,null,En.createElement("span",{className:Ne.text_style,onClick:()=>{Mo({type:0,show:!0})}},"\u56DE\u590D")))),En.createElement(ht.Z,{style:{whiteSpace:"nowrap",padding:0}},mr!=1&&((st==null?void 0:st.can_delete)&&bi!="teacher"||((Ra=$i==null?void 0:$i.userInfo)==null?void 0:Ra.user_id)==((wo=st==null?void 0:st.user_info)==null?void 0:wo.user_id))&&En.createElement("span",{className:Ne.text_style,onClick:()=>{Fl(!0),Al.setFieldsValue(Dr({},st))}},"\u7F16\u8F91"),mr!=1&&(st==null?void 0:st.can_delete)&&bi!="teacher"&&En.createElement("span",{className:Ne.text_style,style:{marginLeft:"10px"},onClick:()=>{ku(st)}},"\u5220\u9664")))),mr!=1&&(st==null?void 0:st.old_score)&&En.createElement("span",{style:{color:"#009C0F"}},"\u6559\u5E08\u533F\u8BC4\u8865\u5206\uFF1A",st==null?void 0:st.score,"\u5206")),mr==1&&(st==null?void 0:st.appeal_info)&&(st==null?void 0:st.appeal_info)!=""&&En.createElement("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"}},En.createElement(ea,Dr({type:"appeal_info",Data:st,layer:mr+1},gi))),mr==1&&((Os=st==null?void 0:st.journals)==null?void 0:Os.length)>0&&En.createElement("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"}},(Mi=st==null?void 0:st.journals)==null?void 0:Mi.map((xa,Ao)=>En.createElement(ea,Dr({key:Ao,type:bi,Data:xa,layer:mr+1},gi)))),(_o==null?void 0:_o.show)&&En.createElement("div",{className:"mt20",style:{marginLeft:"56px"}},En.createElement(We.Z,{height:150,isFocus:!0,watch:!0,onChange:xa=>{qs(xa)}}),En.createElement(Le.Z,{align:"middle",justify:"end",gutter:20},En.createElement(ht.Z,null,En.createElement(Ee.ZP,{onClick:()=>{Mo({type:0,show:!1})}},"\u53D6\u6D88")),En.createElement(ht.Z,null,En.createElement(Ee.ZP,{loading:Ya||_s,type:"primary",onClick:()=>si(void 0,null,function*(){if(To===""){ye.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}let xa;bi=="teacher"?xa=(yield _o==null?void 0:_o.type)==0?ii({hidden_comment:To,score_id:st==null?void 0:st.score_id}):Ml({comment:To,score_id:st==null?void 0:st.score_id}):xa=yield((_o==null?void 0:_o.type)==0?ii:Ml)({comment:To,score_id:st==null?void 0:st.score_id}),xa.status===0&&(ye.ZP.success("\u64CD\u4F5C\u6210\u529F"),Mo({type:0,show:!1}),gi!=null&&gi.getInitData&&(gi==null||gi.getInitData()))})},(_o==null?void 0:_o.type)==0?"\u56DE\u590D":"\u7533\u8BC9")))),En.createElement(Ye.default,{title:"\u63A5\u53D7\u7533\u8BC9",open:tu,centered:!0,destroyOnClose:!0,onCancel:()=>{Hl(!1)},maskClosable:!1,width:544,onOk:()=>{Vo.submit()}},En.createElement(Ce.default,{form:Vo,colon:!1,onFinish:xa=>si(void 0,null,function*(){(yield(0,Ue.ZP)(`/api/student_works/${Ca.userId}/deal_appeal_score.json`,{method:"post",body:fi(Dr({},xa),{userId:Ca.userId,score_id:st==null?void 0:st.score_id,status:3})})).status===0&&(Hl(!1),gi!=null&&gi.getInitData&&(gi==null||gi.getInitData()))})},En.createElement("div",{style:{color:"#191919"}},"\u786E\u8BA4\u662F\u5426\u63A5\u53D7\u7533\u8BC9\uFF1F\u4E00\u65E6\u63A5\u53D7\uFF0C\u88AB\u7533\u8BC9\u7684\u8BC4\u5206\u8BB0\u5F55\u5C06\u4F5C\u5E9F\u3002\u8BF7\u60A8\u8865\u5145\u533F\u8BC4\u8BC4\u5206\uFF1A"),En.createElement(_e.Z,{style:{marginTop:"20px"},colon:!1,items:[{key:"1",label:"\u7533\u8BC9\u4EBA",children:En.createElement("span",null,(Bi=st==null?void 0:st.appeal_info)==null?void 0:Bi.user_name)},{key:"2",label:"\u88AB\u7533\u8BC9\u4EBA",children:En.createElement("span",{style:{color:"#191919"}},(ua=st==null?void 0:st.user_info)==null?void 0:ua.user_name)},{key:"3",label:"\u88AB\u7533\u8BC9\u4EBA\u8BC4\u5206",children:En.createElement("span",{style:{color:"#191919"}},st==null?void 0:st.score)}]}),En.createElement(Le.Z,{className:"mt20",wrap:!1},En.createElement(ht.Z,null,En.createElement(Ce.default.Item,{label:"\u533F\u8BC4\u5206\u6570",name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u6570"}]},En.createElement(Se.Z,{min:1,max:100,step:1}))),En.createElement(ht.Z,null,En.createElement("span",{className:"ml10",style:{lineHeight:"30px"}},"\u5206")),En.createElement(ht.Z,null,En.createElement(Ce.default.Item,{className:"ml20",valuePropName:"checked",name:"is_appeal_penalty",initialValue:!0},En.createElement(qe.default,null,"\u6263\u9664\u8FDD\u89C4\u533F\u8BC4\u5206\u6570")))))),En.createElement(Ye.default,{title:"\u7F16\u8F91\u56DE\u590D",width:800,centered:!0,open:Mu,confirmLoading:wu,onCancel:()=>{Fl(!1)},onOk:()=>{Al.submit()}},En.createElement(Ce.default,{form:Al,colon:!1,onFinish:xa=>si(void 0,null,function*(){const Ao=yield Eu(Dr({},xa));(Ao==null?void 0:Ao.status)===0&&(ye.ZP.success("\u4FEE\u6539\u6210\u529F"),Fl(!1),gi!=null&&gi.getInitData&&(gi==null||gi.getInitData()))})},En.createElement(Ce.default.Item,{hidden:!0,name:"id",label:"\u8FD9\u4E2A\u662F\u7528\u6765\u6536\u96C6score_id\u7684"}),En.createElement(Ce.default.Item,{name:"content",label:"\u8BC4\u8BED"},En.createElement(St.h,{height:200,scrollId:"notes",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5BF9\u672C\u4F5C\u54C1\u7684\u8BC4\u8BED\uFF0C\u6700\u5927\u9650\u52362000\u4E2A\u5B57\u7B26"})))),En.createElement(nt,{DataProps:{disabledScore:Qi=="teacher"},FormProps:{form:ol,onFinish:(...xa)=>si(void 0,[...xa],function*(Ao={}){const Ss=yield Cu(fi(Dr({},Ao),{homeworkId:Ca==null?void 0:Ca.userId}));(Ss==null?void 0:Ss.status)===0&&(ye.ZP.success("\u4FEE\u6539\u6210\u529F"),Rl(!1),gi!=null&&gi.getInitData&&(gi==null||gi.getInitData()),gi!=null&&gi.updateData&&(gi==null||gi.updateData()))})},ModalProps:{open:hu,onCancel:()=>{Rl(!1),ol.resetFields()},onOk:()=>{ol.submit()},confirmLoading:mc}}),En.createElement(Vr,{open:xs,onClose:()=>Au(!1),onOk:(xa,Ao)=>Du("dislike",xa,Ao)}))};var ki=(0,ke.connect)(({user:ln})=>({user:ln}))(ea),Da=Object.defineProperty,jr=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,Ii=(ln,Ft,st)=>Ft in ln?Da(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,La=(ln,Ft)=>{for(var st in Ft||(Ft={}))$r.call(Ft,st)&&Ii(ln,st,Ft[st]);if(jr)for(var st of jr(Ft))Di.call(Ft,st)&&Ii(ln,st,Ft[st]);return ln};const So=ln=>React.createElement("svg",La({width:18,height:18,xmlns:"http://www.w3.org/2000/svg"},ln),React.createElement("title",null,"\u4F5C\u4E1A\u63D0\u4EA4\u5185\u5BB9"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M9 0C4.032 0 0 4.032 0 9s4.032 9 9 9 9-4.032 9-9-4.032-9-9-9Z",fill:"#009CDC"}),React.createElement("path",{d:"M11.511 5H5.956a.954.954 0 0 0-.952.951v6.032c0 .524.428.952.952.952h5.555a.954.954 0 0 0 .952-.952V5.951A.954.954 0 0 0 11.511 5ZM6.607 6.881h2.58a.34.34 0 0 1 0 .68h-2.58a.34.34 0 0 1 0-.68Zm1.603 4.17H6.608a.34.34 0 0 1 0-.68H8.21a.34.34 0 0 1 0 .68Zm2.445-1.744H6.607a.34.34 0 0 1 0-.68h4.048a.34.34 0 0 1 0 .68Z",fill:"#FFF"})));var Ga="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNOSAwQzQuMDMyIDAgMCA0LjAzMiAwIDlzNC4wMzIgOSA5IDkgOS00LjAzMiA5LTktNC4wMzItOS05LTlaIiBmaWxsPSIjMDA5Q0RDIi8+PHBhdGggZD0iTTExLjUxMSA1SDUuOTU2YS45NTQuOTU0IDAgMCAwLS45NTIuOTUxdjYuMDMyYzAgLjUyNC40MjguOTUyLjk1Mi45NTJoNS41NTVhLjk1NC45NTQgMCAwIDAgLjk1Mi0uOTUyVjUuOTUxQS45NTQuOTU0IDAgMCAwIDExLjUxMSA1Wk02LjYwNyA2Ljg4MWgyLjU4YS4zNC4zNCAwIDAgMSAwIC42OGgtMi41OGEuMzQuMzQgMCAwIDEgMC0uNjhabTEuNjAzIDQuMTdINi42MDhhLjM0LjM0IDAgMCAxIDAtLjY4SDguMjFhLjM0LjM0IDAgMCAxIDAgLjY4Wm0yLjQ0NS0xLjc0NEg2LjYwN2EuMzQuMzQgMCAwIDEgMC0uNjhoNC4wNDhhLjM0LjM0IDAgMCAxIDAgLjY4WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",la=Object.defineProperty,Oa=Object.getOwnPropertySymbols,Ma=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,br=(ln,Ft,st)=>Ft in ln?la(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,xr=(ln,Ft)=>{for(var st in Ft||(Ft={}))Ma.call(Ft,st)&&br(ln,st,Ft[st]);if(Oa)for(var st of Oa(Ft))vr.call(Ft,st)&&br(ln,st,Ft[st]);return ln};const Gr=ln=>React.createElement("svg",xr({width:70,height:24,xmlns:"http://www.w3.org/2000/svg"},ln),React.createElement("title",null,"\u5F85\u8BC4\u9605"),React.createElement("path",{d:"m70 0-6.146 11.936L70 24H0V0h70ZM40.992 5.229H31.7v1.646h3.768v5.83H31.21v1.663h4.258v5.796h1.724v-5.796h4.325v-1.663h-4.325v-5.83h3.801V5.23Zm4.157 2.167h-1.724v12.768h1.724V7.396Zm-32.34.958c-.845 1.848-2.112 3.46-3.802 4.821l.524 1.663a27.003 27.003 0 0 0 1.656-1.41v6.618h1.706v-8.55a12.713 12.713 0 0 0 1.42-2.437l-1.504-.705Zm44.793-3.142h-8.01v1.613h6.286v10.953c0 .47-.152.706-.44.706l-.658-.034c.186-.37.32-1.008.405-1.932l-1.487-.47c-.05.706-.135 1.126-.253 1.26a.506.506 0 0 1-.422.218h-.305c-.22 0-.32-.134-.32-.386v-1.966h1.672V10.32h-1.487c.406-.672.794-1.411 1.132-2.234l-1.656-.588a23.536 23.536 0 0 1-1.165 2.822H49l1.217-.605c-.406-.739-.811-1.428-1.25-2.032l-1.47.705c.439.571.861 1.21 1.25 1.932h-1.842v4.855h1.538c-.237 1.31-1.183 2.235-2.856 2.806l.913 1.445c2.06-.89 3.21-2.302 3.446-4.25h.913v2.301c0 1.042.456 1.58 1.368 1.58h1.082c.49 0 .878-.102 1.149-.27l.32 1.26h1.015c1.2 0 1.808-.588 1.808-1.764V5.212Zm-35.095 6.3H20.75v1.058h-6.353v1.63h6.353v3.394c0 .537-.253.823-.76.823-.676 0-1.403-.034-2.18-.101l.406 1.663h2.399c1.25 0 1.892-.655 1.892-1.949V14.2h1.775v-1.63h-1.775v-1.058Zm7.317-1.949h-4.022v1.68h2.315v5.964c0 .353-.152.655-.44.907l.66 1.58a25.152 25.152 0 0 0 3.328-2.672l-.49-1.848c-.473.47-.929.908-1.351 1.294V9.563Zm-13.146 4.973-1.369.857c.88.924 1.589 1.764 2.113 2.52l1.368-.958c-.49-.705-1.2-1.512-2.112-2.419Zm35.787-2.806v2.033h-3.97V11.73h3.97Zm-19.11-4.233L31.851 8a28.8 28.8 0 0 1 1.2 4.099l1.504-.37a35.374 35.374 0 0 0-1.2-4.233Zm5.796-.05c-.355 1.646-.76 3.023-1.234 4.099l1.47.52c.524-1.21.963-2.604 1.301-4.216l-1.537-.404ZM20.226 4.573H18.52V6.22h-3.565v1.596h3.565v1.596h-4.174v1.613h10.172V9.412h-4.292V7.816h3.6V6.22h-3.6V4.574Zm-8.025-.101c-.727 1.562-1.842 2.923-3.346 4.065l.524 1.68c2.061-1.512 3.497-3.175 4.342-5.023l-1.52-.722Zm16 .235-1.25 1.21c1.2.873 2.13 1.696 2.771 2.47L30.94 7.16a23.623 23.623 0 0 0-2.737-2.453Zm18.283-.269-1.606.706A15.91 15.91 0 0 1 46.686 7.9l1.572-.806a14.573 14.573 0 0 0-1.774-2.655Z",fill:"#FA6400",fillRule:"nonzero"}));var ia="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcwIDAtNi4xNDYgMTEuOTM2TDcwIDI0SDBWMGg3MFpNNDAuOTkyIDUuMjI5SDMxLjd2MS42NDZoMy43Njh2NS44M0gzMS4yMXYxLjY2M2g0LjI1OHY1Ljc5NmgxLjcyNHYtNS43OTZoNC4zMjV2LTEuNjYzaC00LjMyNXYtNS44M2gzLjgwMVY1LjIzWm00LjE1NyAyLjE2N2gtMS43MjR2MTIuNzY4aDEuNzI0VjcuMzk2Wm0tMzIuMzQuOTU4Yy0uODQ1IDEuODQ4LTIuMTEyIDMuNDYtMy44MDIgNC44MjFsLjUyNCAxLjY2M2EyNy4wMDMgMjcuMDAzIDAgMCAwIDEuNjU2LTEuNDF2Ni42MThoMS43MDZ2LTguNTVhMTIuNzEzIDEyLjcxMyAwIDAgMCAxLjQyLTIuNDM3bC0xLjUwNC0uNzA1Wm00NC43OTMtMy4xNDJoLTguMDF2MS42MTNoNi4yODZ2MTAuOTUzYzAgLjQ3LS4xNTIuNzA2LS40NC43MDZsLS42NTgtLjAzNGMuMTg2LS4zNy4zMi0xLjAwOC40MDUtMS45MzJsLTEuNDg3LS40N2MtLjA1LjcwNi0uMTM1IDEuMTI2LS4yNTMgMS4yNmEuNTA2LjUwNiAwIDAgMS0uNDIyLjIxOGgtLjMwNWMtLjIyIDAtLjMyLS4xMzQtLjMyLS4zODZ2LTEuOTY2aDEuNjcyVjEwLjMyaC0xLjQ4N2MuNDA2LS42NzIuNzk0LTEuNDExIDEuMTMyLTIuMjM0bC0xLjY1Ni0uNTg4YTIzLjUzNiAyMy41MzYgMCAwIDEtMS4xNjUgMi44MjJINDlsMS4yMTctLjYwNWMtLjQwNi0uNzM5LS44MTEtMS40MjgtMS4yNS0yLjAzMmwtMS40Ny43MDVjLjQzOS41NzEuODYxIDEuMjEgMS4yNSAxLjkzMmgtMS44NDJ2NC44NTVoMS41MzhjLS4yMzcgMS4zMS0xLjE4MyAyLjIzNS0yLjg1NiAyLjgwNmwuOTEzIDEuNDQ1YzIuMDYtLjg5IDMuMjEtMi4zMDIgMy40NDYtNC4yNWguOTEzdjIuMzAxYzAgMS4wNDIuNDU2IDEuNTggMS4zNjggMS41OGgxLjA4MmMuNDkgMCAuODc4LS4xMDIgMS4xNDktLjI3bC4zMiAxLjI2aDEuMDE1YzEuMiAwIDEuODA4LS41ODggMS44MDgtMS43NjRWNS4yMTJabS0zNS4wOTUgNi4zSDIwLjc1djEuMDU4aC02LjM1M3YxLjYzaDYuMzUzdjMuMzk0YzAgLjUzNy0uMjUzLjgyMy0uNzYuODIzLS42NzYgMC0xLjQwMy0uMDM0LTIuMTgtLjEwMWwuNDA2IDEuNjYzaDIuMzk5YzEuMjUgMCAxLjg5Mi0uNjU1IDEuODkyLTEuOTQ5VjE0LjJoMS43NzV2LTEuNjNoLTEuNzc1di0xLjA1OFptNy4zMTctMS45NDloLTQuMDIydjEuNjhoMi4zMTV2NS45NjRjMCAuMzUzLS4xNTIuNjU1LS40NC45MDdsLjY2IDEuNThhMjUuMTUyIDI1LjE1MiAwIDAgMCAzLjMyOC0yLjY3MmwtLjQ5LTEuODQ4Yy0uNDczLjQ3LS45MjkuOTA4LTEuMzUxIDEuMjk0VjkuNTYzWm0tMTMuMTQ2IDQuOTczLTEuMzY5Ljg1N2MuODguOTI0IDEuNTg5IDEuNzY0IDIuMTEzIDIuNTJsMS4zNjgtLjk1OGMtLjQ5LS43MDUtMS4yLTEuNTEyLTIuMTEyLTIuNDE5Wm0zNS43ODctMi44MDZ2Mi4wMzNoLTMuOTdWMTEuNzNoMy45N1ptLTE5LjExLTQuMjMzTDMxLjg1MSA4YTI4LjggMjguOCAwIDAgMSAxLjIgNC4wOTlsMS41MDQtLjM3YTM1LjM3NCAzNS4zNzQgMCAwIDAtMS4yLTQuMjMzWm01Ljc5Ni0uMDVjLS4zNTUgMS42NDYtLjc2IDMuMDIzLTEuMjM0IDQuMDk5bDEuNDcuNTJjLjUyNC0xLjIxLjk2My0yLjYwNCAxLjMwMS00LjIxNmwtMS41MzctLjQwNFpNMjAuMjI2IDQuNTczSDE4LjUyVjYuMjJoLTMuNTY1djEuNTk2aDMuNTY1djEuNTk2aC00LjE3NHYxLjYxM2gxMC4xNzJWOS40MTJoLTQuMjkyVjcuODE2aDMuNlY2LjIyaC0zLjZWNC41NzRabS04LjAyNS0uMTAxYy0uNzI3IDEuNTYyLTEuODQyIDIuOTIzLTMuMzQ2IDQuMDY1bC41MjQgMS42OGMyLjA2MS0xLjUxMiAzLjQ5Ny0zLjE3NSA0LjM0Mi01LjAyM2wtMS41Mi0uNzIyWm0xNiAuMjM1LTEuMjUgMS4yMWMxLjIuODczIDIuMTMgMS42OTYgMi43NzEgMi40N0wzMC45NCA3LjE2YTIzLjYyMyAyMy42MjMgMCAwIDAtMi43MzctMi40NTNabTE4LjI4My0uMjY5LTEuNjA2LjcwNkExNS45MSAxNS45MSAwIDAgMSA0Ni42ODYgNy45bDEuNTcyLS44MDZhMTQuNTczIDE0LjU3MyAwIDAgMC0xLjc3NC0yLjY1NVoiIGZpbGw9IiNGQTY0MDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",wa=Object.defineProperty,Ea=Object.getOwnPropertySymbols,Sa=Object.prototype.hasOwnProperty,Aa=Object.prototype.propertyIsEnumerable,_a=(ln,Ft,st)=>Ft in ln?wa(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,mo=(ln,Ft)=>{for(var st in Ft||(Ft={}))Sa.call(Ft,st)&&_a(ln,st,Ft[st]);if(Ea)for(var st of Ea(Ft))Aa.call(Ft,st)&&_a(ln,st,Ft[st]);return ln};const co=ln=>React.createElement("svg",mo({width:17,height:14,xmlns:"http://www.w3.org/2000/svg"},ln),React.createElement("title",null,"\u4EC5\u6559\u5E08\u53EF\u89C1"),React.createElement("g",{fill:"#CA7720",fillRule:"nonzero"},React.createElement("path",{d:"M7.046 13.302V14h1.566v-.698c0-.557.248-1.093.689-1.485a2.487 2.487 0 0 1 1.66-.615v-1.4c-2.163 0-3.915 1.565-3.915 3.5ZM0 9.802v1.4c.623 0 1.22.22 1.66.615.44.394.688.928.688 1.485V14h1.566v-.698c0-1.935-1.752-3.5-3.914-3.5Z"}),React.createElement("path",{d:"M10.96 3.502a4.878 4.878 0 0 0-.954-2.8 6.002 6.002 0 0 0-2.623 1.476A5.414 5.414 0 0 0 5.48 0a5.39 5.39 0 0 0-1.893 2.178A6 6 0 0 0 .957.702a4.87 4.87 0 0 0-.954 2.8V4.2C.005 6.633 2.007 8.695 4.7 9.044V14h1.566V9.045c2.693-.347 4.694-2.41 4.695-4.843v-.7Z"}),React.createElement("path",{d:"M10.977 8.084c-.061 0-.12-.004-.177-.013a.65.65 0 0 1-.15-.042.343.343 0 0 1-.175-.167.885.885 0 0 1-.075-.214l-.029-.133-.002-.009-.02-.092-.001-.006-.002-.005a.697.697 0 0 0-.005-.018l-.001-.002a.546.546 0 0 1-.013-.046.963.963 0 0 0-.009-.033l-.024-.08-.07-.047a.019.019 0 0 1-.008-.014l-.001-.005a.11.11 0 0 1-.003-.022l.005-.142v-.037c.001-.011.008-.02.02-.023l.011-.003a.422.422 0 0 1 .052-.012l.301-.039c.111-.013.23-.02.383-.02H11.011c.165 0 .333.016.5.047.096.018.188.048.27.074.06.02.106.032.15.04a.425.425 0 0 0 .072.008l-.198.512c-.02.054-.042.101-.065.145a.858.858 0 0 1-.2.25.499.499 0 0 1-.184.096 1.258 1.258 0 0 1-.38.052Zm-.205-.097c.022.005.042.01.062.013a1.09 1.09 0 0 0 .452-.026.435.435 0 0 0 .196-.104.61.61 0 0 0 .105-.138c.055-.095.095-.194.118-.294a.65.65 0 0 0 .018-.205l-.01-.126-.112-.058a.506.506 0 0 0-.13-.042l-.01-.002a1.717 1.717 0 0 0-.374-.039h-.008l-.038.002a4.311 4.311 0 0 0-.128.008 1.43 1.43 0 0 0-.25.041l-.133.036-.032.136a.514.514 0 0 0-.009.059v.001l-.002.018a.708.708 0 0 0-.002.155c.007.073.018.17.041.266a.57.57 0 0 0 .078.189c.019.027.04.05.063.067l.06.043h.045Zm2.28.091a1.4 1.4 0 0 1-.27-.025.75.75 0 0 1-.22-.077.594.594 0 0 1-.228-.228 1.782 1.782 0 0 1-.105-.212l-.21-.507a.565.565 0 0 0 .16-.029l.08-.028.075-.025c.09-.03.19-.05.315-.066a2.854 2.854 0 0 1 .525-.019h.009l.265.015c.11.008.219.024.34.043l.02.004.003.002c.01.002.017.007.018.021l.001.023v.006a.984.984 0 0 1 .005.138l-.034-.062-.048.167-.024.08-.082.288.014-.008c-.018.075-.04.152-.07.225a.512.512 0 0 1-.07.125.333.333 0 0 1-.178.115.855.855 0 0 1-.21.032 1.846 1.846 0 0 1-.08.002Zm-.106-1.115a1.641 1.641 0 0 0-.486.075l-.142.049-.012.15a.722.722 0 0 0 .023.21.868.868 0 0 0 .167.354c.066.083.15.136.249.157.109.024.208.035.303.035h.01a.815.815 0 0 0 .21-.024.319.319 0 0 0 .146-.076.342.342 0 0 0 .079-.128c.041-.11.064-.23.068-.358v-.008c.002-.042 0-.084-.002-.125v-.02a.489.489 0 0 0-.003-.039l-.004-.032-.012-.03a.424.424 0 0 0-.004-.01l-.044-.099-.104-.029a1.763 1.763 0 0 0-.396-.053h-.046Zm1.042 3.06-1.42 2.599-.21-.62.388-.78-.778-.782-.778.781.39.782-.251.633-1.38-2.613s-2.942 1.564-2.942 3.113c0 .428.176.823.605.823h8.731c.427 0 .607-.391.607-.817 0-1.454-2.962-3.12-2.962-3.12Zm.54-3.202-.003-.122-.102-.068c-.012-.01-.024-.017-.037-.024-.208-1.803-.194-2.866-2.287-2.551-.734.11-1.535-.118-1.99.215-.574.539-.615 1.348-.459 2.297-.035.019-.07.04-.103.063l-.102.068-.002.123c-.005.316.034.582.12.787a.788.788 0 0 0 .345.407c.182.62.444 1.084.772 1.419.357.365.787.572 1.273.654l.043.007.044-.01c.538-.113.968-.329 1.31-.69.319-.335.556-.787.73-1.39a.8.8 0 0 0 .332-.41c.083-.203.12-.465.115-.775Zm-.556.6c-.041.102-.098.17-.17.194l-.119.042-.032.12c-.156.58-.365.999-.644 1.293-.264.277-.598.449-1.02.544a1.78 1.78 0 0 1-.967-.509c-.292-.297-.524-.729-.685-1.322l-.034-.126-.126-.04c-.074-.022-.132-.088-.174-.19-.043-.101-.069-.23-.08-.383.116-.018.245-.05.308-.009l.022-.074h.003l.01-.05c.034-.137.073-1 .108-1.139.014-.04.019-.086.045-.12.169.23 1.444.257 2.185-.257l-.139.375.141.028.158-.253-.02.177.15.02.093-.291c.184.105.387.246.568.17.06.136.107.967.137 1.127l.039.206.068-.004.032.107c.08-.01.15-.011.22-.013a1.25 1.25 0 0 1-.077.376Z"})));var qo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0NBNzcyMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNNy4wNDYgMTMuMzAyVjE0aDEuNTY2di0uNjk4YzAtLjU1Ny4yNDgtMS4wOTMuNjg5LTEuNDg1YTIuNDg3IDIuNDg3IDAgMCAxIDEuNjYtLjYxNXYtMS40Yy0yLjE2MyAwLTMuOTE1IDEuNTY1LTMuOTE1IDMuNVpNMCA5LjgwMnYxLjRjLjYyMyAwIDEuMjIuMjIgMS42Ni42MTUuNDQuMzk0LjY4OC45MjguNjg4IDEuNDg1VjE0aDEuNTY2di0uNjk4YzAtMS45MzUtMS43NTItMy41LTMuOTE0LTMuNVoiLz48cGF0aCBkPSJNMTAuOTYgMy41MDJhNC44NzggNC44NzggMCAwIDAtLjk1NC0yLjggNi4wMDIgNi4wMDIgMCAwIDAtMi42MjMgMS40NzZBNS40MTQgNS40MTQgMCAwIDAgNS40OCAwYTUuMzkgNS4zOSAwIDAgMC0xLjg5MyAyLjE3OEE2IDYgMCAwIDAgLjk1Ny43MDJhNC44NyA0Ljg3IDAgMCAwLS45NTQgMi44VjQuMkMuMDA1IDYuNjMzIDIuMDA3IDguNjk1IDQuNyA5LjA0NFYxNGgxLjU2NlY5LjA0NWMyLjY5My0uMzQ3IDQuNjk0LTIuNDEgNC42OTUtNC44NDN2LS43WiIvPjxnPjxwYXRoIGQ9Ik0xMC45NzcgOC4wODRjLS4wNjEgMC0uMTItLjAwNC0uMTc3LS4wMTNhLjY1LjY1IDAgMCAxLS4xNS0uMDQyLjM0My4zNDMgMCAwIDEtLjE3NS0uMTY3Ljg4NS44ODUgMCAwIDEtLjA3NS0uMjE0bC0uMDI5LS4xMzMtLjAwMi0uMDA5LS4wMi0uMDkyLS4wMDEtLjAwNi0uMDAyLS4wMDVhLjY5Ny42OTcgMCAwIDAtLjAwNS0uMDE4bC0uMDAxLS4wMDJhLjU0Ni41NDYgMCAwIDEtLjAxMy0uMDQ2Ljk2My45NjMgMCAwIDAtLjAwOS0uMDMzbC0uMDI0LS4wOC0uMDctLjA0N2EuMDE5LjAxOSAwIDAgMS0uMDA4LS4wMTRsLS4wMDEtLjAwNWEuMTEuMTEgMCAwIDEtLjAwMy0uMDIybC4wMDUtLjE0MnYtLjAzN2MuMDAxLS4wMTEuMDA4LS4wMi4wMi0uMDIzbC4wMTEtLjAwM2EuNDIyLjQyMiAwIDAgMSAuMDUyLS4wMTJsLjMwMS0uMDM5Yy4xMTEtLjAxMy4yMy0uMDIuMzgzLS4wMkgxMS4wMTFjLjE2NSAwIC4zMzMuMDE2LjUuMDQ3LjA5Ni4wMTguMTg4LjA0OC4yNy4wNzQuMDYuMDIuMTA2LjAzMi4xNS4wNGEuNDI1LjQyNSAwIDAgMCAuMDcyLjAwOGwtLjE5OC41MTJjLS4wMi4wNTQtLjA0Mi4xMDEtLjA2NS4xNDVhLjg1OC44NTggMCAwIDEtLjIuMjUuNDk5LjQ5OSAwIDAgMS0uMTg0LjA5NiAxLjI1OCAxLjI1OCAwIDAgMS0uMzguMDUyWm0tLjIwNS0uMDk3Yy4wMjIuMDA1LjA0Mi4wMS4wNjIuMDEzYTEuMDkgMS4wOSAwIDAgMCAuNDUyLS4wMjYuNDM1LjQzNSAwIDAgMCAuMTk2LS4xMDQuNjEuNjEgMCAwIDAgLjEwNS0uMTM4Yy4wNTUtLjA5NS4wOTUtLjE5NC4xMTgtLjI5NGEuNjUuNjUgMCAwIDAgLjAxOC0uMjA1bC0uMDEtLjEyNi0uMTEyLS4wNThhLjUwNi41MDYgMCAwIDAtLjEzLS4wNDJsLS4wMS0uMDAyYTEuNzE3IDEuNzE3IDAgMCAwLS4zNzQtLjAzOWgtLjAwOGwtLjAzOC4wMDJhNC4zMTEgNC4zMTEgMCAwIDAtLjEyOC4wMDggMS40MyAxLjQzIDAgMCAwLS4yNS4wNDFsLS4xMzMuMDM2LS4wMzIuMTM2YS41MTQuNTE0IDAgMCAwLS4wMDkuMDU5di4wMDFsLS4wMDIuMDE4YS43MDguNzA4IDAgMCAwLS4wMDIuMTU1Yy4wMDcuMDczLjAxOC4xNy4wNDEuMjY2YS41Ny41NyAwIDAgMCAuMDc4LjE4OWMuMDE5LjAyNy4wNC4wNS4wNjMuMDY3bC4wNi4wNDNoLjA0NVptMi4yOC4wOTFhMS40IDEuNCAwIDAgMS0uMjctLjAyNS43NS43NSAwIDAgMS0uMjItLjA3Ny41OTQuNTk0IDAgMCAxLS4yMjgtLjIyOCAxLjc4MiAxLjc4MiAwIDAgMS0uMTA1LS4yMTJsLS4yMS0uNTA3YS41NjUuNTY1IDAgMCAwIC4xNi0uMDI5bC4wOC0uMDI4LjA3NS0uMDI1Yy4wOS0uMDMuMTktLjA1LjMxNS0uMDY2YTIuODU0IDIuODU0IDAgMCAxIC41MjUtLjAxOWguMDA5bC4yNjUuMDE1Yy4xMS4wMDguMjE5LjAyNC4zNC4wNDNsLjAyLjAwNC4wMDMuMDAyYy4wMS4wMDIuMDE3LjAwNy4wMTguMDIxbC4wMDEuMDIzdi4wMDZhLjk4NC45ODQgMCAwIDEgLjAwNS4xMzhsLS4wMzQtLjA2Mi0uMDQ4LjE2Ny0uMDI0LjA4LS4wODIuMjg4LjAxNC0uMDA4Yy0uMDE4LjA3NS0uMDQuMTUyLS4wNy4yMjVhLjUxMi41MTIgMCAwIDEtLjA3LjEyNS4zMzMuMzMzIDAgMCAxLS4xNzguMTE1Ljg1NS44NTUgMCAwIDEtLjIxLjAzMiAxLjg0NiAxLjg0NiAwIDAgMS0uMDguMDAyWm0tLjEwNi0xLjExNWExLjY0MSAxLjY0MSAwIDAgMC0uNDg2LjA3NWwtLjE0Mi4wNDktLjAxMi4xNWEuNzIyLjcyMiAwIDAgMCAuMDIzLjIxLjg2OC44NjggMCAwIDAgLjE2Ny4zNTRjLjA2Ni4wODMuMTUuMTM2LjI0OS4xNTcuMTA5LjAyNC4yMDguMDM1LjMwMy4wMzVoLjAxYS44MTUuODE1IDAgMCAwIC4yMS0uMDI0LjMxOS4zMTkgMCAwIDAgLjE0Ni0uMDc2LjM0Mi4zNDIgMCAwIDAgLjA3OS0uMTI4Yy4wNDEtLjExLjA2NC0uMjMuMDY4LS4zNTh2LS4wMDhjLjAwMi0uMDQyIDAtLjA4NC0uMDAyLS4xMjV2LS4wMmEuNDg5LjQ4OSAwIDAgMC0uMDAzLS4wMzlsLS4wMDQtLjAzMi0uMDEyLS4wM2EuNDI0LjQyNCAwIDAgMC0uMDA0LS4wMWwtLjA0NC0uMDk5LS4xMDQtLjAyOWExLjc2MyAxLjc2MyAwIDAgMC0uMzk2LS4wNTNoLS4wNDZabTEuMDQyIDMuMDYtMS40MiAyLjU5OS0uMjEtLjYyLjM4OC0uNzgtLjc3OC0uNzgyLS43NzguNzgxLjM5Ljc4Mi0uMjUxLjYzMy0xLjM4LTIuNjEzcy0yLjk0MiAxLjU2NC0yLjk0MiAzLjExM2MwIC40MjguMTc2LjgyMy42MDUuODIzaDguNzMxYy40MjcgMCAuNjA3LS4zOTEuNjA3LS44MTcgMC0xLjQ1NC0yLjk2Mi0zLjEyLTIuOTYyLTMuMTJabS41NC0zLjIwMi0uMDAzLS4xMjItLjEwMi0uMDY4Yy0uMDEyLS4wMS0uMDI0LS4wMTctLjAzNy0uMDI0LS4yMDgtMS44MDMtLjE5NC0yLjg2Ni0yLjI4Ny0yLjU1MS0uNzM0LjExLTEuNTM1LS4xMTgtMS45OS4yMTUtLjU3NC41MzktLjYxNSAxLjM0OC0uNDU5IDIuMjk3LS4wMzUuMDE5LS4wNy4wNC0uMTAzLjA2M2wtLjEwMi4wNjgtLjAwMi4xMjNjLS4wMDUuMzE2LjAzNC41ODIuMTIuNzg3YS43ODguNzg4IDAgMCAwIC4zNDUuNDA3Yy4xODIuNjIuNDQ0IDEuMDg0Ljc3MiAxLjQxOS4zNTcuMzY1Ljc4Ny41NzIgMS4yNzMuNjU0bC4wNDMuMDA3LjA0NC0uMDFjLjUzOC0uMTEzLjk2OC0uMzI5IDEuMzEtLjY5LjMxOS0uMzM1LjU1Ni0uNzg3LjczLTEuMzlhLjguOCAwIDAgMCAuMzMyLS40MWMuMDgzLS4yMDMuMTItLjQ2NS4xMTUtLjc3NVptLS41NTYuNmMtLjA0MS4xMDItLjA5OC4xNy0uMTcuMTk0bC0uMTE5LjA0Mi0uMDMyLjEyYy0uMTU2LjU4LS4zNjUuOTk5LS42NDQgMS4yOTMtLjI2NC4yNzctLjU5OC40NDktMS4wMi41NDRhMS43OCAxLjc4IDAgMCAxLS45NjctLjUwOWMtLjI5Mi0uMjk3LS41MjQtLjcyOS0uNjg1LTEuMzIybC0uMDM0LS4xMjYtLjEyNi0uMDRjLS4wNzQtLjAyMi0uMTMyLS4wODgtLjE3NC0uMTktLjA0My0uMTAxLS4wNjktLjIzLS4wOC0uMzgzLjExNi0uMDE4LjI0NS0uMDUuMzA4LS4wMDlsLjAyMi0uMDc0aC4wMDNsLjAxLS4wNWMuMDM0LS4xMzcuMDczLTEgLjEwOC0xLjEzOS4wMTQtLjA0LjAxOS0uMDg2LjA0NS0uMTIuMTY5LjIzIDEuNDQ0LjI1NyAyLjE4NS0uMjU3bC0uMTM5LjM3NS4xNDEuMDI4LjE1OC0uMjUzLS4wMi4xNzcuMTUuMDIuMDkzLS4yOTFjLjE4NC4xMDUuMzg3LjI0Ni41NjguMTcuMDYuMTM2LjEwNy45NjcuMTM3IDEuMTI3bC4wMzkuMjA2LjA2OC0uMDA0LjAzMi4xMDdjLjA4LS4wMS4xNS0uMDExLjIyLS4wMTNhMS4yNSAxLjI1IDAgMCAxLS4wNzcuMzc2WiIvPjwvZz48L2c+PC9zdmc+",Bo=Object.defineProperty,eo=Object.getOwnPropertySymbols,Bs=Object.prototype.hasOwnProperty,Wo=Object.prototype.propertyIsEnumerable,Ro=(ln,Ft,st)=>Ft in ln?Bo(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,fo=(ln,Ft)=>{for(var st in Ft||(Ft={}))Bs.call(Ft,st)&&Ro(ln,st,Ft[st]);if(eo)for(var st of eo(Ft))Wo.call(Ft,st)&&Ro(ln,st,Ft[st]);return ln};const za=ln=>React.createElement("svg",fo({width:11,height:14,xmlns:"http://www.w3.org/2000/svg"},ln),React.createElement("title",null,"\u8BC4\u8BED"),React.createElement("g",{fill:"#000",fillRule:"nonzero"},React.createElement("path",{d:"M7.046 13.302V14h1.566v-.698c0-.557.248-1.093.689-1.485a2.487 2.487 0 0 1 1.66-.615v-1.4c-2.163 0-3.915 1.565-3.915 3.5ZM0 9.802v1.4c.623 0 1.22.22 1.66.615.44.394.688.928.688 1.485V14h1.566v-.698c0-1.935-1.752-3.5-3.914-3.5Z"}),React.createElement("path",{d:"M10.96 3.502a4.878 4.878 0 0 0-.954-2.8 6.002 6.002 0 0 0-2.623 1.476A5.414 5.414 0 0 0 5.48 0a5.39 5.39 0 0 0-1.893 2.178A6 6 0 0 0 .957.702a4.87 4.87 0 0 0-.954 2.8V4.2C.005 6.633 2.007 8.695 4.7 9.044V14h1.566V9.045c2.693-.347 4.694-2.41 4.695-4.843v-.7Z"})));var Ei="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNNy4wNDYgMTMuMzAyVjE0aDEuNTY2di0uNjk4YzAtLjU1Ny4yNDgtMS4wOTMuNjg5LTEuNDg1YTIuNDg3IDIuNDg3IDAgMCAxIDEuNjYtLjYxNXYtMS40Yy0yLjE2MyAwLTMuOTE1IDEuNTY1LTMuOTE1IDMuNVpNMCA5LjgwMnYxLjRjLjYyMyAwIDEuMjIuMjIgMS42Ni42MTUuNDQuMzk0LjY4OC45MjguNjg4IDEuNDg1VjE0aDEuNTY2di0uNjk4YzAtMS45MzUtMS43NTItMy41LTMuOTE0LTMuNVoiLz48cGF0aCBkPSJNMTAuOTYgMy41MDJhNC44NzggNC44NzggMCAwIDAtLjk1NC0yLjggNi4wMDIgNi4wMDIgMCAwIDAtMi42MjMgMS40NzZBNS40MTQgNS40MTQgMCAwIDAgNS40OCAwYTUuMzkgNS4zOSAwIDAgMC0xLjg5MyAyLjE3OEE2IDYgMCAwIDAgLjk1Ny43MDJhNC44NyA0Ljg3IDAgMCAwLS45NTQgMi44VjQuMkMuMDA1IDYuNjMzIDIuMDA3IDguNjk1IDQuNyA5LjA0NFYxNGgxLjU2NlY5LjA0NWMyLjY5My0uMzQ3IDQuNjk0LTIuNDEgNC42OTUtNC44NDN2LS43WiIvPjwvZz48L3N2Zz4=",ta=Object.defineProperty,Zi=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,va=Object.prototype.propertyIsEnumerable,oa=(ln,Ft,st)=>Ft in ln?ta(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,to=(ln,Ft)=>{for(var st in Ft||(Ft={}))Ci.call(Ft,st)&&oa(ln,st,Ft[st]);if(Zi)for(var st of Zi(Ft))va.call(Ft,st)&&oa(ln,st,Ft[st]);return ln};const go=ln=>React.createElement("svg",to({width:20,height:20,xmlns:"http://www.w3.org/2000/svg"},ln),React.createElement("title",null,"\u8FD4\u56DE"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#3061D0",width:20,height:20,rx:4}),React.createElement("g",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},React.createElement("path",{d:"M4.678 10.176h10.526M8.187 13.684l-3.509-3.509 3.509-3.508"}))));var no="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjMzA2MUQwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHJ4PSI0Ii8+PGcgc3Ryb2tlPSIjRkZGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiI+PHBhdGggZD0iTTQuNjc4IDEwLjE3NmgxMC41MjZNOC4xODcgMTMuNjg0bC0zLjUwOS0zLjUwOSAzLjUwOS0zLjUwOCIvPjwvZz48L2c+PC9zdmc+",xn=Object.defineProperty,gr=Object.getOwnPropertySymbols,Hr=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,Ui=(ln,Ft,st)=>Ft in ln?xn(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,ji=(ln,Ft)=>{for(var st in Ft||(Ft={}))Hr.call(Ft,st)&&Ui(ln,st,Ft[st]);if(gr)for(var st of gr(Ft))Ti.call(Ft,st)&&Ui(ln,st,Ft[st]);return ln};const ba=ln=>React.createElement("svg",ji({width:70,height:24,xmlns:"http://www.w3.org/2000/svg"},ln),React.createElement("title",null,"\u5DF2\u8BC4\u9605"),React.createElement("path",{d:"m70 0-6.146 11.936L70 24H0V0h70ZM40.74 5.229h-9.292v1.646h3.768v5.83h-4.258v1.663h4.258v5.796h1.723v-5.796h4.326v-1.663h-4.326v-5.83h3.802V5.23Zm4.157 2.167h-1.723v12.768h1.723V7.396ZM57.35 5.212h-8.009v1.613h6.286v10.953c0 .47-.152.706-.44.706l-.659-.034c.186-.37.321-1.008.406-1.932l-1.487-.47c-.05.706-.135 1.126-.253 1.26a.506.506 0 0 1-.423.218h-.304c-.22 0-.321-.134-.321-.386v-1.966h1.673V10.32h-1.487c.405-.672.794-1.411 1.132-2.234l-1.656-.588a23.536 23.536 0 0 1-1.166 2.822H48.75l1.216-.605c-.405-.739-.81-1.428-1.25-2.032l-1.47.705c.44.571.862 1.21 1.25 1.932h-1.841v4.855h1.537c-.236 1.31-1.183 2.235-2.855 2.806l.912 1.445c2.061-.89 3.21-2.302 3.447-4.25h.912v2.301c0 1.042.457 1.58 1.369 1.58h1.081c.49 0 .879-.102 1.15-.27l.32 1.26h1.014c1.2 0 1.808-.588 1.808-1.764V5.212ZM29.572 9.563h-4.021v1.68h2.315v5.964c0 .353-.152.655-.44.907l.66 1.58a25.152 25.152 0 0 0 3.328-2.672l-.49-1.848c-.473.47-.93.908-1.352 1.294V9.563Zm-7.215-4.217H9.465v1.68h11.101v3.83h-8.634V8.64h-1.757v8.703c0 1.512.71 2.268 2.163 2.268h9.394c.676-.034 1.234-.236 1.64-.605.337-.37.624-1.63.844-3.78l-1.723-.538c-.102 1.714-.254 2.705-.49 2.94-.237.202-.49.303-.76.303h-8.398c-.609 0-.913-.303-.913-.908v-4.485h10.425v-7.19Zm29.857 6.384v2.033h-3.971V11.73h3.97Zm-19.11-4.233L31.6 8a28.8 28.8 0 0 1 1.2 4.099l1.503-.37a35.374 35.374 0 0 0-1.2-4.233Zm5.795-.05c-.355 1.646-.76 3.023-1.233 4.099l1.47.52c.523-1.21.963-2.604 1.3-4.216L38.9 7.446ZM27.95 4.707l-1.25 1.21c1.2.873 2.129 1.696 2.77 2.47l1.217-1.227a23.623 23.623 0 0 0-2.737-2.453Zm18.282-.269-1.605.706A15.91 15.91 0 0 1 46.435 7.9l1.571-.806a14.573 14.573 0 0 0-1.774-2.655Z",fill:"#37AD83",fillRule:"nonzero"}));var Co="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcwIDAtNi4xNDYgMTEuOTM2TDcwIDI0SDBWMGg3MFpNNDAuNzQgNS4yMjloLTkuMjkydjEuNjQ2aDMuNzY4djUuODNoLTQuMjU4djEuNjYzaDQuMjU4djUuNzk2aDEuNzIzdi01Ljc5Nmg0LjMyNnYtMS42NjNoLTQuMzI2di01LjgzaDMuODAyVjUuMjNabTQuMTU3IDIuMTY3aC0xLjcyM3YxMi43NjhoMS43MjNWNy4zOTZaTTU3LjM1IDUuMjEyaC04LjAwOXYxLjYxM2g2LjI4NnYxMC45NTNjMCAuNDctLjE1Mi43MDYtLjQ0LjcwNmwtLjY1OS0uMDM0Yy4xODYtLjM3LjMyMS0xLjAwOC40MDYtMS45MzJsLTEuNDg3LS40N2MtLjA1LjcwNi0uMTM1IDEuMTI2LS4yNTMgMS4yNmEuNTA2LjUwNiAwIDAgMS0uNDIzLjIxOGgtLjMwNGMtLjIyIDAtLjMyMS0uMTM0LS4zMjEtLjM4NnYtMS45NjZoMS42NzNWMTAuMzJoLTEuNDg3Yy40MDUtLjY3Mi43OTQtMS40MTEgMS4xMzItMi4yMzRsLTEuNjU2LS41ODhhMjMuNTM2IDIzLjUzNiAwIDAgMS0xLjE2NiAyLjgyMkg0OC43NWwxLjIxNi0uNjA1Yy0uNDA1LS43MzktLjgxLTEuNDI4LTEuMjUtMi4wMzJsLTEuNDcuNzA1Yy40NC41NzEuODYyIDEuMjEgMS4yNSAxLjkzMmgtMS44NDF2NC44NTVoMS41MzdjLS4yMzYgMS4zMS0xLjE4MyAyLjIzNS0yLjg1NSAyLjgwNmwuOTEyIDEuNDQ1YzIuMDYxLS44OSAzLjIxLTIuMzAyIDMuNDQ3LTQuMjVoLjkxMnYyLjMwMWMwIDEuMDQyLjQ1NyAxLjU4IDEuMzY5IDEuNThoMS4wODFjLjQ5IDAgLjg3OS0uMTAyIDEuMTUtLjI3bC4zMiAxLjI2aDEuMDE0YzEuMiAwIDEuODA4LS41ODggMS44MDgtMS43NjRWNS4yMTJaTTI5LjU3MiA5LjU2M2gtNC4wMjF2MS42OGgyLjMxNXY1Ljk2NGMwIC4zNTMtLjE1Mi42NTUtLjQ0LjkwN2wuNjYgMS41OGEyNS4xNTIgMjUuMTUyIDAgMCAwIDMuMzI4LTIuNjcybC0uNDktMS44NDhjLS40NzMuNDctLjkzLjkwOC0xLjM1MiAxLjI5NFY5LjU2M1ptLTcuMjE1LTQuMjE3SDkuNDY1djEuNjhoMTEuMTAxdjMuODNoLTguNjM0VjguNjRoLTEuNzU3djguNzAzYzAgMS41MTIuNzEgMi4yNjggMi4xNjMgMi4yNjhoOS4zOTRjLjY3Ni0uMDM0IDEuMjM0LS4yMzYgMS42NC0uNjA1LjMzNy0uMzcuNjI0LTEuNjMuODQ0LTMuNzhsLTEuNzIzLS41MzhjLS4xMDIgMS43MTQtLjI1NCAyLjcwNS0uNDkgMi45NC0uMjM3LjIwMi0uNDkuMzAzLS43Ni4zMDNoLTguMzk4Yy0uNjA5IDAtLjkxMy0uMzAzLS45MTMtLjkwOHYtNC40ODVoMTAuNDI1di03LjE5Wm0yOS44NTcgNi4zODR2Mi4wMzNoLTMuOTcxVjExLjczaDMuOTdabS0xOS4xMS00LjIzM0wzMS42IDhhMjguOCAyOC44IDAgMCAxIDEuMiA0LjA5OWwxLjUwMy0uMzdhMzUuMzc0IDM1LjM3NCAwIDAgMC0xLjItNC4yMzNabTUuNzk1LS4wNWMtLjM1NSAxLjY0Ni0uNzYgMy4wMjMtMS4yMzMgNC4wOTlsMS40Ny41MmMuNTIzLTEuMjEuOTYzLTIuNjA0IDEuMy00LjIxNkwzOC45IDcuNDQ2Wk0yNy45NSA0LjcwN2wtMS4yNSAxLjIxYzEuMi44NzMgMi4xMjkgMS42OTYgMi43NyAyLjQ3bDEuMjE3LTEuMjI3YTIzLjYyMyAyMy42MjMgMCAwIDAtMi43MzctMi40NTNabTE4LjI4Mi0uMjY5LTEuNjA1LjcwNkExNS45MSAxNS45MSAwIDAgMSA0Ni40MzUgNy45bDEuNTcxLS44MDZhMTQuNTczIDE0LjU3MyAwIDAgMC0xLjc3NC0yLjY1NVoiIGZpbGw9IiMzN0FEODMiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",fn=ie(59301),Xa=Object.defineProperty,ho=Object.defineProperties,El=Object.getOwnPropertyDescriptors,ys=Object.getOwnPropertySymbols,Oo=Object.prototype.hasOwnProperty,Lo=Object.prototype.propertyIsEnumerable,As=(ln,Ft,st)=>Ft in ln?Xa(ln,Ft,{enumerable:!0,configurable:!0,writable:!0,value:st}):ln[Ft]=st,po=(ln,Ft)=>{for(var st in Ft||(Ft={}))Oo.call(Ft,st)&&As(ln,st,Ft[st]);if(ys)for(var st of ys(Ft))Lo.call(Ft,st)&&As(ln,st,Ft[st]);return ln},es=(ln,Ft)=>ho(ln,El(Ft)),Gs=(ln,Ft,st)=>new Promise((mr,bi)=>{var Oi=Jr=>{try{$i(st.next(Jr))}catch(lr){bi(lr)}},Qi=Jr=>{try{$i(st.throw(Jr))}catch(lr){bi(lr)}},$i=Jr=>Jr.done?mr(Jr.value):Promise.resolve(Jr.value).then(Oi,Qi);$i((st=st.apply(ln,Ft)).next())});const al={0:"\u672A\u63D0\u4EA4",1:"\u6309\u65F6\u63D0\u4EA4",2:"\u5EF6\u65F6\u63D0\u4EA4",3:"\u90E8\u5206\u63D0\u4EA4",4:"\u6309\u65F6\u63D0\u4EA4\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09",5:"\u672A\u63D0\u4EA4\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09",6:"\u6309\u65F6\u63D0\u4EA4\uFF08\u7EBF\u4E0B\uFF09","-1":"\u91CD\u505A\u4E2D"},os={0:"#4D5865",1:"#FFFFFF",2:"#AC4C0C",3:"#AC4C0C",4:"#FFFFFF",5:"#4D5865",6:"#FFFFFF","-1":"#FFFFFF"},cs={0:"#D0D8E0",1:"#37AD83",2:"#FFD28D",3:"#FFD28D",4:"#37AD83",5:"#D0D8E0",6:"#37AD83","-1":"#776FE8"},lo=({shixunHomeworks:ln,globalSetting:Ft,loading:st,user:mr,classroomList:bi,dispatch:Oi})=>{var Qi,$i,Jr,lr,gi,ro,Fo,ca,Pa,$o,Uo,bs,ds,io,fs,No,Ra,wo,Os,Mi,Bi,ua,Ca,Ta,_o,Mo,To,qs;const[Ya]=(0,ke.useSearchParams)(),ii=(0,ke.useParams)(),[_s]=Ce.default.useForm(),[Ml]=Ce.default.useForm(),{userInfo:du}=mr,{studentWorkDetail:cr,studentWorkCommon:da,studentWorkSupplyDetail:fu,workList:mc,workDetail:Cu,actionTabs:hs}=ln,[,wu,Eu,Pl]=(0,de.U)(je.wT,{userId:ii==null?void 0:ii.userId}),[,hu,Rl,Vo]=(0,de.U)(je.Wr,{userId:ii==null?void 0:ii.userId}),[,ol,Al]=(0,de.U)(je.G$,{userId:ii==null?void 0:ii.userId,id:ii==null?void 0:ii.userId}),[tu,Hl]=(0,oe.useState)("1"),[Mu,Fl]=(0,oe.useState)(!1),[xs,Au]=(0,oe.useState)({last:!1}),[Ps,ku]=(0,oe.useState)({last:!1}),bl=(0,oe.useRef)(),[Du,xa]=(0,oe.useState)(!1),[Ao,Ss]=(0,oe.useState)("");let[ss,Ys]=(0,oe.useState)([]);const[Fu,zu]=(0,oe.useState)(!1),oc=(0,oe.useRef)(),[gc,ks]=(0,oe.useState)(!1),[xl,ju]=(0,oe.useState)(""),[$e,Ve]=(0,oe.useState)(!1),[Mt,Pt]=(0,oe.useState)(!1),[Ut,Wt]=(0,oe.useState)(""),[pn,hn]=(0,oe.useState)(!0),[un,Nn]=Ye.default.useModal(),[$n,On]=(0,oe.useState)(!1),[ur,rr]=(0,oe.useState)(!1),[ir,Wr]=(0,oe.useState)(!1),[Ir,Ur]=(0,oe.useState)(!1),[Br,li]=(0,oe.useState)(!1),[Pi,Hi]=(0,oe.useState)(!1),[xi,na]=(0,oe.useState)(!0),[ya,hi]=(0,oe.useState)(!1),[Ai,vi]=(0,oe.useState)({content:"",type:""}),[Er,Si]=(0,oe.useState)({status:0}),qi=[{title:"\u63D0\u4EA4\u6B21\u6570",dataIndex:"id",ellipsis:!0,width:80,render:(Ln,pr,pa)=>pa+1},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"commit_time",ellipsis:!0,render:Ln=>ut()(Ln).format("YYYY-MM-DD HH:mm")},{title:"\u63D0\u4EA4\u9636\u6BB5",dataIndex:"stage_name",ellipsis:!0,width:180,render:(Ln,pr)=>fn.createElement(fn.Fragment,null,Ln,pr!=null&&pr.is_redo?fn.createElement("span",{style:{color:"#FF9D18"}},"\uFF08\u6253\u56DE\u91CD\u505A\uFF09"):(pr==null?void 0:pr.is_redo_commit)&&fn.createElement("span",{style:{color:"#2FA34F"}},"\uFF08\u91CD\u505A\u63D0\u4EA4\uFF09"))},{title:"\u6559\u5E08\u8BC4\u5206",dataIndex:"teacher_score",ellipsis:!0},{title:"\u52A9\u6559\u8BC4\u5206",dataIndex:"teaching_asistant_score",ellipsis:!0},{title:"\u533F\u8BC4\u5F97\u5206",dataIndex:"student_score",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"history_id",ellipsis:!0,width:80,align:"right",render:(Ln,pr)=>fn.createElement("a",{target:"_blank",href:`/classrooms/${ii==null?void 0:ii.coursesId}/common_homework/${ii==null?void 0:ii.categoryId}/review/${pr==null?void 0:pr.student_work_id}?history_id=${pr==null?void 0:pr.history_id}`},"\u67E5\u770B")}],Gi=(Ln={key:""})=>{Oi({type:"shixunHomeworks/setActionTabs",payload:Ln}),Ln.key===""&&(_s.resetFields(),Ml.resetFields())},Ri=()=>{Oi({type:"shixunHomeworks/getStudentWorkCommon",payload:po({is_invalid:!1,history_id:Ya.get("history_id")},ii)})},Xr=Ln=>{let pr=0;for(let pa=0;pa<Ln.length;pa++)Ln[pa].score!=""&&(pr+=Number(Ln[pa].score));return pr.toFixed(2)},fa=Ln=>Gs(void 0,null,function*(){var pr;cr!=null&&cr.single_score||(Ln.score=Xr(Ln.score_details)),Ln.attachment_ids=(pr=Ln.attachment_ids)==null?void 0:pr.map(ka=>{var rs;return(rs=ka==null?void 0:ka.response)==null?void 0:rs.id}),zu(!0),(yield(0,je.yy)(es(po({},Ln),{userId:ii.userId,is_hidden_comment:ya}))).status===0&&(_s.resetFields(),hi(!1),cr!=null&&cr.next_work_id?(ye.ZP.success("\u8BC4\u9605\u6210\u529F\uFF01\u5DF2\u4E3A\u60A8\u81EA\u52A8\u5207\u6362\u81F3\u4E0B\u4E00\u4E2A\u5F85\u8BC4\u9605\u7684\u5B66\u751F",2),ha("read")):(ye.ZP.success("\u8BC4\u9605\u6210\u529F\uFF01",2),Ri(),Va())),xa(!0),zu(!1)}),ha=Ln=>Gs(void 0,null,function*(){const{comment:pr,score:pa,score_details:ka,attachment_ids:rs}=_s.getFieldsValue();let Go=!1;if(cr!=null&&cr.single_score?Go=!(0,zt.isNil)((pa==null?void 0:pa.length)==0?null:pa):ka==null||ka.some(Zs=>{if(!(0,zt.isNil)(Zs!=null&&Zs.score?Zs==null?void 0:Zs.score:null))return Go=!0,!0}),pr||Go||rs){Ye.default.confirm({centered:!0,okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:fn.createElement("div",{className:"tc"},"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539"),onOk:()=>{_s.resetFields(),Ln==="last"?ke.history.push(Ya.get("ids")?`/classrooms/${ii==null?void 0:ii.coursesId}/common_homework/${ii==null?void 0:ii.categoryId}/review/${Ps==null?void 0:Ps.student_work_id}?ids=${Ya.get("ids")}&page=${Ya.get("page")}`:`/classrooms/${ii==null?void 0:ii.coursesId}/common_homework/${ii==null?void 0:ii.categoryId}/review/${Ps==null?void 0:Ps.student_work_id}&page=${Ya.get("page")}`):Ln==="read"?ke.history.push(Ya.get("ids")?`/classrooms/${ii==null?void 0:ii.coursesId}/common_homework/${ii==null?void 0:ii.categoryId}/review/${xs==null?void 0:xs.student_work_id}?ids=${Ya.get("ids")}&page=${Ya.get("page")}`:`/classrooms/${ii==null?void 0:ii.coursesId}/common_homework/${ii==null?void 0:ii.categoryId}/review/${xs==null?void 0:xs.student_work_id}&page=${Ya.get("page")}`):ke.history.push(`/classrooms/${ii.coursesId}/common_homework/${ii.categoryId}/detail?page=${Ya.get("page")}`)}});return}Ln==="last"?ke.history.push(Ya.get("ids")?`/classrooms/${ii==null?void 0:ii.coursesId}/common_homework/${ii==null?void 0:ii.categoryId}/review/${Ps==null?void 0:Ps.student_work_id}?ids=${Ya.get("ids")}&page=${Ya.get("page")}`:`/classrooms/${ii==null?void 0:ii.coursesId}/common_homework/${ii==null?void 0:ii.categoryId}/review/${Ps==null?void 0:Ps.student_work_id}&page=${Ya.get("page")}`):Ln==="read"?ke.history.push(Ya.get("ids")?`/classrooms/${ii==null?void 0:ii.coursesId}/common_homework/${ii==null?void 0:ii.categoryId}/review/${xs==null?void 0:xs.student_work_id}?ids=${Ya.get("ids")}&page=${Ya.get("page")}`:`/classrooms/${ii==null?void 0:ii.coursesId}/common_homework/${ii==null?void 0:ii.categoryId}/review/${xs==null?void 0:xs.student_work_id}&page=${Ya.get("page")}`):ke.history.push(`/classrooms/${ii.coursesId}/common_homework/${ii.categoryId}/detail?page=${Ya.get("page")}`)}),ja=Ln=>Gs(void 0,null,function*(){Ve(!0),(yield(0,Ue.ZP)(`/api/homework_commons/${ii.categoryId}/student_works/export_normal_word_all.json`,{method:"post",body:{with_edit:Ln,with_submit_record:pn}})).status===0&&(ks(!1),ke.history.push(`/classrooms/${ii==null?void 0:ii.coursesId}/exportlist/normal_work_list`)),Ve(!1)}),Fa=Ln=>{Ve(!0),(0,Vt.Nd)("",`${ot.Z.API_SERVER}/api/student_works/${ii.userId}/export_normal_word_single.json?with_edit=${Ln}&with_submit_record=${pn}`),Ve(!1),ks(!1)},ko=Ln=>{Pt(Ln),ju("\u9644\u4EF6"),ks(!0)};(0,oe.useEffect)(()=>{cr!=null&&cr.homework_id&&(cr!=null&&cr.prev_work_id?ku({student_work_id:cr==null?void 0:cr.prev_work_id}):ku({last:!0}),cr!=null&&cr.next_work_id?Au({student_work_id:cr==null?void 0:cr.next_work_id}):Au({last:!0}))},[cr]),(0,oe.useEffect)(()=>{const Ln=JSON.parse(localStorage.getItem("all_student_works_param")||"{}");Oi({type:"shixunHomeworks/getStudentWorkDetail",payload:es(po(po({},ii),Ln),{history_id:Ya.get("history_id")||Ut})}),Oi({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:po({},ii)}),Ri(),tu=="3"&&Rl({userId:ii==null?void 0:ii.userId}),bl.current.onclick=pr=>{pr.target.nodeName==="IMG"&&pr.target.alt!==""&&ct.Z.publish("preview-image",pr.target.src)}},[ii.categoryId,ii.userId]),(0,oe.useEffect)(()=>{cr!=null&&cr.score_details&&Ys(cr==null?void 0:cr.score_details.map(Ln=>es(po({},Ln),{score:""})))},[cr]),(0,oe.useEffect)(()=>{ss.every(Ln=>Ln.score==="")?xa(!0):xa(!1)},[ss]);const Va=()=>{const Ln=JSON.parse(localStorage.getItem("all_student_works_param")||"{}");Oi({type:"shixunHomeworks/getStudentWorkDetail",payload:es(po(po({},ii),Ln),{history_id:Ya.get("history_id")||Ut})}),Oi({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:po({},ii)}),Oi({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:ii.categoryId}})};(0,oe.useEffect)(()=>{Wt(Ya.get("history_id")||"")},[Ya.get("history_id")]),(0,oe.useEffect)(()=>(Oi({type:"classroomList/getAssistantPermissions",payload:{course_id:ii.coursesId}}),Oi({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:ii.categoryId}}),Oi({type:"globalSetting/footerToggle",payload:!1}),()=>{Oi({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,oe.useEffect)(()=>{(0,be.Rm)()&&Oi({type:"classroomList/getAssistantPermissions",payload:{course_id:ii.coursesId}})},[(Qi=mr==null?void 0:mr.userInfo)==null?void 0:Qi.username]);const aa=()=>{var Ln,pr,pa;return Ut?!1:(0,be.G5)()||(0,be.Rm)()&&((pr=(Ln=bi==null?void 0:bi.AssistantObject)==null?void 0:Ln.practice)!=null&&pr.can_appraise)?!0:!!((0,be.dE)()&&((pa=cr==null?void 0:cr.homework_status)!=null&&pa.includes("\u533F\u8BC4\u4E2D"))&&!da.is_author)},ao=(0,be.dE)()&&(($i=cr==null?void 0:cr.homework_status)==null?void 0:$i.includes("\u533F\u8BC4\u4E2D"))&&!da.is_author,[Ba,Eo]=(0,oe.useState)(!1),[vo,ts]=(0,oe.useState)(!1),[Ji,Wi]=(0,oe.useState)(!1),Vi=Ln=>{const pr=Ln.currentTarget;pr.scrollHeight>pr.clientHeight&&Eo(!0)},Fi=Ln=>{const pr=Ln.currentTarget;pr.scrollHeight>pr.clientHeight&&ts(!0)},$a=Ln=>{const pr=Ln.currentTarget;pr.scrollHeight>pr.clientHeight&&Wi(!0)};return(0,oe.useEffect)(()=>{var Ln;!(cr!=null&&cr.single_score)&&_s.setFieldValue("score_details",(Ln=cr==null?void 0:cr.score_details)==null?void 0:Ln.map(pr=>po({},pr)))},[cr]),fn.createElement("section",{className:"edu-container",ref:bl,style:{width:aa()?"100%":"1200px",overflow:"hidden",overflowX:"auto"}},fn.createElement("div",{style:(0,be.bg)()&&aa()?{minWidth:"1200px"}:{}},fn.createElement("section",{className:"animated fadeIn"},fn.createElement("div",{style:{height:"52px",background:"#FFFFFF",marginBottom:"10px",padding:"0 20px",display:"flex",alignItems:"center"}},fn.createElement("div",{style:{cursor:"pointer",display:"flex",alignItems:"center"},onClick:()=>{ha("list")}},fn.createElement("img",{src:no}),fn.createElement("div",{style:{fontWeight:400,color:"#666666",marginLeft:"5px",fontSize:"16px"}},"\u8FD4\u56DE")),fn.createElement("div",{className:mt.top_content},!ao&&(cr==null?void 0:cr.image_url)&&fn.createElement("img",{src:`${ot.Z.IMG_SERVER}/images/${cr==null?void 0:cr.image_url}`,className:mt.top_content_img}),fn.createElement("div",{className:mt.item_content},fn.createElement("div",{className:mt.item_name,style:{height:ao?"40px":"20px",lineHeight:ao?"40px":"20px"}},cr==null?void 0:cr.author_name,!ao&&fn.createElement("span",{className:mt.item_tags,style:{color:os[cr==null?void 0:cr.work_status],background:cs[cr==null?void 0:cr.work_status]}},al[cr==null?void 0:cr.work_status])),!ao&&((cr==null?void 0:cr.student_id)||(cr==null?void 0:cr.group_name))&&fn.createElement("div",{className:mt.item_code},fn.createElement("span",null,"\u5B66\u53F7\uFF1A",cr==null?void 0:cr.student_id),fn.createElement("span",{style:{marginLeft:"20px"}},"\u73ED\u7EA7\uFF1A",cr==null?void 0:cr.group_name)))),fn.createElement("div",{style:{marginLeft:"auto",display:"flex",alignItems:"center"}},((cr==null?void 0:cr.score_given_user)||(cr==null?void 0:cr.score_given_user)==0)&&!Ut&&fn.createElement("div",{className:"mr10 font24",style:{fontWeight:600,color:"#009C0F"}},cr==null?void 0:cr.score_given_user,fn.createElement("span",{style:{fontSize:"14px"}},"\u5206")),Ut&&fn.createElement("span",{style:{padding:"3px",marginRight:30,background:"rgba(219,243,224,0.88)",color:"#1FBE3C",fontSize:"12px"}},"\u7B2C",cr==null?void 0:cr.commit_count,"\u6B21\u63D0\u4EA4\u7684\u4F5C\u4E1A"),Ut&&fn.createElement("div",{className:mt.buttonStyle,style:{border:"1px solid rgba(48,97,208,0.5)",color:"#3061D0",display:"flex",alignItems:"center",padding:"0 10px",marginRight:10,height:32,cursor:"pointer"},onClick:()=>{Gi({key:"\u4F5C\u4E1A\u63CF\u8FF0"})}},fn.createElement("i",{className:"iconfont icon-fenzuzuoye3 font18",style:{color:"#009CDC"}}),fn.createElement("span",{style:{marginLeft:5}},"\u4F5C\u4E1A\u63CF\u8FF0")),!Ut&&fn.createElement("div",null,!((0,be.dE)()&&da.is_author)&&(cr!=null&&cr.rated_already?fn.createElement("img",{src:Co,style:{margin:"0 20px 0 0"}}):fn.createElement("img",{src:ia,style:{marginRight:"20px"}}))),(0,be.dE)()&&da.is_author?fn.createElement(fn.Fragment,null):(cr==null?void 0:cr.have_history_comment)&&fn.createElement(Ee.ZP,{className:mt.buttonStyle,style:{border:"1px solid rgba(48,97,208,0.5)",color:"#3061D0",display:"flex",alignItems:"center",padding:"0 10px"},icon:fn.createElement("i",{className:"iconfont icon-chakanshenqingjilu"}),onClick:()=>{Gi({key:"\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55"})}},"\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55"),!Ut&&(0,be.G5)()&&fn.createElement(he.Z,{menu:{items:[{label:fn.createElement("div",{onClick:()=>{ko(!1)}},"\u5BFC\u51FA\u7B54\u9898\u8BB0\u5F55\u4E0E\u9644\u4EF6"),key:"1"},{label:fn.createElement("div",{onClick:()=>{ko(!0)}},"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u7B54\u9898\u8BB0\u5F55\u4E0E\u9644\u4EF6"),key:"2"}]}},fn.createElement("div",{className:`${mt.daochu} ${mt.buttonStyle}`},"\u5BFC\u51FA",fn.createElement("i",{className:"iconfont icon-a-xialazhankai",style:{fontSize:"6px",marginLeft:"6px"}})))))),fn.createElement("div",{style:{display:"flex"}},xi&&aa()&&fn.createElement("div",{className:mt.left_content},fn.createElement("div",{className:mt.left_title},fn.createElement("i",{className:"iconfont icon-fenzuzuoye3 font18",style:{color:"#009CDC"}}),fn.createElement("span",{className:"ml10"},"\u4F5C\u4E1A\u63CF\u8FF0"),fn.createElement("span",{className:mt.see_work,onClick:()=>{Gi({key:"\u4F5C\u4E1A\u63CF\u8FF0"})}},"\u67E5\u770B")),fn.createElement("div",{className:mt.left_list},fn.createElement("div",{className:mt.list_title},fn.createElement("div",{style:{width:"5px",height:"10px",background:"#3061D0"}}),fn.createElement("span",{style:{color:"#171717",fontWeight:600,marginLeft:"10px"}},"\u8BC4\u9605\u4EFB\u52A1"),fn.createElement("span",{style:{marginLeft:"auto",color:"#333333"}},"\u5DF2\u8BC4"),fn.createElement("span",{style:{color:"#009C0F",margin:"0 20px 0 8px",fontWeight:600}},cr==null?void 0:cr.commented_size),fn.createElement("span",{style:{color:"#333333",marginRight:"8px"}},"\u672A\u8BC4"),fn.createElement("span",{style:{color:"#FA6400",fontWeight:600}},cr==null?void 0:cr.no_commented_size)),fn.createElement("div",{className:`${mt.list_box} ${Ba?"":mt.hiddenBar}`,onMouseEnter:Vi,onMouseLeave:()=>Eo(!1)},(Jr=cr==null?void 0:cr.all_student_works)==null?void 0:Jr.map(Ln=>{var pr;return fn.createElement("div",{className:mt.list_item,style:{background:(pr=ii==null?void 0:ii.userId)!=null&&pr.includes(Ln==null?void 0:Ln.student_work_id)?"#F1F4F9":""},onClick:()=>{ke.history.push(Ln==null?void 0:Ln.url)}},fn.createElement("img",{src:`${ot.Z.IMG_SERVER}/images/${Ln==null?void 0:Ln.image_url}`,className:mt.item_img,style:{filter:ao&&"blur(10px)",border:ao&&"none"}}),fn.createElement("div",{className:mt.item_content},fn.createElement("div",{className:mt.item_name,style:{height:ao?"40px":"20px",lineHeight:ao?"40px":"20px"}},Ln==null?void 0:Ln.username),!ao&&fn.createElement("div",{className:mt.item_code},"\u5B66\u53F7\uFF1A",Ln==null?void 0:Ln.student_id)),fn.createElement("div",{className:mt.item_states,style:{color:(Ln==null?void 0:Ln.score)=="\u5F85\u8BC4"?"#FA6400":"#009C0F"}},Ln==null?void 0:Ln.score,(Ln==null?void 0:Ln.score)!="\u5F85\u8BC4"&&"\u5206"))})))),aa()&&fn.createElement("div",{className:xi?mt.foldClose:mt.foldOpen,onClick:()=>na(!xi)},xi&&fn.createElement(xe.Z,{placement:"right",title:"\u6536\u8D77"},fn.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"})),!xi&&fn.createElement(xe.Z,{placement:"right",title:"\u5C55\u5F00"},fn.createElement("span",{className:"icon-youjiantou iconfont",style:{color:"#3061D0"}}))),fn.createElement("div",{style:{flex:1,margin:aa()?"0 20px 0 5px":"auto",minWidth:"600px"}},fn.createElement(we.default,{className:mt.TabsStyle,destroyInactiveTabPane:!0,defaultActiveKey:"1",activeKey:tu,tabBarExtraContent:fn.createElement(fn.Fragment,null,!Ut&&(cr==null?void 0:cr.commit_count)>1&&fn.createElement(Ee.ZP,{style:{border:"none",color:"#3061D0",display:"flex",alignItems:"center",padding:0},icon:fn.createElement("i",{className:"iconfont icon-chakanshenqingjilu"}),loading:wu,onClick:()=>Gs(void 0,null,function*(){yield Eu({},!0),Gi({key:"\u4F5C\u4E1A\u63D0\u4EA4\u8BB0\u5F55"})})},"\u4F5C\u4E1A\u63D0\u4EA4\u8BB0\u5F55")),onChange:Ln=>{Hl(Ln),Ln=="2"&&ke.history.push(`/classrooms/${ii.coursesId}/common_homework/${ii.categoryId}/lab-report-view/${ii.userId}`),Ln=="3"&&Rl({})}},fn.createElement(we.default.TabPane,{tab:fn.createElement("span",{style:{position:"relative"}},"\u5B66\u751F\u4F5C\u4E1A",fn.createElement(xe.Z,{title:fn.createElement("span",{className:"font14"},"\uFF08\u5F53\u524D\u652F\u6301\u6279\u6CE8\u7684\u6587\u6863\u7C7B\u578B\uFF1A.docx\u3001.xlsx\u3001.pptx\uFF09")},fn.createElement("i",{className:"iconfont icon-tishixiaowenhao ml10 font14 c-grey-999 current",style:{lineHeight:"18px"}}))),key:"1"}),(cr==null?void 0:cr.anonymous_comment)&&!Ut&&fn.createElement(we.default.TabPane,{tab:"\u95EE\u9898\u53CD\u9988",key:"3"})),fn.createElement("div",{className:`${vo?"":mt.hiddenBar}`,onMouseEnter:Fi,onMouseLeave:()=>ts(!1),style:{overflowY:"auto",height:"calc(100vh - 180px)"}},fn.createElement(Te.Z,{spinning:hu||!!st["shixunHomeworks/getStudentWorkDetail"]||!!st["shixunHomeworks/getStudentWorkSupplyDetail"]},fn.createElement("div",{key:"1",style:{display:tu==="1"?"block":"none"}},fn.createElement("div",{style:{background:"#F5F6F8",padding:"20px"}},fn.createElement("div",{className:mt.center_top},fn.createElement("div",{className:mt.center_top_title},fn.createElement("img",{src:Ga}),fn.createElement("span",{className:"ml5",style:{color:"#3061D0",fontWeight:600}},"\u4F5C\u4E1A\u63D0\u4EA4\u5185\u5BB9"),(cr==null?void 0:cr.update_time)&&fn.createElement(fn.Fragment,null,fn.createElement("span",{style:{marginLeft:"auto",cursor:"pointer",color:"#333333"}},ut()(cr==null?void 0:cr.update_time).format("YYYY-MM-DD HH:mm")),fn.createElement("span",{className:"ml10",style:{color:"#333333"}},"\u66F4\u65B0"))),fn.createElement("div",{className:mt.center_top_content},fn.createElement(Et.Z,{value:(cr==null?void 0:cr.description)||"\u6682\u65E0\uFF5E"}),fn.createElement(se.Z,{authority:(0,be.GJ)(),dataSource:cr==null?void 0:cr.attachments,callback:()=>{Oi({type:"shixunHomeworks/getStudentWorkDetail",payload:po({},ii)})}})))),((cr==null?void 0:cr.work_score)||(cr==null?void 0:cr.work_score)==0)&&!Ut&&fn.createElement(or,{dataInfo:cr,handleCloseOrOpenModal:Ln=>{Gi(Ln)}})),fn.createElement("div",{key:"3",style:{display:tu==="3"?"block":"none"}},fn.createElement("div",{style:{background:"#fff",display:"flex",flexDirection:"column",padding:"10px 30px 30px 30px"}},((lr=Vo==null?void 0:Vo.data)==null?void 0:lr.count)>0?fn.createElement(fn.Fragment,null,(ro=(gi=Vo==null?void 0:Vo.data)==null?void 0:gi.list)==null?void 0:ro.map((Ln,pr)=>fn.createElement(ki,{key:pr,type:"feedback",Data:es(po({},Ln),{time:Ln==null?void 0:Ln.created_at,user_info:{user_image_url:Ln.avatar_url,user_id:Ln.user_id,user_name:Ln.real_name}}),getInitData:Ri,updateData:Va,shixunHomeworks:ln}))):fn.createElement(pe.Z,null)))),(Fo=da==null?void 0:da.teacher_list)!=null&&Fo.length?fn.createElement("div",{className:mt.pingyue},fn.createElement("div",{className:mt.pingyue_title},fn.createElement("img",{src:Ei,style:{marginRight:"5px"}}),fn.createElement("div",{style:{color:"#333333",fontWeight:600}},"\u6559\u5E08\u8BC4\u9605"),((cr==null?void 0:cr.teacher_score)||(cr==null?void 0:cr.teacher_score)==0)&&fn.createElement("div",{className:mt.pingyue_score},fn.createElement("div",{style:{height:"30px",lineHeight:"35px",fontSize:"24px",color:"#009C0F",fontWeight:600,marginLeft:"12px"}},cr==null?void 0:cr.teacher_score,fn.createElement("span",{style:{fontSize:"14px"}},"\u5206")),fn.createElement("div",{style:{fontSize:"12px",color:"#666666",marginLeft:"12px"}},"\u6700\u7EC8\u5F97\u5206\uFF08",(cr==null?void 0:cr.teacher_mode)==1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206","\uFF09"))),fn.createElement("div",{style:{padding:"20px"}},fn.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"20px"}},(ca=da==null?void 0:da.teacher_list)!=null&&ca.length?(Pa=ir?da==null?void 0:da.teacher_list:da==null?void 0:da.teacher_list.slice(0,3))==null?void 0:Pa.map((Ln,pr)=>fn.createElement(ki,{key:pr,index:pr,type:Er.status==1&&"teacher",Data:es(po({},Ln),{user_info:{user_image_url:Ln.user_image_url,user_login:Ln.user_login,user_name:Ln.user_name}}),getInitData:Ri,updateData:Va,shixunHomeworks:ln})):fn.createElement(pe.Z,{styles:{margin:"50px auto"}}),(($o=da==null?void 0:da.teacher_list)==null?void 0:$o.length)>3&&!ir&&fn.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Wr(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((Uo=da==null?void 0:da.teacher_list)==null?void 0:Uo.length)>3&&ir&&fn.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Wr(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026")),((bs=da==null?void 0:da.hidden_comment_scores)==null?void 0:bs.length)>0&&fn.createElement("div",{className:mt.pingyue_teacher_title},fn.createElement("img",{src:qo,style:{marginRight:"5px"}}),fn.createElement("div",{style:{color:"#CA7720",fontWeight:600}},"\u4EC5\u6559\u5E08\u53EF\u89C1\u8BC4\u8BED")),((ds=da==null?void 0:da.hidden_comment_scores)==null?void 0:ds.length)>0&&fn.createElement("div",{style:{display:"flex",flexDirection:"column"}},(io=da==null?void 0:da.hidden_comment_scores)!=null&&io.length?(fs=Ir?da==null?void 0:da.hidden_comment_scores:da==null?void 0:da.hidden_comment_scores.slice(0,3))==null?void 0:fs.map((Ln,pr)=>fn.createElement(ki,{newType:"teacher",key:pr,index:pr,type:Er.status==1&&"teacher",Data:es(po({},Ln),{user_info:{user_image_url:Ln.user_image_url,user_login:Ln.user_login,user_name:Ln.user_name}}),getInitData:Ri,updateData:Va,shixunHomeworks:ln})):fn.createElement(pe.Z,{styles:{margin:"50px auto"}}),((No=da==null?void 0:da.hidden_comment_scores)==null?void 0:No.length)>3&&!Ir&&fn.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Ur(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((Ra=da==null?void 0:da.hidden_comment_scores)==null?void 0:Ra.length)>3&&Ir&&fn.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Ur(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026")))):null,(wo=da==null?void 0:da.teaching_assistant_list)!=null&&wo.length?fn.createElement("div",{className:mt.pingyue,style:{marginTop:"20px"}},fn.createElement("div",{className:mt.pingyue_title},fn.createElement("img",{src:Ei,style:{marginRight:"5px"}}),fn.createElement("div",{style:{color:"#333333",fontWeight:600}},"\u52A9\u6559\u8BC4\u9605"),((cr==null?void 0:cr.teaching_asistant_score)||(cr==null?void 0:cr.teaching_asistant_score)==0)&&fn.createElement("div",{className:mt.pingyue_score},fn.createElement("div",{style:{height:"30px",lineHeight:"35px",fontSize:"24px",color:"#009C0F",fontWeight:600,marginLeft:"12px"}},cr==null?void 0:cr.teaching_asistant_score,fn.createElement("span",{style:{fontSize:"14px"}},"\u5206")),fn.createElement("div",{style:{fontSize:"12px",color:"#666666",marginLeft:"12px"}},"\u6700\u7EC8\u5F97\u5206\uFF08",(cr==null?void 0:cr.ta_mode)==1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206","\uFF09"))),fn.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"20px",padding:"20px"}},(Os=da==null?void 0:da.teaching_assistant_list)!=null&&Os.length?(Mi=Br?da==null?void 0:da.teaching_assistant_list:da==null?void 0:da.teaching_assistant_list.slice(0,3))==null?void 0:Mi.map((Ln,pr)=>fn.createElement(ki,{key:pr,index:pr,type:Er.status==1&&"teacher",Data:es(po({},Ln),{user_info:{user_image_url:Ln.user_image_url,user_login:Ln.user_login,user_name:Ln.user_name}}),getInitData:Ri,updateData:Va,shixunHomeworks:ln})):fn.createElement(pe.Z,{styles:{margin:"50px auto"}}),((Bi=da==null?void 0:da.teaching_assistant_list)==null?void 0:Bi.length)>3&&!Br&&fn.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{li(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((ua=da==null?void 0:da.teaching_assistant_list)==null?void 0:ua.length)>3&&Br&&fn.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{li(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"))):null,(Ca=da==null?void 0:da.student_list)!=null&&Ca.length?fn.createElement("div",{className:mt.pingyue,style:{marginTop:"20px"}},fn.createElement("div",{className:mt.pingyue_title},fn.createElement("img",{src:Ei,style:{marginRight:"5px"}}),fn.createElement("div",{style:{color:"#333333",fontWeight:600}},"\u533F\u8BC4\u8BC4\u9605"),((cr==null?void 0:cr.student_score)||(cr==null?void 0:cr.student_score)==0)&&fn.createElement("div",{className:mt.pingyue_score},fn.createElement("div",{style:{height:"30px",lineHeight:"35px",fontSize:"24px",color:"#009C0F",fontWeight:600,marginLeft:"12px"}},cr==null?void 0:cr.student_score,fn.createElement("span",{style:{fontSize:"14px"}},"\u5206")),fn.createElement("div",{style:{fontSize:"12px",color:"#666666",marginLeft:"12px"}},"\u6700\u7EC8\u5F97\u5206\uFF08\u5E73\u5747\u8BC4\u5206\uFF09"))),fn.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"20px",padding:"20px"}},(Ta=da==null?void 0:da.student_list)!=null&&Ta.length?(_o=Pi?da==null?void 0:da.student_list:da==null?void 0:da.student_list.slice(0,3))==null?void 0:_o.map((Ln,pr)=>fn.createElement(ki,{showNm:!0,showName:!(0,be.dE)(),key:pr,index:pr,type:Er.status==1&&"teacher",Data:es(po({},Ln),{user_info:{user_image_url:Ln.user_image_url,user_login:Ln.user_login,user_name:Ln.user_name}}),getInitData:Ri,updateData:Va,shixunHomeworks:ln})):fn.createElement(pe.Z,{styles:{margin:"50px auto"}}),((Mo=da==null?void 0:da.student_list)==null?void 0:Mo.length)>3&&!Pi&&fn.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Hi(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((To=da==null?void 0:da.student_list)==null?void 0:To.length)>3&&Pi&&fn.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Hi(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"))):null)),aa()&&fn.createElement("div",{style:{padding:"15px",height:"calc(100vh - 143px)",overflowY:"auto",background:"#ffffff"},className:`${mt.right_content} ${Ji?"":mt.hiddenBar}`,onMouseEnter:$a,onMouseLeave:()=>Wi(!1)},fn.createElement(Ce.default,{form:_s,layout:"vertical",size:"large",className:mt.right_form,style:{position:"relative"},scrollToFirstError:!0,onFinish:Ln=>{fa(Ln)}},fn.createElement("div",{className:"blod font16 mb10",style:{color:"#191919"}},"\u8BC4\u9605"),fn.createElement(Rt,{FormProps:{form:_s},isShowStyles:!1}),fn.createElement(Ce.default.Item,{name:"attachment_ids",className:"mb20",style:{marginTop:"-12px"}},fn.createElement(Bt.Z,null)),(0,be.GJ)()&&fn.createElement("div",null,fn.createElement(Ce.default.Item,{name:"hidden_comment",style:{background:"#F6F7F9",height:"50px",display:"flex",alignItems:"center",padding:"0 20px"}},fn.createElement(qe.default,{onChange:Ln=>{var pr;hi((pr=Ln==null?void 0:Ln.target)==null?void 0:pr.checked)}},"\u8BC4\u8BED\u4EC5\u8BFE\u5802\u6559\u5E08\u53EF\u89C1")))),fn.createElement("div",null,fn.createElement(Ee.ZP,{loading:Fu,style:{width:"100%",height:"40px",background:"#3061D0",borderRadius:"7px"},type:"primary",onClick:()=>{_s.submit()}}," \u63D0\u4EA4\u8BC4\u9605 ")),fn.createElement("div",{style:{display:"flex",marginTop:"20px",justifyContent:"space-between"}},(cr==null?void 0:cr.is_new_rule)&&(0,be.G5)()&&cr.work_status!==-1&&cr.work_status!==0&&fn.createElement(Ee.ZP,{className:mt.btnAdd,onClick:()=>{Gi({key:"\u786E\u8BA4\u6253\u56DE\u91CD\u505A"})}}," \u6253\u56DE\u91CD\u505A "),!(cr!=null&&cr.is_new_rule)&&(0,be.G5)()&&["\u63D0\u4EA4\u4E2D","\u8865\u4EA4\u4E2D","\u8FDB\u884C\u4E2D"].some(Ln=>{var pr;return(pr=cr==null?void 0:cr.homework_status)==null?void 0:pr.includes(Ln)})&&fn.createElement(Ee.ZP,{className:mt.btnAdd,onClick:()=>{Gi({key:"\u786E\u8BA4\u6253\u56DE\u91CD\u505A"})}}," \u6253\u56DE\u91CD\u505A "),!(cr!=null&&cr.is_author)&&(0,be.dE)()&&((qs=cr==null?void 0:cr.homework_status)==null?void 0:qs.includes("\u533F\u8BC4\u4E2D"))&&Ya.get("review")!=="review"&&fn.createElement(Ee.ZP,{className:mt.btnAdd,onClick:()=>{Gi({key:"\u95EE\u9898\u53CD\u9988"})}}," \u95EE\u9898\u53CD\u9988 "),fn.createElement(Ee.ZP,{className:`${!(Ps!=null&&Ps.last)&&mt.btnAdd} ${mt.lastAdd}`,style:{display:"flex",alignItems:"center"},onClick:()=>ha("last"),disabled:Ps==null?void 0:Ps.last},fn.createElement("i",{className:"iconfont icon-zuojiantou font12 mr5"})," \u4E0A\u4E00\u4E2A "),fn.createElement(Ee.ZP,{className:!(xs!=null&&xs.last)&&mt.btnAdd,style:{display:"flex",alignItems:"center"},disabled:xs==null?void 0:xs.last,onClick:()=>ha("read")},"\u4E0B\u4E00\u4E2A ",fn.createElement("i",{className:"iconfont icon-youjiantou font12 ml5"})))))),fn.createElement(Tt,null),fn.createElement(Jt,{studentWorkDetail:cr}),fn.createElement(lt.Z,null),fn.createElement(Ye.default,{title:"\u786E\u8BA4\u6253\u56DE\u91CD\u505A",open:(hs==null?void 0:hs.key)=="\u786E\u8BA4\u6253\u56DE\u91CD\u505A",destroyOnClose:!0,forceRender:!0,width:700,onCancel:()=>{Gi("")},onOk:()=>Gs(void 0,null,function*(){if(!Ao){ye.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");return}const Ln=yield(0,Ue.ZP)(`/api/student_works/${ii.userId}/redo_modal.json`,{method:"post",body:{comment:Ao,id:ii.userId}});(Ln==null?void 0:Ln.status)===0&&(ye.ZP.info("\u6253\u56DE\u91CD\u505A\u6210\u529F"),Gi(""),Ri(),Va())})},fn.createElement("div",{style:{padding:"32px"}},fn.createElement("span",null,"\u786E\u8BA4\u5C06",cr==null?void 0:cr.author_name,"\u7684\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417"),fn.createElement("div",{style:{marginTop:"20px"}},fn.createElement("label",null,fn.createElement("span",{style:{marginRight:"5px",color:"red"}},"*"),"\u8BC4\u8BED\uFF1A"),fn.createElement(We.Z,{className:mt.MdEditor,onChange:Ln=>Ss(Ln),defaultValue:"",height:250})))),fn.createElement(tt.Z,{close:!0,data:Ai==null?void 0:Ai.content,type:Ai==null?void 0:Ai.type,hasMask:!0,monacoEditor:{value:oc.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:()=>vi({content:"",type:""})}),fn.createElement(Ye.default,{width:675,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:gc,confirmLoading:$e,centered:!0,onCancel:()=>ks(!1),onOk:()=>{xl=="\u9644\u4EF6"?Mt?ja(!1):Fa(!1):xl=="\u6279\u6CE8"&&(Mt?ja(!0):Fa(!0))}},fn.createElement(qe.default,{checked:pn,onChange:Ln=>{hn(Ln.target.checked)}},"\u540C\u65F6\u5BFC\u51FA\u5B66\u751F\u63D0\u4EA4\u8BB0\u5F55"),fn.createElement("div",{className:mt.export_type_modal_title},"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u9644\u4EF6\u7C7B\u578B"),fn.createElement("div",{className:mt.export_type_modal},fn.createElement("div",{className:mt.export_type_modal_con},fn.createElement("div",{className:`${mt.type_item} ${xl=="\u9644\u4EF6"?mt.type_item_active:""}`,onClick:()=>ju("\u9644\u4EF6")},fn.createElement("div",{className:`${mt.img_warp}`},fn.createElement("img",{src:ce.Z,width:72,height:80})),fn.createElement("span",null,"\u5B66\u751F\u63D0\u4EA4\u7684\u9644\u4EF6")),fn.createElement("div",{className:`${mt.type_item} ${xl=="\u6279\u6CE8"?mt.type_item_active:""}`,onClick:()=>ju("\u6279\u6CE8")},fn.createElement("div",{className:`${mt.img_warp}`},fn.createElement("img",{src:ue.Z,width:99,height:80})),fn.createElement("span",null,"\u5305\u542B\u6279\u6CE8\u5185\u5BB9\u7684\u9644\u4EF6"))),fn.createElement("div",{className:mt.export_type_modal_waring},"\u5982\u5B66\u751F\u672A\u4E0A\u4F20\u9644\u4EF6\uFF0C\u4EC5\u4F1A\u5BFC\u51FA\u8BE5\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u9898\u8BB0\u5F55"))),fn.createElement(Ye.default,{title:hs==null?void 0:hs.key,open:(hs==null?void 0:hs.key)=="\u4F5C\u4E1A\u63D0\u4EA4\u8BB0\u5F55",centered:!0,destroyOnClose:!0,width:969,footer:null,onCancel:()=>Gi("")},fn.createElement(Ie.default,{locale:{emptyText:fn.createElement(pe.Z,null)},columns:qi,dataSource:Pl==null?void 0:Pl.student_works,pagination:!1})),fn.createElement(Ye.default,{title:hs==null?void 0:hs.key,open:(hs==null?void 0:hs.key)=="\u95EE\u9898\u53CD\u9988",centered:!0,destroyOnClose:!0,width:700,onCancel:()=>{Gi(""),Ml.resetFields()},confirmLoading:ol,onOk:()=>{Ml.submit()}},fn.createElement(Ce.default,{form:Ml,onFinish:Ln=>Gs(void 0,null,function*(){const pr=yield Al({userId:ii==null?void 0:ii.userId,id:ii==null?void 0:ii.userId,student_work_feedback:po({},Ln)});(pr==null?void 0:pr.status)==0&&(ye.ZP.success("\u63D0\u4EA4\u6210\u529F"),Gi(""),Ml.resetFields(),Rl({}),Ri())})},fn.createElement("div",{className:"mb20 p20 pt10 pb10 c-grey-333",style:{background:"#F6F7F9"}}," \u5982\u679C\u4F5C\u54C1\u65E0\u6CD5\u533F\u8BC4\uFF0C\u8BF7\u63CF\u8FF0\u95EE\u9898\u5E76\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u8FDB\u884C\u53CD\u9988\u3002\u53CD\u9988\u540E\u7CFB\u7EDF\u5C06\u4E0D\u4F1A\u6263\u9664\u7F3A\u8BC4\u5206\u6570\u3002"),fn.createElement(Ce.default.Item,{className:"mb0",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},fn.createElement(Re.default.TextArea,{rows:6,placeholder:"\u4F8B\u5982\uFF1A\u4F5C\u54C1\u63D0\u4EA4\u7684\u9644\u4EF6\u4E0D\u6E05\u6670",maxLength:200})))),fn.createElement(Gn,{ModalProps:{open:(hs==null?void 0:hs.key)=="\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55",onCancel:()=>{Gi("")},onOk:()=>{Gi("")}}}),fn.createElement(it,{ModalProps:{open:(hs==null?void 0:hs.key)=="\u5F97\u5206\u8BE6\u60C5",onCancel:()=>{Gi("")},onOk:()=>{Gi("")}}}),fn.createElement(Ht,{ModalProps:{open:(hs==null?void 0:hs.key)=="\u4F5C\u4E1A\u63CF\u8FF0",footer:[fn.createElement(Ee.ZP,{type:"primary",onClick:()=>Gi("")},"\u786E\u5B9A")],onCancel:()=>{Gi("")}}}))};var yl=(0,ke.connect)(({shixunHomeworks:ln,loading:Ft,user:st,globalSetting:mr,classroomList:bi})=>({shixunHomeworks:ln,globalSetting:mr,user:st,loading:Ft.effects,classroomList:bi}))(lo)},28333:function(gn,Kt,ie){"use strict";ie.d(Kt,{$J:function(){return Ce},JZ:function(){return ye},bN:function(){return he},jP:function(){return Ee},rO:function(){return Ye}});var oe=ie(60343),ke=(xe,we,Te)=>new Promise((qe,Ie)=>{var Re=We=>{try{Ue(Te.next(We))}catch(ct){Ie(ct)}},lt=We=>{try{Ue(Te.throw(We))}catch(ct){Ie(ct)}},Ue=We=>We.done?qe(We.value):Promise.resolve(We.value).then(Re,lt);Ue((Te=Te.apply(xe,we)).next())});function Ce(xe){return(0,oe.U2)(`libraries/${xe}.json`)}function Ye(xe){return(0,oe.U2)("library_tags.json",xe)}function ye(xe){return ke(this,null,function*(){return(yield(0,oe.IV)(`attachments/${xe}.json`)).status===0})}function Ee(xe){return(0,oe.v_)("libraries.json",xe)}function he(xe,we){return(0,oe.gz)(`libraries/${xe}.json`,we)}},10907:function(gn,Kt,ie){"use strict";ie.d(Kt,{U:function(){return we}});var oe=ie(59301),ke=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,Ee=(Te,qe,Ie)=>qe in Te?ke(Te,qe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Te[qe]=Ie,he=(Te,qe)=>{for(var Ie in qe||(qe={}))Ye.call(qe,Ie)&&Ee(Te,Ie,qe[Ie]);if(Ce)for(var Ie of Ce(qe))ye.call(qe,Ie)&&Ee(Te,Ie,qe[Ie]);return Te},xe=(Te,qe,Ie)=>new Promise((Re,lt)=>{var Ue=tt=>{try{ct(Ie.next(tt))}catch(At){lt(At)}},We=tt=>{try{ct(Ie.throw(tt))}catch(At){lt(At)}},ct=tt=>tt.done?Re(tt.value):Promise.resolve(tt.value).then(Ue,We);ct((Ie=Ie.apply(Te,qe)).next())});function we(Te,qe){const[Ie,Re]=(0,oe.useState)(qe),[lt,Ue]=(0,oe.useState)(!1),[We,ct]=(0,oe.useState)();return[Ie,lt,(At,ut=!1)=>xe(this,null,function*(){const ot=ut?qe:he(he({},Ie),At);Ue(!0),Re(ot);const je=yield Te(ot);return Ue(!1),ct(je),je}),We]}},50371:function(gn,Kt){"use strict";function ie(){const oe=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ke=1;ke<arguments.length;ke++){const Ce=ke<0||arguments.length<=ke?void 0:arguments[ke];Ce&&Object.keys(Ce).forEach(Ye=>{const ye=Ce[Ye];ye!==void 0&&(oe[Ye]=ye)})}return oe}Kt.Z=ie},77578:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return oe}});const oe=ke=>ke?typeof ke=="function"?ke():ke:null},13845:function(gn,Kt,ie){"use strict";ie.d(Kt,{F:function(){return oe},Z:function(){return ke}});function oe(Ce){return Ce!=null&&Ce===Ce.window}function ke(Ce,Ye){var ye,Ee;if(typeof window=="undefined")return 0;const he=Ye?"scrollTop":"scrollLeft";let xe=0;return oe(Ce)?xe=Ce[Ye?"pageYOffset":"pageXOffset"]:Ce instanceof Document?xe=Ce.documentElement[he]:(Ce instanceof HTMLElement||Ce)&&(xe=Ce[he]),Ce&&!oe(Ce)&&typeof xe!="number"&&(xe=(Ee=((ye=Ce.ownerDocument)!==null&&ye!==void 0?ye:Ce).documentElement)===null||Ee===void 0?void 0:Ee[he]),xe}},56762:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return ke}});var oe=ie(59301);function ke(){const[,Ce]=oe.useReducer(Ye=>Ye+1,0);return Ce}},68031:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Ye}});var oe=ie(16089);function ke(ye,Ee,he,xe){const we=he-Ee;return ye/=xe/2,ye<1?we/2*ye*ye*ye+Ee:we/2*((ye-=2)*ye*ye+2)+Ee}var Ce=ie(13845);function Ye(ye){let Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:he=()=>window,callback:xe,duration:we=450}=Ee,Te=he(),qe=(0,Ce.Z)(Te,!0),Ie=Date.now(),Re=()=>{const Ue=Date.now()-Ie,We=ke(Ue>we?we:Ue,qe,ye,we);(0,Ce.F)(Te)?Te.scrollTo(window.pageXOffset,We):Te instanceof Document||Te.constructor.name==="HTMLDocument"?Te.documentElement.scrollTop=We:Te.scrollTop=We,Ue<we?(0,oe.Z)(Re):typeof xe=="function"&&xe()};(0,oe.Z)(Re)}},19080:function(gn,Kt,ie){"use strict";ie.d(Kt,{F:function(){return ye},Z:function(){return Ye}});var oe=ie(92310),ke=ie.n(oe);const Ce=null;function Ye(Ee,he,xe){return ke()({[`${Ee}-status-success`]:he==="success",[`${Ee}-status-warning`]:he==="warning",[`${Ee}-status-error`]:he==="error",[`${Ee}-status-validating`]:he==="validating",[`${Ee}-has-feedback`]:xe})}const ye=(Ee,he)=>he||Ee},24905:function(gn,Kt,ie){"use strict";ie.d(Kt,{default:function(){return Fe}});var oe=ie(92310),ke=ie.n(oe),Ce=ie(5630),Ye=ie(59301),ye=ie(36355),Ee=ie(1684),he=ie(32441),we=Ye.createContext(null),Te=ie(98447),qe=ie(14088),Ie=ie(4572),Re=function(Ze,xt){var Je={};for(var dt in Ze)Object.prototype.hasOwnProperty.call(Ze,dt)&&xt.indexOf(dt)<0&&(Je[dt]=Ze[dt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,dt=Object.getOwnPropertySymbols(Ze);Be<dt.length;Be++)xt.indexOf(dt[Be])<0&&Object.prototype.propertyIsEnumerable.call(Ze,dt[Be])&&(Je[dt[Be]]=Ze[dt[Be]]);return Je};const lt=(Ze,xt)=>{var Je;const{prefixCls:dt,className:Be,rootClassName:kt,children:He,indeterminate:Tt=!1,style:mt,onMouseEnter:Et,onMouseLeave:zt,skipGroup:Bt=!1,disabled:De}=Ze,ge=Re(Ze,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:at,direction:Ct,checkbox:It}=Ye.useContext(ye.E_),Qe=Ye.useContext(we),{isFormItemInput:et}=Ye.useContext(he.aM),Lt=Ye.useContext(Ee.Z),dn=(Je=(Qe==null?void 0:Qe.disabled)||De)!==null&&Je!==void 0?Je:Lt,_t=Ye.useRef(ge.value);Ye.useEffect(()=>{Qe==null||Qe.registerValue(ge.value)},[]),Ye.useEffect(()=>{if(!Bt)return ge.value!==_t.current&&(Qe==null||Qe.cancelValue(_t.current),Qe==null||Qe.registerValue(ge.value),_t.current=ge.value),()=>Qe==null?void 0:Qe.cancelValue(ge.value)},[ge.value]);const tn=at("checkbox",dt),[en,Jt]=(0,Te.ZP)(tn),Vt=Object.assign({},ge);Qe&&!Bt&&(Vt.onChange=function(){ge.onChange&&ge.onChange.apply(ge,arguments),Qe.toggleOption&&Qe.toggleOption({label:He,value:ge.value})},Vt.name=Qe.name,Vt.checked=Qe.value.includes(ge.value));const be=ke()(`${tn}-wrapper`,{[`${tn}-rtl`]:Ct==="rtl",[`${tn}-wrapper-checked`]:Vt.checked,[`${tn}-wrapper-disabled`]:dn,[`${tn}-wrapper-in-form-item`]:et},It==null?void 0:It.className,Be,kt,Jt),ce=ke()({[`${tn}-indeterminate`]:Tt},Ie.A,Jt),ue=Tt?"mixed":void 0;return en(Ye.createElement(qe.Z,{component:"Checkbox",disabled:dn},Ye.createElement("label",{className:be,style:Object.assign(Object.assign({},It==null?void 0:It.style),mt),onMouseEnter:Et,onMouseLeave:zt},Ye.createElement(Ce.Z,Object.assign({"aria-checked":ue},Vt,{prefixCls:tn,className:ce,disabled:dn,ref:xt})),He!==void 0&&Ye.createElement("span",null,He))))};var We=Ye.forwardRef(lt),ct=ie(94480),tt=ie(2738),At=function(Ze,xt){var Je={};for(var dt in Ze)Object.prototype.hasOwnProperty.call(Ze,dt)&&xt.indexOf(dt)<0&&(Je[dt]=Ze[dt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,dt=Object.getOwnPropertySymbols(Ze);Be<dt.length;Be++)xt.indexOf(dt[Be])<0&&Object.prototype.propertyIsEnumerable.call(Ze,dt[Be])&&(Je[dt[Be]]=Ze[dt[Be]]);return Je};const ut=(Ze,xt)=>{const{defaultValue:Je,children:dt,options:Be=[],prefixCls:kt,className:He,rootClassName:Tt,style:mt,onChange:Et}=Ze,zt=At(Ze,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Bt,direction:De}=Ye.useContext(ye.E_),[ge,at]=Ye.useState(zt.value||Je||[]),[Ct,It]=Ye.useState([]);Ye.useEffect(()=>{"value"in zt&&at(zt.value||[])},[zt.value]);const Qe=Ye.useMemo(()=>Be.map(de=>typeof de=="string"||typeof de=="number"?{label:de,value:de}:de),[Be]),et=de=>{It(pe=>pe.filter(se=>se!==de))},Lt=de=>{It(pe=>[].concat((0,ct.Z)(pe),[de]))},dn=de=>{const pe=ge.indexOf(de.value),se=(0,ct.Z)(ge);pe===-1?se.push(de.value):se.splice(pe,1),"value"in zt||at(se),Et==null||Et(se.filter(Le=>Ct.includes(Le)).sort((Le,ht)=>{const _e=Qe.findIndex(St=>St.value===Le),Ne=Qe.findIndex(St=>St.value===ht);return _e-Ne}))},_t=Bt("checkbox",kt),tn=`${_t}-group`,[en,Jt]=(0,Te.ZP)(_t),Vt=(0,tt.Z)(zt,["value","disabled"]),be=Be.length?Qe.map(de=>Ye.createElement(We,{prefixCls:_t,key:de.value.toString(),disabled:"disabled"in de?de.disabled:zt.disabled,value:de.value,checked:ge.includes(de.value),onChange:de.onChange,className:`${tn}-item`,style:de.style,title:de.title},de.label)):dt,ce={toggleOption:dn,value:ge,disabled:zt.disabled,name:zt.name,registerValue:Lt,cancelValue:et},ue=ke()(tn,{[`${tn}-rtl`]:De==="rtl"},He,Tt,Jt);return en(Ye.createElement("div",Object.assign({className:ue,style:mt},Vt,{ref:xt}),Ye.createElement(we.Provider,{value:ce},be)))},ot=Ye.forwardRef(ut);var je=Ye.memo(ot);const Se=We;Se.Group=je,Se.__ANT_CHECKBOX=!0;var Fe=Se},98447:function(gn,Kt,ie){"use strict";ie.d(Kt,{C2:function(){return ye}});var oe=ie(17313),ke=ie(37613),Ce=ie(83116);const Ye=Ee=>{const{checkboxCls:he}=Ee,xe=`${he}-wrapper`;return[{[`${he}-group`]:Object.assign(Object.assign({},(0,oe.Wf)(Ee)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ee.marginXS,[`> ${Ee.antCls}-row`]:{flex:1}}),[xe]:Object.assign(Object.assign({},(0,oe.Wf)(Ee)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${xe}`]:{marginInlineStart:0},[`&${xe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[he]:Object.assign(Object.assign({},(0,oe.Wf)(Ee)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ee.borderRadiusSM,alignSelf:"center",[`${he}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${he}-inner`]:Object.assign({},(0,oe.oN)(Ee))},[`${he}-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}})},{[`
|
|
|
${xe}:not(${xe}-disabled),
|
|
|
${he}:not(${he}-disabled)
|
|
|
`]:{[`&:hover ${he}-inner`]:{borderColor:Ee.colorPrimary}},[`${xe}:not(${xe}-disabled)`]:{[`&:hover ${he}-checked:not(${he}-disabled) ${he}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${he}-checked:not(${he}-disabled):after`]:{borderColor:Ee.colorPrimaryHover}}},{[`${he}-checked`]:{[`${he}-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}`}}},[`
|
|
|
${xe}-checked:not(${xe}-disabled),
|
|
|
${he}-checked:not(${he}-disabled)
|
|
|
`]:{[`&:hover ${he}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"}}},{[he]:{"&-indeterminate":{[`${he}-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:'""'}}}}},{[`${xe}-disabled`]:{cursor:"not-allowed"},[`${he}-disabled`]:{[`&, ${he}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${he}-inner`]:{background:Ee.colorBgContainerDisabled,borderColor:Ee.colorBorder,"&:after":{borderColor:Ee.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ee.colorTextDisabled},[`&${he}-indeterminate ${he}-inner::after`]:{background:Ee.colorTextDisabled}}}]};function ye(Ee,he){const xe=(0,ke.TS)(he,{checkboxCls:`.${Ee}`,checkboxSize:he.controlInteractiveSize});return[Ye(xe)]}Kt.ZP=(0,Ce.Z)("Checkbox",(Ee,he)=>{let{prefixCls:xe}=he;return[ye(xe,Ee)]})},93891:function(gn,Kt,ie){"use strict";var oe=ie(59301),ke=ie(36355),Ce=ie(64165);const Ye=ye=>{const{componentName:Ee}=ye,{getPrefixCls:he}=(0,oe.useContext)(ke.E_),xe=he("empty");switch(Ee){case"Table":case"List":return oe.createElement(Ce.Z,{image:Ce.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return oe.createElement(Ce.Z,{image:Ce.Z.PRESENTED_IMAGE_SIMPLE,className:`${xe}-small`});default:return oe.createElement(Ce.Z,null)}};Kt.Z=Ye},37906:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Bt}});var oe=ie(59301),ke=ie(92310),Ce=ie.n(ke),Ye=ie(69507),ye=ie(36355),Ee=ie(19716),he=ie(8628),we={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},qe=oe.createContext({}),Ie=ie(11592),Re=function(De,ge){var at={};for(var Ct in De)Object.prototype.hasOwnProperty.call(De,Ct)&&ge.indexOf(Ct)<0&&(at[Ct]=De[Ct]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Ct=Object.getOwnPropertySymbols(De);It<Ct.length;It++)ge.indexOf(Ct[It])<0&&Object.prototype.propertyIsEnumerable.call(De,Ct[It])&&(at[Ct[It]]=De[Ct[It]]);return at};const lt=De=>(0,Ie.Z)(De).map(ge=>Object.assign({},ge==null?void 0:ge.props));function Ue(De,ge,at){const Ct=oe.useMemo(()=>ge||lt(at),[ge,at]);return oe.useMemo(()=>Ct.map(Qe=>{var{span:et}=Qe,Lt=Re(Qe,["span"]);return Object.assign(Object.assign({},Lt),{span:typeof et=="number"?et:(0,Ye.m9)(De,et)})}),[Ct,De])}function We(De,ge,at){let Ct=De;return(at===void 0||at>ge)&&(Ct=Object.assign(Object.assign({},De),{span:ge})),Ct}function ct(De,ge){const at=[];let Ct=[],It=ge;return De.filter(Qe=>Qe).forEach((Qe,et)=>{const Lt=Qe==null?void 0:Qe.span,dn=Lt||1;if(et===De.length-1){Ct.push(We(Qe,It,Lt)),at.push(Ct);return}dn<It?(It-=dn,Ct.push(Qe)):(Ct.push(We(Qe,It,dn)),at.push(Ct),It=ge,Ct=[])}),at}var At=(De,ge)=>(0,oe.useMemo)(()=>ct(ge,De),[ge,De]),ot=De=>{let{children:ge}=De;return ge};function je(De){return De!=null}var Fe=De=>{const{itemPrefixCls:ge,component:at,span:Ct,className:It,style:Qe,labelStyle:et,contentStyle:Lt,bordered:dn,label:_t,content:tn,colon:en}=De,Jt=at;return dn?oe.createElement(Jt,{className:Ce()({[`${ge}-item-label`]:je(_t),[`${ge}-item-content`]:je(tn)},It),style:Qe,colSpan:Ct},je(_t)&&oe.createElement("span",{style:et},_t),je(tn)&&oe.createElement("span",{style:Lt},tn)):oe.createElement(Jt,{className:Ce()(`${ge}-item`,It),style:Qe,colSpan:Ct},oe.createElement("div",{className:`${ge}-item-container`},(_t||_t===0)&&oe.createElement("span",{className:Ce()(`${ge}-item-label`,{[`${ge}-item-no-colon`]:!en}),style:et},_t),(tn||tn===0)&&oe.createElement("span",{className:Ce()(`${ge}-item-content`),style:Lt},tn)))};function Ze(De,ge,at){let{colon:Ct,prefixCls:It,bordered:Qe}=ge,{component:et,type:Lt,showLabel:dn,showContent:_t,labelStyle:tn,contentStyle:en}=at;return De.map((Jt,Vt)=>{let{label:be,children:ce,prefixCls:ue=It,className:de,style:pe,labelStyle:se,contentStyle:Le,span:ht=1,key:_e}=Jt;return typeof et=="string"?oe.createElement(Fe,{key:`${Lt}-${_e||Vt}`,className:de,style:pe,labelStyle:Object.assign(Object.assign({},tn),se),contentStyle:Object.assign(Object.assign({},en),Le),span:ht,colon:Ct,component:et,itemPrefixCls:ue,bordered:Qe,label:dn?be:null,content:_t?ce:null}):[oe.createElement(Fe,{key:`label-${_e||Vt}`,className:de,style:Object.assign(Object.assign(Object.assign({},tn),pe),se),span:1,colon:Ct,component:et[0],itemPrefixCls:ue,bordered:Qe,label:be}),oe.createElement(Fe,{key:`content-${_e||Vt}`,className:de,style:Object.assign(Object.assign(Object.assign({},en),pe),Le),span:ht*2-1,component:et[1],itemPrefixCls:ue,bordered:Qe,content:ce})]})}var Je=De=>{const ge=oe.useContext(qe),{prefixCls:at,vertical:Ct,row:It,index:Qe,bordered:et}=De;return Ct?oe.createElement(oe.Fragment,null,oe.createElement("tr",{key:`label-${Qe}`,className:`${at}-row`},Ze(It,De,Object.assign({component:"th",type:"label",showLabel:!0},ge))),oe.createElement("tr",{key:`content-${Qe}`,className:`${at}-row`},Ze(It,De,Object.assign({component:"td",type:"content",showContent:!0},ge)))):oe.createElement("tr",{key:Qe,className:`${at}-row`},Ze(It,De,Object.assign({component:et?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},ge)))},dt=ie(17313),Be=ie(83116),kt=ie(37613);const He=De=>{const{componentCls:ge,labelBg:at}=De;return{[`&${ge}-bordered`]:{[`> ${ge}-view`]:{border:`${De.lineWidth}px ${De.lineType} ${De.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${ge}-row`]:{borderBottom:`${De.lineWidth}px ${De.lineType} ${De.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${ge}-item-label, > ${ge}-item-content`]:{padding:`${De.padding}px ${De.paddingLG}px`,borderInlineEnd:`${De.lineWidth}px ${De.lineType} ${De.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${ge}-item-label`]:{color:De.colorTextSecondary,backgroundColor:at,"&::after":{display:"none"}}}},[`&${ge}-middle`]:{[`${ge}-row`]:{[`> ${ge}-item-label, > ${ge}-item-content`]:{padding:`${De.paddingSM}px ${De.paddingLG}px`}}},[`&${ge}-small`]:{[`${ge}-row`]:{[`> ${ge}-item-label, > ${ge}-item-content`]:{padding:`${De.paddingXS}px ${De.padding}px`}}}}}},Tt=De=>{const{componentCls:ge,extraColor:at,itemPaddingBottom:Ct,colonMarginRight:It,colonMarginLeft:Qe,titleMarginBottom:et}=De;return{[ge]:Object.assign(Object.assign(Object.assign({},(0,dt.Wf)(De)),He(De)),{"&-rtl":{direction:"rtl"},[`${ge}-header`]:{display:"flex",alignItems:"center",marginBottom:et},[`${ge}-title`]:Object.assign(Object.assign({},dt.vS),{flex:"auto",color:De.colorText,fontWeight:De.fontWeightStrong,fontSize:De.fontSizeLG,lineHeight:De.lineHeightLG}),[`${ge}-extra`]:{marginInlineStart:"auto",color:at,fontSize:De.fontSize},[`${ge}-view`]:{width:"100%",borderRadius:De.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${ge}-row`]:{"> th, > td":{paddingBottom:Ct},"&:last-child":{borderBottom:"none"}},[`${ge}-item-label`]:{color:De.colorTextTertiary,fontWeight:"normal",fontSize:De.fontSize,lineHeight:De.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${Qe}px ${It}px`},[`&${ge}-item-no-colon::after`]:{content:'""'}},[`${ge}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${ge}-item-content`]:{display:"table-cell",flex:1,color:De.colorText,fontSize:De.fontSize,lineHeight:De.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${ge}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${ge}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${ge}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${ge}-row`]:{"> th, > td":{paddingBottom:De.paddingSM}}},"&-small":{[`${ge}-row`]:{"> th, > td":{paddingBottom:De.paddingXS}}}})}};var mt=(0,Be.Z)("Descriptions",De=>{const ge=(0,kt.TS)(De,{});return[Tt(ge)]},De=>({labelBg:De.colorFillAlter,titleMarginBottom:De.fontSizeSM*De.lineHeightSM,itemPaddingBottom:De.padding,colonMarginRight:De.marginXS,colonMarginLeft:De.marginXXS/2,extraColor:De.colorText})),Et=function(De,ge){var at={};for(var Ct in De)Object.prototype.hasOwnProperty.call(De,Ct)&&ge.indexOf(Ct)<0&&(at[Ct]=De[Ct]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Ct=Object.getOwnPropertySymbols(De);It<Ct.length;It++)ge.indexOf(Ct[It])<0&&Object.prototype.propertyIsEnumerable.call(De,Ct[It])&&(at[Ct[It]]=De[Ct[It]]);return at};const zt=De=>{const{prefixCls:ge,title:at,extra:Ct,column:It,colon:Qe=!0,bordered:et,layout:Lt,children:dn,className:_t,rootClassName:tn,style:en,size:Jt,labelStyle:Vt,contentStyle:be,items:ce}=De,ue=Et(De,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:de,direction:pe,descriptions:se}=oe.useContext(ye.E_),Le=de("descriptions",ge),ht=(0,he.Z)(),_e=oe.useMemo(()=>{var bt;return typeof It=="number"?It:(bt=(0,Ye.m9)(ht,Object.assign(Object.assign({},we),It)))!==null&&bt!==void 0?bt:3},[ht,It]),Ne=Ue(ht,ce,dn),St=(0,Ee.Z)(Jt),gt=At(_e,Ne),[Xe,wt]=mt(Le),Xt=oe.useMemo(()=>({labelStyle:Vt,contentStyle:be}),[Vt,be]);return Xe(oe.createElement(qe.Provider,{value:Xt},oe.createElement("div",Object.assign({className:Ce()(Le,se==null?void 0:se.className,{[`${Le}-${St}`]:St&&St!=="default",[`${Le}-bordered`]:!!et,[`${Le}-rtl`]:pe==="rtl"},_t,tn,wt),style:Object.assign(Object.assign({},se==null?void 0:se.style),en)},ue),(at||Ct)&&oe.createElement("div",{className:`${Le}-header`},at&&oe.createElement("div",{className:`${Le}-title`},at),Ct&&oe.createElement("div",{className:`${Le}-extra`},Ct)),oe.createElement("div",{className:`${Le}-view`},oe.createElement("table",null,oe.createElement("tbody",null,gt.map((bt,$t)=>oe.createElement(Je,{key:$t,index:$t,colon:Qe,prefixCls:Le,vertical:Lt==="vertical",bordered:et,row:bt}))))))))};zt.Item=ot;var Bt=zt},43428:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return en}});var oe=ie(92310),ke=ie.n(oe),Ce=ie(33885),Ye=ie(42978),ye=ie(43403),Ee=ie(34280),he=ie(59301),xe=he.createContext(null),we=he.createContext({}),Te=xe,qe=ie(20068),Ie=ie(54476),Re=ie(77900),lt=ie(10228),Ue=ie(26112),We=ie(70425),ct=function(Vt){var be=Vt.prefixCls,ce=Vt.className,ue=Vt.style,de=Vt.children,pe=Vt.containerRef,se=Vt.id,Le=Vt.onMouseEnter,ht=Vt.onMouseOver,_e=Vt.onMouseLeave,Ne=Vt.onClick,St=Vt.onKeyDown,gt=Vt.onKeyUp,Xe={onMouseEnter:Le,onMouseOver:ht,onMouseLeave:_e,onClick:Ne,onKeyDown:St,onKeyUp:gt},wt=he.useContext(we),Xt=wt.panel,bt=(0,We.useComposeRef)(Xt,pe);return he.createElement(he.Fragment,null,he.createElement("div",(0,Ie.Z)({id:se,className:ke()("".concat(be,"-content"),ce),style:(0,Ce.Z)({},ue),"aria-modal":"true",role:"dialog",ref:bt},Xe),de))},tt=ct,At=ie(48736);function ut(Jt){return typeof Jt=="string"&&String(Number(Jt))===Jt?((0,At.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Jt)):Jt}function ot(Jt){warning(!("wrapperClassName"in Jt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Jt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var je={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Se(Jt,Vt){var be,ce,ue,de,pe=Jt.prefixCls,se=Jt.open,Le=Jt.placement,ht=Jt.inline,_e=Jt.push,Ne=Jt.forceRender,St=Jt.autoFocus,gt=Jt.keyboard,Xe=Jt.rootClassName,wt=Jt.rootStyle,Xt=Jt.zIndex,bt=Jt.className,$t=Jt.id,on=Jt.style,vt=Jt.motion,Oe=Jt.width,yt=Jt.height,jt=Jt.children,Zt=Jt.contentWrapperStyle,nn=Jt.mask,Cn=Jt.maskClosable,In=Jt.maskMotion,Dn=Jt.maskClassName,Kn=Jt.maskStyle,Vn=Jt.afterOpenChange,_n=Jt.onClose,or=Jt.onMouseEnter,wr=Jt.onMouseOver,Tr=Jt.onMouseLeave,Yn=Jt.onClick,hr=Jt.onKeyDown,kr=Jt.onKeyUp,Qn=he.useRef(),Fr=he.useRef(),ci=he.useRef();he.useImperativeHandle(Vt,function(){return Qn.current});var Cr=function(qt){var mn=qt.keyCode,An=qt.shiftKey;switch(mn){case lt.Z.TAB:{if(mn===lt.Z.TAB){if(!An&&document.activeElement===ci.current){var Tn;(Tn=Fr.current)===null||Tn===void 0||Tn.focus({preventScroll:!0})}else if(An&&document.activeElement===Fr.current){var Pn;(Pn=ci.current)===null||Pn===void 0||Pn.focus({preventScroll:!0})}}break}case lt.Z.ESC:{_n&>&&(qt.stopPropagation(),_n(qt));break}}};he.useEffect(function(){if(se&&St){var sn;(sn=Qn.current)===null||sn===void 0||sn.focus({preventScroll:!0})}},[se]);var pi=he.useState(!1),ai=(0,Ye.Z)(pi,2),nr=ai[0],yr=ai[1],Hn=he.useContext(Te),Gn;_e===!1?Gn={distance:0}:_e===!0?Gn={}:Gn=_e||{};var Or=(be=(ce=(ue=Gn)===null||ue===void 0?void 0:ue.distance)!==null&&ce!==void 0?ce:Hn==null?void 0:Hn.pushDistance)!==null&&be!==void 0?be:180,Rt=he.useMemo(function(){return{pushDistance:Or,push:function(){yr(!0)},pull:function(){yr(!1)}}},[Or]);he.useEffect(function(){if(se){var sn;Hn==null||(sn=Hn.push)===null||sn===void 0||sn.call(Hn)}else{var qt;Hn==null||(qt=Hn.pull)===null||qt===void 0||qt.call(Hn)}},[se]),he.useEffect(function(){return function(){var sn;Hn==null||(sn=Hn.pull)===null||sn===void 0||sn.call(Hn)}},[]);var Ke=nn&&he.createElement(Re.default,(0,Ie.Z)({key:"mask"},In,{visible:se}),function(sn,qt){var mn=sn.className,An=sn.style;return he.createElement("div",{className:ke()("".concat(pe,"-mask"),mn,Dn),style:(0,Ce.Z)((0,Ce.Z)({},An),Kn),onClick:Cn&&se?_n:void 0,ref:qt})}),nt=typeof vt=="function"?vt(Le):vt,rt={};if(nr&&Or)switch(Le){case"top":rt.transform="translateY(".concat(Or,"px)");break;case"bottom":rt.transform="translateY(".concat(-Or,"px)");break;case"left":rt.transform="translateX(".concat(Or,"px)");break;default:rt.transform="translateX(".concat(-Or,"px)");break}Le==="left"||Le==="right"?rt.width=ut(Oe):rt.height=ut(yt);var it={onMouseEnter:or,onMouseOver:wr,onMouseLeave:Tr,onClick:Yn,onKeyDown:hr,onKeyUp:kr},Dt=he.createElement(Re.default,(0,Ie.Z)({key:"panel"},nt,{visible:se,forceRender:Ne,onVisibleChanged:function(qt){Vn==null||Vn(qt)},removeOnLeave:!1,leavedClassName:"".concat(pe,"-content-wrapper-hidden")}),function(sn,qt){var mn=sn.className,An=sn.style;return he.createElement("div",(0,Ie.Z)({className:ke()("".concat(pe,"-content-wrapper"),mn),style:(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},rt),An),Zt)},(0,Ue.Z)(Jt,{data:!0})),he.createElement(tt,(0,Ie.Z)({id:$t,containerRef:qt,prefixCls:pe,className:bt,style:on},it),jt))}),Ht=(0,Ce.Z)({},wt);return Xt&&(Ht.zIndex=Xt),he.createElement(Te.Provider,{value:Rt},he.createElement("div",{className:ke()(pe,"".concat(pe,"-").concat(Le),Xe,(de={},(0,qe.Z)(de,"".concat(pe,"-open"),se),(0,qe.Z)(de,"".concat(pe,"-inline"),ht),de)),style:Ht,tabIndex:-1,ref:Qn,onKeyDown:Cr},Ke,he.createElement("div",{tabIndex:0,ref:Fr,style:je,"aria-hidden":"true","data-sentinel":"start"}),Dt,he.createElement("div",{tabIndex:0,ref:ci,style:je,"aria-hidden":"true","data-sentinel":"end"})))}var Fe=he.forwardRef(Se),Ze=Fe,xt=function(Vt){var be=Vt.open,ce=be===void 0?!1:be,ue=Vt.prefixCls,de=ue===void 0?"rc-drawer":ue,pe=Vt.placement,se=pe===void 0?"right":pe,Le=Vt.autoFocus,ht=Le===void 0?!0:Le,_e=Vt.keyboard,Ne=_e===void 0?!0:_e,St=Vt.width,gt=St===void 0?378:St,Xe=Vt.mask,wt=Xe===void 0?!0:Xe,Xt=Vt.maskClosable,bt=Xt===void 0?!0:Xt,$t=Vt.getContainer,on=Vt.forceRender,vt=Vt.afterOpenChange,Oe=Vt.destroyOnClose,yt=Vt.onMouseEnter,jt=Vt.onMouseOver,Zt=Vt.onMouseLeave,nn=Vt.onClick,Cn=Vt.onKeyDown,In=Vt.onKeyUp,Dn=Vt.panelRef,Kn=he.useState(!1),Vn=(0,Ye.Z)(Kn,2),_n=Vn[0],or=Vn[1],wr=he.useState(!1),Tr=(0,Ye.Z)(wr,2),Yn=Tr[0],hr=Tr[1];(0,Ee.Z)(function(){hr(!0)},[]);var kr=Yn?ce:!1,Qn=he.useRef(),Fr=he.useRef();(0,Ee.Z)(function(){kr&&(Fr.current=document.activeElement)},[kr]);var ci=function(yr){var Hn;if(or(yr),vt==null||vt(yr),!yr&&Fr.current&&!((Hn=Qn.current)!==null&&Hn!==void 0&&Hn.contains(Fr.current))){var Gn;(Gn=Fr.current)===null||Gn===void 0||Gn.focus({preventScroll:!0})}},Cr=he.useMemo(function(){return{panel:Dn}},[Dn]);if(!on&&!_n&&!kr&&Oe)return null;var pi={onMouseEnter:yt,onMouseOver:jt,onMouseLeave:Zt,onClick:nn,onKeyDown:Cn,onKeyUp:In},ai=(0,Ce.Z)((0,Ce.Z)({},Vt),{},{open:kr,prefixCls:de,placement:se,autoFocus:ht,keyboard:Ne,width:gt,mask:wt,maskClosable:bt,inline:$t===!1,afterOpenChange:ci,ref:Qn},pi);return he.createElement(we.Provider,{value:Cr},he.createElement(ye.Z,{open:kr||on||_n,autoDestroy:!1,getContainer:$t,autoLock:wt&&(kr||_n)},he.createElement(Ze,ai)))},Je=xt,dt=Je,Be=ie(62892),kt=ie(36355),He=ie(32441),Tt=ie(47729),Et=Jt=>{const{prefixCls:Vt,title:be,footer:ce,extra:ue,closeIcon:de,closable:pe,onClose:se,headerStyle:Le,drawerStyle:ht,bodyStyle:_e,footerStyle:Ne,children:St}=Jt,gt=he.useCallback($t=>he.createElement("button",{type:"button",onClick:se,"aria-label":"Close",className:`${Vt}-close`},$t),[se]),[Xe,wt]=(0,Tt.Z)(pe,de,gt,void 0,!0),Xt=he.useMemo(()=>!be&&!Xe?null:he.createElement("div",{style:Le,className:ke()(`${Vt}-header`,{[`${Vt}-header-close-only`]:Xe&&!be&&!ue})},he.createElement("div",{className:`${Vt}-header-title`},wt,be&&he.createElement("div",{className:`${Vt}-title`},be)),ue&&he.createElement("div",{className:`${Vt}-extra`},ue)),[Xe,wt,ue,Le,Vt,be]),bt=he.useMemo(()=>{if(!ce)return null;const $t=`${Vt}-footer`;return he.createElement("div",{className:$t,style:Ne},ce)},[ce,Ne,Vt]);return he.createElement("div",{className:`${Vt}-wrapper-body`,style:ht},Xt,he.createElement("div",{className:`${Vt}-body`,style:_e},St),bt)},zt=ie(33234),Bt=ie(83116),De=ie(37613),at=Jt=>{const{componentCls:Vt,motionDurationSlow:be}=Jt,ce={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${be}`}}};return{[Vt]:{[`${Vt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${be}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Vt}-panel-motion`]:{"&-left":[ce,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[ce,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[ce,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[ce,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Ct=Jt=>{const{componentCls:Vt,zIndexPopup:be,colorBgMask:ce,colorBgElevated:ue,motionDurationSlow:de,motionDurationMid:pe,padding:se,paddingLG:Le,fontSizeLG:ht,lineHeightLG:_e,lineWidth:Ne,lineType:St,colorSplit:gt,marginSM:Xe,colorIcon:wt,colorIconHover:Xt,colorText:bt,fontWeightStrong:$t,footerPaddingBlock:on,footerPaddingInline:vt}=Jt,Oe=`${Vt}-content-wrapper`;return{[Vt]:{position:"fixed",inset:0,zIndex:be,pointerEvents:"none","&-pure":{position:"relative",background:ue,[`&${Vt}-left`]:{boxShadow:Jt.boxShadowDrawerLeft},[`&${Vt}-right`]:{boxShadow:Jt.boxShadowDrawerRight},[`&${Vt}-top`]:{boxShadow:Jt.boxShadowDrawerUp},[`&${Vt}-bottom`]:{boxShadow:Jt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Vt}-mask`]:{position:"absolute",inset:0,zIndex:be,background:ce,pointerEvents:"auto"},[Oe]:{position:"absolute",zIndex:be,maxWidth:"100vw",transition:`all ${de}`,"&-hidden":{display:"none"}},[`&-left > ${Oe}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Jt.boxShadowDrawerLeft},[`&-right > ${Oe}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Jt.boxShadowDrawerRight},[`&-top > ${Oe}`]:{top:0,insetInline:0,boxShadow:Jt.boxShadowDrawerUp},[`&-bottom > ${Oe}`]:{bottom:0,insetInline:0,boxShadow:Jt.boxShadowDrawerDown},[`${Vt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:ue,pointerEvents:"auto"},[`${Vt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Vt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${se}px ${Le}px`,fontSize:ht,lineHeight:_e,borderBottom:`${Ne}px ${St} ${gt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Vt}-extra`]:{flex:"none"},[`${Vt}-close`]:{display:"inline-block",marginInlineEnd:Xe,color:wt,fontWeight:$t,fontSize:ht,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${pe}`,textRendering:"auto","&:focus, &:hover":{color:Xt,textDecoration:"none"}},[`${Vt}-title`]:{flex:1,margin:0,color:bt,fontWeight:Jt.fontWeightStrong,fontSize:ht,lineHeight:_e},[`${Vt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Le,overflow:"auto"},[`${Vt}-footer`]:{flexShrink:0,padding:`${on}px ${vt}px`,borderTop:`${Ne}px ${St} ${gt}`},"&-rtl":{direction:"rtl"}}}};var It=(0,Bt.Z)("Drawer",Jt=>{const Vt=(0,De.TS)(Jt,{});return[Ct(Vt),at(Vt)]},Jt=>({zIndexPopup:Jt.zIndexPopupBase,footerPaddingBlock:Jt.paddingXS,footerPaddingInline:Jt.padding})),Qe=ie(11575),et=function(Jt,Vt){var be={};for(var ce in Jt)Object.prototype.hasOwnProperty.call(Jt,ce)&&Vt.indexOf(ce)<0&&(be[ce]=Jt[ce]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,ce=Object.getOwnPropertySymbols(Jt);ue<ce.length;ue++)Vt.indexOf(ce[ue])<0&&Object.prototype.propertyIsEnumerable.call(Jt,ce[ue])&&(be[ce[ue]]=Jt[ce[ue]]);return be};const Lt=null,dn={distance:180},_t=Jt=>{var Vt;const{rootClassName:be,width:ce,height:ue,size:de="default",mask:pe=!0,push:se=dn,open:Le,afterOpenChange:ht,onClose:_e,prefixCls:Ne,getContainer:St,style:gt,className:Xe,visible:wt,afterVisibleChange:Xt}=Jt,bt=et(Jt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:$t,getPrefixCls:on,direction:vt,drawer:Oe}=he.useContext(kt.E_),yt=on("drawer",Ne),[jt,Zt]=It(yt),nn=St===void 0&&$t?()=>$t(document.body):St,Cn=ke()({"no-mask":!pe,[`${yt}-rtl`]:vt==="rtl"},be,Zt),In=he.useMemo(()=>ce!=null?ce:de==="large"?736:378,[ce,de]),Dn=he.useMemo(()=>ue!=null?ue:de==="large"?736:378,[ue,de]),Kn={motionName:(0,Be.m)(yt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Vn=or=>({motionName:(0,Be.m)(yt,`panel-motion-${or}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),_n=(0,Qe.H)();return jt(he.createElement(zt.BR,null,he.createElement(He.Ux,{status:!0,override:!0},he.createElement(dt,Object.assign({prefixCls:yt,onClose:_e,maskMotion:Kn,motion:Vn},bt,{open:Le!=null?Le:wt,mask:pe,push:se,width:In,height:Dn,style:Object.assign(Object.assign({},Oe==null?void 0:Oe.style),gt),className:ke()(Oe==null?void 0:Oe.className,Xe),rootClassName:Cn,getContainer:nn,afterOpenChange:ht!=null?ht:Xt,panelRef:_n}),he.createElement(Et,Object.assign({prefixCls:yt},bt,{onClose:_e}))))))},tn=Jt=>{const{prefixCls:Vt,style:be,className:ce,placement:ue="right"}=Jt,de=et(Jt,["prefixCls","style","className","placement"]),{getPrefixCls:pe}=he.useContext(kt.E_),se=pe("drawer",Vt),[Le,ht]=It(se),_e=ke()(se,`${se}-pure`,`${se}-${ue}`,ht,ce);return Le(he.createElement("div",{className:_e,style:be},he.createElement(Et,Object.assign({prefixCls:se},de))))};_t._InternalPanelDoNotUseOrYouWillBeFired=tn;var en=_t},91857:function(gn,Kt,ie){"use strict";var oe=ie(59301),ke=ie(38819),Ce=ie(92310),Ye=ie.n(Ce),ye=ie(31561),Ee=ie(70425),he=ie(18929),xe=ie(2738),we=ie(79676),Te=ie(53487),qe=ie(92343),Ie=ie(36355),Re=ie(20834),lt=ie(40875),Ue=ie(88088),We=ie(47211);const ct=null,tt=je=>{const{menu:Se,arrow:Fe,prefixCls:Ze,children:xt,trigger:Je,disabled:dt,dropdownRender:Be,getPopupContainer:kt,overlayClassName:He,rootClassName:Tt,open:mt,onOpenChange:Et,visible:zt,onVisibleChange:Bt,mouseEnterDelay:De=.15,mouseLeaveDelay:ge=.1,autoAdjustOverflow:at=!0,placement:Ct="",overlay:It,transitionName:Qe}=je,{getPopupContainer:et,getPrefixCls:Lt,direction:dn}=oe.useContext(Ie.E_),_t=oe.useMemo(()=>{const Xe=Lt();return Qe!==void 0?Qe:Ct.includes("top")?`${Xe}-slide-down`:`${Xe}-slide-up`},[Lt,Ct,Qe]),tn=oe.useMemo(()=>Ct?Ct.includes("Center")?Ct.slice(0,Ct.indexOf("Center")):Ct:dn==="rtl"?"bottomRight":"bottomLeft",[Ct,dn]),en=Lt("dropdown",Ze),[Jt,Vt]=(0,We.Z)(en),[,be]=(0,Ue.Z)(),ce=oe.Children.only(xt),ue=(0,qe.Tm)(ce,{className:Ye()(`${en}-trigger`,{[`${en}-rtl`]:dn==="rtl"},ce.props.className),disabled:dt}),de=dt?[]:Je;let pe;de&&de.includes("contextMenu")&&(pe=!0);const[se,Le]=(0,he.Z)(!1,{value:mt!=null?mt:zt}),ht=(0,Ee.useEvent)(Xe=>{Et==null||Et(Xe),Bt==null||Bt(Xe),Le(Xe)}),_e=Ye()(He,Tt,Vt,{[`${en}-rtl`]:dn==="rtl"}),Ne=(0,we.Z)({arrowPointAtCenter:typeof Fe=="object"&&Fe.pointAtCenter,autoAdjustOverflow:at,offset:be.marginXXS,arrowWidth:Fe?be.sizePopupArrow:0,borderRadius:be.borderRadius}),St=oe.useCallback(()=>{Le(!1)},[]),gt=()=>{let Xe;return Se!=null&&Se.items?Xe=oe.createElement(Re.default,Object.assign({},Se)):typeof It=="function"?Xe=It():Xe=It,Be&&(Xe=Be(Xe)),Xe=oe.Children.only(typeof Xe=="string"?oe.createElement("span",null,Xe):Xe),oe.createElement(lt.J,{prefixCls:`${en}-menu`,expandIcon:oe.createElement("span",{className:`${en}-menu-submenu-arrow`},oe.createElement(ke.Z,{className:`${en}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:St,validator:wt=>{let{mode:Xt}=wt}},Xe)};return Jt(oe.createElement(ye.Z,Object.assign({alignPoint:pe},(0,xe.Z)(je,["rootClassName"]),{mouseEnterDelay:De,mouseLeaveDelay:ge,visible:se,builtinPlacements:Ne,arrow:!!Fe,overlayClassName:_e,prefixCls:en,getPopupContainer:kt||et,transitionName:_t,trigger:de,overlay:gt,placement:tn,onVisibleChange:ht}),ue))};function At(je){return Object.assign(Object.assign({},je),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ut=(0,Te.Z)(tt,"dropdown",je=>je,At),ot=je=>oe.createElement(ut,Object.assign({},je),oe.createElement("span",null));tt._InternalPanelDoNotUseOrYouWillBeFired=ot,Kt.Z=tt},38854:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Ue}});var oe=ie(91857),ke=ie(92310),Ce=ie.n(ke),Ye=ie(59301),ye=ie(18785),Ee=ie(3113),he=ie(36355),xe=ie(81327),we=ie(33234),Te=ie(47211),qe=function(We,ct){var tt={};for(var At in We)Object.prototype.hasOwnProperty.call(We,At)&&ct.indexOf(At)<0&&(tt[At]=We[At]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,At=Object.getOwnPropertySymbols(We);ut<At.length;ut++)ct.indexOf(At[ut])<0&&Object.prototype.propertyIsEnumerable.call(We,At[ut])&&(tt[At[ut]]=We[At[ut]]);return tt};const Ie=We=>{const{getPopupContainer:ct,getPrefixCls:tt,direction:At}=Ye.useContext(he.E_),{prefixCls:ut,type:ot="default",danger:je,disabled:Se,loading:Fe,onClick:Ze,htmlType:xt,children:Je,className:dt,menu:Be,arrow:kt,autoFocus:He,overlay:Tt,trigger:mt,align:Et,open:zt,onOpenChange:Bt,placement:De,getPopupContainer:ge,href:at,icon:Ct=Ye.createElement(ye.Z,null),title:It,buttonsRender:Qe=gt=>gt,mouseEnterDelay:et,mouseLeaveDelay:Lt,overlayClassName:dn,overlayStyle:_t,destroyPopupOnHide:tn,dropdownRender:en}=We,Jt=qe(We,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Vt=tt("dropdown",ut),be=`${Vt}-button`,[ce,ue]=(0,Te.Z)(Vt),de={menu:Be,arrow:kt,autoFocus:He,align:Et,disabled:Se,trigger:Se?[]:mt,onOpenChange:Bt,getPopupContainer:ge||ct,mouseEnterDelay:et,mouseLeaveDelay:Lt,overlayClassName:dn,overlayStyle:_t,destroyPopupOnHide:tn,dropdownRender:en},{compactSize:pe,compactItemClassnames:se}=(0,we.ri)(Vt,At),Le=Ce()(be,se,dt,ue);"overlay"in We&&(de.overlay=Tt),"open"in We&&(de.open=zt),"placement"in We?de.placement=De:de.placement=At==="rtl"?"bottomLeft":"bottomRight";const ht=Ye.createElement(Ee.ZP,{type:ot,danger:je,disabled:Se,loading:Fe,onClick:Ze,htmlType:xt,href:at,title:It},Je),_e=Ye.createElement(Ee.ZP,{type:ot,danger:je,icon:Ct}),[Ne,St]=Qe([ht,_e]);return ce(Ye.createElement(xe.Z.Compact,Object.assign({className:Le,size:pe,block:!0},Jt),Ne,Ye.createElement(oe.Z,Object.assign({},de),St)))};Ie.__ANT_BUTTON=!0;var Re=Ie;const lt=oe.Z;lt.Button=Re;var Ue=lt},47211:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return qe}});var oe=ie(17313),ke=ie(13826),Ce=ie(92899),Ye=ie(29878),ye=ie(19447),Ee=ie(83116),he=ie(37613),we=Ie=>{const{componentCls:Re,menuCls:lt,colorError:Ue,colorTextLightSolid:We}=Ie,ct=`${lt}-item`;return{[`${Re}, ${Re}-menu-submenu`]:{[`${lt} ${ct}`]:{[`&${ct}-danger:not(${ct}-disabled)`]:{color:Ue,"&:hover":{color:We,backgroundColor:Ue}}}}}};const Te=Ie=>{const{componentCls:Re,menuCls:lt,zIndexPopup:Ue,dropdownArrowDistance:We,sizePopupArrow:ct,antCls:tt,iconCls:At,motionDurationMid:ut,dropdownPaddingVertical:ot,fontSize:je,dropdownEdgeChildPadding:Se,colorTextDisabled:Fe,fontSizeIcon:Ze,controlPaddingHorizontal:xt,colorBgElevated:Je}=Ie;return[{[Re]:Object.assign(Object.assign({},(0,oe.Wf)(Ie)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ue,display:"block","&::before":{position:"absolute",insetBlock:-We+ct/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${tt}-btn`]:{[`& > ${At}-down, & > ${tt}-btn-icon > ${At}-down`]:{fontSize:Ze}},[`${Re}-wrap`]:{position:"relative",[`${tt}-btn > ${At}-down`]:{fontSize:Ze},[`${At}-down::before`]:{transition:`transform ${ut}`}},[`${Re}-wrap-open`]:{[`${At}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${tt}-slide-down-enter${tt}-slide-down-enter-active${Re}-placement-bottomLeft,
|
|
|
&${tt}-slide-down-appear${tt}-slide-down-appear-active${Re}-placement-bottomLeft,
|
|
|
&${tt}-slide-down-enter${tt}-slide-down-enter-active${Re}-placement-bottom,
|
|
|
&${tt}-slide-down-appear${tt}-slide-down-appear-active${Re}-placement-bottom,
|
|
|
&${tt}-slide-down-enter${tt}-slide-down-enter-active${Re}-placement-bottomRight,
|
|
|
&${tt}-slide-down-appear${tt}-slide-down-appear-active${Re}-placement-bottomRight`]:{animationName:ke.fJ},[`&${tt}-slide-up-enter${tt}-slide-up-enter-active${Re}-placement-topLeft,
|
|
|
&${tt}-slide-up-appear${tt}-slide-up-appear-active${Re}-placement-topLeft,
|
|
|
&${tt}-slide-up-enter${tt}-slide-up-enter-active${Re}-placement-top,
|
|
|
&${tt}-slide-up-appear${tt}-slide-up-appear-active${Re}-placement-top,
|
|
|
&${tt}-slide-up-enter${tt}-slide-up-enter-active${Re}-placement-topRight,
|
|
|
&${tt}-slide-up-appear${tt}-slide-up-appear-active${Re}-placement-topRight`]:{animationName:ke.Qt},[`&${tt}-slide-down-leave${tt}-slide-down-leave-active${Re}-placement-bottomLeft,
|
|
|
&${tt}-slide-down-leave${tt}-slide-down-leave-active${Re}-placement-bottom,
|
|
|
&${tt}-slide-down-leave${tt}-slide-down-leave-active${Re}-placement-bottomRight`]:{animationName:ke.Uw},[`&${tt}-slide-up-leave${tt}-slide-up-leave-active${Re}-placement-topLeft,
|
|
|
&${tt}-slide-up-leave${tt}-slide-up-leave-active${Re}-placement-top,
|
|
|
&${tt}-slide-up-leave${tt}-slide-up-leave-active${Re}-placement-topRight`]:{animationName:ke.ly}})},(0,ye.ZP)(Ie,{colorBg:Je,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Re} ${lt}`]:{position:"relative",margin:0},[`${lt}-submenu-popup`]:{position:"absolute",zIndex:Ue,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Re}, ${Re}-menu-submenu`]:{[lt]:Object.assign(Object.assign({padding:Se,listStyleType:"none",backgroundColor:Je,backgroundClip:"padding-box",borderRadius:Ie.borderRadiusLG,outline:"none",boxShadow:Ie.boxShadowSecondary},(0,oe.Qy)(Ie)),{[`${lt}-item-group-title`]:{padding:`${ot}px ${xt}px`,color:Ie.colorTextDescription,transition:`all ${ut}`},[`${lt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${lt}-item-icon`]:{minWidth:je,marginInlineEnd:Ie.marginXS,fontSize:Ie.fontSizeSM},[`${lt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ut}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${lt}-item, ${lt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ot}px ${xt}px`,color:Ie.colorText,fontWeight:"normal",fontSize:je,lineHeight:Ie.lineHeight,cursor:"pointer",transition:`all ${ut}`,borderRadius:Ie.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ie.controlItemBgHover}},(0,oe.Qy)(Ie)),{"&-selected":{color:Ie.colorPrimary,backgroundColor:Ie.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ie.controlItemBgActiveHover}},"&-disabled":{color:Fe,cursor:"not-allowed","&:hover":{color:Fe,backgroundColor:Je,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ie.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ie.colorSplit},[`${Re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ie.paddingXS,[`${Re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ie.colorTextDescription,fontSize:Ze,fontStyle:"normal"}}}),[`${lt}-item-group-list`]:{margin:`0 ${Ie.marginXS}px`,padding:0,listStyle:"none"},[`${lt}-submenu-title`]:{paddingInlineEnd:xt+Ie.fontSizeSM},[`${lt}-submenu-vertical`]:{position:"relative"},[`${lt}-submenu${lt}-submenu-disabled ${Re}-menu-submenu-title`]:{[`&, ${Re}-menu-submenu-arrow-icon`]:{color:Fe,backgroundColor:Je,cursor:"not-allowed"}},[`${lt}-submenu-selected ${Re}-menu-submenu-title`]:{color:Ie.colorPrimary}})}},[(0,ke.oN)(Ie,"slide-up"),(0,ke.oN)(Ie,"slide-down"),(0,Ce.Fm)(Ie,"move-up"),(0,Ce.Fm)(Ie,"move-down"),(0,Ye._y)(Ie,"zoom-big")]]};var qe=(0,Ee.Z)("Dropdown",(Ie,Re)=>{let{rootPrefixCls:lt}=Re;const{marginXXS:Ue,sizePopupArrow:We,controlHeight:ct,fontSize:tt,lineHeight:At,paddingXXS:ut,componentCls:ot,borderRadiusLG:je}=Ie,Se=(ct-tt*At)/2,{dropdownArrowOffset:Fe}=(0,ye.fS)({contentRadius:je}),Ze=(0,he.TS)(Ie,{menuCls:`${ot}-menu`,rootPrefixCls:lt,dropdownArrowDistance:We/2+Ue,dropdownArrowOffset:Fe,dropdownPaddingVertical:Se,dropdownEdgeChildPadding:ut});return[Te(Ze),we(Ze)]},Ie=>({zIndexPopup:Ie.zIndexPopupBase+50}))},64165:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return ut}});var oe=ie(92310),ke=ie.n(oe),Ce=ie(59301),Ye=ie(36355),ye=ie(9763),Ee=ie(64993),he=ie(88088),we=()=>{const[,ot]=(0,he.Z)(),Se=new Ee.C(ot.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Ce.createElement("svg",{style:Se,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Ce.createElement("g",{fill:"none",fillRule:"evenodd"},Ce.createElement("g",{transform:"translate(24 31.67)"},Ce.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Ce.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"}),Ce.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)"}),Ce.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"}),Ce.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"})),Ce.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"}),Ce.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Ce.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Ce.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},qe=()=>{const[,ot]=(0,he.Z)(),{colorFill:je,colorFillTertiary:Se,colorFillQuaternary:Fe,colorBgContainer:Ze}=ot,{borderColor:xt,shadowColor:Je,contentColor:dt}=(0,Ce.useMemo)(()=>({borderColor:new Ee.C(je).onBackground(Ze).toHexShortString(),shadowColor:new Ee.C(Se).onBackground(Ze).toHexShortString(),contentColor:new Ee.C(Fe).onBackground(Ze).toHexShortString()}),[je,Se,Fe,Ze]);return Ce.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Ce.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Ce.createElement("ellipse",{fill:Je,cx:"32",cy:"33",rx:"32",ry:"7"}),Ce.createElement("g",{fillRule:"nonzero",stroke:xt},Ce.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"}),Ce.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:dt}))))},Ie=ie(83116),Re=ie(37613);const lt=ot=>{const{componentCls:je,margin:Se,marginXS:Fe,marginXL:Ze,fontSize:xt,lineHeight:Je}=ot;return{[je]:{marginInline:Fe,fontSize:xt,lineHeight:Je,textAlign:"center",[`${je}-image`]:{height:ot.emptyImgHeight,marginBottom:Fe,opacity:ot.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${je}-description`]:{color:ot.colorText},[`${je}-footer`]:{marginTop:Se},"&-normal":{marginBlock:Ze,color:ot.colorTextDisabled,[`${je}-description`]:{color:ot.colorTextDisabled},[`${je}-image`]:{height:ot.emptyImgHeightMD}},"&-small":{marginBlock:Fe,color:ot.colorTextDisabled,[`${je}-image`]:{height:ot.emptyImgHeightSM}}}}};var Ue=(0,Ie.Z)("Empty",ot=>{const{componentCls:je,controlHeightLG:Se}=ot,Fe=(0,Re.TS)(ot,{emptyImgCls:`${je}-img`,emptyImgHeight:Se*2.5,emptyImgHeightMD:Se,emptyImgHeightSM:Se*.875});return[lt(Fe)]}),We=function(ot,je){var Se={};for(var Fe in ot)Object.prototype.hasOwnProperty.call(ot,Fe)&&je.indexOf(Fe)<0&&(Se[Fe]=ot[Fe]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Fe=Object.getOwnPropertySymbols(ot);Ze<Fe.length;Ze++)je.indexOf(Fe[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ot,Fe[Ze])&&(Se[Fe[Ze]]=ot[Fe[Ze]]);return Se};const ct=Ce.createElement(we,null),tt=Ce.createElement(qe,null),At=ot=>{var{className:je,rootClassName:Se,prefixCls:Fe,image:Ze=ct,description:xt,children:Je,imageStyle:dt,style:Be}=ot,kt=We(ot,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:He,direction:Tt,empty:mt}=Ce.useContext(Ye.E_),Et=He("empty",Fe),[zt,Bt]=Ue(Et),[De]=(0,ye.Z)("Empty"),ge=typeof xt!="undefined"?xt:De==null?void 0:De.description,at=typeof ge=="string"?ge:"empty";let Ct=null;return typeof Ze=="string"?Ct=Ce.createElement("img",{alt:at,src:Ze}):Ct=Ze,zt(Ce.createElement("div",Object.assign({className:ke()(Bt,Et,mt==null?void 0:mt.className,{[`${Et}-normal`]:Ze===tt,[`${Et}-rtl`]:Tt==="rtl"},je,Se),style:Object.assign(Object.assign({},mt==null?void 0:mt.style),Be)},kt),Ce.createElement("div",{className:`${Et}-image`,style:dt},Ct),ge&&Ce.createElement("div",{className:`${Et}-description`},ge),Je&&Ce.createElement("div",{className:`${Et}-footer`},Je)))};At.PRESENTED_IMAGE_DEFAULT=ct,At.PRESENTED_IMAGE_SIMPLE=tt;var ut=At},78241:function(gn,Kt,ie){"use strict";ie.d(Kt,{default:function(){return Or}});var oe=ie(94480),ke=ie(92310),Ce=ie.n(ke),Ye=ie(77900),ye=ie(59301),Ee=ie(62892),he=ie(32441);function xe(Rt){const[Ke,nt]=ye.useState(Rt);return ye.useEffect(()=>{const rt=setTimeout(()=>{nt(Rt)},Rt.length?0:10);return()=>{clearTimeout(rt)}},[Rt]),Ke}var we=ie(17313),Te=ie(29878),qe=ie(8378),Ie=ie(37613),Re=ie(83116),Ue=Rt=>{const{componentCls:Ke}=Rt,nt=`${Ke}-show-help`,rt=`${Ke}-show-help-item`;return{[nt]:{transition:`opacity ${Rt.motionDurationSlow} ${Rt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[rt]:{overflow:"hidden",transition:`height ${Rt.motionDurationSlow} ${Rt.motionEaseInOut},
|
|
|
opacity ${Rt.motionDurationSlow} ${Rt.motionEaseInOut},
|
|
|
transform ${Rt.motionDurationSlow} ${Rt.motionEaseInOut} !important`,[`&${rt}-appear, &${rt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${rt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const We=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}}),ct=(Rt,Ke)=>{const{formItemCls:nt}=Rt;return{[nt]:{[`${nt}-label > label`]:{height:Ke},[`${nt}-control-input`]:{minHeight:Ke}}}},tt=Rt=>{const{componentCls:Ke}=Rt;return{[Rt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,we.Wf)(Rt)),We(Rt)),{[`${Ke}-text`]:{display:"inline-block",paddingInlineEnd:Rt.paddingSM},"&-small":Object.assign({},ct(Rt,Rt.controlHeightSM)),"&-large":Object.assign({},ct(Rt,Rt.controlHeightLG))})}},At=Rt=>{const{formItemCls:Ke,iconCls:nt,componentCls:rt,rootPrefixCls:it,labelRequiredMarkColor:Dt,labelColor:Ht,labelFontSize:sn,labelHeight:qt,labelColonMarginInlineStart:mn,labelColonMarginInlineEnd:An,itemMarginBottom:Tn}=Rt;return{[Ke]:Object.assign(Object.assign({},(0,we.Wf)(Rt)),{marginBottom:Tn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${it}-row`]:{display:"none"},"&-has-warning":{[`${Ke}-split`]:{color:Rt.colorError}},"&-has-error":{[`${Ke}-split`]:{color:Rt.colorWarning}},[`${Ke}-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:qt,color:Ht,fontSize:sn,[`> ${nt}`]:{fontSize:Rt.fontSize,verticalAlign:"top"},[`&${Ke}-required:not(${Ke}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Rt.marginXXS,color:Dt,fontSize:Rt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${rt}-hide-required-mark &`]:{display:"none"}},[`${Ke}-optional`]:{display:"inline-block",marginInlineStart:Rt.marginXXS,color:Rt.colorTextDescription,[`${rt}-hide-required-mark &`]:{display:"none"}},[`${Ke}-tooltip`]:{color:Rt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Rt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:mn,marginInlineEnd:An},[`&${Ke}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ke}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${it}-col-'"]):not([class*="' ${it}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Rt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ke]:{"&-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 ${Ke}-explain`]:{height:"auto",opacity:1},[`${Ke}-feedback-icon`]:{fontSize:Rt.fontSize,textAlign:"center",visibility:"visible",animationName:Te.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}}})}},ut=Rt=>{const{componentCls:Ke,formItemCls:nt}=Rt;return{[`${Ke}-horizontal`]:{[`${nt}-label`]:{flexGrow:0},[`${nt}-control`]:{flex:"1 1 0",minWidth:0},[`${nt}-label[class$='-24'], ${nt}-label[class*='-24 ']`]:{[`& + ${nt}-control`]:{minWidth:"unset"}}}}},ot=Rt=>{const{componentCls:Ke,formItemCls:nt}=Rt;return{[`${Ke}-inline`]:{display:"flex",flexWrap:"wrap",[nt]:{flex:"none",marginInlineEnd:Rt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${nt}-label,
|
|
|
> ${nt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${nt}-label`]:{flex:"none"},[`${Ke}-text`]:{display:"inline-block"},[`${nt}-has-feedback`]:{display:"inline-block"}}}}},je=Rt=>({padding:Rt.verticalLabelPadding,margin:Rt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Se=Rt=>{const{componentCls:Ke,formItemCls:nt,rootPrefixCls:rt}=Rt;return{[`${nt} ${nt}-label`]:je(Rt),[Ke]:{[nt]:{flexWrap:"wrap",[`${nt}-label, ${nt}-control`]:{[`&:not([class*=" ${rt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Fe=Rt=>{const{componentCls:Ke,formItemCls:nt,rootPrefixCls:rt}=Rt;return{[`${Ke}-vertical`]:{[nt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Ke}-item-control`]:{width:"100%"}}},[`${Ke}-vertical ${nt}-label,
|
|
|
.${rt}-col-24${nt}-label,
|
|
|
.${rt}-col-xl-24${nt}-label`]:je(Rt),[`@media (max-width: ${Rt.screenXSMax}px)`]:[Se(Rt),{[Ke]:{[`.${rt}-col-xs-24${nt}-label`]:je(Rt)}}],[`@media (max-width: ${Rt.screenSMMax}px)`]:{[Ke]:{[`.${rt}-col-sm-24${nt}-label`]:je(Rt)}},[`@media (max-width: ${Rt.screenMDMax}px)`]:{[Ke]:{[`.${rt}-col-md-24${nt}-label`]:je(Rt)}},[`@media (max-width: ${Rt.screenLGMax}px)`]:{[Ke]:{[`.${rt}-col-lg-24${nt}-label`]:je(Rt)}}}},Ze=(Rt,Ke)=>(0,Ie.TS)(Rt,{formItemCls:`${Rt.componentCls}-item`,rootPrefixCls:Ke});var xt=(0,Re.Z)("Form",(Rt,Ke)=>{let{rootPrefixCls:nt}=Ke;const rt=Ze(Rt,nt);return[tt(rt),At(rt),Ue(rt),ut(rt),ot(rt),Fe(rt),(0,qe.Z)(rt),Te.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 Je=[];function dt(Rt,Ke,nt){let rt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Rt=="string"?Rt:`${Ke}-${rt}`,error:Rt,errorStatus:nt}}var kt=Rt=>{let{help:Ke,helpStatus:nt,errors:rt=Je,warnings:it=Je,className:Dt,fieldId:Ht,onVisibleChanged:sn}=Rt;const{prefixCls:qt}=ye.useContext(he.Rk),mn=`${qt}-item-explain`,[,An]=xt(qt),Tn=(0,ye.useMemo)(()=>(0,Ee.Z)(qt),[qt]),Pn=xe(rt),Qt=xe(it),wn=ye.useMemo(()=>Ke!=null?[dt(Ke,"help",nt)]:[].concat((0,oe.Z)(Pn.map((Wn,sr)=>dt(Wn,"error","error",sr))),(0,oe.Z)(Qt.map((Wn,sr)=>dt(Wn,"warning","warning",sr)))),[Ke,nt,Pn,Qt]),Xn={};return Ht&&(Xn.id=`${Ht}_help`),ye.createElement(Ye.default,{motionDeadline:Tn.motionDeadline,motionName:`${qt}-show-help`,visible:!!wn.length,onVisibleChanged:sn},Wn=>{const{className:sr,style:Jn}=Wn;return ye.createElement("div",Object.assign({},Xn,{className:Ce()(mn,sr,Dt,An),style:Jn,role:"alert"}),ye.createElement(Ye.CSSMotionList,Object.assign({keys:wn},(0,Ee.Z)(qt),{motionName:`${qt}-show-help-item`,component:!1}),Ar=>{const{key:Fn,error:dr,errorStatus:Ot,className:cn,style:vn}=Ar;return ye.createElement("div",{key:Fn,className:Ce()(cn,{[`${mn}-${Ot}`]:Ot}),style:vn},dr)}))})},He=ie(95013),Tt=ie(36355),mt=ie(1684),Et=ie(52946),zt=ie(19716),Bt=ie(16722);const De=["parentNode"],ge="form_item";function at(Rt){return Rt===void 0||Rt===!1?[]:Array.isArray(Rt)?Rt:[Rt]}function Ct(Rt,Ke){if(!Rt.length)return;const nt=Rt.join("_");return Ke?`${Ke}_${nt}`:De.includes(nt)?`${ge}_${nt}`:nt}function It(Rt,Ke,nt,rt,it,Dt){let Ht=rt;return Dt!==void 0?Ht=Dt:nt.validating?Ht="validating":Rt.length?Ht="error":Ke.length?Ht="warning":(nt.touched||it&&nt.validated)&&(Ht="success"),Ht}function Qe(Rt){return at(Rt).join("_")}function et(Rt){const[Ke]=(0,He.useForm)(),nt=ye.useRef({}),rt=ye.useMemo(()=>Rt!=null?Rt:Object.assign(Object.assign({},Ke),{__INTERNAL__:{itemRef:it=>Dt=>{const Ht=Qe(it);Dt?nt.current[Ht]=Dt:delete nt.current[Ht]}},scrollToField:function(it){let Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Ht=at(it),sn=Ct(Ht,rt.__INTERNAL__.name),qt=sn?document.getElementById(sn):null;qt&&(0,Bt.Z)(qt,Object.assign({scrollMode:"if-needed",block:"nearest"},Dt))},getFieldInstance:it=>{const Dt=Qe(it);return nt.current[Dt]}}),[Rt,Ke]);return[rt]}var Lt=ie(28726),dn=function(Rt,Ke){var nt={};for(var rt in Rt)Object.prototype.hasOwnProperty.call(Rt,rt)&&Ke.indexOf(rt)<0&&(nt[rt]=Rt[rt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,rt=Object.getOwnPropertySymbols(Rt);it<rt.length;it++)Ke.indexOf(rt[it])<0&&Object.prototype.propertyIsEnumerable.call(Rt,rt[it])&&(nt[rt[it]]=Rt[rt[it]]);return nt};const _t=(Rt,Ke)=>{const nt=ye.useContext(mt.Z),{getPrefixCls:rt,direction:it,form:Dt}=ye.useContext(Tt.E_),{prefixCls:Ht,className:sn,rootClassName:qt,size:mn,disabled:An=nt,form:Tn,colon:Pn,labelAlign:Qt,labelWrap:wn,labelCol:Xn,wrapperCol:Wn,hideRequiredMark:sr,layout:Jn="horizontal",scrollToFirstError:Ar,requiredMark:Fn,onFinishFailed:dr,name:Ot,style:cn,feedbackIcons:vn}=Rt,Mn=dn(Rt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),yn=(0,zt.Z)(mn),Sn=ye.useContext(Lt.Z),bn=(0,ye.useMemo)(()=>Fn!==void 0?Fn:Dt&&Dt.requiredMark!==void 0?Dt.requiredMark:!sr,[sr,Fn,Dt]),zn=Pn!=null?Pn:Dt==null?void 0:Dt.colon,Zn=rt("form",Ht),[qn,_r]=xt(Zn),ei=Ce()(Zn,`${Zn}-${Jn}`,{[`${Zn}-hide-required-mark`]:bn===!1,[`${Zn}-rtl`]:it==="rtl",[`${Zn}-${yn}`]:yn},_r,Dt==null?void 0:Dt.className,sn,qt),[di]=et(Tn),{__INTERNAL__:zr}=di;zr.name=Ot;const Lr=(0,ye.useMemo)(()=>({name:Ot,labelAlign:Qt,labelCol:Xn,labelWrap:wn,wrapperCol:Wn,vertical:Jn==="vertical",colon:zn,requiredMark:bn,itemRef:zr.itemRef,form:di,feedbackIcons:vn}),[Ot,Qt,Xn,Wn,Jn,zn,bn,di,vn]);ye.useImperativeHandle(Ke,()=>di);const mi=(ti,Pr)=>{if(ti){let Vr={block:"nearest"};typeof ti=="object"&&(Vr=ti),di.scrollToField(Pr,Vr)}},oi=ti=>{if(dr==null||dr(ti),ti.errorFields.length){const Pr=ti.errorFields[0].name;if(Ar!==void 0){mi(Ar,Pr);return}Dt&&Dt.scrollToFirstError!==void 0&&mi(Dt.scrollToFirstError,Pr)}};return qn(ye.createElement(mt.n,{disabled:An},ye.createElement(Et.q,{size:yn},ye.createElement(he.RV,Object.assign({},{validateMessages:Sn}),ye.createElement(he.q3.Provider,{value:Lr},ye.createElement(He.default,Object.assign({id:Ot},Mn,{name:Ot,onFinishFailed:oi,form:di,style:Object.assign(Object.assign({},Dt==null?void 0:Dt.style),cn),className:ei})))))))};var en=ye.forwardRef(_t),Jt=ie(41799),Vt=ie(8654),be=ie(92343),ce=ie(11592);function ue(Rt){if(typeof Rt=="function")return Rt;const Ke=(0,ce.Z)(Rt);return Ke.length<=1?Ke[0]:Ke}const de=()=>{const{status:Rt,errors:Ke=[],warnings:nt=[]}=(0,ye.useContext)(he.aM);return{status:Rt,errors:Ke,warnings:nt}};de.Context=he.aM;var pe=de,se=ie(16089);function Le(Rt){const[Ke,nt]=ye.useState(Rt),rt=(0,ye.useRef)(null),it=(0,ye.useRef)([]),Dt=(0,ye.useRef)(!1);ye.useEffect(()=>(Dt.current=!1,()=>{Dt.current=!0,se.Z.cancel(rt.current),rt.current=null}),[]);function Ht(sn){Dt.current||(rt.current===null&&(it.current=[],rt.current=(0,se.Z)(()=>{rt.current=null,nt(qt=>{let mn=qt;return it.current.forEach(An=>{mn=An(mn)}),mn})})),it.current.push(sn))}return[Ke,Ht]}function ht(){const{itemRef:Rt}=ye.useContext(he.q3),Ke=ye.useRef({});function nt(rt,it){const Dt=it&&typeof it=="object"&&it.ref,Ht=rt.join("_");return(Ke.current.name!==Ht||Ke.current.originRef!==Dt)&&(Ke.current.name=Ht,Ke.current.originRef=Dt,Ke.current.ref=(0,Vt.sQ)(Rt(rt),Dt)),Ke.current.ref}return nt}var _e=ie(29194),Ne=ie(34280),St=ie(2738),gt=ie(27382),Xe=ie(37028);const wt=Rt=>{const{formItemCls:Ke}=Rt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ke}-control`]:{display:"flex"}}}};var Xt=(0,Re.b)(["Form","item-item"],(Rt,Ke)=>{let{rootPrefixCls:nt}=Ke;const rt=Ze(Rt,nt);return[wt(rt)]}),$t=Rt=>{const{prefixCls:Ke,status:nt,wrapperCol:rt,children:it,errors:Dt,warnings:Ht,_internalItemRender:sn,extra:qt,help:mn,fieldId:An,marginBottom:Tn,onErrorVisibleChanged:Pn}=Rt,Qt=`${Ke}-item`,wn=ye.useContext(he.q3),Xn=rt||wn.wrapperCol||{},Wn=Ce()(`${Qt}-control`,Xn.className),sr=ye.useMemo(()=>Object.assign({},wn),[wn]);delete sr.labelCol,delete sr.wrapperCol;const Jn=ye.createElement("div",{className:`${Qt}-control-input`},ye.createElement("div",{className:`${Qt}-control-input-content`},it)),Ar=ye.useMemo(()=>({prefixCls:Ke,status:nt}),[Ke,nt]),Fn=Tn!==null||Dt.length||Ht.length?ye.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ye.createElement(he.Rk.Provider,{value:Ar},ye.createElement(kt,{fieldId:An,errors:Dt,warnings:Ht,help:mn,helpStatus:nt,className:`${Qt}-explain-connected`,onVisibleChanged:Pn})),!!Tn&&ye.createElement("div",{style:{width:0,height:Tn}})):null,dr={};An&&(dr.id=`${An}_extra`);const Ot=qt?ye.createElement("div",Object.assign({},dr,{className:`${Qt}-extra`}),qt):null,cn=sn&&sn.mark==="pro_table_render"&&sn.render?sn.render(Rt,{input:Jn,errorList:Fn,extra:Ot}):ye.createElement(ye.Fragment,null,Jn,Fn,Ot);return ye.createElement(he.q3.Provider,{value:sr},ye.createElement(Xe.Z,Object.assign({},Xn,{className:Wn}),cn),ye.createElement(Xt,{prefixCls:Ke}))},on=ie(61485),vt=ie(31724),Oe=ie(9763),yt=ie(6848),jt=function(Rt,Ke){var nt={};for(var rt in Rt)Object.prototype.hasOwnProperty.call(Rt,rt)&&Ke.indexOf(rt)<0&&(nt[rt]=Rt[rt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,rt=Object.getOwnPropertySymbols(Rt);it<rt.length;it++)Ke.indexOf(rt[it])<0&&Object.prototype.propertyIsEnumerable.call(Rt,rt[it])&&(nt[rt[it]]=Rt[rt[it]]);return nt};function Zt(Rt){return Rt?typeof Rt=="object"&&!ye.isValidElement(Rt)?Rt:{title:Rt}:null}var Cn=Rt=>{let{prefixCls:Ke,label:nt,htmlFor:rt,labelCol:it,labelAlign:Dt,colon:Ht,required:sn,requiredMark:qt,tooltip:mn}=Rt;var An;const[Tn]=(0,Oe.Z)("Form"),{vertical:Pn,labelAlign:Qt,labelCol:wn,labelWrap:Xn,colon:Wn}=ye.useContext(he.q3);if(!nt)return null;const sr=it||wn||{},Jn=Dt||Qt,Ar=`${Ke}-item-label`,Fn=Ce()(Ar,Jn==="left"&&`${Ar}-left`,sr.className,{[`${Ar}-wrap`]:!!Xn});let dr=nt;const Ot=Ht===!0||Wn!==!1&&Ht!==!1;Ot&&!Pn&&typeof nt=="string"&&nt.trim()!==""&&(dr=nt.replace(/[:|:]\s*$/,""));const vn=Zt(mn);if(vn){const{icon:bn=ye.createElement(on.Z,null)}=vn,zn=jt(vn,["icon"]),Zn=ye.createElement(yt.Z,Object.assign({},zn),ye.cloneElement(bn,{className:`${Ke}-item-tooltip`,title:""}));dr=ye.createElement(ye.Fragment,null,dr,Zn)}const Mn=qt==="optional",yn=typeof qt=="function";yn?dr=qt(dr,{required:!!sn}):Mn&&!sn&&(dr=ye.createElement(ye.Fragment,null,dr,ye.createElement("span",{className:`${Ke}-item-optional`,title:""},(Tn==null?void 0:Tn.optional)||((An=vt.Z.Form)===null||An===void 0?void 0:An.optional))));const Sn=Ce()({[`${Ke}-item-required`]:sn,[`${Ke}-item-required-mark-optional`]:Mn||yn,[`${Ke}-item-no-colon`]:!Ot});return ye.createElement(Xe.Z,Object.assign({},sr,{className:Fn}),ye.createElement("label",{htmlFor:rt,className:Sn,title:typeof nt=="string"?nt:""},dr))},In=ie(29679),Dn=ie(19248),Kn=ie(96512),Vn=ie(58617);const _n={success:In.Z,warning:Kn.Z,error:Dn.Z,validating:Vn.Z};function or(Rt){let{children:Ke,errors:nt,warnings:rt,hasFeedback:it,validateStatus:Dt,prefixCls:Ht,meta:sn,noStyle:qt}=Rt;const mn=`${Ht}-item`,{feedbackIcons:An}=ye.useContext(he.q3),Tn=It(nt,rt,sn,null,!!it,Dt),{isFormItemInput:Pn,status:Qt}=ye.useContext(he.aM),wn=ye.useMemo(()=>{var Xn;let Wn;if(it){const Ar=it!==!0&&it.icons||An,Fn=Tn&&((Xn=Ar==null?void 0:Ar({status:Tn,errors:nt,warnings:rt}))===null||Xn===void 0?void 0:Xn[Tn]),dr=Tn&&_n[Tn];Wn=Fn!==!1&&dr?ye.createElement("span",{className:Ce()(`${mn}-feedback-icon`,`${mn}-feedback-icon-${Tn}`)},Fn||ye.createElement(dr,null)):null}let sr=!0,Jn=Tn||"";return qt&&(sr=Pn,Jn=(Tn!=null?Tn:Qt)||""),{status:Jn,errors:nt,warnings:rt,hasFeedback:!!it,feedbackIcon:Wn,isFormItemInput:sr}},[Tn,it,qt,Pn,Qt]);return ye.createElement(he.aM.Provider,{value:wn},Ke)}var wr=function(Rt,Ke){var nt={};for(var rt in Rt)Object.prototype.hasOwnProperty.call(Rt,rt)&&Ke.indexOf(rt)<0&&(nt[rt]=Rt[rt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,rt=Object.getOwnPropertySymbols(Rt);it<rt.length;it++)Ke.indexOf(rt[it])<0&&Object.prototype.propertyIsEnumerable.call(Rt,rt[it])&&(nt[rt[it]]=Rt[rt[it]]);return nt};function Tr(Rt){const{prefixCls:Ke,className:nt,rootClassName:rt,style:it,help:Dt,errors:Ht,warnings:sn,validateStatus:qt,meta:mn,hasFeedback:An,hidden:Tn,children:Pn,fieldId:Qt,required:wn,isRequired:Xn,onSubItemMetaChange:Wn}=Rt,sr=wr(Rt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Jn=`${Ke}-item`,{requiredMark:Ar}=ye.useContext(he.q3),Fn=ye.useRef(null),dr=xe(Ht),Ot=xe(sn),cn=Dt!=null,vn=!!(cn||Ht.length||sn.length),Mn=!!Fn.current&&(0,_e.Z)(Fn.current),[yn,Sn]=ye.useState(null);(0,Ne.Z)(()=>{if(vn&&Fn.current){const _r=getComputedStyle(Fn.current);Sn(parseInt(_r.marginBottom,10))}},[vn,Mn]);const bn=_r=>{_r||Sn(null)},Zn=function(){let _r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ei=_r?dr:mn.errors,di=_r?Ot:mn.warnings;return It(ei,di,mn,"",!!An,qt)}(),qn=Ce()(Jn,nt,rt,{[`${Jn}-with-help`]:cn||dr.length||Ot.length,[`${Jn}-has-feedback`]:Zn&&An,[`${Jn}-has-success`]:Zn==="success",[`${Jn}-has-warning`]:Zn==="warning",[`${Jn}-has-error`]:Zn==="error",[`${Jn}-is-validating`]:Zn==="validating",[`${Jn}-hidden`]:Tn});return ye.createElement("div",{className:qn,style:it,ref:Fn},ye.createElement(gt.Z,Object.assign({className:`${Jn}-row`},(0,St.Z)(sr,["_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"])),ye.createElement(Cn,Object.assign({htmlFor:Qt},Rt,{requiredMark:Ar,required:wn!=null?wn:Xn,prefixCls:Ke})),ye.createElement($t,Object.assign({},Rt,mn,{errors:dr,warnings:Ot,prefixCls:Ke,status:Zn,help:Dt,marginBottom:yn,onErrorVisibleChanged:bn}),ye.createElement(he.qI.Provider,{value:Wn},ye.createElement(or,{prefixCls:Ke,meta:mn,errors:mn.errors,warnings:mn.warnings,hasFeedback:An,validateStatus:Zn},Pn)))),!!yn&&ye.createElement("div",{className:`${Jn}-margin-offset`,style:{marginBottom:-yn}}))}const Yn="__SPLIT__",hr=null,kr=ye.memo(Rt=>{let{children:Ke}=Rt;return Ke},(Rt,Ke)=>Rt.value===Ke.value&&Rt.update===Ke.update&&Rt.childProps.length===Ke.childProps.length&&Rt.childProps.every((nt,rt)=>nt===Ke.childProps[rt]));function Qn(Rt){return Rt!=null}function Fr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ci(Rt){const{name:Ke,noStyle:nt,className:rt,dependencies:it,prefixCls:Dt,shouldUpdate:Ht,rules:sn,children:qt,required:mn,label:An,messageVariables:Tn,trigger:Pn="onChange",validateTrigger:Qt,hidden:wn,help:Xn}=Rt,{getPrefixCls:Wn}=ye.useContext(Tt.E_),{name:sr}=ye.useContext(he.q3),Jn=ue(qt),Ar=typeof Jn=="function",Fn=ye.useContext(he.qI),{validateTrigger:dr}=ye.useContext(He.FieldContext),Ot=Qt!==void 0?Qt:dr,cn=Qn(Ke),vn=Wn("form",Dt),[Mn,yn]=xt(vn),Sn=ye.useContext(He.ListContext),bn=ye.useRef(),[zn,Zn]=Le({}),[qn,_r]=(0,Jt.Z)(()=>Fr()),ei=Pr=>{const Vr=Sn==null?void 0:Sn.getKey(Pr.name);if(_r(Pr.destroy?Fr():Pr,!0),nt&&Xn!==!1&&Fn){let En=Pr.name;if(Pr.destroy)En=bn.current||En;else if(Vr!==void 0){const[Yr,Li]=Vr;En=[Yr].concat((0,oe.Z)(Li)),bn.current=En}Fn(Pr,En)}},di=(Pr,Vr)=>{Zn(En=>{const Yr=Object.assign({},En),Yi=[].concat((0,oe.Z)(Pr.name.slice(0,-1)),(0,oe.Z)(Vr)).join(Yn);return Pr.destroy?delete Yr[Yi]:Yr[Yi]=Pr,Yr})},[zr,Lr]=ye.useMemo(()=>{const Pr=(0,oe.Z)(qn.errors),Vr=(0,oe.Z)(qn.warnings);return Object.values(zn).forEach(En=>{Pr.push.apply(Pr,(0,oe.Z)(En.errors||[])),Vr.push.apply(Vr,(0,oe.Z)(En.warnings||[]))}),[Pr,Vr]},[zn,qn.errors,qn.warnings]),mi=ht();function oi(Pr,Vr,En){return nt&&!wn?ye.createElement(or,{prefixCls:vn,hasFeedback:Rt.hasFeedback,validateStatus:Rt.validateStatus,meta:qn,errors:zr,warnings:Lr,noStyle:!0},Pr):ye.createElement(Tr,Object.assign({key:"row"},Rt,{className:Ce()(rt,yn),prefixCls:vn,fieldId:Vr,isRequired:En,errors:zr,warnings:Lr,meta:qn,onSubItemMetaChange:di}),Pr)}if(!cn&&!Ar&&!it)return Mn(oi(Jn));let ti={};return typeof An=="string"?ti.label=An:Ke&&(ti.label=String(Ke)),Tn&&(ti=Object.assign(Object.assign({},ti),Tn)),Mn(ye.createElement(He.Field,Object.assign({},Rt,{messageVariables:ti,trigger:Pn,validateTrigger:Ot,onMetaChange:ei}),(Pr,Vr,En)=>{const Yr=at(Ke).length&&Vr?Vr.name:[],Li=Ct(Yr,sr),Yi=mn!==void 0?mn:!!(sn&&sn.some(Un=>{if(Un&&typeof Un=="object"&&Un.required&&!Un.warningOnly)return!0;if(typeof Un=="function"){const Qr=Un(En);return Qr&&Qr.required&&!Qr.warningOnly}return!1})),ni=Object.assign({},Pr);let tr=null;if(Array.isArray(Jn)&&cn)tr=Jn;else if(!(Ar&&(!(Ht||it)||cn))){if(!(it&&!Ar&&!cn))if((0,be.l$)(Jn)){const Un=Object.assign(Object.assign({},Jn.props),ni);if(Un.id||(Un.id=Li),Xn||zr.length>0||Lr.length>0||Rt.extra){const fi=[];(Xn||zr.length>0)&&fi.push(`${Li}_help`),Rt.extra&&fi.push(`${Li}_extra`),Un["aria-describedby"]=fi.join(" ")}zr.length>0&&(Un["aria-invalid"]="true"),Yi&&(Un["aria-required"]="true"),(0,Vt.Yr)(Jn)&&(Un.ref=mi(Yr,Jn)),new Set([].concat((0,oe.Z)(at(Pn)),(0,oe.Z)(at(Ot)))).forEach(fi=>{Un[fi]=function(){for(var Ni,si,ea,ki,Da,jr=arguments.length,$r=new Array(jr),Di=0;Di<jr;Di++)$r[Di]=arguments[Di];(ea=ni[fi])===null||ea===void 0||(Ni=ea).call.apply(Ni,[ni].concat($r)),(Da=(ki=Jn.props)[fi])===null||Da===void 0||(si=Da).call.apply(si,[ki].concat($r))}});const Dr=[Un["aria-required"],Un["aria-invalid"],Un["aria-describedby"]];tr=ye.createElement(kr,{value:ni[Rt.valuePropName||"value"],update:Jn,childProps:Dr},(0,be.Tm)(Jn,Un))}else Ar&&(Ht||it)&&!cn?tr=Jn(En):tr=Jn}return oi(tr,Li,Yi)}))}const Cr=ci;Cr.useStatus=pe;var pi=Cr,ai=function(Rt,Ke){var nt={};for(var rt in Rt)Object.prototype.hasOwnProperty.call(Rt,rt)&&Ke.indexOf(rt)<0&&(nt[rt]=Rt[rt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,rt=Object.getOwnPropertySymbols(Rt);it<rt.length;it++)Ke.indexOf(rt[it])<0&&Object.prototype.propertyIsEnumerable.call(Rt,rt[it])&&(nt[rt[it]]=Rt[rt[it]]);return nt},yr=Rt=>{var{prefixCls:Ke,children:nt}=Rt,rt=ai(Rt,["prefixCls","children"]);const{getPrefixCls:it}=ye.useContext(Tt.E_),Dt=it("form",Ke),Ht=ye.useMemo(()=>({prefixCls:Dt,status:"error"}),[Dt]);return ye.createElement(He.List,Object.assign({},rt),(sn,qt,mn)=>ye.createElement(he.Rk.Provider,{value:Ht},nt(sn.map(An=>Object.assign(Object.assign({},An),{fieldKey:An.key})),qt,{errors:mn.errors,warnings:mn.warnings})))};function Hn(){const{form:Rt}=(0,ye.useContext)(he.q3);return Rt}const Gn=en;Gn.Item=pi,Gn.List=yr,Gn.ErrorList=kt,Gn.useForm=et,Gn.useFormInstance=Hn,Gn.useWatch=He.useWatch,Gn.Provider=he.RV,Gn.create=()=>{};var Or=Gn},8628:function(gn,Kt,ie){"use strict";var oe=ie(59301),ke=ie(34280),Ce=ie(56762),Ye=ie(69507);function ye(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const he=(0,oe.useRef)({}),xe=(0,Ce.Z)(),we=(0,Ye.ZP)();return(0,ke.Z)(()=>{const Te=we.subscribe(qe=>{he.current=qe,Ee&&xe()});return()=>we.unsubscribe(Te)},[]),he.current}Kt.Z=ye},5871:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return on}});var oe=ie(84105),ke=ie(87395),Ce=ie(92310),Ye=ie.n(Ce),ye=ie(54476),Ee=ie(20068),he=ie(76190),xe=ie(42978),we=ie(75931),Te=ie(67732),qe=ie(83652);function Ie(){return typeof BigInt=="function"}function Re(vt){return!vt&&vt!==0&&!Number.isNaN(vt)||!String(vt).trim()}function lt(vt){var Oe=vt.trim(),yt=Oe.startsWith("-");yt&&(Oe=Oe.slice(1)),Oe=Oe.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Oe.startsWith(".")&&(Oe="0".concat(Oe));var jt=Oe||"0",Zt=jt.split("."),nn=Zt[0]||"0",Cn=Zt[1]||"0";nn==="0"&&Cn==="0"&&(yt=!1);var In=yt?"-":"";return{negative:yt,negativeStr:In,trimStr:jt,integerStr:nn,decimalStr:Cn,fullStr:"".concat(In).concat(jt)}}function Ue(vt){var Oe=String(vt);return!Number.isNaN(Number(Oe))&&Oe.includes("e")}function We(vt){var Oe=String(vt);if(Ue(vt)){var yt=Number(Oe.slice(Oe.indexOf("e-")+2)),jt=Oe.match(/\.(\d+)/);return jt!=null&&jt[1]&&(yt+=jt[1].length),yt}return Oe.includes(".")&&tt(Oe)?Oe.length-Oe.indexOf(".")-1:0}function ct(vt){var Oe=String(vt);if(Ue(vt)){if(vt>Number.MAX_SAFE_INTEGER)return String(Ie()?BigInt(vt).toString():Number.MAX_SAFE_INTEGER);if(vt<Number.MIN_SAFE_INTEGER)return String(Ie()?BigInt(vt).toString():Number.MIN_SAFE_INTEGER);Oe=vt.toFixed(We(Oe))}return lt(Oe).fullStr}function tt(vt){return typeof vt=="number"?!Number.isNaN(vt):vt?/^\s*-?\d+(\.\d+)?\s*$/.test(vt)||/^\s*-?\d+\.\s*$/.test(vt)||/^\s*-?\.\d+\s*$/.test(vt):!1}var At=function(){function vt(Oe){if((0,Te.Z)(this,vt),(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),Re(Oe)){this.empty=!0;return}if(this.origin=String(Oe),Oe==="-"||Number.isNaN(Oe)){this.nan=!0;return}var yt=Oe;if(Ue(yt)&&(yt=Number(yt)),yt=typeof yt=="string"?yt:ct(yt),tt(yt)){var jt=lt(yt);this.negative=jt.negative;var Zt=jt.trimStr.split(".");this.integer=BigInt(Zt[0]);var nn=Zt[1]||"0";this.decimal=BigInt(nn),this.decimalLen=nn.length}else this.nan=!0}return(0,qe.Z)(vt,[{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(yt){var jt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(yt,"0"));return BigInt(jt)}},{key:"negate",value:function(){var yt=new vt(this.toString());return yt.negative=!yt.negative,yt}},{key:"cal",value:function(yt,jt,Zt){var nn=Math.max(this.getDecimalStr().length,yt.getDecimalStr().length),Cn=this.alignDecimal(nn),In=yt.alignDecimal(nn),Dn=jt(Cn,In).toString(),Kn=Zt(nn),Vn=lt(Dn),_n=Vn.negativeStr,or=Vn.trimStr,wr="".concat(_n).concat(or.padStart(Kn+1,"0"));return new vt("".concat(wr.slice(0,-Kn),".").concat(wr.slice(-Kn)))}},{key:"add",value:function(yt){if(this.isInvalidate())return new vt(yt);var jt=new vt(yt);return jt.isInvalidate()?this:this.cal(jt,function(Zt,nn){return Zt+nn},function(Zt){return Zt})}},{key:"multi",value:function(yt){var jt=new vt(yt);return this.isInvalidate()||jt.isInvalidate()?new vt(NaN):this.cal(jt,function(Zt,nn){return Zt*nn},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(yt){return this.toString()===(yt==null?void 0:yt.toString())}},{key:"lessEquals",value:function(yt){return this.add(yt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return yt?this.isInvalidate()?"":lt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),vt}(),ut=function(){function vt(Oe){if((0,Te.Z)(this,vt),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"number",void 0),(0,Ee.Z)(this,"empty",void 0),Re(Oe)){this.empty=!0;return}this.origin=String(Oe),this.number=Number(Oe)}return(0,qe.Z)(vt,[{key:"negate",value:function(){return new vt(-this.toNumber())}},{key:"add",value:function(yt){if(this.isInvalidate())return new vt(yt);var jt=Number(yt);if(Number.isNaN(jt))return this;var Zt=this.number+jt;if(Zt>Number.MAX_SAFE_INTEGER)return new vt(Number.MAX_SAFE_INTEGER);if(Zt<Number.MIN_SAFE_INTEGER)return new vt(Number.MIN_SAFE_INTEGER);var nn=Math.max(We(this.number),We(jt));return new vt(Zt.toFixed(nn))}},{key:"multi",value:function(yt){var jt=Number(yt);if(this.isInvalidate()||Number.isNaN(jt))return new vt(NaN);var Zt=this.number*jt;if(Zt>Number.MAX_SAFE_INTEGER)return new vt(Number.MAX_SAFE_INTEGER);if(Zt<Number.MIN_SAFE_INTEGER)return new vt(Number.MIN_SAFE_INTEGER);var nn=Math.max(We(this.number),We(jt));return new vt(Zt.toFixed(nn))}},{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(yt){return this.toNumber()===(yt==null?void 0:yt.toNumber())}},{key:"lessEquals",value:function(yt){return this.add(yt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return yt?this.isInvalidate()?"":ct(this.number):this.origin}}]),vt}();function ot(vt){return Ie()?new At(vt):new ut(vt)}function je(vt,Oe,yt){var jt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(vt==="")return"";var Zt=lt(vt),nn=Zt.negativeStr,Cn=Zt.integerStr,In=Zt.decimalStr,Dn="".concat(Oe).concat(In),Kn="".concat(nn).concat(Cn);if(yt>=0){var Vn=Number(In[yt]);if(Vn>=5&&!jt){var _n=ot(vt).add("".concat(nn,"0.").concat("0".repeat(yt)).concat(10-Vn));return je(_n.toString(),Oe,yt,jt)}return yt===0?Kn:"".concat(Kn).concat(Oe).concat(In.padEnd(yt,"0").slice(0,yt))}return Dn===".0"?Kn:"".concat(Kn).concat(Dn)}var Se=ot,Fe=ie(93681),Ze=ie(34280),xt=ie(8654),Je=ie(59301),dt=ie(48736);function Be(vt,Oe){var yt=(0,Je.useRef)(null);function jt(){try{var nn=vt.selectionStart,Cn=vt.selectionEnd,In=vt.value,Dn=In.substring(0,nn),Kn=In.substring(Cn);yt.current={start:nn,end:Cn,value:In,beforeTxt:Dn,afterTxt:Kn}}catch(Vn){}}function Zt(){if(vt&&yt.current&&Oe)try{var nn=vt.value,Cn=yt.current,In=Cn.beforeTxt,Dn=Cn.afterTxt,Kn=Cn.start,Vn=nn.length;if(nn.endsWith(Dn))Vn=nn.length-yt.current.afterTxt.length;else if(nn.startsWith(In))Vn=In.length;else{var _n=In[Kn-1],or=nn.indexOf(_n,Kn-1);or!==-1&&(Vn=or+1)}vt.setSelectionRange(Vn,Vn)}catch(wr){(0,dt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(wr.message))}}return[jt,Zt]}var kt=ie(49658),He=function(){var Oe=(0,Je.useState)(!1),yt=(0,xe.Z)(Oe,2),jt=yt[0],Zt=yt[1];return(0,Ze.Z)(function(){Zt((0,kt.Z)())},[]),jt},Tt=He,mt=ie(16089),Et=200,zt=600;function Bt(vt){var Oe=vt.prefixCls,yt=vt.upNode,jt=vt.downNode,Zt=vt.upDisabled,nn=vt.downDisabled,Cn=vt.onStep,In=Je.useRef(),Dn=Je.useRef([]),Kn=Je.useRef();Kn.current=Cn;var Vn=function(){clearTimeout(In.current)},_n=function(Fr,ci){Fr.preventDefault(),Vn(),Kn.current(ci);function Cr(){Kn.current(ci),In.current=setTimeout(Cr,Et)}In.current=setTimeout(Cr,zt)};Je.useEffect(function(){return function(){Vn(),Dn.current.forEach(function(Qn){return mt.Z.cancel(Qn)})}},[]);var or=Tt();if(or)return null;var wr="".concat(Oe,"-handler"),Tr=Ye()(wr,"".concat(wr,"-up"),(0,Ee.Z)({},"".concat(wr,"-up-disabled"),Zt)),Yn=Ye()(wr,"".concat(wr,"-down"),(0,Ee.Z)({},"".concat(wr,"-down-disabled"),nn)),hr=function(){return Dn.current.push((0,mt.Z)(Vn))},kr={unselectable:"on",role:"button",onMouseUp:hr,onMouseLeave:hr};return Je.createElement("div",{className:"".concat(wr,"-wrap")},Je.createElement("span",(0,ye.Z)({},kr,{onMouseDown:function(Fr){_n(Fr,!0)},"aria-label":"Increase Value","aria-disabled":Zt,className:Tr}),yt||Je.createElement("span",{unselectable:"on",className:"".concat(Oe,"-handler-up-inner")})),Je.createElement("span",(0,ye.Z)({},kr,{onMouseDown:function(Fr){_n(Fr,!1)},"aria-label":"Decrease Value","aria-disabled":nn,className:Yn}),jt||Je.createElement("span",{unselectable:"on",className:"".concat(Oe,"-handler-down-inner")})))}function De(vt){var Oe=typeof vt=="number"?ct(vt):lt(vt).fullStr,yt=Oe.includes(".");return yt?lt(Oe.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:vt+"0"}var ge=ie(5643),at=function(){var vt=(0,Je.useRef)(0),Oe=function(){mt.Z.cancel(vt.current)};return(0,Je.useEffect)(function(){return Oe},[]),function(yt){Oe(),vt.current=(0,mt.Z)(function(){yt()})}},Ct=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],It=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Qe=function(Oe,yt){return Oe||yt.isEmpty()?yt.toString():yt.toNumber()},et=function(Oe){var yt=Se(Oe);return yt.isInvalidate()?null:yt},Lt=Je.forwardRef(function(vt,Oe){var yt,jt=vt.prefixCls,Zt=jt===void 0?"rc-input-number":jt,nn=vt.className,Cn=vt.style,In=vt.min,Dn=vt.max,Kn=vt.step,Vn=Kn===void 0?1:Kn,_n=vt.defaultValue,or=vt.value,wr=vt.disabled,Tr=vt.readOnly,Yn=vt.upHandler,hr=vt.downHandler,kr=vt.keyboard,Qn=vt.controls,Fr=Qn===void 0?!0:Qn,ci=vt.classNames,Cr=vt.stringMode,pi=vt.parser,ai=vt.formatter,nr=vt.precision,yr=vt.decimalSeparator,Hn=vt.onChange,Gn=vt.onInput,Or=vt.onPressEnter,Rt=vt.onStep,Ke=(0,we.Z)(vt,Ct),nt="".concat(Zt,"-input"),rt=Je.useRef(null),it=Je.useState(!1),Dt=(0,xe.Z)(it,2),Ht=Dt[0],sn=Dt[1],qt=Je.useRef(!1),mn=Je.useRef(!1),An=Je.useRef(!1),Tn=Je.useState(function(){return Se(or!=null?or:_n)}),Pn=(0,xe.Z)(Tn,2),Qt=Pn[0],wn=Pn[1];function Xn(tr){or===void 0&&wn(tr)}var Wn=Je.useCallback(function(tr,Un){if(!Un)return nr>=0?nr:Math.max(We(tr),We(Vn))},[nr,Vn]),sr=Je.useCallback(function(tr){var Un=String(tr);if(pi)return pi(Un);var Qr=Un;return yr&&(Qr=Qr.replace(yr,".")),Qr.replace(/[^\w.-]+/g,"")},[pi,yr]),Jn=Je.useRef(""),Ar=Je.useCallback(function(tr,Un){if(ai)return ai(tr,{userTyping:Un,input:String(Jn.current)});var Qr=typeof tr=="number"?ct(tr):tr;if(!Un){var Dr=Wn(Qr,Un);if(tt(Qr)&&(yr||Dr>=0)){var fi=yr||".";Qr=je(Qr,fi,Dr)}}return Qr},[ai,Wn,yr]),Fn=Je.useState(function(){var tr=_n!=null?_n:or;return Qt.isInvalidate()&&["string","number"].includes((0,he.Z)(tr))?Number.isNaN(tr)?"":tr:Ar(Qt.toString(),!1)}),dr=(0,xe.Z)(Fn,2),Ot=dr[0],cn=dr[1];Jn.current=Ot;function vn(tr,Un){cn(Ar(tr.isInvalidate()?tr.toString(!1):tr.toString(!Un),Un))}var Mn=Je.useMemo(function(){return et(Dn)},[Dn,nr]),yn=Je.useMemo(function(){return et(In)},[In,nr]),Sn=Je.useMemo(function(){return!Mn||!Qt||Qt.isInvalidate()?!1:Mn.lessEquals(Qt)},[Mn,Qt]),bn=Je.useMemo(function(){return!yn||!Qt||Qt.isInvalidate()?!1:Qt.lessEquals(yn)},[yn,Qt]),zn=Be(rt.current,Ht),Zn=(0,xe.Z)(zn,2),qn=Zn[0],_r=Zn[1],ei=function(Un){return Mn&&!Un.lessEquals(Mn)?Mn:yn&&!yn.lessEquals(Un)?yn:null},di=function(Un){return!ei(Un)},zr=function(Un,Qr){var Dr=Un,fi=di(Dr)||Dr.isEmpty();if(!Dr.isEmpty()&&!Qr&&(Dr=ei(Dr)||Dr,fi=!0),!Tr&&!wr&&fi){var Ni=Dr.toString(),si=Wn(Ni,Qr);return si>=0&&(Dr=Se(je(Ni,".",si)),di(Dr)||(Dr=Se(je(Ni,".",si,!0)))),Dr.equals(Qt)||(Xn(Dr),Hn==null||Hn(Dr.isEmpty()?null:Qe(Cr,Dr)),or===void 0&&vn(Dr,Qr)),Dr}return Qt},Lr=at(),mi=function tr(Un){if(qn(),Jn.current=Un,cn(Un),!mn.current){var Qr=sr(Un),Dr=Se(Qr);Dr.isNaN()||zr(Dr,!0)}Gn==null||Gn(Un),Lr(function(){var fi=Un;pi||(fi=Un.replace(/。/g,".")),fi!==Un&&tr(fi)})},oi=function(){mn.current=!0},ti=function(){mn.current=!1,mi(rt.current.value)},Pr=function(Un){mi(Un.target.value)},Vr=function(Un){var Qr;if(!(Un&&Sn||!Un&&bn)){qt.current=!1;var Dr=Se(An.current?De(Vn):Vn);Un||(Dr=Dr.negate());var fi=(Qt||Se(0)).add(Dr.toString()),Ni=zr(fi,!1);Rt==null||Rt(Qe(Cr,Ni),{offset:An.current?De(Vn):Vn,type:Un?"up":"down"}),(Qr=rt.current)===null||Qr===void 0||Qr.focus()}},En=function(Un){var Qr=Se(sr(Ot)),Dr=Qr;Qr.isNaN()?Dr=zr(Qt,Un):Dr=zr(Qr,Un),or!==void 0?vn(Qt,!1):Dr.isNaN()||vn(Dr,!1)},Yr=function(){qt.current=!0},Li=function(Un){var Qr=Un.key,Dr=Un.shiftKey;qt.current=!0,An.current=Dr,Qr==="Enter"&&(mn.current||(qt.current=!1),En(!1),Or==null||Or(Un)),kr!==!1&&!mn.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Qr)&&(Vr(Qr==="Up"||Qr==="ArrowUp"),Un.preventDefault())},Yi=function(){qt.current=!1,An.current=!1},ni=function(){En(!1),sn(!1),qt.current=!1};return(0,Ze.o)(function(){Qt.isInvalidate()||vn(Qt,!1)},[nr]),(0,Ze.o)(function(){var tr=Se(or);wn(tr);var Un=Se(sr(Ot));(!tr.equals(Un)||!qt.current||ai)&&vn(tr,qt.current)},[or]),(0,Ze.o)(function(){ai&&_r()},[Ot]),Je.createElement("div",{className:Ye()(Zt,ci==null?void 0:ci.input,nn,(yt={},(0,Ee.Z)(yt,"".concat(Zt,"-focused"),Ht),(0,Ee.Z)(yt,"".concat(Zt,"-disabled"),wr),(0,Ee.Z)(yt,"".concat(Zt,"-readonly"),Tr),(0,Ee.Z)(yt,"".concat(Zt,"-not-a-number"),Qt.isNaN()),(0,Ee.Z)(yt,"".concat(Zt,"-out-of-range"),!Qt.isInvalidate()&&!di(Qt)),yt)),style:Cn,onFocus:function(){sn(!0)},onBlur:ni,onKeyDown:Li,onKeyUp:Yi,onCompositionStart:oi,onCompositionEnd:ti,onBeforeInput:Yr},Fr&&Je.createElement(Bt,{prefixCls:Zt,upNode:Yn,downNode:hr,upDisabled:Sn,downDisabled:bn,onStep:Vr}),Je.createElement("div",{className:"".concat(nt,"-wrap")},Je.createElement("input",(0,ye.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":In,"aria-valuemax":Dn,"aria-valuenow":Qt.isInvalidate()?null:Qt.toString(),step:Vn},Ke,{ref:(0,xt.sQ)(rt,Oe),className:nt,value:Ot,onChange:Pr,disabled:wr,readOnly:Tr}))))}),dn=Je.forwardRef(function(vt,Oe){var yt=vt.disabled,jt=vt.style,Zt=vt.prefixCls,nn=vt.value,Cn=vt.prefix,In=vt.suffix,Dn=vt.addonBefore,Kn=vt.addonAfter,Vn=vt.classes,_n=vt.className,or=vt.classNames,wr=(0,we.Z)(vt,It),Tr=Je.useRef(null),Yn=function(kr){Tr.current&&(0,ge.nH)(Tr.current,kr)};return Je.createElement(Fe.BaseInput,{inputElement:Je.createElement(Lt,(0,ye.Z)({prefixCls:Zt,disabled:yt,classNames:or,ref:(0,xt.sQ)(Tr,Oe)},wr)),className:_n,triggerFocus:Yn,prefixCls:Zt,value:nn,disabled:yt,style:jt,prefix:Cn,suffix:In,addonAfter:Kn,addonBefore:Dn,classes:Vn,classNames:or,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});dn.displayName="InputNumber";var _t=dn,tn=_t,en=ie(19080),Jt=ie(36355),Vt=ie(92736),be=ie(1684),ce=ie(19716),ue=ie(32441),de=ie(33234),pe=ie(9937),se=ie(17313),Le=ie(74207),ht=ie(83116),_e=ie(37613);const Ne=(vt,Oe)=>{let{componentCls:yt,borderRadiusSM:jt,borderRadiusLG:Zt}=vt;const nn=Oe==="lg"?Zt:jt;return{[`&-${Oe}`]:{[`${yt}-handler-wrap`]:{borderStartEndRadius:nn,borderEndEndRadius:nn},[`${yt}-handler-up`]:{borderStartEndRadius:nn},[`${yt}-handler-down`]:{borderEndEndRadius:nn}}}},St=vt=>{const{componentCls:Oe,lineWidth:yt,lineType:jt,colorBorder:Zt,borderRadius:nn,fontSizeLG:Cn,controlHeightLG:In,controlHeightSM:Dn,colorError:Kn,paddingInlineSM:Vn,colorTextDescription:_n,motionDurationMid:or,handleHoverColor:wr,paddingInline:Tr,paddingBlock:Yn,handleBg:hr,handleActiveBg:kr,colorTextDisabled:Qn,borderRadiusSM:Fr,borderRadiusLG:ci,controlWidth:Cr,handleVisible:pi,handleBorderColor:ai}=vt;return[{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,se.Wf)(vt)),(0,pe.ik)(vt)),(0,pe.bi)(vt,Oe)),{display:"inline-block",width:Cr,margin:0,padding:0,border:`${yt}px ${jt} ${Zt}`,borderRadius:nn,"&-rtl":{direction:"rtl",[`${Oe}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Cn,borderRadius:ci,[`input${Oe}-input`]:{height:In-2*yt}},"&-sm":{padding:0,borderRadius:Fr,[`input${Oe}-input`]:{height:Dn-2*yt,padding:`0 ${Vn}px`}},"&:hover":Object.assign({},(0,pe.pU)(vt)),"&-focused":Object.assign({},(0,pe.M1)(vt)),"&-out-of-range":{[`${Oe}-input-wrap`]:{input:{color:Kn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,se.Wf)(vt)),(0,pe.s7)(vt)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Oe}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Oe}-group-addon`]:{borderRadius:ci,fontSize:vt.fontSizeLG}},"&-sm":{[`${Oe}-group-addon`]:{borderRadius:Fr}},[`${Oe}-wrapper-disabled > ${Oe}-group-addon`]:Object.assign({},(0,pe.Xy)(vt))}}),[`&-disabled ${Oe}-input`]:{cursor:"not-allowed"},[Oe]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,se.Wf)(vt)),{width:"100%",padding:`${Yn}px ${Tr}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:nn,outline:0,transition:`all ${or} linear`,appearance:"textfield",fontSize:"inherit"}),(0,pe.nz)(vt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Oe]:Object.assign(Object.assign(Object.assign({[`&:hover ${Oe}-handler-wrap, &-focused ${Oe}-handler-wrap`]:{opacity:1},[`${Oe}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:vt.handleWidth,height:"100%",background:hr,borderStartStartRadius:0,borderStartEndRadius:nn,borderEndEndRadius:nn,borderEndStartRadius:0,opacity:pi===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${or} linear ${or}`,[`${Oe}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Oe}-handler-up-inner,
|
|
|
${Oe}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:vt.handleFontSize}}},[`${Oe}-handler`]:{height:"50%",overflow:"hidden",color:_n,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${yt}px ${jt} ${ai}`,transition:`all ${or} linear`,"&:active":{background:kr},"&:hover":{height:"60%",[`
|
|
|
${Oe}-handler-up-inner,
|
|
|
${Oe}-handler-down-inner
|
|
|
`]:{color:wr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,se.Ro)()),{color:_n,transition:`all ${or} linear`,userSelect:"none"})},[`${Oe}-handler-up`]:{borderStartEndRadius:nn},[`${Oe}-handler-down`]:{borderBlockStart:`${yt}px ${jt} ${ai}`,borderEndEndRadius:nn}},Ne(vt,"lg")),Ne(vt,"sm")),{"&-disabled, &-readonly":{[`${Oe}-handler-wrap`]:{display:"none"},[`${Oe}-input`]:{color:"inherit"}},[`
|
|
|
${Oe}-handler-up-disabled,
|
|
|
${Oe}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Oe}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Oe}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Qn}})},{[`${Oe}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Oe}-handler-down`]:{borderBlockStartWidth:0}}}]},gt=vt=>{const{componentCls:Oe,paddingBlock:yt,paddingInline:jt,inputAffixPadding:Zt,controlWidth:nn,borderRadiusLG:Cn,borderRadiusSM:In}=vt;return{[`${Oe}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,pe.ik)(vt)),(0,pe.bi)(vt,`${Oe}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:nn,padding:0,paddingInlineStart:jt,"&-lg":{borderRadius:Cn},"&-sm":{borderRadius:In},[`&:not(${Oe}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,pe.pU)(vt)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Oe}-disabled`]:{background:"transparent"},[`> div${Oe}`]:{width:"100%",border:"none",outline:"none",[`&${Oe}-focused`]:{boxShadow:"none !important"}},[`input${Oe}-input`]:{padding:`${yt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Oe}-handler-wrap`]:{zIndex:2},[Oe]:{"&-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:jt,marginInlineStart:Zt}}})}};var Xe=(0,ht.Z)("InputNumber",vt=>{const Oe=(0,_e.TS)(vt,(0,pe.e5)(vt));return[St(Oe),gt(Oe),(0,Le.c)(Oe)]},vt=>Object.assign(Object.assign({},(0,pe.TM)(vt)),{controlWidth:90,handleWidth:vt.controlHeightSM-vt.lineWidth*2,handleFontSize:vt.fontSize/2,handleVisible:"auto",handleActiveBg:vt.colorFillAlter,handleBg:vt.colorBgContainer,handleHoverColor:vt.colorPrimary,handleBorderColor:vt.colorBorder})),wt=function(vt,Oe){var yt={};for(var jt in vt)Object.prototype.hasOwnProperty.call(vt,jt)&&Oe.indexOf(jt)<0&&(yt[jt]=vt[jt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,jt=Object.getOwnPropertySymbols(vt);Zt<jt.length;Zt++)Oe.indexOf(jt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(vt,jt[Zt])&&(yt[jt[Zt]]=vt[jt[Zt]]);return yt};const Xt=Je.forwardRef((vt,Oe)=>{const{getPrefixCls:yt,direction:jt}=Je.useContext(Jt.E_),Zt=Je.useRef(null);Je.useImperativeHandle(Oe,()=>Zt.current);const{className:nn,rootClassName:Cn,size:In,disabled:Dn,prefixCls:Kn,addonBefore:Vn,addonAfter:_n,prefix:or,bordered:wr=!0,readOnly:Tr,status:Yn,controls:hr}=vt,kr=wt(vt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Qn=yt("input-number",Kn),[Fr,ci]=Xe(Qn),{compactSize:Cr,compactItemClassnames:pi}=(0,de.ri)(Qn,jt);let ai=Je.createElement(ke.Z,{className:`${Qn}-handler-up-inner`}),nr=Je.createElement(oe.Z,{className:`${Qn}-handler-down-inner`});const yr=typeof hr=="boolean"?hr:void 0;typeof hr=="object"&&(ai=typeof hr.upIcon=="undefined"?ai:Je.createElement("span",{className:`${Qn}-handler-up-inner`},hr.upIcon),nr=typeof hr.downIcon=="undefined"?nr:Je.createElement("span",{className:`${Qn}-handler-down-inner`},hr.downIcon));const{hasFeedback:Hn,status:Gn,isFormItemInput:Or,feedbackIcon:Rt}=Je.useContext(ue.aM),Ke=(0,en.F)(Gn,Yn),nt=(0,ce.Z)(qt=>{var mn;return(mn=In!=null?In:Cr)!==null&&mn!==void 0?mn:qt}),rt=Je.useContext(be.Z),it=Dn!=null?Dn:rt,Dt=Ye()({[`${Qn}-lg`]:nt==="large",[`${Qn}-sm`]:nt==="small",[`${Qn}-rtl`]:jt==="rtl",[`${Qn}-borderless`]:!wr,[`${Qn}-in-form-item`]:Or},(0,en.Z)(Qn,Ke),pi,ci),Ht=`${Qn}-group`,sn=Je.createElement(tn,Object.assign({ref:Zt,disabled:it,className:Ye()(nn,Cn),upHandler:ai,downHandler:nr,prefixCls:Qn,readOnly:Tr,controls:yr,prefix:or,suffix:Hn&&Rt,addonAfter:_n&&Je.createElement(de.BR,null,Je.createElement(ue.Ux,{override:!0,status:!0},_n)),addonBefore:Vn&&Je.createElement(de.BR,null,Je.createElement(ue.Ux,{override:!0,status:!0},Vn)),classNames:{input:Dt},classes:{affixWrapper:Ye()((0,en.Z)(`${Qn}-affix-wrapper`,Ke,Hn),{[`${Qn}-affix-wrapper-sm`]:nt==="small",[`${Qn}-affix-wrapper-lg`]:nt==="large",[`${Qn}-affix-wrapper-rtl`]:jt==="rtl",[`${Qn}-affix-wrapper-borderless`]:!wr},ci),wrapper:Ye()({[`${Ht}-rtl`]:jt==="rtl",[`${Qn}-wrapper-disabled`]:it},ci),group:Ye()({[`${Qn}-group-wrapper-sm`]:nt==="small",[`${Qn}-group-wrapper-lg`]:nt==="large",[`${Qn}-group-wrapper-rtl`]:jt==="rtl"},(0,en.Z)(`${Qn}-group-wrapper`,Ke,Hn),ci)}},kr));return Fr(sn)}),bt=Xt,$t=vt=>Je.createElement(Vt.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Je.createElement(Xt,Object.assign({},vt)));bt._InternalPanelDoNotUseOrYouWillBeFired=$t;var on=bt},9432:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return At},n:function(){return ct}});var oe=ie(19248),ke=ie(92310),Ce=ie.n(ke),Ye=ie(93681),ye=ie(8654),Ee=ie(59301),he=ie(19080),xe=ie(36355),we=ie(1684),Te=ie(19716),qe=ie(32441),Ie=ie(33234),Re=ie(59412),lt=ie(9937);function Ue(ut){return!!(ut.prefix||ut.suffix||ut.allowClear)}var We=function(ut,ot){var je={};for(var Se in ut)Object.prototype.hasOwnProperty.call(ut,Se)&&ot.indexOf(Se)<0&&(je[Se]=ut[Se]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Se=Object.getOwnPropertySymbols(ut);Fe<Se.length;Fe++)ot.indexOf(Se[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ut,Se[Fe])&&(je[Se[Fe]]=ut[Se[Fe]]);return je};function ct(ut,ot){if(!ut)return;ut.focus(ot);const{cursor:je}=ot||{};if(je){const Se=ut.value.length;switch(je){case"start":ut.setSelectionRange(0,0);break;case"end":ut.setSelectionRange(Se,Se);break;default:ut.setSelectionRange(0,Se);break}}}var At=(0,Ee.forwardRef)((ut,ot)=>{var je;const{prefixCls:Se,bordered:Fe=!0,status:Ze,size:xt,disabled:Je,onBlur:dt,onFocus:Be,suffix:kt,allowClear:He,addonAfter:Tt,addonBefore:mt,className:Et,style:zt,styles:Bt,rootClassName:De,onChange:ge,classNames:at}=ut,Ct=We(ut,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:It,direction:Qe,input:et}=Ee.useContext(xe.E_),Lt=It("input",Se),dn=(0,Ee.useRef)(null),[_t,tn]=(0,lt.ZP)(Lt),{compactSize:en,compactItemClassnames:Jt}=(0,Ie.ri)(Lt,Qe),Vt=(0,Te.Z)(Xt=>{var bt;return(bt=xt!=null?xt:en)!==null&&bt!==void 0?bt:Xt}),be=Ee.useContext(we.Z),ce=Je!=null?Je:be,{status:ue,hasFeedback:de,feedbackIcon:pe}=(0,Ee.useContext)(qe.aM),se=(0,he.F)(ue,Ze),Le=Ue(ut)||!!de,ht=(0,Ee.useRef)(Le);(0,Ee.useEffect)(()=>{var Xt;Le&&ht.current,ht.current=Le},[Le]);const _e=(0,Re.Z)(dn,!0),Ne=Xt=>{_e(),dt==null||dt(Xt)},St=Xt=>{_e(),Be==null||Be(Xt)},gt=Xt=>{_e(),ge==null||ge(Xt)},Xe=(de||kt)&&Ee.createElement(Ee.Fragment,null,kt,de&&pe);let wt;return typeof He=="object"&&(He!=null&&He.clearIcon)?wt=He:He&&(wt={clearIcon:Ee.createElement(oe.Z,null)}),_t(Ee.createElement(Ye.default,Object.assign({ref:(0,ye.sQ)(ot,dn),prefixCls:Lt,autoComplete:et==null?void 0:et.autoComplete},Ct,{disabled:ce,onBlur:Ne,onFocus:St,style:Object.assign(Object.assign({},et==null?void 0:et.style),zt),styles:Object.assign(Object.assign({},et==null?void 0:et.styles),Bt),suffix:Xe,allowClear:wt,className:Ce()(Et,De,Jt,et==null?void 0:et.className),onChange:gt,addonAfter:Tt&&Ee.createElement(Ie.BR,null,Ee.createElement(qe.Ux,{override:!0,status:!0},Tt)),addonBefore:mt&&Ee.createElement(Ie.BR,null,Ee.createElement(qe.Ux,{override:!0,status:!0},mt)),classNames:Object.assign(Object.assign(Object.assign({},at),et==null?void 0:et.classNames),{input:Ce()({[`${Lt}-sm`]:Vt==="small",[`${Lt}-lg`]:Vt==="large",[`${Lt}-rtl`]:Qe==="rtl",[`${Lt}-borderless`]:!Fe},!Le&&(0,he.Z)(Lt,se),at==null?void 0:at.input,(je=et==null?void 0:et.classNames)===null||je===void 0?void 0:je.input,tn)}),classes:{affixWrapper:Ce()({[`${Lt}-affix-wrapper-sm`]:Vt==="small",[`${Lt}-affix-wrapper-lg`]:Vt==="large",[`${Lt}-affix-wrapper-rtl`]:Qe==="rtl",[`${Lt}-affix-wrapper-borderless`]:!Fe},(0,he.Z)(`${Lt}-affix-wrapper`,se,de),tn),wrapper:Ce()({[`${Lt}-group-rtl`]:Qe==="rtl"},tn),group:Ce()({[`${Lt}-group-wrapper-sm`]:Vt==="small",[`${Lt}-group-wrapper-lg`]:Vt==="large",[`${Lt}-group-wrapper-rtl`]:Qe==="rtl",[`${Lt}-group-wrapper-disabled`]:ce},(0,he.Z)(`${Lt}-group-wrapper`,se,de),tn)}})))})},1643:function(gn,Kt,ie){"use strict";var oe=ie(19248),ke=ie(92310),Ce=ie.n(ke),Ye=ie(9296),ye=ie(59301),Ee=ie(19080),he=ie(36355),xe=ie(1684),we=ie(19716),Te=ie(32441),qe=ie(9432),Ie=ie(9937),Re=function(Ue,We){var ct={};for(var tt in Ue)Object.prototype.hasOwnProperty.call(Ue,tt)&&We.indexOf(tt)<0&&(ct[tt]=Ue[tt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,tt=Object.getOwnPropertySymbols(Ue);At<tt.length;At++)We.indexOf(tt[At])<0&&Object.prototype.propertyIsEnumerable.call(Ue,tt[At])&&(ct[tt[At]]=Ue[tt[At]]);return ct};const lt=(0,ye.forwardRef)((Ue,We)=>{const{prefixCls:ct,bordered:tt=!0,size:At,disabled:ut,status:ot,allowClear:je,showCount:Se,classNames:Fe,rootClassName:Ze,className:xt}=Ue,Je=Re(Ue,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:dt,direction:Be}=ye.useContext(he.E_),kt=(0,we.Z)(At),He=ye.useContext(xe.Z),Tt=ut!=null?ut:He,{status:mt,hasFeedback:Et,feedbackIcon:zt}=ye.useContext(Te.aM),Bt=(0,Ee.F)(mt,ot),De=ye.useRef(null);ye.useImperativeHandle(We,()=>{var Qe;return{resizableTextArea:(Qe=De.current)===null||Qe===void 0?void 0:Qe.resizableTextArea,focus:et=>{var Lt,dn;(0,qe.n)((dn=(Lt=De.current)===null||Lt===void 0?void 0:Lt.resizableTextArea)===null||dn===void 0?void 0:dn.textArea,et)},blur:()=>{var et;return(et=De.current)===null||et===void 0?void 0:et.blur()}}});const ge=dt("input",ct);let at;typeof je=="object"&&(je!=null&&je.clearIcon)?at=je:je&&(at={clearIcon:ye.createElement(oe.Z,null)});const[Ct,It]=(0,Ie.ZP)(ge);return Ct(ye.createElement(Ye.default,Object.assign({},Je,{disabled:Tt,allowClear:at,className:Ce()(xt,Ze),classes:{affixWrapper:Ce()(`${ge}-textarea-affix-wrapper`,{[`${ge}-affix-wrapper-rtl`]:Be==="rtl",[`${ge}-affix-wrapper-borderless`]:!tt,[`${ge}-affix-wrapper-sm`]:kt==="small",[`${ge}-affix-wrapper-lg`]:kt==="large",[`${ge}-textarea-show-count`]:Se},(0,Ee.Z)(`${ge}-affix-wrapper`,Bt),It)},classNames:Object.assign(Object.assign({},Fe),{textarea:Ce()({[`${ge}-borderless`]:!tt,[`${ge}-sm`]:kt==="small",[`${ge}-lg`]:kt==="large"},(0,Ee.Z)(ge,Bt),It,Fe==null?void 0:Fe.textarea)}),prefixCls:ge,suffix:Et&&ye.createElement("span",{className:`${ge}-textarea-suffix`},zt),showCount:Se,ref:De})))});Kt.Z=lt},59412:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return ke}});var oe=ie(59301);function ke(Ce,Ye){const ye=(0,oe.useRef)([]),Ee=()=>{ye.current.push(setTimeout(()=>{var he,xe,we,Te;!((he=Ce.current)===null||he===void 0)&&he.input&&((xe=Ce.current)===null||xe===void 0?void 0:xe.input.getAttribute("type"))==="password"&&(!((we=Ce.current)===null||we===void 0)&&we.input.hasAttribute("value"))&&((Te=Ce.current)===null||Te===void 0||Te.input.removeAttribute("value"))}))};return(0,oe.useEffect)(()=>(Ye&&Ee(),()=>ye.current.forEach(he=>{he&&clearTimeout(he)})),[]),Ee}},92832:function(gn,Kt,ie){"use strict";ie.d(Kt,{default:function(){return kt}});var oe=ie(92310),ke=ie.n(oe),Ce=ie(59301),Ye=ie(36355),ye=ie(32441),Ee=ie(9937),xe=He=>{const{getPrefixCls:Tt,direction:mt}=(0,Ce.useContext)(Ye.E_),{prefixCls:Et,className:zt}=He,Bt=Tt("input-group",Et),De=Tt("input"),[ge,at]=(0,Ee.ZP)(De),Ct=ke()(Bt,{[`${Bt}-lg`]:He.size==="large",[`${Bt}-sm`]:He.size==="small",[`${Bt}-compact`]:He.compact,[`${Bt}-rtl`]:mt==="rtl"},at,zt),It=(0,Ce.useContext)(ye.aM),Qe=(0,Ce.useMemo)(()=>Object.assign(Object.assign({},It),{isFormItemInput:!1}),[It]);return ge(Ce.createElement("span",{className:Ct,style:He.style,onMouseEnter:He.onMouseEnter,onMouseLeave:He.onMouseLeave,onFocus:He.onFocus,onBlur:He.onBlur},Ce.createElement(ye.aM.Provider,{value:Qe},He.children)))},we=ie(9432),Te=ie(73331),qe=ie(15277),Ie=ie(2738),Re=ie(8654),lt=ie(59412),Ue=function(He,Tt){var mt={};for(var Et in He)Object.prototype.hasOwnProperty.call(He,Et)&&Tt.indexOf(Et)<0&&(mt[Et]=He[Et]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Et=Object.getOwnPropertySymbols(He);zt<Et.length;zt++)Tt.indexOf(Et[zt])<0&&Object.prototype.propertyIsEnumerable.call(He,Et[zt])&&(mt[Et[zt]]=He[Et[zt]]);return mt};const We=He=>He?Ce.createElement(qe.Z,null):Ce.createElement(Te.Z,null),ct={click:"onClick",hover:"onMouseOver"};var At=Ce.forwardRef((He,Tt)=>{const{visibilityToggle:mt=!0}=He,Et=typeof mt=="object"&&mt.visible!==void 0,[zt,Bt]=(0,Ce.useState)(()=>Et?mt.visible:!1),De=(0,Ce.useRef)(null);Ce.useEffect(()=>{Et&&Bt(mt.visible)},[Et,mt]);const ge=(0,lt.Z)(De),at=()=>{const{disabled:ce}=He;ce||(zt&&ge(),Bt(ue=>{var de;const pe=!ue;return typeof mt=="object"&&((de=mt.onVisibleChange)===null||de===void 0||de.call(mt,pe)),pe}))},Ct=ce=>{const{action:ue="click",iconRender:de=We}=He,pe=ct[ue]||"",se=de(zt),Le={[pe]:at,className:`${ce}-icon`,key:"passwordIcon",onMouseDown:ht=>{ht.preventDefault()},onMouseUp:ht=>{ht.preventDefault()}};return Ce.cloneElement(Ce.isValidElement(se)?se:Ce.createElement("span",null,se),Le)},{className:It,prefixCls:Qe,inputPrefixCls:et,size:Lt}=He,dn=Ue(He,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:_t}=Ce.useContext(Ye.E_),tn=_t("input",et),en=_t("input-password",Qe),Jt=mt&&Ct(en),Vt=ke()(en,It,{[`${en}-${Lt}`]:!!Lt}),be=Object.assign(Object.assign({},(0,Ie.Z)(dn,["suffix","iconRender","visibilityToggle"])),{type:zt?"text":"password",className:Vt,prefixCls:tn,suffix:Jt});return Lt&&(be.size=Lt),Ce.createElement(we.Z,Object.assign({ref:(0,Re.sQ)(Tt,De)},be))}),ut=ie(47472),ot=ie(92343),je=ie(3113),Se=ie(19716),Fe=ie(33234),Ze=function(He,Tt){var mt={};for(var Et in He)Object.prototype.hasOwnProperty.call(He,Et)&&Tt.indexOf(Et)<0&&(mt[Et]=He[Et]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Et=Object.getOwnPropertySymbols(He);zt<Et.length;zt++)Tt.indexOf(Et[zt])<0&&Object.prototype.propertyIsEnumerable.call(He,Et[zt])&&(mt[Et[zt]]=He[Et[zt]]);return mt},Je=Ce.forwardRef((He,Tt)=>{const{prefixCls:mt,inputPrefixCls:Et,className:zt,size:Bt,suffix:De,enterButton:ge=!1,addonAfter:at,loading:Ct,disabled:It,onSearch:Qe,onChange:et,onCompositionStart:Lt,onCompositionEnd:dn}=He,_t=Ze(He,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:tn,direction:en}=Ce.useContext(Ye.E_),Jt=Ce.useRef(!1),Vt=tn("input-search",mt),be=tn("input",Et),{compactSize:ce}=(0,Fe.ri)(Vt,en),ue=(0,Se.Z)($t=>{var on;return(on=Bt!=null?Bt:ce)!==null&&on!==void 0?on:$t}),de=Ce.useRef(null),pe=$t=>{$t&&$t.target&&$t.type==="click"&&Qe&&Qe($t.target.value,$t,{source:"clear"}),et&&et($t)},se=$t=>{var on;document.activeElement===((on=de.current)===null||on===void 0?void 0:on.input)&&$t.preventDefault()},Le=$t=>{var on,vt;Qe&&Qe((vt=(on=de.current)===null||on===void 0?void 0:on.input)===null||vt===void 0?void 0:vt.value,$t,{source:"input"})},ht=$t=>{Jt.current||Ct||Le($t)},_e=typeof ge=="boolean"?Ce.createElement(ut.Z,null):null,Ne=`${Vt}-button`;let St;const gt=ge||{},Xe=gt.type&>.type.__ANT_BUTTON===!0;Xe||gt.type==="button"?St=(0,ot.Tm)(gt,Object.assign({onMouseDown:se,onClick:$t=>{var on,vt;(vt=(on=gt==null?void 0:gt.props)===null||on===void 0?void 0:on.onClick)===null||vt===void 0||vt.call(on,$t),Le($t)},key:"enterButton"},Xe?{className:Ne,size:ue}:{})):St=Ce.createElement(je.ZP,{className:Ne,type:ge?"primary":void 0,size:ue,disabled:It,key:"enterButton",onMouseDown:se,onClick:Le,loading:Ct,icon:_e},ge),at&&(St=[St,(0,ot.Tm)(at,{key:"addonAfter"})]);const wt=ke()(Vt,{[`${Vt}-rtl`]:en==="rtl",[`${Vt}-${ue}`]:!!ue,[`${Vt}-with-button`]:!!ge},zt),Xt=$t=>{Jt.current=!0,Lt==null||Lt($t)},bt=$t=>{Jt.current=!1,dn==null||dn($t)};return Ce.createElement(we.Z,Object.assign({ref:(0,Re.sQ)(de,Tt),onPressEnter:ht},_t,{size:ue,onCompositionStart:Xt,onCompositionEnd:bt,prefixCls:be,addonAfter:St,suffix:De,onChange:pe,className:wt,disabled:It}))}),dt=ie(1643);const Be=we.Z;Be.Group=xe,Be.Search=Je,Be.TextArea=dt.Z,Be.Password=At;var kt=Be},9937:function(gn,Kt,ie){"use strict";ie.d(Kt,{M1:function(){return he},TM:function(){return ot},Xy:function(){return xe},bi:function(){return qe},e5:function(){return ut},ik:function(){return Ie},nz:function(){return ye},pU:function(){return Ee},s7:function(){return Re},x0:function(){return Te}});var oe=ie(17313),ke=ie(74207),Ce=ie(37613),Ye=ie(83116);const ye=je=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:je,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ee=je=>({borderColor:je.hoverBorderColor}),he=je=>({borderColor:je.activeBorderColor,boxShadow:je.activeShadow,outline:0}),xe=je=>({color:je.colorTextDisabled,backgroundColor:je.colorBgContainerDisabled,borderColor:je.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Ee((0,Ce.TS)(je,{hoverBorderColor:je.colorBorder})))}),we=je=>{const{paddingBlockLG:Se,fontSizeLG:Fe,lineHeightLG:Ze,borderRadiusLG:xt,paddingInlineLG:Je}=je;return{padding:`${Se}px ${Je}px`,fontSize:Fe,lineHeight:Ze,borderRadius:xt}},Te=je=>({padding:`${je.paddingBlockSM}px ${je.paddingInlineSM}px`,borderRadius:je.borderRadiusSM}),qe=(je,Se)=>{const{componentCls:Fe,colorError:Ze,colorWarning:xt,errorActiveShadow:Je,warningActiveShadow:dt,colorErrorBorderHover:Be,colorWarningBorderHover:kt}=je;return{[`&-status-error:not(${Se}-disabled):not(${Se}-borderless)${Se}`]:{borderColor:Ze,"&:hover":{borderColor:Be},"&:focus, &-focused":Object.assign({},he((0,Ce.TS)(je,{activeBorderColor:Ze,activeShadow:Je}))),[`${Fe}-prefix, ${Fe}-suffix`]:{color:Ze}},[`&-status-warning:not(${Se}-disabled):not(${Se}-borderless)${Se}`]:{borderColor:xt,"&:hover":{borderColor:kt},"&:focus, &-focused":Object.assign({},he((0,Ce.TS)(je,{activeBorderColor:xt,activeShadow:dt}))),[`${Fe}-prefix, ${Fe}-suffix`]:{color:xt}}}},Ie=je=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${je.paddingBlock}px ${je.paddingInline}px`,color:je.colorText,fontSize:je.fontSize,lineHeight:je.lineHeight,backgroundColor:je.colorBgContainer,backgroundImage:"none",borderWidth:je.lineWidth,borderStyle:je.lineType,borderColor:je.colorBorder,borderRadius:je.borderRadius,transition:`all ${je.motionDurationMid}`},ye(je.colorTextPlaceholder)),{"&:hover":Object.assign({},Ee(je)),"&:focus, &-focused":Object.assign({},he(je)),"&-disabled, &[disabled]":Object.assign({},xe(je)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:je.controlHeight,lineHeight:je.lineHeight,verticalAlign:"bottom",transition:`all ${je.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},we(je)),"&-sm":Object.assign({},Te(je)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Re=je=>{const{componentCls:Se,antCls:Fe}=je;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:je.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Se}, &-lg > ${Se}-group-addon`]:Object.assign({},we(je)),[`&-sm ${Se}, &-sm > ${Se}-group-addon`]:Object.assign({},Te(je)),[`&-lg ${Fe}-select-single ${Fe}-select-selector`]:{height:je.controlHeightLG},[`&-sm ${Fe}-select-single ${Fe}-select-selector`]:{height:je.controlHeightSM},[`> ${Se}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Se}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${je.paddingInline}px`,color:je.colorText,fontWeight:"normal",fontSize:je.fontSize,textAlign:"center",backgroundColor:je.colorFillAlter,border:`${je.lineWidth}px ${je.lineType} ${je.colorBorder}`,borderRadius:je.borderRadius,transition:`all ${je.motionDurationSlow}`,lineHeight:1,[`${Fe}-select`]:{margin:`-${je.paddingBlock+1}px -${je.paddingInline}px`,[`&${Fe}-select-single:not(${Fe}-select-customize-input)`]:{[`${Fe}-select-selector`]:{backgroundColor:"inherit",border:`${je.lineWidth}px ${je.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Fe}-select-selector`]:{color:je.colorPrimary}}},[`${Fe}-cascader-picker`]:{margin:`-9px -${je.paddingInline}px`,backgroundColor:"transparent",[`${Fe}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Se}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Se}-search-with-button &`]:{zIndex:0}}},[`> ${Se}:first-child, ${Se}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Fe}-select ${Fe}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Se}-affix-wrapper`]:{[`&:not(:first-child) ${Se}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Se}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Se}:last-child, ${Se}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Fe}-select ${Fe}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Se}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Se}-search &`]:{borderStartStartRadius:je.borderRadius,borderEndStartRadius:je.borderRadius}},[`&:not(:first-child), ${Se}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Se}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,oe.dF)()),{[`${Se}-group-addon, ${Se}-group-wrap, > ${Se}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:je.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${Se}-affix-wrapper,
|
|
|
& > ${Se}-number-affix-wrapper,
|
|
|
& > ${Fe}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-je.lineWidth,borderInlineEndWidth:je.lineWidth},[`${Se}`]:{float:"none"},[`& > ${Fe}-select > ${Fe}-select-selector,
|
|
|
& > ${Fe}-select-auto-complete ${Se},
|
|
|
& > ${Fe}-cascader-picker ${Se},
|
|
|
& > ${Se}-group-wrapper ${Se}`]:{borderInlineEndWidth:je.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Fe}-select-focused`]:{zIndex:1},[`& > ${Fe}-select > ${Fe}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Fe}-select:first-child > ${Fe}-select-selector,
|
|
|
& > ${Fe}-select-auto-complete:first-child ${Se},
|
|
|
& > ${Fe}-cascader-picker:first-child ${Se}`]:{borderStartStartRadius:je.borderRadius,borderEndStartRadius:je.borderRadius},[`& > *:last-child,
|
|
|
& > ${Fe}-select:last-child > ${Fe}-select-selector,
|
|
|
& > ${Fe}-cascader-picker:last-child ${Se},
|
|
|
& > ${Fe}-cascader-picker-focused:last-child ${Se}`]:{borderInlineEndWidth:je.lineWidth,borderStartEndRadius:je.borderRadius,borderEndEndRadius:je.borderRadius},[`& > ${Fe}-select-auto-complete ${Se}`]:{verticalAlign:"top"},[`${Se}-group-wrapper + ${Se}-group-wrapper`]:{marginInlineStart:-je.lineWidth,[`${Se}-affix-wrapper`]:{borderRadius:0}},[`${Se}-group-wrapper:not(:last-child)`]:{[`&${Se}-search > ${Se}-group`]:{[`& > ${Se}-group-addon > ${Se}-search-button`]:{borderRadius:0},[`& > ${Se}`]:{borderStartStartRadius:je.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:je.borderRadius}}}})}},lt=je=>{const{componentCls:Se,controlHeightSM:Fe,lineWidth:Ze}=je,Je=(Fe-Ze*2-16)/2;return{[Se]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(je)),Ie(je)),qe(je,Se)),{'&[type="color"]':{height:je.controlHeight,[`&${Se}-lg`]:{height:je.controlHeightLG},[`&${Se}-sm`]:{height:Fe,paddingTop:Je,paddingBottom:Je}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Ue=je=>{const{componentCls:Se}=je;return{[`${Se}-clear-icon`]:{margin:0,color:je.colorTextQuaternary,fontSize:je.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${je.motionDurationSlow}`,"&:hover":{color:je.colorTextTertiary},"&:active":{color:je.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${je.inputAffixPadding}px`}}}},We=je=>{const{componentCls:Se,inputAffixPadding:Fe,colorTextDescription:Ze,motionDurationSlow:xt,colorIcon:Je,colorIconHover:dt,iconCls:Be}=je;return{[`${Se}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ie(je)),{display:"inline-flex",[`&:not(${Se}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Ee(je)),{zIndex:1,[`${Se}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Se}[disabled]`]:{background:"transparent"}},[`> input${Se}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Se}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:je.paddingXS}},"&-show-count-suffix":{color:Ze},"&-show-count-has-suffix":{marginInlineEnd:je.paddingXXS},"&-prefix":{marginInlineEnd:Fe},"&-suffix":{marginInlineStart:Fe}}}),Ue(je)),{[`${Be}${Se}-password-icon`]:{color:Je,cursor:"pointer",transition:`all ${xt}`,"&:hover":{color:dt}}}),qe(je,`${Se}-affix-wrapper`))}},ct=je=>{const{componentCls:Se,colorError:Fe,colorWarning:Ze,borderRadiusLG:xt,borderRadiusSM:Je}=je;return{[`${Se}-group`]:Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(je)),Re(je)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Se}-group-addon`]:{borderRadius:xt,fontSize:je.fontSizeLG}},"&-sm":{[`${Se}-group-addon`]:{borderRadius:Je}},"&-status-error":{[`${Se}-group-addon`]:{color:Fe,borderColor:Fe}},"&-status-warning":{[`${Se}-group-addon`]:{color:Ze,borderColor:Ze}},"&-disabled":{[`${Se}-group-addon`]:Object.assign({},xe(je))},[`&:not(${Se}-compact-first-item):not(${Se}-compact-last-item)${Se}-compact-item`]:{[`${Se}, ${Se}-group-addon`]:{borderRadius:0}},[`&:not(${Se}-compact-last-item)${Se}-compact-first-item`]:{[`${Se}, ${Se}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Se}-compact-first-item)${Se}-compact-last-item`]:{[`${Se}, ${Se}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},tt=je=>{const{componentCls:Se,antCls:Fe}=je,Ze=`${Se}-search`;return{[Ze]:{[`${Se}`]:{"&:hover, &:focus":{borderColor:je.colorPrimaryHover,[`+ ${Se}-group-addon ${Ze}-button:not(${Fe}-btn-primary)`]:{borderInlineStartColor:je.colorPrimaryHover}}},[`${Se}-affix-wrapper`]:{borderRadius:0},[`${Se}-lg`]:{lineHeight:je.lineHeightLG-2e-4},[`> ${Se}-group`]:{[`> ${Se}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Ze}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:je.borderRadius,borderEndEndRadius:je.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Ze}-button:not(${Fe}-btn-primary)`]:{color:je.colorTextDescription,"&:hover":{color:je.colorPrimaryHover},"&:active":{color:je.colorPrimaryActive},[`&${Fe}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Ze}-button`]:{height:je.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Ze}-button`]:{height:je.controlHeightLG},[`&-small ${Ze}-button`]:{height:je.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Se}-compact-item`]:{[`&:not(${Se}-compact-last-item)`]:{[`${Se}-group-addon`]:{[`${Se}-search-button`]:{marginInlineEnd:-je.lineWidth,borderRadius:0}}},[`&:not(${Se}-compact-first-item)`]:{[`${Se},${Se}-affix-wrapper`]:{borderRadius:0}},[`> ${Se}-group-addon ${Se}-search-button,
|
|
|
> ${Se},
|
|
|
${Se}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Se}-affix-wrapper-focused`]:{zIndex:2}}}}},At=je=>{const{componentCls:Se,paddingLG:Fe}=je,Ze=`${Se}-textarea`;return{[Ze]:{position:"relative","&-show-count":{[`> ${Se}`]:{height:"100%"},[`${Se}-data-count`]:{position:"absolute",bottom:-je.fontSize*je.lineHeight,insetInlineEnd:0,color:je.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Se}`]:{paddingInlineEnd:Fe}},[`&-affix-wrapper${Ze}-has-feedback`]:{[`${Se}`]:{paddingInlineEnd:Fe}},[`&-affix-wrapper${Se}-affix-wrapper`]:{padding:0,[`> textarea${Se}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Se}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Se}-clear-icon`]:{position:"absolute",insetInlineEnd:je.paddingXS,insetBlockStart:je.paddingXS},[`${Ze}-suffix`]:{position:"absolute",top:0,insetInlineEnd:je.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ut(je){return(0,Ce.TS)(je,{inputAffixPadding:je.paddingXXS})}const ot=je=>{const{controlHeight:Se,fontSize:Fe,lineHeight:Ze,lineWidth:xt,controlHeightSM:Je,controlHeightLG:dt,fontSizeLG:Be,lineHeightLG:kt,paddingSM:He,controlPaddingHorizontalSM:Tt,controlPaddingHorizontal:mt,colorFillAlter:Et,colorPrimaryHover:zt,controlOutlineWidth:Bt,controlOutline:De,colorErrorOutline:ge,colorWarningOutline:at}=je;return{paddingBlock:Math.max(Math.round((Se-Fe*Ze)/2*10)/10-xt,3),paddingBlockSM:Math.max(Math.round((Je-Fe*Ze)/2*10)/10-xt,0),paddingBlockLG:Math.ceil((dt-Be*kt)/2*10)/10-xt,paddingInline:He-xt,paddingInlineSM:Tt-xt,paddingInlineLG:mt-xt,addonBg:Et,activeBorderColor:zt,hoverBorderColor:zt,activeShadow:`0 0 0 ${Bt}px ${De}`,errorActiveShadow:`0 0 0 ${Bt}px ${ge}`,warningActiveShadow:`0 0 0 ${Bt}px ${at}`}};Kt.ZP=(0,Ye.Z)("Input",je=>{const Se=(0,Ce.TS)(je,ut(je));return[lt(Se),At(Se),We(Se),ct(Se),tt(Se),(0,ke.c)(Se)]},ot)},45818:function(gn,Kt,ie){"use strict";ie.d(Kt,{D:function(){return ut},Z:function(){return Se}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Ze,xt){return ke.createElement(ye.Z,(0,oe.Z)({},Ze,{ref:xt,icon:Ye}))},he=ke.forwardRef(Ee),xe=he,we=ie(33853),Te=ie(38819),qe=ie(92310),Ie=ie.n(qe),Re=ie(2738),Ue=Fe=>!isNaN(parseFloat(Fe))&&isFinite(Fe),We=ie(36355),ct=ie(84966),tt=function(Fe,Ze){var xt={};for(var Je in Fe)Object.prototype.hasOwnProperty.call(Fe,Je)&&Ze.indexOf(Je)<0&&(xt[Je]=Fe[Je]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Je=Object.getOwnPropertySymbols(Fe);dt<Je.length;dt++)Ze.indexOf(Je[dt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Je[dt])&&(xt[Je[dt]]=Fe[Je[dt]]);return xt};const At={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ut=ke.createContext({}),ot=(()=>{let Fe=0;return function(){let Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Fe+=1,`${Ze}${Fe}`}})();var Se=ke.forwardRef((Fe,Ze)=>{const{prefixCls:xt,className:Je,trigger:dt,children:Be,defaultCollapsed:kt=!1,theme:He="dark",style:Tt={},collapsible:mt=!1,reverseArrow:Et=!1,width:zt=200,collapsedWidth:Bt=80,zeroWidthTriggerStyle:De,breakpoint:ge,onCollapse:at,onBreakpoint:Ct}=Fe,It=tt(Fe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Qe}=(0,ke.useContext)(ct.Gs),[et,Lt]=(0,ke.useState)("collapsed"in Fe?Fe.collapsed:kt),[dn,_t]=(0,ke.useState)(!1);(0,ke.useEffect)(()=>{"collapsed"in Fe&&Lt(Fe.collapsed)},[Fe.collapsed]);const tn=(ue,de)=>{"collapsed"in Fe||Lt(ue),at==null||at(ue,de)},en=(0,ke.useRef)();en.current=ue=>{_t(ue.matches),Ct==null||Ct(ue.matches),et!==ue.matches&&tn(ue.matches,"responsive")},(0,ke.useEffect)(()=>{function ue(pe){return en.current(pe)}let de;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&ge&&ge in At){de=pe(`(max-width: ${At[ge]})`);try{de.addEventListener("change",ue)}catch(se){de.addListener(ue)}ue(de)}}return()=>{try{de==null||de.removeEventListener("change",ue)}catch(pe){de==null||de.removeListener(ue)}}},[ge]),(0,ke.useEffect)(()=>{const ue=ot("ant-sider-");return Qe.addSider(ue),()=>Qe.removeSider(ue)},[]);const Jt=()=>{tn(!et,"clickTrigger")},{getPrefixCls:Vt}=(0,ke.useContext)(We.E_),be=()=>{const ue=Vt("layout-sider",xt),de=(0,Re.Z)(It,["collapsed"]),pe=et?Bt:zt,se=Ue(pe)?`${pe}px`:String(pe),Le=parseFloat(String(Bt||0))===0?ke.createElement("span",{onClick:Jt,className:Ie()(`${ue}-zero-width-trigger`,`${ue}-zero-width-trigger-${Et?"right":"left"}`),style:De},dt||ke.createElement(xe,null)):null,Ne={expanded:Et?ke.createElement(Te.Z,null):ke.createElement(we.Z,null),collapsed:Et?ke.createElement(we.Z,null):ke.createElement(Te.Z,null)}[et?"collapsed":"expanded"],St=dt!==null?Le||ke.createElement("div",{className:`${ue}-trigger`,onClick:Jt,style:{width:se}},dt||Ne):null,gt=Object.assign(Object.assign({},Tt),{flex:`0 0 ${se}`,maxWidth:se,minWidth:se,width:se}),Xe=Ie()(ue,`${ue}-${He}`,{[`${ue}-collapsed`]:!!et,[`${ue}-has-trigger`]:mt&&dt!==null&&!Le,[`${ue}-below`]:!!dn,[`${ue}-zero-width`]:parseFloat(se)===0},Je);return ke.createElement("aside",Object.assign({className:Xe},de,{style:gt,ref:Ze}),ke.createElement("div",{className:`${ue}-children`},Be),mt||dn&&Le?St:null)},ce=ke.useMemo(()=>({siderCollapsed:et}),[et]);return ke.createElement(ut.Provider,{value:ce},be())})},84966:function(gn,Kt,ie){"use strict";ie.d(Kt,{VY:function(){return ut},$_:function(){return At},h4:function(){return tt},Gs:function(){return Re},ZP:function(){return ot}});var oe=ie(94480),ke=ie(92310),Ce=ie.n(ke),Ye=ie(2738),ye=ie(59301),Ee=ie(36355),he=ie(83116),we=je=>{const{componentCls:Se,bodyBg:Fe,lightSiderBg:Ze,lightTriggerBg:xt,lightTriggerColor:Je}=je;return{[`${Se}-sider-light`]:{background:Ze,[`${Se}-sider-trigger`]:{color:Je,background:xt},[`${Se}-sider-zero-width-trigger`]:{color:Je,background:xt,border:`1px solid ${Fe}`,borderInlineStart:0}}}};const Te=je=>{const{antCls:Se,componentCls:Fe,colorText:Ze,triggerColor:xt,footerBg:Je,triggerBg:dt,headerHeight:Be,headerPadding:kt,headerColor:He,footerPadding:Tt,triggerHeight:mt,zeroTriggerHeight:Et,zeroTriggerWidth:zt,motionDurationMid:Bt,motionDurationSlow:De,fontSize:ge,borderRadius:at,bodyBg:Ct,headerBg:It,siderBg:Qe}=je;return{[Fe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ct,"&, *":{boxSizing:"border-box"},[`&${Fe}-has-sider`]:{flexDirection:"row",[`> ${Fe}, > ${Fe}-content`]:{width:0}},[`${Fe}-header, &${Fe}-footer`]:{flex:"0 0 auto"},[`${Fe}-sider`]:{position:"relative",minWidth:0,background:Qe,transition:`all ${Bt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Se}-menu${Se}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:mt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:mt,color:xt,lineHeight:`${mt}px`,textAlign:"center",background:dt,cursor:"pointer",transition:`all ${Bt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Be,insetInlineEnd:-zt,zIndex:1,width:zt,height:Et,color:xt,fontSize:je.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Qe,borderStartStartRadius:0,borderStartEndRadius:at,borderEndEndRadius:at,borderEndStartRadius:0,cursor:"pointer",transition:`background ${De} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${De}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-zt,borderStartStartRadius:at,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:at}}}}},we(je)),{"&-rtl":{direction:"rtl"}}),[`${Fe}-header`]:{height:Be,padding:kt,color:He,lineHeight:`${Be}px`,background:It,[`${Se}-menu`]:{lineHeight:"inherit"}},[`${Fe}-footer`]:{padding:Tt,color:Ze,fontSize:ge,background:Je},[`${Fe}-content`]:{flex:"auto",minHeight:0}}};var qe=(0,he.Z)("Layout",je=>[Te(je)],je=>{const{colorBgLayout:Se,controlHeight:Fe,controlHeightLG:Ze,colorText:xt,controlHeightSM:Je,marginXXS:dt,colorTextLightSolid:Be,colorBgContainer:kt}=je,He=Ze*1.25;return{colorBgHeader:"#001529",colorBgBody:Se,colorBgTrigger:"#002140",bodyBg:Se,headerBg:"#001529",headerHeight:Fe*2,headerPadding:`0 ${He}px`,headerColor:xt,footerPadding:`${Je}px ${He}px`,footerBg:Se,siderBg:"#001529",triggerHeight:Ze+dt*2,triggerBg:"#002140",triggerColor:Be,zeroTriggerWidth:Ze,zeroTriggerHeight:Ze,lightSiderBg:kt,lightTriggerBg:kt,lightTriggerColor:xt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ie=function(je,Se){var Fe={};for(var Ze in je)Object.prototype.hasOwnProperty.call(je,Ze)&&Se.indexOf(Ze)<0&&(Fe[Ze]=je[Ze]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Ze=Object.getOwnPropertySymbols(je);xt<Ze.length;xt++)Se.indexOf(Ze[xt])<0&&Object.prototype.propertyIsEnumerable.call(je,Ze[xt])&&(Fe[Ze[xt]]=je[Ze[xt]]);return Fe};const Re=ye.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function lt(je){let{suffixCls:Se,tagName:Fe,displayName:Ze}=je;return xt=>ye.forwardRef((dt,Be)=>ye.createElement(xt,Object.assign({ref:Be,suffixCls:Se,tagName:Fe},dt)))}const Ue=ye.forwardRef((je,Se)=>{const{prefixCls:Fe,suffixCls:Ze,className:xt,tagName:Je}=je,dt=Ie(je,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Be}=ye.useContext(Ee.E_),kt=Be("layout",Fe),[He,Tt]=qe(kt),mt=Ze?`${kt}-${Ze}`:kt;return He(ye.createElement(Je,Object.assign({className:Ce()(Fe||mt,xt,Tt),ref:Se},dt)))}),We=ye.forwardRef((je,Se)=>{const{direction:Fe}=ye.useContext(Ee.E_),[Ze,xt]=ye.useState([]),{prefixCls:Je,className:dt,rootClassName:Be,children:kt,hasSider:He,tagName:Tt,style:mt}=je,Et=Ie(je,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),zt=(0,Ye.Z)(Et,["suffixCls"]),{getPrefixCls:Bt,layout:De}=ye.useContext(Ee.E_),ge=Bt("layout",Je),[at,Ct]=qe(ge),It=Ce()(ge,{[`${ge}-has-sider`]:typeof He=="boolean"?He:Ze.length>0,[`${ge}-rtl`]:Fe==="rtl"},De==null?void 0:De.className,dt,Be,Ct),Qe=ye.useMemo(()=>({siderHook:{addSider:et=>{xt(Lt=>[].concat((0,oe.Z)(Lt),[et]))},removeSider:et=>{xt(Lt=>Lt.filter(dn=>dn!==et))}}}),[]);return at(ye.createElement(Re.Provider,{value:Qe},ye.createElement(Tt,Object.assign({ref:Se,className:It,style:Object.assign(Object.assign({},De==null?void 0:De.style),mt)},zt),kt)))}),ct=lt({tagName:"div",displayName:"Layout"})(We),tt=lt({suffixCls:"header",tagName:"header",displayName:"Header"})(Ue),At=lt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ue),ut=lt({suffixCls:"content",tagName:"main",displayName:"Content"})(Ue);var ot=ct},40875:function(gn,Kt,ie){"use strict";ie.d(Kt,{J:function(){return Ee}});var oe=ie(59301),ke=ie(33234),Ce=ie(70425),Ye=function(he,xe){var we={};for(var Te in he)Object.prototype.hasOwnProperty.call(he,Te)&&xe.indexOf(Te)<0&&(we[Te]=he[Te]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Te=Object.getOwnPropertySymbols(he);qe<Te.length;qe++)xe.indexOf(Te[qe])<0&&Object.prototype.propertyIsEnumerable.call(he,Te[qe])&&(we[Te[qe]]=he[Te[qe]]);return we};const ye=oe.createContext(null),Ee=oe.forwardRef((he,xe)=>{const{children:we}=he,Te=Ye(he,["children"]),qe=oe.useContext(ye),Ie=oe.useMemo(()=>Object.assign(Object.assign({},qe),Te),[qe,Te.prefixCls,Te.mode,Te.selectable]);return oe.createElement(ye.Provider,{value:Ie},oe.createElement(ke.BR,null,(0,Ce.supportNodeRef)(we)?oe.cloneElement(we,{ref:xe}):we))});Kt.Z=ye},20834:function(gn,Kt,ie){"use strict";ie.d(Kt,{default:function(){return ce}});var oe=ie(15285),ke=ie(59301),Ce=ie(45818),Ye=ie(92310),ye=ie.n(Ye),Ee=ie(36355),he=function(ue,de){var pe={};for(var se in ue)Object.prototype.hasOwnProperty.call(ue,se)&&de.indexOf(se)<0&&(pe[se]=ue[se]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,se=Object.getOwnPropertySymbols(ue);Le<se.length;Le++)de.indexOf(se[Le])<0&&Object.prototype.propertyIsEnumerable.call(ue,se[Le])&&(pe[se[Le]]=ue[se[Le]]);return pe},we=ue=>{const{prefixCls:de,className:pe,dashed:se}=ue,Le=he(ue,["prefixCls","className","dashed"]),{getPrefixCls:ht}=ke.useContext(Ee.E_),_e=ht("menu",de),Ne=ye()({[`${_e}-item-divider-dashed`]:!!se},pe);return ke.createElement(oe.iz,Object.assign({className:Ne},Le))},Te=ie(11592),qe=ie(2738),Ie=ie(6848),Re=ie(92343),Ue=(0,ke.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ct=ue=>{var de;const{className:pe,children:se,icon:Le,title:ht,danger:_e}=ue,{prefixCls:Ne,firstLevel:St,direction:gt,disableMenuItemTitleTooltip:Xe,inlineCollapsed:wt}=ke.useContext(Ue),Xt=yt=>{const jt=ke.createElement("span",{className:`${Ne}-title-content`},se);return(!Le||(0,Re.l$)(se)&&se.type==="span")&&se&&yt&&St&&typeof se=="string"?ke.createElement("div",{className:`${Ne}-inline-collapsed-noicon`},se.charAt(0)):jt},{siderCollapsed:bt}=ke.useContext(Ce.D);let $t=ht;typeof ht=="undefined"?$t=St?se:"":ht===!1&&($t="");const on={title:$t};!bt&&!wt&&(on.title=null,on.open=!1);const vt=(0,Te.Z)(se).length;let Oe=ke.createElement(oe.ck,Object.assign({},(0,qe.Z)(ue,["title","icon","danger"]),{className:ye()({[`${Ne}-item-danger`]:_e,[`${Ne}-item-only-child`]:(Le?vt+1:vt)===1},pe),title:typeof ht=="string"?ht:void 0}),(0,Re.Tm)(Le,{className:ye()((0,Re.l$)(Le)?(de=Le.props)===null||de===void 0?void 0:de.className:"",`${Ne}-item-icon`)}),Xt(wt));return Xe||(Oe=ke.createElement(Ie.Z,Object.assign({},on,{placement:gt==="rtl"?"left":"right",overlayClassName:`${Ne}-inline-collapsed-tooltip`}),Oe)),Oe},At=ue=>{var de;const{popupClassName:pe,icon:se,title:Le,theme:ht}=ue,_e=ke.useContext(Ue),{prefixCls:Ne,inlineCollapsed:St,theme:gt}=_e,Xe=(0,oe.Xl)();let wt;if(!se)wt=St&&!Xe.length&&Le&&typeof Le=="string"?ke.createElement("div",{className:`${Ne}-inline-collapsed-noicon`},Le.charAt(0)):ke.createElement("span",{className:`${Ne}-title-content`},Le);else{const bt=(0,Re.l$)(Le)&&Le.type==="span";wt=ke.createElement(ke.Fragment,null,(0,Re.Tm)(se,{className:ye()((0,Re.l$)(se)?(de=se.props)===null||de===void 0?void 0:de.className:"",`${Ne}-item-icon`)}),bt?Le:ke.createElement("span",{className:`${Ne}-title-content`},Le))}const Xt=ke.useMemo(()=>Object.assign(Object.assign({},_e),{firstLevel:!1}),[_e]);return ke.createElement(Ue.Provider,{value:Xt},ke.createElement(oe.Wd,Object.assign({},(0,qe.Z)(ue,["icon"]),{title:wt,popupClassName:ye()(Ne,pe,`${Ne}-${ht||gt}`)})))},ut=ie(18785),ot=ie(70425),je=ie(62892),Se=ie(40875),Fe=function(ue,de){var pe={};for(var se in ue)Object.prototype.hasOwnProperty.call(ue,se)&&de.indexOf(se)<0&&(pe[se]=ue[se]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,se=Object.getOwnPropertySymbols(ue);Le<se.length;Le++)de.indexOf(se[Le])<0&&Object.prototype.propertyIsEnumerable.call(ue,se[Le])&&(pe[se[Le]]=ue[se[Le]]);return pe};function Ze(ue){return(ue||[]).map((de,pe)=>{if(de&&typeof de=="object"){const se=de,{label:Le,children:ht,key:_e,type:Ne}=se,St=Fe(se,["label","children","key","type"]),gt=_e!=null?_e:`tmp-${pe}`;return ht||Ne==="group"?Ne==="group"?ke.createElement(oe.BW,Object.assign({key:gt},St,{title:Le}),Ze(ht)):ke.createElement(At,Object.assign({key:gt},St,{title:Le}),Ze(ht)):Ne==="divider"?ke.createElement(we,Object.assign({key:gt},St)):ke.createElement(ct,Object.assign({key:gt},St),Le)}return null}).filter(de=>de)}function xt(ue){return ke.useMemo(()=>ue&&Ze(ue),[ue])}var Je=ie(64993),dt=ie(17313),Be=ie(8378),kt=ie(13826),He=ie(29878),Tt=ie(83116),mt=ie(37613),zt=ue=>{const{componentCls:de,motionDurationSlow:pe,horizontalLineHeight:se,colorSplit:Le,lineWidth:ht,lineType:_e,itemPaddingInline:Ne}=ue;return{[`${de}-horizontal`]:{lineHeight:se,border:0,borderBottom:`${ht}px ${_e} ${Le}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${de}-item, ${de}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ne},[`> ${de}-item:hover,
|
|
|
> ${de}-item-active,
|
|
|
> ${de}-submenu ${de}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${de}-item, ${de}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${de}-submenu-arrow`]:{display:"none"}}}},De=ue=>{let{componentCls:de,menuArrowOffset:pe}=ue;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(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const ge=ue=>Object.assign({},(0,dt.oN)(ue));var Ct=(ue,de)=>{const{componentCls:pe,itemColor:se,itemSelectedColor:Le,groupTitleColor:ht,itemBg:_e,subMenuItemBg:Ne,itemSelectedBg:St,activeBarHeight:gt,activeBarWidth:Xe,activeBarBorderWidth:wt,motionDurationSlow:Xt,motionEaseInOut:bt,motionEaseOut:$t,itemPaddingInline:on,motionDurationMid:vt,itemHoverColor:Oe,lineType:yt,colorSplit:jt,itemDisabledColor:Zt,dangerItemColor:nn,dangerItemHoverColor:Cn,dangerItemSelectedColor:In,dangerItemActiveBg:Dn,dangerItemSelectedBg:Kn,itemHoverBg:Vn,itemActiveBg:_n,menuSubMenuBg:or,horizontalItemSelectedColor:wr,horizontalItemSelectedBg:Tr,horizontalItemBorderRadius:Yn,horizontalItemHoverBg:hr,popupBg:kr}=ue;return{[`${pe}-${de}, ${pe}-${de} > ${pe}`]:{color:se,background:_e,[`&${pe}-root:focus-visible`]:Object.assign({},ge(ue)),[`${pe}-item-group-title`]:{color:ht},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:Le}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${Zt} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:Oe}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:Vn},"&:active":{backgroundColor:_n}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:Vn},"&:active":{backgroundColor:_n}}},[`${pe}-item-danger`]:{color:nn,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:Cn}},[`&${pe}-item:active`]:{background:Dn}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:Le,[`&${pe}-item-danger`]:{color:In},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:St,[`&${pe}-item-danger`]:{backgroundColor:Kn}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},ge(ue))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:or},[`&${pe}-popup > ${pe}`]:{backgroundColor:kr},[`&${pe}-horizontal`]:Object.assign(Object.assign({},de==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:wt,marginTop:-wt,marginBottom:0,borderRadius:Yn,"&::after":{position:"absolute",insetInline:on,bottom:0,borderBottom:`${gt}px solid transparent`,transition:`border-color ${Xt} ${bt}`,content:'""'},"&:hover, &-active, &-open":{background:hr,"&::after":{borderBottomWidth:gt,borderBottomColor:wr}},"&-selected":{color:wr,backgroundColor:Tr,"&:hover":{backgroundColor:Tr},"&::after":{borderBottomWidth:gt,borderBottomColor:wr}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${wt}px ${yt} ${jt}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:Ne},[`${pe}-item, ${pe}-submenu-title`]:wt&&Xe?{width:`calc(100% + ${wt}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Xe}px solid ${Le}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${vt} ${$t}`,`opacity ${vt} ${$t}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:In}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${vt} ${bt}`,`opacity ${vt} ${bt}`].join(",")}}}}}};const It=ue=>{const{componentCls:de,itemHeight:pe,itemMarginInline:se,padding:Le,menuArrowSize:ht,marginXS:_e,itemMarginBlock:Ne}=ue,St=Le+ht+_e;return{[`${de}-item`]:{position:"relative",overflow:"hidden"},[`${de}-item, ${de}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:Le,overflow:"hidden",textOverflow:"ellipsis",marginInline:se,marginBlock:Ne,width:`calc(100% - ${se*2}px)`},[`> ${de}-item,
|
|
|
> ${de}-submenu > ${de}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${de}-item-group-list ${de}-submenu-title,
|
|
|
${de}-submenu-title`]:{paddingInlineEnd:St}}};var et=ue=>{const{componentCls:de,iconCls:pe,itemHeight:se,colorTextLightSolid:Le,dropdownWidth:ht,controlHeightLG:_e,motionDurationMid:Ne,motionEaseOut:St,paddingXL:gt,itemMarginInline:Xe,fontSizeLG:wt,motionDurationSlow:Xt,paddingXS:bt,boxShadowSecondary:$t,collapsedWidth:on,collapsedIconSize:vt}=ue,Oe={height:se,lineHeight:`${se}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[de]:{"&-inline, &-vertical":Object.assign({[`&${de}-root`]:{boxShadow:"none"}},It(ue))},[`${de}-submenu-popup`]:{[`${de}-vertical`]:Object.assign(Object.assign({},It(ue)),{boxShadow:$t})}},{[`${de}-submenu-popup ${de}-vertical${de}-sub`]:{minWidth:ht,maxHeight:`calc(100vh - ${_e*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 ${Xt}`,`background ${Xt}`,`padding ${Ne} ${St}`].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`]:Oe,[`& ${de}-item-group-title`]:{paddingInlineStart:gt}},[`${de}-item`]:Oe}},{[`${de}-inline-collapsed`]:{width:on,[`&${de}-root`]:{[`${de}-item, ${de}-submenu ${de}-submenu-title`]:{[`> ${de}-inline-collapsed-noicon`]:{fontSize:wt,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% - ${wt/2}px - ${Xe}px)`,textOverflow:"clip",[`
|
|
|
${de}-submenu-arrow,
|
|
|
${de}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${de}-item-icon, ${pe}`]:{margin:0,fontSize:vt,lineHeight:`${se}px`,"+ span":{display:"inline-block",opacity:0}}},[`${de}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${de}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:Le}},[`${de}-item-group-title`]:Object.assign(Object.assign({},dt.vS),{paddingInline:bt})}}]};const Lt=ue=>{const{componentCls:de,motionDurationSlow:pe,motionDurationMid:se,motionEaseInOut:Le,motionEaseOut:ht,iconCls:_e,iconSize:Ne,iconMarginInlineEnd:St}=ue;return{[`${de}-item, ${de}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${Le}`].join(","),[`${de}-item-icon, ${_e}`]:{minWidth:Ne,fontSize:Ne,transition:[`font-size ${se} ${ht}`,`margin ${pe} ${Le}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:St,opacity:1,transition:[`opacity ${pe} ${Le}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${de}-item-icon`]:Object.assign({},(0,dt.Ro)()),[`&${de}-item-only-child`]:{[`> ${_e}, > ${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"}}}},dn=ue=>{const{componentCls:de,motionDurationSlow:pe,motionEaseInOut:se,borderRadius:Le,menuArrowSize:ht,menuArrowOffset:_e}=ue;return{[`${de}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ue.margin,width:ht,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${se}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ht*.6,height:ht*.15,backgroundColor:"currentcolor",borderRadius:Le,transition:[`background ${pe} ${se}`,`transform ${pe} ${se}`,`top ${pe} ${se}`,`color ${pe} ${se}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${_e})`},"&::after":{transform:`rotate(-45deg) translateY(${_e})`}}}}},_t=ue=>{const{antCls:de,componentCls:pe,fontSize:se,motionDurationSlow:Le,motionDurationMid:ht,motionEaseInOut:_e,paddingXS:Ne,padding:St,colorSplit:gt,lineWidth:Xe,zIndexPopup:wt,borderRadiusLG:Xt,subMenuItemBorderRadius:bt,menuArrowSize:$t,menuArrowOffset:on,lineType:vt,menuPanelMaskInset:Oe,groupTitleLineHeight:yt,groupTitleFontSize:jt}=ue;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,dt.dF)()),{"&-hidden":{display:"none"}})},[`${pe}-submenu-hidden`]:{display:"none"}},{[pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,dt.Wf)(ue)),(0,dt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:se,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Le} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pe}-item`]:{flex:"none"}},[`${pe}-item, ${pe}-submenu, ${pe}-submenu-title`]:{borderRadius:ue.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${Ne}px ${St}px`,fontSize:jt,lineHeight:yt,transition:`all ${Le}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${Le} ${_e}`,`background ${Le} ${_e}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${Le} ${_e}`,`background ${Le} ${_e}`,`padding ${ht} ${_e}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${Le} ${_e}`,`padding ${Le} ${_e}`].join(",")},[`${pe}-title-content`]:{transition:`color ${Le}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:gt,borderStyle:vt,borderWidth:0,borderTopWidth:Xe,marginBlock:Xe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Lt(ue)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${se*2}px ${St}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:wt,borderRadius:Xt,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Oe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Oe},"\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:ue.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ue.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ue.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ue.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Xt},Lt(ue)),dn(ue)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:bt},[`${pe}-submenu-title::after`]:{transition:`transform ${Le} ${_e}`}})}}),dn(ue)),{[`&-inline-collapsed ${pe}-submenu-arrow,
|
|
|
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${on})`},"&::after":{transform:`rotate(45deg) translateX(-${on})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${$t*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${on})`},"&::before":{transform:`rotate(45deg) translateX(${on})`}}})},{[`${de}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var tn=(ue,de)=>(0,Tt.Z)("Menu",se=>{if(de===!1)return[];const{colorBgElevated:Le,colorPrimary:ht,colorTextLightSolid:_e,controlHeightLG:Ne,fontSize:St,darkItemColor:gt,darkDangerItemColor:Xe,darkItemBg:wt,darkSubMenuItemBg:Xt,darkItemSelectedColor:bt,darkItemSelectedBg:$t,darkDangerItemSelectedBg:on,darkItemHoverBg:vt,darkGroupTitleColor:Oe,darkItemHoverColor:yt,darkItemDisabledColor:jt,darkDangerItemHoverColor:Zt,darkDangerItemSelectedColor:nn,darkDangerItemActiveBg:Cn}=se,In=St/7*5,Dn=(0,mt.TS)(se,{menuArrowSize:In,menuHorizontalHeight:Ne*1.15,menuArrowOffset:`${In*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Le}),Kn=(0,mt.TS)(Dn,{itemColor:gt,itemHoverColor:yt,groupTitleColor:Oe,itemSelectedColor:bt,itemBg:wt,popupBg:wt,subMenuItemBg:Xt,itemActiveBg:"transparent",itemSelectedBg:$t,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:vt,itemDisabledColor:jt,dangerItemColor:Xe,dangerItemHoverColor:Zt,dangerItemSelectedColor:nn,dangerItemActiveBg:Cn,dangerItemSelectedBg:on,menuSubMenuBg:Xt,horizontalItemSelectedColor:_e,horizontalItemSelectedBg:ht});return[_t(Dn),zt(Dn),et(Dn),Ct(Dn,"light"),Ct(Kn,"dark"),De(Dn),(0,Be.Z)(Dn),(0,kt.oN)(Dn,"slide-up"),(0,kt.oN)(Dn,"slide-down"),(0,He._y)(Dn,"zoom-big")]},se=>{const{colorPrimary:Le,colorError:ht,colorTextDisabled:_e,colorErrorBg:Ne,colorText:St,colorTextDescription:gt,colorBgContainer:Xe,colorFillAlter:wt,colorFillContent:Xt,lineWidth:bt,lineWidthBold:$t,controlItemBgActive:on,colorBgTextHover:vt,controlHeightLG:Oe,lineHeight:yt,colorBgElevated:jt,marginXXS:Zt,padding:nn,fontSize:Cn,controlHeightSM:In,fontSizeLG:Dn,colorTextLightSolid:Kn,colorErrorHover:Vn}=se,_n=new Je.C(Kn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:se.zIndexPopupBase+50,radiusItem:se.borderRadiusLG,itemBorderRadius:se.borderRadiusLG,radiusSubMenuItem:se.borderRadiusSM,subMenuItemBorderRadius:se.borderRadiusSM,colorItemText:St,itemColor:St,colorItemTextHover:St,itemHoverColor:St,colorItemTextHoverHorizontal:Le,horizontalItemHoverColor:Le,colorGroupTitle:gt,groupTitleColor:gt,colorItemTextSelected:Le,itemSelectedColor:Le,colorItemTextSelectedHorizontal:Le,horizontalItemSelectedColor:Le,colorItemBg:Xe,itemBg:Xe,colorItemBgHover:vt,itemHoverBg:vt,colorItemBgActive:Xt,itemActiveBg:on,colorSubItemBg:wt,subMenuItemBg:wt,colorItemBgSelected:on,itemSelectedBg:on,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:$t,activeBarHeight:$t,colorActiveBarBorderSize:bt,activeBarBorderWidth:bt,colorItemTextDisabled:_e,itemDisabledColor:_e,colorDangerItemText:ht,dangerItemColor:ht,colorDangerItemTextHover:ht,dangerItemHoverColor:ht,colorDangerItemTextSelected:ht,dangerItemSelectedColor:ht,colorDangerItemBgActive:Ne,dangerItemActiveBg:Ne,colorDangerItemBgSelected:Ne,dangerItemSelectedBg:Ne,itemMarginInline:se.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Oe,groupTitleLineHeight:yt,collapsedWidth:Oe*2,popupBg:jt,itemMarginBlock:Zt,itemPaddingInline:nn,horizontalLineHeight:`${Oe*1.15}px`,iconSize:Cn,iconMarginInlineEnd:In-Cn,collapsedIconSize:Dn,groupTitleFontSize:Cn,darkItemDisabledColor:new Je.C(Kn).setAlpha(.25).toRgbString(),darkItemColor:_n,darkDangerItemColor:ht,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Kn,darkItemSelectedBg:Le,darkDangerItemSelectedBg:ht,darkItemHoverBg:"transparent",darkGroupTitleColor:_n,darkItemHoverColor:Kn,darkDangerItemHoverColor:Vn,darkDangerItemSelectedColor:Kn,darkDangerItemActiveBg:ht}},{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"]]})(ue),en=function(ue,de){var pe={};for(var se in ue)Object.prototype.hasOwnProperty.call(ue,se)&&de.indexOf(se)<0&&(pe[se]=ue[se]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,se=Object.getOwnPropertySymbols(ue);Le<se.length;Le++)de.indexOf(se[Le])<0&&Object.prototype.propertyIsEnumerable.call(ue,se[Le])&&(pe[se[Le]]=ue[se[Le]]);return pe},Vt=(0,ke.forwardRef)((ue,de)=>{var pe,se;const Le=ke.useContext(Se.Z),ht=Le||{},{getPrefixCls:_e,getPopupContainer:Ne,direction:St,menu:gt}=ke.useContext(Ee.E_),Xe=_e(),{prefixCls:wt,className:Xt,style:bt,theme:$t="light",expandIcon:on,_internalDisableMenuItemTitleTooltip:vt,inlineCollapsed:Oe,siderCollapsed:yt,items:jt,children:Zt,rootClassName:nn,mode:Cn,selectable:In,onClick:Dn,overflowedIndicatorPopupClassName:Kn}=ue,Vn=en(ue,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),_n=(0,qe.Z)(Vn,["collapsedWidth"]),or=xt(jt)||Zt;(pe=ht.validator)===null||pe===void 0||pe.call(ht,{mode:Cn});const wr=(0,ot.useEvent)(function(){var nr;Dn==null||Dn.apply(void 0,arguments),(nr=ht.onClick)===null||nr===void 0||nr.call(ht)}),Tr=ht.mode||Cn,Yn=In!=null?In:ht.selectable,hr=ke.useMemo(()=>yt!==void 0?yt:Oe,[Oe,yt]),kr={horizontal:{motionName:`${Xe}-slide-up`},inline:(0,je.Z)(Xe),other:{motionName:`${Xe}-zoom-big`}},Qn=_e("menu",wt||ht.prefixCls),[Fr,ci]=tn(Qn,!Le),Cr=ye()(`${Qn}-${$t}`,gt==null?void 0:gt.className,Xt);let pi;if(typeof on=="function")pi=on;else if(on===null||on===!1)pi=null;else if(ht.expandIcon===null||ht.expandIcon===!1)pi=null;else{const nr=on!=null?on:ht.expandIcon;pi=(0,Re.Tm)(nr,{className:ye()(`${Qn}-submenu-expand-icon`,(0,Re.l$)(nr)?(se=nr.props)===null||se===void 0?void 0:se.className:"")})}const ai=ke.useMemo(()=>({prefixCls:Qn,inlineCollapsed:hr||!1,direction:St,firstLevel:!0,theme:$t,mode:Tr,disableMenuItemTitleTooltip:vt}),[Qn,hr,St,vt,$t]);return Fr(ke.createElement(Se.Z.Provider,{value:null},ke.createElement(Ue.Provider,{value:ai},ke.createElement(oe.ZP,Object.assign({getPopupContainer:Ne,overflowedIndicator:ke.createElement(ut.Z,null),overflowedIndicatorPopupClassName:ye()(Qn,`${Qn}-${$t}`,Kn),mode:Tr,selectable:Yn,onClick:wr},_n,{inlineCollapsed:hr,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),bt),className:Cr,prefixCls:Qn,direction:St,defaultMotions:kr,expandIcon:pi,ref:de,rootClassName:ye()(nn,ci)}),or))))});const be=(0,ke.forwardRef)((ue,de)=>{const pe=(0,ke.useRef)(null),se=ke.useContext(Ce.D);return(0,ke.useImperativeHandle)(de,()=>({menu:pe.current,focus:Le=>{var ht;(ht=pe.current)===null||ht===void 0||ht.focus(Le)}})),ke.createElement(Vt,Object.assign({ref:pe},ue,se))});be.Item=ct,be.SubMenu=At,be.Divider=we,be.ItemGroup=oe.BW;var ce=be},58421:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return ht}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(Ne,St){return ke.createElement(ye.Z,(0,oe.Z)({},Ne,{ref:St,icon:Ye}))},he=ke.forwardRef(Ee),xe=he,we=ie(49198),Te=ie(33853),qe=ie(38819),Ie=ie(92310),Re=ie.n(Ie),lt=ie(20068),Ue=ie(33885),We=ie(67732),ct=ie(83652),tt=ie(42403),At=ie(158),ut=ie(26112),ot={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},je=ot,Se=ie(91735),Fe=function(_e){(0,tt.Z)(St,_e);var Ne=(0,At.Z)(St);function St(){var gt;(0,We.Z)(this,St);for(var Xe=arguments.length,wt=new Array(Xe),Xt=0;Xt<Xe;Xt++)wt[Xt]=arguments[Xt];return gt=Ne.call.apply(Ne,[this].concat(wt)),gt.state={goInputText:""},gt.getValidValue=function(){var bt=gt.state.goInputText;return!bt||Number.isNaN(bt)?void 0:Number(bt)},gt.buildOptionText=function(bt){return"".concat(bt," ").concat(gt.props.locale.items_per_page)},gt.changeSize=function(bt){gt.props.changeSize(Number(bt))},gt.handleChange=function(bt){gt.setState({goInputText:bt.target.value})},gt.handleBlur=function(bt){var $t=gt.props,on=$t.goButton,vt=$t.quickGo,Oe=$t.rootPrefixCls,yt=gt.state.goInputText;on||yt===""||(gt.setState({goInputText:""}),!(bt.relatedTarget&&(bt.relatedTarget.className.indexOf("".concat(Oe,"-item-link"))>=0||bt.relatedTarget.className.indexOf("".concat(Oe,"-item"))>=0))&&vt(gt.getValidValue()))},gt.go=function(bt){var $t=gt.state.goInputText;$t!==""&&(bt.keyCode===je.ENTER||bt.type==="click")&&(gt.setState({goInputText:""}),gt.props.quickGo(gt.getValidValue()))},gt}return(0,ct.Z)(St,[{key:"getPageSizeOptions",value:function(){var Xe=this.props,wt=Xe.pageSize,Xt=Xe.pageSizeOptions;return Xt.some(function(bt){return bt.toString()===wt.toString()})?Xt:Xt.concat([wt.toString()]).sort(function(bt,$t){var on=Number.isNaN(Number(bt))?0:Number(bt),vt=Number.isNaN(Number($t))?0:Number($t);return on-vt})}},{key:"render",value:function(){var Xe=this,wt=this.props,Xt=wt.pageSize,bt=wt.locale,$t=wt.rootPrefixCls,on=wt.changeSize,vt=wt.quickGo,Oe=wt.goButton,yt=wt.selectComponentClass,jt=wt.buildOptionText,Zt=wt.selectPrefixCls,nn=wt.disabled,Cn=this.state.goInputText,In="".concat($t,"-options"),Dn=yt,Kn=null,Vn=null,_n=null;if(!on&&!vt)return null;var or=this.getPageSizeOptions();if(on&&Dn){var wr=or.map(function(Tr,Yn){return ke.createElement(Dn.Option,{key:Yn,value:Tr.toString()},(jt||Xe.buildOptionText)(Tr))});Kn=ke.createElement(Dn,{disabled:nn,prefixCls:Zt,showSearch:!1,className:"".concat(In,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Xt||or[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Yn){return Yn.parentNode},"aria-label":bt.page_size,defaultOpen:!1},wr)}return vt&&(Oe&&(_n=typeof Oe=="boolean"?ke.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:nn,className:"".concat(In,"-quick-jumper-button")},bt.jump_to_confirm):ke.createElement("span",{onClick:this.go,onKeyUp:this.go},Oe)),Vn=ke.createElement("div",{className:"".concat(In,"-quick-jumper")},bt.jump_to,ke.createElement("input",{disabled:nn,type:"text",value:Cn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":bt.page}),bt.page,_n)),ke.createElement("li",{className:"".concat(In)},Kn,Vn)}}]),St}(ke.Component);Fe.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ze=Fe,xt=function(Ne){var St,gt=Ne.rootPrefixCls,Xe=Ne.page,wt=Ne.active,Xt=Ne.className,bt=Ne.showTitle,$t=Ne.onClick,on=Ne.onKeyPress,vt=Ne.itemRender,Oe="".concat(gt,"-item"),yt=Re()(Oe,"".concat(Oe,"-").concat(Xe),(St={},(0,lt.Z)(St,"".concat(Oe,"-active"),wt),(0,lt.Z)(St,"".concat(Oe,"-disabled"),!Xe),(0,lt.Z)(St,Ne.className,Xt),St)),jt=function(){$t(Xe)},Zt=function(In){on(In,$t,Xe)},nn=vt(Xe,"page",ke.createElement("a",{rel:"nofollow"},Xe));return nn?ke.createElement("li",{title:bt?Xe.toString():null,className:yt,onClick:jt,onKeyPress:Zt,tabIndex:0},nn):null},Je=xt;function dt(){}function Be(_e){var Ne=Number(_e);return typeof Ne=="number"&&!Number.isNaN(Ne)&&isFinite(Ne)&&Math.floor(Ne)===Ne}var kt=function(Ne,St,gt){return gt};function He(_e,Ne,St){var gt=typeof _e=="undefined"?Ne.pageSize:_e;return Math.floor((St.total-1)/gt)+1}var Tt=function(_e){(0,tt.Z)(St,_e);var Ne=(0,At.Z)(St);function St(gt){var Xe;(0,We.Z)(this,St),Xe=Ne.call(this,gt),Xe.paginationNode=ke.createRef(),Xe.getJumpPrevPage=function(){return Math.max(1,Xe.state.current-(Xe.props.showLessItems?3:5))},Xe.getJumpNextPage=function(){return Math.min(He(void 0,Xe.state,Xe.props),Xe.state.current+(Xe.props.showLessItems?3:5))},Xe.getItemIcon=function(on,vt){var Oe=Xe.props.prefixCls,yt=on||ke.createElement("button",{type:"button","aria-label":vt,className:"".concat(Oe,"-item-link")});return typeof on=="function"&&(yt=ke.createElement(on,(0,Ue.Z)({},Xe.props))),yt},Xe.isValid=function(on){var vt=Xe.props.total;return Be(on)&&on!==Xe.state.current&&Be(vt)&&vt>0},Xe.shouldDisplayQuickJumper=function(){var on=Xe.props,vt=on.showQuickJumper,Oe=on.total,yt=Xe.state.pageSize;return Oe<=yt?!1:vt},Xe.handleKeyDown=function(on){(on.keyCode===je.ARROW_UP||on.keyCode===je.ARROW_DOWN)&&on.preventDefault()},Xe.handleKeyUp=function(on){var vt=Xe.getValidValue(on),Oe=Xe.state.currentInputValue;vt!==Oe&&Xe.setState({currentInputValue:vt}),on.keyCode===je.ENTER?Xe.handleChange(vt):on.keyCode===je.ARROW_UP?Xe.handleChange(vt-1):on.keyCode===je.ARROW_DOWN&&Xe.handleChange(vt+1)},Xe.handleBlur=function(on){var vt=Xe.getValidValue(on);Xe.handleChange(vt)},Xe.changePageSize=function(on){var vt=Xe.state.current,Oe=He(on,Xe.state,Xe.props);vt=vt>Oe?Oe:vt,Oe===0&&(vt=Xe.state.current),typeof on=="number"&&("pageSize"in Xe.props||Xe.setState({pageSize:on}),"current"in Xe.props||Xe.setState({current:vt,currentInputValue:vt})),Xe.props.onShowSizeChange(vt,on),"onChange"in Xe.props&&Xe.props.onChange&&Xe.props.onChange(vt,on)},Xe.handleChange=function(on){var vt=Xe.props,Oe=vt.disabled,yt=vt.onChange,jt=Xe.state,Zt=jt.pageSize,nn=jt.current,Cn=jt.currentInputValue;if(Xe.isValid(on)&&!Oe){var In=He(void 0,Xe.state,Xe.props),Dn=on;return on>In?Dn=In:on<1&&(Dn=1),"current"in Xe.props||Xe.setState({current:Dn}),Dn!==Cn&&Xe.setState({currentInputValue:Dn}),yt(Dn,Zt),Dn}return nn},Xe.prev=function(){Xe.hasPrev()&&Xe.handleChange(Xe.state.current-1)},Xe.next=function(){Xe.hasNext()&&Xe.handleChange(Xe.state.current+1)},Xe.jumpPrev=function(){Xe.handleChange(Xe.getJumpPrevPage())},Xe.jumpNext=function(){Xe.handleChange(Xe.getJumpNextPage())},Xe.hasPrev=function(){return Xe.state.current>1},Xe.hasNext=function(){return Xe.state.current<He(void 0,Xe.state,Xe.props)},Xe.runIfEnter=function(on,vt){if(on.key==="Enter"||on.charCode===13){for(var Oe=arguments.length,yt=new Array(Oe>2?Oe-2:0),jt=2;jt<Oe;jt++)yt[jt-2]=arguments[jt];vt.apply(void 0,yt)}},Xe.runIfEnterPrev=function(on){Xe.runIfEnter(on,Xe.prev)},Xe.runIfEnterNext=function(on){Xe.runIfEnter(on,Xe.next)},Xe.runIfEnterJumpPrev=function(on){Xe.runIfEnter(on,Xe.jumpPrev)},Xe.runIfEnterJumpNext=function(on){Xe.runIfEnter(on,Xe.jumpNext)},Xe.handleGoTO=function(on){(on.keyCode===je.ENTER||on.type==="click")&&Xe.handleChange(Xe.state.currentInputValue)},Xe.renderPrev=function(on){var vt=Xe.props,Oe=vt.prevIcon,yt=vt.itemRender,jt=yt(on,"prev",Xe.getItemIcon(Oe,"prev page")),Zt=!Xe.hasPrev();return(0,ke.isValidElement)(jt)?(0,ke.cloneElement)(jt,{disabled:Zt}):jt},Xe.renderNext=function(on){var vt=Xe.props,Oe=vt.nextIcon,yt=vt.itemRender,jt=yt(on,"next",Xe.getItemIcon(Oe,"next page")),Zt=!Xe.hasNext();return(0,ke.isValidElement)(jt)?(0,ke.cloneElement)(jt,{disabled:Zt}):jt};var wt=gt.onChange!==dt,Xt="current"in gt;Xt&&!wt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var bt=gt.defaultCurrent;"current"in gt&&(bt=gt.current);var $t=gt.defaultPageSize;return"pageSize"in gt&&($t=gt.pageSize),bt=Math.min(bt,He($t,void 0,gt)),Xe.state={current:bt,currentInputValue:bt,pageSize:$t},Xe}return(0,ct.Z)(St,[{key:"componentDidUpdate",value:function(Xe,wt){var Xt=this.props.prefixCls;if(wt.current!==this.state.current&&this.paginationNode.current){var bt=this.paginationNode.current.querySelector(".".concat(Xt,"-item-").concat(wt.current));if(bt&&document.activeElement===bt){var $t;bt==null||($t=bt.blur)===null||$t===void 0||$t.call(bt)}}}},{key:"getValidValue",value:function(Xe){var wt=Xe.target.value,Xt=He(void 0,this.state,this.props),bt=this.state.currentInputValue,$t;return wt===""?$t=wt:Number.isNaN(Number(wt))?$t=bt:wt>=Xt?$t=Xt:$t=Number(wt),$t}},{key:"getShowSizeChanger",value:function(){var Xe=this.props,wt=Xe.showSizeChanger,Xt=Xe.total,bt=Xe.totalBoundaryShowSizeChanger;return typeof wt!="undefined"?wt:Xt>bt}},{key:"render",value:function(){var Xe=this.props,wt=Xe.prefixCls,Xt=Xe.className,bt=Xe.style,$t=Xe.disabled,on=Xe.hideOnSinglePage,vt=Xe.total,Oe=Xe.locale,yt=Xe.showQuickJumper,jt=Xe.showLessItems,Zt=Xe.showTitle,nn=Xe.showTotal,Cn=Xe.simple,In=Xe.itemRender,Dn=Xe.showPrevNextJumpers,Kn=Xe.jumpPrevIcon,Vn=Xe.jumpNextIcon,_n=Xe.selectComponentClass,or=Xe.selectPrefixCls,wr=Xe.pageSizeOptions,Tr=this.state,Yn=Tr.current,hr=Tr.pageSize,kr=Tr.currentInputValue;if(on===!0&&vt<=hr)return null;var Qn=He(void 0,this.state,this.props),Fr=[],ci=null,Cr=null,pi=null,ai=null,nr=null,yr=yt&&yt.goButton,Hn=jt?1:2,Gn=Yn-1>0?Yn-1:0,Or=Yn+1<Qn?Yn+1:Qn,Rt=(0,ut.Z)(this.props,{aria:!0,data:!0}),Ke=nn&&ke.createElement("li",{className:"".concat(wt,"-total-text")},nn(vt,[vt===0?0:(Yn-1)*hr+1,Yn*hr>vt?vt:Yn*hr]));if(Cn){yr&&(typeof yr=="boolean"?nr=ke.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Oe.jump_to_confirm):nr=ke.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},yr),nr=ke.createElement("li",{title:Zt?"".concat(Oe.jump_to).concat(Yn,"/").concat(Qn):null,className:"".concat(wt,"-simple-pager")},nr));var nt=this.renderPrev(Gn);return ke.createElement("ul",(0,oe.Z)({className:Re()(wt,"".concat(wt,"-simple"),(0,lt.Z)({},"".concat(wt,"-disabled"),$t),Xt),style:bt,ref:this.paginationNode},Rt),Ke,nt?ke.createElement("li",{title:Zt?Oe.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Re()("".concat(wt,"-prev"),(0,lt.Z)({},"".concat(wt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},nt):null,ke.createElement("li",{title:Zt?"".concat(Yn,"/").concat(Qn):null,className:"".concat(wt,"-simple-pager")},ke.createElement("input",{type:"text",value:kr,disabled:$t,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ke.createElement("span",{className:"".concat(wt,"-slash")},"/"),Qn),ke.createElement("li",{title:Zt?Oe.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Re()("".concat(wt,"-next"),(0,lt.Z)({},"".concat(wt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Or)),nr)}if(Qn<=3+Hn*2){var rt={locale:Oe,rootPrefixCls:wt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Zt,itemRender:In};Qn||Fr.push(ke.createElement(Je,(0,oe.Z)({},rt,{key:"noPager",page:1,className:"".concat(wt,"-item-disabled")})));for(var it=1;it<=Qn;it+=1){var Dt=Yn===it;Fr.push(ke.createElement(Je,(0,oe.Z)({},rt,{key:it,page:it,active:Dt})))}}else{var Ht=jt?Oe.prev_3:Oe.prev_5,sn=jt?Oe.next_3:Oe.next_5,qt=In(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Kn,"prev page")),mn=In(this.getJumpNextPage(),"jump-next",this.getItemIcon(Vn,"next page"));Dn&&(ci=qt?ke.createElement("li",{title:Zt?Ht:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Re()("".concat(wt,"-jump-prev"),(0,lt.Z)({},"".concat(wt,"-jump-prev-custom-icon"),!!Kn))},qt):null,Cr=mn?ke.createElement("li",{title:Zt?sn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Re()("".concat(wt,"-jump-next"),(0,lt.Z)({},"".concat(wt,"-jump-next-custom-icon"),!!Vn))},mn):null),ai=ke.createElement(Je,{locale:Oe,last:!0,rootPrefixCls:wt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Qn,page:Qn,active:!1,showTitle:Zt,itemRender:In}),pi=ke.createElement(Je,{locale:Oe,rootPrefixCls:wt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Zt,itemRender:In});var An=Math.max(1,Yn-Hn),Tn=Math.min(Yn+Hn,Qn);Yn-1<=Hn&&(Tn=1+Hn*2),Qn-Yn<=Hn&&(An=Qn-Hn*2);for(var Pn=An;Pn<=Tn;Pn+=1){var Qt=Yn===Pn;Fr.push(ke.createElement(Je,{locale:Oe,rootPrefixCls:wt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Pn,page:Pn,active:Qt,showTitle:Zt,itemRender:In}))}Yn-1>=Hn*2&&Yn!==3&&(Fr[0]=(0,ke.cloneElement)(Fr[0],{className:"".concat(wt,"-item-after-jump-prev")}),Fr.unshift(ci)),Qn-Yn>=Hn*2&&Yn!==Qn-2&&(Fr[Fr.length-1]=(0,ke.cloneElement)(Fr[Fr.length-1],{className:"".concat(wt,"-item-before-jump-next")}),Fr.push(Cr)),An!==1&&Fr.unshift(pi),Tn!==Qn&&Fr.push(ai)}var wn=!this.hasPrev()||!Qn,Xn=!this.hasNext()||!Qn,Wn=this.renderPrev(Gn),sr=this.renderNext(Or);return ke.createElement("ul",(0,oe.Z)({className:Re()(wt,Xt,(0,lt.Z)({},"".concat(wt,"-disabled"),$t)),style:bt,ref:this.paginationNode},Rt),Ke,Wn?ke.createElement("li",{title:Zt?Oe.prev_page:null,onClick:this.prev,tabIndex:wn?null:0,onKeyPress:this.runIfEnterPrev,className:Re()("".concat(wt,"-prev"),(0,lt.Z)({},"".concat(wt,"-disabled"),wn)),"aria-disabled":wn},Wn):null,Fr,sr?ke.createElement("li",{title:Zt?Oe.next_page:null,onClick:this.next,tabIndex:Xn?null:0,onKeyPress:this.runIfEnterNext,className:Re()("".concat(wt,"-next"),(0,lt.Z)({},"".concat(wt,"-disabled"),Xn)),"aria-disabled":Xn},sr):null,ke.createElement(Ze,{disabled:$t,locale:Oe,rootPrefixCls:wt,selectComponentClass:_n,selectPrefixCls:or,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Yn,pageSize:hr,pageSizeOptions:wr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:yr}))}}],[{key:"getDerivedStateFromProps",value:function(Xe,wt){var Xt={};if("current"in Xe&&(Xt.current=Xe.current,Xe.current!==wt.current&&(Xt.currentInputValue=Xt.current)),"pageSize"in Xe&&Xe.pageSize!==wt.pageSize){var bt=wt.current,$t=He(Xe.pageSize,wt,Xe);bt=bt>$t?$t:bt,"current"in Xe||(Xt.current=bt,Xt.currentInputValue=bt),Xt.pageSize=Xe.pageSize}return Xt}}]),St}(ke.Component);Tt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:dt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:dt,locale:Se.Z,style:{},itemRender:kt,totalBoundaryShowSizeChanger:50};var mt=Tt,Et=ie(22075),zt=ie(36355),Bt=ie(19716),De=ie(8628),ge=ie(9763),at=ie(57809);const Ct=_e=>ke.createElement(at.default,Object.assign({},_e,{showSearch:!0,size:"small"})),It=_e=>ke.createElement(at.default,Object.assign({},_e,{showSearch:!0,size:"middle"}));Ct.Option=at.default.Option,It.Option=at.default.Option;var Qe=ie(9937),et=ie(17313),Lt=ie(83116),dn=ie(37613);const _t=_e=>{const{componentCls:Ne}=_e;return{[`${Ne}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ne}-item-link`]:{color:_e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ne}-item-link`]:{color:_e.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ne}-disabled`]:{cursor:"not-allowed",[`${Ne}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:_e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:_e.colorBorder,backgroundColor:_e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:_e.itemActiveBgDisabled},a:{color:_e.itemActiveColorDisabled}}},[`${Ne}-item-link`]:{color:_e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ne}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ne}-simple-pager`]:{color:_e.colorTextDisabled},[`${Ne}-jump-prev, ${Ne}-jump-next`]:{[`${Ne}-item-link-icon`]:{opacity:0},[`${Ne}-item-ellipsis`]:{opacity:1}}},[`&${Ne}-simple`]:{[`${Ne}-prev, ${Ne}-next`]:{[`&${Ne}-disabled ${Ne}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},tn=_e=>{const{componentCls:Ne}=_e;return{[`&${Ne}-mini ${Ne}-total-text, &${Ne}-mini ${Ne}-simple-pager`]:{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`},[`&${Ne}-mini ${Ne}-item`]:{minWidth:_e.itemSizeSM,height:_e.itemSizeSM,margin:0,lineHeight:`${_e.itemSizeSM-2}px`},[`&${Ne}-mini:not(${Ne}-disabled) ${Ne}-item:not(${Ne}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:_e.colorBgTextHover},"&:active":{backgroundColor:_e.colorBgTextActive}},[`&${Ne}-mini ${Ne}-prev, &${Ne}-mini ${Ne}-next`]:{minWidth:_e.itemSizeSM,height:_e.itemSizeSM,margin:0,lineHeight:`${_e.itemSizeSM}px`},[`&${Ne}-mini:not(${Ne}-disabled)`]:{[`${Ne}-prev, ${Ne}-next`]:{[`&:hover ${Ne}-item-link`]:{backgroundColor:_e.colorBgTextHover},[`&:active ${Ne}-item-link`]:{backgroundColor:_e.colorBgTextActive},[`&${Ne}-disabled:hover ${Ne}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Ne}-mini ${Ne}-prev ${Ne}-item-link,
|
|
|
&${Ne}-mini ${Ne}-next ${Ne}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`}},[`&${Ne}-mini ${Ne}-jump-prev, &${Ne}-mini ${Ne}-jump-next`]:{height:_e.itemSizeSM,marginInlineEnd:0,lineHeight:`${_e.itemSizeSM}px`},[`&${Ne}-mini ${Ne}-options`]:{marginInlineStart:_e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:_e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Qe.x0)(_e)),{width:_e.paginationMiniQuickJumperInputWidth,height:_e.controlHeightSM})}}}},en=_e=>{const{componentCls:Ne}=_e;return{[`
|
|
|
&${Ne}-simple ${Ne}-prev,
|
|
|
&${Ne}-simple ${Ne}-next
|
|
|
`]:{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`,verticalAlign:"top",[`${Ne}-item-link`]:{height:_e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:_e.colorBgTextHover},"&:active":{backgroundColor:_e.colorBgTextActive},"&::after":{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`}}},[`&${Ne}-simple ${Ne}-simple-pager`]:{display:"inline-block",height:_e.itemSizeSM,marginInlineEnd:_e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:_e.marginXS,padding:`0 ${_e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:_e.itemInputBg,border:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`,borderRadius:_e.borderRadius,outline:"none",transition:`border-color ${_e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:_e.colorPrimary},"&:focus":{borderColor:_e.colorPrimaryHover,boxShadow:`${_e.inputOutlineOffset}px 0 ${_e.controlOutlineWidth}px ${_e.controlOutline}`},"&[disabled]":{color:_e.colorTextDisabled,backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,cursor:"not-allowed"}}}}},Jt=_e=>{const{componentCls:Ne}=_e;return{[`${Ne}-jump-prev, ${Ne}-jump-next`]:{outline:0,[`${Ne}-item-container`]:{position:"relative",[`${Ne}-item-link-icon`]:{color:_e.colorPrimary,fontSize:_e.fontSizeSM,opacity:0,transition:`all ${_e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ne}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:_e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:_e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:_e.paginationEllipsisTextIndent,opacity:1,transition:`all ${_e.motionDurationMid}`}},"&:hover":{[`${Ne}-item-link-icon`]:{opacity:1},[`${Ne}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Ne}-prev,
|
|
|
${Ne}-jump-prev,
|
|
|
${Ne}-jump-next
|
|
|
`]:{marginInlineEnd:_e.marginXS},[`
|
|
|
${Ne}-prev,
|
|
|
${Ne}-next,
|
|
|
${Ne}-jump-prev,
|
|
|
${Ne}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:_e.itemSize,height:_e.itemSize,color:_e.colorText,fontFamily:_e.fontFamily,lineHeight:`${_e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:_e.borderRadius,cursor:"pointer",transition:`all ${_e.motionDurationMid}`},[`${Ne}-prev, ${Ne}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:_e.colorText,cursor:"pointer",userSelect:"none"},[`${Ne}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:_e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${_e.lineWidth}px ${_e.lineType} transparent`,borderRadius:_e.borderRadius,outline:"none",transition:`all ${_e.motionDurationMid}`},[`&:hover ${Ne}-item-link`]:{backgroundColor:_e.colorBgTextHover},[`&:active ${Ne}-item-link`]:{backgroundColor:_e.colorBgTextActive},[`&${Ne}-disabled:hover`]:{[`${Ne}-item-link`]:{backgroundColor:"transparent"}}},[`${Ne}-slash`]:{marginInlineEnd:_e.paginationSlashMarginInlineEnd,marginInlineStart:_e.paginationSlashMarginInlineStart},[`${Ne}-options`]:{display:"inline-block",marginInlineStart:_e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:_e.controlHeight,marginInlineStart:_e.marginXS,lineHeight:`${_e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Qe.ik)(_e)),{width:_e.controlHeightLG*1.25,height:_e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:_e.marginXS,marginInlineEnd:_e.marginXS})}}}},Vt=_e=>{const{componentCls:Ne}=_e;return{[`${Ne}-item`]:{display:"inline-block",minWidth:_e.itemSize,height:_e.itemSize,marginInlineEnd:_e.marginXS,fontFamily:_e.fontFamily,lineHeight:`${_e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${_e.lineWidth}px ${_e.lineType} transparent`,borderRadius:_e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${_e.paginationItemPaddingInline}px`,color:_e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ne}-item-active)`]:{"&:hover":{transition:`all ${_e.motionDurationMid}`,backgroundColor:_e.colorBgTextHover},"&:active":{backgroundColor:_e.colorBgTextActive}},"&-active":{fontWeight:_e.fontWeightStrong,backgroundColor:_e.itemActiveBg,borderColor:_e.colorPrimary,a:{color:_e.colorPrimary},"&:hover":{borderColor:_e.colorPrimaryHover},"&:hover a":{color:_e.colorPrimaryHover}}}}},be=_e=>{const{componentCls:Ne}=_e;return{[Ne]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,et.Wf)(_e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ne}-total-text`]:{display:"inline-block",height:_e.itemSize,marginInlineEnd:_e.marginXS,lineHeight:`${_e.itemSize-2}px`,verticalAlign:"middle"}}),Vt(_e)),Jt(_e)),en(_e)),tn(_e)),_t(_e)),{[`@media only screen and (max-width: ${_e.screenLG}px)`]:{[`${Ne}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${_e.screenSM}px)`]:{[`${Ne}-options`]:{display:"none"}}}),[`&${_e.componentCls}-rtl`]:{direction:"rtl"}}},ce=_e=>{const{componentCls:Ne}=_e;return{[`${Ne}${Ne}-disabled:not(${Ne}-mini)`]:{"&, &:hover":{[`${Ne}-item-link`]:{borderColor:_e.colorBorder}},"&:focus-visible":{[`${Ne}-item-link`]:{borderColor:_e.colorBorder}},[`${Ne}-item, ${Ne}-item-link`]:{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,[`&:hover:not(${Ne}-item-active)`]:{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,a:{color:_e.colorTextDisabled}},[`&${Ne}-item-active`]:{backgroundColor:_e.itemActiveBgDisabled}},[`${Ne}-prev, ${Ne}-next`]:{"&:hover button":{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,color:_e.colorTextDisabled},[`${Ne}-item-link`]:{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder}}},[`${Ne}:not(${Ne}-mini)`]:{[`${Ne}-prev, ${Ne}-next`]:{"&:hover button":{borderColor:_e.colorPrimaryHover,backgroundColor:_e.itemBg},[`${Ne}-item-link`]:{backgroundColor:_e.itemLinkBg,borderColor:_e.colorBorder},[`&:hover ${Ne}-item-link`]:{borderColor:_e.colorPrimary,backgroundColor:_e.itemBg,color:_e.colorPrimary},[`&${Ne}-disabled`]:{[`${Ne}-item-link`]:{borderColor:_e.colorBorder,color:_e.colorTextDisabled}}},[`${Ne}-item`]:{backgroundColor:_e.itemBg,border:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`,[`&:hover:not(${Ne}-item-active)`]:{borderColor:_e.colorPrimary,backgroundColor:_e.itemBg,a:{color:_e.colorPrimary}},"&-active":{borderColor:_e.colorPrimary}}}}},ue=_e=>{const{componentCls:Ne}=_e;return{[`${Ne}:not(${Ne}-disabled)`]:{[`${Ne}-item`]:Object.assign({},(0,et.Qy)(_e)),[`${Ne}-jump-prev, ${Ne}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ne}-item-link-icon`]:{opacity:1},[`${Ne}-item-ellipsis`]:{opacity:0}},(0,et.oN)(_e))},[`${Ne}-prev, ${Ne}-next`]:{[`&:focus-visible ${Ne}-item-link`]:Object.assign({},(0,et.oN)(_e))}}}};var de=(0,Lt.Z)("Pagination",_e=>{const Ne=(0,dn.TS)(_e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:_e.marginXXS/2,paginationMiniQuickJumperInputWidth:_e.controlHeightLG*1.1,paginationItemPaddingInline:_e.marginXXS*1.5,paginationEllipsisLetterSpacing:_e.marginXXS/2,paginationSlashMarginInlineStart:_e.marginXXS,paginationSlashMarginInlineEnd:_e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Qe.e5)(_e),(0,Qe.TM)(_e));return[be(Ne),ue(Ne),_e.wireframe&&ce(Ne)]},_e=>({itemBg:_e.colorBgContainer,itemSize:_e.controlHeight,itemSizeSM:_e.controlHeightSM,itemActiveBg:_e.colorBgContainer,itemLinkBg:_e.colorBgContainer,itemActiveColorDisabled:_e.colorTextDisabled,itemActiveBgDisabled:_e.controlItemBgActiveDisabled,itemInputBg:_e.colorBgContainer,miniOptionsSizeChangerTop:0})),pe=function(_e,Ne){var St={};for(var gt in _e)Object.prototype.hasOwnProperty.call(_e,gt)&&Ne.indexOf(gt)<0&&(St[gt]=_e[gt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,gt=Object.getOwnPropertySymbols(_e);Xe<gt.length;Xe++)Ne.indexOf(gt[Xe])<0&&Object.prototype.propertyIsEnumerable.call(_e,gt[Xe])&&(St[gt[Xe]]=_e[gt[Xe]]);return St},Le=_e=>{const{prefixCls:Ne,selectPrefixCls:St,className:gt,rootClassName:Xe,style:wt,size:Xt,locale:bt,selectComponentClass:$t,responsive:on,showSizeChanger:vt}=_e,Oe=pe(_e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:yt}=(0,De.Z)(on),{getPrefixCls:jt,direction:Zt,pagination:nn={}}=ke.useContext(zt.E_),Cn=jt("pagination",Ne),[In,Dn]=de(Cn),Kn=vt!=null?vt:nn.showSizeChanger,Vn=ke.useMemo(()=>{const Qn=ke.createElement("span",{className:`${Cn}-item-ellipsis`},"\u2022\u2022\u2022"),Fr=ke.createElement("button",{className:`${Cn}-item-link`,type:"button",tabIndex:-1},Zt==="rtl"?ke.createElement(qe.Z,null):ke.createElement(Te.Z,null)),ci=ke.createElement("button",{className:`${Cn}-item-link`,type:"button",tabIndex:-1},Zt==="rtl"?ke.createElement(Te.Z,null):ke.createElement(qe.Z,null)),Cr=ke.createElement("a",{className:`${Cn}-item-link`},ke.createElement("div",{className:`${Cn}-item-container`},Zt==="rtl"?ke.createElement(we.Z,{className:`${Cn}-item-link-icon`}):ke.createElement(xe,{className:`${Cn}-item-link-icon`}),Qn)),pi=ke.createElement("a",{className:`${Cn}-item-link`},ke.createElement("div",{className:`${Cn}-item-container`},Zt==="rtl"?ke.createElement(xe,{className:`${Cn}-item-link-icon`}):ke.createElement(we.Z,{className:`${Cn}-item-link-icon`}),Qn));return{prevIcon:Fr,nextIcon:ci,jumpPrevIcon:Cr,jumpNextIcon:pi}},[Zt,Cn]),[_n]=(0,ge.Z)("Pagination",Et.Z),or=Object.assign(Object.assign({},_n),bt),wr=(0,Bt.Z)(Xt),Tr=wr==="small"||!!(yt&&!wr&&on),Yn=jt("select",St),hr=Re()({[`${Cn}-mini`]:Tr,[`${Cn}-rtl`]:Zt==="rtl"},nn==null?void 0:nn.className,gt,Xe,Dn),kr=Object.assign(Object.assign({},nn==null?void 0:nn.style),wt);return In(ke.createElement(mt,Object.assign({},Vn,Oe,{style:kr,prefixCls:Cn,selectPrefixCls:Yn,className:hr,selectComponentClass:$t||(Tr?Ct:It),locale:or,showSizeChanger:Kn})))},ht=Le},14478:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Je}});var oe=ie(96512),ke=ie(92310),Ce=ie.n(ke),Ye=ie(10228),ye=ie(18929),Ee=ie(2738),he=ie(59301),xe=ie(92343),we=ie(36355),Te=ie(60324),qe=ie(92806),Ie=ie(77578),Re=ie(3113),lt=ie(67797),Ue=ie(9763),We=ie(31724),ct=ie(39722),tt=ie(83116);const At=dt=>{const{componentCls:Be,iconCls:kt,antCls:He,zIndexPopup:Tt,colorText:mt,colorWarning:Et,marginXXS:zt,marginXS:Bt,fontSize:De,fontWeightStrong:ge,colorTextHeading:at}=dt;return{[Be]:{zIndex:Tt,[`&${He}-popover`]:{fontSize:De},[`${Be}-message`]:{marginBottom:Bt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Be}-message-icon ${kt}`]:{color:Et,fontSize:De,lineHeight:1,marginInlineEnd:Bt},[`${Be}-title`]:{fontWeight:ge,color:at,"&:only-child":{fontWeight:"normal"}},[`${Be}-description`]:{marginTop:zt,color:mt}},[`${Be}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:Bt}}}}};var ut=(0,tt.Z)("Popconfirm",dt=>At(dt),dt=>{const{zIndexPopupBase:Be}=dt;return{zIndexPopup:Be+60}},{resetStyle:!1}),ot=function(dt,Be){var kt={};for(var He in dt)Object.prototype.hasOwnProperty.call(dt,He)&&Be.indexOf(He)<0&&(kt[He]=dt[He]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,He=Object.getOwnPropertySymbols(dt);Tt<He.length;Tt++)Be.indexOf(He[Tt])<0&&Object.prototype.propertyIsEnumerable.call(dt,He[Tt])&&(kt[He[Tt]]=dt[He[Tt]]);return kt};const je=dt=>{const{prefixCls:Be,okButtonProps:kt,cancelButtonProps:He,title:Tt,description:mt,cancelText:Et,okText:zt,okType:Bt="primary",icon:De=he.createElement(oe.Z,null),showCancel:ge=!0,close:at,onConfirm:Ct,onCancel:It,onPopupClick:Qe}=dt,{getPrefixCls:et}=he.useContext(we.E_),[Lt]=(0,Ue.Z)("Popconfirm",We.Z.Popconfirm),dn=(0,Ie.Z)(Tt),_t=(0,Ie.Z)(mt);return he.createElement("div",{className:`${Be}-inner-content`,onClick:Qe},he.createElement("div",{className:`${Be}-message`},De&&he.createElement("span",{className:`${Be}-message-icon`},De),he.createElement("div",{className:`${Be}-message-text`},dn&&he.createElement("div",{className:Ce()(`${Be}-title`)},dn),_t&&he.createElement("div",{className:`${Be}-description`},_t))),he.createElement("div",{className:`${Be}-buttons`},ge&&he.createElement(Re.ZP,Object.assign({onClick:It,size:"small"},He),Et!=null?Et:Lt==null?void 0:Lt.cancelText),he.createElement(qe.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,lt.n)(Bt)),kt),actionFn:Ct,close:at,prefixCls:et("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},zt!=null?zt:Lt==null?void 0:Lt.okText)))};var Fe=dt=>{const{prefixCls:Be,placement:kt,className:He,style:Tt}=dt,mt=ot(dt,["prefixCls","placement","className","style"]),{getPrefixCls:Et}=he.useContext(we.E_),zt=Et("popconfirm",Be),[Bt]=ut(zt);return Bt(he.createElement(ct.ZP,{placement:kt,className:Ce()(zt,He),style:Tt,content:he.createElement(je,Object.assign({prefixCls:zt},mt))}))},Ze=function(dt,Be){var kt={};for(var He in dt)Object.prototype.hasOwnProperty.call(dt,He)&&Be.indexOf(He)<0&&(kt[He]=dt[He]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,He=Object.getOwnPropertySymbols(dt);Tt<He.length;Tt++)Be.indexOf(He[Tt])<0&&Object.prototype.propertyIsEnumerable.call(dt,He[Tt])&&(kt[He[Tt]]=dt[He[Tt]]);return kt};const xt=he.forwardRef((dt,Be)=>{const{prefixCls:kt,placement:He="top",trigger:Tt="click",okType:mt="primary",icon:Et=he.createElement(oe.Z,null),children:zt,overlayClassName:Bt,onOpenChange:De,onVisibleChange:ge}=dt,at=Ze(dt,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Ct}=he.useContext(we.E_),[It,Qe]=(0,ye.Z)(!1,{value:dt.open,defaultValue:dt.defaultOpen}),et=(ce,ue)=>{Qe(ce,!0),ge==null||ge(ce),De==null||De(ce,ue)},Lt=ce=>{et(!1,ce)},dn=ce=>{var ue;return(ue=dt.onConfirm)===null||ue===void 0?void 0:ue.call(void 0,ce)},_t=ce=>{var ue;et(!1,ce),(ue=dt.onCancel)===null||ue===void 0||ue.call(void 0,ce)},tn=ce=>{ce.keyCode===Ye.Z.ESC&&It&&et(!1,ce)},en=ce=>{const{disabled:ue=!1}=dt;ue||et(ce)},Jt=Ct("popconfirm",kt),Vt=Ce()(Jt,Bt),[be]=ut(Jt);return be(he.createElement(Te.Z,Object.assign({},(0,Ee.Z)(at,["title"]),{trigger:Tt,placement:He,onOpenChange:en,open:It,ref:Be,overlayClassName:Vt,content:he.createElement(je,Object.assign({okType:mt,icon:Et},dt,{prefixCls:Jt,close:Lt,onConfirm:dn,onCancel:_t})),"data-popover-inject":!0}),(0,xe.Tm)(zt,{onKeyDown:ce=>{var ue,de;he.isValidElement(zt)&&((de=zt==null?void 0:(ue=zt.props).onKeyDown)===null||de===void 0||de.call(ue,ce)),tn(ce)}})))});xt._InternalPanelDoNotUseOrYouWillBeFired=Fe;var Je=xt},39722:function(gn,Kt,ie){"use strict";ie.d(Kt,{t5:function(){return Te}});var oe=ie(92310),ke=ie.n(oe),Ce=ie(55477),Ye=ie(59301),ye=ie(36355),Ee=ie(77578),he=ie(17356),xe=function(Ie,Re){var lt={};for(var Ue in Ie)Object.prototype.hasOwnProperty.call(Ie,Ue)&&Re.indexOf(Ue)<0&&(lt[Ue]=Ie[Ue]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ue=Object.getOwnPropertySymbols(Ie);We<Ue.length;We++)Re.indexOf(Ue[We])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ue[We])&&(lt[Ue[We]]=Ie[Ue[We]]);return lt};const we=(Ie,Re,lt)=>{if(!(!Re&&!lt))return Ye.createElement(Ye.Fragment,null,Re&&Ye.createElement("div",{className:`${Ie}-title`},(0,Ee.Z)(Re)),Ye.createElement("div",{className:`${Ie}-inner-content`},(0,Ee.Z)(lt)))},Te=Ie=>{const{hashId:Re,prefixCls:lt,className:Ue,style:We,placement:ct="top",title:tt,content:At,children:ut}=Ie;return Ye.createElement("div",{className:ke()(Re,lt,`${lt}-pure`,`${lt}-placement-${ct}`,Ue),style:We},Ye.createElement("div",{className:`${lt}-arrow`}),Ye.createElement(Ce.G,Object.assign({},Ie,{className:Re,prefixCls:lt}),ut||we(lt,tt,At)))},qe=Ie=>{const{prefixCls:Re}=Ie,lt=xe(Ie,["prefixCls"]),{getPrefixCls:Ue}=Ye.useContext(ye.E_),We=Ue("popover",Re),[ct,tt]=(0,he.Z)(We);return ct(Ye.createElement(Te,Object.assign({},lt,{prefixCls:We,hashId:tt})))};Kt.ZP=qe},60324:function(gn,Kt,ie){"use strict";var oe=ie(92310),ke=ie.n(oe),Ce=ie(59301),Ye=ie(77578),ye=ie(62892),Ee=ie(36355),he=ie(6848),xe=ie(39722),we=ie(17356),Te=function(Re,lt){var Ue={};for(var We in Re)Object.prototype.hasOwnProperty.call(Re,We)&<.indexOf(We)<0&&(Ue[We]=Re[We]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,We=Object.getOwnPropertySymbols(Re);ct<We.length;ct++)lt.indexOf(We[ct])<0&&Object.prototype.propertyIsEnumerable.call(Re,We[ct])&&(Ue[We[ct]]=Re[We[ct]]);return Ue};const qe=Re=>{let{title:lt,content:Ue,prefixCls:We}=Re;return Ce.createElement(Ce.Fragment,null,lt&&Ce.createElement("div",{className:`${We}-title`},(0,Ye.Z)(lt)),Ce.createElement("div",{className:`${We}-inner-content`},(0,Ye.Z)(Ue)))},Ie=Ce.forwardRef((Re,lt)=>{const{prefixCls:Ue,title:We,content:ct,overlayClassName:tt,placement:At="top",trigger:ut="hover",mouseEnterDelay:ot=.1,mouseLeaveDelay:je=.1,overlayStyle:Se={}}=Re,Fe=Te(Re,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Ze}=Ce.useContext(Ee.E_),xt=Ze("popover",Ue),[Je,dt]=(0,we.Z)(xt),Be=Ze(),kt=ke()(tt,dt);return Je(Ce.createElement(he.Z,Object.assign({placement:At,trigger:ut,mouseEnterDelay:ot,mouseLeaveDelay:je,overlayStyle:Se},Fe,{prefixCls:xt,overlayClassName:kt,ref:lt,overlay:We||ct?Ce.createElement(qe,{prefixCls:xt,title:We,content:ct}):null,transitionName:(0,ye.m)(Be,"zoom-big",Fe.transitionName),"data-popover-inject":!0})))});Ie._InternalPanelDoNotUseOrYouWillBeFired=xe.ZP,Kt.Z=Ie},17356:function(gn,Kt,ie){"use strict";var oe=ie(17313),ke=ie(29878),Ce=ie(19447),Ye=ie(33166),ye=ie(83116),Ee=ie(37613);const he=Te=>{const{componentCls:qe,popoverColor:Ie,minWidth:Re,fontWeightStrong:lt,popoverPadding:Ue,boxShadowSecondary:We,colorTextHeading:ct,borderRadiusLG:tt,zIndexPopup:At,marginXS:ut,colorBgElevated:ot,popoverBg:je}=Te;return[{[qe]:Object.assign(Object.assign({},(0,oe.Wf)(Te)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:At,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":ot,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${qe}-content`]:{position:"relative"},[`${qe}-inner`]:{backgroundColor:je,backgroundClip:"padding-box",borderRadius:tt,boxShadow:We,padding:Ue},[`${qe}-title`]:{minWidth:Re,marginBottom:ut,color:ct,fontWeight:lt},[`${qe}-inner-content`]:{color:Ie}})},(0,Ce.ZP)(Te,{colorBg:"var(--antd-arrow-background-color)"}),{[`${qe}-pure`]:{position:"relative",maxWidth:"none",margin:Te.sizePopupArrow,display:"inline-block",[`${qe}-content`]:{display:"inline-block"}}}]},xe=Te=>{const{componentCls:qe}=Te;return{[qe]:Ye.i.map(Ie=>{const Re=Te[`${Ie}6`];return{[`&${qe}-${Ie}`]:{"--antd-arrow-background-color":Re,[`${qe}-inner`]:{backgroundColor:Re},[`${qe}-arrow`]:{background:"transparent"}}}})}},we=Te=>{const{componentCls:qe,lineWidth:Ie,lineType:Re,colorSplit:lt,paddingSM:Ue,controlHeight:We,fontSize:ct,lineHeight:tt,padding:At}=Te,ut=We-Math.round(ct*tt),ot=ut/2,je=ut/2-Ie,Se=At;return{[qe]:{[`${qe}-inner`]:{padding:0},[`${qe}-title`]:{margin:0,padding:`${ot}px ${Se}px ${je}px`,borderBottom:`${Ie}px ${Re} ${lt}`},[`${qe}-inner-content`]:{padding:`${Ue}px ${Se}px`}}}};Kt.Z=(0,ye.Z)("Popover",Te=>{const{colorBgElevated:qe,colorText:Ie,wireframe:Re}=Te,lt=(0,Ee.TS)(Te,{popoverPadding:12,popoverBg:qe,popoverColor:Ie});return[he(lt),xe(lt),Re&&we(lt),(0,ke._y)(lt,"zoom-big")]},Te=>({width:177,minWidth:177,zIndexPopup:Te.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return vt}});var oe=ie(59301),ke=ie(29679),Ce=ie(40001),Ye=ie(19248),ye=ie(99267),Ee=ie(92310),he=ie.n(Ee),xe=ie(2738),we=ie(36355),Te=ie(54476),qe=ie(33885),Ie=ie(75931),Re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},lt=function(){var yt=(0,oe.useRef)([]),jt=(0,oe.useRef)(null);return(0,oe.useEffect)(function(){var Zt=Date.now(),nn=!1;yt.current.forEach(function(Cn){if(Cn){nn=!0;var In=Cn.style;In.transitionDuration=".3s, .3s, .3s, .06s",jt.current&&Zt-jt.current<100&&(In.transitionDuration="0s, 0s")}}),nn&&(jt.current=Date.now())}),yt.current},Ue=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],We=function(yt){var jt=(0,qe.Z)((0,qe.Z)({},Re),yt),Zt=jt.className,nn=jt.percent,Cn=jt.prefixCls,In=jt.strokeColor,Dn=jt.strokeLinecap,Kn=jt.strokeWidth,Vn=jt.style,_n=jt.trailColor,or=jt.trailWidth,wr=jt.transition,Tr=(0,Ie.Z)(jt,Ue);delete Tr.gapPosition;var Yn=Array.isArray(nn)?nn:[nn],hr=Array.isArray(In)?In:[In],kr=lt(),Qn=Kn/2,Fr=100-Kn/2,ci="M ".concat(Dn==="round"?Qn:0,",").concat(Qn,`
|
|
|
L `).concat(Dn==="round"?Fr:100,",").concat(Qn),Cr="0 0 100 ".concat(Kn),pi=0;return oe.createElement("svg",(0,Te.Z)({className:he()("".concat(Cn,"-line"),Zt),viewBox:Cr,preserveAspectRatio:"none",style:Vn},Tr),oe.createElement("path",{className:"".concat(Cn,"-line-trail"),d:ci,strokeLinecap:Dn,stroke:_n,strokeWidth:or||Kn,fillOpacity:"0"}),Yn.map(function(ai,nr){var yr=1;switch(Dn){case"round":yr=1-Kn/100;break;case"square":yr=1-Kn/2/100;break;default:yr=1;break}var Hn={strokeDasharray:"".concat(ai*yr,"px, 100px"),strokeDashoffset:"-".concat(pi,"px"),transition:wr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Gn=hr[nr]||hr[hr.length-1];return pi+=ai,oe.createElement("path",{key:nr,className:"".concat(Cn,"-line-path"),d:ci,strokeLinecap:Dn,stroke:Gn,strokeWidth:Kn,fillOpacity:"0",ref:function(Rt){kr[nr]=Rt},style:Hn})}))},ct=We,tt=ie(76190),At=ie(42978),ut=ie(47273),ot=0,je=(0,ut.Z)();function Se(){var Oe;return je?(Oe=ot,ot+=1):Oe="TEST_OR_SSR",Oe}var Fe=function(Oe){var yt=oe.useState(),jt=(0,At.Z)(yt,2),Zt=jt[0],nn=jt[1];return oe.useEffect(function(){nn("rc_progress_".concat(Se()))},[]),Oe||Zt},Ze=function(yt){var jt=yt.bg,Zt=yt.children;return oe.createElement("div",{style:{width:"100%",height:"100%",background:jt}},Zt)};function xt(Oe,yt){return Object.keys(Oe).map(function(jt){var Zt=parseFloat(jt),nn="".concat(Math.floor(Zt*yt),"%");return"".concat(Oe[jt]," ").concat(nn)})}var Je=oe.forwardRef(function(Oe,yt){var jt=Oe.prefixCls,Zt=Oe.color,nn=Oe.gradientId,Cn=Oe.radius,In=Oe.style,Dn=Oe.ptg,Kn=Oe.strokeLinecap,Vn=Oe.strokeWidth,_n=Oe.size,or=Oe.gapDegree,wr=Zt&&(0,tt.Z)(Zt)==="object",Tr=wr?"#FFF":void 0,Yn=_n/2,hr=oe.createElement("circle",{className:"".concat(jt,"-circle-path"),r:Cn,cx:Yn,cy:Yn,stroke:Tr,strokeLinecap:Kn,strokeWidth:Vn,opacity:Dn===0?0:1,style:In,ref:yt});if(!wr)return hr;var kr="".concat(nn,"-conic"),Qn=or?"".concat(180+or/2,"deg"):"0deg",Fr=xt(Zt,(360-or)/360),ci=xt(Zt,1),Cr="conic-gradient(from ".concat(Qn,", ").concat(Fr.join(", "),")"),pi="linear-gradient(to ".concat(or?"bottom":"top",", ").concat(ci.join(", "),")");return oe.createElement(oe.Fragment,null,oe.createElement("mask",{id:kr},hr),oe.createElement("foreignObject",{x:0,y:0,width:_n,height:_n,mask:"url(#".concat(kr,")")},oe.createElement(Ze,{bg:pi},oe.createElement(Ze,{bg:Cr}))))}),dt=Je,Be=100,kt=function(yt,jt,Zt,nn,Cn,In,Dn,Kn,Vn,_n){var or=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,wr=Zt/100*360*((360-In)/360),Tr=In===0?0:{bottom:0,top:180,left:90,right:-90}[Dn],Yn=(100-nn)/100*jt;Vn==="round"&&nn!==100&&(Yn+=_n/2,Yn>=jt&&(Yn=jt-.01));var hr=Be/2;return{stroke:typeof Kn=="string"?Kn:void 0,strokeDasharray:"".concat(jt,"px ").concat(yt),strokeDashoffset:Yn+or,transform:"rotate(".concat(Cn+wr+Tr,"deg)"),transformOrigin:"".concat(hr,"px ").concat(hr,"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}},He=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Tt(Oe){var yt=Oe!=null?Oe:[];return Array.isArray(yt)?yt:[yt]}var mt=function(yt){var jt=(0,qe.Z)((0,qe.Z)({},Re),yt),Zt=jt.id,nn=jt.prefixCls,Cn=jt.steps,In=jt.strokeWidth,Dn=jt.trailWidth,Kn=jt.gapDegree,Vn=Kn===void 0?0:Kn,_n=jt.gapPosition,or=jt.trailColor,wr=jt.strokeLinecap,Tr=jt.style,Yn=jt.className,hr=jt.strokeColor,kr=jt.percent,Qn=(0,Ie.Z)(jt,He),Fr=Be/2,ci=Fe(Zt),Cr="".concat(ci,"-gradient"),pi=Fr-In/2,ai=Math.PI*2*pi,nr=Vn>0?90+Vn/2:-90,yr=ai*((360-Vn)/360),Hn=(0,tt.Z)(Cn)==="object"?Cn:{count:Cn,space:2},Gn=Hn.count,Or=Hn.space,Rt=Tt(kr),Ke=Tt(hr),nt=Ke.find(function(mn){return mn&&(0,tt.Z)(mn)==="object"}),rt=nt&&(0,tt.Z)(nt)==="object",it=rt?"butt":wr,Dt=kt(ai,yr,0,100,nr,Vn,_n,or,it,In),Ht=lt(),sn=function(){var An=0;return Rt.map(function(Tn,Pn){var Qt=Ke[Pn]||Ke[Ke.length-1],wn=kt(ai,yr,An,Tn,nr,Vn,_n,Qt,it,In);return An+=Tn,oe.createElement(dt,{key:Pn,color:Qt,ptg:Tn,radius:pi,prefixCls:nn,gradientId:Cr,style:wn,strokeLinecap:it,strokeWidth:In,gapDegree:Vn,ref:function(Wn){Ht[Pn]=Wn},size:Be})}).reverse()},qt=function(){var An=Math.round(Gn*(Rt[0]/100)),Tn=100/Gn,Pn=0;return new Array(Gn).fill(null).map(function(Qt,wn){var Xn=wn<=An-1?Ke[0]:or,Wn=Xn&&(0,tt.Z)(Xn)==="object"?"url(#".concat(Cr,")"):void 0,sr=kt(ai,yr,Pn,Tn,nr,Vn,_n,Xn,"butt",In,Or);return Pn+=(yr-sr.strokeDashoffset+Or)*100/yr,oe.createElement("circle",{key:wn,className:"".concat(nn,"-circle-path"),r:pi,cx:Fr,cy:Fr,stroke:Wn,strokeWidth:In,opacity:1,style:sr,ref:function(Ar){Ht[wn]=Ar}})})};return oe.createElement("svg",(0,Te.Z)({className:he()("".concat(nn,"-circle"),Yn),viewBox:"0 0 ".concat(Be," ").concat(Be),style:Tr,id:Zt,role:"presentation"},Qn),!Gn&&oe.createElement("circle",{className:"".concat(nn,"-circle-trail"),r:pi,cx:Fr,cy:Fr,stroke:or,strokeLinecap:it,strokeWidth:Dn||In,style:Dt}),Gn?qt():sn())},Et=mt,zt={Line:ct,Circle:Et},Bt=ie(6848),De=ie(30071);function ge(Oe){return!Oe||Oe<0?0:Oe>100?100:Oe}function at(Oe){let{success:yt,successPercent:jt}=Oe,Zt=jt;return yt&&"progress"in yt&&(Zt=yt.progress),yt&&"percent"in yt&&(Zt=yt.percent),Zt}const Ct=Oe=>{let{percent:yt,success:jt,successPercent:Zt}=Oe;const nn=ge(at({success:jt,successPercent:Zt}));return[nn,ge(ge(yt)-nn)]},It=Oe=>{let{success:yt={},strokeColor:jt}=Oe;const{strokeColor:Zt}=yt;return[Zt||De.presetPrimaryColors.green,jt||null]},Qe=(Oe,yt,jt)=>{var Zt,nn,Cn,In;let Dn=-1,Kn=-1;if(yt==="step"){const Vn=jt.steps,_n=jt.strokeWidth;typeof Oe=="string"||typeof Oe=="undefined"?(Dn=Oe==="small"?2:14,Kn=_n!=null?_n:8):typeof Oe=="number"?[Dn,Kn]=[Oe,Oe]:[Dn=14,Kn=8]=Oe,Dn*=Vn}else if(yt==="line"){const Vn=jt==null?void 0:jt.strokeWidth;typeof Oe=="string"||typeof Oe=="undefined"?Kn=Vn||(Oe==="small"?6:8):typeof Oe=="number"?[Dn,Kn]=[Oe,Oe]:[Dn=-1,Kn=8]=Oe}else(yt==="circle"||yt==="dashboard")&&(typeof Oe=="string"||typeof Oe=="undefined"?[Dn,Kn]=Oe==="small"?[60,60]:[120,120]:typeof Oe=="number"?[Dn,Kn]=[Oe,Oe]:(Dn=(nn=(Zt=Oe[0])!==null&&Zt!==void 0?Zt:Oe[1])!==null&&nn!==void 0?nn:120,Kn=(In=(Cn=Oe[0])!==null&&Cn!==void 0?Cn:Oe[1])!==null&&In!==void 0?In:120));return[Dn,Kn]},et=3,Lt=Oe=>et/Oe*100;var _t=Oe=>{const{prefixCls:yt,trailColor:jt=null,strokeLinecap:Zt="round",gapPosition:nn,gapDegree:Cn,width:In=120,type:Dn,children:Kn,success:Vn,size:_n=In}=Oe,[or,wr]=Qe(_n,"circle");let{strokeWidth:Tr}=Oe;Tr===void 0&&(Tr=Math.max(Lt(or),6));const Yn={width:or,height:wr,fontSize:or*.15+6},hr=oe.useMemo(()=>{if(Cn||Cn===0)return Cn;if(Dn==="dashboard")return 75},[Cn,Dn]),kr=nn||Dn==="dashboard"&&"bottom"||void 0,Qn=Object.prototype.toString.call(Oe.strokeColor)==="[object Object]",Fr=It({success:Vn,strokeColor:Oe.strokeColor}),ci=he()(`${yt}-inner`,{[`${yt}-circle-gradient`]:Qn}),Cr=oe.createElement(Et,{percent:Ct(Oe),strokeWidth:Tr,trailWidth:Tr,strokeColor:Fr,strokeLinecap:Zt,trailColor:jt,prefixCls:yt,gapDegree:hr,gapPosition:kr});return oe.createElement("div",{className:ci,style:Yn},or<=20?oe.createElement(Bt.Z,{title:Kn},oe.createElement("span",null,Cr)):oe.createElement(oe.Fragment,null,Cr,Kn))},tn=function(Oe,yt){var jt={};for(var Zt in Oe)Object.prototype.hasOwnProperty.call(Oe,Zt)&&yt.indexOf(Zt)<0&&(jt[Zt]=Oe[Zt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nn=0,Zt=Object.getOwnPropertySymbols(Oe);nn<Zt.length;nn++)yt.indexOf(Zt[nn])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Zt[nn])&&(jt[Zt[nn]]=Oe[Zt[nn]]);return jt};const en=Oe=>{let yt=[];return Object.keys(Oe).forEach(jt=>{const Zt=parseFloat(jt.replace(/%/g,""));isNaN(Zt)||yt.push({key:Zt,value:Oe[jt]})}),yt=yt.sort((jt,Zt)=>jt.key-Zt.key),yt.map(jt=>{let{key:Zt,value:nn}=jt;return`${nn} ${Zt}%`}).join(", ")},Jt=(Oe,yt)=>{const{from:jt=De.presetPrimaryColors.blue,to:Zt=De.presetPrimaryColors.blue,direction:nn=yt==="rtl"?"to left":"to right"}=Oe,Cn=tn(Oe,["from","to","direction"]);if(Object.keys(Cn).length!==0){const In=en(Cn);return{backgroundImage:`linear-gradient(${nn}, ${In})`}}return{backgroundImage:`linear-gradient(${nn}, ${jt}, ${Zt})`}};var be=Oe=>{const{prefixCls:yt,direction:jt,percent:Zt,size:nn,strokeWidth:Cn,strokeColor:In,strokeLinecap:Dn="round",children:Kn,trailColor:Vn=null,success:_n}=Oe,or=In&&typeof In!="string"?Jt(In,jt):{backgroundColor:In},wr=Dn==="square"||Dn==="butt"?0:void 0,Tr={backgroundColor:Vn||void 0,borderRadius:wr},Yn=nn!=null?nn:[-1,Cn||(nn==="small"?6:8)],[hr,kr]=Qe(Yn,"line",{strokeWidth:Cn}),Qn=Object.assign({width:`${ge(Zt)}%`,height:kr,borderRadius:wr},or),Fr=at(Oe),ci={width:`${ge(Fr)}%`,height:kr,borderRadius:wr,backgroundColor:_n==null?void 0:_n.strokeColor},Cr={width:hr<0?"100%":hr,height:kr};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:`${yt}-outer`,style:Cr},oe.createElement("div",{className:`${yt}-inner`,style:Tr},oe.createElement("div",{className:`${yt}-bg`,style:Qn}),Fr!==void 0?oe.createElement("div",{className:`${yt}-success-bg`,style:ci}):null)),Kn)},ue=Oe=>{const{size:yt,steps:jt,percent:Zt=0,strokeWidth:nn=8,strokeColor:Cn,trailColor:In=null,prefixCls:Dn,children:Kn}=Oe,Vn=Math.round(jt*(Zt/100)),_n=yt==="small"?2:14,or=yt!=null?yt:[_n,nn],[wr,Tr]=Qe(or,"step",{steps:jt,strokeWidth:nn}),Yn=wr/jt,hr=new Array(jt);for(let kr=0;kr<jt;kr++){const Qn=Array.isArray(Cn)?Cn[kr]:Cn;hr[kr]=oe.createElement("div",{key:kr,className:he()(`${Dn}-steps-item`,{[`${Dn}-steps-item-active`]:kr<=Vn-1}),style:{backgroundColor:kr<=Vn-1?Qn:In,width:Yn,height:Tr}})}return oe.createElement("div",{className:`${Dn}-steps-outer`},hr,Kn)},de=ie(36237),pe=ie(17313),se=ie(83116),Le=ie(37613);const ht=Oe=>{const yt=Oe?"100%":"-100%";return new de.Keyframes(`antProgress${Oe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${yt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${yt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},_e=Oe=>{const{componentCls:yt,iconCls:jt}=Oe;return{[yt]:Object.assign(Object.assign({},(0,pe.Wf)(Oe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Oe.fontSize,marginInlineEnd:Oe.marginXS,marginBottom:Oe.marginXS},[`${yt}-outer`]:{display:"inline-block",width:"100%"},[`&${yt}-show-info`]:{[`${yt}-outer`]:{marginInlineEnd:`calc(-2em - ${Oe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Oe.paddingXS}px)`}},[`${yt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Oe.remainingColor,borderRadius:Oe.lineBorderRadius},[`${yt}-inner:not(${yt}-circle-gradient)`]:{[`${yt}-circle-path`]:{stroke:Oe.defaultColor}},[`${yt}-success-bg, ${yt}-bg`]:{position:"relative",backgroundColor:Oe.defaultColor,borderRadius:Oe.lineBorderRadius,transition:`all ${Oe.motionDurationSlow} ${Oe.motionEaseInOutCirc}`},[`${yt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Oe.colorSuccess},[`${yt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Oe.marginXS,color:Oe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[jt]:{fontSize:Oe.fontSize}},[`&${yt}-status-active`]:{[`${yt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Oe.colorBgContainer,borderRadius:Oe.lineBorderRadius,opacity:0,animationName:ht(),animationDuration:Oe.progressActiveMotionDuration,animationTimingFunction:Oe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${yt}-rtl${yt}-status-active`]:{[`${yt}-bg::before`]:{animationName:ht(!0)}},[`&${yt}-status-exception`]:{[`${yt}-bg`]:{backgroundColor:Oe.colorError},[`${yt}-text`]:{color:Oe.colorError}},[`&${yt}-status-exception ${yt}-inner:not(${yt}-circle-gradient)`]:{[`${yt}-circle-path`]:{stroke:Oe.colorError}},[`&${yt}-status-success`]:{[`${yt}-bg`]:{backgroundColor:Oe.colorSuccess},[`${yt}-text`]:{color:Oe.colorSuccess}},[`&${yt}-status-success ${yt}-inner:not(${yt}-circle-gradient)`]:{[`${yt}-circle-path`]:{stroke:Oe.colorSuccess}}})}},Ne=Oe=>{const{componentCls:yt,iconCls:jt}=Oe;return{[yt]:{[`${yt}-circle-trail`]:{stroke:Oe.remainingColor},[`&${yt}-circle ${yt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${yt}-circle ${yt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Oe.circleTextColor,fontSize:Oe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[jt]:{fontSize:`${Oe.fontSize/Oe.fontSizeSM}em`}},[`${yt}-circle&-status-exception`]:{[`${yt}-text`]:{color:Oe.colorError}},[`${yt}-circle&-status-success`]:{[`${yt}-text`]:{color:Oe.colorSuccess}}},[`${yt}-inline-circle`]:{lineHeight:1,[`${yt}-inner`]:{verticalAlign:"bottom"}}}},St=Oe=>{const{componentCls:yt}=Oe;return{[yt]:{[`${yt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Oe.progressStepMinWidth,marginInlineEnd:Oe.progressStepMarginInlineEnd,backgroundColor:Oe.remainingColor,transition:`all ${Oe.motionDurationSlow}`,"&-active":{backgroundColor:Oe.defaultColor}}}}}},gt=Oe=>{const{componentCls:yt,iconCls:jt}=Oe;return{[yt]:{[`${yt}-small&-line, ${yt}-small&-line ${yt}-text ${jt}`]:{fontSize:Oe.fontSizeSM}}}};var Xe=(0,se.Z)("Progress",Oe=>{const yt=Oe.marginXXS/2,jt=(0,Le.TS)(Oe,{progressStepMarginInlineEnd:yt,progressStepMinWidth:yt,progressActiveMotionDuration:"2.4s"});return[_e(jt),Ne(jt),St(jt),gt(jt)]},Oe=>({circleTextColor:Oe.colorText,defaultColor:Oe.colorInfo,remainingColor:Oe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),wt=function(Oe,yt){var jt={};for(var Zt in Oe)Object.prototype.hasOwnProperty.call(Oe,Zt)&&yt.indexOf(Zt)<0&&(jt[Zt]=Oe[Zt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nn=0,Zt=Object.getOwnPropertySymbols(Oe);nn<Zt.length;nn++)yt.indexOf(Zt[nn])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Zt[nn])&&(jt[Zt[nn]]=Oe[Zt[nn]]);return jt};const Xt=null,bt=["normal","exception","active","success"];var on=oe.forwardRef((Oe,yt)=>{const{prefixCls:jt,className:Zt,rootClassName:nn,steps:Cn,strokeColor:In,percent:Dn=0,size:Kn="default",showInfo:Vn=!0,type:_n="line",status:or,format:wr,style:Tr}=Oe,Yn=wt(Oe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),hr=oe.useMemo(()=>{var Rt,Ke;const nt=at(Oe);return parseInt(nt!==void 0?(Rt=nt!=null?nt:0)===null||Rt===void 0?void 0:Rt.toString():(Ke=Dn!=null?Dn:0)===null||Ke===void 0?void 0:Ke.toString(),10)},[Dn,Oe.success,Oe.successPercent]),kr=oe.useMemo(()=>!bt.includes(or)&&hr>=100?"success":or||"normal",[or,hr]),{getPrefixCls:Qn,direction:Fr,progress:ci}=oe.useContext(we.E_),Cr=Qn("progress",jt),[pi,ai]=Xe(Cr),nr=oe.useMemo(()=>{if(!Vn)return null;const Rt=at(Oe);let Ke;const nt=wr||(it=>`${it}%`),rt=_n==="line";return wr||kr!=="exception"&&kr!=="success"?Ke=nt(ge(Dn),ge(Rt)):kr==="exception"?Ke=rt?oe.createElement(Ye.Z,null):oe.createElement(ye.Z,null):kr==="success"&&(Ke=rt?oe.createElement(ke.Z,null):oe.createElement(Ce.Z,null)),oe.createElement("span",{className:`${Cr}-text`,title:typeof Ke=="string"?Ke:void 0},Ke)},[Vn,Dn,hr,kr,_n,Cr,wr]),yr=Array.isArray(In)?In[0]:In,Hn=typeof In=="string"||Array.isArray(In)?In:void 0;let Gn;_n==="line"?Gn=Cn?oe.createElement(ue,Object.assign({},Oe,{strokeColor:Hn,prefixCls:Cr,steps:Cn}),nr):oe.createElement(be,Object.assign({},Oe,{strokeColor:yr,prefixCls:Cr,direction:Fr}),nr):(_n==="circle"||_n==="dashboard")&&(Gn=oe.createElement(_t,Object.assign({},Oe,{strokeColor:yr,prefixCls:Cr,progressStatus:kr}),nr));const Or=he()(Cr,`${Cr}-status-${kr}`,`${Cr}-${_n==="dashboard"&&"circle"||Cn&&"steps"||_n}`,{[`${Cr}-inline-circle`]:_n==="circle"&&Qe(Kn,"circle")[0]<=20,[`${Cr}-show-info`]:Vn,[`${Cr}-${Kn}`]:typeof Kn=="string",[`${Cr}-rtl`]:Fr==="rtl"},ci==null?void 0:ci.className,Zt,nn,ai);return pi(oe.createElement("div",Object.assign({ref:yt,style:Object.assign(Object.assign({},ci==null?void 0:ci.style),Tr),className:Or,role:"progressbar","aria-valuenow":hr},(0,xe.Z)(Yn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Gn))}),vt=on},5112:function(gn,Kt,ie){"use strict";ie.d(Kt,{ZP:function(){return De}});var oe=ie(92310),ke=ie.n(oe),Ce=ie(18929),Ye=ie(26112),ye=ie(59301),Ee=ie(36355),he=ie(19716);const xe=ye.createContext(null),we=xe.Provider;var Te=xe;const qe=ye.createContext(null),Ie=qe.Provider;var Re=ie(5630),lt=ie(8654),Ue=ie(1684),We=ie(32441),ct=ie(17313),tt=ie(83116),At=ie(37613);const ut=ge=>{const{componentCls:at,antCls:Ct}=ge,It=`${at}-group`;return{[It]:Object.assign(Object.assign({},(0,ct.Wf)(ge)),{display:"inline-block",fontSize:0,[`&${It}-rtl`]:{direction:"rtl"},[`${Ct}-badge ${Ct}-badge-count`]:{zIndex:1},[`> ${Ct}-badge:not(:first-child) > ${Ct}-button-wrapper`]:{borderInlineStart:"none"}})}},ot=ge=>{const{componentCls:at,wrapperMarginInlineEnd:Ct,colorPrimary:It,radioSize:Qe,motionDurationSlow:et,motionDurationMid:Lt,motionEaseInOutCirc:dn,colorBgContainer:_t,colorBorder:tn,lineWidth:en,dotSize:Jt,colorBgContainerDisabled:Vt,colorTextDisabled:be,paddingXS:ce,dotColorDisabled:ue,lineType:de,radioDotDisabledSize:pe,wireframe:se,colorWhite:Le}=ge,ht=`${at}-inner`;return{[`${at}-wrapper`]:Object.assign(Object.assign({},(0,ct.Wf)(ge)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Ct,cursor:"pointer",[`&${at}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:ge.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${at}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${en}px ${de} ${It}`,borderRadius:"50%",visibility:"hidden",content:'""'},[at]:Object.assign(Object.assign({},(0,ct.Wf)(ge)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${at}-wrapper:hover &,
|
|
|
&:hover ${ht}`]:{borderColor:It},[`${at}-input:focus-visible + ${ht}`]:Object.assign({},(0,ct.oN)(ge)),[`${at}:hover::after, ${at}-wrapper:hover &::after`]:{visibility:"visible"},[`${at}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Qe,height:Qe,marginBlockStart:Qe/-2,marginInlineStart:Qe/-2,backgroundColor:se?It:Le,borderBlockStart:0,borderInlineStart:0,borderRadius:Qe,transform:"scale(0)",opacity:0,transition:`all ${et} ${dn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Qe,height:Qe,backgroundColor:_t,borderColor:tn,borderStyle:"solid",borderWidth:en,borderRadius:"50%",transition:`all ${Lt}`},[`${at}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${at}-checked`]:{[ht]:{borderColor:It,backgroundColor:se?_t:It,"&::after":{transform:`scale(${Jt/Qe})`,opacity:1,transition:`all ${et} ${dn}`}}},[`${at}-disabled`]:{cursor:"not-allowed",[ht]:{backgroundColor:Vt,borderColor:tn,cursor:"not-allowed","&::after":{backgroundColor:ue}},[`${at}-input`]:{cursor:"not-allowed"},[`${at}-disabled + span`]:{color:be,cursor:"not-allowed"},[`&${at}-checked`]:{[ht]:{"&::after":{transform:`scale(${pe/Qe})`}}}},[`span${at} + *`]:{paddingInlineStart:ce,paddingInlineEnd:ce}})}},je=ge=>{const{buttonColor:at,controlHeight:Ct,componentCls:It,lineWidth:Qe,lineType:et,colorBorder:Lt,motionDurationSlow:dn,motionDurationMid:_t,buttonPaddingInline:tn,fontSize:en,buttonBg:Jt,fontSizeLG:Vt,controlHeightLG:be,controlHeightSM:ce,paddingXS:ue,borderRadius:de,borderRadiusSM:pe,borderRadiusLG:se,buttonCheckedBg:Le,buttonSolidCheckedColor:ht,colorTextDisabled:_e,colorBgContainerDisabled:Ne,buttonCheckedBgDisabled:St,buttonCheckedColorDisabled:gt,colorPrimary:Xe,colorPrimaryHover:wt,colorPrimaryActive:Xt,buttonSolidCheckedBg:bt,buttonSolidCheckedHoverBg:$t,buttonSolidCheckedActiveBg:on}=ge;return{[`${It}-button-wrapper`]:{position:"relative",display:"inline-block",height:Ct,margin:0,paddingInline:tn,paddingBlock:0,color:at,fontSize:en,lineHeight:`${Ct-Qe*2}px`,background:Jt,border:`${Qe}px ${et} ${Lt}`,borderBlockStartWidth:Qe+.02,borderInlineStartWidth:0,borderInlineEndWidth:Qe,cursor:"pointer",transition:[`color ${_t}`,`background ${_t}`,`box-shadow ${_t}`].join(","),a:{color:at},[`> ${It}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Qe,insetInlineStart:-Qe,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Qe,paddingInline:0,backgroundColor:Lt,transition:`background-color ${dn}`,content:'""'}},"&:first-child":{borderInlineStart:`${Qe}px ${et} ${Lt}`,borderStartStartRadius:de,borderEndStartRadius:de},"&:last-child":{borderStartEndRadius:de,borderEndEndRadius:de},"&:first-child:last-child":{borderRadius:de},[`${It}-group-large &`]:{height:be,fontSize:Vt,lineHeight:`${be-Qe*2}px`,"&:first-child":{borderStartStartRadius:se,borderEndStartRadius:se},"&:last-child":{borderStartEndRadius:se,borderEndEndRadius:se}},[`${It}-group-small &`]:{height:ce,paddingInline:ue-Qe,paddingBlock:0,lineHeight:`${ce-Qe*2}px`,"&:first-child":{borderStartStartRadius:pe,borderEndStartRadius:pe},"&:last-child":{borderStartEndRadius:pe,borderEndEndRadius:pe}},"&:hover":{position:"relative",color:Xe},"&:has(:focus-visible)":Object.assign({},(0,ct.oN)(ge)),[`${It}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${It}-button-wrapper-disabled)`]:{zIndex:1,color:Xe,background:Le,borderColor:Xe,"&::before":{backgroundColor:Xe},"&:first-child":{borderColor:Xe},"&:hover":{color:wt,borderColor:wt,"&::before":{backgroundColor:wt}},"&:active":{color:Xt,borderColor:Xt,"&::before":{backgroundColor:Xt}}},[`${It}-group-solid &-checked:not(${It}-button-wrapper-disabled)`]:{color:ht,background:bt,borderColor:bt,"&:hover":{color:ht,background:$t,borderColor:$t},"&:active":{color:ht,background:on,borderColor:on}},"&-disabled":{color:_e,backgroundColor:Ne,borderColor:Lt,cursor:"not-allowed","&:first-child, &:hover":{color:_e,backgroundColor:Ne,borderColor:Lt}},[`&-disabled${It}-button-wrapper-checked`]:{color:gt,backgroundColor:St,borderColor:Lt,boxShadow:"none"}}}},Se=ge=>ge-4*2;var Fe=(0,tt.Z)("Radio",ge=>{const{controlOutline:at,controlOutlineWidth:Ct,radioSize:It}=ge,Qe=`0 0 0 ${Ct}px ${at}`,et=Qe,Lt=Se(It),dn=(0,At.TS)(ge,{radioDotDisabledSize:Lt,radioFocusShadow:Qe,radioButtonFocusShadow:et});return[ut(dn),ot(dn),je(dn)]},ge=>{const{wireframe:at,padding:Ct,marginXS:It,lineWidth:Qe,fontSizeLG:et,colorText:Lt,colorBgContainer:dn,colorTextDisabled:_t,controlItemBgActiveDisabled:tn,colorTextLightSolid:en,colorPrimary:Jt,colorPrimaryHover:Vt,colorPrimaryActive:be}=ge,ce=4,ue=et,de=at?Se(ue):ue-(ce+Qe)*2;return{radioSize:ue,dotSize:de,dotColorDisabled:_t,buttonSolidCheckedColor:en,buttonSolidCheckedBg:Jt,buttonSolidCheckedHoverBg:Vt,buttonSolidCheckedActiveBg:be,buttonBg:dn,buttonCheckedBg:dn,buttonColor:Lt,buttonCheckedBgDisabled:tn,buttonCheckedColorDisabled:_t,buttonPaddingInline:Ct-Qe,wrapperMarginInlineEnd:It}}),Ze=ie(14088),xt=ie(4572),Je=function(ge,at){var Ct={};for(var It in ge)Object.prototype.hasOwnProperty.call(ge,It)&&at.indexOf(It)<0&&(Ct[It]=ge[It]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,It=Object.getOwnPropertySymbols(ge);Qe<It.length;Qe++)at.indexOf(It[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ge,It[Qe])&&(Ct[It[Qe]]=ge[It[Qe]]);return Ct};const dt=(ge,at)=>{var Ct,It;const Qe=ye.useContext(Te),et=ye.useContext(qe),{getPrefixCls:Lt,direction:dn,radio:_t}=ye.useContext(Ee.E_),tn=ye.useRef(null),en=(0,lt.sQ)(at,tn),{isFormItemInput:Jt}=ye.useContext(We.aM),Vt=Xt=>{var bt,$t;(bt=ge.onChange)===null||bt===void 0||bt.call(ge,Xt),($t=Qe==null?void 0:Qe.onChange)===null||$t===void 0||$t.call(Qe,Xt)},{prefixCls:be,className:ce,rootClassName:ue,children:de,style:pe}=ge,se=Je(ge,["prefixCls","className","rootClassName","children","style"]),Le=Lt("radio",be),ht=((Qe==null?void 0:Qe.optionType)||et)==="button",_e=ht?`${Le}-button`:Le,[Ne,St]=Fe(Le),gt=Object.assign({},se),Xe=ye.useContext(Ue.Z);Qe&&(gt.name=Qe.name,gt.onChange=Vt,gt.checked=ge.value===Qe.value,gt.disabled=(Ct=gt.disabled)!==null&&Ct!==void 0?Ct:Qe.disabled),gt.disabled=(It=gt.disabled)!==null&&It!==void 0?It:Xe;const wt=ke()(`${_e}-wrapper`,{[`${_e}-wrapper-checked`]:gt.checked,[`${_e}-wrapper-disabled`]:gt.disabled,[`${_e}-wrapper-rtl`]:dn==="rtl",[`${_e}-wrapper-in-form-item`]:Jt},_t==null?void 0:_t.className,ce,ue,St);return Ne(ye.createElement(Ze.Z,{component:"Radio",disabled:gt.disabled},ye.createElement("label",{className:wt,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),pe),onMouseEnter:ge.onMouseEnter,onMouseLeave:ge.onMouseLeave},ye.createElement(Re.Z,Object.assign({},gt,{className:ke()(gt.className,!ht&&xt.A),type:"radio",prefixCls:_e,ref:en})),de!==void 0?ye.createElement("span",null,de):null)))};var kt=ye.forwardRef(dt);const He=ye.forwardRef((ge,at)=>{const{getPrefixCls:Ct,direction:It}=ye.useContext(Ee.E_),[Qe,et]=(0,Ce.Z)(ge.defaultValue,{value:ge.value}),Lt=bt=>{const $t=Qe,on=bt.target.value;"value"in ge||et(on);const{onChange:vt}=ge;vt&&on!==$t&&vt(bt)},{prefixCls:dn,className:_t,rootClassName:tn,options:en,buttonStyle:Jt="outline",disabled:Vt,children:be,size:ce,style:ue,id:de,onMouseEnter:pe,onMouseLeave:se,onFocus:Le,onBlur:ht}=ge,_e=Ct("radio",dn),Ne=`${_e}-group`,[St,gt]=Fe(_e);let Xe=be;en&&en.length>0&&(Xe=en.map(bt=>typeof bt=="string"||typeof bt=="number"?ye.createElement(kt,{key:bt.toString(),prefixCls:_e,disabled:Vt,value:bt,checked:Qe===bt},bt):ye.createElement(kt,{key:`radio-group-value-options-${bt.value}`,prefixCls:_e,disabled:bt.disabled||Vt,value:bt.value,checked:Qe===bt.value,title:bt.title,style:bt.style},bt.label)));const wt=(0,he.Z)(ce),Xt=ke()(Ne,`${Ne}-${Jt}`,{[`${Ne}-${wt}`]:wt,[`${Ne}-rtl`]:It==="rtl"},_t,tn,gt);return St(ye.createElement("div",Object.assign({},(0,Ye.Z)(ge,{aria:!0,data:!0}),{className:Xt,style:ue,onMouseEnter:pe,onMouseLeave:se,onFocus:Le,onBlur:ht,id:de,ref:at}),ye.createElement(we,{value:{onChange:Lt,value:Qe,disabled:ge.disabled,name:ge.name,optionType:ge.optionType}},Xe)))});var Tt=ye.memo(He),mt=function(ge,at){var Ct={};for(var It in ge)Object.prototype.hasOwnProperty.call(ge,It)&&at.indexOf(It)<0&&(Ct[It]=ge[It]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,It=Object.getOwnPropertySymbols(ge);Qe<It.length;Qe++)at.indexOf(It[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ge,It[Qe])&&(Ct[It[Qe]]=ge[It[Qe]]);return Ct};const Et=(ge,at)=>{const{getPrefixCls:Ct}=ye.useContext(Ee.E_),{prefixCls:It}=ge,Qe=mt(ge,["prefixCls"]),et=Ct("radio",It);return ye.createElement(Ie,{value:"button"},ye.createElement(kt,Object.assign({prefixCls:et},Qe,{type:"radio",ref:at})))};var zt=ye.forwardRef(Et);const Bt=kt;Bt.Button=zt,Bt.Group=Tt,Bt.__ANT_RADIO=!0;var De=Bt},57809:function(gn,Kt,ie){"use strict";var oe=ie(92310),ke=ie.n(oe),Ce=ie(77861),Ye=ie(2738),ye=ie(59301),Ee=ie(53487),he=ie(62892),xe=ie(19080),we=ie(36355),Te=ie(1684),qe=ie(93891),Ie=ie(19716),Re=ie(32441),lt=ie(33234),Ue=ie(14154),We=ie(58582),ct=ie(84443),tt=ie(66339),At=function(Fe,Ze){var xt={};for(var Je in Fe)Object.prototype.hasOwnProperty.call(Fe,Je)&&Ze.indexOf(Je)<0&&(xt[Je]=Fe[Je]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Je=Object.getOwnPropertySymbols(Fe);dt<Je.length;dt++)Ze.indexOf(Je[dt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Je[dt])&&(xt[Je[dt]]=Fe[Je[dt]]);return xt};const ut="SECRET_COMBOBOX_MODE_DO_NOT_USE",ot=(Fe,Ze)=>{var xt,{prefixCls:Je,bordered:dt=!0,className:Be,rootClassName:kt,getPopupContainer:He,popupClassName:Tt,dropdownClassName:mt,listHeight:Et=256,placement:zt,listItemHeight:Bt=24,size:De,disabled:ge,notFoundContent:at,status:Ct,builtinPlacements:It,dropdownMatchSelectWidth:Qe,popupMatchSelectWidth:et,direction:Lt,style:dn,allowClear:_t}=Fe,tn=At(Fe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:en,getPrefixCls:Jt,renderEmpty:Vt,direction:be,virtual:ce,popupMatchSelectWidth:ue,popupOverflow:de,select:pe}=ye.useContext(we.E_),se=Jt("select",Je),Le=Jt(),ht=Lt!=null?Lt:be,{compactSize:_e,compactItemClassnames:Ne}=(0,lt.ri)(se,ht),[St,gt]=(0,Ue.Z)(se),Xe=ye.useMemo(()=>{const{mode:kr}=tn;if(kr!=="combobox")return kr===ut?"combobox":kr},[tn.mode]),wt=Xe==="multiple"||Xe==="tags",Xt=(0,ct.Z)(tn.suffixIcon,tn.showArrow),bt=(xt=et!=null?et:Qe)!==null&&xt!==void 0?xt:ue,{status:$t,hasFeedback:on,isFormItemInput:vt,feedbackIcon:Oe}=ye.useContext(Re.aM),yt=(0,xe.F)($t,Ct);let jt;at!==void 0?jt=at:Xe==="combobox"?jt=null:jt=(Vt==null?void 0:Vt("Select"))||ye.createElement(qe.Z,{componentName:"Select"});const{suffixIcon:Zt,itemIcon:nn,removeIcon:Cn,clearIcon:In}=(0,tt.Z)(Object.assign(Object.assign({},tn),{multiple:wt,hasFeedback:on,feedbackIcon:Oe,showSuffixIcon:Xt,prefixCls:se,showArrow:tn.showArrow,componentName:"Select"})),Dn=_t===!0?{clearIcon:In}:_t,Kn=(0,Ye.Z)(tn,["suffixIcon","itemIcon"]),Vn=ke()(Tt||mt,{[`${se}-dropdown-${ht}`]:ht==="rtl"},kt,gt),_n=(0,Ie.Z)(kr=>{var Qn;return(Qn=De!=null?De:_e)!==null&&Qn!==void 0?Qn:kr}),or=ye.useContext(Te.Z),wr=ge!=null?ge:or,Tr=ke()({[`${se}-lg`]:_n==="large",[`${se}-sm`]:_n==="small",[`${se}-rtl`]:ht==="rtl",[`${se}-borderless`]:!dt,[`${se}-in-form-item`]:vt},(0,xe.Z)(se,yt,on),Ne,pe==null?void 0:pe.className,Be,kt,gt),Yn=ye.useMemo(()=>zt!==void 0?zt:ht==="rtl"?"bottomRight":"bottomLeft",[zt,ht]),hr=(0,We.Z)(It,de);return St(ye.createElement(Ce.ZP,Object.assign({ref:Ze,virtual:ce,showSearch:pe==null?void 0:pe.showSearch},Kn,{style:Object.assign(Object.assign({},pe==null?void 0:pe.style),dn),dropdownMatchSelectWidth:bt,builtinPlacements:hr,transitionName:(0,he.m)(Le,"slide-up",tn.transitionName),listHeight:Et,listItemHeight:Bt,mode:Xe,prefixCls:se,placement:Yn,direction:ht,suffixIcon:Zt,menuItemSelectedIcon:nn,removeIcon:Cn,allowClear:Dn,notFoundContent:jt,className:Tr,getPopupContainer:He||en,dropdownClassName:Vn,disabled:wr})))},je=ye.forwardRef(ot),Se=(0,Ee.Z)(je);je.SECRET_COMBOBOX_MODE_DO_NOT_USE=ut,je.Option=Ce.Wx,je.OptGroup=Ce.Xo,je._InternalPanelDoNotUseOrYouWillBeFired=Se,Kt.default=je},14154:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return je}});var oe=ie(17313),ke=ie(74207),Ce=ie(37613),Ye=ie(83116),ye=ie(13826),Ee=ie(92899);const he=Se=>{const{optionHeight:Fe,optionFontSize:Ze,optionLineHeight:xt,optionPadding:Je}=Se;return{position:"relative",display:"block",minHeight:Fe,padding:Je,color:Se.colorText,fontWeight:"normal",fontSize:Ze,lineHeight:xt,boxSizing:"border-box"}};var we=Se=>{const{antCls:Fe,componentCls:Ze}=Se,xt=`${Ze}-item`,Je=`&${Fe}-slide-up-enter${Fe}-slide-up-enter-active`,dt=`&${Fe}-slide-up-appear${Fe}-slide-up-appear-active`,Be=`&${Fe}-slide-up-leave${Fe}-slide-up-leave-active`,kt=`${Ze}-dropdown-placement-`;return[{[`${Ze}-dropdown`]:Object.assign(Object.assign({},(0,oe.Wf)(Se)),{position:"absolute",top:-9999,zIndex:Se.zIndexPopup,boxSizing:"border-box",padding:Se.paddingXXS,overflow:"hidden",fontSize:Se.fontSize,fontVariant:"initial",backgroundColor:Se.colorBgElevated,borderRadius:Se.borderRadiusLG,outline:"none",boxShadow:Se.boxShadowSecondary,[`
|
|
|
${Je}${kt}bottomLeft,
|
|
|
${dt}${kt}bottomLeft
|
|
|
`]:{animationName:ye.fJ},[`
|
|
|
${Je}${kt}topLeft,
|
|
|
${dt}${kt}topLeft,
|
|
|
${Je}${kt}topRight,
|
|
|
${dt}${kt}topRight
|
|
|
`]:{animationName:ye.Qt},[`${Be}${kt}bottomLeft`]:{animationName:ye.Uw},[`
|
|
|
${Be}${kt}topLeft,
|
|
|
${Be}${kt}topRight
|
|
|
`]:{animationName:ye.ly},"&-hidden":{display:"none"},[`${xt}`]:Object.assign(Object.assign({},he(Se)),{cursor:"pointer",transition:`background ${Se.motionDurationSlow} ease`,borderRadius:Se.borderRadiusSM,"&-group":{color:Se.colorTextDescription,fontSize:Se.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},oe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${xt}-option-disabled)`]:{backgroundColor:Se.optionActiveBg},[`&-selected:not(${xt}-option-disabled)`]:{color:Se.optionSelectedColor,fontWeight:Se.optionSelectedFontWeight,backgroundColor:Se.optionSelectedBg,[`${xt}-option-state`]:{color:Se.colorPrimary}},"&-disabled":{[`&${xt}-option-selected`]:{backgroundColor:Se.colorBgContainerDisabled},color:Se.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Se.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ye.oN)(Se,"slide-up"),(0,ye.oN)(Se,"slide-down"),(0,Ee.Fm)(Se,"move-up"),(0,Ee.Fm)(Se,"move-down")]};const Te=2,qe=Se=>{let{controlHeightSM:Fe,controlHeight:Ze,lineWidth:xt}=Se;const Je=(Ze-Fe)/2-xt,dt=Math.ceil(Je/2);return[Je,dt]};function Ie(Se,Fe){const{componentCls:Ze,iconCls:xt}=Se,Je=`${Ze}-selection-overflow`,dt=Se.multipleSelectItemHeight,[Be]=qe(Se),kt=Fe?`${Ze}-${Fe}`:"";return{[`${Ze}-multiple${kt}`]:{fontSize:Se.fontSize,[Je]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ze}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Be-Te}px ${Te*2}px`,borderRadius:Se.borderRadius,[`${Ze}-show-search&`]:{cursor:"text"},[`${Ze}-disabled&`]:{background:Se.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Te}px 0`,lineHeight:`${dt}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Ze}-show-arrow ${Ze}-selector,
|
|
|
&${Ze}-allow-clear ${Ze}-selector
|
|
|
`]:{paddingInlineEnd:Se.fontSizeIcon+Se.controlPaddingHorizontal},[`${Ze}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:dt,marginTop:Te,marginBottom:Te,lineHeight:`${dt-Se.lineWidth*2}px`,background:Se.multipleItemBg,border:`${Se.lineWidth}px ${Se.lineType} ${Se.multipleItemBorderColor}`,borderRadius:Se.borderRadiusSM,cursor:"default",transition:`font-size ${Se.motionDurationSlow}, line-height ${Se.motionDurationSlow}, height ${Se.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Te*2,paddingInlineStart:Se.paddingXS,paddingInlineEnd:Se.paddingXS/2,[`${Ze}-disabled&`]:{color:Se.multipleItemColorDisabled,borderColor:Se.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Se.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,oe.Ro)()),{display:"inline-flex",alignItems:"center",color:Se.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${xt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Se.colorIconHover}})},[`${Je}-item + ${Je}-item`]:{[`${Ze}-selection-search`]:{marginInlineStart:0}},[`${Ze}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Se.inputPaddingHorizontalBase-Be,"\n &-input,\n &-mirror\n ":{height:dt,fontFamily:Se.fontFamily,lineHeight:`${dt}px`,transition:`all ${Se.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ze}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Se.inputPaddingHorizontalBase,insetInlineEnd:Se.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Se.motionDurationSlow}`}}}}var lt=Se=>{const{componentCls:Fe}=Se,Ze=(0,Ce.TS)(Se,{controlHeight:Se.controlHeightSM,multipleSelectItemHeight:Se.controlHeightXS,borderRadius:Se.borderRadiusSM,borderRadiusSM:Se.borderRadiusXS}),xt=(0,Ce.TS)(Se,{fontSize:Se.fontSizeLG,controlHeight:Se.controlHeightLG,multipleSelectItemHeight:Se.multipleItemHeightLG,borderRadius:Se.borderRadiusLG,borderRadiusSM:Se.borderRadius}),[,Je]=qe(Se);return[Ie(Se),Ie(Ze,"sm"),{[`${Fe}-multiple${Fe}-sm`]:{[`${Fe}-selection-placeholder`]:{insetInline:Se.controlPaddingHorizontalSM-Se.lineWidth},[`${Fe}-selection-search`]:{marginInlineStart:Je}}},Ie(xt,"lg")]};function Ue(Se,Fe){const{componentCls:Ze,inputPaddingHorizontalBase:xt,borderRadius:Je}=Se,dt=Se.controlHeight-Se.lineWidth*2,Be=Math.ceil(Se.fontSize*1.25),kt=Fe?`${Ze}-${Fe}`:"";return{[`${Ze}-single${kt}`]:{fontSize:Se.fontSize,[`${Ze}-selector`]:Object.assign(Object.assign({},(0,oe.Wf)(Se)),{display:"flex",borderRadius:Je,[`${Ze}-selection-search`]:{position:"absolute",top:0,insetInlineStart:xt,insetInlineEnd:xt,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Ze}-selection-item,
|
|
|
${Ze}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${dt}px`,transition:`all ${Se.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${dt}px`}},[`${Ze}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ze}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ze}-selection-item:after`,`${Ze}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Ze}-show-arrow ${Ze}-selection-item,
|
|
|
&${Ze}-show-arrow ${Ze}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Be},[`&${Ze}-open ${Ze}-selection-item`]:{color:Se.colorTextPlaceholder},[`&:not(${Ze}-customize-input)`]:{[`${Ze}-selector`]:{width:"100%",height:Se.controlHeight,padding:`0 ${xt}px`,[`${Ze}-selection-search-input`]:{height:dt},"&:after":{lineHeight:`${dt}px`}}},[`&${Ze}-customize-input`]:{[`${Ze}-selector`]:{"&:after":{display:"none"},[`${Ze}-selection-search`]:{position:"static",width:"100%"},[`${Ze}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${xt}px`,"&:after":{display:"none"}}}}}}}function We(Se){const{componentCls:Fe}=Se,Ze=Se.controlPaddingHorizontalSM-Se.lineWidth;return[Ue(Se),Ue((0,Ce.TS)(Se,{controlHeight:Se.controlHeightSM,borderRadius:Se.borderRadiusSM}),"sm"),{[`${Fe}-single${Fe}-sm`]:{[`&:not(${Fe}-customize-input)`]:{[`${Fe}-selection-search`]:{insetInlineStart:Ze,insetInlineEnd:Ze},[`${Fe}-selector`]:{padding:`0 ${Ze}px`},[`&${Fe}-show-arrow ${Fe}-selection-search`]:{insetInlineEnd:Ze+Se.fontSize*1.5},[`
|
|
|
&${Fe}-show-arrow ${Fe}-selection-item,
|
|
|
&${Fe}-show-arrow ${Fe}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Se.fontSize*1.5}}}},Ue((0,Ce.TS)(Se,{controlHeight:Se.singleItemHeightLG,fontSize:Se.fontSizeLG,borderRadius:Se.borderRadiusLG}),"lg")]}const ct=Se=>{const{componentCls:Fe,selectorBg:Ze}=Se;return{position:"relative",backgroundColor:Ze,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,transition:`all ${Se.motionDurationMid} ${Se.motionEaseInOut}`,input:{cursor:"pointer"},[`${Fe}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Fe}-disabled&`]:{color:Se.colorTextDisabled,background:Se.colorBgContainerDisabled,cursor:"not-allowed",[`${Fe}-multiple&`]:{background:Se.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},tt=function(Se,Fe){let Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:xt,borderHoverColor:Je,outlineColor:dt,antCls:Be}=Fe,kt=Ze?{[`${xt}-selector`]:{borderColor:Je}}:{};return{[Se]:{[`&:not(${xt}-disabled):not(${xt}-customize-input):not(${Be}-pagination-size-changer)`]:Object.assign(Object.assign({},kt),{[`${xt}-focused& ${xt}-selector`]:{borderColor:Je,boxShadow:`0 0 0 ${Fe.controlOutlineWidth}px ${dt}`,outline:0},[`&:hover ${xt}-selector`]:{borderColor:Je}})}}},At=Se=>{const{componentCls:Fe}=Se;return{[`${Fe}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ut=Se=>{const{componentCls:Fe,inputPaddingHorizontalBase:Ze,iconCls:xt}=Se;return{[Fe]:Object.assign(Object.assign({},(0,oe.Wf)(Se)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Fe}-customize-input) ${Fe}-selector`]:Object.assign(Object.assign({},ct(Se)),At(Se)),[`${Fe}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},oe.vS),[`${Fe}-selection-placeholder`]:Object.assign(Object.assign({},oe.vS),{flex:1,color:Se.colorTextPlaceholder,pointerEvents:"none"}),[`${Fe}-arrow`]:Object.assign(Object.assign({},(0,oe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ze,height:Se.fontSizeIcon,marginTop:-Se.fontSizeIcon/2,color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[xt]:{verticalAlign:"top",transition:`transform ${Se.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Fe}-suffix)`]:{pointerEvents:"auto"}},[`${Fe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Fe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ze,zIndex:1,display:"inline-block",width:Se.fontSizeIcon,height:Se.fontSizeIcon,marginTop:-Se.fontSizeIcon/2,color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Se.clearBg,cursor:"pointer",opacity:0,transition:`color ${Se.motionDurationMid} ease, opacity ${Se.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Se.colorTextTertiary}},"&:hover":{[`${Fe}-clear`]:{opacity:1}}}),[`${Fe}-has-feedback`]:{[`${Fe}-clear`]:{insetInlineEnd:Ze+Se.fontSize+Se.paddingXS}}}},ot=Se=>{const{componentCls:Fe}=Se;return[{[Fe]:{[`&-borderless ${Fe}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Fe}-in-form-item`]:{width:"100%"}}},ut(Se),We(Se),lt(Se),we(Se),{[`${Fe}-rtl`]:{direction:"rtl"}},tt(Fe,(0,Ce.TS)(Se,{borderHoverColor:Se.colorPrimaryHover,outlineColor:Se.controlOutline})),tt(`${Fe}-status-error`,(0,Ce.TS)(Se,{borderHoverColor:Se.colorErrorHover,outlineColor:Se.colorErrorOutline}),!0),tt(`${Fe}-status-warning`,(0,Ce.TS)(Se,{borderHoverColor:Se.colorWarningHover,outlineColor:Se.colorWarningOutline}),!0),(0,ke.c)(Se,{borderElCls:`${Fe}-selector`,focusElCls:`${Fe}-focused`})]};var je=(0,Ye.Z)("Select",(Se,Fe)=>{let{rootPrefixCls:Ze}=Fe;const xt=(0,Ce.TS)(Se,{rootPrefixCls:Ze,inputPaddingHorizontalBase:Se.paddingSM-1,multipleSelectItemHeight:Se.multipleItemHeight});return[ot(xt)]},Se=>{const{fontSize:Fe,lineHeight:Ze,controlHeight:xt,controlPaddingHorizontal:Je,zIndexPopupBase:dt,colorText:Be,fontWeightStrong:kt,controlItemBgActive:He,controlItemBgHover:Tt,colorBgContainer:mt,colorFillSecondary:Et,controlHeightLG:zt,controlHeightSM:Bt,colorBgContainerDisabled:De,colorTextDisabled:ge}=Se;return{zIndexPopup:dt+50,optionSelectedColor:Be,optionSelectedFontWeight:kt,optionSelectedBg:He,optionActiveBg:Tt,optionPadding:`${(xt-Fe*Ze)/2}px ${Je}px`,optionFontSize:Fe,optionLineHeight:Ze,optionHeight:xt,selectorBg:mt,clearBg:mt,singleItemHeightLG:zt,multipleItemBg:Et,multipleItemBorderColor:"transparent",multipleItemHeight:Bt,multipleItemHeightLG:xt,multipleSelectorBgDisabled:De,multipleItemColorDisabled:ge,multipleItemBorderColorDisabled:"transparent"}})},58582:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return ke}});const oe=Ce=>{const ye={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ce==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ye),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ye),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ye),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ye),{points:["br","tr"],offset:[0,-4]})}};function ke(Ce,Ye){return Ce||oe(Ye)}},84443:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return oe}});function oe(ke,Ce){return Ce!==void 0?Ce:ke!==null}},66339:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});var oe=ie(40001),ke=ie(19248),Ce=ie(99267),Ye=ie(84105),ye=ie(58617),Ee=ie(47472),he=ie(59301);function xe(we){let{suffixIcon:Te,clearIcon:qe,menuItemSelectedIcon:Ie,removeIcon:Re,loading:lt,multiple:Ue,hasFeedback:We,prefixCls:ct,showSuffixIcon:tt,feedbackIcon:At,showArrow:ut,componentName:ot}=we;const je=qe!=null?qe:he.createElement(ke.Z,null),Se=Je=>Te===null&&!We&&!ut?null:he.createElement(he.Fragment,null,tt!==!1&&Je,We&&At);let Fe=null;if(Te!==void 0)Fe=Se(Te);else if(lt)Fe=Se(he.createElement(ye.Z,{spin:!0}));else{const Je=`${ct}-suffix`;Fe=dt=>{let{open:Be,showSearch:kt}=dt;return Se(Be&&kt?he.createElement(Ee.Z,{className:Je}):he.createElement(Ye.Z,{className:Je}))}}let Ze=null;Ie!==void 0?Ze=Ie:Ue?Ze=he.createElement(oe.Z,null):Ze=null;let xt=null;return Re!==void 0?xt=Re:xt=he.createElement(Ce.Z,null),{clearIcon:je,suffixIcon:Fe,itemIcon:Ze,removeIcon:xt}}},61621:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return de}});var oe=ie(92310),ke=ie.n(oe),Ce=ie(59301),Ye=ie(36355),ye=ie(2738),he=pe=>{const{prefixCls:se,className:Le,style:ht,size:_e,shape:Ne}=pe,St=ke()({[`${se}-lg`]:_e==="large",[`${se}-sm`]:_e==="small"}),gt=ke()({[`${se}-circle`]:Ne==="circle",[`${se}-square`]:Ne==="square",[`${se}-round`]:Ne==="round"}),Xe=Ce.useMemo(()=>typeof _e=="number"?{width:_e,height:_e,lineHeight:`${_e}px`}:{},[_e]);return Ce.createElement("span",{className:ke()(se,St,gt,Le),style:Object.assign(Object.assign({},Xe),ht)})},xe=ie(36237),we=ie(83116),Te=ie(37613);const qe=new xe.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ie=pe=>({height:pe,lineHeight:`${pe}px`}),Re=pe=>Object.assign({width:pe},Ie(pe)),lt=pe=>({background:pe.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:qe,animationDuration:pe.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ue=pe=>Object.assign({width:pe*5,minWidth:pe*5},Ie(pe)),We=pe=>{const{skeletonAvatarCls:se,gradientFromColor:Le,controlHeight:ht,controlHeightLG:_e,controlHeightSM:Ne}=pe;return{[`${se}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Le},Re(ht)),[`${se}${se}-circle`]:{borderRadius:"50%"},[`${se}${se}-lg`]:Object.assign({},Re(_e)),[`${se}${se}-sm`]:Object.assign({},Re(Ne))}},ct=pe=>{const{controlHeight:se,borderRadiusSM:Le,skeletonInputCls:ht,controlHeightLG:_e,controlHeightSM:Ne,gradientFromColor:St}=pe;return{[`${ht}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:St,borderRadius:Le},Ue(se)),[`${ht}-lg`]:Object.assign({},Ue(_e)),[`${ht}-sm`]:Object.assign({},Ue(Ne))}},tt=pe=>Object.assign({width:pe},Ie(pe)),At=pe=>{const{skeletonImageCls:se,imageSizeBase:Le,gradientFromColor:ht,borderRadiusSM:_e}=pe;return{[`${se}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:ht,borderRadius:_e},tt(Le*2)),{[`${se}-path`]:{fill:"#bfbfbf"},[`${se}-svg`]:Object.assign(Object.assign({},tt(Le)),{maxWidth:Le*4,maxHeight:Le*4}),[`${se}-svg${se}-svg-circle`]:{borderRadius:"50%"}}),[`${se}${se}-circle`]:{borderRadius:"50%"}}},ut=(pe,se,Le)=>{const{skeletonButtonCls:ht}=pe;return{[`${Le}${ht}-circle`]:{width:se,minWidth:se,borderRadius:"50%"},[`${Le}${ht}-round`]:{borderRadius:se}}},ot=pe=>Object.assign({width:pe*2,minWidth:pe*2},Ie(pe)),je=pe=>{const{borderRadiusSM:se,skeletonButtonCls:Le,controlHeight:ht,controlHeightLG:_e,controlHeightSM:Ne,gradientFromColor:St}=pe;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:St,borderRadius:se,width:ht*2,minWidth:ht*2},ot(ht))},ut(pe,ht,Le)),{[`${Le}-lg`]:Object.assign({},ot(_e))}),ut(pe,_e,`${Le}-lg`)),{[`${Le}-sm`]:Object.assign({},ot(Ne))}),ut(pe,Ne,`${Le}-sm`))},Se=pe=>{const{componentCls:se,skeletonAvatarCls:Le,skeletonTitleCls:ht,skeletonParagraphCls:_e,skeletonButtonCls:Ne,skeletonInputCls:St,skeletonImageCls:gt,controlHeight:Xe,controlHeightLG:wt,controlHeightSM:Xt,gradientFromColor:bt,padding:$t,marginSM:on,borderRadius:vt,titleHeight:Oe,blockRadius:yt,paragraphLiHeight:jt,controlHeightXS:Zt,paragraphMarginTop:nn}=pe;return{[`${se}`]:{display:"table",width:"100%",[`${se}-header`]:{display:"table-cell",paddingInlineEnd:$t,verticalAlign:"top",[`${Le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:bt},Re(Xe)),[`${Le}-circle`]:{borderRadius:"50%"},[`${Le}-lg`]:Object.assign({},Re(wt)),[`${Le}-sm`]:Object.assign({},Re(Xt))},[`${se}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${ht}`]:{width:"100%",height:Oe,background:bt,borderRadius:yt,[`+ ${_e}`]:{marginBlockStart:Xt}},[`${_e}`]:{padding:0,"> li":{width:"100%",height:jt,listStyle:"none",background:bt,borderRadius:yt,"+ li":{marginBlockStart:Zt}}},[`${_e}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${se}-content`]:{[`${ht}, ${_e} > li`]:{borderRadius:vt}}},[`${se}-with-avatar ${se}-content`]:{[`${ht}`]:{marginBlockStart:on,[`+ ${_e}`]:{marginBlockStart:nn}}},[`${se}${se}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},je(pe)),We(pe)),ct(pe)),At(pe)),[`${se}${se}-block`]:{width:"100%",[`${Ne}`]:{width:"100%"},[`${St}`]:{width:"100%"}},[`${se}${se}-active`]:{[`
|
|
|
${ht},
|
|
|
${_e} > li,
|
|
|
${Le},
|
|
|
${Ne},
|
|
|
${St},
|
|
|
${gt}
|
|
|
`]:Object.assign({},lt(pe))}}};var Fe=(0,we.Z)("Skeleton",pe=>{const{componentCls:se}=pe,Le=(0,Te.TS)(pe,{skeletonAvatarCls:`${se}-avatar`,skeletonTitleCls:`${se}-title`,skeletonParagraphCls:`${se}-paragraph`,skeletonButtonCls:`${se}-button`,skeletonInputCls:`${se}-input`,skeletonImageCls:`${se}-image`,imageSizeBase:pe.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${pe.gradientFromColor} 25%, ${pe.gradientToColor} 37%, ${pe.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Se(Le)]},pe=>{const{colorFillContent:se,colorFill:Le}=pe,ht=se,_e=Le;return{color:ht,colorGradientEnd:_e,gradientFromColor:ht,gradientToColor:_e,titleHeight:pe.controlHeight/2,blockRadius:pe.borderRadiusSM,paragraphMarginTop:pe.marginLG+pe.marginXXS,paragraphLiHeight:pe.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),xt=pe=>{const{prefixCls:se,className:Le,rootClassName:ht,active:_e,shape:Ne="circle",size:St="default"}=pe,{getPrefixCls:gt}=Ce.useContext(Ye.E_),Xe=gt("skeleton",se),[wt,Xt]=Fe(Xe),bt=(0,ye.Z)(pe,["prefixCls","className"]),$t=ke()(Xe,`${Xe}-element`,{[`${Xe}-active`]:_e},Le,ht,Xt);return wt(Ce.createElement("div",{className:$t},Ce.createElement(he,Object.assign({prefixCls:`${Xe}-avatar`,shape:Ne,size:St},bt))))},dt=pe=>{const{prefixCls:se,className:Le,rootClassName:ht,active:_e,block:Ne=!1,size:St="default"}=pe,{getPrefixCls:gt}=Ce.useContext(Ye.E_),Xe=gt("skeleton",se),[wt,Xt]=Fe(Xe),bt=(0,ye.Z)(pe,["prefixCls"]),$t=ke()(Xe,`${Xe}-element`,{[`${Xe}-active`]:_e,[`${Xe}-block`]:Ne},Le,ht,Xt);return wt(Ce.createElement("div",{className:$t},Ce.createElement(he,Object.assign({prefixCls:`${Xe}-button`,size:St},bt))))};const Be="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 He=pe=>{const{prefixCls:se,className:Le,rootClassName:ht,style:_e,active:Ne}=pe,{getPrefixCls:St}=Ce.useContext(Ye.E_),gt=St("skeleton",se),[Xe,wt]=Fe(gt),Xt=ke()(gt,`${gt}-element`,{[`${gt}-active`]:Ne},Le,ht,wt);return Xe(Ce.createElement("div",{className:Xt},Ce.createElement("div",{className:ke()(`${gt}-image`,Le),style:_e},Ce.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${gt}-image-svg`},Ce.createElement("path",{d:Be,className:`${gt}-image-path`})))))},mt=pe=>{const{prefixCls:se,className:Le,rootClassName:ht,active:_e,block:Ne,size:St="default"}=pe,{getPrefixCls:gt}=Ce.useContext(Ye.E_),Xe=gt("skeleton",se),[wt,Xt]=Fe(Xe),bt=(0,ye.Z)(pe,["prefixCls"]),$t=ke()(Xe,`${Xe}-element`,{[`${Xe}-active`]:_e,[`${Xe}-block`]:Ne},Le,ht,Xt);return wt(Ce.createElement("div",{className:$t},Ce.createElement(he,Object.assign({prefixCls:`${Xe}-input`,size:St},bt))))},Et=ie(54476),zt={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"},Bt=zt,De=ie(7657),ge=function(se,Le){return Ce.createElement(De.Z,(0,Et.Z)({},se,{ref:Le,icon:Bt}))},at=Ce.forwardRef(ge),Ct=at,Qe=pe=>{const{prefixCls:se,className:Le,rootClassName:ht,style:_e,active:Ne,children:St}=pe,{getPrefixCls:gt}=Ce.useContext(Ye.E_),Xe=gt("skeleton",se),[wt,Xt]=Fe(Xe),bt=ke()(Xe,`${Xe}-element`,{[`${Xe}-active`]:Ne},Xt,Le,ht),$t=St!=null?St:Ce.createElement(Ct,null);return wt(Ce.createElement("div",{className:bt},Ce.createElement("div",{className:ke()(`${Xe}-image`,Le),style:_e},$t)))},et=ie(94480),dn=pe=>{const se=gt=>{const{width:Xe,rows:wt=2}=pe;if(Array.isArray(Xe))return Xe[gt];if(wt-1===gt)return Xe},{prefixCls:Le,className:ht,style:_e,rows:Ne}=pe,St=(0,et.Z)(Array(Ne)).map((gt,Xe)=>Ce.createElement("li",{key:Xe,style:{width:se(Xe)}}));return Ce.createElement("ul",{className:ke()(Le,ht),style:_e},St)},tn=pe=>{let{prefixCls:se,className:Le,width:ht,style:_e}=pe;return Ce.createElement("h3",{className:ke()(se,Le),style:Object.assign({width:ht},_e)})};function en(pe){return pe&&typeof pe=="object"?pe:{}}function Jt(pe,se){return pe&&!se?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Vt(pe,se){return!pe&&se?{width:"38%"}:pe&&se?{width:"50%"}:{}}function be(pe,se){const Le={};return(!pe||!se)&&(Le.width="61%"),!pe&&se?Le.rows=3:Le.rows=2,Le}const ce=pe=>{const{prefixCls:se,loading:Le,className:ht,rootClassName:_e,style:Ne,children:St,avatar:gt=!1,title:Xe=!0,paragraph:wt=!0,active:Xt,round:bt}=pe,{getPrefixCls:$t,direction:on,skeleton:vt}=Ce.useContext(Ye.E_),Oe=$t("skeleton",se),[yt,jt]=Fe(Oe);if(Le||!("loading"in pe)){const Zt=!!gt,nn=!!Xe,Cn=!!wt;let In;if(Zt){const Vn=Object.assign(Object.assign({prefixCls:`${Oe}-avatar`},Jt(nn,Cn)),en(gt));In=Ce.createElement("div",{className:`${Oe}-header`},Ce.createElement(he,Object.assign({},Vn)))}let Dn;if(nn||Cn){let Vn;if(nn){const or=Object.assign(Object.assign({prefixCls:`${Oe}-title`},Vt(Zt,Cn)),en(Xe));Vn=Ce.createElement(tn,Object.assign({},or))}let _n;if(Cn){const or=Object.assign(Object.assign({prefixCls:`${Oe}-paragraph`},be(Zt,nn)),en(wt));_n=Ce.createElement(dn,Object.assign({},or))}Dn=Ce.createElement("div",{className:`${Oe}-content`},Vn,_n)}const Kn=ke()(Oe,{[`${Oe}-with-avatar`]:Zt,[`${Oe}-active`]:Xt,[`${Oe}-rtl`]:on==="rtl",[`${Oe}-round`]:bt},vt==null?void 0:vt.className,ht,_e,jt);return yt(Ce.createElement("div",{className:Kn,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),Ne)},In,Dn))}return typeof St!="undefined"?St:null};ce.Button=dt,ce.Avatar=xt,ce.Input=mt,ce.Image=He,ce.Node=Qe;var ue=ce,de=ue},31797:function(gn,Kt,ie){"use strict";ie.d(Kt,{default:function(){return Fe}});var oe=ie(59301),ke=ie(56762),Ce=ie(92343),Ye=ie(92310),ye=ie.n(Ye),Ee=ie(36355),he=ie(61621),we=Ze=>{const{value:xt,formatter:Je,precision:dt,decimalSeparator:Be,groupSeparator:kt="",prefixCls:He}=Ze;let Tt;if(typeof Je=="function")Tt=Je(xt);else{const mt=String(xt),Et=mt.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Et||mt==="-")Tt=mt;else{const zt=Et[1];let Bt=Et[2]||"0",De=Et[4]||"";Bt=Bt.replace(/\B(?=(\d{3})+(?!\d))/g,kt),typeof dt=="number"&&(De=De.padEnd(dt,"0").slice(0,dt>0?dt:0)),De&&(De=`${Be}${De}`),Tt=[oe.createElement("span",{key:"int",className:`${He}-content-value-int`},zt,Bt),De&&oe.createElement("span",{key:"decimal",className:`${He}-content-value-decimal`},De)]}}return oe.createElement("span",{className:`${He}-content-value`},Tt)},Te=ie(17313),qe=ie(83116),Ie=ie(37613);const Re=Ze=>{const{componentCls:xt,marginXXS:Je,padding:dt,colorTextDescription:Be,titleFontSize:kt,colorTextHeading:He,contentFontSize:Tt,fontFamily:mt}=Ze;return{[`${xt}`]:Object.assign(Object.assign({},(0,Te.Wf)(Ze)),{[`${xt}-title`]:{marginBottom:Je,color:Be,fontSize:kt},[`${xt}-skeleton`]:{paddingTop:dt},[`${xt}-content`]:{color:He,fontSize:Tt,fontFamily:mt,[`${xt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${xt}-content-prefix, ${xt}-content-suffix`]:{display:"inline-block"},[`${xt}-content-prefix`]:{marginInlineEnd:Je},[`${xt}-content-suffix`]:{marginInlineStart:Je}}})}};var lt=(0,qe.Z)("Statistic",Ze=>{const xt=(0,Ie.TS)(Ze,{});return[Re(xt)]},Ze=>{const{fontSizeHeading3:xt,fontSize:Je}=Ze;return{titleFontSize:Je,contentFontSize:xt}}),We=Ze=>{const{prefixCls:xt,className:Je,rootClassName:dt,style:Be,valueStyle:kt,value:He=0,title:Tt,valueRender:mt,prefix:Et,suffix:zt,loading:Bt=!1,onMouseEnter:De,onMouseLeave:ge,decimalSeparator:at=".",groupSeparator:Ct=","}=Ze,{getPrefixCls:It,direction:Qe,statistic:et}=oe.useContext(Ee.E_),Lt=It("statistic",xt),[dn,_t]=lt(Lt),tn=oe.createElement(we,Object.assign({decimalSeparator:at,groupSeparator:Ct,prefixCls:Lt},Ze,{value:He})),en=ye()(Lt,{[`${Lt}-rtl`]:Qe==="rtl"},et==null?void 0:et.className,Je,dt,_t);return dn(oe.createElement("div",{className:en,style:Object.assign(Object.assign({},et==null?void 0:et.style),Be),onMouseEnter:De,onMouseLeave:ge},Tt&&oe.createElement("div",{className:`${Lt}-title`},Tt),oe.createElement(he.Z,{paragraph:!1,loading:Bt,className:`${Lt}-skeleton`},oe.createElement("div",{style:kt,className:`${Lt}-content`},Et&&oe.createElement("span",{className:`${Lt}-content-prefix`},Et),mt?mt(tn):tn,zt&&oe.createElement("span",{className:`${Lt}-content-suffix`},zt)))))};const ct=[["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 tt(Ze,xt){let Je=Ze;const dt=/\[[^\]]*]/g,Be=(xt.match(dt)||[]).map(mt=>mt.slice(1,-1)),kt=xt.replace(dt,"[]"),He=ct.reduce((mt,Et)=>{let[zt,Bt]=Et;if(mt.includes(zt)){const De=Math.floor(Je/Bt);return Je-=De*Bt,mt.replace(new RegExp(`${zt}+`,"g"),ge=>{const at=ge.length;return De.toString().padStart(at,"0")})}return mt},kt);let Tt=0;return He.replace(dt,()=>{const mt=Be[Tt];return Tt+=1,mt})}function At(Ze,xt){const{format:Je=""}=xt,dt=new Date(Ze).getTime(),Be=Date.now(),kt=Math.max(dt-Be,0);return tt(kt,Je)}const ut=1e3/30;function ot(Ze){return new Date(Ze).getTime()}const je=Ze=>{const{value:xt,format:Je="HH:mm:ss",onChange:dt,onFinish:Be}=Ze,kt=(0,ke.Z)(),He=oe.useRef(null),Tt=()=>{Be==null||Be(),He.current&&(clearInterval(He.current),He.current=null)},mt=()=>{const Bt=ot(xt);Bt>=Date.now()&&(He.current=setInterval(()=>{kt(),dt==null||dt(Bt-Date.now()),Bt<Date.now()&&Tt()},ut))};oe.useEffect(()=>(mt(),()=>{He.current&&(clearInterval(He.current),He.current=null)}),[xt]);const Et=(Bt,De)=>At(Bt,Object.assign(Object.assign({},De),{format:Je})),zt=Bt=>(0,Ce.Tm)(Bt,{title:void 0});return oe.createElement(We,Object.assign({},Ze,{valueRender:zt,formatter:Et}))};var Se=oe.memo(je);We.Countdown=Se;var Fe=We},8378:function(gn,Kt){"use strict";const ie=oe=>({[oe.componentCls]:{[`${oe.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${oe.motionDurationMid} ${oe.motionEaseInOut},
|
|
|
opacity ${oe.motionDurationMid} ${oe.motionEaseInOut} !important`}},[`${oe.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${oe.motionDurationMid} ${oe.motionEaseInOut},
|
|
|
opacity ${oe.motionDurationMid} ${oe.motionEaseInOut} !important`}}});Kt.Z=ie},92899:function(gn,Kt,ie){"use strict";ie.d(Kt,{Fm:function(){return Ie}});var oe=ie(36237),ke=ie(95406);const Ce=new oe.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ye=new oe.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ye=new oe.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ee=new oe.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),he=new oe.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xe=new oe.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),we=new oe.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Te=new oe.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),qe={"move-up":{inKeyframes:we,outKeyframes:Te},"move-down":{inKeyframes:Ce,outKeyframes:Ye},"move-left":{inKeyframes:ye,outKeyframes:Ee},"move-right":{inKeyframes:he,outKeyframes:xe}},Ie=(Re,lt)=>{const{antCls:Ue}=Re,We=`${Ue}-${lt}`,{inKeyframes:ct,outKeyframes:tt}=qe[lt];return[(0,ke.R)(We,ct,tt,Re.motionDurationMid),{[`
|
|
|
${We}-enter,
|
|
|
${We}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:Re.motionEaseOutCirc},[`${We}-leave`]:{animationTimingFunction:Re.motionEaseInOutCirc}}]}},13826:function(gn,Kt,ie){"use strict";ie.d(Kt,{Qt:function(){return ye},Uw:function(){return Ye},fJ:function(){return Ce},ly:function(){return Ee},oN:function(){return Ie}});var oe=ie(36237),ke=ie(95406);const Ce=new oe.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ye=new oe.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ye=new oe.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ee=new oe.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),he=new oe.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),xe=new oe.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),we=new oe.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Te=new oe.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),qe={"slide-up":{inKeyframes:Ce,outKeyframes:Ye},"slide-down":{inKeyframes:ye,outKeyframes:Ee},"slide-left":{inKeyframes:he,outKeyframes:xe},"slide-right":{inKeyframes:we,outKeyframes:Te}},Ie=(Re,lt)=>{const{antCls:Ue}=Re,We=`${Ue}-${lt}`,{inKeyframes:ct,outKeyframes:tt}=qe[lt];return[(0,ke.R)(We,ct,tt,Re.motionDurationMid),{[`
|
|
|
${We}-enter,
|
|
|
${We}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:Re.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${We}-leave`]:{animationTimingFunction:Re.motionEaseInQuint}}]}},15969:function(gn,Kt,ie){"use strict";ie.d(Kt,{N:function(){return oe}});const oe=ke=>({color:ke.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ke.motionDurationSlow}`,"&:focus, &:hover":{color:ke.colorLinkHover},"&:active":{color:ke.colorLinkActive}})},78673:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return kt}});var oe=ie(58617),ke=ie(92310),Ce=ie.n(ke),Ye=ie(54476),ye=ie(20068),Ee=ie(42978),he=ie(75931),xe=ie(59301),we=ie(18929),Te=ie(10228),qe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ie=xe.forwardRef(function(He,Tt){var mt,Et=He.prefixCls,zt=Et===void 0?"rc-switch":Et,Bt=He.className,De=He.checked,ge=He.defaultChecked,at=He.disabled,Ct=He.loadingIcon,It=He.checkedChildren,Qe=He.unCheckedChildren,et=He.onClick,Lt=He.onChange,dn=He.onKeyDown,_t=(0,he.Z)(He,qe),tn=(0,we.Z)(!1,{value:De,defaultValue:ge}),en=(0,Ee.Z)(tn,2),Jt=en[0],Vt=en[1];function be(pe,se){var Le=Jt;return at||(Le=pe,Vt(Le),Lt==null||Lt(Le,se)),Le}function ce(pe){pe.which===Te.Z.LEFT?be(!1,pe):pe.which===Te.Z.RIGHT&&be(!0,pe),dn==null||dn(pe)}function ue(pe){var se=be(!Jt,pe);et==null||et(se,pe)}var de=Ce()(zt,Bt,(mt={},(0,ye.Z)(mt,"".concat(zt,"-checked"),Jt),(0,ye.Z)(mt,"".concat(zt,"-disabled"),at),mt));return xe.createElement("button",(0,Ye.Z)({},_t,{type:"button",role:"switch","aria-checked":Jt,disabled:at,className:de,ref:Tt,onKeyDown:ce,onClick:ue}),Ct,xe.createElement("span",{className:"".concat(zt,"-inner")},xe.createElement("span",{className:"".concat(zt,"-inner-checked")},It),xe.createElement("span",{className:"".concat(zt,"-inner-unchecked")},Qe)))});Ie.displayName="Switch";var Re=Ie,lt=ie(14088),Ue=ie(36355),We=ie(1684),ct=ie(19716),tt=ie(64993),At=ie(17313),ut=ie(83116),ot=ie(37613);const je=He=>{const{componentCls:Tt,trackHeightSM:mt,trackPadding:Et,trackMinWidthSM:zt,innerMinMarginSM:Bt,innerMaxMarginSM:De,handleSizeSM:ge}=He,at=`${Tt}-inner`;return{[Tt]:{[`&${Tt}-small`]:{minWidth:zt,height:mt,lineHeight:`${mt}px`,[`${Tt}-inner`]:{paddingInlineStart:De,paddingInlineEnd:Bt,[`${at}-checked`]:{marginInlineStart:`calc(-100% + ${ge+Et*2}px - ${De*2}px)`,marginInlineEnd:`calc(100% - ${ge+Et*2}px + ${De*2}px)`},[`${at}-unchecked`]:{marginTop:-mt,marginInlineStart:0,marginInlineEnd:0}},[`${Tt}-handle`]:{width:ge,height:ge},[`${Tt}-loading-icon`]:{top:(ge-He.switchLoadingIconSize)/2,fontSize:He.switchLoadingIconSize},[`&${Tt}-checked`]:{[`${Tt}-inner`]:{paddingInlineStart:Bt,paddingInlineEnd:De,[`${at}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${at}-unchecked`]:{marginInlineStart:`calc(100% - ${ge+Et*2}px + ${De*2}px)`,marginInlineEnd:`calc(-100% + ${ge+Et*2}px - ${De*2}px)`}},[`${Tt}-handle`]:{insetInlineStart:`calc(100% - ${ge+Et}px)`}},[`&:not(${Tt}-disabled):active`]:{[`&:not(${Tt}-checked) ${at}`]:{[`${at}-unchecked`]:{marginInlineStart:He.marginXXS/2,marginInlineEnd:-He.marginXXS/2}},[`&${Tt}-checked ${at}`]:{[`${at}-checked`]:{marginInlineStart:-He.marginXXS/2,marginInlineEnd:He.marginXXS/2}}}}}}},Se=He=>{const{componentCls:Tt,handleSize:mt}=He;return{[Tt]:{[`${Tt}-loading-icon${He.iconCls}`]:{position:"relative",top:(mt-He.fontSize)/2,color:He.switchLoadingIconColor,verticalAlign:"top"},[`&${Tt}-checked ${Tt}-loading-icon`]:{color:He.switchColor}}}},Fe=He=>{const{componentCls:Tt,motion:mt,trackPadding:Et,handleBg:zt,handleShadow:Bt,handleSize:De}=He,ge=`${Tt}-handle`;return{[Tt]:{[ge]:{position:"absolute",top:Et,insetInlineStart:Et,width:De,height:De,transition:`all ${He.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:zt,borderRadius:De/2,boxShadow:Bt,transition:`all ${He.switchDuration} ease-in-out`,content:'""'}},[`&${Tt}-checked ${ge}`]:{insetInlineStart:`calc(100% - ${De+Et}px)`},[`&:not(${Tt}-disabled):active`]:mt?{[`${ge}::before`]:{insetInlineEnd:He.switchHandleActiveInset,insetInlineStart:0},[`&${Tt}-checked ${ge}::before`]:{insetInlineEnd:0,insetInlineStart:He.switchHandleActiveInset}}:{}}}},Ze=He=>{const{componentCls:Tt,trackHeight:mt,trackPadding:Et,innerMinMargin:zt,innerMaxMargin:Bt,handleSize:De}=He,ge=`${Tt}-inner`;return{[Tt]:{[ge]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Bt,paddingInlineEnd:zt,transition:`padding-inline-start ${He.switchDuration} ease-in-out, padding-inline-end ${He.switchDuration} ease-in-out`,[`${ge}-checked, ${ge}-unchecked`]:{display:"block",color:He.colorTextLightSolid,fontSize:He.fontSizeSM,transition:`margin-inline-start ${He.switchDuration} ease-in-out, margin-inline-end ${He.switchDuration} ease-in-out`,pointerEvents:"none"},[`${ge}-checked`]:{marginInlineStart:`calc(-100% + ${De+Et*2}px - ${Bt*2}px)`,marginInlineEnd:`calc(100% - ${De+Et*2}px + ${Bt*2}px)`},[`${ge}-unchecked`]:{marginTop:-mt,marginInlineStart:0,marginInlineEnd:0}},[`&${Tt}-checked ${ge}`]:{paddingInlineStart:zt,paddingInlineEnd:Bt,[`${ge}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ge}-unchecked`]:{marginInlineStart:`calc(100% - ${De+Et*2}px + ${Bt*2}px)`,marginInlineEnd:`calc(-100% + ${De+Et*2}px - ${Bt*2}px)`}},[`&:not(${Tt}-disabled):active`]:{[`&:not(${Tt}-checked) ${ge}`]:{[`${ge}-unchecked`]:{marginInlineStart:Et*2,marginInlineEnd:-Et*2}},[`&${Tt}-checked ${ge}`]:{[`${ge}-checked`]:{marginInlineStart:-Et*2,marginInlineEnd:Et*2}}}}}},xt=He=>{const{componentCls:Tt,trackHeight:mt,trackMinWidth:Et}=He;return{[Tt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,At.Wf)(He)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Et,height:mt,lineHeight:`${mt}px`,verticalAlign:"middle",background:He.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${He.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Tt}-disabled)`]:{background:He.colorTextTertiary}}),(0,At.Qy)(He)),{[`&${Tt}-checked`]:{background:He.switchColor,[`&:hover:not(${Tt}-disabled)`]:{background:He.colorPrimaryHover}},[`&${Tt}-loading, &${Tt}-disabled`]:{cursor:"not-allowed",opacity:He.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Tt}-rtl`]:{direction:"rtl"}})}};var Je=(0,ut.Z)("Switch",He=>{const Tt=(0,ot.TS)(He,{switchDuration:He.motionDurationMid,switchColor:He.colorPrimary,switchDisabledOpacity:He.opacityLoading,switchLoadingIconSize:He.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${He.opacityLoading})`,switchHandleActiveInset:"-30%"});return[xt(Tt),Ze(Tt),Fe(Tt),Se(Tt),je(Tt)]},He=>{const{fontSize:Tt,lineHeight:mt,controlHeight:Et,colorWhite:zt}=He,Bt=Tt*mt,De=Et/2,ge=2,at=Bt-ge*2,Ct=De-ge*2;return{trackHeight:Bt,trackHeightSM:De,trackMinWidth:at*2+ge*4,trackMinWidthSM:Ct*2+ge*2,trackPadding:ge,handleBg:zt,handleSize:at,handleSizeSM:Ct,handleShadow:`0 2px 4px 0 ${new tt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:at/2,innerMaxMargin:at+ge+ge*2,innerMinMarginSM:Ct/2,innerMaxMarginSM:Ct+ge+ge*2}}),dt=function(He,Tt){var mt={};for(var Et in He)Object.prototype.hasOwnProperty.call(He,Et)&&Tt.indexOf(Et)<0&&(mt[Et]=He[Et]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Et=Object.getOwnPropertySymbols(He);zt<Et.length;zt++)Tt.indexOf(Et[zt])<0&&Object.prototype.propertyIsEnumerable.call(He,Et[zt])&&(mt[Et[zt]]=He[Et[zt]]);return mt};const Be=xe.forwardRef((He,Tt)=>{const{prefixCls:mt,size:Et,disabled:zt,loading:Bt,className:De,rootClassName:ge,style:at}=He,Ct=dt(He,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:It,direction:Qe,switch:et}=xe.useContext(Ue.E_),Lt=xe.useContext(We.Z),dn=(zt!=null?zt:Lt)||Bt,_t=It("switch",mt),tn=xe.createElement("div",{className:`${_t}-handle`},Bt&&xe.createElement(oe.Z,{className:`${_t}-loading-icon`})),[en,Jt]=Je(_t),Vt=(0,ct.Z)(Et),be=Ce()(et==null?void 0:et.className,{[`${_t}-small`]:Vt==="small",[`${_t}-loading`]:Bt,[`${_t}-rtl`]:Qe==="rtl"},De,ge,Jt),ce=Object.assign(Object.assign({},et==null?void 0:et.style),at);return en(xe.createElement(lt.Z,{component:"Switch"},xe.createElement(Re,Object.assign({},Ct,{prefixCls:_t,className:be,style:ce,disabled:dn,ref:Tt,loadingIcon:tn}))))});Be.__ANT_SWITCH=!0;var kt=Be},1710:function(gn,Kt,ie){"use strict";ie.d(Kt,{default:function(){return ju}});var oe={},ke="rc-table-internal-hook",Ce=ie(42978),Ye=ie(6089),ye=ie(34280),Ee=ie(13697),he=ie(59301),xe=ie(4676);function we($e){var Ve=he.createContext(void 0),Mt=function(Ut){var Wt=Ut.value,pn=Ut.children,hn=he.useRef(Wt);hn.current=Wt;var un=he.useState(function(){return{getValue:function(){return hn.current},listeners:new Set}}),Nn=(0,Ce.Z)(un,1),$n=Nn[0];return(0,ye.Z)(function(){(0,xe.unstable_batchedUpdates)(function(){$n.listeners.forEach(function(On){On(Wt)})})},[Wt]),he.createElement(Ve.Provider,{value:$n},pn)};return{Context:Ve,Provider:Mt,defaultValue:$e}}function Te($e,Ve){var Mt=(0,Ye.Z)(typeof Ve=="function"?Ve:function(On){if(Ve===void 0)return On;if(!Array.isArray(Ve))return On[Ve];var ur={};return Ve.forEach(function(rr){ur[rr]=On[rr]}),ur}),Pt=he.useContext($e==null?void 0:$e.Context),Ut=Pt||{},Wt=Ut.listeners,pn=Ut.getValue,hn=he.useRef();hn.current=Mt(Pt?pn():$e==null?void 0:$e.defaultValue);var un=he.useState({}),Nn=(0,Ce.Z)(un,2),$n=Nn[1];return(0,ye.Z)(function(){if(!Pt)return;function On(ur){var rr=Mt(ur);(0,Ee.Z)(hn.current,rr,!0)||$n({})}return Wt.add(On),function(){Wt.delete(On)}},[Pt]),hn.current}var qe=ie(54476),Ie=ie(8654);function Re(){var $e=he.createContext(null);function Ve(){return he.useContext($e)}function Mt(Ut,Wt){var pn=(0,Ie.Yr)(Ut),hn=function(Nn,$n){var On=pn?{ref:$n}:{},ur=he.useRef(0),rr=he.useRef(Nn),ir=Ve();return ir!==null?he.createElement(Ut,(0,qe.Z)({},Nn,On)):((!Wt||Wt(rr.current,Nn))&&(ur.current+=1),rr.current=Nn,he.createElement($e.Provider,{value:ur.current},he.createElement(Ut,(0,qe.Z)({},Nn,On))))};return pn?he.forwardRef(hn):hn}function Pt(Ut,Wt){var pn=(0,Ie.Yr)(Ut),hn=function(Nn,$n){var On=pn?{ref:$n}:{};return Ve(),he.createElement(Ut,(0,qe.Z)({},Nn,On))};return pn?he.memo(he.forwardRef(hn),Wt):he.memo(hn,Wt)}return{makeImmutable:Mt,responseImmutable:Pt,useImmutableMark:Ve}}var lt=Re(),Ue=lt.makeImmutable,We=lt.responseImmutable,ct=lt.useImmutableMark,tt=Re(),At=tt.makeImmutable,ut=tt.responseImmutable,ot=tt.useImmutableMark,je=we(),Se=je;function Fe($e,Ve){var Mt=he.useRef(0);Mt.current+=1;var Pt=he.useRef($e),Ut=[];Object.keys($e||{}).map(function(pn){var hn;($e==null?void 0:$e[pn])!==((hn=Pt.current)===null||hn===void 0?void 0:hn[pn])&&Ut.push(pn)}),Pt.current=$e;var Wt=he.useRef([]);return Ut.length&&(Wt.current=Ut),he.useDebugValue(Mt.current),he.useDebugValue(Wt.current.join(", ")),Ve&&console.log("".concat(Ve,":"),Mt.current,Wt.current),Mt.current}var Ze=null,xt=he.memo(function(){var $e=Fe();return he.createElement("h1",null,"Render Times: ",$e)});xt.displayName="RenderBlock";var Je=ie(76190),dt=ie(33885),Be=ie(20068),kt=ie(92310),He=ie.n(kt),Tt=ie(80547),mt=ie(97938),Et=ie(48736),zt=he.createContext({renderWithProps:!1}),Bt=zt,De="RC_TABLE_KEY";function ge($e){return $e==null?[]:Array.isArray($e)?$e:[$e]}function at($e){var Ve=[],Mt={};return $e.forEach(function(Pt){for(var Ut=Pt||{},Wt=Ut.key,pn=Ut.dataIndex,hn=Wt||ge(pn).join("-")||De;Mt[hn];)hn="".concat(hn,"_next");Mt[hn]=!0,Ve.push(hn)}),Ve}function Ct($e){return $e!=null}function It($e){return $e&&(0,Je.Z)($e)==="object"&&!Array.isArray($e)&&!he.isValidElement($e)}function Qe($e,Ve,Mt,Pt,Ut,Wt){var pn=he.useContext(Bt),hn=ot(),un=(0,Tt.Z)(function(){if(Ct(Pt))return[Pt];var Nn=Ve==null||Ve===""?[]:Array.isArray(Ve)?Ve:[Ve],$n=(0,mt.Z)($e,Nn),On=$n,ur=void 0;if(Ut){var rr=Ut($n,$e,Mt);It(rr)?(On=rr.children,ur=rr.props,pn.renderWithProps=!0):On=rr}return[On,ur]},[hn,$e,Pt,Ve,Ut,Mt],function(Nn,$n){if(Wt){var On=(0,Ce.Z)(Nn,2),ur=On[1],rr=(0,Ce.Z)($n,2),ir=rr[1];return Wt(ir,ur)}return pn.renderWithProps?!0:!(0,Ee.Z)(Nn,$n,!0)});return un}function et($e,Ve,Mt,Pt){var Ut=$e+Ve-1;return $e<=Pt&&Ut>=Mt}function Lt($e,Ve){return Te(Se,function(Mt){var Pt=et($e,Ve||1,Mt.hoverStartRow,Mt.hoverEndRow);return[Pt,Mt.onHover]})}var dn=function(Ve){var Mt=Ve.ellipsis,Pt=Ve.rowType,Ut=Ve.children,Wt,pn=Mt===!0?{showTitle:!0}:Mt;return pn&&(pn.showTitle||Pt==="header")&&(typeof Ut=="string"||typeof Ut=="number"?Wt=Ut.toString():he.isValidElement(Ut)&&typeof Ut.props.children=="string"&&(Wt=Ut.props.children)),Wt};function _t($e){var Ve,Mt,Pt,Ut,Wt,pn,hn,un,Nn=$e.component,$n=$e.children,On=$e.ellipsis,ur=$e.scope,rr=$e.prefixCls,ir=$e.className,Wr=$e.align,Ir=$e.record,Ur=$e.render,Br=$e.dataIndex,li=$e.renderIndex,Pi=$e.shouldCellUpdate,Hi=$e.index,xi=$e.rowType,na=$e.colSpan,ya=$e.rowSpan,hi=$e.fixLeft,Ai=$e.fixRight,vi=$e.firstFixLeft,Er=$e.lastFixLeft,Si=$e.firstFixRight,qi=$e.lastFixRight,Gi=$e.appendNode,Ri=$e.additionalProps,Xr=Ri===void 0?{}:Ri,fa=$e.isSticky,ha="".concat(rr,"-cell"),ja=Te(Se,["supportSticky","allColumnsFixedLeft"]),Fa=ja.supportSticky,ko=ja.allColumnsFixedLeft,Va=Qe(Ir,Br,li,$n,Ur,Pi),aa=(0,Ce.Z)(Va,2),ao=aa[0],Ba=aa[1],Eo={},vo=typeof hi=="number"&&Fa,ts=typeof Ai=="number"&&Fa;vo&&(Eo.position="sticky",Eo.left=hi),ts&&(Eo.position="sticky",Eo.right=Ai);var Ji=(Ve=(Mt=(Pt=Ba==null?void 0:Ba.colSpan)!==null&&Pt!==void 0?Pt:Xr.colSpan)!==null&&Mt!==void 0?Mt:na)!==null&&Ve!==void 0?Ve:1,Wi=(Ut=(Wt=(pn=Ba==null?void 0:Ba.rowSpan)!==null&&pn!==void 0?pn:Xr.rowSpan)!==null&&Wt!==void 0?Wt:ya)!==null&&Ut!==void 0?Ut:1,Vi=Lt(Hi,Wi),Fi=(0,Ce.Z)(Vi,2),$a=Fi[0],Ln=Fi[1],pr=function(is){var Ds;Ir&&Ln(Hi,Hi+Wi-1),Xr==null||(Ds=Xr.onMouseEnter)===null||Ds===void 0||Ds.call(Xr,is)},pa=function(is){var Ds;Ir&&Ln(-1,-1),Xr==null||(Ds=Xr.onMouseLeave)===null||Ds===void 0||Ds.call(Xr,is)};if(Ji===0||Wi===0)return null;var ka=(hn=Xr.title)!==null&&hn!==void 0?hn:dn({rowType:xi,ellipsis:On,children:ao}),rs=He()(ha,ir,(un={},(0,Be.Z)(un,"".concat(ha,"-fix-left"),vo&&Fa),(0,Be.Z)(un,"".concat(ha,"-fix-left-first"),vi&&Fa),(0,Be.Z)(un,"".concat(ha,"-fix-left-last"),Er&&Fa),(0,Be.Z)(un,"".concat(ha,"-fix-left-all"),Er&&ko&&Fa),(0,Be.Z)(un,"".concat(ha,"-fix-right"),ts&&Fa),(0,Be.Z)(un,"".concat(ha,"-fix-right-first"),Si&&Fa),(0,Be.Z)(un,"".concat(ha,"-fix-right-last"),qi&&Fa),(0,Be.Z)(un,"".concat(ha,"-ellipsis"),On),(0,Be.Z)(un,"".concat(ha,"-with-append"),Gi),(0,Be.Z)(un,"".concat(ha,"-fix-sticky"),(vo||ts)&&fa&&Fa),(0,Be.Z)(un,"".concat(ha,"-row-hover"),!Ba&&$a),un),Xr.className,Ba==null?void 0:Ba.className),Go={};Wr&&(Go.textAlign=Wr);var Zs=(0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)({},Eo),Xr.style),Go),Ba==null?void 0:Ba.style),ns=ao;return(0,Je.Z)(ns)==="object"&&!Array.isArray(ns)&&!he.isValidElement(ns)&&(ns=null),On&&(Er||Si)&&(ns=he.createElement("span",{className:"".concat(ha,"-content")},ns)),he.createElement(Nn,(0,qe.Z)({},Ba,Xr,{className:rs,style:Zs,title:ka,scope:ur,onMouseEnter:pr,onMouseLeave:pa,colSpan:Ji!==1?Ji:null,rowSpan:Wi!==1?Wi:null}),Gi,ns)}var tn=he.memo(_t);function en($e,Ve,Mt,Pt,Ut,Wt){var pn=Mt[$e]||{},hn=Mt[Ve]||{},un,Nn;pn.fixed==="left"?un=Pt.left[Ut==="rtl"?Ve:$e]:hn.fixed==="right"&&(Nn=Pt.right[Ut==="rtl"?$e:Ve]);var $n=!1,On=!1,ur=!1,rr=!1,ir=Mt[Ve+1],Wr=Mt[$e-1],Ir=!(Wt!=null&&Wt.children);if(Ut==="rtl"){if(un!==void 0){var Ur=Wr&&Wr.fixed==="left";rr=!Ur&&Ir}else if(Nn!==void 0){var Br=ir&&ir.fixed==="right";ur=!Br&&Ir}}else if(un!==void 0){var li=ir&&ir.fixed==="left";$n=!li&&Ir}else if(Nn!==void 0){var Pi=Wr&&Wr.fixed==="right";On=!Pi&&Ir}return{fixLeft:un,fixRight:Nn,lastFixLeft:$n,firstFixRight:On,lastFixRight:ur,firstFixLeft:rr,isSticky:Pt.isSticky}}var Jt=he.createContext({}),Vt=Jt;function be($e){var Ve=$e.className,Mt=$e.index,Pt=$e.children,Ut=$e.colSpan,Wt=Ut===void 0?1:Ut,pn=$e.rowSpan,hn=$e.align,un=Te(Se,["prefixCls","direction"]),Nn=un.prefixCls,$n=un.direction,On=he.useContext(Vt),ur=On.scrollColumnIndex,rr=On.stickyOffsets,ir=On.flattenColumns,Wr=On.columns,Ir=Mt+Wt-1,Ur=Ir+1===ur?Wt+1:Wt,Br=en(Mt,Mt+Ur-1,ir,rr,$n,Wr==null?void 0:Wr[Mt]);return he.createElement(tn,(0,qe.Z)({className:Ve,index:Mt,component:"td",prefixCls:Nn,record:null,dataIndex:null,align:hn,colSpan:Ur,rowSpan:pn,render:function(){return Pt}},Br))}var ce=ie(75931),ue=["children"];function de($e){var Ve=$e.children,Mt=(0,ce.Z)($e,ue);return he.createElement("tr",Mt,Ve)}function pe($e){var Ve=$e.children;return Ve}pe.Row=de,pe.Cell=be;var se=pe;function Le($e){var Ve=$e.children,Mt=$e.stickyOffsets,Pt=$e.flattenColumns,Ut=$e.columns,Wt=Te(Se,"prefixCls"),pn=Pt.length-1,hn=Pt[pn],un=he.useMemo(function(){return{stickyOffsets:Mt,flattenColumns:Pt,scrollColumnIndex:hn!=null&&hn.scrollbar?pn:null,columns:Ut}},[hn,Pt,pn,Mt,Ut]);return he.createElement(Vt.Provider,{value:un},he.createElement("tfoot",{className:"".concat(Wt,"-summary")},Ve))}var ht=ut(Le),_e=se,Ne=ie(70425),St=ie(29301),gt=ie(29194),Xe=ie(24514),wt=ie(75152),Xt=ie(26112);function bt($e,Ve,Mt,Pt,Ut,Wt,pn){$e.push({record:Ve,indent:Mt,index:pn});var hn=Wt(Ve),un=Ut==null?void 0:Ut.has(hn);if(Ve&&Array.isArray(Ve[Pt])&&un)for(var Nn=0;Nn<Ve[Pt].length;Nn+=1)bt($e,Ve[Pt][Nn],Mt+1,Pt,Ut,Wt,Nn)}function $t($e,Ve,Mt,Pt){var Ut=he.useMemo(function(){if(Mt!=null&&Mt.size){for(var Wt=[],pn=0;pn<($e==null?void 0:$e.length);pn+=1){var hn=$e[pn];bt(Wt,hn,0,Ve,Mt,Pt,pn)}return Wt}return $e==null?void 0:$e.map(function(un,Nn){return{record:un,indent:0,index:Nn}})},[$e,Ve,Mt,Pt]);return Ut}function on($e){var Ve=$e.prefixCls,Mt=$e.children,Pt=$e.component,Ut=$e.cellComponent,Wt=$e.className,pn=$e.expanded,hn=$e.colSpan,un=$e.isEmpty,Nn=Te(Se,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),$n=Nn.scrollbarSize,On=Nn.fixHeader,ur=Nn.fixColumn,rr=Nn.componentWidth,ir=Nn.horizonScroll,Wr=Mt;return(un?ir&&rr:ur)&&(Wr=he.createElement("div",{style:{width:rr-(On?$n:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ve,"-expanded-row-fixed")},Wr)),he.createElement(Pt,{className:Wt,style:{display:pn?null:"none"}},he.createElement(tn,{component:Ut,prefixCls:Ve,colSpan:hn},Wr))}var vt=on;function Oe($e,Ve,Mt,Pt){var Ut=Te(Se,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Wt=Ut.flattenColumns,pn=Ut.expandableType,hn=Ut.expandedKeys,un=Ut.childrenColumnName,Nn=Ut.onTriggerExpand,$n=Ut.rowExpandable,On=Ut.onRow,ur=Ut.expandRowByClick,rr=Ut.rowClassName,ir=pn==="nest",Wr=pn==="row"&&(!$n||$n($e)),Ir=Wr||ir,Ur=hn&&hn.has(Ve),Br=un&&$e&&$e[un],li=(0,Ne.useEvent)(Nn),Pi=On==null?void 0:On($e,Mt),Hi=Pi==null?void 0:Pi.onClick,xi=function(Ai){ur&&Ir&&Nn($e,Ai);for(var vi=arguments.length,Er=new Array(vi>1?vi-1:0),Si=1;Si<vi;Si++)Er[Si-1]=arguments[Si];Hi==null||Hi.apply(void 0,[Ai].concat(Er))},na;typeof rr=="string"?na=rr:typeof rr=="function"&&(na=rr($e,Mt,Pt));var ya=at(Wt);return(0,dt.Z)((0,dt.Z)({},Ut),{},{columnsKey:ya,nestExpandable:ir,expanded:Ur,hasNestChildren:Br,record:$e,onTriggerExpand:li,rowSupportExpand:Wr,expandable:Ir,rowProps:(0,dt.Z)((0,dt.Z)({},Pi),{},{className:He()(na,Pi==null?void 0:Pi.className),onClick:xi})})}function yt($e,Ve,Mt,Pt,Ut){var Wt=$e.record,pn=$e.prefixCls,hn=$e.columnsKey,un=$e.fixedInfoList,Nn=$e.expandIconColumnIndex,$n=$e.nestExpandable,On=$e.indentSize,ur=$e.expandIcon,rr=$e.expanded,ir=$e.hasNestChildren,Wr=$e.onTriggerExpand,Ir=hn[Mt],Ur=un[Mt],Br;Mt===(Nn||0)&&$n&&(Br=he.createElement(he.Fragment,null,he.createElement("span",{style:{paddingLeft:"".concat(On*Pt,"px")},className:"".concat(pn,"-row-indent indent-level-").concat(Pt)}),ur({prefixCls:pn,expanded:rr,expandable:ir,record:Wt,onExpand:Wr})));var li;return Ve.onCell&&(li=Ve.onCell(Wt,Ut)),{key:Ir,fixedInfo:Ur,appendCellNode:Br,additionalCellProps:li||{}}}function jt($e){var Ve=$e.className,Mt=$e.style,Pt=$e.record,Ut=$e.index,Wt=$e.renderIndex,pn=$e.rowKey,hn=$e.indent,un=hn===void 0?0:hn,Nn=$e.rowComponent,$n=$e.cellComponent,On=$e.scopeCellComponent,ur=Oe(Pt,pn,Ut,un),rr=ur.prefixCls,ir=ur.flattenColumns,Wr=ur.expandedRowClassName,Ir=ur.expandedRowRender,Ur=ur.rowProps,Br=ur.expanded,li=ur.rowSupportExpand,Pi=he.useState(!1),Hi=(0,Ce.Z)(Pi,2),xi=Hi[0],na=Hi[1];he.useEffect(function(){Br&&na(!0)},[Br]);var ya=he.createElement(Nn,(0,qe.Z)({},Ur,{"data-row-key":pn,className:He()(Ve,"".concat(rr,"-row"),"".concat(rr,"-row-level-").concat(un),Ur==null?void 0:Ur.className),style:(0,dt.Z)((0,dt.Z)({},Mt),Ur==null?void 0:Ur.style)}),ir.map(function(Er,Si){var qi=Er.render,Gi=Er.dataIndex,Ri=Er.className,Xr=yt(ur,Er,Si,un,Ut),fa=Xr.key,ha=Xr.fixedInfo,ja=Xr.appendCellNode,Fa=Xr.additionalCellProps;return he.createElement(tn,(0,qe.Z)({className:Ri,ellipsis:Er.ellipsis,align:Er.align,scope:Er.rowScope,component:Er.rowScope?On:$n,prefixCls:rr,key:fa,record:Pt,index:Ut,renderIndex:Wt,dataIndex:Gi,render:qi,shouldCellUpdate:Er.shouldCellUpdate},ha,{appendNode:ja,additionalProps:Fa}))})),hi;if(li&&(xi||Br)){var Ai=Ir(Pt,Ut,un+1,Br),vi=Wr&&Wr(Pt,Ut,un);hi=he.createElement(vt,{expanded:Br,className:He()("".concat(rr,"-expanded-row"),"".concat(rr,"-expanded-row-level-").concat(un+1),vi),prefixCls:rr,component:Nn,cellComponent:$n,colSpan:ir.length,isEmpty:!1},Ai)}return he.createElement(he.Fragment,null,ya,hi)}jt.displayName="BodyRow";var Zt=ut(jt);function nn($e){var Ve=$e.columnKey,Mt=$e.onColumnResize,Pt=he.useRef();return he.useEffect(function(){Pt.current&&Mt(Ve,Pt.current.offsetWidth)},[]),he.createElement(St.Z,{data:Ve},he.createElement("td",{ref:Pt,style:{padding:0,border:0,height:0}},he.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Cn($e){var Ve=$e.prefixCls,Mt=$e.columnsKey,Pt=$e.onColumnResize;return he.createElement("tr",{"aria-hidden":"true",className:"".concat(Ve,"-measure-row"),style:{height:0,fontSize:0}},he.createElement(St.Z.Collection,{onBatchResize:function(Wt){Wt.forEach(function(pn){var hn=pn.data,un=pn.size;Pt(hn,un.offsetWidth)})}},Mt.map(function(Ut){return he.createElement(nn,{key:Ut,columnKey:Ut,onColumnResize:Pt})})))}function In($e){var Ve=$e.data,Mt=$e.measureColumnWidth,Pt=Te(Se,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Ut=Pt.prefixCls,Wt=Pt.getComponent,pn=Pt.onColumnResize,hn=Pt.flattenColumns,un=Pt.getRowKey,Nn=Pt.expandedKeys,$n=Pt.childrenColumnName,On=Pt.emptyNode,ur=$t(Ve,$n,Nn,un),rr=he.useRef({renderWithProps:!1}),ir=Wt(["body","wrapper"],"tbody"),Wr=Wt(["body","row"],"tr"),Ir=Wt(["body","cell"],"td"),Ur=Wt(["body","cell"],"th"),Br;Ve.length?Br=ur.map(function(Pi,Hi){var xi=Pi.record,na=Pi.indent,ya=Pi.index,hi=un(xi,Hi);return he.createElement(Zt,{key:hi,rowKey:hi,record:xi,index:Hi,renderIndex:ya,rowComponent:Wr,cellComponent:Ir,scopeCellComponent:Ur,getRowKey:un,indent:na})}):Br=he.createElement(vt,{expanded:!0,className:"".concat(Ut,"-placeholder"),prefixCls:Ut,component:Wr,cellComponent:Ir,colSpan:hn.length,isEmpty:!0},On);var li=at(hn);return he.createElement(Bt.Provider,{value:rr.current},he.createElement(ir,{className:"".concat(Ut,"-tbody")},Mt&&he.createElement(Cn,{prefixCls:Ut,columnsKey:li,onColumnResize:pn}),Br))}In.displayName="Body";var Dn=ut(In),Kn=["expandable"],Vn="RC_TABLE_INTERNAL_COL_DEFINE";function _n($e){var Ve=$e.expandable,Mt=(0,ce.Z)($e,Kn),Pt;return"expandable"in $e?Pt=(0,dt.Z)((0,dt.Z)({},Mt),Ve):Pt=Mt,Pt.showExpandColumn===!1&&(Pt.expandIconColumnIndex=-1),Pt}var or=["columnType"];function wr($e){for(var Ve=$e.colWidths,Mt=$e.columns,Pt=$e.columCount,Ut=[],Wt=Pt||Mt.length,pn=!1,hn=Wt-1;hn>=0;hn-=1){var un=Ve[hn],Nn=Mt&&Mt[hn],$n=Nn&&Nn[Vn];if(un||$n||pn){var On=$n||{},ur=On.columnType,rr=(0,ce.Z)(On,or);Ut.unshift(he.createElement("col",(0,qe.Z)({key:hn,style:{width:un}},rr))),pn=!0}}return he.createElement("colgroup",null,Ut)}var Tr=wr,Yn=ie(94480),hr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function kr($e,Ve){return(0,he.useMemo)(function(){for(var Mt=[],Pt=0;Pt<Ve;Pt+=1){var Ut=$e[Pt];if(Ut!==void 0)Mt[Pt]=Ut;else return null}return Mt},[$e.join("_"),Ve])}var Qn=he.forwardRef(function($e,Ve){var Mt=$e.className,Pt=$e.noData,Ut=$e.columns,Wt=$e.flattenColumns,pn=$e.colWidths,hn=$e.columCount,un=$e.stickyOffsets,Nn=$e.direction,$n=$e.fixHeader,On=$e.stickyTopOffset,ur=$e.stickyBottomOffset,rr=$e.stickyClassName,ir=$e.onScroll,Wr=$e.maxContentScroll,Ir=$e.children,Ur=(0,ce.Z)($e,hr),Br=Te(Se,["prefixCls","scrollbarSize","isSticky"]),li=Br.prefixCls,Pi=Br.scrollbarSize,Hi=Br.isSticky,xi=Hi&&!$n?0:Pi,na=he.useRef(null),ya=he.useCallback(function(Ri){(0,Ie.mH)(Ve,Ri),(0,Ie.mH)(na,Ri)},[]);he.useEffect(function(){var Ri;function Xr(fa){var ha=fa,ja=ha.currentTarget,Fa=ha.deltaX;Fa&&(ir({currentTarget:ja,scrollLeft:ja.scrollLeft+Fa}),fa.preventDefault())}return(Ri=na.current)===null||Ri===void 0||Ri.addEventListener("wheel",Xr),function(){var fa;(fa=na.current)===null||fa===void 0||fa.removeEventListener("wheel",Xr)}},[]);var hi=he.useMemo(function(){return Wt.every(function(Ri){return Ri.width})},[Wt]),Ai=Wt[Wt.length-1],vi={fixed:Ai?Ai.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(li,"-cell-scrollbar")}}},Er=(0,he.useMemo)(function(){return xi?[].concat((0,Yn.Z)(Ut),[vi]):Ut},[xi,Ut]),Si=(0,he.useMemo)(function(){return xi?[].concat((0,Yn.Z)(Wt),[vi]):Wt},[xi,Wt]),qi=(0,he.useMemo)(function(){var Ri=un.right,Xr=un.left;return(0,dt.Z)((0,dt.Z)({},un),{},{left:Nn==="rtl"?[].concat((0,Yn.Z)(Xr.map(function(fa){return fa+xi})),[0]):Xr,right:Nn==="rtl"?Ri:[].concat((0,Yn.Z)(Ri.map(function(fa){return fa+xi})),[0]),isSticky:Hi})},[xi,un,Hi]),Gi=kr(pn,hn);return he.createElement("div",{style:(0,dt.Z)({overflow:"hidden"},Hi?{top:On,bottom:ur}:{}),ref:ya,className:He()(Mt,(0,Be.Z)({},rr,!!rr))},he.createElement("table",{style:{tableLayout:"fixed",visibility:Pt||Gi?null:"hidden"}},(!Pt||!Wr||hi)&&he.createElement(Tr,{colWidths:Gi?[].concat((0,Yn.Z)(Gi),[xi]):[],columCount:hn+1,columns:Si}),Ir((0,dt.Z)((0,dt.Z)({},Ur),{},{stickyOffsets:qi,columns:Er,flattenColumns:Si}))))});Qn.displayName="FixedHolder";var Fr=he.memo(Qn);function ci($e){var Ve=$e.cells,Mt=$e.stickyOffsets,Pt=$e.flattenColumns,Ut=$e.rowComponent,Wt=$e.cellComponent,pn=$e.tdCellComponent,hn=$e.onHeaderRow,un=$e.index,Nn=Te(Se,["prefixCls","direction"]),$n=Nn.prefixCls,On=Nn.direction,ur;hn&&(ur=hn(Ve.map(function(ir){return ir.column}),un));var rr=at(Ve.map(function(ir){return ir.column}));return he.createElement(Ut,ur,Ve.map(function(ir,Wr){var Ir=ir.column,Ur=en(ir.colStart,ir.colEnd,Pt,Mt,On,Ir),Br;return Ir&&Ir.onHeaderCell&&(Br=ir.column.onHeaderCell(Ir)),he.createElement(tn,(0,qe.Z)({},ir,{scope:Ir.title?ir.colSpan>1?"colgroup":"col":null,ellipsis:Ir.ellipsis,align:Ir.align,component:Ir.title?Wt:pn,prefixCls:$n,key:rr[Wr]},Ur,{additionalProps:Br,rowType:"header"}))}))}ci.displayName="HeaderRow";var Cr=ci;function pi($e){var Ve=[];function Mt(pn,hn){var un=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ve[un]=Ve[un]||[];var Nn=hn,$n=pn.filter(Boolean).map(function(On){var ur={key:On.key,className:On.className||"",children:On.title,column:On,colStart:Nn},rr=1,ir=On.children;return ir&&ir.length>0&&(rr=Mt(ir,Nn,un+1).reduce(function(Wr,Ir){return Wr+Ir},0),ur.hasSubColumns=!0),"colSpan"in On&&(rr=On.colSpan),"rowSpan"in On&&(ur.rowSpan=On.rowSpan),ur.colSpan=rr,ur.colEnd=ur.colStart+rr-1,Ve[un].push(ur),Nn+=rr,rr});return $n}Mt($e,0);for(var Pt=Ve.length,Ut=function(hn){Ve[hn].forEach(function(un){!("rowSpan"in un)&&!un.hasSubColumns&&(un.rowSpan=Pt-hn)})},Wt=0;Wt<Pt;Wt+=1)Ut(Wt);return Ve}function ai($e){var Ve=$e.stickyOffsets,Mt=$e.columns,Pt=$e.flattenColumns,Ut=$e.onHeaderRow,Wt=Te(Se,["prefixCls","getComponent"]),pn=Wt.prefixCls,hn=Wt.getComponent,un=he.useMemo(function(){return pi(Mt)},[Mt]),Nn=hn(["header","wrapper"],"thead"),$n=hn(["header","row"],"tr"),On=hn(["header","cell"],"th"),ur=hn(["header","cell"],"td");return he.createElement(Nn,{className:"".concat(pn,"-thead")},un.map(function(rr,ir){var Wr=he.createElement(Cr,{key:ir,flattenColumns:Pt,cells:rr,stickyOffsets:Ve,rowComponent:$n,cellComponent:On,tdCellComponent:ur,onHeaderRow:Ut,index:ir});return Wr}))}var nr=ut(ai),yr=ie(11592);function Hn($e){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ve=="number"?Ve:Ve.endsWith("%")?$e*parseFloat(Ve)/100:null}function Gn($e,Ve){return he.useMemo(function(){if(Ve&&Ve>0){var Mt=0,Pt=0;$e.forEach(function(Nn){var $n=Hn(Ve,Nn.width);$n?Mt+=$n:Pt+=1});var Ut=Ve-Mt,Wt=Pt,pn=Ut/Pt,hn=0,un=$e.map(function(Nn){var $n=(0,dt.Z)({},Nn),On=Hn(Ve,$n.width);if(On)$n.width=On;else{var ur=Math.floor(pn);$n.width=Wt===1?Ut:ur,Ut-=ur,Wt-=1}return hn+=$n.width,$n});return[un,hn]}return[$e,Ve]},[$e,Ve])}var Or=["children"],Rt=["fixed"];function Ke($e){return(0,yr.Z)($e).filter(function(Ve){return he.isValidElement(Ve)}).map(function(Ve){var Mt=Ve.key,Pt=Ve.props,Ut=Pt.children,Wt=(0,ce.Z)(Pt,Or),pn=(0,dt.Z)({key:Mt},Wt);return Ut&&(pn.children=Ke(Ut)),pn})}function nt($e){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return $e.filter(function(Mt){return Mt&&(0,Je.Z)(Mt)==="object"}).reduce(function(Mt,Pt,Ut){var Wt=Pt.fixed,pn=Wt===!0?"left":Wt,hn="".concat(Ve,"-").concat(Ut),un=Pt.children;return un&&un.length>0?[].concat((0,Yn.Z)(Mt),(0,Yn.Z)(nt(un,hn).map(function(Nn){return(0,dt.Z)({fixed:pn},Nn)}))):[].concat((0,Yn.Z)(Mt),[(0,dt.Z)((0,dt.Z)({key:hn},Pt),{},{fixed:pn})])},[])}function rt($e){for(var Ve=!0,Mt=0;Mt<$e.length;Mt+=1){var Pt=$e[Mt];if(Ve&&Pt.fixed!=="left")Ve=!1;else if(!Ve&&Pt.fixed==="left"){warning(!1,"Index ".concat(Mt-1," of `columns` missing `fixed='left'` prop."));break}}for(var Ut=!0,Wt=$e.length-1;Wt>=0;Wt-=1){var pn=$e[Wt];if(Ut&&pn.fixed!=="right")Ut=!1;else if(!Ut&&pn.fixed==="right"){warning(!1,"Index ".concat(Wt+1," of `columns` missing `fixed='right'` prop."));break}}}function it($e){return $e.map(function(Ve){var Mt=Ve.fixed,Pt=(0,ce.Z)(Ve,Rt),Ut=Mt;return Mt==="left"?Ut="right":Mt==="right"&&(Ut="left"),(0,dt.Z)({fixed:Ut},Pt)})}function Dt($e,Ve){var Mt=$e.prefixCls,Pt=$e.columns,Ut=$e.children,Wt=$e.expandable,pn=$e.expandedKeys,hn=$e.columnTitle,un=$e.getRowKey,Nn=$e.onTriggerExpand,$n=$e.expandIcon,On=$e.rowExpandable,ur=$e.expandIconColumnIndex,rr=$e.direction,ir=$e.expandRowByClick,Wr=$e.columnWidth,Ir=$e.fixed,Ur=$e.scrollWidth,Br=he.useMemo(function(){return Pt||Ke(Ut)},[Pt,Ut]),li=he.useMemo(function(){if(Wt){var Ai,vi=Br.slice();if(!vi.includes(oe)){var Er=ur||0;Er>=0&&vi.splice(Er,0,oe)}var Si=vi.indexOf(oe);vi=vi.filter(function(Xr,fa){return Xr!==oe||fa===Si});var qi=Br[Si],Gi;(Ir==="left"||Ir)&&!ur?Gi="left":(Ir==="right"||Ir)&&ur===Br.length?Gi="right":Gi=qi?qi.fixed:null;var Ri=(Ai={},(0,Be.Z)(Ai,Vn,{className:"".concat(Mt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Be.Z)(Ai,"title",hn),(0,Be.Z)(Ai,"fixed",Gi),(0,Be.Z)(Ai,"className","".concat(Mt,"-row-expand-icon-cell")),(0,Be.Z)(Ai,"width",Wr),(0,Be.Z)(Ai,"render",function(fa,ha,ja){var Fa=un(ha,ja),ko=pn.has(Fa),Va=On?On(ha):!0,aa=$n({prefixCls:Mt,expanded:ko,expandable:Va,record:ha,onExpand:Nn});return ir?he.createElement("span",{onClick:function(Ba){return Ba.stopPropagation()}},aa):aa}),Ai);return vi.map(function(Xr){return Xr===oe?Ri:Xr})}return Br.filter(function(Xr){return Xr!==oe})},[Wt,Br,un,pn,$n,rr]),Pi=he.useMemo(function(){var Ai=li;return Ve&&(Ai=Ve(Ai)),Ai.length||(Ai=[{render:function(){return null}}]),Ai},[Ve,li,rr]),Hi=he.useMemo(function(){return rr==="rtl"?it(nt(Pi)):nt(Pi)},[Pi,rr,Ur]),xi=Gn(Hi,Ur),na=(0,Ce.Z)(xi,2),ya=na[0],hi=na[1];return[Pi,ya,hi]}var Ht=Dt;function sn($e){var Ve,Mt=$e.prefixCls,Pt=$e.record,Ut=$e.onExpand,Wt=$e.expanded,pn=$e.expandable,hn="".concat(Mt,"-row-expand-icon");if(!pn)return he.createElement("span",{className:He()(hn,"".concat(Mt,"-row-spaced"))});var un=function($n){Ut(Pt,$n),$n.stopPropagation()};return he.createElement("span",{className:He()(hn,(Ve={},(0,Be.Z)(Ve,"".concat(Mt,"-row-expanded"),Wt),(0,Be.Z)(Ve,"".concat(Mt,"-row-collapsed"),!Wt),Ve)),onClick:un})}function qt($e,Ve,Mt){var Pt=[];function Ut(Wt){(Wt||[]).forEach(function(pn,hn){Pt.push(Ve(pn,hn)),Ut(pn[Mt])})}return Ut($e),Pt}function mn($e,Ve,Mt){var Pt=_n($e),Ut=Pt.expandIcon,Wt=Pt.expandedRowKeys,pn=Pt.defaultExpandedRowKeys,hn=Pt.defaultExpandAllRows,un=Pt.expandedRowRender,Nn=Pt.onExpand,$n=Pt.onExpandedRowsChange,On=Pt.childrenColumnName,ur=Ut||sn,rr=On||"children",ir=he.useMemo(function(){return un?"row":$e.expandable&&$e.internalHooks===ke&&$e.expandable.__PARENT_RENDER_ICON__||Ve.some(function(Hi){return Hi&&(0,Je.Z)(Hi)==="object"&&Hi[rr]})?"nest":!1},[!!un,Ve]),Wr=he.useState(function(){return pn||(hn?qt(Ve,Mt,rr):[])}),Ir=(0,Ce.Z)(Wr,2),Ur=Ir[0],Br=Ir[1],li=he.useMemo(function(){return new Set(Wt||Ur||[])},[Wt,Ur]),Pi=he.useCallback(function(Hi){var xi=Mt(Hi,Ve.indexOf(Hi)),na,ya=li.has(xi);ya?(li.delete(xi),na=(0,Yn.Z)(li)):na=[].concat((0,Yn.Z)(li),[xi]),Br(na),Nn&&Nn(!ya,Hi),$n&&$n(na)},[Mt,li,Ve,Nn,$n]);return[Pt,ir,li,ur,rr,Pi]}function An($e,Ve,Mt,Pt){var Ut=$e.map(function(Wt,pn){return en(pn,pn,$e,Ve,Mt,Pt==null?void 0:Pt[pn])});return(0,Tt.Z)(function(){return Ut},[Ut],function(Wt,pn){return!(0,Ee.Z)(Wt,pn)})}function Tn($e){var Ve=(0,he.useRef)($e),Mt=(0,he.useState)({}),Pt=(0,Ce.Z)(Mt,2),Ut=Pt[1],Wt=(0,he.useRef)(null),pn=(0,he.useRef)([]);function hn(un){pn.current.push(un);var Nn=Promise.resolve();Wt.current=Nn,Nn.then(function(){if(Wt.current===Nn){var $n=pn.current,On=Ve.current;pn.current=[],$n.forEach(function(ur){Ve.current=ur(Ve.current)}),Wt.current=null,On!==Ve.current&&Ut({})}})}return(0,he.useEffect)(function(){return function(){Wt.current=null}},[]),[Ve.current,hn]}function Pn($e){var Ve=(0,he.useRef)($e||null),Mt=(0,he.useRef)();function Pt(){window.clearTimeout(Mt.current)}function Ut(pn){Ve.current=pn,Pt(),Mt.current=window.setTimeout(function(){Ve.current=null,Mt.current=void 0},100)}function Wt(){return Ve.current}return(0,he.useEffect)(function(){return Pt},[]),[Ut,Wt]}function Qt(){var $e=he.useState(-1),Ve=(0,Ce.Z)($e,2),Mt=Ve[0],Pt=Ve[1],Ut=he.useState(-1),Wt=(0,Ce.Z)(Ut,2),pn=Wt[0],hn=Wt[1],un=he.useCallback(function(Nn,$n){Pt(Nn),hn($n)},[]);return[Mt,pn,un]}var wn=ie(47273),Xn=(0,wn.Z)()?window:null;function Wn($e,Ve){var Mt=(0,Je.Z)($e)==="object"?$e:{},Pt=Mt.offsetHeader,Ut=Pt===void 0?0:Pt,Wt=Mt.offsetSummary,pn=Wt===void 0?0:Wt,hn=Mt.offsetScroll,un=hn===void 0?0:hn,Nn=Mt.getContainer,$n=Nn===void 0?function(){return Xn}:Nn,On=$n()||Xn;return he.useMemo(function(){var ur=!!$e;return{isSticky:ur,stickyClassName:ur?"".concat(Ve,"-sticky-holder"):"",offsetHeader:Ut,offsetSummary:pn,offsetScroll:un,container:On}},[un,Ut,pn,Ve,On])}function sr($e,Ve,Mt){var Pt=(0,he.useMemo)(function(){for(var Ut=[],Wt=[],pn=0,hn=0,un=0;un<Ve;un+=1)if(Mt==="rtl"){Wt[un]=hn,hn+=$e[un]||0;var Nn=Ve-un-1;Ut[Nn]=pn,pn+=$e[Nn]||0}else{Ut[un]=pn,pn+=$e[un]||0;var $n=Ve-un-1;Wt[$n]=hn,hn+=$e[$n]||0}return{left:Ut,right:Wt}},[$e,Ve,Mt]);return Pt}var Jn=sr;function Ar($e){var Ve=$e.className,Mt=$e.children;return he.createElement("div",{className:Ve},Mt)}var Fn=Ar,dr=ie(8224),Ot=ie(55468),cn=function(Ve,Mt){var Pt,Ut,Wt=Ve.scrollBodyRef,pn=Ve.onScroll,hn=Ve.offsetScroll,un=Ve.container,Nn=Te(Se,"prefixCls"),$n=((Pt=Wt.current)===null||Pt===void 0?void 0:Pt.scrollWidth)||0,On=((Ut=Wt.current)===null||Ut===void 0?void 0:Ut.clientWidth)||0,ur=$n&&On*(On/$n),rr=he.useRef(),ir=Tn({scrollLeft:0,isHiddenScrollBar:!1}),Wr=(0,Ce.Z)(ir,2),Ir=Wr[0],Ur=Wr[1],Br=he.useRef({delta:0,x:0}),li=he.useState(!1),Pi=(0,Ce.Z)(li,2),Hi=Pi[0],xi=Pi[1],na=function(){xi(!1)},ya=function(Si){Si.persist(),Br.current.delta=Si.pageX-Ir.scrollLeft,Br.current.x=0,xi(!0),Si.preventDefault()},hi=function(Si){var qi,Gi=Si||((qi=window)===null||qi===void 0?void 0:qi.event),Ri=Gi.buttons;if(!Hi||Ri===0){Hi&&xi(!1);return}var Xr=Br.current.x+Si.pageX-Br.current.x-Br.current.delta;Xr<=0&&(Xr=0),Xr+ur>=On&&(Xr=On-ur),pn({scrollLeft:Xr/On*($n+2)}),Br.current.x=Si.pageX},Ai=function(){if(Wt.current){var Si=(0,Ot.os)(Wt.current).top,qi=Si+Wt.current.offsetHeight,Gi=un===window?document.documentElement.scrollTop+window.innerHeight:(0,Ot.os)(un).top+un.clientHeight;qi-(0,wt.Z)()<=Gi||Si>=Gi-hn?Ur(function(Ri){return(0,dt.Z)((0,dt.Z)({},Ri),{},{isHiddenScrollBar:!0})}):Ur(function(Ri){return(0,dt.Z)((0,dt.Z)({},Ri),{},{isHiddenScrollBar:!1})})}},vi=function(Si){Ur(function(qi){return(0,dt.Z)((0,dt.Z)({},qi),{},{scrollLeft:Si/$n*On||0})})};return he.useImperativeHandle(Mt,function(){return{setScrollLeft:vi}}),he.useEffect(function(){var Er=(0,dr.Z)(document.body,"mouseup",na,!1),Si=(0,dr.Z)(document.body,"mousemove",hi,!1);return Ai(),function(){Er.remove(),Si.remove()}},[ur,Hi]),he.useEffect(function(){var Er=(0,dr.Z)(un,"scroll",Ai,!1),Si=(0,dr.Z)(window,"resize",Ai,!1);return function(){Er.remove(),Si.remove()}},[un]),he.useEffect(function(){Ir.isHiddenScrollBar||Ur(function(Er){var Si=Wt.current;return Si?(0,dt.Z)((0,dt.Z)({},Er),{},{scrollLeft:Si.scrollLeft/Si.scrollWidth*Si.clientWidth}):Er})},[Ir.isHiddenScrollBar]),$n<=On||!ur||Ir.isHiddenScrollBar?null:he.createElement("div",{style:{height:(0,wt.Z)(),width:On,bottom:hn},className:"".concat(Nn,"-sticky-scroll")},he.createElement("div",{onMouseDown:ya,ref:rr,className:He()("".concat(Nn,"-sticky-scroll-bar"),(0,Be.Z)({},"".concat(Nn,"-sticky-scroll-bar-active"),Hi)),style:{width:"".concat(ur,"px"),transform:"translate3d(".concat(Ir.scrollLeft,"px, 0, 0)")}}))},vn=he.forwardRef(cn);function Mn($e){return null}var yn=Mn;function Sn($e){return null}var bn=Sn,zn="rc-table",Zn=[],qn={};function _r(){return"No Data"}function ei($e){var Ve,Mt=(0,dt.Z)({rowKey:"key",prefixCls:zn,emptyText:_r},$e),Pt=Mt.prefixCls,Ut=Mt.className,Wt=Mt.rowClassName,pn=Mt.style,hn=Mt.data,un=Mt.rowKey,Nn=Mt.scroll,$n=Mt.tableLayout,On=Mt.direction,ur=Mt.title,rr=Mt.footer,ir=Mt.summary,Wr=Mt.caption,Ir=Mt.id,Ur=Mt.showHeader,Br=Mt.components,li=Mt.emptyText,Pi=Mt.onRow,Hi=Mt.onHeaderRow,xi=Mt.internalHooks,na=Mt.transformColumns,ya=Mt.internalRefs,hi=Mt.tailor,Ai=Mt.sticky,vi=hn||Zn,Er=!!vi.length,Si=xi===ke,qi=he.useCallback(function(Wa,oo){return(0,mt.Z)(Br,Wa)||oo},[Br]),Gi=he.useMemo(function(){return typeof un=="function"?un:function(Wa){var oo=Wa&&Wa[un];return oo}},[un]),Ri=qi(["body"]),Xr=Qt(),fa=(0,Ce.Z)(Xr,3),ha=fa[0],ja=fa[1],Fa=fa[2],ko=mn(Mt,vi,Gi),Va=(0,Ce.Z)(ko,6),aa=Va[0],ao=Va[1],Ba=Va[2],Eo=Va[3],vo=Va[4],ts=Va[5],Ji=Nn==null?void 0:Nn.x,Wi=he.useState(0),Vi=(0,Ce.Z)(Wi,2),Fi=Vi[0],$a=Vi[1],Ln=Ht((0,dt.Z)((0,dt.Z)((0,dt.Z)({},Mt),aa),{},{expandable:!!aa.expandedRowRender,columnTitle:aa.columnTitle,expandedKeys:Ba,getRowKey:Gi,onTriggerExpand:ts,expandIcon:Eo,expandIconColumnIndex:aa.expandIconColumnIndex,direction:On,scrollWidth:Si&&hi&&typeof Ji=="number"?Ji:null}),Si?na:null),pr=(0,Ce.Z)(Ln,3),pa=pr[0],ka=pr[1],rs=pr[2],Go=rs!=null?rs:Ji,Zs=he.useMemo(function(){return{columns:pa,flattenColumns:ka}},[pa,ka]),ns=he.useRef(),kl=he.useRef(),is=he.useRef(),Ds=he.useRef(),Wl=he.useRef(),Za=he.useState(!1),Nr=(0,Ce.Z)(Za,2),Qa=Nr[0],ls=Nr[1],ps=he.useState(!1),ma=(0,Ce.Z)(ps,2),uo=ma[0],Is=ma[1],pl=Tn(new Map),zl=(0,Ce.Z)(pl,2),el=zl[0],Rs=zl[1],Nl=at(ka),Fs=Nl.map(function(Wa){return el.get(Wa)}),tl=he.useMemo(function(){return Fs},[Fs.join("_")]),Hs=Jn(tl,ka.length,On),zo=Nn&&Ct(Nn.y),jo=Nn&&Ct(Go)||!!aa.fixed,Qs=jo&&ka.some(function(Wa){var oo=Wa.fixed;return oo}),Ul=he.useRef(),Sl=Wn(Ai,Pt),jl=Sl.isSticky,nu=Sl.offsetHeader,vc=Sl.offsetSummary,Ha=Sl.offsetScroll,yo=Sl.stickyClassName,Cs=Sl.container,bo=he.useMemo(function(){return ir==null?void 0:ir(vi)},[ir,vi]),ws=(zo||jl)&&he.isValidElement(bo)&&bo.type===se&&bo.props.fixed,zs,sl,Vl;zo&&(sl={overflowY:"scroll",maxHeight:Nn.y}),jo&&(zs={overflowX:"auto"},zo||(sl={overflowY:"hidden"}),Vl={width:Go===!0?"auto":Go,minWidth:"100%"});var Bc=he.useCallback(function(Wa,oo){(0,gt.Z)(ns.current)&&Rs(function(rl){if(rl.get(Wa)!==oo){var Jl=new Map(rl);return Jl.set(Wa,oo),Jl}return rl})},[]),pu=Pn(null),Gl=(0,Ce.Z)(pu,2),Ka=Gl[0],Ko=Gl[1];function $l(Wa,oo){oo&&(typeof oo=="function"?oo(Wa):oo.scrollLeft!==Wa&&(oo.scrollLeft=Wa,oo.scrollLeft!==Wa&&setTimeout(function(){oo.scrollLeft=Wa},0)))}var Iu=(0,Ye.Z)(function(Wa){var oo=Wa.currentTarget,rl=Wa.scrollLeft,Jl=On==="rtl",Xl=typeof rl=="number"?rl:oo.scrollLeft,Pc=oo||qn;if(!Ko()||Ko()===Pc){var gs;Ka(Pc),$l(Xl,kl.current),$l(Xl,is.current),$l(Xl,Wl.current),$l(Xl,(gs=Ul.current)===null||gs===void 0?void 0:gs.setScrollLeft)}var Bl=oo||kl.current;if(Bl){var Rc=Bl.scrollWidth,gu=Bl.clientWidth;if(Rc===gu){ls(!1),Is(!1);return}Jl?(ls(-Xl<Rc-gu),Is(-Xl>0)):(ls(Xl>0),Is(Xl<Rc-gu))}}),Cl=function(){jo&&is.current?Iu({currentTarget:is.current}):(ls(!1),Is(!1))},td=function(oo){var rl=oo.width;rl!==Fi&&(Cl(),$a(ns.current?ns.current.offsetWidth:rl))},ms=he.useRef(!1);he.useEffect(function(){ms.current&&Cl()},[jo,hn,pa.length]),he.useEffect(function(){ms.current=!0},[]);var Oc=he.useState(0),nd=(0,Ce.Z)(Oc,2),yc=nd[0],bc=nd[1],$u=he.useState(!0),Lu=(0,Ce.Z)($u,2),Kr=Lu[0],_c=Lu[1];he.useEffect(function(){(!hi||!Si)&&(is.current instanceof Element?bc((0,wt.o)(is.current).width):bc((0,wt.o)(Ds.current).width)),_c((0,Xe.G)("position","sticky"))},[]),he.useEffect(function(){Si&&ya&&(ya.body.current=is.current)});var xc=he.useCallback(function(Wa){return he.createElement(he.Fragment,null,he.createElement(nr,Wa),ws==="top"&&he.createElement(ht,Wa,bo))},[ws,bo]),Sc=he.useCallback(function(Wa){return he.createElement(ht,Wa,bo)},[bo]),Tl=qi(["table"],"table"),mu=he.useMemo(function(){return $n||(Qs?Go==="max-content"?"auto":"fixed":zo||jl||ka.some(function(Wa){var oo=Wa.ellipsis;return oo})?"fixed":"auto")},[zo,Qs,ka,$n,jl]),Ku,Nu={colWidths:tl,columCount:ka.length,stickyOffsets:Hs,onHeaderRow:Hi,fixHeader:zo,scroll:Nn},Po=he.useMemo(function(){return Er?null:typeof li=="function"?li():li},[Er,li]),rd=he.createElement(Dn,{data:vi,measureColumnWidth:zo||jo||jl}),Cc=he.createElement(Tr,{colWidths:ka.map(function(Wa){var oo=Wa.width;return oo}),columns:ka}),Yl=Wr!=null?he.createElement("caption",{className:"".concat(Pt,"-caption")},Wr):void 0,sc=(0,Xt.Z)(Mt,{data:!0}),ru=(0,Xt.Z)(Mt,{aria:!0});if(zo||jl){var iu;typeof Ri=="function"?(iu=Ri(vi,{scrollbarSize:yc,ref:is,onScroll:Iu}),Nu.colWidths=ka.map(function(Wa,oo){var rl=Wa.width,Jl=oo===ka.length-1?rl-yc:rl;return typeof Jl=="number"&&!Number.isNaN(Jl)?Jl:0})):iu=he.createElement("div",{style:(0,dt.Z)((0,dt.Z)({},zs),sl),onScroll:Iu,ref:is,className:He()("".concat(Pt,"-body"))},he.createElement(Tl,(0,qe.Z)({style:(0,dt.Z)((0,dt.Z)({},Vl),{},{tableLayout:mu})},ru),Yl,Cc,rd,!ws&&bo&&he.createElement(ht,{stickyOffsets:Hs,flattenColumns:ka,columns:pa},bo)));var nl=(0,dt.Z)((0,dt.Z)((0,dt.Z)({noData:!vi.length,maxContentScroll:jo&&Go==="max-content"},Nu),Zs),{},{direction:On,stickyClassName:yo,onScroll:Iu});Ku=he.createElement(he.Fragment,null,Ur!==!1&&he.createElement(Fr,(0,qe.Z)({},nl,{stickyTopOffset:nu,className:"".concat(Pt,"-header"),ref:kl}),xc),iu,ws&&ws!=="top"&&he.createElement(Fr,(0,qe.Z)({},nl,{stickyBottomOffset:vc,className:"".concat(Pt,"-summary"),ref:Wl}),Sc),jl&&he.createElement(vn,{ref:Ul,offsetScroll:Ha,scrollBodyRef:is,onScroll:Iu,container:Cs}))}else Ku=he.createElement("div",{style:(0,dt.Z)((0,dt.Z)({},zs),sl),className:He()("".concat(Pt,"-content")),onScroll:Iu,ref:is},he.createElement(Tl,(0,qe.Z)({style:(0,dt.Z)((0,dt.Z)({},Vl),{},{tableLayout:mu})},ru),Yl,Cc,Ur!==!1&&he.createElement(nr,(0,qe.Z)({},Nu,Zs)),rd,bo&&he.createElement(ht,{stickyOffsets:Hs,flattenColumns:ka,columns:pa},bo)));var wl=he.createElement("div",(0,qe.Z)({className:He()(Pt,Ut,(Ve={},(0,Be.Z)(Ve,"".concat(Pt,"-rtl"),On==="rtl"),(0,Be.Z)(Ve,"".concat(Pt,"-ping-left"),Qa),(0,Be.Z)(Ve,"".concat(Pt,"-ping-right"),uo),(0,Be.Z)(Ve,"".concat(Pt,"-layout-fixed"),$n==="fixed"),(0,Be.Z)(Ve,"".concat(Pt,"-fixed-header"),zo),(0,Be.Z)(Ve,"".concat(Pt,"-fixed-column"),Qs),(0,Be.Z)(Ve,"".concat(Pt,"-scroll-horizontal"),jo),(0,Be.Z)(Ve,"".concat(Pt,"-has-fix-left"),ka[0]&&ka[0].fixed),(0,Be.Z)(Ve,"".concat(Pt,"-has-fix-right"),ka[ka.length-1]&&ka[ka.length-1].fixed==="right"),Ve)),style:pn,id:Ir,ref:ns},sc),ur&&he.createElement(Fn,{className:"".concat(Pt,"-title")},ur(vi)),he.createElement("div",{ref:Ds,className:"".concat(Pt,"-container")},Ku),rr&&he.createElement(Fn,{className:"".concat(Pt,"-footer")},rr(vi)));jo&&(wl=he.createElement(St.Z,{onResize:td},wl));var Ws=An(ka,Hs,On,pa),Ql=he.useMemo(function(){return{scrollX:Go,prefixCls:Pt,getComponent:qi,scrollbarSize:yc,direction:On,fixedInfoList:Ws,isSticky:jl,supportSticky:Kr,componentWidth:Fi,fixHeader:zo,fixColumn:Qs,horizonScroll:jo,tableLayout:mu,rowClassName:Wt,expandedRowClassName:aa.expandedRowClassName,expandIcon:Eo,expandableType:ao,expandRowByClick:aa.expandRowByClick,expandedRowRender:aa.expandedRowRender,onTriggerExpand:ts,expandIconColumnIndex:aa.expandIconColumnIndex,indentSize:aa.indentSize,allColumnsFixedLeft:ka.every(function(Wa){return Wa.fixed==="left"}),emptyNode:Po,columns:pa,flattenColumns:ka,onColumnResize:Bc,hoverStartRow:ha,hoverEndRow:ja,onHover:Fa,rowExpandable:aa.rowExpandable,onRow:Pi,getRowKey:Gi,expandedKeys:Ba,childrenColumnName:vo}},[Go,Pt,qi,yc,On,Ws,jl,Kr,Fi,zo,Qs,jo,mu,Wt,aa.expandedRowClassName,Eo,ao,aa.expandRowByClick,aa.expandedRowRender,ts,aa.expandIconColumnIndex,aa.indentSize,Po,pa,ka,Bc,ha,ja,Fa,aa.rowExpandable,Pi,Gi,Ba,vo]);return he.createElement(Se.Provider,{value:Ql},wl)}function di($e){return At(ei,$e)}var zr=di();zr.EXPAND_COLUMN=oe,zr.INTERNAL_HOOKS=ke,zr.Column=yn,zr.ColumnGroup=bn,zr.Summary=_e;var Lr=zr,mi=ie(48911),oi=we(null),ti=we(null);function Pr($e,Ve,Mt){var Pt=Ve||1;return Mt[$e+Pt]-(Mt[$e]||0)}function Vr($e){var Ve=$e.rowInfo,Mt=$e.column,Pt=$e.colIndex,Ut=$e.indent,Wt=$e.index,pn=$e.renderIndex,hn=$e.record,un=$e.style,Nn=$e.className,$n=$e.inverse,On=$e.getHeight,ur=Mt.render,rr=Mt.dataIndex,ir=Mt.className,Wr=Mt.width,Ir=Te(ti,["columnsOffset"]),Ur=Ir.columnsOffset,Br=yt(Ve,Mt,Pt,Ut,Wt),li=Br.key,Pi=Br.fixedInfo,Hi=Br.appendCellNode,xi=Br.additionalCellProps,na=xi.style,ya=xi.colSpan,hi=ya===void 0?1:ya,Ai=xi.rowSpan,vi=Ai===void 0?1:Ai,Er=Pt-1,Si=Pr(Er,hi,Ur),qi=hi>1?Wr-Si:0,Gi=(0,dt.Z)((0,dt.Z)((0,dt.Z)({},na),un),{},{flex:"0 0 ".concat(Si,"px"),width:"".concat(Si,"px"),marginRight:qi,pointerEvents:"auto"}),Ri=he.useMemo(function(){return $n?vi<=1:hi===0||vi===0||vi>1},[vi,hi,$n]);Ri?Gi.visibility="hidden":$n&&(Gi.height=On==null?void 0:On(vi));var Xr=Ri?function(){return null}:ur,fa={};return(vi===0||hi===0)&&(fa.rowSpan=1,fa.colSpan=1),he.createElement(tn,(0,qe.Z)({className:He()(ir,Nn),ellipsis:Mt.ellipsis,align:Mt.align,scope:Mt.rowScope,component:"div",prefixCls:Ve.prefixCls,key:li,record:hn,index:Wt,renderIndex:pn,dataIndex:rr,render:Xr,shouldCellUpdate:Mt.shouldCellUpdate},Pi,{appendNode:Hi,additionalProps:(0,dt.Z)((0,dt.Z)({},xi),{},{style:Gi},fa)}))}var En=Vr,Yr=["data","index","className","rowKey","style","extra","getHeight"],Li=he.forwardRef(function($e,Ve){var Mt=$e.data,Pt=$e.index,Ut=$e.className,Wt=$e.rowKey,pn=$e.style,hn=$e.extra,un=$e.getHeight,Nn=(0,ce.Z)($e,Yr),$n=Mt.record,On=Mt.indent,ur=Mt.index,rr=Te(Se,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ir=rr.scrollX,Wr=rr.flattenColumns,Ir=rr.prefixCls,Ur=rr.fixColumn,Br=rr.componentWidth,li=Oe($n,Wt,Pt,On),Pi=li.rowSupportExpand,Hi=li.expanded,xi=li.rowProps,na=li.expandedRowRender,ya=li.expandedRowClassName,hi;if(Pi&&Hi){var Ai=na($n,Pt,On+1,Hi),vi=ya==null?void 0:ya($n,Pt,On),Er={};Ur&&(Er={style:(0,Be.Z)({},"--virtual-width","".concat(Br,"px"))});var Si="".concat(Ir,"-expanded-row-cell");hi=he.createElement("div",{className:He()("".concat(Ir,"-expanded-row"),"".concat(Ir,"-expanded-row-level-").concat(On+1),vi)},he.createElement(tn,{component:"div",prefixCls:Ir,className:He()(Si,(0,Be.Z)({},"".concat(Si,"-fixed"),Ur)),additionalProps:Er},Ai))}var qi=(0,dt.Z)((0,dt.Z)({},pn),{},{width:ir});hn&&(qi.position="absolute",qi.pointerEvents="none");var Gi=he.createElement("div",(0,qe.Z)({},xi,Nn,{ref:Pi?null:Ve,className:He()(Ut,"".concat(Ir,"-row"),xi==null?void 0:xi.className,(0,Be.Z)({},"".concat(Ir,"-row-extra"),hn)),style:(0,dt.Z)((0,dt.Z)({},qi),xi==null?void 0:xi.style)}),Wr.map(function(Ri,Xr){return he.createElement(En,{key:Xr,rowInfo:li,column:Ri,colIndex:Xr,indent:On,index:Pt,renderIndex:ur,record:$n,inverse:hn,getHeight:un})}));return Pi?he.createElement("div",{ref:Ve},Gi,hi):Gi}),Yi=ut(Li),ni=Yi,tr=he.forwardRef(function($e,Ve){var Mt=$e.data,Pt=$e.onScroll,Ut=Te(Se,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Wt=Ut.flattenColumns,pn=Ut.onColumnResize,hn=Ut.getRowKey,un=Ut.expandedKeys,Nn=Ut.prefixCls,$n=Ut.childrenColumnName,On=Ut.emptyNode,ur=Ut.scrollX,rr=Te(oi),ir=rr.scrollY,Wr=rr.listItemHeight,Ir=he.useRef(),Ur=$t(Mt,$n,un,hn),Br=he.useMemo(function(){var hi=0;return Wt.map(function(Ai){var vi=Ai.width,Er=Ai.key;return hi+=vi,[Er,vi,hi]})},[Wt]),li=he.useMemo(function(){return Br.map(function(hi){return hi[2]})},[Br]);he.useEffect(function(){Br.forEach(function(hi){var Ai=(0,Ce.Z)(hi,2),vi=Ai[0],Er=Ai[1];pn(vi,Er)})},[Br]),he.useImperativeHandle(Ve,function(){var hi={};return Object.defineProperty(hi,"scrollLeft",{get:function(){var vi;return((vi=Ir.current)===null||vi===void 0?void 0:vi.getScrollInfo().x)||0},set:function(vi){var Er;(Er=Ir.current)===null||Er===void 0||Er.scrollTo({left:vi})}}),hi});var Pi=function(Ai,vi){var Er,Si=(Er=Ur[vi])===null||Er===void 0?void 0:Er.record,qi=Ai.onCell;if(qi){var Gi,Ri=qi(Si,vi);return(Gi=Ri==null?void 0:Ri.rowSpan)!==null&&Gi!==void 0?Gi:1}return 1},Hi=function(Ai){var vi=Ai.start,Er=Ai.end,Si=Ai.getSize,qi=Ai.offsetY;if(Er<0)return null;for(var Gi=Wt.filter(function(Ji){return Pi(Ji,vi)===0}),Ri=vi,Xr=function(Wi){if(Gi=Gi.filter(function(Vi){return Pi(Vi,Wi)===0}),!Gi.length)return Ri=Wi,"break"},fa=vi;fa>=0;fa-=1){var ha=Xr(fa);if(ha==="break")break}for(var ja=Wt.filter(function(Ji){return Pi(Ji,Er)!==1}),Fa=Er,ko=function(Wi){if(ja=ja.filter(function(Vi){return Pi(Vi,Wi)!==1}),!ja.length)return Fa=Math.max(Wi-1,Er),"break"},Va=Er;Va<Ur.length;Va+=1){var aa=ko(Va);if(aa==="break")break}for(var ao=[],Ba=function(Wi){var Vi=Ur[Wi];if(!Vi)return"continue";Wt.some(function(Fi){return Pi(Fi,Wi)>1})&&ao.push(Wi)},Eo=Ri;Eo<=Fa;Eo+=1)var vo=Ba(Eo);var ts=ao.map(function(Ji){var Wi=Ur[Ji],Vi=hn(Wi.record,Ji),Fi=function(pr){var pa=Ji+pr-1,ka=hn(Ur[pa].record,pa),rs=Si(Vi,ka);return rs.bottom-rs.top},$a=Si(Vi);return he.createElement(ni,{key:Ji,data:Wi,rowKey:Vi,index:Ji,style:{top:-qi+$a.top},extra:!0,getHeight:Fi})});return ts},xi=he.useMemo(function(){return{columnsOffset:li}},[li]),na="".concat(Nn,"-tbody"),ya;return Ur.length?ya=he.createElement(mi.Z,{fullHeight:!1,ref:Ir,className:He()(na,"".concat(na,"-virtual")),height:ir,itemHeight:Wr||24,data:Ur,itemKey:function(Ai){return hn(Ai.record)},scrollWidth:ur,onVirtualScroll:function(Ai){var vi=Ai.x;Pt({scrollLeft:vi})},extraRender:Hi},function(hi,Ai,vi){var Er=hn(hi.record,Ai);return he.createElement(ni,(0,qe.Z)({data:hi,rowKey:Er,index:Ai},vi))}):ya=he.createElement("div",{className:He()("".concat(Nn,"-placeholder"))},he.createElement(tn,{component:"div",prefixCls:Nn},On)),he.createElement(ti.Provider,{value:xi},ya)}),Un=ut(tr),Qr=Un,Dr=function(Ve,Mt){var Pt=Mt.ref,Ut=Mt.onScroll;return he.createElement(Qr,{ref:Pt,data:Ve,onScroll:Ut})},fi=100;function Ni($e){var Ve=$e.columns,Mt=$e.scroll,Pt=$e.prefixCls,Ut=Pt===void 0?zn:Pt,Wt=$e.className,pn=$e.listItemHeight,hn=Mt||{},un=hn.x,Nn=hn.y;typeof un!="number"&&(un=((Ve||[]).length+1)*fi),typeof Nn!="number"&&(Nn=500);var $n=he.useMemo(function(){return{scrollY:Nn,listItemHeight:pn}},[Nn,pn]);return he.createElement(oi.Provider,{value:$n},he.createElement(Lr,(0,qe.Z)({},$e,{className:He()(Wt,"".concat(Ut,"-virtual")),scroll:(0,dt.Z)((0,dt.Z)({},Mt),{},{x:un}),components:{body:Dr},columns:Ve,internalHooks:ke,tailor:!0})))}function si($e){return At(Ni,$e)}var ea=si(),ki=null;function Da($e){return null}var jr=Da;function $r($e){return null}var Di=$r,Ii=ie(2738),La=ie(68031),So=ie(36355),Ga=ie(93891),la=ie(19716),Oa=ie(8628),Ma=ie(31724),vr=ie(58421),br=ie(71418),xr=ie(88088);function Gr($e){return function(Mt){let{prefixCls:Pt,onExpand:Ut,record:Wt,expanded:pn,expandable:hn}=Mt;const un=`${Pt}-row-expand-icon`;return he.createElement("button",{type:"button",onClick:Nn=>{Ut(Wt,Nn),Nn.stopPropagation()},className:He()(un,{[`${un}-spaced`]:!hn,[`${un}-expanded`]:hn&&pn,[`${un}-collapsed`]:hn&&!pn}),"aria-label":pn?$e.collapse:$e.expand,"aria-expanded":pn})}}var ia=Gr;function wa($e,Ve){return"key"in $e&&$e.key!==void 0&&$e.key!==null?$e.key:$e.dataIndex?Array.isArray($e.dataIndex)?$e.dataIndex.join("."):$e.dataIndex:Ve}function Ea($e,Ve){return Ve?`${Ve}-${$e}`:`${$e}`}function Sa($e,Ve){return typeof $e=="function"?$e(Ve):$e}function Aa($e,Ve){const Mt=Sa($e,Ve);return Object.prototype.toString.call(Mt)==="[object Object]"?"":Mt}var _a={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"},mo=_a,co=ie(7657),qo=function(Ve,Mt){return he.createElement(co.Z,(0,qe.Z)({},Ve,{ref:Mt,icon:mo}))},Bo=he.forwardRef(qo),eo=Bo,Bs=ie(56762);function Wo($e){const Ve=he.useRef($e),Mt=(0,Bs.Z)();return[()=>Ve.current,Pt=>{Ve.current=Pt,Mt()}]}var Ro=ie(3113),fo=ie(24905),za=ie(38854),Ei=ie(64165),ta=ie(20834),Zi=ie(40875),Ci=ie(5112),va=ie(17574),oa=ie(47472),to=ie(92832);function go($e){let{value:Ve,onChange:Mt,filterSearch:Pt,tablePrefixCls:Ut,locale:Wt}=$e;return Pt?he.createElement("div",{className:`${Ut}-filter-dropdown-search`},he.createElement(to.default,{prefix:he.createElement(oa.Z,null),placeholder:Wt.filterSearchPlaceholder,onChange:Mt,value:Ve,htmlSize:1,className:`${Ut}-filter-dropdown-search-input`})):null}var no=go,xn=ie(10228);const gr=$e=>{const{keyCode:Ve}=$e;Ve===xn.Z.ENTER&&$e.stopPropagation()};var Ti=he.forwardRef(($e,Ve)=>he.createElement("div",{className:$e.className,onClick:Mt=>Mt.stopPropagation(),onKeyDown:gr,ref:Ve},$e.children));function Ui($e){let Ve=[];return($e||[]).forEach(Mt=>{let{value:Pt,children:Ut}=Mt;Ve.push(Pt),Ut&&(Ve=[].concat((0,Yn.Z)(Ve),(0,Yn.Z)(Ui(Ut))))}),Ve}function ji($e){return $e.some(Ve=>{let{children:Mt}=Ve;return Mt})}function ba($e,Ve){return typeof Ve=="string"||typeof Ve=="number"?Ve==null?void 0:Ve.toString().toLowerCase().includes($e.trim().toLowerCase()):!1}function Co($e){let{filters:Ve,prefixCls:Mt,filteredKeys:Pt,filterMultiple:Ut,searchValue:Wt,filterSearch:pn}=$e;return Ve.map((hn,un)=>{const Nn=String(hn.value);if(hn.children)return{key:Nn||un,label:hn.text,popupClassName:`${Mt}-dropdown-submenu`,children:Co({filters:hn.children,prefixCls:Mt,filteredKeys:Pt,filterMultiple:Ut,searchValue:Wt,filterSearch:pn})};const $n=Ut?fo.default:Ci.ZP,On={key:hn.value!==void 0?Nn:un,label:he.createElement(he.Fragment,null,he.createElement($n,{checked:Pt.includes(Nn)}),he.createElement("span",null,hn.text))};return Wt.trim()?typeof pn=="function"?pn(Wt,hn)?On:null:ba(Wt,hn.text)?On:null:On})}function fn($e){var Ve,Mt;const{tablePrefixCls:Pt,prefixCls:Ut,column:Wt,dropdownPrefixCls:pn,columnKey:hn,filterMultiple:un,filterMode:Nn="menu",filterSearch:$n=!1,filterState:On,triggerFilter:ur,locale:rr,children:ir,getPopupContainer:Wr}=$e,{filterDropdownOpen:Ir,onFilterDropdownOpenChange:Ur,filterResetToDefaultFilteredValue:Br,defaultFilteredValue:li,filterDropdownVisible:Pi,onFilterDropdownVisibleChange:Hi}=Wt,[xi,na]=he.useState(!1),ya=!!(On&&(!((Ve=On.filteredKeys)===null||Ve===void 0)&&Ve.length||On.forceFiltered)),hi=Ln=>{na(Ln),Ur==null||Ur(Ln),Hi==null||Hi(Ln)},Ai=(Mt=Ir!=null?Ir:Pi)!==null&&Mt!==void 0?Mt:xi,vi=On==null?void 0:On.filteredKeys,[Er,Si]=Wo(vi||[]),qi=Ln=>{let{selectedKeys:pr}=Ln;Si(pr)},Gi=(Ln,pr)=>{let{node:pa,checked:ka}=pr;qi(un?{selectedKeys:Ln}:{selectedKeys:ka&&pa.key?[pa.key]:[]})};he.useEffect(()=>{xi&&qi({selectedKeys:vi||[]})},[vi]);const[Ri,Xr]=he.useState([]),fa=Ln=>{Xr(Ln)},[ha,ja]=he.useState(""),Fa=Ln=>{const{value:pr}=Ln.target;ja(pr)};he.useEffect(()=>{xi||ja("")},[xi]);const ko=Ln=>{const pr=Ln&&Ln.length?Ln:null;if(pr===null&&(!On||!On.filteredKeys)||(0,Ee.Z)(pr,On==null?void 0:On.filteredKeys,!0))return null;ur({column:Wt,key:hn,filteredKeys:pr})},Va=()=>{hi(!1),ko(Er())},aa=function(){let{confirm:Ln,closeDropdown:pr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ln&&ko([]),pr&&hi(!1),ja(""),Si(Br?(li||[]).map(pa=>String(pa)):[])},ao=function(){let{closeDropdown:Ln}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ln&&hi(!1),ko(Er())},Ba=Ln=>{Ln&&vi!==void 0&&Si(vi||[]),hi(Ln),!Ln&&!Wt.filterDropdown&&Va()},Eo=He()({[`${pn}-menu-without-submenu`]:!ji(Wt.filters||[])}),vo=Ln=>{if(Ln.target.checked){const pr=Ui(Wt==null?void 0:Wt.filters).map(pa=>String(pa));Si(pr)}else Si([])},ts=Ln=>{let{filters:pr}=Ln;return(pr||[]).map((pa,ka)=>{const rs=String(pa.value),Go={title:pa.text,key:pa.value!==void 0?rs:ka};return pa.children&&(Go.children=ts({filters:pa.children})),Go})},Ji=Ln=>{var pr;return Object.assign(Object.assign({},Ln),{text:Ln.title,value:Ln.key,children:((pr=Ln.children)===null||pr===void 0?void 0:pr.map(pa=>Ji(pa)))||[]})};let Wi;if(typeof Wt.filterDropdown=="function")Wi=Wt.filterDropdown({prefixCls:`${pn}-custom`,setSelectedKeys:Ln=>qi({selectedKeys:Ln}),selectedKeys:Er(),confirm:ao,clearFilters:aa,filters:Wt.filters,visible:Ai,close:()=>{hi(!1)}});else if(Wt.filterDropdown)Wi=Wt.filterDropdown;else{const Ln=Er()||[],pr=()=>(Wt.filters||[]).length===0?he.createElement(Ei.Z,{image:Ei.Z.PRESENTED_IMAGE_SIMPLE,description:rr.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Nn==="tree"?he.createElement(he.Fragment,null,he.createElement(no,{filterSearch:$n,value:ha,onChange:Fa,tablePrefixCls:Pt,locale:rr}),he.createElement("div",{className:`${Pt}-filter-dropdown-tree`},un?he.createElement(fo.default,{checked:Ln.length===Ui(Wt.filters).length,indeterminate:Ln.length>0&&Ln.length<Ui(Wt.filters).length,className:`${Pt}-filter-dropdown-checkall`,onChange:vo},rr.filterCheckall):null,he.createElement(va.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:un,checkStrictly:!un,className:`${pn}-menu`,onCheck:Gi,checkedKeys:Ln,selectedKeys:Ln,showIcon:!1,treeData:ts({filters:Wt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:ha.trim()?ka=>typeof $n=="function"?$n(ha,Ji(ka)):ba(ha,ka.title):void 0}))):he.createElement(he.Fragment,null,he.createElement(no,{filterSearch:$n,value:ha,onChange:Fa,tablePrefixCls:Pt,locale:rr}),he.createElement(ta.default,{selectable:!0,multiple:un,prefixCls:`${pn}-menu`,className:Eo,onSelect:qi,onDeselect:qi,selectedKeys:Ln,getPopupContainer:Wr,openKeys:Ri,onOpenChange:fa,items:Co({filters:Wt.filters||[],filterSearch:$n,prefixCls:Ut,filteredKeys:Er(),filterMultiple:un,searchValue:ha})})),pa=()=>Br?(0,Ee.Z)((li||[]).map(ka=>String(ka)),Ln,!0):Ln.length===0;Wi=he.createElement(he.Fragment,null,pr(),he.createElement("div",{className:`${Ut}-dropdown-btns`},he.createElement(Ro.ZP,{type:"link",size:"small",disabled:pa(),onClick:()=>aa()},rr.filterReset),he.createElement(Ro.ZP,{type:"primary",size:"small",onClick:Va},rr.filterConfirm)))}Wt.filterDropdown&&(Wi=he.createElement(Zi.J,{selectable:void 0},Wi));const Vi=()=>he.createElement(Ti,{className:`${Ut}-dropdown`},Wi);let Fi;typeof Wt.filterIcon=="function"?Fi=Wt.filterIcon(ya):Wt.filterIcon?Fi=Wt.filterIcon:Fi=he.createElement(eo,null);const{direction:$a}=he.useContext(So.E_);return he.createElement("div",{className:`${Ut}-column`},he.createElement("span",{className:`${Pt}-column-title`},ir),he.createElement(za.Z,{dropdownRender:Vi,trigger:["click"],open:Ai,onOpenChange:Ba,getPopupContainer:Wr,placement:$a==="rtl"?"bottomLeft":"bottomRight"},he.createElement("span",{role:"button",tabIndex:-1,className:He()(`${Ut}-trigger`,{active:ya}),onClick:Ln=>{Ln.stopPropagation()}},Fi)))}var Xa=fn;function ho($e,Ve,Mt){let Pt=[];return($e||[]).forEach((Ut,Wt)=>{var pn;const hn=Ea(Wt,Mt);if(Ut.filters||"filterDropdown"in Ut||"onFilter"in Ut)if("filteredValue"in Ut){let un=Ut.filteredValue;"filterDropdown"in Ut||(un=(pn=un==null?void 0:un.map(String))!==null&&pn!==void 0?pn:un),Pt.push({column:Ut,key:wa(Ut,hn),filteredKeys:un,forceFiltered:Ut.filtered})}else Pt.push({column:Ut,key:wa(Ut,hn),filteredKeys:Ve&&Ut.defaultFilteredValue?Ut.defaultFilteredValue:void 0,forceFiltered:Ut.filtered});"children"in Ut&&(Pt=[].concat((0,Yn.Z)(Pt),(0,Yn.Z)(ho(Ut.children,Ve,hn))))}),Pt}function El($e,Ve,Mt,Pt,Ut,Wt,pn,hn){return Mt.map((un,Nn)=>{const $n=Ea(Nn,hn),{filterMultiple:On=!0,filterMode:ur,filterSearch:rr}=un;let ir=un;if(ir.filters||ir.filterDropdown){const Wr=wa(ir,$n),Ir=Pt.find(Ur=>{let{key:Br}=Ur;return Wr===Br});ir=Object.assign(Object.assign({},ir),{title:Ur=>he.createElement(Xa,{tablePrefixCls:$e,prefixCls:`${$e}-filter`,dropdownPrefixCls:Ve,column:ir,columnKey:Wr,filterState:Ir,filterMultiple:On,filterMode:ur,filterSearch:rr,triggerFilter:Wt,locale:Ut,getPopupContainer:pn},Sa(un.title,Ur))})}return"children"in ir&&(ir=Object.assign(Object.assign({},ir),{children:El($e,Ve,ir.children,Pt,Ut,Wt,pn,$n)})),ir})}function ys($e){const Ve={};return $e.forEach(Mt=>{let{key:Pt,filteredKeys:Ut,column:Wt}=Mt;const{filters:pn,filterDropdown:hn}=Wt;if(hn)Ve[Pt]=Ut||null;else if(Array.isArray(Ut)){const un=Ui(pn);Ve[Pt]=un.filter(Nn=>Ut.includes(String(Nn)))}else Ve[Pt]=null}),Ve}function Oo($e,Ve){return Ve.reduce((Mt,Pt)=>{const{column:{onFilter:Ut,filters:Wt},filteredKeys:pn}=Pt;return Ut&&pn&&pn.length?Mt.filter(hn=>pn.some(un=>{const Nn=Ui(Wt),$n=Nn.findIndex(ur=>String(ur)===String(un)),On=$n!==-1?Nn[$n]:un;return Ut(On,hn)})):Mt},$e)}const Lo=$e=>$e.flatMap(Ve=>"children"in Ve?[Ve].concat((0,Yn.Z)(Lo(Ve.children||[]))):[Ve]);function As($e){let{prefixCls:Ve,dropdownPrefixCls:Mt,mergedColumns:Pt,onFilterChange:Ut,getPopupContainer:Wt,locale:pn}=$e;const hn=he.useMemo(()=>Lo(Pt||[]),[Pt]),[un,Nn]=he.useState(()=>ho(hn,!0)),$n=he.useMemo(()=>{const ir=ho(hn,!1);if(ir.length===0)return ir;let Wr=!0,Ir=!0;if(ir.forEach(Ur=>{let{filteredKeys:Br}=Ur;Br!==void 0?Wr=!1:Ir=!1}),Wr){const Ur=(hn||[]).map((Br,li)=>wa(Br,Ea(li)));return un.filter(Br=>{let{key:li}=Br;return Ur.includes(li)}).map(Br=>{const li=hn[Ur.findIndex(Pi=>Pi===Br.key)];return Object.assign(Object.assign({},Br),{column:Object.assign(Object.assign({},Br.column),li),forceFiltered:li.filtered})})}return ir},[hn,un]),On=he.useMemo(()=>ys($n),[$n]),ur=ir=>{const Wr=$n.filter(Ir=>{let{key:Ur}=Ir;return Ur!==ir.key});Wr.push(ir),Nn(Wr),Ut(ys(Wr),Wr)};return[ir=>El(Ve,Mt,ir,$n,pn,ur,Wt),$n,On]}var po=As;function es($e,Ve,Mt){const Pt=he.useRef({});function Ut(Wt){if(!Pt.current||Pt.current.data!==$e||Pt.current.childrenColumnName!==Ve||Pt.current.getRowKey!==Mt){let hn=function(un){un.forEach((Nn,$n)=>{const On=Mt(Nn,$n);pn.set(On,Nn),Nn&&typeof Nn=="object"&&Ve in Nn&&hn(Nn[Ve]||[])})};const pn=new Map;hn($e),Pt.current={data:$e,childrenColumnName:Ve,kvMap:pn,getRowKey:Mt}}return Pt.current.kvMap.get(Wt)}return[Ut]}var Gs=ie(50371),al=function($e,Ve){var Mt={};for(var Pt in $e)Object.prototype.hasOwnProperty.call($e,Pt)&&Ve.indexOf(Pt)<0&&(Mt[Pt]=$e[Pt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Pt=Object.getOwnPropertySymbols($e);Ut<Pt.length;Ut++)Ve.indexOf(Pt[Ut])<0&&Object.prototype.propertyIsEnumerable.call($e,Pt[Ut])&&(Mt[Pt[Ut]]=$e[Pt[Ut]]);return Mt};const os=10;function cs($e,Ve){const Mt={current:$e.current,pageSize:$e.pageSize};return Object.keys(Ve&&typeof Ve=="object"?Ve:{}).forEach(Ut=>{const Wt=$e[Ut];typeof Wt!="function"&&(Mt[Ut]=Wt)}),Mt}function lo($e,Ve,Mt){const Pt=Mt&&typeof Mt=="object"?Mt:{},{total:Ut=0}=Pt,Wt=al(Pt,["total"]),[pn,hn]=(0,he.useState)(()=>({current:"defaultCurrent"in Wt?Wt.defaultCurrent:1,pageSize:"defaultPageSize"in Wt?Wt.defaultPageSize:os})),un=(0,Gs.Z)(pn,Wt,{total:Ut>0?Ut:$e}),Nn=Math.ceil((Ut||$e)/un.pageSize);un.current>Nn&&(un.current=Nn||1);const $n=(ur,rr)=>{hn({current:ur!=null?ur:1,pageSize:rr||un.pageSize})},On=(ur,rr)=>{var ir;Mt&&((ir=Mt.onChange)===null||ir===void 0||ir.call(Mt,ur,rr)),$n(ur,rr),Ve(ur,rr||(un==null?void 0:un.pageSize))};return Mt===!1?[{},()=>{}]:[Object.assign(Object.assign({},un),{onChange:On}),$n]}var yl=lo,ln=ie(84105),Ft=ie(35654),st=ie(90782),mr=ie(71430),bi=ie(18929);const Oi={},Qi="SELECT_ALL",$i="SELECT_INVERT",Jr="SELECT_NONE",lr=[],gi=($e,Ve)=>{let Mt=[];return(Ve||[]).forEach(Pt=>{Mt.push(Pt),Pt&&typeof Pt=="object"&&$e in Pt&&(Mt=[].concat((0,Yn.Z)(Mt),(0,Yn.Z)(gi($e,Pt[$e]))))}),Mt};var Fo=($e,Ve)=>{const{preserveSelectedRowKeys:Mt,selectedRowKeys:Pt,defaultSelectedRowKeys:Ut,getCheckboxProps:Wt,onChange:pn,onSelect:hn,onSelectAll:un,onSelectInvert:Nn,onSelectNone:$n,onSelectMultiple:On,columnWidth:ur,type:rr,selections:ir,fixed:Wr,renderCell:Ir,hideSelectAll:Ur,checkStrictly:Br=!0}=Ve||{},{prefixCls:li,data:Pi,pageData:Hi,getRecordByKey:xi,getRowKey:na,expandType:ya,childrenColumnName:hi,locale:Ai,getPopupContainer:vi}=$e,[Er,Si]=(0,bi.Z)(Pt||Ut||lr,{value:Pt}),qi=he.useRef(new Map),Gi=(0,he.useCallback)(Ji=>{if(Mt){const Wi=new Map;Ji.forEach(Vi=>{let Fi=xi(Vi);!Fi&&qi.current.has(Vi)&&(Fi=qi.current.get(Vi)),Wi.set(Vi,Fi)}),qi.current=Wi}},[xi,Mt]);he.useEffect(()=>{Gi(Er)},[Er]);const{keyEntities:Ri}=(0,he.useMemo)(()=>{if(Br)return{keyEntities:null};let Ji=Pi;if(Mt){const Wi=new Set(Pi.map((Fi,$a)=>na(Fi,$a))),Vi=Array.from(qi.current).reduce((Fi,$a)=>{let[Ln,pr]=$a;return Wi.has(Ln)?Fi:Fi.concat(pr)},[]);Ji=[].concat((0,Yn.Z)(Ji),(0,Yn.Z)(Vi))}return(0,mr.I8)(Ji,{externalGetKey:na,childrenPropName:hi})},[Pi,na,Br,hi,Mt]),Xr=(0,he.useMemo)(()=>gi(hi,Hi),[hi,Hi]),fa=(0,he.useMemo)(()=>{const Ji=new Map;return Xr.forEach((Wi,Vi)=>{const Fi=na(Wi,Vi),$a=(Wt?Wt(Wi):null)||{};Ji.set(Fi,$a)}),Ji},[Xr,na,Wt]),ha=(0,he.useCallback)(Ji=>{var Wi;return!!(!((Wi=fa.get(na(Ji)))===null||Wi===void 0)&&Wi.disabled)},[fa,na]),[ja,Fa]=(0,he.useMemo)(()=>{if(Br)return[Er||[],[]];const{checkedKeys:Ji,halfCheckedKeys:Wi}=(0,st.S)(Er,!0,Ri,ha);return[Ji||[],Wi]},[Er,Br,Ri,ha]),ko=(0,he.useMemo)(()=>{const Ji=rr==="radio"?ja.slice(0,1):ja;return new Set(Ji)},[ja,rr]),Va=(0,he.useMemo)(()=>rr==="radio"?new Set:new Set(Fa),[Fa,rr]),[aa,ao]=(0,he.useState)(null);he.useEffect(()=>{Ve||Si(lr)},[!!Ve]);const Ba=(0,he.useCallback)((Ji,Wi)=>{let Vi,Fi;Gi(Ji),Mt?(Vi=Ji,Fi=Ji.map($a=>qi.current.get($a))):(Vi=[],Fi=[],Ji.forEach($a=>{const Ln=xi($a);Ln!==void 0&&(Vi.push($a),Fi.push(Ln))})),Si(Vi),pn==null||pn(Vi,Fi,{type:Wi})},[Si,xi,pn,Mt]),Eo=(0,he.useCallback)((Ji,Wi,Vi,Fi)=>{if(hn){const $a=Vi.map(Ln=>xi(Ln));hn(xi(Ji),Wi,$a,Fi)}Ba(Vi,"single")},[hn,xi,Ba]),vo=(0,he.useMemo)(()=>!ir||Ur?null:(ir===!0?[Qi,$i,Jr]:ir).map(Wi=>Wi===Qi?{key:"all",text:Ai.selectionAll,onSelect(){Ba(Pi.map((Vi,Fi)=>na(Vi,Fi)).filter(Vi=>{const Fi=fa.get(Vi);return!(Fi!=null&&Fi.disabled)||ko.has(Vi)}),"all")}}:Wi===$i?{key:"invert",text:Ai.selectInvert,onSelect(){const Vi=new Set(ko);Hi.forEach(($a,Ln)=>{const pr=na($a,Ln),pa=fa.get(pr);pa!=null&&pa.disabled||(Vi.has(pr)?Vi.delete(pr):Vi.add(pr))});const Fi=Array.from(Vi);Nn&&Nn(Fi),Ba(Fi,"invert")}}:Wi===Jr?{key:"none",text:Ai.selectNone,onSelect(){$n==null||$n(),Ba(Array.from(ko).filter(Vi=>{const Fi=fa.get(Vi);return Fi==null?void 0:Fi.disabled}),"none")}}:Wi).map(Wi=>Object.assign(Object.assign({},Wi),{onSelect:function(){for(var Vi,Fi,$a=arguments.length,Ln=new Array($a),pr=0;pr<$a;pr++)Ln[pr]=arguments[pr];(Fi=Wi.onSelect)===null||Fi===void 0||(Vi=Fi).call.apply(Vi,[Wi].concat(Ln)),ao(null)}})),[ir,ko,Hi,na,Nn,Ba]);return[(0,he.useCallback)(Ji=>{var Wi;if(!Ve)return Ji.filter(Za=>Za!==Oi);let Vi=(0,Yn.Z)(Ji);const Fi=new Set(ko),$a=Xr.map(na).filter(Za=>!fa.get(Za).disabled),Ln=$a.every(Za=>Fi.has(Za)),pr=$a.some(Za=>Fi.has(Za)),pa=()=>{const Za=[];Ln?$a.forEach(Qa=>{Fi.delete(Qa),Za.push(Qa)}):$a.forEach(Qa=>{Fi.has(Qa)||(Fi.add(Qa),Za.push(Qa))});const Nr=Array.from(Fi);un==null||un(!Ln,Nr.map(Qa=>xi(Qa)),Za.map(Qa=>xi(Qa))),Ba(Nr,"all"),ao(null)};let ka;if(rr!=="radio"){let Za;if(vo){const ma={getPopupContainer:vi,items:vo.map((uo,Is)=>{const{key:pl,text:zl,onSelect:el}=uo;return{key:pl!=null?pl:Is,onClick:()=>{el==null||el($a)},label:zl}})};Za=he.createElement("div",{className:`${li}-selection-extra`},he.createElement(za.Z,{menu:ma,getPopupContainer:vi},he.createElement("span",null,he.createElement(ln.Z,null))))}const Nr=Xr.map((ma,uo)=>{const Is=na(ma,uo),pl=fa.get(Is)||{};return Object.assign({checked:Fi.has(Is)},pl)}).filter(ma=>{let{disabled:uo}=ma;return uo}),Qa=!!Nr.length&&Nr.length===Xr.length,ls=Qa&&Nr.every(ma=>{let{checked:uo}=ma;return uo}),ps=Qa&&Nr.some(ma=>{let{checked:uo}=ma;return uo});ka=!Ur&&he.createElement("div",{className:`${li}-selection`},he.createElement(fo.default,{checked:Qa?ls:!!Xr.length&&Ln,indeterminate:Qa?!ls&&ps:!Ln&&pr,onChange:pa,disabled:Xr.length===0||Qa,"aria-label":Za?"Custom selection":"Select all",skipGroup:!0}),Za)}let rs;rr==="radio"?rs=(Za,Nr,Qa)=>{const ls=na(Nr,Qa),ps=Fi.has(ls);return{node:he.createElement(Ci.ZP,Object.assign({},fa.get(ls),{checked:ps,onClick:ma=>ma.stopPropagation(),onChange:ma=>{Fi.has(ls)||Eo(ls,!0,[ls],ma.nativeEvent)}})),checked:ps}}:rs=(Za,Nr,Qa)=>{var ls;const ps=na(Nr,Qa),ma=Fi.has(ps),uo=Va.has(ps),Is=fa.get(ps);let pl;return ya==="nest"?pl=uo:pl=(ls=Is==null?void 0:Is.indeterminate)!==null&&ls!==void 0?ls:uo,{node:he.createElement(fo.default,Object.assign({},Is,{indeterminate:pl,checked:ma,skipGroup:!0,onClick:zl=>zl.stopPropagation(),onChange:zl=>{let{nativeEvent:el}=zl;const{shiftKey:Rs}=el;let Nl=-1,Fs=-1;if(Rs&&Br){const tl=new Set([aa,ps]);$a.some((Hs,zo)=>{if(tl.has(Hs))if(Nl===-1)Nl=zo;else return Fs=zo,!0;return!1})}if(Fs!==-1&&Nl!==Fs&&Br){const tl=$a.slice(Nl,Fs+1),Hs=[];ma?tl.forEach(jo=>{Fi.has(jo)&&(Hs.push(jo),Fi.delete(jo))}):tl.forEach(jo=>{Fi.has(jo)||(Hs.push(jo),Fi.add(jo))});const zo=Array.from(Fi);On==null||On(!ma,zo.map(jo=>xi(jo)),Hs.map(jo=>xi(jo))),Ba(zo,"multiple")}else{const tl=ja;if(Br){const Hs=ma?(0,Ft._5)(tl,ps):(0,Ft.L0)(tl,ps);Eo(ps,!ma,Hs,el)}else{const Hs=(0,st.S)([].concat((0,Yn.Z)(tl),[ps]),!0,Ri,ha),{checkedKeys:zo,halfCheckedKeys:jo}=Hs;let Qs=zo;if(ma){const Ul=new Set(zo);Ul.delete(ps),Qs=(0,st.S)(Array.from(Ul),{checked:!1,halfCheckedKeys:jo},Ri,ha).checkedKeys}Eo(ps,!ma,Qs,el)}}ao(ma?null:ps)}})),checked:ma}};const Go=(Za,Nr,Qa)=>{const{node:ls,checked:ps}=rs(Za,Nr,Qa);return Ir?Ir(ps,Nr,Qa,ls):ls};if(!Vi.includes(Oi))if(Vi.findIndex(Za=>{var Nr;return((Nr=Za[Vn])===null||Nr===void 0?void 0:Nr.columnType)==="EXPAND_COLUMN"})===0){const[Za,...Nr]=Vi;Vi=[Za,Oi].concat((0,Yn.Z)(Nr))}else Vi=[Oi].concat((0,Yn.Z)(Vi));const Zs=Vi.indexOf(Oi);Vi=Vi.filter((Za,Nr)=>Za!==Oi||Nr===Zs);const ns=Vi[Zs-1],kl=Vi[Zs+1];let is=Wr;is===void 0&&((kl==null?void 0:kl.fixed)!==void 0?is=kl.fixed:(ns==null?void 0:ns.fixed)!==void 0&&(is=ns.fixed)),is&&ns&&((Wi=ns[Vn])===null||Wi===void 0?void 0:Wi.columnType)==="EXPAND_COLUMN"&&ns.fixed===void 0&&(ns.fixed=is);const Ds=He()(`${li}-selection-col`,{[`${li}-selection-col-with-dropdown`]:ir&&rr==="checkbox"}),Wl={fixed:is,width:ur,className:`${li}-selection-column`,title:Ve.columnTitle||ka,render:Go,onCell:Ve.onCell,[Vn]:{className:Ds}};return Vi.map(Za=>Za===Oi?Wl:Za)},[na,Xr,Ve,ja,ko,Va,ur,vo,ya,aa,fa,On,Eo,ha]),ko]},ca=ie(89489),Pa=ie(59477),$o=ie(6848);const Uo="ascend",bs="descend";function ds($e){return typeof $e.sorter=="object"&&typeof $e.sorter.multiple=="number"?$e.sorter.multiple:!1}function io($e){return typeof $e=="function"?$e:$e&&typeof $e=="object"&&$e.compare?$e.compare:!1}function fs($e,Ve){return Ve?$e[$e.indexOf(Ve)+1]:$e[0]}function No($e,Ve,Mt){let Pt=[];function Ut(Wt,pn){Pt.push({column:Wt,key:wa(Wt,pn),multiplePriority:ds(Wt),sortOrder:Wt.sortOrder})}return($e||[]).forEach((Wt,pn)=>{const hn=Ea(pn,Mt);Wt.children?("sortOrder"in Wt&&Ut(Wt,hn),Pt=[].concat((0,Yn.Z)(Pt),(0,Yn.Z)(No(Wt.children,Ve,hn)))):Wt.sorter&&("sortOrder"in Wt?Ut(Wt,hn):Ve&&Wt.defaultSortOrder&&Pt.push({column:Wt,key:wa(Wt,hn),multiplePriority:ds(Wt),sortOrder:Wt.defaultSortOrder}))}),Pt}function Ra($e,Ve,Mt,Pt,Ut,Wt,pn,hn){return(Ve||[]).map((un,Nn)=>{const $n=Ea(Nn,hn);let On=un;if(On.sorter){const ur=On.sortDirections||Ut,rr=On.showSorterTooltip===void 0?pn:On.showSorterTooltip,ir=wa(On,$n),Wr=Mt.find(ya=>{let{key:hi}=ya;return hi===ir}),Ir=Wr?Wr.sortOrder:null,Ur=fs(ur,Ir);let Br;if(un.sortIcon)Br=un.sortIcon({sortOrder:Ir});else{const ya=ur.includes(Uo)&&he.createElement(Pa.Z,{className:He()(`${$e}-column-sorter-up`,{active:Ir===Uo})}),hi=ur.includes(bs)&&he.createElement(ca.Z,{className:He()(`${$e}-column-sorter-down`,{active:Ir===bs})});Br=he.createElement("span",{className:He()(`${$e}-column-sorter`,{[`${$e}-column-sorter-full`]:!!(ya&&hi)})},he.createElement("span",{className:`${$e}-column-sorter-inner`,"aria-hidden":"true"},ya,hi))}const{cancelSort:li,triggerAsc:Pi,triggerDesc:Hi}=Wt||{};let xi=li;Ur===bs?xi=Hi:Ur===Uo&&(xi=Pi);const na=typeof rr=="object"?rr:{title:xi};On=Object.assign(Object.assign({},On),{className:He()(On.className,{[`${$e}-column-sort`]:Ir}),title:ya=>{const hi=he.createElement("div",{className:`${$e}-column-sorters`},he.createElement("span",{className:`${$e}-column-title`},Sa(un.title,ya)),Br);return rr?he.createElement($o.Z,Object.assign({},na),hi):hi},onHeaderCell:ya=>{const hi=un.onHeaderCell&&un.onHeaderCell(ya)||{},Ai=hi.onClick,vi=hi.onKeyDown;hi.onClick=qi=>{Pt({column:un,key:ir,sortOrder:Ur,multiplePriority:ds(un)}),Ai==null||Ai(qi)},hi.onKeyDown=qi=>{qi.keyCode===xn.Z.ENTER&&(Pt({column:un,key:ir,sortOrder:Ur,multiplePriority:ds(un)}),vi==null||vi(qi))};const Er=Aa(un.title,{}),Si=Er==null?void 0:Er.toString();return Ir?hi["aria-sort"]=Ir==="ascend"?"ascending":"descending":hi["aria-label"]=Si||"",hi.className=He()(hi.className,`${$e}-column-has-sorters`),hi.tabIndex=0,un.ellipsis&&(hi.title=(Er!=null?Er:"").toString()),hi}})}return"children"in On&&(On=Object.assign(Object.assign({},On),{children:Ra($e,On.children,Mt,Pt,Ut,Wt,pn,$n)})),On})}function wo($e){const{column:Ve,sortOrder:Mt}=$e;return{column:Ve,order:Mt,field:Ve.dataIndex,columnKey:Ve.key}}function Os($e){const Ve=$e.filter(Mt=>{let{sortOrder:Pt}=Mt;return Pt}).map(wo);return Ve.length===0&&$e.length?Object.assign(Object.assign({},wo($e[$e.length-1])),{column:void 0}):Ve.length<=1?Ve[0]||{}:Ve}function Mi($e,Ve,Mt){const Pt=Ve.slice().sort((pn,hn)=>hn.multiplePriority-pn.multiplePriority),Ut=$e.slice(),Wt=Pt.filter(pn=>{let{column:{sorter:hn},sortOrder:un}=pn;return io(hn)&&un});return Wt.length?Ut.sort((pn,hn)=>{for(let un=0;un<Wt.length;un+=1){const Nn=Wt[un],{column:{sorter:$n},sortOrder:On}=Nn,ur=io($n);if(ur&&On){const rr=ur(pn,hn,On);if(rr!==0)return On===Uo?rr:-rr}}return 0}).map(pn=>{const hn=pn[Mt];return hn?Object.assign(Object.assign({},pn),{[Mt]:Mi(hn,Ve,Mt)}):pn}):Ut}function Bi($e){let{prefixCls:Ve,mergedColumns:Mt,onSorterChange:Pt,sortDirections:Ut,tableLocale:Wt,showSorterTooltip:pn}=$e;const[hn,un]=he.useState(No(Mt,!0)),Nn=he.useMemo(()=>{let ir=!0;const Wr=No(Mt,!1);if(!Wr.length)return hn;const Ir=[];function Ur(li){ir?Ir.push(li):Ir.push(Object.assign(Object.assign({},li),{sortOrder:null}))}let Br=null;return Wr.forEach(li=>{Br===null?(Ur(li),li.sortOrder&&(li.multiplePriority===!1?ir=!1:Br=!0)):(Br&&li.multiplePriority!==!1||(ir=!1),Ur(li))}),Ir},[Mt,hn]),$n=he.useMemo(()=>{const ir=Nn.map(Wr=>{let{column:Ir,sortOrder:Ur}=Wr;return{column:Ir,order:Ur}});return{sortColumns:ir,sortColumn:ir[0]&&ir[0].column,sortOrder:ir[0]&&ir[0].order}},[Nn]);function On(ir){let Wr;ir.multiplePriority===!1||!Nn.length||Nn[0].multiplePriority===!1?Wr=[ir]:Wr=[].concat((0,Yn.Z)(Nn.filter(Ir=>{let{key:Ur}=Ir;return Ur!==ir.key})),[ir]),un(Wr),Pt(Os(Wr),Wr)}return[ir=>Ra(Ve,ir,Nn,On,Ut,Wt,pn),Nn,$n,()=>Os(Nn)]}function ua($e,Ve){return $e.map(Mt=>{const Pt=Object.assign({},Mt);return Pt.title=Sa(Mt.title,Ve),"children"in Pt&&(Pt.children=ua(Pt.children,Ve)),Pt})}function Ca($e){return[he.useCallback(Mt=>ua(Mt,$e),[$e])]}var Ta=di(($e,Ve)=>{const{_renderTimes:Mt}=$e,{_renderTimes:Pt}=Ve;return Mt!==Pt}),_o=si(($e,Ve)=>{const{_renderTimes:Mt}=$e,{_renderTimes:Pt}=Ve;return Mt!==Pt}),Mo=ie(64993),To=ie(17313),qs=ie(83116),Ya=ie(37613),_s=$e=>{const{componentCls:Ve}=$e,Mt=`${$e.lineWidth}px ${$e.lineType} ${$e.tableBorderColor}`,Pt=(Ut,Wt,pn)=>({[`&${Ve}-${Ut}`]:{[`> ${Ve}-container`]:{[`> ${Ve}-content, > ${Ve}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ve}-expanded-row-fixed`]:{margin:`-${Wt}px -${pn+$e.lineWidth}px`}}}}}});return{[`${Ve}-wrapper`]:{[`${Ve}${Ve}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ve}-title`]:{border:Mt,borderBottom:0},[`> ${Ve}-container`]:{borderInlineStart:Mt,borderTop:Mt,[`
|
|
|
> ${Ve}-content,
|
|
|
> ${Ve}-header,
|
|
|
> ${Ve}-body,
|
|
|
> ${Ve}-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:Mt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Mt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ve}-cell-fix-right-first::after`]:{borderInlineEnd:Mt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ve}-expanded-row-fixed`]:{margin:`-${$e.tablePaddingVertical}px -${$e.tablePaddingHorizontal+$e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:$e.lineWidth,bottom:0,borderInlineEnd:Mt,content:'""'}}}}}},[`&${Ve}-scroll-horizontal`]:{[`> ${Ve}-container > ${Ve}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Ve}-expanded-row,
|
|
|
> tr${Ve}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Pt("middle",$e.tablePaddingVerticalMiddle,$e.tablePaddingHorizontalMiddle)),Pt("small",$e.tablePaddingVerticalSmall,$e.tablePaddingHorizontalSmall)),{[`> ${Ve}-footer`]:{border:Mt,borderTop:0}}),[`${Ve}-cell`]:{[`${Ve}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${$e.lineWidth}px 0 ${$e.lineWidth}px ${$e.tableHeaderBg}`}},[`${Ve}-bordered ${Ve}-cell-scrollbar`]:{borderInlineEnd:Mt}}}},du=$e=>{const{componentCls:Ve}=$e;return{[`${Ve}-wrapper`]:{[`${Ve}-cell-ellipsis`]:Object.assign(Object.assign({},To.vS),{wordBreak:"keep-all",[`
|
|
|
&${Ve}-cell-fix-left-last,
|
|
|
&${Ve}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Ve}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ve}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},da=$e=>{const{componentCls:Ve}=$e;return{[`${Ve}-wrapper`]:{[`${Ve}-tbody > tr${Ve}-placeholder`]:{textAlign:"center",color:$e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:$e.colorBgContainer}}}}},fu=ie(15969),Cu=$e=>{const{componentCls:Ve,antCls:Mt,controlInteractiveSize:Pt,motionDurationSlow:Ut,lineWidth:Wt,paddingXS:pn,lineType:hn,tableBorderColor:un,tableExpandIconBg:Nn,tableExpandColumnWidth:$n,borderRadius:On,fontSize:ur,fontSizeSM:rr,lineHeight:ir,tablePaddingVertical:Wr,tablePaddingHorizontal:Ir,tableExpandedRowBg:Ur,paddingXXS:Br}=$e,li=Pt/2-Wt,Pi=li*2+Wt*3,Hi=`${Wt}px ${hn} ${un}`,xi=Br-Wt;return{[`${Ve}-wrapper`]:{[`${Ve}-expand-icon-col`]:{width:$n},[`${Ve}-row-expand-icon-cell`]:{textAlign:"center",[`${Ve}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ve}-row-indent`]:{height:1,float:"left"},[`${Ve}-row-expand-icon`]:Object.assign(Object.assign({},(0,fu.N)($e)),{position:"relative",float:"left",boxSizing:"border-box",width:Pi,height:Pi,padding:0,color:"inherit",lineHeight:`${Pi}px`,background:Nn,border:Hi,borderRadius:On,transform:`scale(${Pt/Pi})`,transition:`all ${Ut}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Ut} ease-out`,content:'""'},"&::before":{top:li,insetInlineEnd:xi,insetInlineStart:xi,height:Wt},"&::after":{top:xi,bottom:xi,insetInlineStart:li,width:Wt,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"}}),[`${Ve}-row-indent + ${Ve}-row-expand-icon`]:{marginTop:(ur*ir-Wt*3)/2-Math.ceil((rr*1.4-Wt*3)/2),marginInlineEnd:pn},[`tr${Ve}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Ur}},[`${Mt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ve}-expanded-row-fixed`]:{position:"relative",margin:`-${Wr}px -${Ir}px`,padding:`${Wr}px ${Ir}px`}}}},wu=$e=>{const{componentCls:Ve,antCls:Mt,iconCls:Pt,tableFilterDropdownWidth:Ut,tableFilterDropdownSearchWidth:Wt,paddingXXS:pn,paddingXS:hn,colorText:un,lineWidth:Nn,lineType:$n,tableBorderColor:On,tableHeaderIconColor:ur,fontSizeSM:rr,tablePaddingHorizontal:ir,borderRadius:Wr,motionDurationSlow:Ir,colorTextDescription:Ur,colorPrimary:Br,tableHeaderFilterActiveBg:li,colorTextDisabled:Pi,tableFilterDropdownBg:Hi,tableFilterDropdownHeight:xi,controlItemBgHover:na,controlItemBgActive:ya,boxShadowSecondary:hi,filterDropdownMenuBg:Ai}=$e,vi=`${Mt}-dropdown`,Er=`${Ve}-filter-dropdown`,Si=`${Mt}-tree`,qi=`${Nn}px ${$n} ${On}`;return[{[`${Ve}-wrapper`]:{[`${Ve}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ve}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-pn,marginInline:`${pn}px ${-ir/2}px`,padding:`0 ${pn}px`,color:ur,fontSize:rr,borderRadius:Wr,cursor:"pointer",transition:`all ${Ir}`,"&:hover":{color:Ur,background:li},"&.active":{color:Br}}}},{[`${Mt}-dropdown`]:{[Er]:Object.assign(Object.assign({},(0,To.Wf)($e)),{minWidth:Ut,backgroundColor:Hi,borderRadius:Wr,boxShadow:hi,overflow:"hidden",[`${vi}-menu`]:{maxHeight:xi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Ai,"&:empty::after":{display:"block",padding:`${hn}px 0`,color:Pi,fontSize:rr,textAlign:"center",content:'"Not Found"'}},[`${Er}-tree`]:{paddingBlock:`${hn}px 0`,paddingInline:hn,[Si]:{padding:0},[`${Si}-treenode ${Si}-node-content-wrapper:hover`]:{backgroundColor:na},[`${Si}-treenode-checkbox-checked ${Si}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:ya}}},[`${Er}-search`]:{padding:hn,borderBottom:qi,"&-input":{input:{minWidth:Wt},[Pt]:{color:Pi}}},[`${Er}-checkall`]:{width:"100%",marginBottom:pn,marginInlineStart:pn},[`${Er}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${hn-Nn}px ${hn}px`,overflow:"hidden",borderTop:qi}})}},{[`${Mt}-dropdown ${Er}, ${Er}-submenu`]:{[`${Mt}-checkbox-wrapper + span`]:{paddingInlineStart:hn,color:un},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Pl=$e=>{const{componentCls:Ve,lineWidth:Mt,colorSplit:Pt,motionDurationSlow:Ut,zIndexTableFixed:Wt,tableBg:pn,zIndexTableSticky:hn}=$e,un=Pt;return{[`${Ve}-wrapper`]:{[`
|
|
|
${Ve}-cell-fix-left,
|
|
|
${Ve}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Wt,background:pn},[`
|
|
|
${Ve}-cell-fix-left-first::after,
|
|
|
${Ve}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Mt,width:30,transform:"translateX(100%)",transition:`box-shadow ${Ut}`,content:'""',pointerEvents:"none"},[`${Ve}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Ve}-cell-fix-right-first::after,
|
|
|
${Ve}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Mt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Ut}`,content:'""',pointerEvents:"none"},[`${Ve}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:hn+1,width:30,transition:`box-shadow ${Ut}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ve}-ping-left`]:{[`&:not(${Ve}-has-fix-left) ${Ve}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${un}`}},[`
|
|
|
${Ve}-cell-fix-left-first::after,
|
|
|
${Ve}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${un}`},[`${Ve}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ve}-ping-right`]:{[`&:not(${Ve}-has-fix-right) ${Ve}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${un}`}},[`
|
|
|
${Ve}-cell-fix-right-first::after,
|
|
|
${Ve}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${un}`}}}}},Rl=$e=>{const{componentCls:Ve,antCls:Mt}=$e;return{[`${Ve}-wrapper`]:{[`${Ve}-pagination${Mt}-pagination`]:{margin:`${$e.margin}px 0`},[`${Ve}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:$e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ol=$e=>{const{componentCls:Ve,tableRadius:Mt}=$e;return{[`${Ve}-wrapper`]:{[Ve]:{[`${Ve}-title, ${Ve}-header`]:{borderRadius:`${Mt}px ${Mt}px 0 0`},[`${Ve}-title + ${Ve}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ve}-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:Mt,borderStartEndRadius:Mt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Mt},"> *:last-child":{borderStartEndRadius:Mt}}},"&-footer":{borderRadius:`0 0 ${Mt}px ${Mt}px`}}}}},tu=$e=>{const{componentCls:Ve}=$e;return{[`${Ve}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ve}-pagination-left`]:{justifyContent:"flex-end"},[`${Ve}-pagination-right`]:{justifyContent:"flex-start"},[`${Ve}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ve}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ve}-row-indent`]:{float:"right"}}}}},Mu=$e=>{const{componentCls:Ve,antCls:Mt,iconCls:Pt,fontSizeIcon:Ut,padding:Wt,paddingXS:pn,tableHeaderIconColor:hn,tableHeaderIconColorHover:un,tableSelectionColumnWidth:Nn}=$e;return{[`${Ve}-wrapper`]:{[`${Ve}-selection-col`]:{width:Nn,[`&${Ve}-selection-col-with-dropdown`]:{width:Nn+Ut+Wt/4}},[`${Ve}-bordered ${Ve}-selection-col`]:{width:Nn+pn*2,[`&${Ve}-selection-col-with-dropdown`]:{width:Nn+Ut+Wt/4+pn*2}},[`
|
|
|
table tr th${Ve}-selection-column,
|
|
|
table tr td${Ve}-selection-column
|
|
|
`]:{paddingInlineEnd:$e.paddingXS,paddingInlineStart:$e.paddingXS,textAlign:"center",[`${Mt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ve}-selection-column${Ve}-cell-fix-left`]:{zIndex:$e.zIndexTableFixed+1},[`table tr th${Ve}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ve}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ve}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${$e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${$e.tablePaddingHorizontal/4}px`,[Pt]:{color:hn,fontSize:Ut,verticalAlign:"baseline","&:hover":{color:un}}}}}},xs=$e=>{const{componentCls:Ve}=$e,Mt=(Pt,Ut,Wt,pn)=>({[`${Ve}${Ve}-${Pt}`]:{fontSize:pn,[`
|
|
|
${Ve}-title,
|
|
|
${Ve}-footer,
|
|
|
${Ve}-cell,
|
|
|
${Ve}-thead > tr > th,
|
|
|
${Ve}-tbody > tr > th,
|
|
|
${Ve}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Ut}px ${Wt}px`},[`${Ve}-filter-trigger`]:{marginInlineEnd:`-${Wt/2}px`},[`${Ve}-expanded-row-fixed`]:{margin:`-${Ut}px -${Wt}px`},[`${Ve}-tbody`]:{[`${Ve}-wrapper:only-child ${Ve}`]:{marginBlock:`-${Ut}px`,marginInline:`${$e.tableExpandColumnWidth-Wt}px -${Wt}px`}},[`${Ve}-selection-column`]:{paddingInlineStart:`${Wt/4}px`}}});return{[`${Ve}-wrapper`]:Object.assign(Object.assign({},Mt("middle",$e.tablePaddingVerticalMiddle,$e.tablePaddingHorizontalMiddle,$e.tableFontSizeMiddle)),Mt("small",$e.tablePaddingVerticalSmall,$e.tablePaddingHorizontalSmall,$e.tableFontSizeSmall))}},Ps=$e=>{const{componentCls:Ve,marginXXS:Mt,fontSizeIcon:Pt,tableHeaderIconColor:Ut,tableHeaderIconColorHover:Wt}=$e;return{[`${Ve}-wrapper`]:{[`${Ve}-thead th${Ve}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${$e.motionDurationSlow}`,"&:hover":{background:$e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:$e.colorPrimary},[`
|
|
|
&${Ve}-cell-fix-left:hover,
|
|
|
&${Ve}-cell-fix-right:hover
|
|
|
`]:{background:$e.tableFixedHeaderSortActiveBg}},[`${Ve}-thead th${Ve}-column-sort`]:{background:$e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ve}-column-sort`]:{background:$e.tableBodySortBg},[`${Ve}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ve}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ve}-column-sorter`]:{marginInlineStart:Mt,color:Ut,fontSize:0,transition:`color ${$e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Pt,"&.active":{color:$e.colorPrimary}},[`${Ve}-column-sorter-up + ${Ve}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ve}-column-sorters:hover ${Ve}-column-sorter`]:{color:Wt}}}},bl=$e=>{const{componentCls:Ve,opacityLoading:Mt,tableScrollThumbBg:Pt,tableScrollThumbBgHover:Ut,tableScrollThumbSize:Wt,tableScrollBg:pn,zIndexTableSticky:hn,stickyScrollBarBorderRadius:un}=$e,Nn=`${$e.lineWidth}px ${$e.lineType} ${$e.tableBorderColor}`;return{[`${Ve}-wrapper`]:{[`${Ve}-sticky`]:{"&-holder":{position:"sticky",zIndex:hn,background:$e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Wt}px !important`,zIndex:hn,display:"flex",alignItems:"center",background:pn,borderTop:Nn,opacity:Mt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Wt,backgroundColor:Pt,borderRadius:un,transition:`all ${$e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Ut}}}}}}},xa=$e=>{const{componentCls:Ve,lineWidth:Mt,tableBorderColor:Pt}=$e,Ut=`${Mt}px ${$e.lineType} ${Pt}`;return{[`${Ve}-wrapper`]:{[`${Ve}-summary`]:{position:"relative",zIndex:$e.zIndexTableFixed,background:$e.tableBg,"> tr":{"> th, > td":{borderBottom:Ut}}},[`div${Ve}-summary`]:{boxShadow:`0 -${Mt}px 0 ${Pt}`}}}},Ss=$e=>{const{componentCls:Ve}=$e,Mt=`${$e.lineWidth}px ${$e.lineType} ${$e.tableBorderColor}`,Pt=`${Ve}-expanded-row-cell`;return{[`${Ve}-wrapper`]:{[`${Ve}-tbody-virtual`]:{[`${Ve}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ve}-cell`]:{borderBottom:Mt},[`${Ve}-expanded-row`]:{[`${Pt}${Pt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${$e.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ve}-bordered`]:{[`${Ve}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Mt,position:"absolute"},[`${Ve}-cell`]:{borderInlineEnd:Mt,[`&${Ve}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-$e.lineWidth,borderInlineStart:Mt}}}}}}};const ss=$e=>{const{componentCls:Ve,fontWeightStrong:Mt,tablePaddingVertical:Pt,tablePaddingHorizontal:Ut,lineWidth:Wt,lineType:pn,tableBorderColor:hn,tableFontSize:un,tableBg:Nn,tableRadius:$n,tableHeaderTextColor:On,motionDurationMid:ur,tableHeaderBg:rr,tableHeaderCellSplitColor:ir,tableRowHoverBg:Wr,tableSelectedRowBg:Ir,tableSelectedRowHoverBg:Ur,tableFooterTextColor:Br,tableFooterBg:li,paddingContentVerticalLG:Pi}=$e,Hi=`${Wt}px ${pn} ${hn}`;return{[`${Ve}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,To.dF)()),{[Ve]:Object.assign(Object.assign({},(0,To.Wf)($e)),{fontSize:un,background:Nn,borderRadius:`${$n}px ${$n}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${$n}px ${$n}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Ve}-cell,
|
|
|
${Ve}-thead > tr > th,
|
|
|
${Ve}-tbody > tr > th,
|
|
|
${Ve}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Pi}px ${Ut}px`,overflowWrap:"break-word"},[`${Ve}-title`]:{padding:`${Pt}px ${Ut}px`},[`${Ve}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:On,fontWeight:Mt,textAlign:"start",background:rr,borderBottom:Hi,transition:`background ${ur} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ve}-selection-column):not(${Ve}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ir,transform:"translateY(-50%)",transition:`background-color ${ur}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ve}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${ur}, border-color ${ur}`,borderBottom:Hi,[`
|
|
|
> ${Ve}-wrapper:only-child,
|
|
|
> ${Ve}-expanded-row-fixed > ${Ve}-wrapper:only-child
|
|
|
`]:{[Ve]:{marginBlock:`-${Pt}px`,marginInline:`${$e.tableExpandColumnWidth-Ut}px -${Ut}px`,[`${Ve}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:On,fontWeight:Mt,textAlign:"start",background:rr,borderBottom:Hi,transition:`background ${ur} ease`},[`
|
|
|
&${Ve}-row:hover > th,
|
|
|
&${Ve}-row:hover > td,
|
|
|
> th${Ve}-cell-row-hover,
|
|
|
> td${Ve}-cell-row-hover
|
|
|
`]:{background:Wr},[`&${Ve}-row-selected`]:{"> th, > td":{background:Ir},"&:hover > th, &:hover > td":{background:Ur}}}},[`${Ve}-footer`]:{padding:`${Pt}px ${Ut}px`,color:Br,background:li}})}};var Ys=(0,qs.Z)("Table",$e=>{const{colorTextHeading:Ve,colorSplit:Mt,colorIcon:Pt,colorIconHover:Ut,opacityLoading:Wt,colorBgContainer:pn,controlInteractiveSize:hn,headerBg:un,headerColor:Nn,headerSortActiveBg:$n,headerSortHoverBg:On,bodySortBg:ur,rowHoverBg:rr,rowSelectedBg:ir,rowSelectedHoverBg:Wr,rowExpandedBg:Ir,cellPaddingBlock:Ur,cellPaddingInline:Br,cellPaddingBlockMD:li,cellPaddingInlineMD:Pi,cellPaddingBlockSM:Hi,cellPaddingInlineSM:xi,borderColor:na,footerBg:ya,footerColor:hi,headerBorderRadius:Ai,cellFontSize:vi,cellFontSizeMD:Er,cellFontSizeSM:Si,headerSplitColor:qi,fixedHeaderSortActiveBg:Gi,headerFilterHoverBg:Ri,filterDropdownBg:Xr,expandIconBg:fa,selectionColumnWidth:ha,stickyScrollBarBg:ja}=$e,Fa=new Mo.C(Pt),ko=new Mo.C(Ut),Va=2,aa=(0,Ya.TS)($e,{tableFontSize:vi,tableBg:pn,tableRadius:Ai,tablePaddingVertical:Ur,tablePaddingHorizontal:Br,tablePaddingVerticalMiddle:li,tablePaddingHorizontalMiddle:Pi,tablePaddingVerticalSmall:Hi,tablePaddingHorizontalSmall:xi,tableBorderColor:na,tableHeaderTextColor:Nn,tableHeaderBg:un,tableFooterTextColor:hi,tableFooterBg:ya,tableHeaderCellSplitColor:qi,tableHeaderSortBg:$n,tableHeaderSortHoverBg:On,tableHeaderIconColor:Fa.clone().setAlpha(Fa.getAlpha()*Wt).toRgbString(),tableHeaderIconColorHover:ko.clone().setAlpha(ko.getAlpha()*Wt).toRgbString(),tableBodySortBg:ur,tableFixedHeaderSortActiveBg:Gi,tableHeaderFilterActiveBg:Ri,tableFilterDropdownBg:Xr,tableRowHoverBg:rr,tableSelectedRowBg:ir,tableSelectedRowHoverBg:Wr,zIndexTableFixed:Va,zIndexTableSticky:Va+1,tableFontSizeMiddle:Er,tableFontSizeSmall:Si,tableSelectionColumnWidth:ha,tableExpandIconBg:fa,tableExpandColumnWidth:hn+2*$e.padding,tableExpandedRowBg:Ir,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ja,tableScrollThumbBgHover:Ve,tableScrollBg:Mt});return[ss(aa),Rl(aa),xa(aa),Ps(aa),wu(aa),_s(aa),ol(aa),Cu(aa),xa(aa),da(aa),Mu(aa),Pl(aa),bl(aa),du(aa),xs(aa),tu(aa),Ss(aa)]},$e=>{const{colorFillAlter:Ve,colorBgContainer:Mt,colorTextHeading:Pt,colorFillSecondary:Ut,colorFillContent:Wt,controlItemBgActive:pn,controlItemBgActiveHover:hn,padding:un,paddingSM:Nn,paddingXS:$n,colorBorderSecondary:On,borderRadiusLG:ur,fontSize:rr,controlHeight:ir,colorTextPlaceholder:Wr}=$e,Ir=new Mo.C(Ut).onBackground(Mt).toHexShortString(),Ur=new Mo.C(Wt).onBackground(Mt).toHexShortString(),Br=new Mo.C(Ve).onBackground(Mt).toHexShortString();return{headerBg:Br,headerColor:Pt,headerSortActiveBg:Ir,headerSortHoverBg:Ur,bodySortBg:Br,rowHoverBg:Br,rowSelectedBg:pn,rowSelectedHoverBg:hn,rowExpandedBg:Ve,cellPaddingBlock:un,cellPaddingInline:un,cellPaddingBlockMD:Nn,cellPaddingInlineMD:$n,cellPaddingBlockSM:$n,cellPaddingInlineSM:$n,borderColor:On,headerBorderRadius:ur,footerBg:Br,footerColor:Pt,cellFontSize:rr,cellFontSizeMD:rr,cellFontSizeSM:rr,headerSplitColor:On,fixedHeaderSortActiveBg:Ir,headerFilterHoverBg:Wt,filterDropdownMenuBg:Mt,filterDropdownBg:Mt,expandIconBg:Mt,selectionColumnWidth:ir,stickyScrollBarBg:Wr,stickyScrollBarBorderRadius:100}});const Fu=[],zu=($e,Ve)=>{const{prefixCls:Mt,className:Pt,rootClassName:Ut,style:Wt,size:pn,bordered:hn,dropdownPrefixCls:un,dataSource:Nn,pagination:$n,rowSelection:On,rowKey:ur="key",rowClassName:rr,columns:ir,children:Wr,childrenColumnName:Ir,onChange:Ur,getPopupContainer:Br,loading:li,expandIcon:Pi,expandable:Hi,expandedRowRender:xi,expandIconColumnIndex:na,indentSize:ya,scroll:hi,sortDirections:Ai,locale:vi,showSorterTooltip:Er=!0,virtual:Si}=$e,qi=he.useMemo(()=>ir||Ke(Wr),[ir,Wr]),Gi=he.useMemo(()=>qi.some(Ha=>Ha.responsive),[qi]),Ri=(0,Oa.Z)(Gi),Xr=he.useMemo(()=>{const Ha=new Set(Object.keys(Ri).filter(yo=>Ri[yo]));return qi.filter(yo=>!yo.responsive||yo.responsive.some(Cs=>Ha.has(Cs)))},[qi,Ri]),fa=(0,Ii.Z)($e,["className","style","columns"]),{locale:ha=Ma.Z,direction:ja,table:Fa,renderEmpty:ko,getPrefixCls:Va,getPopupContainer:aa}=he.useContext(So.E_),ao=(0,la.Z)(pn),Ba=Object.assign(Object.assign({},ha.Table),vi),Eo=Nn||Fu,vo=Va("table",Mt),ts=Va("dropdown",un),Ji=Object.assign({childrenColumnName:Ir,expandIconColumnIndex:na},Hi),{childrenColumnName:Wi="children"}=Ji,Vi=he.useMemo(()=>Eo.some(Ha=>Ha==null?void 0:Ha[Wi])?"nest":xi||Hi&&Hi.expandedRowRender?"row":null,[Eo]),Fi={body:he.useRef()},$a=he.useMemo(()=>typeof ur=="function"?ur:Ha=>Ha==null?void 0:Ha[ur],[ur]),[Ln]=es(Eo,Wi,$a),pr={},pa=function(Ha,yo){let Cs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var bo,ws,zs;const sl=Object.assign(Object.assign({},pr),Ha);Cs&&((bo=pr.resetPagination)===null||bo===void 0||bo.call(pr),!((ws=sl.pagination)===null||ws===void 0)&&ws.current&&(sl.pagination.current=1),$n&&$n.onChange&&$n.onChange(1,(zs=sl.pagination)===null||zs===void 0?void 0:zs.pageSize)),hi&&hi.scrollToFirstRowOnChange!==!1&&Fi.body.current&&(0,La.Z)(0,{getContainer:()=>Fi.body.current}),Ur==null||Ur(sl.pagination,sl.filters,sl.sorter,{currentDataSource:Oo(Mi(Eo,sl.sorterStates,Wi),sl.filterStates),action:yo})},ka=(Ha,yo)=>{pa({sorter:Ha,sorterStates:yo},"sort",!1)},[rs,Go,Zs,ns]=Bi({prefixCls:vo,mergedColumns:Xr,onSorterChange:ka,sortDirections:Ai||["ascend","descend"],tableLocale:Ba,showSorterTooltip:Er}),kl=he.useMemo(()=>Mi(Eo,Go,Wi),[Eo,Go]);pr.sorter=ns(),pr.sorterStates=Go;const is=(Ha,yo)=>{pa({filters:Ha,filterStates:yo},"filter",!0)},[Ds,Wl,Za]=po({prefixCls:vo,locale:Ba,dropdownPrefixCls:ts,mergedColumns:Xr,onFilterChange:is,getPopupContainer:Br||aa}),Nr=Oo(kl,Wl);pr.filters=Za,pr.filterStates=Wl;const Qa=he.useMemo(()=>{const Ha={};return Object.keys(Za).forEach(yo=>{Za[yo]!==null&&(Ha[yo]=Za[yo])}),Object.assign(Object.assign({},Zs),{filters:Ha})},[Zs,Za]),[ls]=Ca(Qa),ps=(Ha,yo)=>{pa({pagination:Object.assign(Object.assign({},pr.pagination),{current:Ha,pageSize:yo})},"paginate")},[ma,uo]=yl(Nr.length,ps,$n);pr.pagination=$n===!1?{}:cs(ma,$n),pr.resetPagination=uo;const Is=he.useMemo(()=>{if($n===!1||!ma.pageSize)return Nr;const{current:Ha=1,total:yo,pageSize:Cs=os}=ma;return Nr.length<yo?Nr.length>Cs?Nr.slice((Ha-1)*Cs,Ha*Cs):Nr:Nr.slice((Ha-1)*Cs,Ha*Cs)},[!!$n,Nr,ma&&ma.current,ma&&ma.pageSize,ma&&ma.total]),[pl,zl]=Fo({prefixCls:vo,data:Nr,pageData:Is,getRowKey:$a,getRecordByKey:Ln,expandType:Vi,childrenColumnName:Wi,locale:Ba,getPopupContainer:Br||aa},On),el=(Ha,yo,Cs)=>{let bo;return typeof rr=="function"?bo=He()(rr(Ha,yo,Cs)):bo=He()(rr),He()({[`${vo}-row-selected`]:zl.has($a(Ha,yo))},bo)};Ji.__PARENT_RENDER_ICON__=Ji.expandIcon,Ji.expandIcon=Ji.expandIcon||Pi||ia(Ba),Vi==="nest"&&Ji.expandIconColumnIndex===void 0?Ji.expandIconColumnIndex=On?1:0:Ji.expandIconColumnIndex>0&&On&&(Ji.expandIconColumnIndex-=1),typeof Ji.indentSize!="number"&&(Ji.indentSize=typeof ya=="number"?ya:15);const Rs=he.useCallback(Ha=>ls(pl(Ds(rs(Ha)))),[rs,Ds,pl]);let Nl,Fs;if($n!==!1&&(ma!=null&&ma.total)){let Ha;ma.size?Ha=ma.size:Ha=ao==="small"||ao==="middle"?"small":void 0;const yo=ws=>he.createElement(vr.Z,Object.assign({},ma,{className:He()(`${vo}-pagination ${vo}-pagination-${ws}`,ma.className),size:Ha})),Cs=ja==="rtl"?"left":"right",{position:bo}=ma;if(bo!==null&&Array.isArray(bo)){const ws=bo.find(Vl=>Vl.includes("top")),zs=bo.find(Vl=>Vl.includes("bottom")),sl=bo.every(Vl=>`${Vl}`=="none");!ws&&!zs&&!sl&&(Fs=yo(Cs)),ws&&(Nl=yo(ws.toLowerCase().replace("top",""))),zs&&(Fs=yo(zs.toLowerCase().replace("bottom","")))}else Fs=yo(Cs)}let tl;typeof li=="boolean"?tl={spinning:li}:typeof li=="object"&&(tl=Object.assign({spinning:!0},li));const[Hs,zo]=Ys(vo),[,jo]=(0,xr.Z)(),Qs=He()(`${vo}-wrapper`,Fa==null?void 0:Fa.className,{[`${vo}-wrapper-rtl`]:ja==="rtl"},Pt,Ut,zo),Ul=Object.assign(Object.assign({},Fa==null?void 0:Fa.style),Wt),Sl=vi&&vi.emptyText||(ko==null?void 0:ko("Table"))||he.createElement(Ga.Z,{componentName:"Table"}),jl=Si?_o:Ta,nu={},vc=he.useMemo(()=>{const{fontSize:Ha,lineHeight:yo,padding:Cs,paddingXS:bo,paddingSM:ws}=jo,zs=Math.floor(Ha*yo);switch(ao){case"large":return Cs*2+zs;case"small":return bo*2+zs;default:return ws*2+zs}},[jo,ao]);return Si&&(nu.listItemHeight=vc),Hs(he.createElement("div",{ref:Ve,className:Qs,style:Ul},he.createElement(br.Z,Object.assign({spinning:!1},tl),Nl,he.createElement(jl,Object.assign({},nu,fa,{columns:Xr,direction:ja,expandable:Ji,prefixCls:vo,className:He()({[`${vo}-middle`]:ao==="middle",[`${vo}-small`]:ao==="small",[`${vo}-bordered`]:hn,[`${vo}-empty`]:Eo.length===0}),data:Is,rowKey:$a,rowClassName:el,emptyText:Sl,internalHooks:ke,internalRefs:Fi,transformColumns:Rs})),Fs)))};var oc=he.forwardRef(zu);const gc=($e,Ve)=>{const Mt=he.useRef(0);return Mt.current+=1,he.createElement(oc,Object.assign({},$e,{ref:Ve,_renderTimes:Mt.current}))},ks=he.forwardRef(gc);ks.SELECTION_COLUMN=Oi,ks.EXPAND_COLUMN=oe,ks.SELECTION_ALL=Qi,ks.SELECTION_INVERT=$i,ks.SELECTION_NONE=Jr,ks.Column=jr,ks.ColumnGroup=Di,ks.Summary=_e;var xl=ks,ju=xl},99313:function(gn,Kt,ie){"use strict";ie.d(Kt,{default:function(){return Rt}});var oe=ie(99267),ke=ie(18785),Ce=ie(62772),Ye=ie(92310),ye=ie.n(Ye),Ee=ie(54476),he=ie(20068),xe=ie(33885),we=ie(42978),Te=ie(76190),qe=ie(75931),Ie=ie(59301),Re=ie(49658),lt=ie(18929),Ue=ie(77900),We=(0,Ie.createContext)(null),ct=Ie.forwardRef(function(Ke,nt){var rt=Ke.prefixCls,it=Ke.className,Dt=Ke.style,Ht=Ke.id,sn=Ke.active,qt=Ke.tabKey,mn=Ke.children;return Ie.createElement("div",{id:Ht&&"".concat(Ht,"-panel-").concat(qt),role:"tabpanel",tabIndex:sn?0:-1,"aria-labelledby":Ht&&"".concat(Ht,"-tab-").concat(qt),"aria-hidden":!sn,style:Dt,className:ye()(rt,sn&&"".concat(rt,"-active"),it),ref:nt},mn)}),tt=ct,At=["key","forceRender","style","className"];function ut(Ke){var nt=Ke.id,rt=Ke.activeKey,it=Ke.animated,Dt=Ke.tabPosition,Ht=Ke.destroyInactiveTabPane,sn=Ie.useContext(We),qt=sn.prefixCls,mn=sn.tabs,An=it.tabPane,Tn="".concat(qt,"-tabpane");return Ie.createElement("div",{className:ye()("".concat(qt,"-content-holder"))},Ie.createElement("div",{className:ye()("".concat(qt,"-content"),"".concat(qt,"-content-").concat(Dt),(0,he.Z)({},"".concat(qt,"-content-animated"),An))},mn.map(function(Pn){var Qt=Pn.key,wn=Pn.forceRender,Xn=Pn.style,Wn=Pn.className,sr=(0,qe.Z)(Pn,At),Jn=Qt===rt;return Ie.createElement(Ue.default,(0,Ee.Z)({key:Qt,visible:Jn,forceRender:wn,removeOnLeave:!!Ht,leavedClassName:"".concat(Tn,"-hidden")},it.tabPaneMotion),function(Ar,Fn){var dr=Ar.style,Ot=Ar.className;return Ie.createElement(tt,(0,Ee.Z)({},sr,{prefixCls:Tn,id:nt,tabKey:Qt,animated:An,active:Jn,style:(0,xe.Z)((0,xe.Z)({},Xn),dr),className:ye()(Wn,Ot),ref:Fn}))})})))}var ot=ie(94480),je=ie(29301),Se=ie(6089),Fe=ie(8654),Ze={width:0,height:0,left:0,top:0};function xt(Ke,nt,rt){return(0,Ie.useMemo)(function(){for(var it,Dt=new Map,Ht=nt.get((it=Ke[0])===null||it===void 0?void 0:it.key)||Ze,sn=Ht.left+Ht.width,qt=0;qt<Ke.length;qt+=1){var mn=Ke[qt].key,An=nt.get(mn);if(!An){var Tn;An=nt.get((Tn=Ke[qt-1])===null||Tn===void 0?void 0:Tn.key)||Ze}var Pn=Dt.get(mn)||(0,xe.Z)({},An);Pn.right=sn-Pn.left-Pn.width,Dt.set(mn,Pn)}return Dt},[Ke.map(function(it){return it.key}).join("_"),nt,rt])}function Je(Ke,nt){var rt=Ie.useRef(Ke),it=Ie.useState({}),Dt=(0,we.Z)(it,2),Ht=Dt[1];function sn(qt){var mn=typeof qt=="function"?qt(rt.current):qt;mn!==rt.current&&nt(mn,rt.current),rt.current=mn,Ht({})}return[rt.current,sn]}var dt=.1,Be=.01,kt=20,He=Math.pow(.995,kt);function Tt(Ke,nt){var rt=(0,Ie.useState)(),it=(0,we.Z)(rt,2),Dt=it[0],Ht=it[1],sn=(0,Ie.useState)(0),qt=(0,we.Z)(sn,2),mn=qt[0],An=qt[1],Tn=(0,Ie.useState)(0),Pn=(0,we.Z)(Tn,2),Qt=Pn[0],wn=Pn[1],Xn=(0,Ie.useState)(),Wn=(0,we.Z)(Xn,2),sr=Wn[0],Jn=Wn[1],Ar=(0,Ie.useRef)();function Fn(yn){var Sn=yn.touches[0],bn=Sn.screenX,zn=Sn.screenY;Ht({x:bn,y:zn}),window.clearInterval(Ar.current)}function dr(yn){if(Dt){yn.preventDefault();var Sn=yn.touches[0],bn=Sn.screenX,zn=Sn.screenY;Ht({x:bn,y:zn});var Zn=bn-Dt.x,qn=zn-Dt.y;nt(Zn,qn);var _r=Date.now();An(_r),wn(_r-mn),Jn({x:Zn,y:qn})}}function Ot(){if(Dt&&(Ht(null),Jn(null),sr)){var yn=sr.x/Qt,Sn=sr.y/Qt,bn=Math.abs(yn),zn=Math.abs(Sn);if(Math.max(bn,zn)<dt)return;var Zn=yn,qn=Sn;Ar.current=window.setInterval(function(){if(Math.abs(Zn)<Be&&Math.abs(qn)<Be){window.clearInterval(Ar.current);return}Zn*=He,qn*=He,nt(Zn*kt,qn*kt)},kt)}}var cn=(0,Ie.useRef)();function vn(yn){var Sn=yn.deltaX,bn=yn.deltaY,zn=0,Zn=Math.abs(Sn),qn=Math.abs(bn);Zn===qn?zn=cn.current==="x"?Sn:bn:Zn>qn?(zn=Sn,cn.current="x"):(zn=bn,cn.current="y"),nt(-zn,-zn)&&yn.preventDefault()}var Mn=(0,Ie.useRef)(null);Mn.current={onTouchStart:Fn,onTouchMove:dr,onTouchEnd:Ot,onWheel:vn},Ie.useEffect(function(){function yn(Zn){Mn.current.onTouchStart(Zn)}function Sn(Zn){Mn.current.onTouchMove(Zn)}function bn(Zn){Mn.current.onTouchEnd(Zn)}function zn(Zn){Mn.current.onWheel(Zn)}return document.addEventListener("touchmove",Sn,{passive:!1}),document.addEventListener("touchend",bn,{passive:!1}),Ke.current.addEventListener("touchstart",yn,{passive:!1}),Ke.current.addEventListener("wheel",zn),function(){document.removeEventListener("touchmove",Sn),document.removeEventListener("touchend",bn)}},[])}var mt=ie(34280);function Et(Ke){var nt=(0,Ie.useState)(0),rt=(0,we.Z)(nt,2),it=rt[0],Dt=rt[1],Ht=(0,Ie.useRef)(0),sn=(0,Ie.useRef)();return sn.current=Ke,(0,mt.o)(function(){var qt;(qt=sn.current)===null||qt===void 0||qt.call(sn)},[it]),function(){Ht.current===it&&(Ht.current+=1,Dt(Ht.current))}}function zt(Ke){var nt=(0,Ie.useRef)([]),rt=(0,Ie.useState)({}),it=(0,we.Z)(rt,2),Dt=it[1],Ht=(0,Ie.useRef)(typeof Ke=="function"?Ke():Ke),sn=Et(function(){var mn=Ht.current;nt.current.forEach(function(An){mn=An(mn)}),nt.current=[],Ht.current=mn,Dt({})});function qt(mn){nt.current.push(mn),sn()}return[Ht.current,qt]}var Bt={width:0,height:0,left:0,top:0,right:0};function De(Ke,nt,rt,it,Dt,Ht,sn){var qt=sn.tabs,mn=sn.tabPosition,An=sn.rtl,Tn,Pn,Qt;return["top","bottom"].includes(mn)?(Tn="width",Pn=An?"right":"left",Qt=Math.abs(rt)):(Tn="height",Pn="top",Qt=-rt),(0,Ie.useMemo)(function(){if(!qt.length)return[0,0];for(var wn=qt.length,Xn=wn,Wn=0;Wn<wn;Wn+=1){var sr=Ke.get(qt[Wn].key)||Bt;if(sr[Pn]+sr[Tn]>Qt+nt){Xn=Wn-1;break}}for(var Jn=0,Ar=wn-1;Ar>=0;Ar-=1){var Fn=Ke.get(qt[Ar].key)||Bt;if(Fn[Pn]<Qt){Jn=Ar+1;break}}return Jn>=Xn?[0,0]:[Jn,Xn]},[Ke,nt,it,Dt,Ht,Qt,mn,qt.map(function(wn){return wn.key}).join("_"),An])}function ge(Ke){var nt;return Ke instanceof Map?(nt={},Ke.forEach(function(rt,it){nt[it]=rt})):nt=Ke,JSON.stringify(nt)}var at="TABS_DQ";function Ct(Ke){return String(Ke).replace(/"/g,at)}function It(Ke,nt,rt,it){return!(!rt||it||Ke===!1||Ke===void 0&&(nt===!1||nt===null))}function Qe(Ke,nt){var rt=Ke.prefixCls,it=Ke.editable,Dt=Ke.locale,Ht=Ke.style;return!it||it.showAdd===!1?null:Ie.createElement("button",{ref:nt,type:"button",className:"".concat(rt,"-nav-add"),style:Ht,"aria-label":(Dt==null?void 0:Dt.addAriaLabel)||"Add tab",onClick:function(qt){it.onEdit("add",{event:qt})}},it.addIcon||"+")}var et=Ie.forwardRef(Qe),Lt=Ie.forwardRef(function(Ke,nt){var rt=Ke.position,it=Ke.prefixCls,Dt=Ke.extra;if(!Dt)return null;var Ht,sn={};return(0,Te.Z)(Dt)==="object"&&!Ie.isValidElement(Dt)?sn=Dt:sn.right=Dt,rt==="right"&&(Ht=sn.right),rt==="left"&&(Ht=sn.left),Ht?Ie.createElement("div",{className:"".concat(it,"-extra-content"),ref:nt},Ht):null}),dn=Lt,_t=ie(31561),tn=ie(15285),en=ie(10228);function Jt(Ke,nt){var rt=Ke.prefixCls,it=Ke.id,Dt=Ke.tabs,Ht=Ke.locale,sn=Ke.mobile,qt=Ke.moreIcon,mn=qt===void 0?"More":qt,An=Ke.moreTransitionName,Tn=Ke.style,Pn=Ke.className,Qt=Ke.editable,wn=Ke.tabBarGutter,Xn=Ke.rtl,Wn=Ke.removeAriaLabel,sr=Ke.onTabClick,Jn=Ke.getPopupContainer,Ar=Ke.popupClassName,Fn=(0,Ie.useState)(!1),dr=(0,we.Z)(Fn,2),Ot=dr[0],cn=dr[1],vn=(0,Ie.useState)(null),Mn=(0,we.Z)(vn,2),yn=Mn[0],Sn=Mn[1],bn="".concat(it,"-more-popup"),zn="".concat(rt,"-dropdown"),Zn=yn!==null?"".concat(bn,"-").concat(yn):null,qn=Ht==null?void 0:Ht.dropdownAriaLabel;function _r(ti,Pr){ti.preventDefault(),ti.stopPropagation(),Qt.onEdit("remove",{key:Pr,event:ti})}var ei=Ie.createElement(tn.ZP,{onClick:function(Pr){var Vr=Pr.key,En=Pr.domEvent;sr(Vr,En),cn(!1)},prefixCls:"".concat(zn,"-menu"),id:bn,tabIndex:-1,role:"listbox","aria-activedescendant":Zn,selectedKeys:[yn],"aria-label":qn!==void 0?qn:"expanded dropdown"},Dt.map(function(ti){var Pr=ti.closable,Vr=ti.disabled,En=ti.closeIcon,Yr=ti.key,Li=ti.label,Yi=It(Pr,En,Qt,Vr);return Ie.createElement(tn.sN,{key:Yr,id:"".concat(bn,"-").concat(Yr),role:"option","aria-controls":it&&"".concat(it,"-panel-").concat(Yr),disabled:Vr},Ie.createElement("span",null,Li),Yi&&Ie.createElement("button",{type:"button","aria-label":Wn||"remove",tabIndex:0,className:"".concat(zn,"-menu-item-remove"),onClick:function(tr){tr.stopPropagation(),_r(tr,Yr)}},En||Qt.removeIcon||"\xD7"))}));function di(ti){for(var Pr=Dt.filter(function(Yi){return!Yi.disabled}),Vr=Pr.findIndex(function(Yi){return Yi.key===yn})||0,En=Pr.length,Yr=0;Yr<En;Yr+=1){Vr=(Vr+ti+En)%En;var Li=Pr[Vr];if(!Li.disabled){Sn(Li.key);return}}}function zr(ti){var Pr=ti.which;if(!Ot){[en.Z.DOWN,en.Z.SPACE,en.Z.ENTER].includes(Pr)&&(cn(!0),ti.preventDefault());return}switch(Pr){case en.Z.UP:di(-1),ti.preventDefault();break;case en.Z.DOWN:di(1),ti.preventDefault();break;case en.Z.ESC:cn(!1);break;case en.Z.SPACE:case en.Z.ENTER:yn!==null&&sr(yn,ti);break}}(0,Ie.useEffect)(function(){var ti=document.getElementById(Zn);ti&&ti.scrollIntoView&&ti.scrollIntoView(!1)},[yn]),(0,Ie.useEffect)(function(){Ot||Sn(null)},[Ot]);var Lr=(0,he.Z)({},Xn?"marginRight":"marginLeft",wn);Dt.length||(Lr.visibility="hidden",Lr.order=1);var mi=ye()((0,he.Z)({},"".concat(zn,"-rtl"),Xn)),oi=sn?null:Ie.createElement(_t.Z,{prefixCls:zn,overlay:ei,trigger:["hover"],visible:Dt.length?Ot:!1,transitionName:An,onVisibleChange:cn,overlayClassName:ye()(mi,Ar),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Jn},Ie.createElement("button",{type:"button",className:"".concat(rt,"-nav-more"),style:Lr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":bn,id:"".concat(it,"-more"),"aria-expanded":Ot,onKeyDown:zr},mn));return Ie.createElement("div",{className:ye()("".concat(rt,"-nav-operations"),Pn),style:Tn,ref:nt},oi,Ie.createElement(et,{prefixCls:rt,locale:Ht,editable:Qt}))}var Vt=Ie.memo(Ie.forwardRef(Jt),function(Ke,nt){return nt.tabMoving});function be(Ke){var nt,rt=Ke.prefixCls,it=Ke.id,Dt=Ke.active,Ht=Ke.tab,sn=Ht.key,qt=Ht.label,mn=Ht.disabled,An=Ht.closeIcon,Tn=Ke.closable,Pn=Ke.renderWrapper,Qt=Ke.removeAriaLabel,wn=Ke.editable,Xn=Ke.onClick,Wn=Ke.onFocus,sr=Ke.style,Jn="".concat(rt,"-tab"),Ar=It(Tn,An,wn,mn);function Fn(cn){mn||Xn(cn)}function dr(cn){cn.preventDefault(),cn.stopPropagation(),wn.onEdit("remove",{key:sn,event:cn})}var Ot=Ie.createElement("div",{key:sn,"data-node-key":Ct(sn),className:ye()(Jn,(nt={},(0,he.Z)(nt,"".concat(Jn,"-with-remove"),Ar),(0,he.Z)(nt,"".concat(Jn,"-active"),Dt),(0,he.Z)(nt,"".concat(Jn,"-disabled"),mn),nt)),style:sr,onClick:Fn},Ie.createElement("div",{role:"tab","aria-selected":Dt,id:it&&"".concat(it,"-tab-").concat(sn),className:"".concat(Jn,"-btn"),"aria-controls":it&&"".concat(it,"-panel-").concat(sn),"aria-disabled":mn,tabIndex:mn?null:0,onClick:function(vn){vn.stopPropagation(),Fn(vn)},onKeyDown:function(vn){[en.Z.SPACE,en.Z.ENTER].includes(vn.which)&&(vn.preventDefault(),Fn(vn))},onFocus:Wn},qt),Ar&&Ie.createElement("button",{type:"button","aria-label":Qt||"remove",tabIndex:0,className:"".concat(Jn,"-remove"),onClick:function(vn){vn.stopPropagation(),dr(vn)}},An||wn.removeIcon||"\xD7"));return Pn?Pn(Ot):Ot}var ce=be,ue=ie(16089),de=function(nt){var rt=nt.activeTabOffset,it=nt.horizontal,Dt=nt.rtl,Ht=nt.indicatorSize,sn=(0,Ie.useState)(),qt=(0,we.Z)(sn,2),mn=qt[0],An=qt[1],Tn=(0,Ie.useRef)(),Pn=function(Xn){return typeof Ht=="function"?Ht(Xn):typeof Ht=="number"?Ht:Xn};function Qt(){ue.Z.cancel(Tn.current)}return(0,Ie.useEffect)(function(){var wn={};return rt&&(it?(Dt?(wn.right=rt.right+rt.width/2,wn.transform="translateX(50%)"):(wn.left=rt.left+rt.width/2,wn.transform="translateX(-50%)"),wn.width=Pn(rt.width)):(wn.top=rt.top+rt.height/2,wn.transform="translateY(-50%)",wn.height=Pn(rt.height))),Qt(),Tn.current=(0,ue.Z)(function(){An(wn)}),Qt},[rt,it,Dt,Ht]),{style:mn}},pe=de,se=function(nt){var rt=nt.current||{},it=rt.offsetWidth,Dt=it===void 0?0:it,Ht=rt.offsetHeight,sn=Ht===void 0?0:Ht;return[Dt,sn]},Le=function(nt,rt){return nt[rt?0:1]};function ht(Ke,nt){var rt,it=Ie.useContext(We),Dt=it.prefixCls,Ht=it.tabs,sn=Ke.className,qt=Ke.style,mn=Ke.id,An=Ke.animated,Tn=Ke.activeKey,Pn=Ke.rtl,Qt=Ke.extra,wn=Ke.editable,Xn=Ke.locale,Wn=Ke.tabPosition,sr=Ke.tabBarGutter,Jn=Ke.children,Ar=Ke.onTabClick,Fn=Ke.onTabScroll,dr=Ke.indicatorSize,Ot=(0,Ie.useRef)(),cn=(0,Ie.useRef)(),vn=(0,Ie.useRef)(),Mn=(0,Ie.useRef)(),yn=(0,Ie.useRef)(),Sn=(0,Ie.useRef)(),bn=(0,Ie.useRef)(),zn=Wn==="top"||Wn==="bottom",Zn=Je(0,function(gr,Hr){zn&&Fn&&Fn({direction:gr>Hr?"left":"right"})}),qn=(0,we.Z)(Zn,2),_r=qn[0],ei=qn[1],di=Je(0,function(gr,Hr){!zn&&Fn&&Fn({direction:gr>Hr?"top":"bottom"})}),zr=(0,we.Z)(di,2),Lr=zr[0],mi=zr[1],oi=(0,Ie.useState)([0,0]),ti=(0,we.Z)(oi,2),Pr=ti[0],Vr=ti[1],En=(0,Ie.useState)([0,0]),Yr=(0,we.Z)(En,2),Li=Yr[0],Yi=Yr[1],ni=(0,Ie.useState)([0,0]),tr=(0,we.Z)(ni,2),Un=tr[0],Qr=tr[1],Dr=(0,Ie.useState)([0,0]),fi=(0,we.Z)(Dr,2),Ni=fi[0],si=fi[1],ea=zt(new Map),ki=(0,we.Z)(ea,2),Da=ki[0],jr=ki[1],$r=xt(Ht,Da,Li[0]),Di=Le(Pr,zn),Ii=Le(Li,zn),La=Le(Un,zn),So=Le(Ni,zn),Ga=Di<Ii+La,la=Ga?Di-So:Di-La,Oa="".concat(Dt,"-nav-operations-hidden"),Ma=0,vr=0;zn&&Pn?(Ma=0,vr=Math.max(0,Ii-la)):(Ma=Math.min(0,la-Ii),vr=0);function br(gr){return gr<Ma?Ma:gr>vr?vr:gr}var xr=(0,Ie.useRef)(),Gr=(0,Ie.useState)(),ia=(0,we.Z)(Gr,2),wa=ia[0],Ea=ia[1];function Sa(){Ea(Date.now())}function Aa(){window.clearTimeout(xr.current)}Tt(Mn,function(gr,Hr){function Ti(Ui,ji){Ui(function(ba){var Co=br(ba+ji);return Co})}return Ga?(zn?Ti(ei,gr):Ti(mi,Hr),Aa(),Sa(),!0):!1}),(0,Ie.useEffect)(function(){return Aa(),wa&&(xr.current=window.setTimeout(function(){Ea(0)},100)),Aa},[wa]);var _a=De($r,la,zn?_r:Lr,Ii,La,So,(0,xe.Z)((0,xe.Z)({},Ke),{},{tabs:Ht})),mo=(0,we.Z)(_a,2),co=mo[0],qo=mo[1],Bo=(0,Se.Z)(function(){var gr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn,Hr=$r.get(gr)||{width:0,height:0,left:0,right:0,top:0};if(zn){var Ti=_r;Pn?Hr.right<_r?Ti=Hr.right:Hr.right+Hr.width>_r+la&&(Ti=Hr.right+Hr.width-la):Hr.left<-_r?Ti=-Hr.left:Hr.left+Hr.width>-_r+la&&(Ti=-(Hr.left+Hr.width-la)),mi(0),ei(br(Ti))}else{var Ui=Lr;Hr.top<-Lr?Ui=-Hr.top:Hr.top+Hr.height>-Lr+la&&(Ui=-(Hr.top+Hr.height-la)),ei(0),mi(br(Ui))}}),eo={};Wn==="top"||Wn==="bottom"?eo[Pn?"marginRight":"marginLeft"]=sr:eo.marginTop=sr;var Bs=Ht.map(function(gr,Hr){var Ti=gr.key;return Ie.createElement(ce,{id:mn,prefixCls:Dt,key:Ti,tab:gr,style:Hr===0?void 0:eo,closable:gr.closable,editable:wn,active:Ti===Tn,renderWrapper:Jn,removeAriaLabel:Xn==null?void 0:Xn.removeAriaLabel,onClick:function(ji){Ar(Ti,ji)},onFocus:function(){Bo(Ti),Sa(),Mn.current&&(Pn||(Mn.current.scrollLeft=0),Mn.current.scrollTop=0)}})}),Wo=function(){return jr(function(){var Hr=new Map;return Ht.forEach(function(Ti){var Ui,ji=Ti.key,ba=(Ui=yn.current)===null||Ui===void 0?void 0:Ui.querySelector('[data-node-key="'.concat(Ct(ji),'"]'));ba&&Hr.set(ji,{width:ba.offsetWidth,height:ba.offsetHeight,left:ba.offsetLeft,top:ba.offsetTop})}),Hr})};(0,Ie.useEffect)(function(){Wo()},[Ht.map(function(gr){return gr.key}).join("_")]);var Ro=Et(function(){var gr=se(Ot),Hr=se(cn),Ti=se(vn);Vr([gr[0]-Hr[0]-Ti[0],gr[1]-Hr[1]-Ti[1]]);var Ui=se(bn);Qr(Ui);var ji=se(Sn);si(ji);var ba=se(yn);Yi([ba[0]-Ui[0],ba[1]-Ui[1]]),Wo()}),fo=Ht.slice(0,co),za=Ht.slice(qo+1),Ei=[].concat((0,ot.Z)(fo),(0,ot.Z)(za)),ta=$r.get(Tn),Zi=pe({activeTabOffset:ta,horizontal:zn,rtl:Pn,indicatorSize:dr}),Ci=Zi.style;(0,Ie.useEffect)(function(){Bo()},[Tn,Ma,vr,ge(ta),ge($r),zn]),(0,Ie.useEffect)(function(){Ro()},[Pn]);var va=!!Ei.length,oa="".concat(Dt,"-nav-wrap"),to,go,no,xn;return zn?Pn?(go=_r>0,to=_r!==vr):(to=_r<0,go=_r!==Ma):(no=Lr<0,xn=Lr!==Ma),Ie.createElement(je.Z,{onResize:Ro},Ie.createElement("div",{ref:(0,Fe.x1)(nt,Ot),role:"tablist",className:ye()("".concat(Dt,"-nav"),sn),style:qt,onKeyDown:function(){Sa()}},Ie.createElement(dn,{ref:cn,position:"left",extra:Qt,prefixCls:Dt}),Ie.createElement(je.Z,{onResize:Ro},Ie.createElement("div",{className:ye()(oa,(rt={},(0,he.Z)(rt,"".concat(oa,"-ping-left"),to),(0,he.Z)(rt,"".concat(oa,"-ping-right"),go),(0,he.Z)(rt,"".concat(oa,"-ping-top"),no),(0,he.Z)(rt,"".concat(oa,"-ping-bottom"),xn),rt)),ref:Mn},Ie.createElement(je.Z,{onResize:Ro},Ie.createElement("div",{ref:yn,className:"".concat(Dt,"-nav-list"),style:{transform:"translate(".concat(_r,"px, ").concat(Lr,"px)"),transition:wa?"none":void 0}},Bs,Ie.createElement(et,{ref:bn,prefixCls:Dt,locale:Xn,editable:wn,style:(0,xe.Z)((0,xe.Z)({},Bs.length===0?void 0:eo),{},{visibility:va?"hidden":null})}),Ie.createElement("div",{className:ye()("".concat(Dt,"-ink-bar"),(0,he.Z)({},"".concat(Dt,"-ink-bar-animated"),An.inkBar)),style:Ci}))))),Ie.createElement(Vt,(0,Ee.Z)({},Ke,{removeAriaLabel:Xn==null?void 0:Xn.removeAriaLabel,ref:Sn,prefixCls:Dt,tabs:Ei,className:!va&&Oa,tabMoving:!!wa})),Ie.createElement(dn,{ref:vn,position:"right",extra:Qt,prefixCls:Dt})))}var _e=Ie.forwardRef(ht),Ne=["renderTabBar"],St=["label","key"];function gt(Ke){var nt=Ke.renderTabBar,rt=(0,qe.Z)(Ke,Ne),it=Ie.useContext(We),Dt=it.tabs;if(nt){var Ht=(0,xe.Z)((0,xe.Z)({},rt),{},{panes:Dt.map(function(sn){var qt=sn.label,mn=sn.key,An=(0,qe.Z)(sn,St);return Ie.createElement(tt,(0,Ee.Z)({tab:qt,key:mn,tabKey:mn},An))})});return nt(Ht,_e)}return Ie.createElement(_e,rt)}var Xe=ie(48736);function wt(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},nt;return Ke===!1?nt={inkBar:!1,tabPane:!1}:Ke===!0?nt={inkBar:!0,tabPane:!1}:nt=(0,xe.Z)({inkBar:!0},(0,Te.Z)(Ke)==="object"?Ke:{}),nt.tabPaneMotion&&nt.tabPane===void 0&&(nt.tabPane=!0),!nt.tabPaneMotion&&nt.tabPane&&(nt.tabPane=!1),nt}var Xt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],bt=0;function $t(Ke,nt){var rt,it=Ke.id,Dt=Ke.prefixCls,Ht=Dt===void 0?"rc-tabs":Dt,sn=Ke.className,qt=Ke.items,mn=Ke.direction,An=Ke.activeKey,Tn=Ke.defaultActiveKey,Pn=Ke.editable,Qt=Ke.animated,wn=Ke.tabPosition,Xn=wn===void 0?"top":wn,Wn=Ke.tabBarGutter,sr=Ke.tabBarStyle,Jn=Ke.tabBarExtraContent,Ar=Ke.locale,Fn=Ke.moreIcon,dr=Ke.moreTransitionName,Ot=Ke.destroyInactiveTabPane,cn=Ke.renderTabBar,vn=Ke.onChange,Mn=Ke.onTabClick,yn=Ke.onTabScroll,Sn=Ke.getPopupContainer,bn=Ke.popupClassName,zn=Ke.indicatorSize,Zn=(0,qe.Z)(Ke,Xt),qn=Ie.useMemo(function(){return(qt||[]).filter(function(si){return si&&(0,Te.Z)(si)==="object"&&"key"in si})},[qt]),_r=mn==="rtl",ei=wt(Qt),di=(0,Ie.useState)(!1),zr=(0,we.Z)(di,2),Lr=zr[0],mi=zr[1];(0,Ie.useEffect)(function(){mi((0,Re.Z)())},[]);var oi=(0,lt.Z)(function(){var si;return(si=qn[0])===null||si===void 0?void 0:si.key},{value:An,defaultValue:Tn}),ti=(0,we.Z)(oi,2),Pr=ti[0],Vr=ti[1],En=(0,Ie.useState)(function(){return qn.findIndex(function(si){return si.key===Pr})}),Yr=(0,we.Z)(En,2),Li=Yr[0],Yi=Yr[1];(0,Ie.useEffect)(function(){var si=qn.findIndex(function(ki){return ki.key===Pr});if(si===-1){var ea;si=Math.max(0,Math.min(Li,qn.length-1)),Vr((ea=qn[si])===null||ea===void 0?void 0:ea.key)}Yi(si)},[qn.map(function(si){return si.key}).join("_"),Pr,Li]);var ni=(0,lt.Z)(null,{value:it}),tr=(0,we.Z)(ni,2),Un=tr[0],Qr=tr[1];(0,Ie.useEffect)(function(){it||(Qr("rc-tabs-".concat(bt)),bt+=1)},[]);function Dr(si,ea){Mn==null||Mn(si,ea);var ki=si!==Pr;Vr(si),ki&&(vn==null||vn(si))}var fi={id:Un,activeKey:Pr,animated:ei,tabPosition:Xn,rtl:_r,mobile:Lr},Ni=(0,xe.Z)((0,xe.Z)({},fi),{},{editable:Pn,locale:Ar,moreIcon:Fn,moreTransitionName:dr,tabBarGutter:Wn,onTabClick:Dr,onTabScroll:yn,extra:Jn,style:sr,panes:null,getPopupContainer:Sn,popupClassName:bn,indicatorSize:zn});return Ie.createElement(We.Provider,{value:{tabs:qn,prefixCls:Ht}},Ie.createElement("div",(0,Ee.Z)({ref:nt,id:it,className:ye()(Ht,"".concat(Ht,"-").concat(Xn),(rt={},(0,he.Z)(rt,"".concat(Ht,"-mobile"),Lr),(0,he.Z)(rt,"".concat(Ht,"-editable"),Pn),(0,he.Z)(rt,"".concat(Ht,"-rtl"),_r),rt),sn)},Zn),Ie.createElement(gt,(0,Ee.Z)({},Ni,{renderTabBar:cn})),Ie.createElement(ut,(0,Ee.Z)({destroyInactiveTabPane:Ot},fi,{animated:ei}))))}var on=Ie.forwardRef($t),vt=on,Oe=vt,yt=ie(36355),jt=ie(19716),nn=()=>null,Cn=ie(62892);const In={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Dn(Ke){let nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},rt;return nt===!1?rt={inkBar:!1,tabPane:!1}:nt===!0?rt={inkBar:!0,tabPane:!0}:rt=Object.assign({inkBar:!0},typeof nt=="object"?nt:{}),rt.tabPane&&(rt.tabPaneMotion=Object.assign(Object.assign({},In),{motionName:(0,Cn.m)(Ke,"switch")})),rt}var Kn=ie(11592),Vn=function(Ke,nt){var rt={};for(var it in Ke)Object.prototype.hasOwnProperty.call(Ke,it)&&nt.indexOf(it)<0&&(rt[it]=Ke[it]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,it=Object.getOwnPropertySymbols(Ke);Dt<it.length;Dt++)nt.indexOf(it[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Ke,it[Dt])&&(rt[it[Dt]]=Ke[it[Dt]]);return rt};function _n(Ke){return Ke.filter(nt=>nt)}function or(Ke,nt){if(Ke)return Ke;const rt=(0,Kn.Z)(nt).map(it=>{if(Ie.isValidElement(it)){const{key:Dt,props:Ht}=it,sn=Ht||{},{tab:qt}=sn,mn=Vn(sn,["tab"]);return Object.assign(Object.assign({key:String(Dt)},mn),{label:qt})}return null});return _n(rt)}var wr=ie(17313),Tr=ie(83116),Yn=ie(37613),hr=ie(13826),Qn=Ke=>{const{componentCls:nt,motionDurationSlow:rt}=Ke;return[{[nt]:{[`${nt}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${rt}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${rt}`}}}}},[(0,hr.oN)(Ke,"slide-up"),(0,hr.oN)(Ke,"slide-down")]]};const Fr=Ke=>{const{componentCls:nt,tabsCardPadding:rt,cardBg:it,cardGutter:Dt,colorBorderSecondary:Ht,itemSelectedColor:sn}=Ke;return{[`${nt}-card`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{margin:0,padding:rt,background:it,border:`${Ke.lineWidth}px ${Ke.lineType} ${Ht}`,transition:`all ${Ke.motionDurationSlow} ${Ke.motionEaseInOut}`},[`${nt}-tab-active`]:{color:sn,background:Ke.colorBgContainer},[`${nt}-ink-bar`]:{visibility:"hidden"}},[`&${nt}-top, &${nt}-bottom`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab + ${nt}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Dt}px`}}}},[`&${nt}-top`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{borderRadius:`${Ke.borderRadiusLG}px ${Ke.borderRadiusLG}px 0 0`},[`${nt}-tab-active`]:{borderBottomColor:Ke.colorBgContainer}}},[`&${nt}-bottom`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{borderRadius:`0 0 ${Ke.borderRadiusLG}px ${Ke.borderRadiusLG}px`},[`${nt}-tab-active`]:{borderTopColor:Ke.colorBgContainer}}},[`&${nt}-left, &${nt}-right`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab + ${nt}-tab`]:{marginTop:`${Dt}px`}}},[`&${nt}-left`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ke.borderRadiusLG}px 0 0 ${Ke.borderRadiusLG}px`}},[`${nt}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Ke.colorBgContainer}}}},[`&${nt}-right`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ke.borderRadiusLG}px ${Ke.borderRadiusLG}px 0`}},[`${nt}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Ke.colorBgContainer}}}}}}},ci=Ke=>{const{componentCls:nt,itemHoverColor:rt,dropdownEdgeChildVerticalPadding:it}=Ke;return{[`${nt}-dropdown`]:Object.assign(Object.assign({},(0,wr.Wf)(Ke)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ke.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${nt}-dropdown-menu`]:{maxHeight:Ke.tabsDropdownHeight,margin:0,padding:`${it}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Ke.colorBgContainer,backgroundClip:"padding-box",borderRadius:Ke.borderRadiusLG,outline:"none",boxShadow:Ke.boxShadowSecondary,"&-item":Object.assign(Object.assign({},wr.vS),{display:"flex",alignItems:"center",minWidth:Ke.tabsDropdownWidth,margin:0,padding:`${Ke.paddingXXS}px ${Ke.paddingSM}px`,color:Ke.colorText,fontWeight:"normal",fontSize:Ke.fontSize,lineHeight:Ke.lineHeight,cursor:"pointer",transition:`all ${Ke.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Ke.marginSM},color:Ke.colorTextDescription,fontSize:Ke.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:rt}},"&:hover":{background:Ke.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Ke.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Cr=Ke=>{const{componentCls:nt,margin:rt,colorBorderSecondary:it,horizontalMargin:Dt,verticalItemPadding:Ht,verticalItemMargin:sn}=Ke;return{[`${nt}-top, ${nt}-bottom`]:{flexDirection:"column",[`> ${nt}-nav, > div > ${nt}-nav`]:{margin:Dt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ke.lineWidth}px ${Ke.lineType} ${it}`,content:"''"},[`${nt}-ink-bar`]:{height:Ke.lineWidthBold,"&-animated":{transition:`width ${Ke.motionDurationSlow}, left ${Ke.motionDurationSlow},
|
|
|
right ${Ke.motionDurationSlow}`}},[`${nt}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Ke.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Ke.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Ke.boxShadowTabsOverflowRight},[`&${nt}-nav-wrap-ping-left::before`]:{opacity:1},[`&${nt}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${nt}-top`]:{[`> ${nt}-nav,
|
|
|
> div > ${nt}-nav`]:{"&::before":{bottom:0},[`${nt}-ink-bar`]:{bottom:0}}},[`${nt}-bottom`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{order:1,marginTop:`${rt}px`,marginBottom:0,"&::before":{top:0},[`${nt}-ink-bar`]:{top:0}},[`> ${nt}-content-holder, > div > ${nt}-content-holder`]:{order:0}},[`${nt}-left, ${nt}-right`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{flexDirection:"column",minWidth:Ke.controlHeight*1.25,[`${nt}-tab`]:{padding:Ht,textAlign:"center"},[`${nt}-tab + ${nt}-tab`]:{margin:sn},[`${nt}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Ke.controlHeight},"&::before":{top:0,boxShadow:Ke.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Ke.boxShadowTabsOverflowBottom},[`&${nt}-nav-wrap-ping-top::before`]:{opacity:1},[`&${nt}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${nt}-ink-bar`]:{width:Ke.lineWidthBold,"&-animated":{transition:`height ${Ke.motionDurationSlow}, top ${Ke.motionDurationSlow}`}},[`${nt}-nav-list, ${nt}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${nt}-left`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${nt}-content-holder, > div > ${nt}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Ke.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Ke.lineWidth}px ${Ke.lineType} ${Ke.colorBorder}`},[`> ${nt}-content > ${nt}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Ke.paddingLG}}}},[`${nt}-right`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{order:1,[`${nt}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${nt}-content-holder, > div > ${nt}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Ke.lineWidth},borderRight:{_skip_check_:!0,value:`${Ke.lineWidth}px ${Ke.lineType} ${Ke.colorBorder}`},[`> ${nt}-content > ${nt}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Ke.paddingLG}}}}}},pi=Ke=>{const{componentCls:nt,cardPaddingSM:rt,cardPaddingLG:it,horizontalItemPaddingSM:Dt,horizontalItemPaddingLG:Ht}=Ke;return{[nt]:{"&-small":{[`> ${nt}-nav`]:{[`${nt}-tab`]:{padding:Dt,fontSize:Ke.titleFontSizeSM}}},"&-large":{[`> ${nt}-nav`]:{[`${nt}-tab`]:{padding:Ht,fontSize:Ke.titleFontSizeLG}}}},[`${nt}-card`]:{[`&${nt}-small`]:{[`> ${nt}-nav`]:{[`${nt}-tab`]:{padding:rt}},[`&${nt}-bottom`]:{[`> ${nt}-nav ${nt}-tab`]:{borderRadius:`0 0 ${Ke.borderRadius}px ${Ke.borderRadius}px`}},[`&${nt}-top`]:{[`> ${nt}-nav ${nt}-tab`]:{borderRadius:`${Ke.borderRadius}px ${Ke.borderRadius}px 0 0`}},[`&${nt}-right`]:{[`> ${nt}-nav ${nt}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ke.borderRadius}px ${Ke.borderRadius}px 0`}}},[`&${nt}-left`]:{[`> ${nt}-nav ${nt}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ke.borderRadius}px 0 0 ${Ke.borderRadius}px`}}}},[`&${nt}-large`]:{[`> ${nt}-nav`]:{[`${nt}-tab`]:{padding:it}}}}}},ai=Ke=>{const{componentCls:nt,itemActiveColor:rt,itemHoverColor:it,iconCls:Dt,tabsHorizontalItemMargin:Ht,horizontalItemPadding:sn,itemSelectedColor:qt,itemColor:mn}=Ke,An=`${nt}-tab`;return{[An]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:sn,fontSize:Ke.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:mn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:rt}},(0,wr.Qy)(Ke)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Ke.marginXXS},marginLeft:{_skip_check_:!0,value:Ke.marginXS},color:Ke.colorTextDescription,fontSize:Ke.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Ke.motionDurationSlow}`,"&:hover":{color:Ke.colorTextHeading}},"&:hover":{color:it},[`&${An}-active ${An}-btn`]:{color:qt,textShadow:Ke.tabsActiveTextShadow},[`&${An}-disabled`]:{color:Ke.colorTextDisabled,cursor:"not-allowed"},[`&${An}-disabled ${An}-btn, &${An}-disabled ${nt}-remove`]:{"&:focus, &:active":{color:Ke.colorTextDisabled}},[`& ${An}-remove ${Dt}`]:{margin:0},[Dt]:{marginRight:{_skip_check_:!0,value:Ke.marginSM}}},[`${An} + ${An}`]:{margin:{_skip_check_:!0,value:Ht}}}},nr=Ke=>{const{componentCls:nt,tabsHorizontalItemMarginRTL:rt,iconCls:it,cardGutter:Dt}=Ke;return{[`${nt}-rtl`]:{direction:"rtl",[`${nt}-nav`]:{[`${nt}-tab`]:{margin:{_skip_check_:!0,value:rt},[`${nt}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[it]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Ke.marginSM}px`}},[`${nt}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Ke.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Ke.marginXXS}px`},[it]:{margin:0}}}},[`&${nt}-left`]:{[`> ${nt}-nav`]:{order:1},[`> ${nt}-content-holder`]:{order:0}},[`&${nt}-right`]:{[`> ${nt}-nav`]:{order:0},[`> ${nt}-content-holder`]:{order:1}},[`&${nt}-card${nt}-top, &${nt}-card${nt}-bottom`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab + ${nt}-tab`]:{marginRight:{_skip_check_:!0,value:Dt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${nt}-dropdown-rtl`]:{direction:"rtl"},[`${nt}-menu-item`]:{[`${nt}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},yr=Ke=>{const{componentCls:nt,tabsCardPadding:rt,cardHeight:it,cardGutter:Dt,itemHoverColor:Ht,itemActiveColor:sn,colorBorderSecondary:qt}=Ke;return{[nt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,wr.Wf)(Ke)),{display:"flex",[`> ${nt}-nav, > div > ${nt}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${nt}-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 ${Ke.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${nt}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Ke.motionDurationSlow}`},[`${nt}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${nt}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${nt}-nav-more`]:{position:"relative",padding:rt,background:"transparent",border:0,color:Ke.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Ke.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${nt}-nav-add`]:Object.assign({minWidth:it,marginLeft:{_skip_check_:!0,value:Dt},padding:`0 ${Ke.paddingXS}px`,background:"transparent",border:`${Ke.lineWidth}px ${Ke.lineType} ${qt}`,borderRadius:`${Ke.borderRadiusLG}px ${Ke.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Ke.colorText,transition:`all ${Ke.motionDurationSlow} ${Ke.motionEaseInOut}`,"&:hover":{color:Ht},"&:active, &:focus:not(:focus-visible)":{color:sn}},(0,wr.Qy)(Ke))},[`${nt}-extra-content`]:{flex:"none"},[`${nt}-ink-bar`]:{position:"absolute",background:Ke.inkBarColor,pointerEvents:"none"}}),ai(Ke)),{[`${nt}-content`]:{position:"relative",width:"100%"},[`${nt}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${nt}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${nt}-centered`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-nav-wrap`]:{[`&:not([class*='${nt}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Hn=(0,Tr.Z)("Tabs",Ke=>{const nt=(0,Yn.TS)(Ke,{tabsCardPadding:Ke.cardPadding||`${(Ke.cardHeight-Math.round(Ke.fontSize*Ke.lineHeight))/2-Ke.lineWidth}px ${Ke.padding}px`,dropdownEdgeChildVerticalPadding:Ke.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ke.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ke.horizontalItemGutter}px`});return[pi(nt),nr(nt),Cr(nt),ci(nt),Fr(nt),yr(nt),Qn(nt)]},Ke=>{const nt=Ke.controlHeightLG;return{zIndexPopup:Ke.zIndexPopupBase+50,cardBg:Ke.colorFillAlter,cardHeight:nt,cardPadding:"",cardPaddingSM:`${Ke.paddingXXS*1.5}px ${Ke.padding}px`,cardPaddingLG:`${Ke.paddingXS}px ${Ke.padding}px ${Ke.paddingXXS*1.5}px`,titleFontSize:Ke.fontSize,titleFontSizeLG:Ke.fontSizeLG,titleFontSizeSM:Ke.fontSize,inkBarColor:Ke.colorPrimary,horizontalMargin:`0 0 ${Ke.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Ke.paddingSM}px 0`,horizontalItemPaddingSM:`${Ke.paddingXS}px 0`,horizontalItemPaddingLG:`${Ke.padding}px 0`,verticalItemPadding:`${Ke.paddingXS}px ${Ke.paddingLG}px`,verticalItemMargin:`${Ke.margin}px 0 0 0`,itemColor:Ke.colorText,itemSelectedColor:Ke.colorPrimary,itemHoverColor:Ke.colorPrimaryHover,itemActiveColor:Ke.colorPrimaryActive,cardGutter:Ke.marginXXS/2}}),Gn=function(Ke,nt){var rt={};for(var it in Ke)Object.prototype.hasOwnProperty.call(Ke,it)&&nt.indexOf(it)<0&&(rt[it]=Ke[it]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,it=Object.getOwnPropertySymbols(Ke);Dt<it.length;Dt++)nt.indexOf(it[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Ke,it[Dt])&&(rt[it[Dt]]=Ke[it[Dt]]);return rt};const Or=Ke=>{const{type:nt,className:rt,rootClassName:it,size:Dt,onEdit:Ht,hideAdd:sn,centered:qt,addIcon:mn,popupClassName:An,children:Tn,items:Pn,animated:Qt,style:wn,indicatorSize:Xn}=Ke,Wn=Gn(Ke,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:sr,moreIcon:Jn=Ie.createElement(ke.Z,null)}=Wn,{direction:Ar,tabs:Fn,getPrefixCls:dr,getPopupContainer:Ot}=Ie.useContext(yt.E_),cn=dr("tabs",sr),[vn,Mn]=Hn(cn);let yn;nt==="editable-card"&&(yn={onEdit:(_r,ei)=>{let{key:di,event:zr}=ei;Ht==null||Ht(_r==="add"?zr:di,_r)},removeIcon:Ie.createElement(oe.Z,null),addIcon:mn||Ie.createElement(Ce.Z,null),showAdd:sn!==!0});const Sn=dr(),bn=or(Pn,Tn),zn=Dn(cn,Qt),Zn=(0,jt.Z)(Dt),qn=Object.assign(Object.assign({},Fn==null?void 0:Fn.style),wn);return vn(Ie.createElement(Oe,Object.assign({direction:Ar,getPopupContainer:Ot,moreTransitionName:`${Sn}-slide-up`},Wn,{items:bn,className:ye()({[`${cn}-${Zn}`]:Zn,[`${cn}-card`]:["card","editable-card"].includes(nt),[`${cn}-editable-card`]:nt==="editable-card",[`${cn}-centered`]:qt},Fn==null?void 0:Fn.className,rt,it,Mn),popupClassName:ye()(An,Mn),style:qn,editable:yn,moreIcon:Jn,prefixCls:cn,animated:zn,indicatorSize:Xn!=null?Xn:Fn==null?void 0:Fn.indicatorSize})))};Or.TabPane=nn;var Rt=Or},17574:function(gn,Kt,ie){"use strict";ie.d(Kt,{default:function(){return De}});var oe=ie(60091),ke=ie(94480),Ce=ie(52671),Ye=ie(8657),ye=ie(54476),Ee=ie(59301),he={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},xe=he,we=ie(7657),Te=function(at,Ct){return Ee.createElement(we.Z,(0,ye.Z)({},at,{ref:Ct,icon:xe}))},qe=Ee.forwardRef(Te),Ie=qe,Re=ie(92310),lt=ie.n(Re),Ue=ie(35654),We=ie(71430),ct=ie(36355),tt=ie(56082),At=ie(62892),ut=ie(20648);const ot=4;function je(ge){const{dropPosition:at,dropLevelOffset:Ct,prefixCls:It,indent:Qe,direction:et="ltr"}=ge,Lt=et==="ltr"?"left":"right",dn=et==="ltr"?"right":"left",_t={[Lt]:-Ct*Qe+ot,[dn]:0};switch(at){case-1:_t.top=-3;break;case 1:_t.bottom=-3;break;default:_t.bottom=-3,_t[Lt]=Qe+ot;break}return Ee.createElement("div",{style:_t,className:`${It}-drop-indicator`})}var Se=ie(71997),Ze=Ee.forwardRef((ge,at)=>{const{getPrefixCls:Ct,direction:It,virtual:Qe,tree:et}=Ee.useContext(ct.E_),{prefixCls:Lt,className:dn,showIcon:_t=!1,showLine:tn,switcherIcon:en,blockNode:Jt=!1,children:Vt,checkable:be=!1,selectable:ce=!0,draggable:ue,motion:de,style:pe}=ge,se=Ct("tree",Lt),Le=Ct(),ht=de!=null?de:Object.assign(Object.assign({},(0,At.Z)(Le)),{motionAppear:!1}),_e=Object.assign(Object.assign({},ge),{checkable:be,selectable:ce,showIcon:_t,motion:ht,blockNode:Jt,showLine:!!tn,dropIndicatorRender:je}),[Ne,St]=(0,ut.ZP)(se),gt=Ee.useMemo(()=>{if(!ue)return!1;let wt={};switch(typeof ue){case"function":wt.nodeDraggable=ue;break;case"object":wt=Object.assign({},ue);break;default:break}return wt.icon!==!1&&(wt.icon=wt.icon||Ee.createElement(tt.Z,null)),wt},[ue]),Xe=wt=>Ee.createElement(Se.Z,{prefixCls:se,switcherIcon:en,treeNodeProps:wt,showLine:tn});return Ne(Ee.createElement(oe.Z,Object.assign({itemHeight:20,ref:at,virtual:Qe},_e,{style:Object.assign(Object.assign({},et==null?void 0:et.style),pe),prefixCls:se,className:lt()({[`${se}-icon-hide`]:!_t,[`${se}-block-node`]:Jt,[`${se}-unselectable`]:!ce,[`${se}-rtl`]:It==="rtl"},et==null?void 0:et.className,dn,St),direction:It,checkable:be&&Ee.createElement("span",{className:`${se}-checkbox-inner`}),selectable:ce,switcherIcon:Xe,draggable:gt}),Vt))}),xt;(function(ge){ge[ge.None=0]="None",ge[ge.Start=1]="Start",ge[ge.End=2]="End"})(xt||(xt={}));function Je(ge,at){function Ct(It){const{key:Qe,children:et}=It;at(Qe,It)!==!1&&Je(et||[],at)}ge.forEach(Ct)}function dt(ge){let{treeData:at,expandedKeys:Ct,startKey:It,endKey:Qe}=ge;const et=[];let Lt=xt.None;if(It&&It===Qe)return[It];if(!It||!Qe)return[];function dn(_t){return _t===It||_t===Qe}return Je(at,_t=>{if(Lt===xt.End)return!1;if(dn(_t)){if(et.push(_t),Lt===xt.None)Lt=xt.Start;else if(Lt===xt.Start)return Lt=xt.End,!1}else Lt===xt.Start&&et.push(_t);return Ct.includes(_t)}),et}function Be(ge,at){const Ct=(0,ke.Z)(at),It=[];return Je(ge,(Qe,et)=>{const Lt=Ct.indexOf(Qe);return Lt!==-1&&(It.push(et),Ct.splice(Lt,1)),!!Ct.length}),It}var kt=function(ge,at){var Ct={};for(var It in ge)Object.prototype.hasOwnProperty.call(ge,It)&&at.indexOf(It)<0&&(Ct[It]=ge[It]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,It=Object.getOwnPropertySymbols(ge);Qe<It.length;Qe++)at.indexOf(It[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ge,It[Qe])&&(Ct[It[Qe]]=ge[It[Qe]]);return Ct};function He(ge){const{isLeaf:at,expanded:Ct}=ge;return at?Ee.createElement(Ce.Z,null):Ct?Ee.createElement(Ye.Z,null):Ee.createElement(Ie,null)}function Tt(ge){let{treeData:at,children:Ct}=ge;return at||(0,We.zn)(Ct)}const mt=(ge,at)=>{var{defaultExpandAll:Ct,defaultExpandParent:It,defaultExpandedKeys:Qe}=ge,et=kt(ge,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Lt=Ee.useRef(),dn=Ee.useRef(),_t=()=>{const{keyEntities:gt}=(0,We.I8)(Tt(et));let Xe;return Ct?Xe=Object.keys(gt):It?Xe=(0,Ue.r7)(et.expandedKeys||Qe||[],gt):Xe=et.expandedKeys||Qe,Xe},[tn,en]=Ee.useState(et.selectedKeys||et.defaultSelectedKeys||[]),[Jt,Vt]=Ee.useState(()=>_t());Ee.useEffect(()=>{"selectedKeys"in et&&en(et.selectedKeys)},[et.selectedKeys]),Ee.useEffect(()=>{"expandedKeys"in et&&Vt(et.expandedKeys)},[et.expandedKeys]);const be=(gt,Xe)=>{var wt;return"expandedKeys"in et||Vt(gt),(wt=et.onExpand)===null||wt===void 0?void 0:wt.call(et,gt,Xe)},ce=(gt,Xe)=>{var wt;const{multiple:Xt}=et,{node:bt,nativeEvent:$t}=Xe,{key:on=""}=bt,vt=Tt(et),Oe=Object.assign(Object.assign({},Xe),{selected:!0}),yt=($t==null?void 0:$t.ctrlKey)||($t==null?void 0:$t.metaKey),jt=$t==null?void 0:$t.shiftKey;let Zt;Xt&&yt?(Zt=gt,Lt.current=on,dn.current=Zt,Oe.selectedNodes=Be(vt,Zt)):Xt&&jt?(Zt=Array.from(new Set([].concat((0,ke.Z)(dn.current||[]),(0,ke.Z)(dt({treeData:vt,expandedKeys:Jt,startKey:on,endKey:Lt.current}))))),Oe.selectedNodes=Be(vt,Zt)):(Zt=[on],Lt.current=on,dn.current=Zt,Oe.selectedNodes=Be(vt,Zt)),(wt=et.onSelect)===null||wt===void 0||wt.call(et,Zt,Oe),"selectedKeys"in et||en(Zt)},{getPrefixCls:ue,direction:de}=Ee.useContext(ct.E_),{prefixCls:pe,className:se,showIcon:Le=!0,expandAction:ht="click"}=et,_e=kt(et,["prefixCls","className","showIcon","expandAction"]),Ne=ue("tree",pe),St=lt()(`${Ne}-directory`,{[`${Ne}-directory-rtl`]:de==="rtl"},se);return Ee.createElement(Ze,Object.assign({icon:He,ref:at,blockNode:!0},_e,{showIcon:Le,expandAction:ht,prefixCls:Ne,className:St,expandedKeys:Jt,selectedKeys:tn,onSelect:ce,onExpand:be}))};var zt=Ee.forwardRef(mt);const Bt=Ze;Bt.DirectoryTree=zt,Bt.TreeNode=oe.O;var De=Bt},20648:function(gn,Kt,ie){"use strict";ie.d(Kt,{TM:function(){return Re},Yk:function(){return Ie}});var oe=ie(36237),ke=ie(98447),Ce=ie(17313),Ye=ie(8378),ye=ie(37613),Ee=ie(83116);const he=new oe.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),xe=(lt,Ue)=>({[`.${lt}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Ue.motionDurationSlow}`}}}),we=(lt,Ue)=>({[`.${lt}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Ue.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Ue.lineWidthBold}px solid ${Ue.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Te=(lt,Ue)=>{const{treeCls:We,treeNodeCls:ct,treeNodePadding:tt,titleHeight:At,nodeSelectedBg:ut,nodeHoverBg:ot}=Ue,je=Ue.paddingXS;return{[We]:Object.assign(Object.assign({},(0,Ce.Wf)(Ue)),{background:Ue.colorBgContainer,borderRadius:Ue.borderRadius,transition:`background-color ${Ue.motionDurationSlow}`,[`&${We}-rtl`]:{[`${We}-switcher`]:{"&_close":{[`${We}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${We}-active-focused)`]:Object.assign({},(0,Ce.oN)(Ue)),[`${We}-list-holder-inner`]:{alignItems:"flex-start"},[`&${We}-block-node`]:{[`${We}-list-holder-inner`]:{alignItems:"stretch",[`${We}-node-content-wrapper`]:{flex:"auto"},[`${ct}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:tt,insetInlineStart:0,border:`1px solid ${Ue.colorPrimary}`,opacity:0,animationName:he,animationDuration:Ue.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ct}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${tt}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${We}-node-content-wrapper`]:{color:Ue.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${We}-node-content-wrapper`]:Object.assign({},(0,Ce.oN)(Ue)),[`&:not(${ct}-disabled).filter-node ${We}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${We}-draggable-icon`]:{flexShrink:0,width:At,lineHeight:`${At}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Ue.motionDurationSlow}`,[`${ct}:hover &`]:{opacity:.45}},[`&${ct}-disabled`]:{[`${We}-draggable-icon`]:{visibility:"hidden"}}}},[`${We}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:At}},[`${We}-draggable-icon`]:{visibility:"hidden"},[`${We}-switcher`]:Object.assign(Object.assign({},xe(lt,Ue)),{position:"relative",flex:"none",alignSelf:"stretch",width:At,margin:0,lineHeight:`${At}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${We}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Ue.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:At/2,bottom:-tt,marginInlineStart:-1,borderInlineEnd:`1px solid ${Ue.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:At/2*.8,height:At/2,borderBottom:`1px solid ${Ue.colorBorder}`,content:'""'}}}),[`${We}-checkbox`]:{top:"initial",marginInlineEnd:je},[`${We}-node-content-wrapper, ${We}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:At,margin:0,padding:`0 ${Ue.paddingXS/2}px`,color:"inherit",lineHeight:`${At}px`,background:"transparent",borderRadius:Ue.borderRadius,cursor:"pointer",transition:`all ${Ue.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:ot},[`&${We}-node-selected`]:{backgroundColor:ut},[`${We}-iconEle`]:{display:"inline-block",width:At,height:At,lineHeight:`${At}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${We}-unselectable ${We}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${We}-node-content-wrapper`]:Object.assign({lineHeight:`${At}px`,userSelect:"none"},we(lt,Ue)),[`${ct}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Ue.colorPrimary}`}},"&-show-line":{[`${We}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:At/2,bottom:-tt,borderInlineEnd:`1px solid ${Ue.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${We}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ct}-leaf-last`]:{[`${We}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${At/2}px !important`}}}}})}},qe=lt=>{const{treeCls:Ue,treeNodeCls:We,treeNodePadding:ct,directoryNodeSelectedBg:tt,directoryNodeSelectedColor:At}=lt;return{[`${Ue}${Ue}-directory`]:{[We]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ct,insetInlineStart:0,transition:`background-color ${lt.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:lt.controlItemBgHover}},"> *":{zIndex:1},[`${Ue}-switcher`]:{transition:`color ${lt.motionDurationMid}`},[`${Ue}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Ue}-node-selected`]:{color:At,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:tt},[`${Ue}-switcher`]:{color:At},[`${Ue}-node-content-wrapper`]:{color:At,background:"transparent"}}}}}},Ie=(lt,Ue)=>{const We=`.${lt}`,ct=`${We}-treenode`,tt=Ue.paddingXS/2,At=(0,ye.TS)(Ue,{treeCls:We,treeNodeCls:ct,treeNodePadding:tt});return[Te(lt,At),qe(At)]},Re=lt=>{const{controlHeightSM:Ue}=lt;return{titleHeight:Ue,nodeHoverBg:lt.controlItemBgHover,nodeSelectedBg:lt.controlItemBgActive}};Kt.ZP=(0,Ee.Z)("Tree",(lt,Ue)=>{let{prefixCls:We}=Ue;return[{[lt.componentCls]:(0,ke.C2)(`${We}-checkbox`,lt)},Ie(We,lt),(0,Ye.Z)(lt)]},lt=>{const{colorTextLightSolid:Ue,colorPrimary:We}=lt;return Object.assign(Object.assign({},Re(lt)),{directoryNodeSelectedColor:Ue,directoryNodeSelectedBg:We})})},71997:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return ct}});var oe=ie(54476),ke=ie(59301),Ce={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"},Ye=Ce,ye=ie(7657),Ee=function(At,ut){return ke.createElement(ye.Z,(0,oe.Z)({},At,{ref:ut,icon:Ye}))},he=ke.forwardRef(Ee),xe=he,we=ie(52671),Te=ie(58617),qe=ie(15075),Ie=ie(43531),Re=ie(92310),lt=ie.n(Re),Ue=ie(92343),ct=tt=>{const{prefixCls:At,switcherIcon:ut,treeNodeProps:ot,showLine:je}=tt,{isLeaf:Se,expanded:Fe,loading:Ze}=ot;if(Ze)return ke.createElement(Te.Z,{className:`${At}-switcher-loading-icon`});let xt;if(je&&typeof je=="object"&&(xt=je.showLeafIcon),Se){if(!je)return null;if(typeof xt!="boolean"&&xt){const Be=typeof xt=="function"?xt(ot):xt,kt=`${At}-switcher-line-custom-icon`;return(0,Ue.l$)(Be)?(0,Ue.Tm)(Be,{className:lt()(Be.props.className||"",kt)}):Be}return xt?ke.createElement(we.Z,{className:`${At}-switcher-line-icon`}):ke.createElement("span",{className:`${At}-switcher-leaf-line`})}const Je=`${At}-switcher-icon`,dt=typeof ut=="function"?ut(ot):ut;return(0,Ue.l$)(dt)?(0,Ue.Tm)(dt,{className:lt()(dt.props.className||"",Je)}):dt!==void 0?dt:je?Fe?ke.createElement(qe.Z,{className:`${At}-switcher-line-icon`}):ke.createElement(Ie.Z,{className:`${At}-switcher-line-icon`}):ke.createElement(xe,{className:Je})}},99498:function(gn,Kt,ie){(function(oe){oe(ie(89780))})(function(oe){oe.defineOption("placeholder","",function(xe,we,Te){var qe=Te&&Te!=oe.Init;if(we&&!qe)xe.on("blur",ye),xe.on("change",Ee),xe.on("swapDoc",Ee),oe.on(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose=function(){Ye(xe)}),Ee(xe);else if(!we&&qe){xe.off("blur",ye),xe.off("change",Ee),xe.off("swapDoc",Ee),oe.off(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose),ke(xe);var Ie=xe.getWrapperElement();Ie.className=Ie.className.replace(" CodeMirror-empty","")}we&&!xe.hasFocus()&&ye(xe)});function ke(xe){xe.state.placeholder&&(xe.state.placeholder.parentNode.removeChild(xe.state.placeholder),xe.state.placeholder=null)}function Ce(xe){ke(xe);var we=xe.state.placeholder=document.createElement("pre");we.style.cssText="height: 0; overflow: visible",we.style.direction=xe.getOption("direction"),we.className="CodeMirror-placeholder CodeMirror-line-like";var Te=xe.getOption("placeholder");typeof Te=="string"&&(Te=document.createTextNode(Te)),we.appendChild(Te),xe.display.lineSpace.insertBefore(we,xe.display.lineSpace.firstChild)}function Ye(xe){setTimeout(function(){var we=!1,Te=xe.getInputField();Te.nodeName=="TEXTAREA"?we=!Te.value:xe.lineCount()==1&&(we=!/[^\u200b]/.test(Te.querySelector(".CodeMirror-line").textContent)),we?Ce(xe):ke(xe)},20)}function ye(xe){he(xe)&&Ce(xe)}function Ee(xe){var we=xe.getWrapperElement(),Te=he(xe);we.className=we.className.replace(" CodeMirror-empty","")+(Te?" CodeMirror-empty":""),Te?Ce(xe):ke(xe)}function he(xe){return xe.lineCount()===1&&xe.getLine(0)===""}})},25717:function(gn,Kt,ie){(function(oe){oe(ie(89780))})(function(oe){var ke={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ce=oe.Pos;oe.defineOption("autoCloseBrackets",!1,function(Ue,We,ct){ct&&ct!=oe.Init&&(Ue.removeKeyMap(ye),Ue.state.closeBrackets=null),We&&(Ee(Ye(We,"pairs")),Ue.state.closeBrackets=We,Ue.addKeyMap(ye))});function Ye(Ue,We){return We=="pairs"&&typeof Ue=="string"?Ue:typeof Ue=="object"&&Ue[We]!=null?Ue[We]:ke[We]}var ye={Backspace:we,Enter:Te};function Ee(Ue){for(var We=0;We<Ue.length;We++){var ct=Ue.charAt(We),tt="'"+ct+"'";ye[tt]||(ye[tt]=he(ct))}}Ee(ke.pairs+"`");function he(Ue){return function(We){return Ie(We,Ue)}}function xe(Ue){var We=Ue.state.closeBrackets;if(!We||We.override)return We;var ct=Ue.getModeAt(Ue.getCursor());return ct.closeBrackets||We}function we(Ue){var We=xe(Ue);if(!We||Ue.getOption("disableInput"))return oe.Pass;for(var ct=Ye(We,"pairs"),tt=Ue.listSelections(),At=0;At<tt.length;At++){if(!tt[At].empty())return oe.Pass;var ut=Re(Ue,tt[At].head);if(!ut||ct.indexOf(ut)%2!=0)return oe.Pass}for(var At=tt.length-1;At>=0;At--){var ot=tt[At].head;Ue.replaceRange("",Ce(ot.line,ot.ch-1),Ce(ot.line,ot.ch+1),"+delete")}}function Te(Ue){var We=xe(Ue),ct=We&&Ye(We,"explode");if(!ct||Ue.getOption("disableInput"))return oe.Pass;for(var tt=Ue.listSelections(),At=0;At<tt.length;At++){if(!tt[At].empty())return oe.Pass;var ut=Re(Ue,tt[At].head);if(!ut||ct.indexOf(ut)%2!=0)return oe.Pass}Ue.operation(function(){var ot=Ue.lineSeparator()||`
|
|
|
`;Ue.replaceSelection(ot+ot,null),Ue.execCommand("goCharLeft"),tt=Ue.listSelections();for(var je=0;je<tt.length;je++){var Se=tt[je].head.line;Ue.indentLine(Se,null,!0),Ue.indentLine(Se+1,null,!0)}})}function qe(Ue){var We=oe.cmpPos(Ue.anchor,Ue.head)>0;return{anchor:new Ce(Ue.anchor.line,Ue.anchor.ch+(We?-1:1)),head:new Ce(Ue.head.line,Ue.head.ch+(We?1:-1))}}function Ie(Ue,We){var ct=xe(Ue);if(!ct||Ue.getOption("disableInput"))return oe.Pass;var tt=Ye(ct,"pairs"),At=tt.indexOf(We);if(At==-1)return oe.Pass;for(var ut=Ye(ct,"closeBefore"),ot=Ye(ct,"triples"),je=tt.charAt(At+1)==We,Se=Ue.listSelections(),Fe=At%2==0,Ze,xt=0;xt<Se.length;xt++){var Je=Se[xt],dt=Je.head,Be,kt=Ue.getRange(dt,Ce(dt.line,dt.ch+1));if(Fe&&!Je.empty())Be="surround";else if((je||!Fe)&&kt==We)je&<(Ue,dt)?Be="both":ot.indexOf(We)>=0&&Ue.getRange(dt,Ce(dt.line,dt.ch+3))==We+We+We?Be="skipThree":Be="skip";else if(je&&dt.ch>1&&ot.indexOf(We)>=0&&Ue.getRange(Ce(dt.line,dt.ch-2),dt)==We+We){if(dt.ch>2&&/\bstring/.test(Ue.getTokenTypeAt(Ce(dt.line,dt.ch-2))))return oe.Pass;Be="addFour"}else if(je){var He=dt.ch==0?" ":Ue.getRange(Ce(dt.line,dt.ch-1),dt);if(!oe.isWordChar(kt)&&He!=We&&!oe.isWordChar(He))Be="both";else return oe.Pass}else if(Fe&&(kt.length===0||/\s/.test(kt)||ut.indexOf(kt)>-1))Be="both";else return oe.Pass;if(!Ze)Ze=Be;else if(Ze!=Be)return oe.Pass}var Tt=At%2?tt.charAt(At-1):We,mt=At%2?We:tt.charAt(At+1);Ue.operation(function(){if(Ze=="skip")Ue.execCommand("goCharRight");else if(Ze=="skipThree")for(var Et=0;Et<3;Et++)Ue.execCommand("goCharRight");else if(Ze=="surround"){for(var zt=Ue.getSelections(),Et=0;Et<zt.length;Et++)zt[Et]=Tt+zt[Et]+mt;Ue.replaceSelections(zt,"around"),zt=Ue.listSelections().slice();for(var Et=0;Et<zt.length;Et++)zt[Et]=qe(zt[Et]);Ue.setSelections(zt)}else Ze=="both"?(Ue.replaceSelection(Tt+mt,null),Ue.triggerElectric(Tt+mt),Ue.execCommand("goCharLeft")):Ze=="addFour"&&(Ue.replaceSelection(Tt+Tt+Tt+Tt,"before"),Ue.execCommand("goCharRight"))})}function Re(Ue,We){var ct=Ue.getRange(Ce(We.line,We.ch-1),Ce(We.line,We.ch+1));return ct.length==2?ct:null}function lt(Ue,We){var ct=Ue.getTokenAt(Ce(We.line,We.ch+1));return/\bstring/.test(ct.type)&&ct.start==We.ch&&(We.ch==0||!/\bstring/.test(Ue.getTokenTypeAt(We)))}})},6313:function(gn,Kt,ie){(function(oe){oe(ie(89780),ie(32855))})(function(oe){oe.defineOption("autoCloseTags",!1,function(we,Te,qe){if(qe!=oe.Init&&qe&&we.removeKeyMap("autoCloseTags"),!!Te){var Ie={name:"autoCloseTags"};(typeof Te!="object"||Te.whenClosing!==!1)&&(Ie["'/'"]=function(Re){return Ee(Re)}),(typeof Te!="object"||Te.whenOpening!==!1)&&(Ie["'>'"]=function(Re){return Ye(Re)}),we.addKeyMap(Ie)}});var ke=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ce=["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 Ye(we){if(we.getOption("disableInput"))return oe.Pass;for(var Te=we.listSelections(),qe=[],Ie=we.getOption("autoCloseTags"),Re=0;Re<Te.length;Re++){if(!Te[Re].empty())return oe.Pass;var lt=Te[Re].head,Ue=we.getTokenAt(lt),We=oe.innerMode(we.getMode(),Ue.state),ct=We.state,tt=We.mode.xmlCurrentTag&&We.mode.xmlCurrentTag(ct),At=tt&&tt.name;if(!At)return oe.Pass;var ut=We.mode.configuration=="html",ot=typeof Ie=="object"&&Ie.dontCloseTags||ut&&ke,je=typeof Ie=="object"&&Ie.indentTags||ut&&Ce;Ue.end>lt.ch&&(At=At.slice(0,At.length-Ue.end+lt.ch));var Se=At.toLowerCase();if(!At||Ue.type=="string"&&(Ue.end!=lt.ch||!/[\"\']/.test(Ue.string.charAt(Ue.string.length-1))||Ue.string.length==1)||Ue.type=="tag"&&tt.close||Ue.string.indexOf("/")==lt.ch-Ue.start-1||ot&&he(ot,Se)>-1||xe(we,We.mode.xmlCurrentContext&&We.mode.xmlCurrentContext(ct)||[],At,lt,!0))return oe.Pass;var Fe=typeof Ie=="object"&&Ie.emptyTags;if(Fe&&he(Fe,At)>-1){qe[Re]={text:"/>",newPos:oe.Pos(lt.line,lt.ch+2)};continue}var Ze=je&&he(je,Se)>-1;qe[Re]={indent:Ze,text:">"+(Ze?`
|
|
|
|
|
|
`:"")+"</"+At+">",newPos:Ze?oe.Pos(lt.line+1,0):oe.Pos(lt.line,lt.ch+1)}}for(var xt=typeof Ie=="object"&&Ie.dontIndentOnAutoClose,Re=Te.length-1;Re>=0;Re--){var Je=qe[Re];we.replaceRange(Je.text,Te[Re].head,Te[Re].anchor,"+insert");var dt=we.listSelections().slice(0);dt[Re]={head:Je.newPos,anchor:Je.newPos},we.setSelections(dt),!xt&&Je.indent&&(we.indentLine(Je.newPos.line,null,!0),we.indentLine(Je.newPos.line+1,null,!0))}}function ye(we,Te){for(var qe=we.listSelections(),Ie=[],Re=Te?"/":"</",lt=we.getOption("autoCloseTags"),Ue=typeof lt=="object"&<.dontIndentOnSlash,We=0;We<qe.length;We++){if(!qe[We].empty())return oe.Pass;var ct=qe[We].head,tt=we.getTokenAt(ct),At=oe.innerMode(we.getMode(),tt.state),ut=At.state;if(Te&&(tt.type=="string"||tt.string.charAt(0)!="<"||tt.start!=ct.ch-1))return oe.Pass;var ot,je=At.mode.name!="xml"&&we.getMode().name=="htmlmixed";if(je&&At.mode.name=="javascript")ot=Re+"script";else if(je&&At.mode.name=="css")ot=Re+"style";else{var Se=At.mode.xmlCurrentContext&&At.mode.xmlCurrentContext(ut);if(!Se||Se.length&&xe(we,Se,Se[Se.length-1],ct))return oe.Pass;ot=Re+Se[Se.length-1]}we.getLine(ct.line).charAt(tt.end)!=">"&&(ot+=">"),Ie[We]=ot}if(we.replaceSelections(Ie),qe=we.listSelections(),!Ue)for(var We=0;We<qe.length;We++)(We==qe.length-1||qe[We].head.line<qe[We+1].head.line)&&we.indentLine(qe[We].head.line)}function Ee(we){return we.getOption("disableInput")?oe.Pass:ye(we,!0)}oe.commands.closeTag=function(we){return ye(we)};function he(we,Te){if(we.indexOf)return we.indexOf(Te);for(var qe=0,Ie=we.length;qe<Ie;++qe)if(we[qe]==Te)return qe;return-1}function xe(we,Te,qe,Ie,Re){if(!oe.scanForClosingTag)return!1;var lt=Math.min(we.lastLine()+1,Ie.line+500),Ue=oe.scanForClosingTag(we,Ie,null,lt);if(!Ue||Ue.tag!=qe)return!1;for(var We=Re?1:0,ct=Te.length-1;ct>=0&&Te[ct]==qe;ct--)++We;Ie=Ue.to;for(var ct=1;ct<We;ct++){var tt=oe.scanForClosingTag(we,Ie,null,lt);if(!tt||tt.tag!=qe)return!1;Ie=tt.to}return!0}})},32855:function(gn,Kt,ie){(function(oe){oe(ie(89780))})(function(oe){"use strict";var ke=oe.Pos;function Ce(ct,tt){return ct.line-tt.line||ct.ch-tt.ch}var Ye="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",ye=Ye+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ee=new RegExp("<(/?)(["+Ye+"]["+ye+"]*)","g");function he(ct,tt,At,ut){this.line=tt,this.ch=At,this.cm=ct,this.text=ct.getLine(tt),this.min=ut?Math.max(ut.from,ct.firstLine()):ct.firstLine(),this.max=ut?Math.min(ut.to-1,ct.lastLine()):ct.lastLine()}function xe(ct,tt){var At=ct.cm.getTokenTypeAt(ke(ct.line,tt));return At&&/\btag\b/.test(At)}function we(ct){if(!(ct.line>=ct.max))return ct.ch=0,ct.text=ct.cm.getLine(++ct.line),!0}function Te(ct){if(!(ct.line<=ct.min))return ct.text=ct.cm.getLine(--ct.line),ct.ch=ct.text.length,!0}function qe(ct){for(;;){var tt=ct.text.indexOf(">",ct.ch);if(tt==-1){if(we(ct))continue;return}if(!xe(ct,tt+1)){ct.ch=tt+1;continue}var At=ct.text.lastIndexOf("/",tt),ut=At>-1&&!/\S/.test(ct.text.slice(At+1,tt));return ct.ch=tt+1,ut?"selfClose":"regular"}}function Ie(ct){for(;;){var tt=ct.ch?ct.text.lastIndexOf("<",ct.ch-1):-1;if(tt==-1){if(Te(ct))continue;return}if(!xe(ct,tt+1)){ct.ch=tt;continue}Ee.lastIndex=tt,ct.ch=tt;var At=Ee.exec(ct.text);if(At&&At.index==tt)return At}}function Re(ct){for(;;){Ee.lastIndex=ct.ch;var tt=Ee.exec(ct.text);if(!tt){if(we(ct))continue;return}if(!xe(ct,tt.index+1)){ct.ch=tt.index+1;continue}return ct.ch=tt.index+tt[0].length,tt}}function lt(ct){for(;;){var tt=ct.ch?ct.text.lastIndexOf(">",ct.ch-1):-1;if(tt==-1){if(Te(ct))continue;return}if(!xe(ct,tt+1)){ct.ch=tt;continue}var At=ct.text.lastIndexOf("/",tt),ut=At>-1&&!/\S/.test(ct.text.slice(At+1,tt));return ct.ch=tt+1,ut?"selfClose":"regular"}}function Ue(ct,tt){for(var At=[];;){var ut=Re(ct),ot,je=ct.line,Se=ct.ch-(ut?ut[0].length:0);if(!ut||!(ot=qe(ct)))return;if(ot!="selfClose")if(ut[1]){for(var Fe=At.length-1;Fe>=0;--Fe)if(At[Fe]==ut[2]){At.length=Fe;break}if(Fe<0&&(!tt||tt==ut[2]))return{tag:ut[2],from:ke(je,Se),to:ke(ct.line,ct.ch)}}else At.push(ut[2])}}function We(ct,tt){for(var At=[];;){var ut=lt(ct);if(!ut)return;if(ut=="selfClose"){Ie(ct);continue}var ot=ct.line,je=ct.ch,Se=Ie(ct);if(!Se)return;if(Se[1])At.push(Se[2]);else{for(var Fe=At.length-1;Fe>=0;--Fe)if(At[Fe]==Se[2]){At.length=Fe;break}if(Fe<0&&(!tt||tt==Se[2]))return{tag:Se[2],from:ke(ct.line,ct.ch),to:ke(ot,je)}}}}oe.registerHelper("fold","xml",function(ct,tt){for(var At=new he(ct,tt.line,0);;){var ut=Re(At);if(!ut||At.line!=tt.line)return;var ot=qe(At);if(!ot)return;if(!ut[1]&&ot!="selfClose"){var je=ke(At.line,At.ch),Se=Ue(At,ut[2]);return Se&&Ce(Se.from,je)>0?{from:je,to:Se.from}:null}}}),oe.findMatchingTag=function(ct,tt,At){var ut=new he(ct,tt.line,tt.ch,At);if(!(ut.text.indexOf(">")==-1&&ut.text.indexOf("<")==-1)){var ot=qe(ut),je=ot&&ke(ut.line,ut.ch),Se=ot&&Ie(ut);if(!(!ot||!Se||Ce(ut,tt)>0)){var Fe={from:ke(ut.line,ut.ch),to:je,tag:Se[2]};return ot=="selfClose"?{open:Fe,close:null,at:"open"}:Se[1]?{open:We(ut,Se[2]),close:Fe,at:"close"}:(ut=new he(ct,je.line,je.ch,At),{open:Fe,close:Ue(ut,Se[2]),at:"open"})}}},oe.findEnclosingTag=function(ct,tt,At,ut){for(var ot=new he(ct,tt.line,tt.ch,At);;){var je=We(ot,ut);if(!je)break;var Se=new he(ct,tt.line,tt.ch,At),Fe=Ue(Se,je.tag);if(Fe)return{open:je,close:Fe}}},oe.scanForClosingTag=function(ct,tt,At,ut){var ot=new he(ct,tt.line,tt.ch,ut?{from:0,to:ut}:null);return Ue(ot,At)}})},89780:function(gn){(function(Kt,ie){gn.exports=ie()})(this,function(){"use strict";var Kt=navigator.userAgent,ie=navigator.platform,oe=/gecko\/\d/i.test(Kt),ke=/MSIE \d/.test(Kt),Ce=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Kt),Ye=/Edge\/(\d+)/.exec(Kt),ye=ke||Ce||Ye,Ee=ye&&(ke?document.documentMode||6:+(Ye||Ce)[1]),he=!Ye&&/WebKit\//.test(Kt),xe=he&&/Qt\/\d+\.\d+/.test(Kt),we=!Ye&&/Chrome\//.test(Kt),Te=/Opera\//.test(Kt),qe=/Apple Computer/.test(navigator.vendor),Ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Kt),Re=/PhantomJS/.test(Kt),lt=!Ye&&/AppleWebKit/.test(Kt)&&/Mobile\/\w+/.test(Kt),Ue=/Android/.test(Kt),We=lt||Ue||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Kt),ct=lt||/Mac/.test(ie),tt=/\bCrOS\b/.test(Kt),At=/win/i.test(ie),ut=Te&&Kt.match(/Version\/(\d*\.\d*)/);ut&&(ut=Number(ut[1])),ut&&ut>=15&&(Te=!1,he=!0);var ot=ct&&(xe||Te&&(ut==null||ut<12.11)),je=oe||ye&&Ee>=9;function Se(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var Fe=function(x,z){var ne=x.className,te=Se(z).exec(ne);if(te){var ae=ne.slice(te.index+te[0].length);x.className=ne.slice(0,te.index)+(ae?te[1]+ae:"")}};function Ze(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function xt(x,z){return Ze(x).appendChild(z)}function Je(x,z,ne,te){var ae=document.createElement(x);if(ne&&(ae.className=ne),te&&(ae.style.cssText=te),typeof z=="string")ae.appendChild(document.createTextNode(z));else if(z)for(var fe=0;fe<z.length;++fe)ae.appendChild(z[fe]);return ae}function dt(x,z,ne,te){var ae=Je(x,z,ne,te);return ae.setAttribute("role","presentation"),ae}var Be;document.createRange?Be=function(x,z,ne,te){var ae=document.createRange();return ae.setEnd(te||x,ne),ae.setStart(x,z),ae}:Be=function(x,z,ne){var te=document.body.createTextRange();try{te.moveToElementText(x.parentNode)}catch(ae){return te}return te.collapse(!0),te.moveEnd("character",ne),te.moveStart("character",z),te};function kt(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 He(){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 Tt(x,z){var ne=x.className;Se(z).test(ne)||(x.className+=(ne?" ":"")+z)}function mt(x,z){for(var ne=x.split(" "),te=0;te<ne.length;te++)ne[te]&&!Se(ne[te]).test(z)&&(z+=" "+ne[te]);return z}var Et=function(x){x.select()};lt?Et=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:ye&&(Et=function(x){try{x.select()}catch(z){}});function zt(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function Bt(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 De(x,z,ne,te,ae){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var fe=te||0,Me=ae||0;;){var ze=x.indexOf(" ",fe);if(ze<0||ze>=z)return Me+(z-fe);Me+=ze-fe,Me+=ne-Me%ne,fe=ze+1}}var ge=function(){this.id=null,this.f=null,this.time=0,this.handler=zt(this.onTimeout,this)};ge.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},ge.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 at(x,z){for(var ne=0;ne<x.length;++ne)if(x[ne]==z)return ne;return-1}var Ct=50,It={toString:function(){return"CodeMirror.Pass"}},Qe={scroll:!1},et={origin:"*mouse"},Lt={origin:"+move"};function dn(x,z,ne){for(var te=0,ae=0;;){var fe=x.indexOf(" ",te);fe==-1&&(fe=x.length);var Me=fe-te;if(fe==x.length||ae+Me>=z)return te+Math.min(Me,z-ae);if(ae+=fe-te,ae+=ne-ae%ne,te=fe+1,ae>=z)return te}}var _t=[""];function tn(x){for(;_t.length<=x;)_t.push(en(_t)+" ");return _t[x]}function en(x){return x[x.length-1]}function Jt(x,z){for(var ne=[],te=0;te<x.length;te++)ne[te]=z(x[te],te);return ne}function Vt(x,z,ne){for(var te=0,ae=ne(z);te<x.length&&ne(x[te])<=ae;)te++;x.splice(te,0,z)}function be(){}function ce(x,z){var ne;return Object.create?ne=Object.create(x):(be.prototype=x,ne=new be),z&&Bt(z,ne),ne}var ue=/[\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()||ue.test(x))}function pe(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 Le=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ht(x){return x.charCodeAt(0)>=768&&Le.test(x)}function _e(x,z,ne){for(;(ne<0?z>0:z<x.length)&&ht(x.charAt(z));)z+=ne;return z}function Ne(x,z,ne){for(var te=z>ne?-1:1;;){if(z==ne)return z;var ae=(z+ne)/2,fe=te<0?Math.ceil(ae):Math.floor(ae);if(fe==z)return x(fe)?z:ne;x(fe)?ne=fe:z=fe+te}}function St(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ae=!1,fe=0;fe<x.length;++fe){var Me=x[fe];(Me.from<ne&&Me.to>z||z==ne&&Me.to==z)&&(te(Math.max(Me.from,z),Math.min(Me.to,ne),Me.level==1?"rtl":"ltr",fe),ae=!0)}ae||te(z,ne,"ltr")}var gt=null;function Xe(x,z,ne){var te;gt=null;for(var ae=0;ae<x.length;++ae){var fe=x[ae];if(fe.from<z&&fe.to>z)return ae;fe.to==z&&(fe.from!=fe.to&&ne=="before"?te=ae:gt=ae),fe.from==z&&(fe.from!=fe.to&&ne!="before"?te=ae:gt=ae)}return te!=null?te:gt}var wt=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(ft){return ft<=247?x.charAt(ft):1424<=ft&&ft<=1524?"R":1536<=ft&&ft<=1785?z.charAt(ft-1536):1774<=ft&&ft<=2220?"r":8192<=ft&&ft<=8203?"w":ft==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ae=/[stwN]/,fe=/[LRr]/,Me=/[Lb1n]/,ze=/[1n]/;function Ge(ft,Gt,an){this.level=ft,this.from=Gt,this.to=an}return function(ft,Gt){var an=Gt=="ltr"?"L":"R";if(ft.length==0||Gt=="ltr"&&!te.test(ft))return!1;for(var Bn=ft.length,kn=[],ar=0;ar<Bn;++ar)kn.push(ne(ft.charCodeAt(ar)));for(var Mr=0,ri=an;Mr<Bn;++Mr){var wi=kn[Mr];wi=="m"?kn[Mr]=ri:ri=wi}for(var _i=0,yi=an;_i<Bn;++_i){var zi=kn[_i];zi=="1"&&yi=="r"?kn[_i]="n":fe.test(zi)&&(yi=zi,zi=="r"&&(kn[_i]="R"))}for(var sa=1,ga=kn[0];sa<Bn-1;++sa){var Ua=kn[sa];Ua=="+"&&ga=="1"&&kn[sa+1]=="1"?kn[sa]="1":Ua==","&&ga==kn[sa+1]&&(ga=="1"||ga=="n")&&(kn[sa]=ga),ga=Ua}for(var Qo=0;Qo<Bn;++Qo){var il=kn[Qo];if(il==",")kn[Qo]="N";else if(il=="%"){var Es=void 0;for(Es=Qo+1;Es<Bn&&kn[Es]=="%";++Es);for(var Dl=Qo&&kn[Qo-1]=="!"||Es<Bn&&kn[Es]=="1"?"1":"N",Il=Qo;Il<Es;++Il)kn[Il]=Dl;Qo=Es-1}}for(var Us=0,Ll=an;Us<Bn;++Us){var Na=kn[Us];Ll=="L"&&Na=="1"?kn[Us]="L":fe.test(Na)&&(Ll=Na)}for(var Ls=0;Ls<Bn;++Ls)if(ae.test(kn[Ls])){var Ms=void 0;for(Ms=Ls+1;Ms<Bn&&ae.test(kn[Ms]);++Ms);for(var Ns=(Ls?kn[Ls-1]:an)=="L",js=(Ms<Bn?kn[Ms]:an)=="L",uc=Ns==js?Ns?"L":"R":an,Ol=Ls;Ol<Ms;++Ol)kn[Ol]=uc;Ls=Ms-1}for(var ul=[],Do,Js=0;Js<Bn;)if(Me.test(kn[Js])){var cd=Js;for(++Js;Js<Bn&&Me.test(kn[Js]);++Js);ul.push(new Ge(0,cd,Js))}else{var _u=Js,Vu=ul.length,vu=Gt=="rtl"?1:0;for(++Js;Js<Bn&&kn[Js]!="L";++Js);for(var Vs=_u;Vs<Js;)if(ze.test(kn[Vs])){_u<Vs&&(ul.splice(Vu,0,new Ge(1,_u,Vs)),Vu+=vu);var cc=Vs;for(++Vs;Vs<Js&&ze.test(kn[Vs]);++Vs);ul.splice(Vu,0,new Ge(2,cc,Vs)),Vu+=vu,_u=Vs}else++Vs;_u<Js&&ul.splice(Vu,0,new Ge(1,_u,Js))}return Gt=="ltr"&&(ul[0].level==1&&(Do=ft.match(/^\s+/))&&(ul[0].from=Do[0].length,ul.unshift(new Ge(0,0,Do[0].length))),en(ul).level==1&&(Do=ft.match(/\s+$/))&&(en(ul).to-=Do[0].length,ul.push(new Ge(0,Bn-Do[0].length,Bn)))),Gt=="rtl"?ul.reverse():ul}}();function Xt(x,z){var ne=x.order;return ne==null&&(ne=x.order=wt(x.text,z)),ne}var bt=[],$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]||bt).concat(ne)}};function on(x,z){return x._handlers&&x._handlers[z]||bt}function vt(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,ae=te&&te[z];if(ae){var fe=at(ae,ne);fe>-1&&(te[z]=ae.slice(0,fe).concat(ae.slice(fe+1)))}}}function Oe(x,z){var ne=on(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ae=0;ae<ne.length;++ae)ne[ae].apply(null,te)}function yt(x,z,ne){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),Oe(x,ne||z.type,x,z),Dn(z)||z.codemirrorIgnore}function jt(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)at(ne,z[te])==-1&&ne.push(z[te])}function Zt(x,z){return on(x,z).length>0}function nn(x){x.prototype.on=function(z,ne){$t(this,z,ne)},x.prototype.off=function(z,ne){vt(this,z,ne)}}function Cn(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function In(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function Dn(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function Kn(x){Cn(x),In(x)}function Vn(x){return x.target||x.srcElement}function _n(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),ct&&x.ctrlKey&&z==1&&(z=3),z}var or=function(){if(ye&&Ee<9)return!1;var x=Je("div");return"draggable"in x||"dragDrop"in x}(),wr;function Tr(x){if(wr==null){var z=Je("span","\u200B");xt(x,Je("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(wr=z.offsetWidth<=1&&z.offsetHeight>2&&!(ye&&Ee<8))}var ne=wr?Je("span","\u200B"):Je("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var Yn;function hr(x){if(Yn!=null)return Yn;var z=xt(x,document.createTextNode("A\u062EA")),ne=Be(z,0,1).getBoundingClientRect(),te=Be(z,1,2).getBoundingClientRect();return Ze(x),!ne||ne.left==ne.right?!1:Yn=te.right-ne.right<3}var kr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(x){for(var z=0,ne=[],te=x.length;z<=te;){var ae=x.indexOf(`
|
|
|
`,z);ae==-1&&(ae=x.length);var fe=x.slice(z,x.charAt(ae-1)=="\r"?ae-1:ae),Me=fe.indexOf("\r");Me!=-1?(ne.push(fe.slice(0,Me)),z+=Me+1):(ne.push(fe),z=ae+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},Qn=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(z){return!1}}:function(x){var z;try{z=x.ownerDocument.selection.createRange()}catch(ne){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},Fr=function(){var x=Je("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),ci=null;function Cr(x){if(ci!=null)return ci;var z=xt(x,Je("span","x")),ne=z.getBoundingClientRect(),te=Be(z,0,1).getBoundingClientRect();return ci=Math.abs(ne.left-te.left)>1}var pi={},ai={};function nr(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),pi[x]=z}function yr(x,z){ai[x]=z}function Hn(x){if(typeof x=="string"&&ai.hasOwnProperty(x))x=ai[x];else if(x&&typeof x.name=="string"&&ai.hasOwnProperty(x.name)){var z=ai[x.name];typeof z=="string"&&(z={name:z}),x=ce(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return Hn("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return Hn("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Gn(x,z){z=Hn(z);var ne=pi[z.name];if(!ne)return Gn(x,"text/plain");var te=ne(x,z);if(Or.hasOwnProperty(z.name)){var ae=Or[z.name];for(var fe in ae)ae.hasOwnProperty(fe)&&(te.hasOwnProperty(fe)&&(te["_"+fe]=te[fe]),te[fe]=ae[fe])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var Me in z.modeProps)te[Me]=z.modeProps[Me];return te}var Or={};function Rt(x,z){var ne=Or.hasOwnProperty(x)?Or[x]:Or[x]={};Bt(z,ne)}function Ke(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var ne={};for(var te in z){var ae=z[te];ae instanceof Array&&(ae=ae.concat([])),ne[te]=ae}return ne}function nt(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 rt(x,z,ne){return x.startState?x.startState(z,ne):!0}var it=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};it.prototype.eol=function(){return this.pos>=this.string.length},it.prototype.sol=function(){return this.pos==this.lineStart},it.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},it.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},it.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},it.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},it.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},it.prototype.skipToEnd=function(){this.pos=this.string.length},it.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},it.prototype.backUp=function(x){this.pos-=x},it.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=De(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?De(this.string,this.lineStart,this.tabSize):0)},it.prototype.indentation=function(){return De(this.string,null,this.tabSize)-(this.lineStart?De(this.string,this.lineStart,this.tabSize):0)},it.prototype.match=function(x,z,ne){if(typeof x=="string"){var te=function(Me){return ne?Me.toLowerCase():Me},ae=this.string.substr(this.pos,x.length);if(te(ae)==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)}},it.prototype.current=function(){return this.string.slice(this.start,this.pos)},it.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},it.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},it.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function Dt(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 ae=ne.children[te],fe=ae.chunkSize();if(z<fe){ne=ae;break}z-=fe}return ne.lines[z]}function Ht(x,z,ne){var te=[],ae=z.line;return x.iter(z.line,ne.line+1,function(fe){var Me=fe.text;ae==ne.line&&(Me=Me.slice(0,ne.ch)),ae==z.line&&(Me=Me.slice(z.ch)),te.push(Me),++ae}),te}function sn(x,z,ne){var te=[];return x.iter(z,ne,function(ae){te.push(ae.text)}),te}function qt(x,z){var ne=z-x.height;if(ne)for(var te=x;te;te=te.parent)te.height+=ne}function mn(x){if(x.parent==null)return null;for(var z=x.parent,ne=at(z.lines,x),te=z.parent;te;z=te,te=te.parent)for(var ae=0;te.children[ae]!=z;++ae)ne+=te.children[ae].chunkSize();return ne+z.first}function An(x,z){var ne=x.first;e:do{for(var te=0;te<x.children.length;++te){var ae=x.children[te],fe=ae.height;if(z<fe){x=ae;continue e}z-=fe,ne+=ae.chunkSize()}return ne}while(!x.lines);for(var Me=0;Me<x.lines.length;++Me){var ze=x.lines[Me],Ge=ze.height;if(z<Ge)break;z-=Ge}return ne+Me}function Tn(x,z){return z>=x.first&&z<x.first+x.size}function Pn(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 wn(x,z){return x.line-z.line||x.ch-z.ch}function Xn(x,z){return x.sticky==z.sticky&&wn(x,z)==0}function Wn(x){return Qt(x.line,x.ch)}function sr(x,z){return wn(x,z)<0?z:x}function Jn(x,z){return wn(x,z)<0?x:z}function Ar(x,z){return Math.max(x.first,Math.min(z,x.first+x.size-1))}function Fn(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,Dt(x,ne).text.length):dr(z,Dt(x,z.line).text.length)}function dr(x,z){var ne=x.ch;return ne==null||ne>z?Qt(x.line,z):ne<0?Qt(x.line,0):x}function Ot(x,z){for(var ne=[],te=0;te<z.length;te++)ne[te]=Fn(x,z[te]);return ne}var cn=function(x,z){this.state=x,this.lookAhead=z},vn=function(x,z,ne,te){this.state=z,this.doc=x,this.line=ne,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};vn.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},vn.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}},vn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},vn.fromSaved=function(x,z,ne){return z instanceof cn?new vn(x,Ke(x.mode,z.state),ne,z.lookAhead):new vn(x,Ke(x.mode,z),ne)},vn.prototype.save=function(x){var z=x!==!1?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new cn(z,this.maxLookAhead):z};function Mn(x,z,ne,te){var ae=[x.state.modeGen],fe={};di(x,z.text,x.doc.mode,ne,function(ft,Gt){return ae.push(ft,Gt)},fe,te);for(var Me=ne.state,ze=function(ft){ne.baseTokens=ae;var Gt=x.state.overlays[ft],an=1,Bn=0;ne.state=!0,di(x,z.text,Gt.mode,ne,function(kn,ar){for(var Mr=an;Bn<kn;){var ri=ae[an];ri>kn&&ae.splice(an,1,kn,ae[an+1],ri),an+=2,Bn=Math.min(kn,ri)}if(ar)if(Gt.opaque)ae.splice(Mr,an-Mr,kn,"overlay "+ar),an=Mr+2;else for(;Mr<an;Mr+=2){var wi=ae[Mr+1];ae[Mr+1]=(wi?wi+" ":"")+"overlay "+ar}},fe),ne.state=Me,ne.baseTokens=null,ne.baseTokenPos=1},Ge=0;Ge<x.state.overlays.length;++Ge)ze(Ge);return{styles:ae,classes:fe.bgClass||fe.textClass?fe:null}}function yn(x,z,ne){if(!z.styles||z.styles[0]!=x.state.modeGen){var te=Sn(x,mn(z)),ae=z.text.length>x.options.maxHighlightLength&&Ke(x.doc.mode,te.state),fe=Mn(x,z,te);ae&&(te.state=ae),z.stateAfter=te.save(!ae),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 Sn(x,z,ne){var te=x.doc,ae=x.display;if(!te.mode.startState)return new vn(te,!0,z);var fe=zr(x,z,ne),Me=fe>te.first&&Dt(te,fe-1).stateAfter,ze=Me?vn.fromSaved(te,Me,fe):new vn(te,rt(te.mode),fe);return te.iter(fe,z,function(Ge){bn(x,Ge.text,ze);var ft=ze.line;Ge.stateAfter=ft==z-1||ft%5==0||ft>=ae.viewFrom&&ft<ae.viewTo?ze.save():null,ze.nextLine()}),ne&&(te.modeFrontier=ze.line),ze}function bn(x,z,ne,te){var ae=x.doc.mode,fe=new it(z,x.options.tabSize,ne);for(fe.start=fe.pos=te||0,z==""&&zn(ae,ne.state);!fe.eol();)Zn(ae,fe,ne.state),fe.start=fe.pos}function zn(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var ne=nt(x,z);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}}function Zn(x,z,ne,te){for(var ae=0;ae<10;ae++){te&&(te[0]=nt(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 qn=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function _r(x,z,ne,te){var ae=x.doc,fe=ae.mode,Me;z=Fn(ae,z);var ze=Dt(ae,z.line),Ge=Sn(x,z.line,ne),ft=new it(ze.text,x.options.tabSize,Ge),Gt;for(te&&(Gt=[]);(te||ft.pos<z.ch)&&!ft.eol();)ft.start=ft.pos,Me=Zn(fe,ft,Ge.state),te&&Gt.push(new qn(ft,Me,Ke(ae.mode,Ge.state)));return te?Gt:new qn(ft,Me,Ge.state)}function ei(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 di(x,z,ne,te,ae,fe,Me){var ze=ne.flattenSpans;ze==null&&(ze=x.options.flattenSpans);var Ge=0,ft=null,Gt=new it(z,x.options.tabSize,te),an,Bn=x.options.addModeClass&&[null];for(z==""&&ei(zn(ne,te.state),fe);!Gt.eol();){if(Gt.pos>x.options.maxHighlightLength?(ze=!1,Me&&bn(x,z,te,Gt.pos),Gt.pos=z.length,an=null):an=ei(Zn(ne,Gt,te.state,Bn),fe),Bn){var kn=Bn[0].name;kn&&(an="m-"+(an?kn+" "+an:kn))}if(!ze||ft!=an){for(;Ge<Gt.start;)Ge=Math.min(Gt.start,Ge+5e3),ae(Ge,ft);ft=an}Gt.start=Gt.pos}for(;Ge<Gt.pos;){var ar=Math.min(Gt.pos,Ge+5e3);ae(ar,ft),Ge=ar}}function zr(x,z,ne){for(var te,ae,fe=x.doc,Me=ne?-1:z-(x.doc.mode.innerMode?1e3:100),ze=z;ze>Me;--ze){if(ze<=fe.first)return fe.first;var Ge=Dt(fe,ze-1),ft=Ge.stateAfter;if(ft&&(!ne||ze+(ft instanceof cn?ft.lookAhead:0)<=fe.modeFrontier))return ze;var Gt=De(Ge.text,null,x.options.tabSize);(ae==null||te>Gt)&&(ae=ze-1,te=Gt)}return ae}function Lr(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontier<z-10)){for(var ne=x.first,te=z-1;te>ne;te--){var ae=Dt(x,te).stateAfter;if(ae&&(!(ae instanceof cn)||te+ae.lookAhead<z)){ne=te+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,ne)}}var mi=!1,oi=!1;function ti(){mi=!0}function Pr(){oi=!0}function Vr(x,z,ne){this.marker=x,this.from=z,this.to=ne}function En(x,z){if(x)for(var ne=0;ne<x.length;++ne){var te=x[ne];if(te.marker==z)return te}}function Yr(x,z){for(var ne,te=0;te<x.length;++te)x[te]!=z&&(ne||(ne=[])).push(x[te]);return ne}function Li(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function Yi(x,z,ne){var te;if(x)for(var ae=0;ae<x.length;++ae){var fe=x[ae],Me=fe.marker,ze=fe.from==null||(Me.inclusiveLeft?fe.from<=z:fe.from<z);if(ze||fe.from==z&&Me.type=="bookmark"&&(!ne||!fe.marker.insertLeft)){var Ge=fe.to==null||(Me.inclusiveRight?fe.to>=z:fe.to>z);(te||(te=[])).push(new Vr(Me,fe.from,Ge?null:fe.to))}}return te}function ni(x,z,ne){var te;if(x)for(var ae=0;ae<x.length;++ae){var fe=x[ae],Me=fe.marker,ze=fe.to==null||(Me.inclusiveRight?fe.to>=z:fe.to>z);if(ze||fe.from==z&&Me.type=="bookmark"&&(!ne||fe.marker.insertLeft)){var Ge=fe.from==null||(Me.inclusiveLeft?fe.from<=z:fe.from<z);(te||(te=[])).push(new Vr(Me,Ge?null:fe.from-z,fe.to==null?null:fe.to-z))}}return te}function tr(x,z){if(z.full)return null;var ne=Tn(x,z.from.line)&&Dt(x,z.from.line).markedSpans,te=Tn(x,z.to.line)&&Dt(x,z.to.line).markedSpans;if(!ne&&!te)return null;var ae=z.from.ch,fe=z.to.ch,Me=wn(z.from,z.to)==0,ze=Yi(ne,ae,Me),Ge=ni(te,fe,Me),ft=z.text.length==1,Gt=en(z.text).length+(ft?ae:0);if(ze)for(var an=0;an<ze.length;++an){var Bn=ze[an];if(Bn.to==null){var kn=En(Ge,Bn.marker);kn?ft&&(Bn.to=kn.to==null?null:kn.to+Gt):Bn.to=ae}}if(Ge)for(var ar=0;ar<Ge.length;++ar){var Mr=Ge[ar];if(Mr.to!=null&&(Mr.to+=Gt),Mr.from==null){var ri=En(ze,Mr.marker);ri||(Mr.from=Gt,ft&&(ze||(ze=[])).push(Mr))}else Mr.from+=Gt,ft&&(ze||(ze=[])).push(Mr)}ze&&(ze=Un(ze)),Ge&&Ge!=ze&&(Ge=Un(Ge));var wi=[ze];if(!ft){var _i=z.text.length-2,yi;if(_i>0&&ze)for(var zi=0;zi<ze.length;++zi)ze[zi].to==null&&(yi||(yi=[])).push(new Vr(ze[zi].marker,null,null));for(var sa=0;sa<_i;++sa)wi.push(yi);wi.push(Ge)}return wi}function Un(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 Qr(x,z,ne){var te=null;if(x.iter(z.line,ne.line+1,function(kn){if(kn.markedSpans)for(var ar=0;ar<kn.markedSpans.length;++ar){var Mr=kn.markedSpans[ar].marker;Mr.readOnly&&(!te||at(te,Mr)==-1)&&(te||(te=[])).push(Mr)}}),!te)return null;for(var ae=[{from:z,to:ne}],fe=0;fe<te.length;++fe)for(var Me=te[fe],ze=Me.find(0),Ge=0;Ge<ae.length;++Ge){var ft=ae[Ge];if(!(wn(ft.to,ze.from)<0||wn(ft.from,ze.to)>0)){var Gt=[Ge,1],an=wn(ft.from,ze.from),Bn=wn(ft.to,ze.to);(an<0||!Me.inclusiveLeft&&!an)&&Gt.push({from:ft.from,to:ze.from}),(Bn>0||!Me.inclusiveRight&&!Bn)&&Gt.push({from:ze.to,to:ft.to}),ae.splice.apply(ae,Gt),Ge+=Gt.length-3}}return ae}function Dr(x){var z=x.markedSpans;if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.detachLine(x);x.markedSpans=null}}function fi(x,z){if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.attachLine(x);x.markedSpans=z}}function Ni(x){return x.inclusiveLeft?-1:0}function si(x){return x.inclusiveRight?1:0}function ea(x,z){var ne=x.lines.length-z.lines.length;if(ne!=0)return ne;var te=x.find(),ae=z.find(),fe=wn(te.from,ae.from)||Ni(x)-Ni(z);if(fe)return-fe;var Me=wn(te.to,ae.to)||si(x)-si(z);return Me||z.id-x.id}function ki(x,z){var ne=oi&&x.markedSpans,te;if(ne)for(var ae=void 0,fe=0;fe<ne.length;++fe)ae=ne[fe],ae.marker.collapsed&&(z?ae.from:ae.to)==null&&(!te||ea(te,ae.marker)<0)&&(te=ae.marker);return te}function Da(x){return ki(x,!0)}function jr(x){return ki(x,!1)}function $r(x,z){var ne=oi&&x.markedSpans,te;if(ne)for(var ae=0;ae<ne.length;++ae){var fe=ne[ae];fe.marker.collapsed&&(fe.from==null||fe.from<z)&&(fe.to==null||fe.to>z)&&(!te||ea(te,fe.marker)<0)&&(te=fe.marker)}return te}function Di(x,z,ne,te,ae){var fe=Dt(x,z),Me=oi&&fe.markedSpans;if(Me)for(var ze=0;ze<Me.length;++ze){var Ge=Me[ze];if(Ge.marker.collapsed){var ft=Ge.marker.find(0),Gt=wn(ft.from,ne)||Ni(Ge.marker)-Ni(ae),an=wn(ft.to,te)||si(Ge.marker)-si(ae);if(!(Gt>=0&&an<=0||Gt<=0&&an>=0)&&(Gt<=0&&(Ge.marker.inclusiveRight&&ae.inclusiveLeft?wn(ft.to,ne)>=0:wn(ft.to,ne)>0)||Gt>=0&&(Ge.marker.inclusiveRight&&ae.inclusiveLeft?wn(ft.from,te)<=0:wn(ft.from,te)<0)))return!0}}}function Ii(x){for(var z;z=Da(x);)x=z.find(-1,!0).line;return x}function La(x){for(var z;z=jr(x);)x=z.find(1,!0).line;return x}function So(x){for(var z,ne;z=jr(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function Ga(x,z){var ne=Dt(x,z),te=Ii(ne);return ne==te?z:mn(te)}function la(x,z){if(z>x.lastLine())return z;var ne=Dt(x,z),te;if(!Oa(x,ne))return z;for(;te=jr(ne);)ne=te.find(1,!0).line;return mn(ne)+1}function Oa(x,z){var ne=oi&&z.markedSpans;if(ne){for(var te=void 0,ae=0;ae<ne.length;++ae)if(te=ne[ae],!!te.marker.collapsed){if(te.from==null)return!0;if(!te.marker.widgetNode&&te.from==0&&te.marker.inclusiveLeft&&Ma(x,z,te))return!0}}}function Ma(x,z,ne){if(ne.to==null){var te=ne.marker.find(1,!0);return Ma(x,te.line,En(te.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==z.text.length)return!0;for(var ae=void 0,fe=0;fe<z.markedSpans.length;++fe)if(ae=z.markedSpans[fe],ae.marker.collapsed&&!ae.marker.widgetNode&&ae.from==ne.to&&(ae.to==null||ae.to!=ne.from)&&(ae.marker.inclusiveLeft||ne.marker.inclusiveRight)&&Ma(x,z,ae))return!0}function vr(x){x=Ii(x);for(var z=0,ne=x.parent,te=0;te<ne.lines.length;++te){var ae=ne.lines[te];if(ae==x)break;z+=ae.height}for(var fe=ne.parent;fe;ne=fe,fe=ne.parent)for(var Me=0;Me<fe.children.length;++Me){var ze=fe.children[Me];if(ze==ne)break;z+=ze.height}return z}function br(x){if(x.height==0)return 0;for(var z=x.text.length,ne,te=x;ne=Da(te);){var ae=ne.find(0,!0);te=ae.from.line,z+=ae.from.ch-ae.to.ch}for(te=x;ne=jr(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 xr(x){var z=x.display,ne=x.doc;z.maxLine=Dt(ne,ne.first),z.maxLineLength=br(z.maxLine),z.maxLineChanged=!0,ne.iter(function(te){var ae=br(te);ae>z.maxLineLength&&(z.maxLineLength=ae,z.maxLine=te)})}var Gr=function(x,z,ne){this.text=x,fi(this,z),this.height=ne?ne(this):1};Gr.prototype.lineNo=function(){return mn(this)},nn(Gr);function ia(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),Dr(x),fi(x,ne);var ae=te?te(x):1;ae!=x.height&&qt(x,ae)}function wa(x){x.parent=null,Dr(x)}var Ea={},Sa={};function Aa(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?Sa:Ea;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function _a(x,z){var ne=dt("span",null,null,he?"padding-right: .1px":null),te={pre:dt("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var ae=0;ae<=(z.rest?z.rest.length:0);ae++){var fe=ae?z.rest[ae-1]:z.line,Me=void 0;te.pos=0,te.addToken=co,hr(x.display.measure)&&(Me=Xt(fe,x.doc.direction))&&(te.addToken=Bo(te.addToken,Me)),te.map=[];var ze=z!=x.display.externalMeasured&&mn(fe);Bs(fe,te,yn(x,fe,ze)),fe.styleClasses&&(fe.styleClasses.bgClass&&(te.bgClass=mt(fe.styleClasses.bgClass,te.bgClass||"")),fe.styleClasses.textClass&&(te.textClass=mt(fe.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(Tr(x.display.measure))),ae==0?(z.measure.map=te.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(te.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(he){var Ge=te.content.lastChild;(/\bcm-tab\b/.test(Ge.className)||Ge.querySelector&&Ge.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return Oe(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=mt(te.pre.className,te.textClass||"")),te}function mo(x){var z=Je("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function co(x,z,ne,te,ae,fe,Me){if(z){var ze=x.splitSpaces?qo(z,x.trailingSpace):z,Ge=x.cm.state.specialChars,ft=!1,Gt;if(!Ge.test(z))x.col+=z.length,Gt=document.createTextNode(ze),x.map.push(x.pos,x.pos+z.length,Gt),ye&&Ee<9&&(ft=!0),x.pos+=z.length;else{Gt=document.createDocumentFragment();for(var an=0;;){Ge.lastIndex=an;var Bn=Ge.exec(z),kn=Bn?Bn.index-an:z.length-an;if(kn){var ar=document.createTextNode(ze.slice(an,an+kn));ye&&Ee<9?Gt.appendChild(Je("span",[ar])):Gt.appendChild(ar),x.map.push(x.pos,x.pos+kn,ar),x.col+=kn,x.pos+=kn}if(!Bn)break;an+=kn+1;var Mr=void 0;if(Bn[0]==" "){var ri=x.cm.options.tabSize,wi=ri-x.col%ri;Mr=Gt.appendChild(Je("span",tn(wi),"cm-tab")),Mr.setAttribute("role","presentation"),Mr.setAttribute("cm-text"," "),x.col+=wi}else Bn[0]=="\r"||Bn[0]==`
|
|
|
`?(Mr=Gt.appendChild(Je("span",Bn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Mr.setAttribute("cm-text",Bn[0]),x.col+=1):(Mr=x.cm.options.specialCharPlaceholder(Bn[0]),Mr.setAttribute("cm-text",Bn[0]),ye&&Ee<9?Gt.appendChild(Je("span",[Mr])):Gt.appendChild(Mr),x.col+=1);x.map.push(x.pos,x.pos+1,Mr),x.pos++}}if(x.trailingSpace=ze.charCodeAt(z.length-1)==32,ne||te||ae||ft||fe||Me){var _i=ne||"";te&&(_i+=te),ae&&(_i+=ae);var yi=Je("span",[Gt],_i,fe);if(Me)for(var zi in Me)Me.hasOwnProperty(zi)&&zi!="style"&&zi!="class"&&yi.setAttribute(zi,Me[zi]);return x.content.appendChild(yi)}x.content.appendChild(Gt)}}function qo(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ae=0;ae<x.length;ae++){var fe=x.charAt(ae);fe==" "&&ne&&(ae==x.length-1||x.charCodeAt(ae+1)==32)&&(fe="\xA0"),te+=fe,ne=fe==" "}return te}function Bo(x,z){return function(ne,te,ae,fe,Me,ze,Ge){ae=ae?ae+" cm-force-border":"cm-force-border";for(var ft=ne.pos,Gt=ft+te.length;;){for(var an=void 0,Bn=0;Bn<z.length&&(an=z[Bn],!(an.to>ft&&an.from<=ft));Bn++);if(an.to>=Gt)return x(ne,te,ae,fe,Me,ze,Ge);x(ne,te.slice(0,an.to-ft),ae,fe,null,ze,Ge),fe=null,te=te.slice(an.to-ft),ft=an.to}}}function eo(x,z,ne,te){var ae=!te&&ne.widgetNode;ae&&x.map.push(x.pos,x.pos+z,ae),!te&&x.cm.display.input.needsContentAttribute&&(ae||(ae=x.content.appendChild(document.createElement("span"))),ae.setAttribute("cm-marker",ne.id)),ae&&(x.cm.display.input.setUneditable(ae),x.content.appendChild(ae)),x.pos+=z,x.trailingSpace=!1}function Bs(x,z,ne){var te=x.markedSpans,ae=x.text,fe=0;if(!te){for(var Me=1;Me<ne.length;Me+=2)z.addToken(z,ae.slice(fe,fe=ne[Me]),Aa(ne[Me+1],z.cm.options));return}for(var ze=ae.length,Ge=0,ft=1,Gt="",an,Bn,kn=0,ar,Mr,ri,wi,_i;;){if(kn==Ge){ar=Mr=ri=Bn="",_i=null,wi=null,kn=1/0;for(var yi=[],zi=void 0,sa=0;sa<te.length;++sa){var ga=te[sa],Ua=ga.marker;if(Ua.type=="bookmark"&&ga.from==Ge&&Ua.widgetNode)yi.push(Ua);else if(ga.from<=Ge&&(ga.to==null||ga.to>Ge||Ua.collapsed&&ga.to==Ge&&ga.from==Ge)){if(ga.to!=null&&ga.to!=Ge&&kn>ga.to&&(kn=ga.to,Mr=""),Ua.className&&(ar+=" "+Ua.className),Ua.css&&(Bn=(Bn?Bn+";":"")+Ua.css),Ua.startStyle&&ga.from==Ge&&(ri+=" "+Ua.startStyle),Ua.endStyle&&ga.to==kn&&(zi||(zi=[])).push(Ua.endStyle,ga.to),Ua.title&&((_i||(_i={})).title=Ua.title),Ua.attributes)for(var Qo in Ua.attributes)(_i||(_i={}))[Qo]=Ua.attributes[Qo];Ua.collapsed&&(!wi||ea(wi.marker,Ua)<0)&&(wi=ga)}else ga.from>Ge&&kn>ga.from&&(kn=ga.from)}if(zi)for(var il=0;il<zi.length;il+=2)zi[il+1]==kn&&(Mr+=" "+zi[il]);if(!wi||wi.from==Ge)for(var Es=0;Es<yi.length;++Es)eo(z,0,yi[Es]);if(wi&&(wi.from||0)==Ge){if(eo(z,(wi.to==null?ze+1:wi.to)-Ge,wi.marker,wi.from==null),wi.to==null)return;wi.to==Ge&&(wi=!1)}}if(Ge>=ze)break;for(var Dl=Math.min(ze,kn);;){if(Gt){var Il=Ge+Gt.length;if(!wi){var Us=Il>Dl?Gt.slice(0,Dl-Ge):Gt;z.addToken(z,Us,an?an+ar:ar,ri,Ge+Us.length==kn?Mr:"",Bn,_i)}if(Il>=Dl){Gt=Gt.slice(Dl-Ge),Ge=Dl;break}Ge=Il,ri=""}Gt=ae.slice(fe,fe=ne[ft++]),an=Aa(ne[ft++],z.cm.options)}}}function Wo(x,z,ne){this.line=z,this.rest=So(z),this.size=this.rest?mn(en(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=Oa(x,z)}function Ro(x,z,ne){for(var te=[],ae,fe=z;fe<ne;fe=ae){var Me=new Wo(x.doc,Dt(x.doc,fe),fe);ae=fe+Me.size,te.push(Me)}return te}var fo=null;function za(x){fo?fo.ops.push(x):x.ownsGroup=fo={ops:[x],delayedCallbacks:[]}}function Ei(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 ae=x.ops[te];if(ae.cursorActivityHandlers)for(;ae.cursorActivityCalled<ae.cursorActivityHandlers.length;)ae.cursorActivityHandlers[ae.cursorActivityCalled++].call(null,ae.cm)}}while(ne<z.length)}function ta(x,z){var ne=x.ownsGroup;if(ne)try{Ei(ne)}finally{fo=null,z(ne)}}var Zi=null;function Ci(x,z){var ne=on(x,z);if(ne.length){var te=Array.prototype.slice.call(arguments,2),ae;fo?ae=fo.delayedCallbacks:Zi?ae=Zi:(ae=Zi=[],setTimeout(va,0));for(var fe=function(ze){ae.push(function(){return ne[ze].apply(null,te)})},Me=0;Me<ne.length;++Me)fe(Me)}}function va(){var x=Zi;Zi=null;for(var z=0;z<x.length;++z)x[z]()}function oa(x,z,ne,te){for(var ae=0;ae<z.changes.length;ae++){var fe=z.changes[ae];fe=="text"?xn(x,z):fe=="gutter"?Hr(x,z,ne,te):fe=="class"?gr(x,z):fe=="widget"&&Ti(x,z,te)}z.changes=null}function to(x){return x.node==x.text&&(x.node=Je("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),ye&&Ee<8&&(x.node.style.zIndex=2)),x.node}function go(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=to(z);z.background=te.insertBefore(Je("div",null,ne),te.firstChild),x.display.input.setUneditable(z.background)}}function no(x,z){var ne=x.display.externalMeasured;return ne&&ne.line==z.line?(x.display.externalMeasured=null,z.measure=ne.measure,ne.built):_a(x,z)}function xn(x,z){var ne=z.text.className,te=no(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,gr(x,z)):ne&&(z.text.className=ne)}function gr(x,z){go(x,z),z.line.wrapClass?to(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 Hr(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 ae=to(z);z.gutterBackground=Je("div",null,"CodeMirror-gutter-background "+z.line.gutterClass,"left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px; width: "+te.gutterTotalWidth+"px"),x.display.input.setUneditable(z.gutterBackground),ae.insertBefore(z.gutterBackground,z.text)}var fe=z.line.gutterMarkers;if(x.options.lineNumbers||fe){var Me=to(z),ze=z.gutter=Je("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(x.display.input.setUneditable(ze),Me.insertBefore(ze,z.text),z.line.gutterClass&&(ze.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!fe||!fe["CodeMirror-linenumbers"])&&(z.lineNumber=ze.appendChild(Je("div",Pn(x.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),fe)for(var Ge=0;Ge<x.display.gutterSpecs.length;++Ge){var ft=x.display.gutterSpecs[Ge].className,Gt=fe.hasOwnProperty(ft)&&fe[ft];Gt&&ze.appendChild(Je("div",[Gt],"CodeMirror-gutter-elt","left: "+te.gutterLeft[ft]+"px; width: "+te.gutterWidth[ft]+"px"))}}}function Ti(x,z,ne){z.alignable&&(z.alignable=null);for(var te=Se("CodeMirror-linewidget"),ae=z.node.firstChild,fe=void 0;ae;ae=fe)fe=ae.nextSibling,te.test(ae.className)&&z.node.removeChild(ae);ji(x,z,ne)}function Ui(x,z,ne,te){var ae=no(x,z);return z.text=z.node=ae.pre,ae.bgClass&&(z.bgClass=ae.bgClass),ae.textClass&&(z.textClass=ae.textClass),gr(x,z),Hr(x,z,ne,te),ji(x,z,te),z.node}function ji(x,z,ne){if(ba(x,z.line,z,ne,!0),z.rest)for(var te=0;te<z.rest.length;te++)ba(x,z.rest[te],z,ne,!1)}function ba(x,z,ne,te,ae){if(z.widgets)for(var fe=to(ne),Me=0,ze=z.widgets;Me<ze.length;++Me){var Ge=ze[Me],ft=Je("div",[Ge.node],"CodeMirror-linewidget"+(Ge.className?" "+Ge.className:""));Ge.handleMouseEvents||ft.setAttribute("cm-ignore-events","true"),Co(Ge,ft,ne,te),x.display.input.setUneditable(ft),ae&&Ge.above?fe.insertBefore(ft,ne.gutter||ne.text):fe.appendChild(ft),Ci(Ge,"redraw")}}function Co(x,z,ne,te){if(x.noHScroll){(ne.alignable||(ne.alignable=[])).push(z);var ae=te.wrapperWidth;z.style.left=te.fixedPos+"px",x.coverGutter||(ae-=te.gutterTotalWidth,z.style.paddingLeft=te.gutterTotalWidth+"px"),z.style.width=ae+"px"}x.coverGutter&&(z.style.zIndex=5,z.style.position="relative",x.noHScroll||(z.style.marginLeft=-te.gutterTotalWidth+"px"))}function fn(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!kt(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;"),xt(z.display.measure,Je("div",[x.node],null,ne))}return x.height=x.node.parentNode.offsetHeight}function Xa(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 ho(x){return x.lineSpace.offsetTop}function El(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function ys(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=xt(x.measure,Je("pre","x","CodeMirror-line-like")),ne=window.getComputedStyle?window.getComputedStyle(z):z.currentStyle,te={left:parseInt(ne.paddingLeft),right:parseInt(ne.paddingRight)};return!isNaN(te.left)&&!isNaN(te.right)&&(x.cachedPaddingH=te),te}function Oo(x){return Ct-x.display.nativeBarWidth}function Lo(x){return x.display.scroller.clientWidth-Oo(x)-x.display.barWidth}function As(x){return x.display.scroller.clientHeight-Oo(x)-x.display.barHeight}function po(x,z,ne){var te=x.options.lineWrapping,ae=te&&Lo(x);if(!z.measure.heights||te&&z.measure.width!=ae){var fe=z.measure.heights=[];if(te){z.measure.width=ae;for(var Me=z.text.firstChild.getClientRects(),ze=0;ze<Me.length-1;ze++){var Ge=Me[ze],ft=Me[ze+1];Math.abs(Ge.bottom-ft.bottom)>2&&fe.push((Ge.bottom+ft.top)/2-ne.top)}}fe.push(ne.bottom-ne.top)}}function es(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 ae=0;ae<x.rest.length;ae++)if(mn(x.rest[ae])>ne)return{map:x.measure.maps[ae],cache:x.measure.caches[ae],before:!0}}function Gs(x,z){z=Ii(z);var ne=mn(z),te=x.display.externalMeasured=new Wo(x.doc,z,ne);te.lineN=ne;var ae=te.built=_a(x,te);return te.text=ae.pre,xt(x.display.lineMeasure,ae.pre),te}function al(x,z,ne,te){return lo(x,cs(x,z),ne,te)}function os(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[Mo(x,z)];var ne=x.display.externalMeasured;if(ne&&z>=ne.lineN&&z<ne.lineN+ne.size)return ne}function cs(x,z){var ne=mn(z),te=os(x,ne);te&&!te.text?te=null:te&&te.changes&&(oa(x,te,ne,Bi(x)),x.curOp.forceUpdate=!0),te||(te=Gs(x,z));var ae=es(te,z,ne);return{line:z,view:te,rect:null,map:ae.map,cache:ae.cache,before:ae.before,hasHeights:!1}}function lo(x,z,ne,te,ae){z.before&&(ne=-1);var fe=ne+(te||""),Me;return z.cache.hasOwnProperty(fe)?Me=z.cache[fe]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(po(x,z.view,z.rect),z.hasHeights=!0),Me=st(x,z,ne,te),Me.bogus||(z.cache[fe]=Me)),{left:Me.left,right:Me.right,top:ae?Me.rtop:Me.top,bottom:ae?Me.rbottom:Me.bottom}}var yl={left:0,right:0,top:0,bottom:0};function ln(x,z,ne){for(var te,ae,fe,Me,ze,Ge,ft=0;ft<x.length;ft+=3)if(ze=x[ft],Ge=x[ft+1],z<ze?(ae=0,fe=1,Me="left"):z<Ge?(ae=z-ze,fe=ae+1):(ft==x.length-3||z==Ge&&x[ft+3]>z)&&(fe=Ge-ze,ae=fe-1,z>=Ge&&(Me="right")),ae!=null){if(te=x[ft+2],ze==Ge&&ne==(te.insertLeft?"left":"right")&&(Me=ne),ne=="left"&&ae==0)for(;ft&&x[ft-2]==x[ft-3]&&x[ft-1].insertLeft;)te=x[(ft-=3)+2],Me="left";if(ne=="right"&&ae==Ge-ze)for(;ft<x.length-3&&x[ft+3]==x[ft+4]&&!x[ft+5].insertLeft;)te=x[(ft+=3)+2],Me="right";break}return{node:te,start:ae,end:fe,collapse:Me,coverStart:ze,coverEnd:Ge}}function Ft(x,z){var ne=yl;if(z=="left")for(var te=0;te<x.length&&(ne=x[te]).left==ne.right;te++);else for(var ae=x.length-1;ae>=0&&(ne=x[ae]).left==ne.right;ae--);return ne}function st(x,z,ne,te){var ae=ln(z.map,ne,te),fe=ae.node,Me=ae.start,ze=ae.end,Ge=ae.collapse,ft;if(fe.nodeType==3){for(var Gt=0;Gt<4;Gt++){for(;Me&&ht(z.line.text.charAt(ae.coverStart+Me));)--Me;for(;ae.coverStart+ze<ae.coverEnd&&ht(z.line.text.charAt(ae.coverStart+ze));)++ze;if(ye&&Ee<9&&Me==0&&ze==ae.coverEnd-ae.coverStart?ft=fe.parentNode.getBoundingClientRect():ft=Ft(Be(fe,Me,ze).getClientRects(),te),ft.left||ft.right||Me==0)break;ze=Me,Me=Me-1,Ge="right"}ye&&Ee<11&&(ft=mr(x.display.measure,ft))}else{Me>0&&(Ge=te="right");var an;x.options.lineWrapping&&(an=fe.getClientRects()).length>1?ft=an[te=="right"?an.length-1:0]:ft=fe.getBoundingClientRect()}if(ye&&Ee<9&&!Me&&(!ft||!ft.left&&!ft.right)){var Bn=fe.parentNode.getClientRects()[0];Bn?ft={left:Bn.left,right:Bn.left+Mi(x.display),top:Bn.top,bottom:Bn.bottom}:ft=yl}for(var kn=ft.top-z.rect.top,ar=ft.bottom-z.rect.top,Mr=(kn+ar)/2,ri=z.view.measure.heights,wi=0;wi<ri.length-1&&!(Mr<ri[wi]);wi++);var _i=wi?ri[wi-1]:0,yi=ri[wi],zi={left:(Ge=="right"?ft.right:ft.left)-z.rect.left,right:(Ge=="left"?ft.left:ft.right)-z.rect.left,top:_i,bottom:yi};return!ft.left&&!ft.right&&(zi.bogus=!0),x.options.singleCursorHeightPerLine||(zi.rtop=kn,zi.rbottom=ar),zi}function mr(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Cr(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 bi(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 Oi(x){x.display.externalMeasure=null,Ze(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)bi(x.display.view[z])}function Qi(x){Oi(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function $i(){return we&&Ue?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Jr(){return we&&Ue?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function lr(x){var z=0;if(x.widgets)for(var ne=0;ne<x.widgets.length;++ne)x.widgets[ne].above&&(z+=fn(x.widgets[ne]));return z}function gi(x,z,ne,te,ae){if(!ae){var fe=lr(z);ne.top+=fe,ne.bottom+=fe}if(te=="line")return ne;te||(te="local");var Me=vr(z);if(te=="local"?Me+=ho(x.display):Me-=x.display.viewOffset,te=="page"||te=="window"){var ze=x.display.lineSpace.getBoundingClientRect();Me+=ze.top+(te=="window"?0:Jr());var Ge=ze.left+(te=="window"?0:$i());ne.left+=Ge,ne.right+=Ge}return ne.top+=Me,ne.bottom+=Me,ne}function ro(x,z,ne){if(ne=="div")return z;var te=z.left,ae=z.top;if(ne=="page")te-=$i(),ae-=Jr();else if(ne=="local"||!ne){var fe=x.display.sizer.getBoundingClientRect();te+=fe.left,ae+=fe.top}var Me=x.display.lineSpace.getBoundingClientRect();return{left:te-Me.left,top:ae-Me.top}}function Fo(x,z,ne,te,ae){return te||(te=Dt(x.doc,z.line)),gi(x,te,al(x,te,z.ch,ae),ne)}function ca(x,z,ne,te,ae,fe){te=te||Dt(x.doc,z.line),ae||(ae=cs(x,te));function Me(ar,Mr){var ri=lo(x,ae,ar,Mr?"right":"left",fe);return Mr?ri.left=ri.right:ri.right=ri.left,gi(x,te,ri,ne)}var ze=Xt(te,x.doc.direction),Ge=z.ch,ft=z.sticky;if(Ge>=te.text.length?(Ge=te.text.length,ft="before"):Ge<=0&&(Ge=0,ft="after"),!ze)return Me(ft=="before"?Ge-1:Ge,ft=="before");function Gt(ar,Mr,ri){var wi=ze[Mr],_i=wi.level==1;return Me(ri?ar-1:ar,_i!=ri)}var an=Xe(ze,Ge,ft),Bn=gt,kn=Gt(Ge,an,ft=="before");return Bn!=null&&(kn.other=Gt(Ge,Bn,ft!="before")),kn}function Pa(x,z){var ne=0;z=Fn(x.doc,z),x.options.lineWrapping||(ne=Mi(x.display)*z.ch);var te=Dt(x.doc,z.line),ae=vr(te)+ho(x.display);return{left:ne,right:ne,top:ae,bottom:ae+te.height}}function $o(x,z,ne,te,ae){var fe=Qt(x,z,ne);return fe.xRel=ae,te&&(fe.outside=te),fe}function Uo(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return $o(te.first,0,null,-1,-1);var ae=An(te,ne),fe=te.first+te.size-1;if(ae>fe)return $o(te.first+te.size-1,Dt(te,fe).text.length,null,1,1);z<0&&(z=0);for(var Me=Dt(te,ae);;){var ze=fs(x,Me,ae,z,ne),Ge=$r(Me,ze.ch+(ze.xRel>0||ze.outside>0?1:0));if(!Ge)return ze;var ft=Ge.find(1);if(ft.line==ae)return ft;Me=Dt(te,ae=ft.line)}}function bs(x,z,ne,te){te-=lr(z);var ae=z.text.length,fe=Ne(function(Me){return lo(x,ne,Me-1).bottom<=te},ae,0);return ae=Ne(function(Me){return lo(x,ne,Me).top>te},fe,ae),{begin:fe,end:ae}}function ds(x,z,ne,te){ne||(ne=cs(x,z));var ae=gi(x,z,lo(x,ne,te),"line").top;return bs(x,z,ne,ae)}function io(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function fs(x,z,ne,te,ae){ae-=vr(z);var fe=cs(x,z),Me=lr(z),ze=0,Ge=z.text.length,ft=!0,Gt=Xt(z,x.doc.direction);if(Gt){var an=(x.options.lineWrapping?Ra:No)(x,z,ne,fe,Gt,te,ae);ft=an.level!=1,ze=ft?an.from:an.to-1,Ge=ft?an.to:an.from-1}var Bn=null,kn=null,ar=Ne(function(sa){var ga=lo(x,fe,sa);return ga.top+=Me,ga.bottom+=Me,io(ga,te,ae,!1)?(ga.top<=ae&&ga.left<=te&&(Bn=sa,kn=ga),!0):!1},ze,Ge),Mr,ri,wi=!1;if(kn){var _i=te-kn.left<kn.right-te,yi=_i==ft;ar=Bn+(yi?0:1),ri=yi?"after":"before",Mr=_i?kn.left:kn.right}else{!ft&&(ar==Ge||ar==ze)&&ar++,ri=ar==0?"after":ar==z.text.length?"before":lo(x,fe,ar-(ft?1:0)).bottom+Me<=ae==ft?"after":"before";var zi=ca(x,Qt(ne,ar,ri),"line",z,fe);Mr=zi.left,wi=ae<zi.top?-1:ae>=zi.bottom?1:0}return ar=_e(z.text,ar,1),$o(ne,ar,ri,wi,te-Mr)}function No(x,z,ne,te,ae,fe,Me){var ze=Ne(function(an){var Bn=ae[an],kn=Bn.level!=1;return io(ca(x,Qt(ne,kn?Bn.to:Bn.from,kn?"before":"after"),"line",z,te),fe,Me,!0)},0,ae.length-1),Ge=ae[ze];if(ze>0){var ft=Ge.level!=1,Gt=ca(x,Qt(ne,ft?Ge.from:Ge.to,ft?"after":"before"),"line",z,te);io(Gt,fe,Me,!0)&&Gt.top>Me&&(Ge=ae[ze-1])}return Ge}function Ra(x,z,ne,te,ae,fe,Me){var ze=bs(x,z,te,Me),Ge=ze.begin,ft=ze.end;/\s/.test(z.text.charAt(ft-1))&&ft--;for(var Gt=null,an=null,Bn=0;Bn<ae.length;Bn++){var kn=ae[Bn];if(!(kn.from>=ft||kn.to<=Ge)){var ar=kn.level!=1,Mr=lo(x,te,ar?Math.min(ft,kn.to)-1:Math.max(Ge,kn.from)).right,ri=Mr<fe?fe-Mr+1e9:Mr-fe;(!Gt||an>ri)&&(Gt=kn,an=ri)}}return Gt||(Gt=ae[ae.length-1]),Gt.from<Ge&&(Gt={from:Ge,to:Gt.to,level:Gt.level}),Gt.to>ft&&(Gt={from:Gt.from,to:ft,level:Gt.level}),Gt}var wo;function Os(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(wo==null){wo=Je("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)wo.appendChild(document.createTextNode("x")),wo.appendChild(Je("br"));wo.appendChild(document.createTextNode("x"))}xt(x.measure,wo);var ne=wo.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),Ze(x.measure),ne||1}function Mi(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=Je("span","xxxxxxxxxx"),ne=Je("pre",[z],"CodeMirror-line-like");xt(x.measure,ne);var te=z.getBoundingClientRect(),ae=(te.right-te.left)/10;return ae>2&&(x.cachedCharWidth=ae),ae||10}function Bi(x){for(var z=x.display,ne={},te={},ae=z.gutters.clientLeft,fe=z.gutters.firstChild,Me=0;fe;fe=fe.nextSibling,++Me){var ze=x.display.gutterSpecs[Me].className;ne[ze]=fe.offsetLeft+fe.clientLeft+ae,te[ze]=fe.clientWidth}return{fixedPos:ua(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function ua(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function Ca(x){var z=Os(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/Mi(x.display)-3);return function(ae){if(Oa(x.doc,ae))return 0;var fe=0;if(ae.widgets)for(var Me=0;Me<ae.widgets.length;Me++)ae.widgets[Me].height&&(fe+=ae.widgets[Me].height);return ne?fe+(Math.ceil(ae.text.length/te)||1)*z:fe+z}}function Ta(x){var z=x.doc,ne=Ca(x);z.iter(function(te){var ae=ne(te);ae!=te.height&&qt(te,ae)})}function _o(x,z,ne,te){var ae=x.display;if(!ne&&Vn(z).getAttribute("cm-not-content")=="true")return null;var fe,Me,ze=ae.lineSpace.getBoundingClientRect();try{fe=z.clientX-ze.left,Me=z.clientY-ze.top}catch(an){return null}var Ge=Uo(x,fe,Me),ft;if(te&&Ge.xRel>0&&(ft=Dt(x.doc,Ge.line).text).length==Ge.ch){var Gt=De(ft,ft.length,x.options.tabSize)-ft.length;Ge=Qt(Ge.line,Math.max(0,Math.round((fe-ys(x.display).left)/Mi(x.display))-Gt))}return Ge}function Mo(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 To(x,z,ne,te){z==null&&(z=x.doc.first),ne==null&&(ne=x.doc.first+x.doc.size),te||(te=0);var ae=x.display;if(te&&ne<ae.viewTo&&(ae.updateLineNumbers==null||ae.updateLineNumbers>z)&&(ae.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ae.viewTo)oi&&Ga(x.doc,z)<ae.viewTo&&Ya(x);else if(ne<=ae.viewFrom)oi&&la(x.doc,ne+te)>ae.viewFrom?Ya(x):(ae.viewFrom+=te,ae.viewTo+=te);else if(z<=ae.viewFrom&&ne>=ae.viewTo)Ya(x);else if(z<=ae.viewFrom){var fe=ii(x,ne,ne+te,1);fe?(ae.view=ae.view.slice(fe.index),ae.viewFrom=fe.lineN,ae.viewTo+=te):Ya(x)}else if(ne>=ae.viewTo){var Me=ii(x,z,z,-1);Me?(ae.view=ae.view.slice(0,Me.index),ae.viewTo=Me.lineN):Ya(x)}else{var ze=ii(x,z,z,-1),Ge=ii(x,ne,ne+te,1);ze&&Ge?(ae.view=ae.view.slice(0,ze.index).concat(Ro(x,ze.lineN,Ge.lineN)).concat(ae.view.slice(Ge.index)),ae.viewTo+=te):Ya(x)}var ft=ae.externalMeasured;ft&&(ne<ft.lineN?ft.lineN+=te:z<ft.lineN+ft.size&&(ae.externalMeasured=null))}function qs(x,z,ne){x.curOp.viewChanged=!0;var te=x.display,ae=x.display.externalMeasured;if(ae&&z>=ae.lineN&&z<ae.lineN+ae.size&&(te.externalMeasured=null),!(z<te.viewFrom||z>=te.viewTo)){var fe=te.view[Mo(x,z)];if(fe.node!=null){var Me=fe.changes||(fe.changes=[]);at(Me,ne)==-1&&Me.push(ne)}}}function Ya(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function ii(x,z,ne,te){var ae=Mo(x,z),fe,Me=x.display.view;if(!oi||ne==x.doc.first+x.doc.size)return{index:ae,lineN:ne};for(var ze=x.display.viewFrom,Ge=0;Ge<ae;Ge++)ze+=Me[Ge].size;if(ze!=z){if(te>0){if(ae==Me.length-1)return null;fe=ze+Me[ae].size-z,ae++}else fe=ze-z;z+=fe,ne+=fe}for(;Ga(x.doc,ne)!=ne;){if(ae==(te<0?0:Me.length-1))return null;ne+=te*Me[ae-(te<0?1:0)].size,ae+=te}return{index:ae,lineN:ne}}function _s(x,z,ne){var te=x.display,ae=te.view;ae.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=Ro(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=Ro(x,z,te.viewFrom).concat(te.view):te.viewFrom<z&&(te.view=te.view.slice(Mo(x,z))),te.viewFrom=z,te.viewTo<ne?te.view=te.view.concat(Ro(x,te.viewTo,ne)):te.viewTo>ne&&(te.view=te.view.slice(0,Mo(x,ne)))),te.viewTo=ne}function Ml(x){for(var z=x.display.view,ne=0,te=0;te<z.length;te++){var ae=z[te];!ae.hidden&&(!ae.node||ae.changes)&&++ne}return ne}function du(x){x.display.input.showSelection(x.display.input.prepareSelection())}function cr(x,z){z===void 0&&(z=!0);for(var ne=x.doc,te={},ae=te.cursors=document.createDocumentFragment(),fe=te.selection=document.createDocumentFragment(),Me=0;Me<ne.sel.ranges.length;Me++)if(!(!z&&Me==ne.sel.primIndex)){var ze=ne.sel.ranges[Me];if(!(ze.from().line>=x.display.viewTo||ze.to().line<x.display.viewFrom)){var Ge=ze.empty();(Ge||x.options.showCursorWhenSelecting)&&da(x,ze.head,ae),Ge||mc(x,ze,fe)}}return te}function da(x,z,ne){var te=ca(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),ae=ne.appendChild(Je("div","\xA0","CodeMirror-cursor"));if(ae.style.left=te.left+"px",ae.style.top=te.top+"px",ae.style.height=Math.max(0,te.bottom-te.top)*x.options.cursorHeight+"px",te.other){var fe=ne.appendChild(Je("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 fu(x,z){return x.top-z.top||x.left-z.left}function mc(x,z,ne){var te=x.display,ae=x.doc,fe=document.createDocumentFragment(),Me=ys(x.display),ze=Me.left,Ge=Math.max(te.sizerWidth,Lo(x)-te.sizer.offsetLeft)-Me.right,ft=ae.direction=="ltr";function Gt(yi,zi,sa,ga){zi<0&&(zi=0),zi=Math.round(zi),ga=Math.round(ga),fe.appendChild(Je("div",null,"CodeMirror-selected","position: absolute; left: "+yi+`px;
|
|
|
top: `+zi+"px; width: "+(sa==null?Ge-yi:sa)+`px;
|
|
|
height: `+(ga-zi)+"px"))}function an(yi,zi,sa){var ga=Dt(ae,yi),Ua=ga.text.length,Qo,il;function Es(Us,Ll){return Fo(x,Qt(yi,Us),"div",ga,Ll)}function Dl(Us,Ll,Na){var Ls=ds(x,ga,null,Us),Ms=Ll=="ltr"==(Na=="after")?"left":"right",Ns=Na=="after"?Ls.begin:Ls.end-(/\s/.test(ga.text.charAt(Ls.end-1))?2:1);return Es(Ns,Ms)[Ms]}var Il=Xt(ga,ae.direction);return St(Il,zi||0,sa==null?Ua:sa,function(Us,Ll,Na,Ls){var Ms=Na=="ltr",Ns=Es(Us,Ms?"left":"right"),js=Es(Ll-1,Ms?"right":"left"),uc=zi==null&&Us==0,Ol=sa==null&&Ll==Ua,ul=Ls==0,Do=!Il||Ls==Il.length-1;if(js.top-Ns.top<=3){var Js=(ft?uc:Ol)&&ul,cd=(ft?Ol:uc)&&Do,_u=Js?ze:(Ms?Ns:js).left,Vu=cd?Ge:(Ms?js:Ns).right;Gt(_u,Ns.top,Vu-_u,Ns.bottom)}else{var vu,Vs,cc,cl;Ms?(vu=ft&&uc&&ul?ze:Ns.left,Vs=ft?Ge:Dl(Us,Na,"before"),cc=ft?ze:Dl(Ll,Na,"after"),cl=ft&&Ol&&Do?Ge:js.right):(vu=ft?Dl(Us,Na,"before"):ze,Vs=!ft&&uc&&ul?Ge:Ns.right,cc=!ft&&Ol&&Do?ze:js.left,cl=ft?Dl(Ll,Na,"after"):Ge),Gt(vu,Ns.top,Vs-vu,Ns.bottom),Ns.bottom<js.top&&Gt(ze,Ns.bottom,null,js.top),Gt(cc,js.top,cl-cc,js.bottom)}(!Qo||fu(Ns,Qo)<0)&&(Qo=Ns),fu(js,Qo)<0&&(Qo=js),(!il||fu(Ns,il)<0)&&(il=Ns),fu(js,il)<0&&(il=js)}),{start:Qo,end:il}}var Bn=z.from(),kn=z.to();if(Bn.line==kn.line)an(Bn.line,Bn.ch,kn.ch);else{var ar=Dt(ae,Bn.line),Mr=Dt(ae,kn.line),ri=Ii(ar)==Ii(Mr),wi=an(Bn.line,Bn.ch,ri?ar.text.length+1:null).end,_i=an(kn.line,ri?0:null,kn.ch).start;ri&&(wi.top<_i.top-2?(Gt(wi.right,wi.top,null,wi.bottom),Gt(ze,_i.top,_i.left,_i.bottom)):Gt(wi.right,wi.top,_i.left-wi.right,wi.bottom)),wi.bottom<_i.top&&Gt(ze,wi.bottom,null,_i.top)}ne.appendChild(fe)}function Cu(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()||Pl(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function hs(x){x.state.focused||(x.display.input.focus(),Eu(x))}function wu(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,Pl(x))},100)}function Eu(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(Oe(x,"focus",x,z),x.state.focused=!0,Tt(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),he&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Cu(x))}function Pl(x,z){x.state.delayingBlurEvent||(x.state.focused&&(Oe(x,"blur",x,z),x.state.focused=!1,Fe(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function hu(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te<z.view.length;te++){var ae=z.view[te],fe=x.options.lineWrapping,Me=void 0,ze=0;if(!ae.hidden){if(ye&&Ee<8){var Ge=ae.node.offsetTop+ae.node.offsetHeight;Me=Ge-ne,ne=Ge}else{var ft=ae.node.getBoundingClientRect();Me=ft.bottom-ft.top,!fe&&ae.text.firstChild&&(ze=ae.text.firstChild.getBoundingClientRect().right-ft.left-1)}var Gt=ae.line.height-Me;if((Gt>.005||Gt<-.005)&&(qt(ae.line,Me),Rl(ae.line),ae.rest))for(var an=0;an<ae.rest.length;an++)Rl(ae.rest[an]);if(ze>x.display.sizerWidth){var Bn=Math.ceil(ze/Mi(x.display));Bn>x.display.maxLineLength&&(x.display.maxLineLength=Bn,x.display.maxLine=ae.line,x.display.maxLineChanged=!0)}}}}function Rl(x){if(x.widgets)for(var z=0;z<x.widgets.length;++z){var ne=x.widgets[z],te=ne.node.parentNode;te&&(ne.height=te.offsetHeight)}}function Vo(x,z,ne){var te=ne&&ne.top!=null?Math.max(0,ne.top):x.scroller.scrollTop;te=Math.floor(te-ho(x));var ae=ne&&ne.bottom!=null?ne.bottom:te+x.wrapper.clientHeight,fe=An(z,te),Me=An(z,ae);if(ne&&ne.ensure){var ze=ne.ensure.from.line,Ge=ne.ensure.to.line;ze<fe?(fe=ze,Me=An(z,vr(Dt(z,ze))+x.wrapper.clientHeight)):Math.min(Ge,z.lastLine())>=Me&&(fe=An(z,vr(Dt(z,Ge))-x.wrapper.clientHeight),Me=Ge)}return{from:fe,to:Math.max(Me,fe+1)}}function ol(x,z){if(!yt(x,"scrollCursorIntoView")){var ne=x.display,te=ne.sizer.getBoundingClientRect(),ae=null;if(z.top+te.top<0?ae=!0:z.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ae=!1),ae!=null&&!Re){var fe=Je("div","\u200B",null,`position: absolute;
|
|
|
top: `+(z.top-ne.viewOffset-ho(x.display))+`px;
|
|
|
height: `+(z.bottom-z.top+Oo(x)+ne.barHeight)+`px;
|
|
|
left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(fe),fe.scrollIntoView(ae),x.display.lineSpace.removeChild(fe)}}}function Al(x,z,ne,te){te==null&&(te=0);var ae;!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 Me=!1,ze=ca(x,z),Ge=!ne||ne==z?ze:ca(x,ne);ae={left:Math.min(ze.left,Ge.left),top:Math.min(ze.top,Ge.top)-te,right:Math.max(ze.left,Ge.left),bottom:Math.max(ze.bottom,Ge.bottom)+te};var ft=Hl(x,ae),Gt=x.doc.scrollTop,an=x.doc.scrollLeft;if(ft.scrollTop!=null&&(bl(x,ft.scrollTop),Math.abs(x.doc.scrollTop-Gt)>1&&(Me=!0)),ft.scrollLeft!=null&&(xa(x,ft.scrollLeft),Math.abs(x.doc.scrollLeft-an)>1&&(Me=!0)),!Me)break}return ae}function tu(x,z){var ne=Hl(x,z);ne.scrollTop!=null&&bl(x,ne.scrollTop),ne.scrollLeft!=null&&xa(x,ne.scrollLeft)}function Hl(x,z){var ne=x.display,te=Os(x.display);z.top<0&&(z.top=0);var ae=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,fe=As(x),Me={};z.bottom-z.top>fe&&(z.bottom=z.top+fe);var ze=x.doc.height+El(ne),Ge=z.top<te,ft=z.bottom>ze-te;if(z.top<ae)Me.scrollTop=Ge?0:z.top;else if(z.bottom>ae+fe){var Gt=Math.min(z.top,(ft?ze:z.bottom)-fe);Gt!=ae&&(Me.scrollTop=Gt)}var an=x.options.fixedGutter?0:ne.gutters.offsetWidth,Bn=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-an,kn=Lo(x)-ne.gutters.offsetWidth,ar=z.right-z.left>kn;return ar&&(z.right=z.left+kn),z.left<10?Me.scrollLeft=0:z.left<Bn?Me.scrollLeft=Math.max(0,z.left+an-(ar?0:10)):z.right>kn+Bn-3&&(Me.scrollLeft=z.right+(ar?0:10)-kn),Me}function Mu(x,z){z!=null&&(Ps(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function Fl(x){Ps(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function xs(x,z,ne){(z!=null||ne!=null)&&Ps(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Au(x,z){Ps(x),x.curOp.scrollToPos=z}function Ps(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=Pa(x,z.from),te=Pa(x,z.to);ku(x,ne,te,z.margin)}}function ku(x,z,ne,te){var ae=Hl(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});xs(x,ae.scrollLeft,ae.scrollTop)}function bl(x,z){Math.abs(x.doc.scrollTop-z)<2||(oe||Ur(x,{top:z}),Du(x,z,!0),oe&&Ur(x),Nn(x,100))}function Du(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 xa(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,Hi(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function Ao(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+El(x.display));return{clientHeight:z.scroller.clientHeight,viewHeight:z.wrapper.clientHeight,scrollWidth:z.scroller.scrollWidth,clientWidth:z.scroller.clientWidth,viewWidth:z.wrapper.clientWidth,barLeft:x.options.fixedGutter?ne:0,docHeight:te,scrollHeight:te+Oo(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var Ss=function(x,z,ne){this.cm=ne;var te=this.vert=Je("div",[Je("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ae=this.horiz=Je("div",[Je("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ae.tabIndex=-1,x(te),x(ae),$t(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),$t(ae,"scroll",function(){ae.clientWidth&&z(ae.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ye&&Ee<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ss.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 ae=x.viewHeight-(z?te:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+ae)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=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}},Ss.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ss.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ss.prototype.zeroWidthHack=function(){var x=ct&&!Ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ge,this.disableVert=new ge},Ss.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var ae=x.getBoundingClientRect(),fe=ne=="vert"?document.elementFromPoint(ae.right-1,(ae.top+ae.bottom)/2):document.elementFromPoint((ae.right+ae.left)/2,ae.bottom-1);fe!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},Ss.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var ss=function(){};ss.prototype.update=function(){return{bottom:0,right:0}},ss.prototype.setScrollLeft=function(){},ss.prototype.setScrollTop=function(){},ss.prototype.clear=function(){};function Ys(x,z){z||(z=Ao(x));var ne=x.display.barWidth,te=x.display.barHeight;Fu(x,z);for(var ae=0;ae<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ae++)ne!=x.display.barWidth&&x.options.lineWrapping&&hu(x),Fu(x,Ao(x)),ne=x.display.barWidth,te=x.display.barHeight}function Fu(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 zu={native:Ss,null:ss};function oc(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&Fe(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new zu[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"?xa(x,z):bl(x,z)},x),x.display.scrollbars.addClass&&Tt(x.display.wrapper,x.display.scrollbars.addClass)}var gc=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:++gc},za(x.curOp)}function xl(x){var z=x.curOp;z&&ta(z,function(ne){for(var te=0;te<ne.ops.length;te++)ne.ops[te].cm.curOp=null;ju(ne)})}function ju(x){for(var z=x.ops,ne=0;ne<z.length;ne++)$e(z[ne]);for(var te=0;te<z.length;te++)Ve(z[te]);for(var ae=0;ae<z.length;ae++)Mt(z[ae]);for(var fe=0;fe<z.length;fe++)Pt(z[fe]);for(var Me=0;Me<z.length;Me++)Ut(z[Me])}function $e(x){var z=x.cm,ne=z.display;ur(z),x.updateMaxLine&&xr(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 On(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Ve(x){x.updatedDisplay=x.mustUpdate&&Wr(x.cm,x.update)}function Mt(x){var z=x.cm,ne=z.display;x.updatedDisplay&&hu(z),x.barMeasure=Ao(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=al(z,ne.maxLine,ne.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+x.adjustWidthTo+Oo(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-Lo(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function Pt(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&xa(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var ne=x.focus&&x.focus==He();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,ne),(x.updatedDisplay||x.startHeight!=z.doc.height)&&Ys(z,x.barMeasure),x.updatedDisplay&&Pi(z,x.barMeasure),x.selectionChanged&&Cu(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),ne&&hs(x.cm)}function Ut(x){var z=x.cm,ne=z.display,te=z.doc;if(x.updatedDisplay&&Ir(z,x.update),ne.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),x.scrollTop!=null&&Du(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&xa(z,x.scrollLeft,!0,!0),x.scrollToPos){var ae=Al(z,Fn(te,x.scrollToPos.from),Fn(te,x.scrollToPos.to),x.scrollToPos.margin);ol(z,ae)}var fe=x.maybeHiddenMarkers,Me=x.maybeUnhiddenMarkers;if(fe)for(var ze=0;ze<fe.length;++ze)fe[ze].lines.length||Oe(fe[ze],"hide");if(Me)for(var Ge=0;Ge<Me.length;++Ge)Me[Ge].lines.length&&Oe(Me[Ge],"unhide");ne.wrapper.offsetHeight&&(te.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&Oe(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function Wt(x,z){if(x.curOp)return z();ks(x);try{return z()}finally{xl(x)}}function pn(x,z){return function(){if(x.curOp)return z.apply(x,arguments);ks(x);try{return z.apply(x,arguments)}finally{xl(x)}}}function hn(x){return function(){if(this.curOp)return x.apply(this,arguments);ks(this);try{return x.apply(this,arguments)}finally{xl(this)}}}function un(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{xl(z)}}}function Nn(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,zt($n,x))}function $n(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=Sn(x,z.highlightFrontier),ae=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(fe){if(te.line>=x.display.viewFrom){var Me=fe.styles,ze=fe.text.length>x.options.maxHighlightLength?Ke(z.mode,te.state):null,Ge=Mn(x,fe,te,!0);ze&&(te.state=ze),fe.styles=Ge.styles;var ft=fe.styleClasses,Gt=Ge.classes;Gt?fe.styleClasses=Gt:ft&&(fe.styleClasses=null);for(var an=!Me||Me.length!=fe.styles.length||ft!=Gt&&(!ft||!Gt||ft.bgClass!=Gt.bgClass||ft.textClass!=Gt.textClass),Bn=0;!an&&Bn<Me.length;++Bn)an=Me[Bn]!=fe.styles[Bn];an&&ae.push(te.line),fe.stateAfter=te.save(),te.nextLine()}else fe.text.length<=x.options.maxHighlightLength&&bn(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),ae.length&&Wt(x,function(){for(var fe=0;fe<ae.length;fe++)qs(x,ae[fe],"text")})}}var On=function(x,z,ne){var te=x.display;this.viewport=z,this.visible=Vo(te,x.doc,z),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=Lo(x),this.force=ne,this.dims=Bi(x),this.events=[]};On.prototype.signal=function(x,z){Zt(x,z)&&this.events.push(arguments)},On.prototype.finish=function(){for(var x=0;x<this.events.length;x++)Oe.apply(null,this.events[x])};function ur(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=Oo(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=Oo(x)+"px",z.scrollbarsClipped=!0)}function rr(x){if(x.hasFocus())return null;var z=He();if(!z||!kt(x.display.lineDiv,z))return null;var ne={activeElt:z};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&kt(x.display.lineDiv,te.anchorNode)&&(ne.anchorNode=te.anchorNode,ne.anchorOffset=te.anchorOffset,ne.focusNode=te.focusNode,ne.focusOffset=te.focusOffset)}return ne}function ir(x){if(!(!x||!x.activeElt||x.activeElt==He())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&kt(document.body,x.anchorNode)&&kt(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 Wr(x,z){var ne=x.display,te=x.doc;if(z.editorIsHidden)return Ya(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&&Ml(x)==0)return!1;xi(x)&&(Ya(x),z.dims=Bi(x));var ae=te.first+te.size,fe=Math.max(z.visible.from-x.options.viewportMargin,te.first),Me=Math.min(ae,z.visible.to+x.options.viewportMargin);ne.viewFrom<fe&&fe-ne.viewFrom<20&&(fe=Math.max(te.first,ne.viewFrom)),ne.viewTo>Me&&ne.viewTo-Me<20&&(Me=Math.min(ae,ne.viewTo)),oi&&(fe=Ga(x.doc,fe),Me=la(x.doc,Me));var ze=fe!=ne.viewFrom||Me!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;_s(x,fe,Me),ne.viewOffset=vr(Dt(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var Ge=Ml(x);if(!ze&&Ge==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var ft=rr(x);return Ge>4&&(ne.lineDiv.style.display="none"),Br(x,ne.updateLineNumbers,z.dims),Ge>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,ir(ft),Ze(ne.cursorDiv),Ze(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,ze&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,Nn(x,400)),ne.updateLineNumbers=null,!0}function Ir(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==Lo(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+El(x.display)-As(x),ne.top)}),z.visible=Vo(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=Vo(x.display,x.doc,ne));if(!Wr(x,z))break;hu(x);var ae=Ao(x);du(x),Ys(x,ae),Pi(x,ae),z.force=!1}z.signal(x,"update",x),(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)&&(z.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo)}function Ur(x,z){var ne=new On(x,z);if(Wr(x,ne)){hu(x),Ir(x,ne);var te=Ao(x);du(x),Ys(x,te),Pi(x,te),ne.finish()}}function Br(x,z,ne){var te=x.display,ae=x.options.lineNumbers,fe=te.lineDiv,Me=fe.firstChild;function ze(ar){var Mr=ar.nextSibling;return he&&ct&&x.display.currentWheelTarget==ar?ar.style.display="none":ar.parentNode.removeChild(ar),Mr}for(var Ge=te.view,ft=te.viewFrom,Gt=0;Gt<Ge.length;Gt++){var an=Ge[Gt];if(!an.hidden)if(!an.node||an.node.parentNode!=fe){var Bn=Ui(x,an,ft,ne);fe.insertBefore(Bn,Me)}else{for(;Me!=an.node;)Me=ze(Me);var kn=ae&&z!=null&&z<=ft&&an.lineNumber;an.changes&&(at(an.changes,"gutter")>-1&&(kn=!1),oa(x,an,ft,ne)),kn&&(Ze(an.lineNumber),an.lineNumber.appendChild(document.createTextNode(Pn(x.options,ft)))),Me=an.node.nextSibling}ft+=an.size}for(;Me;)Me=ze(Me)}function li(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Pi(x,z){x.display.sizer.style.minHeight=z.docHeight+"px",x.display.heightForcer.style.top=z.docHeight+"px",x.display.gutters.style.height=z.docHeight+x.display.barHeight+Oo(x)+"px"}function Hi(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=ua(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ae=z.gutters.offsetWidth,fe=te+"px",Me=0;Me<ne.length;Me++)if(!ne[Me].hidden){x.options.fixedGutter&&(ne[Me].gutter&&(ne[Me].gutter.style.left=fe),ne[Me].gutterBackground&&(ne[Me].gutterBackground.style.left=fe));var ze=ne[Me].alignable;if(ze)for(var Ge=0;Ge<ze.length;Ge++)ze[Ge].style.left=fe}x.options.fixedGutter&&(z.gutters.style.left=te+ae+"px")}}function xi(x){if(!x.options.lineNumbers)return!1;var z=x.doc,ne=Pn(x.options,z.first+z.size-1),te=x.display;if(ne.length!=te.lineNumChars){var ae=te.measure.appendChild(Je("div",[Je("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),fe=ae.firstChild.offsetWidth,Me=ae.offsetWidth-fe;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(fe,te.lineGutter.offsetWidth-Me)+1,te.lineNumWidth=te.lineNumInnerWidth+Me,te.lineNumChars=te.lineNumInnerWidth?ne.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",li(x.display),!0}return!1}function na(x,z){for(var ne=[],te=!1,ae=0;ae<x.length;ae++){var fe=x[ae],Me=null;if(typeof fe!="string"&&(Me=fe.style,fe=fe.className),fe=="CodeMirror-linenumbers")if(z)te=!0;else continue;ne.push({className:fe,style:Me})}return z&&!te&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function ya(x){var z=x.gutters,ne=x.gutterSpecs;Ze(z),x.lineGutter=null;for(var te=0;te<ne.length;++te){var ae=ne[te],fe=ae.className,Me=ae.style,ze=z.appendChild(Je("div",null,"CodeMirror-gutter "+fe));Me&&(ze.style.cssText=Me),fe=="CodeMirror-linenumbers"&&(x.lineGutter=ze,ze.style.width=(x.lineNumWidth||1)+"px")}z.style.display=ne.length?"":"none",li(x)}function hi(x){ya(x.display),To(x),Hi(x)}function Ai(x,z,ne,te){var ae=this;this.input=ne,ae.scrollbarFiller=Je("div",null,"CodeMirror-scrollbar-filler"),ae.scrollbarFiller.setAttribute("cm-not-content","true"),ae.gutterFiller=Je("div",null,"CodeMirror-gutter-filler"),ae.gutterFiller.setAttribute("cm-not-content","true"),ae.lineDiv=dt("div",null,"CodeMirror-code"),ae.selectionDiv=Je("div",null,null,"position: relative; z-index: 1"),ae.cursorDiv=Je("div",null,"CodeMirror-cursors"),ae.measure=Je("div",null,"CodeMirror-measure"),ae.lineMeasure=Je("div",null,"CodeMirror-measure"),ae.lineSpace=dt("div",[ae.measure,ae.lineMeasure,ae.selectionDiv,ae.cursorDiv,ae.lineDiv],null,"position: relative; outline: none");var fe=dt("div",[ae.lineSpace],"CodeMirror-lines");ae.mover=Je("div",[fe],null,"position: relative"),ae.sizer=Je("div",[ae.mover],"CodeMirror-sizer"),ae.sizerWidth=null,ae.heightForcer=Je("div",null,null,"position: absolute; height: "+Ct+"px; width: 1px;"),ae.gutters=Je("div",null,"CodeMirror-gutters"),ae.lineGutter=null,ae.scroller=Je("div",[ae.sizer,ae.heightForcer,ae.gutters],"CodeMirror-scroll"),ae.scroller.setAttribute("tabIndex","-1"),ae.wrapper=Je("div",[ae.scrollbarFiller,ae.gutterFiller,ae.scroller],"CodeMirror"),ye&&Ee<8&&(ae.gutters.style.zIndex=-1,ae.scroller.style.paddingRight=0),!he&&!(oe&&We)&&(ae.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(ae.wrapper):x(ae.wrapper)),ae.viewFrom=ae.viewTo=z.first,ae.reportedViewFrom=ae.reportedViewTo=z.first,ae.view=[],ae.renderedView=null,ae.externalMeasured=null,ae.viewOffset=0,ae.lastWrapHeight=ae.lastWrapWidth=0,ae.updateLineNumbers=null,ae.nativeBarWidth=ae.barHeight=ae.barWidth=0,ae.scrollbarsClipped=!1,ae.lineNumWidth=ae.lineNumInnerWidth=ae.lineNumChars=null,ae.alignWidgets=!1,ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.maxLine=null,ae.maxLineLength=0,ae.maxLineChanged=!1,ae.wheelDX=ae.wheelDY=ae.wheelStartX=ae.wheelStartY=null,ae.shift=!1,ae.selForContextMenu=null,ae.activeTouch=null,ae.gutterSpecs=na(te.gutters,te.lineNumbers),ya(ae),ne.init(ae)}var vi=0,Er=null;ye?Er=-.53:oe?Er=15:we?Er=-.7:qe&&(Er=-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 qi(x){var z=Si(x);return z.x*=Er,z.y*=Er,z}function Gi(x,z){var ne=Si(z),te=ne.x,ae=ne.y,fe=x.display,Me=fe.scroller,ze=Me.scrollWidth>Me.clientWidth,Ge=Me.scrollHeight>Me.clientHeight;if(te&&ze||ae&&Ge){if(ae&&ct&&he){e:for(var ft=z.target,Gt=fe.view;ft!=Me;ft=ft.parentNode)for(var an=0;an<Gt.length;an++)if(Gt[an].node==ft){x.display.currentWheelTarget=ft;break e}}if(te&&!oe&&!Te&&Er!=null){ae&&Ge&&bl(x,Math.max(0,Me.scrollTop+ae*Er)),xa(x,Math.max(0,Me.scrollLeft+te*Er)),(!ae||ae&&Ge)&&Cn(z),fe.wheelStartX=null;return}if(ae&&Er!=null){var Bn=ae*Er,kn=x.doc.scrollTop,ar=kn+fe.wrapper.clientHeight;Bn<0?kn=Math.max(0,kn+Bn-50):ar=Math.min(x.doc.height,ar+Bn+50),Ur(x,{top:kn,bottom:ar})}vi<20&&(fe.wheelStartX==null?(fe.wheelStartX=Me.scrollLeft,fe.wheelStartY=Me.scrollTop,fe.wheelDX=te,fe.wheelDY=ae,setTimeout(function(){if(fe.wheelStartX!=null){var Mr=Me.scrollLeft-fe.wheelStartX,ri=Me.scrollTop-fe.wheelStartY,wi=ri&&fe.wheelDY&&ri/fe.wheelDY||Mr&&fe.wheelDX&&Mr/fe.wheelDX;fe.wheelStartX=fe.wheelStartY=null,wi&&(Er=(Er*vi+wi)/(vi+1),++vi)}},200)):(fe.wheelDX+=te,fe.wheelDY+=ae))}}var Ri=function(x,z){this.ranges=x,this.primIndex=z};Ri.prototype.primary=function(){return this.ranges[this.primIndex]},Ri.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(!Xn(ne.anchor,te.anchor)||!Xn(ne.head,te.head))return!1}return!0},Ri.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new Xr(Wn(this.ranges[z].anchor),Wn(this.ranges[z].head));return new Ri(x,this.primIndex)},Ri.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},Ri.prototype.contains=function(x,z){z||(z=x);for(var ne=0;ne<this.ranges.length;ne++){var te=this.ranges[ne];if(wn(z,te.from())>=0&&wn(x,te.to())<=0)return ne}return-1};var Xr=function(x,z){this.anchor=x,this.head=z};Xr.prototype.from=function(){return Jn(this.anchor,this.head)},Xr.prototype.to=function(){return sr(this.anchor,this.head)},Xr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function fa(x,z,ne){var te=x&&x.options.selectionsMayTouch,ae=z[ne];z.sort(function(Bn,kn){return wn(Bn.from(),kn.from())}),ne=at(z,ae);for(var fe=1;fe<z.length;fe++){var Me=z[fe],ze=z[fe-1],Ge=wn(ze.to(),Me.from());if(te&&!Me.empty()?Ge>0:Ge>=0){var ft=Jn(ze.from(),Me.from()),Gt=sr(ze.to(),Me.to()),an=ze.empty()?Me.from()==Me.head:ze.from()==ze.head;fe<=ne&&--ne,z.splice(--fe,2,new Xr(an?Gt:ft,an?ft:Gt))}}return new Ri(z,ne)}function ha(x,z){return new Ri([new Xr(x,z||x)],0)}function ja(x){return x.text?Qt(x.from.line+x.text.length-1,en(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function Fa(x,z){if(wn(x,z.from)<0)return x;if(wn(x,z.to)<=0)return ja(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+=ja(z).ch-z.to.ch),Qt(ne,te)}function ko(x,z){for(var ne=[],te=0;te<x.sel.ranges.length;te++){var ae=x.sel.ranges[te];ne.push(new Xr(Fa(ae.anchor,z),Fa(ae.head,z)))}return fa(x.cm,ne,x.sel.primIndex)}function Va(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 aa(x,z,ne){for(var te=[],ae=Qt(x.first,0),fe=ae,Me=0;Me<z.length;Me++){var ze=z[Me],Ge=Va(ze.from,ae,fe),ft=Va(ja(ze),ae,fe);if(ae=ze.to,fe=ft,ne=="around"){var Gt=x.sel.ranges[Me],an=wn(Gt.head,Gt.anchor)<0;te[Me]=new Xr(an?ft:Ge,an?Ge:ft)}else te[Me]=new Xr(Ge,Ge)}return new Ri(te,x.sel.primIndex)}function ao(x){x.doc.mode=Gn(x.options,x.doc.modeOption),Ba(x)}function Ba(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&&To(x)}function Eo(x,z){return z.from.ch==0&&z.to.ch==0&&en(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function vo(x,z,ne,te){function ae(_i){return ne?ne[_i]:null}function fe(_i,yi,zi){ia(_i,yi,zi,te),Ci(_i,"change",_i,z)}function Me(_i,yi){for(var zi=[],sa=_i;sa<yi;++sa)zi.push(new Gr(ft[sa],ae(sa),te));return zi}var ze=z.from,Ge=z.to,ft=z.text,Gt=Dt(x,ze.line),an=Dt(x,Ge.line),Bn=en(ft),kn=ae(ft.length-1),ar=Ge.line-ze.line;if(z.full)x.insert(0,Me(0,ft.length)),x.remove(ft.length,x.size-ft.length);else if(Eo(x,z)){var Mr=Me(0,ft.length-1);fe(an,an.text,kn),ar&&x.remove(ze.line,ar),Mr.length&&x.insert(ze.line,Mr)}else if(Gt==an)if(ft.length==1)fe(Gt,Gt.text.slice(0,ze.ch)+Bn+Gt.text.slice(Ge.ch),kn);else{var ri=Me(1,ft.length-1);ri.push(new Gr(Bn+Gt.text.slice(Ge.ch),kn,te)),fe(Gt,Gt.text.slice(0,ze.ch)+ft[0],ae(0)),x.insert(ze.line+1,ri)}else if(ft.length==1)fe(Gt,Gt.text.slice(0,ze.ch)+ft[0]+an.text.slice(Ge.ch),ae(0)),x.remove(ze.line+1,ar);else{fe(Gt,Gt.text.slice(0,ze.ch)+ft[0],ae(0)),fe(an,Bn+an.text.slice(Ge.ch),kn);var wi=Me(1,ft.length-1);ar>1&&x.remove(ze.line+1,ar-1),x.insert(ze.line+1,wi)}Ci(x,"change",x,z)}function ts(x,z,ne){function te(ae,fe,Me){if(ae.linked)for(var ze=0;ze<ae.linked.length;++ze){var Ge=ae.linked[ze];if(Ge.doc!=fe){var ft=Me&&Ge.sharedHist;ne&&!ft||(z(Ge.doc,ft),te(Ge.doc,ae,ft))}}}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,Ta(x),ao(x),Wi(x),x.options.lineWrapping||xr(x),x.options.mode=z.modeOption,To(x)}function Wi(x){(x.doc.direction=="rtl"?Tt:Fe)(x.display.lineDiv,"CodeMirror-rtl")}function Vi(x){Wt(x,function(){Wi(x),To(x)})}function Fi(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 $a(x,z){var ne={from:Wn(z.from),to:ja(z),text:Ht(x,z.from,z.to)};return Zs(x,ne,z.from.line,z.to.line+1),ts(x,function(te){return Zs(te,ne,z.from.line,z.to.line+1)},!0),ne}function Ln(x){for(;x.length;){var z=en(x);if(z.ranges)x.pop();else break}}function pr(x,z){if(z)return Ln(x.done),en(x.done);if(x.done.length&&!en(x.done).ranges)return en(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),en(x.done)}function pa(x,z,ne,te){var ae=x.history;ae.undone.length=0;var fe=+new Date,Me,ze;if((ae.lastOp==te||ae.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ae.lastModTime>fe-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(Me=pr(ae,ae.lastOp==te)))ze=en(Me.changes),wn(z.from,z.to)==0&&wn(z.from,ze.to)==0?ze.to=ja(z):Me.changes.push($a(x,z));else{var Ge=en(ae.done);for((!Ge||!Ge.ranges)&&Go(x.sel,ae.done),Me={changes:[$a(x,z)],generation:ae.generation},ae.done.push(Me);ae.done.length>ae.undoDepth;)ae.done.shift(),ae.done[0].ranges||ae.done.shift()}ae.done.push(ne),ae.generation=++ae.maxGeneration,ae.lastModTime=ae.lastSelTime=fe,ae.lastOp=ae.lastSelOp=te,ae.lastOrigin=ae.lastSelOrigin=z.origin,ze||Oe(x,"historyAdded")}function ka(x,z,ne,te){var ae=z.charAt(0);return ae=="*"||ae=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function rs(x,z,ne,te){var ae=x.history,fe=te&&te.origin;ne==ae.lastSelOp||fe&&ae.lastSelOrigin==fe&&(ae.lastModTime==ae.lastSelTime&&ae.lastOrigin==fe||ka(x,fe,en(ae.done),z))?ae.done[ae.done.length-1]=z:Go(z,ae.done),ae.lastSelTime=+new Date,ae.lastSelOrigin=fe,ae.lastSelOp=ne,te&&te.clearRedo!==!1&&Ln(ae.undone)}function Go(x,z){var ne=en(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function Zs(x,z,ne,te){var ae=z["spans_"+x.id],fe=0;x.iter(Math.max(x.first,ne),Math.min(x.first+x.size,te),function(Me){Me.markedSpans&&((ae||(ae=z["spans_"+x.id]={}))[fe]=Me.markedSpans),++fe})}function ns(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 kl(x,z){var ne=z["spans_"+x.id];if(!ne)return null;for(var te=[],ae=0;ae<z.text.length;++ae)te.push(ns(ne[ae]));return te}function is(x,z){var ne=kl(x,z),te=tr(x,z);if(!ne)return te;if(!te)return ne;for(var ae=0;ae<ne.length;++ae){var fe=ne[ae],Me=te[ae];if(fe&&Me)e:for(var ze=0;ze<Me.length;++ze){for(var Ge=Me[ze],ft=0;ft<fe.length;++ft)if(fe[ft].marker==Ge.marker)continue e;fe.push(Ge)}else Me&&(ne[ae]=Me)}return ne}function Ds(x,z,ne){for(var te=[],ae=0;ae<x.length;++ae){var fe=x[ae];if(fe.ranges){te.push(ne?Ri.prototype.deepCopy.call(fe):fe);continue}var Me=fe.changes,ze=[];te.push({changes:ze});for(var Ge=0;Ge<Me.length;++Ge){var ft=Me[Ge],Gt=void 0;if(ze.push({from:ft.from,to:ft.to,text:ft.text}),z)for(var an in ft)(Gt=an.match(/^spans_(\d+)$/))&&at(z,Number(Gt[1]))>-1&&(en(ze)[an]=ft[an],delete ft[an])}}return te}function Wl(x,z,ne,te){if(te){var ae=x.anchor;if(ne){var fe=wn(z,ae)<0;fe!=wn(ne,ae)<0?(ae=z,z=ne):fe!=wn(z,ne)<0&&(z=ne)}return new Xr(ae,z)}else return new Xr(ne||z,z)}function Za(x,z,ne,te,ae){ae==null&&(ae=x.cm&&(x.cm.display.shift||x.extend)),uo(x,new Ri([Wl(x.sel.primary(),z,ne,ae)],0),te)}function Nr(x,z,ne){for(var te=[],ae=x.cm&&(x.cm.display.shift||x.extend),fe=0;fe<x.sel.ranges.length;fe++)te[fe]=Wl(x.sel.ranges[fe],z[fe],null,ae);var Me=fa(x.cm,te,x.sel.primIndex);uo(x,Me,ne)}function Qa(x,z,ne,te){var ae=x.sel.ranges.slice(0);ae[z]=ne,uo(x,fa(x.cm,ae,x.sel.primIndex),te)}function ls(x,z,ne,te){uo(x,ha(z,ne),te)}function ps(x,z,ne){var te={ranges:z.ranges,update:function(ae){this.ranges=[];for(var fe=0;fe<ae.length;fe++)this.ranges[fe]=new Xr(Fn(x,ae[fe].anchor),Fn(x,ae[fe].head))},origin:ne&&ne.origin};return Oe(x,"beforeSelectionChange",x,te),x.cm&&Oe(x.cm,"beforeSelectionChange",x.cm,te),te.ranges!=z.ranges?fa(x.cm,te.ranges,te.ranges.length-1):z}function ma(x,z,ne){var te=x.history.done,ae=en(te);ae&&ae.ranges?(te[te.length-1]=z,Is(x,z,ne)):uo(x,z,ne)}function uo(x,z,ne){Is(x,z,ne),rs(x,x.sel,x.cm?x.cm.curOp.id:NaN,ne)}function Is(x,z,ne){(Zt(x,"beforeSelectionChange")||x.cm&&Zt(x.cm,"beforeSelectionChange"))&&(z=ps(x,z,ne));var te=ne&&ne.bias||(wn(z.primary().head,x.sel.primary().head)<0?-1:1);pl(x,el(x,z,te,!0)),!(ne&&ne.scroll===!1)&&x.cm&&Fl(x.cm)}function pl(x,z){z.equals(x.sel)||(x.sel=z,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,jt(x.cm)),Ci(x,"cursorActivity",x))}function zl(x){pl(x,el(x,x.sel,null,!1))}function el(x,z,ne,te){for(var ae,fe=0;fe<z.ranges.length;fe++){var Me=z.ranges[fe],ze=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[fe],Ge=Nl(x,Me.anchor,ze&&ze.anchor,ne,te),ft=Nl(x,Me.head,ze&&ze.head,ne,te);(ae||Ge!=Me.anchor||ft!=Me.head)&&(ae||(ae=z.ranges.slice(0,fe)),ae[fe]=new Xr(Ge,ft))}return ae?fa(x.cm,ae,z.primIndex):z}function Rs(x,z,ne,te,ae){var fe=Dt(x,z.line);if(fe.markedSpans)for(var Me=0;Me<fe.markedSpans.length;++Me){var ze=fe.markedSpans[Me],Ge=ze.marker,ft="selectLeft"in Ge?!Ge.selectLeft:Ge.inclusiveLeft,Gt="selectRight"in Ge?!Ge.selectRight:Ge.inclusiveRight;if((ze.from==null||(ft?ze.from<=z.ch:ze.from<z.ch))&&(ze.to==null||(Gt?ze.to>=z.ch:ze.to>z.ch))){if(ae&&(Oe(Ge,"beforeCursorEnter"),Ge.explicitlyCleared))if(fe.markedSpans){--Me;continue}else break;if(!Ge.atomic)continue;if(ne){var an=Ge.find(te<0?1:-1),Bn=void 0;if((te<0?Gt:ft)&&(an=Fs(x,an,-te,an&&an.line==z.line?fe:null)),an&&an.line==z.line&&(Bn=wn(an,ne))&&(te<0?Bn<0:Bn>0))return Rs(x,an,z,te,ae)}var kn=Ge.find(te<0?-1:1);return(te<0?ft:Gt)&&(kn=Fs(x,kn,te,kn.line==z.line?fe:null)),kn?Rs(x,kn,z,te,ae):null}}return z}function Nl(x,z,ne,te,ae){var fe=te||1,Me=Rs(x,z,ne,fe,ae)||!ae&&Rs(x,z,ne,fe,!0)||Rs(x,z,ne,-fe,ae)||!ae&&Rs(x,z,ne,-fe,!0);return Me||(x.cantEdit=!0,Qt(x.first,0))}function Fs(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?Fn(x,Qt(z.line-1)):null:ne>0&&z.ch==(te||Dt(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 tl(x){x.setSelection(Qt(x.firstLine(),0),Qt(x.lastLine()),Qe)}function Hs(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(ae,fe,Me,ze){ae&&(te.from=Fn(x,ae)),fe&&(te.to=Fn(x,fe)),Me&&(te.text=Me),ze!==void 0&&(te.origin=ze)}),Oe(x,"beforeChange",x,te),x.cm&&Oe(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 zo(x,z,ne){if(x.cm){if(!x.cm.curOp)return pn(x.cm,zo)(x,z,ne);if(x.cm.state.suppressEdits)return}if(!((Zt(x,"beforeChange")||x.cm&&Zt(x.cm,"beforeChange"))&&(z=Hs(x,z,!0),!z))){var te=mi&&!ne&&Qr(x,z.from,z.to);if(te)for(var ae=te.length-1;ae>=0;--ae)jo(x,{from:te[ae].from,to:te[ae].to,text:ae?[""]:z.text,origin:z.origin});else jo(x,z)}}function jo(x,z){if(!(z.text.length==1&&z.text[0]==""&&wn(z.from,z.to)==0)){var ne=ko(x,z);pa(x,z,ne,x.cm?x.cm.curOp.id:NaN),Sl(x,z,ne,tr(x,z));var te=[];ts(x,function(ae,fe){!fe&&at(te,ae.history)==-1&&(yo(ae.history,z),te.push(ae.history)),Sl(ae,z,null,tr(ae,z))})}}function Qs(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ae=x.history,fe,Me=x.sel,ze=z=="undo"?ae.done:ae.undone,Ge=z=="undo"?ae.undone:ae.done,ft=0;ft<ze.length&&(fe=ze[ft],!(ne?fe.ranges&&!fe.equals(x.sel):!fe.ranges));ft++);if(ft!=ze.length){for(ae.lastOrigin=ae.lastSelOrigin=null;;)if(fe=ze.pop(),fe.ranges){if(Go(fe,Ge),ne&&!fe.equals(x.sel)){uo(x,fe,{clearRedo:!1});return}Me=fe}else if(te){ze.push(fe);return}else break;var Gt=[];Go(Me,Ge),Ge.push({changes:Gt,generation:ae.generation}),ae.generation=fe.generation||++ae.maxGeneration;for(var an=Zt(x,"beforeChange")||x.cm&&Zt(x.cm,"beforeChange"),Bn=function(Mr){var ri=fe.changes[Mr];if(ri.origin=z,an&&!Hs(x,ri,!1))return ze.length=0,{};Gt.push($a(x,ri));var wi=Mr?ko(x,ri):en(ze);Sl(x,ri,wi,is(x,ri)),!Mr&&x.cm&&x.cm.scrollIntoView({from:ri.from,to:ja(ri)});var _i=[];ts(x,function(yi,zi){!zi&&at(_i,yi.history)==-1&&(yo(yi.history,ri),_i.push(yi.history)),Sl(yi,ri,null,is(yi,ri))})},kn=fe.changes.length-1;kn>=0;--kn){var ar=Bn(kn);if(ar)return ar.v}}}}function Ul(x,z){if(z!=0&&(x.first+=z,x.sel=new Ri(Jt(x.sel.ranges,function(ae){return new Xr(Qt(ae.anchor.line+z,ae.anchor.ch),Qt(ae.head.line+z,ae.head.ch))}),x.sel.primIndex),x.cm)){To(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;te<ne.viewTo;te++)qs(x.cm,te,"gutter")}}function Sl(x,z,ne,te){if(x.cm&&!x.cm.curOp)return pn(x.cm,Sl)(x,z,ne,te);if(z.to.line<x.first){Ul(x,z.text.length-1-(z.to.line-z.from.line));return}if(!(z.from.line>x.lastLine())){if(z.from.line<x.first){var ae=z.text.length-1-(x.first-z.from.line);Ul(x,ae),z={from:Qt(x.first,0),to:Qt(z.to.line+ae,z.to.ch),text:[en(z.text)],origin:z.origin}}var fe=x.lastLine();z.to.line>fe&&(z={from:z.from,to:Qt(fe,Dt(x,fe).text.length),text:[z.text[0]],origin:z.origin}),z.removed=Ht(x,z.from,z.to),ne||(ne=ko(x,z)),x.cm?jl(x.cm,z,te):vo(x,z,te),Is(x,ne,Qe),x.cantEdit&&Nl(x,Qt(x.firstLine(),0))&&(x.cantEdit=!1)}}function jl(x,z,ne){var te=x.doc,ae=x.display,fe=z.from,Me=z.to,ze=!1,Ge=fe.line;x.options.lineWrapping||(Ge=mn(Ii(Dt(te,fe.line))),te.iter(Ge,Me.line+1,function(kn){if(kn==ae.maxLine)return ze=!0,!0})),te.sel.contains(z.from,z.to)>-1&&jt(x),vo(te,z,ne,Ca(x)),x.options.lineWrapping||(te.iter(Ge,fe.line+z.text.length,function(kn){var ar=br(kn);ar>ae.maxLineLength&&(ae.maxLine=kn,ae.maxLineLength=ar,ae.maxLineChanged=!0,ze=!1)}),ze&&(x.curOp.updateMaxLine=!0)),Lr(te,fe.line),Nn(x,400);var ft=z.text.length-(Me.line-fe.line)-1;z.full?To(x):fe.line==Me.line&&z.text.length==1&&!Eo(x.doc,z)?qs(x,fe.line,"text"):To(x,fe.line,Me.line+1,ft);var Gt=Zt(x,"changes"),an=Zt(x,"change");if(an||Gt){var Bn={from:fe,to:Me,text:z.text,removed:z.removed,origin:z.origin};an&&Ci(x,"change",x,Bn),Gt&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(Bn)}x.display.selForContextMenu=null}function nu(x,z,ne,te,ae){var fe;te||(te=ne),wn(te,ne)<0&&(fe=[te,ne],ne=fe[0],te=fe[1]),typeof z=="string"&&(z=x.splitLines(z)),zo(x,{from:ne,to:te,text:z,origin:ae})}function vc(x,z,ne,te){ne<x.line?x.line+=te:z<x.line&&(x.line=z,x.ch=0)}function Ha(x,z,ne,te){for(var ae=0;ae<x.length;++ae){var fe=x[ae],Me=!0;if(fe.ranges){fe.copied||(fe=x[ae]=fe.deepCopy(),fe.copied=!0);for(var ze=0;ze<fe.ranges.length;ze++)vc(fe.ranges[ze].anchor,z,ne,te),vc(fe.ranges[ze].head,z,ne,te);continue}for(var Ge=0;Ge<fe.changes.length;++Ge){var ft=fe.changes[Ge];if(ne<ft.from.line)ft.from=Qt(ft.from.line+te,ft.from.ch),ft.to=Qt(ft.to.line+te,ft.to.ch);else if(z<=ft.to.line){Me=!1;break}}Me||(x.splice(0,ae+1),ae=0)}}function yo(x,z){var ne=z.from.line,te=z.to.line,ae=z.text.length-(te-ne)-1;Ha(x.done,ne,te,ae),Ha(x.undone,ne,te,ae)}function Cs(x,z,ne,te){var ae=z,fe=z;return typeof z=="number"?fe=Dt(x,Ar(x,z)):ae=mn(z),ae==null?null:(te(fe,ae)&&x.cm&&qs(x.cm,ae,ne),fe)}function bo(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}bo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,z){for(var ne=x,te=x+z;ne<te;++ne){var ae=this.lines[ne];this.height-=ae.height,wa(ae),Ci(ae,"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 ws(x){this.children=x;for(var z=0,ne=0,te=0;te<x.length;++te){var ae=x[te];z+=ae.chunkSize(),ne+=ae.height,ae.parent=this}this.size=z,this.height=ne,this.parent=null}ws.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],ae=te.chunkSize();if(x<ae){var fe=Math.min(z,ae-x),Me=te.height;if(te.removeInner(x,fe),this.height-=Me-te.height,ae==fe&&(this.children.splice(ne--,1),te.parent=null),(z-=fe)==0)break;x=0}else x-=ae}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof bo))){var ze=[];this.collapse(ze),this.children=[new bo(ze)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z<this.children.length;++z)this.children[z].collapse(x)},insertInner:function(x,z,ne){this.size+=z.length,this.height+=ne;for(var te=0;te<this.children.length;++te){var ae=this.children[te],fe=ae.chunkSize();if(x<=fe){if(ae.insertInner(x,z,ne),ae.lines&&ae.lines.length>50){for(var Me=ae.lines.length%25+25,ze=Me;ze<ae.lines.length;){var Ge=new bo(ae.lines.slice(ze,ze+=25));ae.height-=Ge.height,this.children.splice(++te,0,Ge),Ge.parent=this}ae.lines=ae.lines.slice(0,Me),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 ws(z);if(x.parent){x.size-=ne.size,x.height-=ne.height;var ae=at(x.parent.children,x);x.parent.children.splice(ae+1,0,ne)}else{var te=new ws(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 ae=this.children[te],fe=ae.chunkSize();if(x<fe){var Me=Math.min(z,fe-x);if(ae.iterN(x,Me,ne))return!0;if((z-=Me)==0)break;x=0}else x-=fe}}};var zs=function(x,z,ne){if(ne)for(var te in ne)ne.hasOwnProperty(te)&&(this[te]=ne[te]);this.doc=x,this.node=z};zs.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,ne=this.line,te=mn(ne);if(!(te==null||!z)){for(var ae=0;ae<z.length;++ae)z[ae]==this&&z.splice(ae--,1);z.length||(ne.widgets=null);var fe=fn(this);qt(ne,Math.max(0,ne.height-fe)),x&&(Wt(x,function(){sl(x,ne,-fe),qs(x,te,"widget")}),Ci(x,"lineWidgetCleared",x,this,te))}},zs.prototype.changed=function(){var x=this,z=this.height,ne=this.doc.cm,te=this.line;this.height=null;var ae=fn(this)-z;ae&&(Oa(this.doc,te)||qt(te,te.height+ae),ne&&Wt(ne,function(){ne.curOp.forceUpdate=!0,sl(ne,te,ae),Ci(ne,"lineWidgetChanged",ne,x,mn(te))}))},nn(zs);function sl(x,z,ne){vr(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&Mu(x,ne)}function Vl(x,z,ne,te){var ae=new zs(x,ne,te),fe=x.cm;return fe&&ae.noHScroll&&(fe.display.alignWidgets=!0),Cs(x,z,"widget",function(Me){var ze=Me.widgets||(Me.widgets=[]);if(ae.insertAt==null?ze.push(ae):ze.splice(Math.min(ze.length-1,Math.max(0,ae.insertAt)),0,ae),ae.line=Me,fe&&!Oa(x,Me)){var Ge=vr(Me)<x.scrollTop;qt(Me,Me.height+fn(ae)),Ge&&Mu(fe,ae.height),fe.curOp.forceUpdate=!0}return!0}),fe&&Ci(fe,"lineWidgetAdded",fe,ae,typeof z=="number"?z:mn(z)),ae}var Bc=0,pu=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++Bc};pu.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&&Ci(this,"clear",ne.from,ne.to)}for(var te=null,ae=null,fe=0;fe<this.lines.length;++fe){var Me=this.lines[fe],ze=En(Me.markedSpans,this);x&&!this.collapsed?qs(x,mn(Me),"text"):x&&(ze.to!=null&&(ae=mn(Me)),ze.from!=null&&(te=mn(Me))),Me.markedSpans=Yr(Me.markedSpans,ze),ze.from==null&&this.collapsed&&!Oa(this.doc,Me)&&x&&qt(Me,Os(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var Ge=0;Ge<this.lines.length;++Ge){var ft=Ii(this.lines[Ge]),Gt=br(ft);Gt>x.display.maxLineLength&&(x.display.maxLine=ft,x.display.maxLineLength=Gt,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&To(x,te,ae+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&zl(x.doc)),x&&Ci(x,"markerCleared",x,this,te,ae),z&&xl(x),this.parent&&this.parent.clear()}},pu.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,ae=0;ae<this.lines.length;++ae){var fe=this.lines[ae],Me=En(fe.markedSpans,this);if(Me.from!=null&&(ne=Qt(z?fe:mn(fe),Me.from),x==-1))return ne;if(Me.to!=null&&(te=Qt(z?fe:mn(fe),Me.to),x==1))return te}return ne&&{from:ne,to:te}},pu.prototype.changed=function(){var x=this,z=this.find(-1,!0),ne=this,te=this.doc.cm;!z||!te||Wt(te,function(){var ae=z.line,fe=mn(z.line),Me=os(te,fe);if(Me&&(bi(Me),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!Oa(ne.doc,ae)&&ne.height!=null){var ze=ne.height;ne.height=null;var Ge=fn(ne)-ze;Ge&&qt(ae,ae.height+Ge)}Ci(te,"markerChanged",te,x)})},pu.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||at(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},pu.prototype.detachLine=function(x){if(this.lines.splice(at(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},nn(pu);function Gl(x,z,ne,te,ae){if(te&&te.shared)return Ko(x,z,ne,te,ae);if(x.cm&&!x.cm.curOp)return pn(x.cm,Gl)(x,z,ne,te,ae);var fe=new pu(x,ae),Me=wn(z,ne);if(te&&Bt(te,fe,!1),Me>0||Me==0&&fe.clearWhenEmpty!==!1)return fe;if(fe.replacedWith&&(fe.collapsed=!0,fe.widgetNode=dt("span",[fe.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||fe.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(fe.widgetNode.insertLeft=!0)),fe.collapsed){if(Di(x,z.line,z,ne,fe)||z.line!=ne.line&&Di(x,ne.line,z,ne,fe))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pr()}fe.addToHistory&&pa(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var ze=z.line,Ge=x.cm,ft;if(x.iter(ze,ne.line+1,function(an){Ge&&fe.collapsed&&!Ge.options.lineWrapping&&Ii(an)==Ge.display.maxLine&&(ft=!0),fe.collapsed&&ze!=z.line&&qt(an,0),Li(an,new Vr(fe,ze==z.line?z.ch:null,ze==ne.line?ne.ch:null)),++ze}),fe.collapsed&&x.iter(z.line,ne.line+1,function(an){Oa(x,an)&&qt(an,0)}),fe.clearOnEnter&&$t(fe,"beforeCursorEnter",function(){return fe.clear()}),fe.readOnly&&(ti(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),fe.collapsed&&(fe.id=++Bc,fe.atomic=!0),Ge){if(ft&&(Ge.curOp.updateMaxLine=!0),fe.collapsed)To(Ge,z.line,ne.line+1);else if(fe.className||fe.startStyle||fe.endStyle||fe.css||fe.attributes||fe.title)for(var Gt=z.line;Gt<=ne.line;Gt++)qs(Ge,Gt,"text");fe.atomic&&zl(Ge.doc),Ci(Ge,"markerAdded",Ge,fe)}return fe}var Ka=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne<x.length;++ne)x[ne].parent=this};Ka.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();Ci(this,"clear")}},Ka.prototype.find=function(x,z){return this.primary.find(x,z)},nn(Ka);function Ko(x,z,ne,te,ae){te=Bt(te),te.shared=!1;var fe=[Gl(x,z,ne,te,ae)],Me=fe[0],ze=te.widgetNode;return ts(x,function(Ge){ze&&(te.widgetNode=ze.cloneNode(!0)),fe.push(Gl(Ge,Fn(Ge,z),Fn(Ge,ne),te,ae));for(var ft=0;ft<Ge.linked.length;++ft)if(Ge.linked[ft].isParent)return;Me=en(fe)}),new Ka(fe,Me)}function $l(x){return x.findMarks(Qt(x.first,0),x.clipPos(Qt(x.lastLine())),function(z){return z.parent})}function Iu(x,z){for(var ne=0;ne<z.length;ne++){var te=z[ne],ae=te.find(),fe=x.clipPos(ae.from),Me=x.clipPos(ae.to);if(wn(fe,Me)){var ze=Gl(x,fe,Me,te.primary,te.primary.type);te.markers.push(ze),ze.parent=te}}}function Cl(x){for(var z=function(te){var ae=x[te],fe=[ae.primary.doc];ts(ae.primary.doc,function(Ge){return fe.push(Ge)});for(var Me=0;Me<ae.markers.length;Me++){var ze=ae.markers[Me];at(fe,ze.doc)==-1&&(ze.parent=null,ae.markers.splice(Me--,1))}},ne=0;ne<x.length;ne++)z(ne)}var td=0,ms=function(x,z,ne,te,ae){if(!(this instanceof ms))return new ms(x,z,ne,te,ae);ne==null&&(ne=0),ws.call(this,[new bo([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=ha(fe),this.history=new Fi(null),this.id=++td,this.modeOption=z,this.lineSep=te,this.direction=ae=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),vo(this,{from:fe,to:fe,text:x}),uo(this,ha(fe),Qe)};ms.prototype=ce(ws.prototype,{constructor:ms,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=sn(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:un(function(x){var z=Qt(this.first,0),ne=this.first+this.size-1;zo(this,{from:z,to:Qt(ne,Dt(this,ne).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&xs(this.cm,0,0),uo(this,ha(z),Qe)}),replaceRange:function(x,z,ne,te){z=Fn(this,z),ne=ne?Fn(this,ne):z,nu(this,x,z,ne,te)},getRange:function(x,z,ne){var te=Ht(this,Fn(this,x),Fn(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(Tn(this,x))return Dt(this,x)},getLineNumber:function(x){return mn(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=Dt(this,x)),Ii(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return Fn(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:un(function(x,z,ne){ls(this,Fn(this,typeof x=="number"?Qt(x,z||0):x),null,ne)}),setSelection:un(function(x,z,ne){ls(this,Fn(this,x),Fn(this,z||x),ne)}),extendSelection:un(function(x,z,ne){Za(this,Fn(this,x),z&&Fn(this,z),ne)}),extendSelections:un(function(x,z){Nr(this,Ot(this,x),z)}),extendSelectionsBy:un(function(x,z){var ne=Jt(this.sel.ranges,x);Nr(this,Ot(this,ne),z)}),setSelections:un(function(x,z,ne){if(x.length){for(var te=[],ae=0;ae<x.length;ae++)te[ae]=new Xr(Fn(this,x[ae].anchor),Fn(this,x[ae].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),uo(this,fa(this.cm,te,z),ne)}}),addSelection:un(function(x,z,ne){var te=this.sel.ranges.slice(0);te.push(new Xr(Fn(this,x),Fn(this,z||x))),uo(this,fa(this.cm,te,te.length-1),ne)}),getSelection:function(x){for(var z=this.sel.ranges,ne,te=0;te<z.length;te++){var ae=Ht(this,z[te].from(),z[te].to());ne=ne?ne.concat(ae):ae}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 ae=Ht(this,ne[te].from(),ne[te].to());x!==!1&&(ae=ae.join(x||this.lineSeparator())),z[te]=ae}return z},replaceSelection:function(x,z,ne){for(var te=[],ae=0;ae<this.sel.ranges.length;ae++)te[ae]=x;this.replaceSelections(te,z,ne||"+input")},replaceSelections:un(function(x,z,ne){for(var te=[],ae=this.sel,fe=0;fe<ae.ranges.length;fe++){var Me=ae.ranges[fe];te[fe]={from:Me.from(),to:Me.to(),text:this.splitLines(x[fe]),origin:ne}}for(var ze=z&&z!="end"&&aa(this,te,z),Ge=te.length-1;Ge>=0;Ge--)zo(this,te[Ge]);ze?ma(this,ze):this.cm&&Fl(this.cm)}),undo:un(function(){Qs(this,"undo")}),redo:un(function(){Qs(this,"redo")}),undoSelection:un(function(){Qs(this,"undo",!0)}),redoSelection:un(function(){Qs(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 ae=0;ae<x.undone.length;ae++)x.undone[ae].ranges||++ne;return{undo:z,redo:ne}},clearHistory:function(){var x=this;this.history=new Fi(this.history.maxGeneration),ts(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:Ds(this.history.done),undone:Ds(this.history.undone)}},setHistory:function(x){var z=this.history=new Fi(this.history.maxGeneration);z.done=Ds(x.done.slice(0),null,!0),z.undone=Ds(x.undone.slice(0),null,!0)},setGutterMarker:un(function(x,z,ne){return Cs(this,x,"gutter",function(te){var ae=te.gutterMarkers||(te.gutterMarkers={});return ae[z]=ne,!ne&&se(ae)&&(te.gutterMarkers=null),!0})}),clearGutter:un(function(x){var z=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[x]&&Cs(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(!Tn(this,x)||(z=x,x=Dt(this,x),!x))return null}else if(z=mn(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:un(function(x,z,ne){return Cs(this,x,z=="gutter"?"gutter":"class",function(te){var ae=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!te[ae])te[ae]=ne;else{if(Se(ne).test(te[ae]))return!1;te[ae]+=" "+ne}return!0})}),removeLineClass:un(function(x,z,ne){return Cs(this,x,z=="gutter"?"gutter":"class",function(te){var ae=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",fe=te[ae];if(fe)if(ne==null)te[ae]=null;else{var Me=fe.match(Se(ne));if(!Me)return!1;var ze=Me.index+Me[0].length;te[ae]=fe.slice(0,Me.index)+(!Me.index||ze==fe.length?"":" ")+fe.slice(ze)||null}else return!1;return!0})}),addLineWidget:un(function(x,z,ne){return Vl(this,x,z,ne)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,ne){return Gl(this,Fn(this,x),Fn(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=Fn(this,x),Gl(this,x,x,ne,"bookmark")},findMarksAt:function(x){x=Fn(this,x);var z=[],ne=Dt(this,x.line).markedSpans;if(ne)for(var te=0;te<ne.length;++te){var ae=ne[te];(ae.from==null||ae.from<=x.ch)&&(ae.to==null||ae.to>=x.ch)&&z.push(ae.marker.parent||ae.marker)}return z},findMarks:function(x,z,ne){x=Fn(this,x),z=Fn(this,z);var te=[],ae=x.line;return this.iter(x.line,z.line+1,function(fe){var Me=fe.markedSpans;if(Me)for(var ze=0;ze<Me.length;ze++){var Ge=Me[ze];!(Ge.to!=null&&ae==x.line&&x.ch>=Ge.to||Ge.from==null&&ae!=x.line||Ge.from!=null&&ae==z.line&&Ge.from>=z.ch)&&(!ne||ne(Ge.marker))&&te.push(Ge.marker.parent||Ge.marker)}++ae}),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(ae){var fe=ae.text.length+te;if(fe>x)return z=x,!0;x-=fe,++ne}),Fn(this,Qt(ne,z))},indexFromPos:function(x){x=Fn(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 ms(sn(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 ms(sn(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}],Iu(te,$l(this)),te},unlinkDoc:function(x){if(x instanceof Ia&&(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),Cl($l(this));break}}if(x.history==this.history){var te=[x.id];ts(x,function(ae){return te.push(ae.id)},!0),x.history=new Fi(null),x.history.done=Ds(this.history.done,te),x.history.undone=Ds(this.history.undone,te)}},iterLinkedDocs:function(x){ts(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):kr(x)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:un(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&Vi(this.cm))})}),ms.prototype.eachLine=ms.prototype.iter;var Oc=0;function nd(x){var z=this;if($u(z),!(yt(z,x)||Xa(z.display,x))){Cn(x),ye&&(Oc=+new Date);var ne=_o(z,x,!0),te=x.dataTransfer.files;if(!(!ne||z.isReadOnly()))if(te&&te.length&&window.FileReader&&window.File)for(var ae=te.length,fe=Array(ae),Me=0,ze=function(){++Me==ae&&pn(z,function(){ne=Fn(z.doc,ne);var kn={from:ne,to:ne,text:z.doc.splitLines(fe.filter(function(ar){return ar!=null}).join(z.doc.lineSeparator())),origin:"paste"};zo(z.doc,kn),ma(z.doc,ha(Fn(z.doc,ne),Fn(z.doc,ja(kn))))})()},Ge=function(kn,ar){if(z.options.allowDropFileTypes&&at(z.options.allowDropFileTypes,kn.type)==-1){ze();return}var Mr=new FileReader;Mr.onerror=function(){return ze()},Mr.onload=function(){var ri=Mr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ri)){ze();return}fe[ar]=ri,ze()},Mr.readAsText(kn)},ft=0;ft<te.length;ft++)Ge(te[ft],ft);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 Gt=x.dataTransfer.getData("Text");if(Gt){var an;if(z.state.draggingText&&!z.state.draggingText.copy&&(an=z.listSelections()),Is(z.doc,ha(ne,ne)),an)for(var Bn=0;Bn<an.length;++Bn)nu(z.doc,"",an[Bn].anchor,an[Bn].head,"drag");z.replaceSelection(Gt,"around","paste"),z.display.input.focus()}}catch(kn){}}}}function yc(x,z){if(ye&&(!x.state.draggingText||+new Date-Oc<100)){Kn(z);return}if(!(yt(x,z)||Xa(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!qe)){var ne=Je("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Te&&(ne.width=ne.height=1,x.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),z.dataTransfer.setDragImage(ne,0,0),Te&&ne.parentNode.removeChild(ne)}}function bc(x,z){var ne=_o(x,z);if(ne){var te=document.createDocumentFragment();da(x,ne,te),x.display.dragCursor||(x.display.dragCursor=Je("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),xt(x.display.dragCursor,te)}}function $u(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function Lu(x){if(document.getElementsByClassName){for(var z=document.getElementsByClassName("CodeMirror"),ne=[],te=0;te<z.length;te++){var ae=z[te].CodeMirror;ae&&ne.push(ae)}ne.length&&ne[0].operation(function(){for(var fe=0;fe<ne.length;fe++)x(ne[fe])})}}var Kr=!1;function _c(){Kr||(xc(),Kr=!0)}function xc(){var x;$t(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,Lu(Sc)},100))}),$t(window,"blur",function(){return Lu(Pl)})}function Sc(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var Tl={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"},mu=0;mu<10;mu++)Tl[mu+48]=Tl[mu+96]=String(mu);for(var Ku=65;Ku<=90;Ku++)Tl[Ku]=String.fromCharCode(Ku);for(var Nu=1;Nu<=12;Nu++)Tl[Nu+111]=Tl[Nu+63235]="F"+Nu;var Po={};Po.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"},Po.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"},Po.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"},Po.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"]},Po.default=ct?Po.macDefault:Po.pcDefault;function rd(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var ne,te,ae,fe,Me=0;Me<z.length-1;Me++){var ze=z[Me];if(/^(cmd|meta|m)$/i.test(ze))fe=!0;else if(/^a(lt)?$/i.test(ze))ne=!0;else if(/^(c|ctrl|control)$/i.test(ze))te=!0;else if(/^s(hift)?$/i.test(ze))ae=!0;else throw new Error("Unrecognized modifier name: "+ze)}return ne&&(x="Alt-"+x),te&&(x="Ctrl-"+x),fe&&(x="Cmd-"+x),ae&&(x="Shift-"+x),x}function Cc(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 ae=Jt(ne.split(" "),rd),fe=0;fe<ae.length;fe++){var Me=void 0,ze=void 0;fe==ae.length-1?(ze=ae.join(" "),Me=te):(ze=ae.slice(0,fe+1).join(" "),Me="...");var Ge=z[ze];if(!Ge)z[ze]=Me;else if(Ge!=Me)throw new Error("Inconsistent bindings for "+ze)}delete x[ne]}for(var ft in z)x[ft]=z[ft];return x}function Yl(x,z,ne,te){z=nl(z);var ae=z.call?z.call(x,te):z[x];if(ae===!1)return"nothing";if(ae==="...")return"multi";if(ae!=null&&ne(ae))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return Yl(x,z.fallthrough,ne,te);for(var fe=0;fe<z.fallthrough.length;fe++){var Me=Yl(x,z.fallthrough[fe],ne,te);if(Me)return Me}}}function sc(x){var z=typeof x=="string"?x:Tl[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function ru(x,z,ne){var te=x;return z.altKey&&te!="Alt"&&(x="Alt-"+x),(ot?z.metaKey:z.ctrlKey)&&te!="Ctrl"&&(x="Ctrl-"+x),(ot?z.ctrlKey:z.metaKey)&&te!="Mod"&&(x="Cmd-"+x),!ne&&z.shiftKey&&te!="Shift"&&(x="Shift-"+x),x}function iu(x,z){if(Te&&x.keyCode==34&&x.char)return!1;var ne=Tl[x.keyCode];return ne==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(ne=x.code),ru(ne,x,z))}function nl(x){return typeof x=="string"?Po[x]:x}function wl(x,z){for(var ne=x.doc.sel.ranges,te=[],ae=0;ae<ne.length;ae++){for(var fe=z(ne[ae]);te.length&&wn(fe.from,en(te).to)<=0;){var Me=te.pop();if(wn(Me.from,fe.from)<0){fe.from=Me.from;break}}te.push(fe)}Wt(x,function(){for(var ze=te.length-1;ze>=0;ze--)nu(x.doc,"",te[ze].from,te[ze].to,"+delete");Fl(x)})}function Ws(x,z,ne){var te=_e(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function Ql(x,z,ne){var te=Ws(x,z.ch,ne);return te==null?null:new Qt(z.line,te,ne<0?"after":"before")}function Wa(x,z,ne,te,ae){if(x){z.doc.direction=="rtl"&&(ae=-ae);var fe=Xt(ne,z.doc.direction);if(fe){var Me=ae<0?en(fe):fe[0],ze=ae<0==(Me.level==1),Ge=ze?"after":"before",ft;if(Me.level>0||z.doc.direction=="rtl"){var Gt=cs(z,ne);ft=ae<0?ne.text.length-1:0;var an=lo(z,Gt,ft).top;ft=Ne(function(Bn){return lo(z,Gt,Bn).top==an},ae<0==(Me.level==1)?Me.from:Me.to-1,ft),Ge=="before"&&(ft=Ws(ne,ft,1))}else ft=ae<0?Me.to:Me.from;return new Qt(te,ft,Ge)}}return new Qt(te,ae<0?ne.text.length:0,ae<0?"before":"after")}function oo(x,z,ne,te){var ae=Xt(z,x.doc.direction);if(!ae)return Ql(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=Xe(ae,ne.ch,ne.sticky),Me=ae[fe];if(x.doc.direction=="ltr"&&Me.level%2==0&&(te>0?Me.to>ne.ch:Me.from<ne.ch))return Ql(z,ne,te);var ze=function(wi,_i){return Ws(z,wi instanceof Qt?wi.ch:wi,_i)},Ge,ft=function(wi){return x.options.lineWrapping?(Ge=Ge||cs(x,z),ds(x,z,Ge,wi)):{begin:0,end:z.text.length}},Gt=ft(ne.sticky=="before"?ze(ne,-1):ne.ch);if(x.doc.direction=="rtl"||Me.level==1){var an=Me.level==1==te<0,Bn=ze(ne,an?1:-1);if(Bn!=null&&(an?Bn<=Me.to&&Bn<=Gt.end:Bn>=Me.from&&Bn>=Gt.begin)){var kn=an?"before":"after";return new Qt(ne.line,Bn,kn)}}var ar=function(wi,_i,yi){for(var zi=function(Qo,il){return il?new Qt(ne.line,ze(Qo,1),"before"):new Qt(ne.line,Qo,"after")};wi>=0&&wi<ae.length;wi+=_i){var sa=ae[wi],ga=_i>0==(sa.level!=1),Ua=ga?yi.begin:ze(yi.end,-1);if(sa.from<=Ua&&Ua<sa.to||(Ua=ga?sa.from:ze(sa.to,-1),yi.begin<=Ua&&Ua<yi.end))return zi(Ua,ga)}},Mr=ar(fe+te,te,Gt);if(Mr)return Mr;var ri=te>0?Gt.end:ze(Gt.begin,-1);return ri!=null&&!(te>0&&ri==z.text.length)&&(Mr=ar(te>0?0:ae.length-1,te,ft(ri)),Mr)?Mr:null}var rl={selectAll:tl,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),Qe)},killLine:function(x){return wl(x,function(z){if(z.empty()){var ne=Dt(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 wl(x,function(z){return{from:Qt(z.from().line,0),to:Fn(x.doc,Qt(z.to().line+1,0))}})},delLineLeft:function(x){return wl(x,function(z){return{from:Qt(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return wl(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 wl(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 Jl(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return Pc(x,z.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(z){return Xl(x,z.head.line)},{origin:"+move",bias:-1})},goLineRight:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div")},Lt)},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")},Lt)},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/)?Pc(x,z.head):te},Lt)},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,ae=0;ae<ne.length;ae++){var fe=ne[ae].from(),Me=De(x.getLine(fe.line),fe.ch,te);z.push(tn(te-Me%te))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return Wt(x,function(){for(var z=x.listSelections(),ne=[],te=0;te<z.length;te++)if(z[te].empty()){var ae=z[te].head,fe=Dt(x.doc,ae.line).text;if(fe){if(ae.ch==fe.length&&(ae=new Qt(ae.line,ae.ch-1)),ae.ch>0)ae=new Qt(ae.line,ae.ch+1),x.replaceRange(fe.charAt(ae.ch-1)+fe.charAt(ae.ch-2),Qt(ae.line,ae.ch-2),ae,"+transpose");else if(ae.line>x.doc.first){var Me=Dt(x.doc,ae.line-1).text;Me&&(ae=new Qt(ae.line,1),x.replaceRange(fe.charAt(0)+x.doc.lineSeparator()+Me.charAt(Me.length-1),Qt(ae.line-1,Me.length-1),ae,"+transpose"))}}ne.push(new Xr(ae,ae))}x.setSelections(ne)})},newlineAndIndent:function(x){return Wt(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);Fl(x)})},openLine:function(x){return x.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function Jl(x,z){var ne=Dt(x.doc,z),te=Ii(ne);return te!=ne&&(z=mn(te)),Wa(!0,x,te,z,1)}function Xl(x,z){var ne=Dt(x.doc,z),te=La(ne);return te!=ne&&(z=mn(te)),Wa(!0,x,ne,z,-1)}function Pc(x,z){var ne=Jl(x,z.line),te=Dt(x.doc,ne.line),ae=Xt(te,x.doc.direction);if(!ae||ae[0].level==0){var fe=Math.max(ne.ch,te.text.search(/\S/)),Me=z.line==ne.line&&z.ch<=fe&&z.ch;return Qt(ne.line,Me?0:fe,ne.sticky)}return ne}function gs(x,z,ne){if(typeof z=="string"&&(z=rl[z],!z))return!1;x.display.input.ensurePolled();var te=x.display.shift,ae=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ne&&(x.display.shift=!1),ae=z(x)!=It}finally{x.display.shift=te,x.state.suppressEdits=!1}return ae}function Bl(x,z,ne){for(var te=0;te<x.state.keyMaps.length;te++){var ae=Yl(z,x.state.keyMaps[te],ne,x);if(ae)return ae}return x.options.extraKeys&&Yl(z,x.options.extraKeys,ne,x)||Yl(z,x.options.keyMap,ne,x)}var Rc=new ge;function gu(x,z,ne,te){var ae=x.state.keySeq;if(ae){if(sc(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:Rc.set(50,function(){x.state.keySeq==ae&&(x.state.keySeq=null,x.display.input.reset())}),id(x,ae+" "+z,ne,te))return!0}return id(x,z,ne,te)}function id(x,z,ne,te){var ae=Bl(x,z,te);return ae=="multi"&&(x.state.keySeq=z),ae=="handled"&&Ci(x,"keyHandled",x,z,ne),(ae=="handled"||ae=="multi")&&(Cn(ne),Cu(x)),!!ae}function qa(x,z){var ne=iu(z,!0);return ne?z.shiftKey&&!x.state.keySeq?gu(x,"Shift-"+ne,z,function(te){return gs(x,te,!0)})||gu(x,ne,z,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return gs(x,te)}):gu(x,ne,z,function(te){return gs(x,te)}):!1}function wc(x,z,ne){return gu(x,"'"+ne+"'",z,function(te){return gs(x,te,!0)})}var Tu=null;function Fc(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=He(),!yt(z,x))){ye&&Ee<11&&x.keyCode==27&&(x.returnValue=!1);var ne=x.keyCode;z.display.shift=ne==16||x.shiftKey;var te=qa(z,x);Te&&(Tu=te?ne:null,!te&&ne==88&&!Fr&&(ct?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),oe&&!ct&&!te&&ne==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&er(z)}}function er(x){var z=x.display.lineDiv;Tt(z,"CodeMirror-crosshair");function ne(te){(te.keyCode==18||!te.altKey)&&(Fe(z,"CodeMirror-crosshair"),vt(document,"keyup",ne),vt(document,"mouseover",ne))}$t(document,"keyup",ne),$t(document,"mouseover",ne)}function hf(x){x.keyCode==16&&(this.doc.sel.shift=!1),yt(this,x)}function pf(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(Xa(z.display,x)||yt(z,x)||x.ctrlKey&&!x.altKey||ct&&x.metaKey)){var ne=x.keyCode,te=x.charCode;if(Te&&ne==Tu){Tu=null,Cn(x);return}if(!(Te&&(!x.which||x.which<10)&&qa(z,x))){var ae=String.fromCharCode(te==null?ne:te);ae!="\b"&&(wc(z,x,ae)||z.display.input.onKeyPress(x))}}}var Ld=400,Nd=function(x,z,ne){this.time=x,this.pos=z,this.button=ne};Nd.prototype.compare=function(x,z,ne){return this.time+Ld>x&&wn(z,this.pos)==0&&ne==this.button};var Bu,zc;function i0(x,z){var ne=+new Date;return zc&&zc.compare(ne,x,z)?(Bu=zc=null,"triple"):Bu&&Bu.compare(ne,x,z)?(zc=new Nd(ne,x,z),Bu=null,"double"):(Bu=new Nd(ne,x,z),zc=null,"single")}function ll(x){var z=this,ne=z.display;if(!(yt(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,Xa(ne,x)){he||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!ml(z,x)){var te=_o(z,x),ae=_n(x),fe=te?i0(te,ae):"single";window.focus(),ae==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&Zu(z,ae,te,fe,x))&&(ae==1?te?od(z,te,fe,x):Vn(x)==ne.scroller&&Cn(x):ae==2?(te&&Za(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ae==3&&(je?z.display.input.onContextMenu(x):wu(z)))}}}function Zu(x,z,ne,te,ae){var fe="Click";return te=="double"?fe="Double"+fe:te=="triple"&&(fe="Triple"+fe),fe=(z==1?"Left":z==2?"Middle":"Right")+fe,gu(x,ru(fe,ae),ae,function(Me){if(typeof Me=="string"&&(Me=rl[Me]),!Me)return!1;var ze=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ze=Me(x,ne)!=It}finally{x.state.suppressEdits=!1}return ze})}function ad(x,z,ne){var te=x.getOption("configureMouse"),ae=te?te(x,z,ne):{};if(ae.unit==null){var fe=tt?ne.shiftKey&&ne.metaKey:ne.altKey;ae.unit=fe?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ae.extend==null||x.doc.extend)&&(ae.extend=x.doc.extend||ne.shiftKey),ae.addNew==null&&(ae.addNew=ct?ne.metaKey:ne.ctrlKey),ae.moveOnDrag==null&&(ae.moveOnDrag=!(ct?ne.altKey:ne.ctrlKey)),ae}function od(x,z,ne,te){ye?setTimeout(zt(hs,x),0):x.curOp.focus=He();var ae=ad(x,ne,te),fe=x.doc.sel,Me;x.options.dragDrop&&or&&!x.isReadOnly()&&ne=="single"&&(Me=fe.contains(z))>-1&&(wn((Me=fe.ranges[Me]).from(),z)<0||z.xRel>0)&&(wn(Me.to(),z)>0||z.xRel<0)?a0(x,te,z,ae):Td(x,te,z,ae)}function a0(x,z,ne,te){var ae=x.display,fe=!1,Me=pn(x,function(ft){he&&(ae.scroller.draggable=!1),x.state.draggingText=!1,vt(ae.wrapper.ownerDocument,"mouseup",Me),vt(ae.wrapper.ownerDocument,"mousemove",ze),vt(ae.scroller,"dragstart",Ge),vt(ae.scroller,"drop",Me),fe||(Cn(ft),te.addNew||Za(x.doc,ne,null,null,te.extend),he&&!qe||ye&&Ee==9?setTimeout(function(){ae.wrapper.ownerDocument.body.focus({preventScroll:!0}),ae.input.focus()},20):ae.input.focus())}),ze=function(ft){fe=fe||Math.abs(z.clientX-ft.clientX)+Math.abs(z.clientY-ft.clientY)>=10},Ge=function(){return fe=!0};he&&(ae.scroller.draggable=!0),x.state.draggingText=Me,Me.copy=!te.moveOnDrag,ae.scroller.dragDrop&&ae.scroller.dragDrop(),$t(ae.wrapper.ownerDocument,"mouseup",Me),$t(ae.wrapper.ownerDocument,"mousemove",ze),$t(ae.scroller,"dragstart",Ge),$t(ae.scroller,"drop",Me),wu(x),setTimeout(function(){return ae.input.focus()},20)}function mf(x,z,ne){if(ne=="char")return new Xr(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new Xr(Qt(z.line,0),Fn(x.doc,Qt(z.line+1,0)));var te=ne(x,z);return new Xr(te.from,te.to)}function Td(x,z,ne,te){var ae=x.display,fe=x.doc;Cn(z);var Me,ze,Ge=fe.sel,ft=Ge.ranges;if(te.addNew&&!te.extend?(ze=fe.sel.contains(ne),ze>-1?Me=ft[ze]:Me=new Xr(ne,ne)):(Me=fe.sel.primary(),ze=fe.sel.primIndex),te.unit=="rectangle")te.addNew||(Me=new Xr(ne,ne)),ne=_o(x,z,!0,!0),ze=-1;else{var Gt=mf(x,ne,te.unit);te.extend?Me=Wl(Me,Gt.anchor,Gt.head,te.extend):Me=Gt}te.addNew?ze==-1?(ze=ft.length,uo(fe,fa(x,ft.concat([Me]),ze),{scroll:!1,origin:"*mouse"})):ft.length>1&&ft[ze].empty()&&te.unit=="char"&&!te.extend?(uo(fe,fa(x,ft.slice(0,ze).concat(ft.slice(ze+1)),0),{scroll:!1,origin:"*mouse"}),Ge=fe.sel):Qa(fe,ze,Me,et):(ze=0,uo(fe,new Ri([Me],0),et),Ge=fe.sel);var an=ne;function Bn(yi){if(wn(an,yi)!=0)if(an=yi,te.unit=="rectangle"){for(var zi=[],sa=x.options.tabSize,ga=De(Dt(fe,ne.line).text,ne.ch,sa),Ua=De(Dt(fe,yi.line).text,yi.ch,sa),Qo=Math.min(ga,Ua),il=Math.max(ga,Ua),Es=Math.min(ne.line,yi.line),Dl=Math.min(x.lastLine(),Math.max(ne.line,yi.line));Es<=Dl;Es++){var Il=Dt(fe,Es).text,Us=dn(Il,Qo,sa);Qo==il?zi.push(new Xr(Qt(Es,Us),Qt(Es,Us))):Il.length>Us&&zi.push(new Xr(Qt(Es,Us),Qt(Es,dn(Il,il,sa))))}zi.length||zi.push(new Xr(ne,ne)),uo(fe,fa(x,Ge.ranges.slice(0,ze).concat(zi),ze),{origin:"*mouse",scroll:!1}),x.scrollIntoView(yi)}else{var Ll=Me,Na=mf(x,yi,te.unit),Ls=Ll.anchor,Ms;wn(Na.anchor,Ls)>0?(Ms=Na.head,Ls=Jn(Ll.from(),Na.anchor)):(Ms=Na.anchor,Ls=sr(Ll.to(),Na.head));var Ns=Ge.ranges.slice(0);Ns[ze]=gf(x,new Xr(Fn(fe,Ls),Ms)),uo(fe,fa(x,Ns,ze),et)}}var kn=ae.wrapper.getBoundingClientRect(),ar=0;function Mr(yi){var zi=++ar,sa=_o(x,yi,!0,te.unit=="rectangle");if(sa)if(wn(sa,an)!=0){x.curOp.focus=He(),Bn(sa);var ga=Vo(ae,fe);(sa.line>=ga.to||sa.line<ga.from)&&setTimeout(pn(x,function(){ar==zi&&Mr(yi)}),150)}else{var Ua=yi.clientY<kn.top?-20:yi.clientY>kn.bottom?20:0;Ua&&setTimeout(pn(x,function(){ar==zi&&(ae.scroller.scrollTop+=Ua,Mr(yi))}),50)}}function ri(yi){x.state.selectingText=!1,ar=1/0,yi&&(Cn(yi),ae.input.focus()),vt(ae.wrapper.ownerDocument,"mousemove",wi),vt(ae.wrapper.ownerDocument,"mouseup",_i),fe.history.lastSelOrigin=null}var wi=pn(x,function(yi){yi.buttons===0||!_n(yi)?ri(yi):Mr(yi)}),_i=pn(x,ri);x.state.selectingText=_i,$t(ae.wrapper.ownerDocument,"mousemove",wi),$t(ae.wrapper.ownerDocument,"mouseup",_i)}function gf(x,z){var ne=z.anchor,te=z.head,ae=Dt(x.doc,ne.line);if(wn(ne,te)==0&&ne.sticky==te.sticky)return z;var fe=Xt(ae);if(!fe)return z;var Me=Xe(fe,ne.ch,ne.sticky),ze=fe[Me];if(ze.from!=ne.ch&&ze.to!=ne.ch)return z;var Ge=Me+(ze.from==ne.ch==(ze.level!=1)?0:1);if(Ge==0||Ge==fe.length)return z;var ft;if(te.line!=ne.line)ft=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var Gt=Xe(fe,te.ch,te.sticky),an=Gt-Me||(te.ch-ne.ch)*(ze.level==1?-1:1);Gt==Ge-1||Gt==Ge?ft=an<0:ft=an>0}var Bn=fe[Ge+(ft?-1:0)],kn=ft==(Bn.level==1),ar=kn?Bn.from:Bn.to,Mr=kn?"after":"before";return ne.ch==ar&&ne.sticky==Mr?z:new Xr(new Qt(ne.line,ar,Mr),te)}function jc(x,z,ne,te){var ae,fe;if(z.touches)ae=z.touches[0].clientX,fe=z.touches[0].clientY;else try{ae=z.clientX,fe=z.clientY}catch(Bn){return!1}if(ae>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&Cn(z);var Me=x.display,ze=Me.lineDiv.getBoundingClientRect();if(fe>ze.bottom||!Zt(x,ne))return Dn(z);fe-=ze.top-Me.viewOffset;for(var Ge=0;Ge<x.display.gutterSpecs.length;++Ge){var ft=Me.gutters.childNodes[Ge];if(ft&&ft.getBoundingClientRect().right>=ae){var Gt=An(x.doc,fe),an=x.display.gutterSpecs[Ge];return Oe(x,ne,x,Gt,an.className,z),Dn(z)}}}function ml(x,z){return jc(x,z,"gutterClick",!0)}function Hu(x,z){Xa(x.display,z)||vf(x,z)||yt(x,z,"contextmenu")||je||x.display.input.onContextMenu(z)}function vf(x,z){return Zt(x,"gutterContextMenu")?jc(x,z,"gutterContextMenu",!1):!1}function Bd(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Qi(x)}var Wu={toString:function(){return"CodeMirror.Init"}},yf={},sd={};function o0(x){var z=x.optionHandlers;function ne(te,ae,fe,Me){x.defaults[te]=ae,fe&&(z[te]=Me?function(ze,Ge,ft){ft!=Wu&&fe(ze,Ge,ft)}:fe)}x.defineOption=ne,x.Init=Wu,ne("value","",function(te,ae){return te.setValue(ae)},!0),ne("mode",null,function(te,ae){te.doc.modeOption=ae,ao(te)},!0),ne("indentUnit",2,ao,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){Ba(te),Qi(te),To(te)},!0),ne("lineSeparator",null,function(te,ae){if(te.doc.lineSep=ae,!!ae){var fe=[],Me=te.doc.first;te.doc.iter(function(Ge){for(var ft=0;;){var Gt=Ge.text.indexOf(ae,ft);if(Gt==-1)break;ft=Gt+ae.length,fe.push(Qt(Me,Gt))}Me++});for(var ze=fe.length-1;ze>=0;ze--)nu(te.doc,ae,fe[ze],Qt(fe[ze].line,fe[ze].ch+ae.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ae,fe){te.state.specialChars=new RegExp(ae.source+(ae.test(" ")?"":"| "),"g"),fe!=Wu&&te.refresh()}),ne("specialCharPlaceholder",mo,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",We?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ae){return te.getInputField().spellcheck=ae},!0),ne("autocorrect",!1,function(te,ae){return te.getInputField().autocorrect=ae},!0),ne("autocapitalize",!1,function(te,ae){return te.getInputField().autocapitalize=ae},!0),ne("rtlMoveVisually",!At),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){Bd(te),hi(te)},!0),ne("keyMap","default",function(te,ae,fe){var Me=nl(ae),ze=fe!=Wu&&nl(fe);ze&&ze.detach&&ze.detach(te,Me),Me.attach&&Me.attach(te,ze||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,bf,!0),ne("gutters",[],function(te,ae){te.display.gutterSpecs=na(ae,te.options.lineNumbers),hi(te)},!0),ne("fixedGutter",!0,function(te,ae){te.display.gutters.style.left=ae?ua(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return Ys(te)},!0),ne("scrollbarStyle","native",function(te){oc(te),Ys(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ae){te.display.gutterSpecs=na(te.options.gutters,ae),hi(te)},!0),ne("firstLineNumber",1,hi,!0),ne("lineNumberFormatter",function(te){return te},hi,!0),ne("showCursorWhenSelecting",!1,du,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ae){ae=="nocursor"&&(Pl(te),te.display.input.blur()),te.display.input.readOnlyChanged(ae)}),ne("screenReaderLabel",null,function(te,ae){ae=ae===""?null:ae,te.display.input.screenReaderLabelChanged(ae)}),ne("disableInput",!1,function(te,ae){ae||te.display.input.reset()},!0),ne("dragDrop",!0,s0),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,du,!0),ne("singleCursorHeightPerLine",!0,du,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Ba,!0),ne("addModeClass",!1,Ba,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ae){return te.doc.history.undoDepth=ae}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,Ba,!0),ne("moveInputWithCursor",!0,function(te,ae){ae||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ae){return te.display.input.getField().tabIndex=ae||""}),ne("autofocus",null),ne("direction","ltr",function(te,ae){return te.doc.setDirection(ae)},!0),ne("phrases",null)}function s0(x,z,ne){var te=ne&&ne!=Wu;if(!z!=!te){var ae=x.display.dragFunctions,fe=z?$t:vt;fe(x.display.scroller,"dragstart",ae.start),fe(x.display.scroller,"dragenter",ae.enter),fe(x.display.scroller,"dragover",ae.over),fe(x.display.scroller,"dragleave",ae.leave),fe(x.display.scroller,"drop",ae.drop)}}function bf(x){x.options.lineWrapping?(Tt(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Fe(x.display.wrapper,"CodeMirror-wrap"),xr(x)),Ta(x),To(x),Qi(x),setTimeout(function(){return Ys(x)},100)}function Ia(x,z){var ne=this;if(!(this instanceof Ia))return new Ia(x,z);this.options=z=z?Bt(z):{},Bt(yf,z,!1);var te=z.value;typeof te=="string"?te=new ms(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ae=new Ia.inputStyles[z.inputStyle](this),fe=this.display=new Ai(x,te,ae,z);fe.wrapper.CodeMirror=this,Bd(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),oc(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 ge,keySeq:null,specialChars:null},z.autofocus&&!We&&fe.input.focus(),ye&&Ee<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),l0(this),_c(),ks(this),this.curOp.forceUpdate=!0,Ji(this,te),z.autofocus&&!We||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Eu(ne)},20):Pl(this);for(var Me in sd)sd.hasOwnProperty(Me)&&sd[Me](this,z[Me],Wu);xi(this),z.finishInit&&z.finishInit(this);for(var ze=0;ze<Od.length;++ze)Od[ze](this);xl(this),he&&z.lineWrapping&&getComputedStyle(fe.lineDiv).textRendering=="optimizelegibility"&&(fe.lineDiv.style.textRendering="auto")}Ia.defaults=yf,Ia.optionHandlers=sd;function l0(x){var z=x.display;$t(z.scroller,"mousedown",pn(x,ll)),ye&&Ee<11?$t(z.scroller,"dblclick",pn(x,function(Ge){if(!yt(x,Ge)){var ft=_o(x,Ge);if(!(!ft||ml(x,Ge)||Xa(x.display,Ge))){Cn(Ge);var Gt=x.findWordAt(ft);Za(x.doc,Gt.anchor,Gt.head)}}})):$t(z.scroller,"dblclick",function(Ge){return yt(x,Ge)||Cn(Ge)}),$t(z.scroller,"contextmenu",function(Ge){return Hu(x,Ge)}),$t(z.input.getField(),"contextmenu",function(Ge){z.scroller.contains(Ge.target)||Hu(x,Ge)});var ne,te={end:0};function ae(){z.activeTouch&&(ne=setTimeout(function(){return z.activeTouch=null},1e3),te=z.activeTouch,te.end=+new Date)}function fe(Ge){if(Ge.touches.length!=1)return!1;var ft=Ge.touches[0];return ft.radiusX<=1&&ft.radiusY<=1}function Me(Ge,ft){if(ft.left==null)return!0;var Gt=ft.left-Ge.left,an=ft.top-Ge.top;return Gt*Gt+an*an>20*20}$t(z.scroller,"touchstart",function(Ge){if(!yt(x,Ge)&&!fe(Ge)&&!ml(x,Ge)){z.input.ensurePolled(),clearTimeout(ne);var ft=+new Date;z.activeTouch={start:ft,moved:!1,prev:ft-te.end<=300?te:null},Ge.touches.length==1&&(z.activeTouch.left=Ge.touches[0].pageX,z.activeTouch.top=Ge.touches[0].pageY)}}),$t(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),$t(z.scroller,"touchend",function(Ge){var ft=z.activeTouch;if(ft&&!Xa(z,Ge)&&ft.left!=null&&!ft.moved&&new Date-ft.start<300){var Gt=x.coordsChar(z.activeTouch,"page"),an;!ft.prev||Me(ft,ft.prev)?an=new Xr(Gt,Gt):!ft.prev.prev||Me(ft,ft.prev.prev)?an=x.findWordAt(Gt):an=new Xr(Qt(Gt.line,0),Fn(x.doc,Qt(Gt.line+1,0))),x.setSelection(an.anchor,an.head),x.focus(),Cn(Ge)}ae()}),$t(z.scroller,"touchcancel",ae),$t(z.scroller,"scroll",function(){z.scroller.clientHeight&&(bl(x,z.scroller.scrollTop),xa(x,z.scroller.scrollLeft,!0),Oe(x,"scroll",x))}),$t(z.scroller,"mousewheel",function(Ge){return Gi(x,Ge)}),$t(z.scroller,"DOMMouseScroll",function(Ge){return Gi(x,Ge)}),$t(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(Ge){yt(x,Ge)||Kn(Ge)},over:function(Ge){yt(x,Ge)||(bc(x,Ge),Kn(Ge))},start:function(Ge){return yc(x,Ge)},drop:pn(x,nd),leave:function(Ge){yt(x,Ge)||$u(x)}};var ze=z.input.getField();$t(ze,"keyup",function(Ge){return hf.call(x,Ge)}),$t(ze,"keydown",pn(x,Fc)),$t(ze,"keypress",pn(x,pf)),$t(ze,"focus",function(Ge){return Eu(x,Ge)}),$t(ze,"blur",function(Ge){return Pl(x,Ge)})}var Od=[];Ia.defineInitHook=function(x){return Od.push(x)};function au(x,z,ne,te){var ae=x.doc,fe;ne==null&&(ne="add"),ne=="smart"&&(ae.mode.indent?fe=Sn(x,z).state:ne="prev");var Me=x.options.tabSize,ze=Dt(ae,z),Ge=De(ze.text,null,Me);ze.stateAfter&&(ze.stateAfter=null);var ft=ze.text.match(/^\s*/)[0],Gt;if(!te&&!/\S/.test(ze.text))Gt=0,ne="not";else if(ne=="smart"&&(Gt=ae.mode.indent(fe,ze.text.slice(ft.length),ze.text),Gt==It||Gt>150)){if(!te)return;ne="prev"}ne=="prev"?z>ae.first?Gt=De(Dt(ae,z-1).text,null,Me):Gt=0:ne=="add"?Gt=Ge+x.options.indentUnit:ne=="subtract"?Gt=Ge-x.options.indentUnit:typeof ne=="number"&&(Gt=Ge+ne),Gt=Math.max(0,Gt);var an="",Bn=0;if(x.options.indentWithTabs)for(var kn=Math.floor(Gt/Me);kn;--kn)Bn+=Me,an+=" ";if(Bn<Gt&&(an+=tn(Gt-Bn)),an!=ft)return nu(ae,an,Qt(z,0),Qt(z,ft.length),"+input"),ze.stateAfter=null,!0;for(var ar=0;ar<ae.sel.ranges.length;ar++){var Mr=ae.sel.ranges[ar];if(Mr.head.line==z&&Mr.head.ch<ft.length){var ri=Qt(z,ft.length);Qa(ae,ar,new Xr(ri,ri));break}}}var ou=null;function Uu(x){ou=x}function _d(x,z,ne,te,ae){var fe=x.doc;x.display.shift=!1,te||(te=fe.sel);var Me=+new Date-200,ze=ae=="paste"||x.state.pasteIncoming>Me,Ge=kr(z),ft=null;if(ze&&te.ranges.length>1)if(ou&&ou.text.join(`
|
|
|
`)==z){if(te.ranges.length%ou.text.length==0){ft=[];for(var Gt=0;Gt<ou.text.length;Gt++)ft.push(fe.splitLines(ou.text[Gt]))}}else Ge.length==te.ranges.length&&x.options.pasteLinesPerSelection&&(ft=Jt(Ge,function(wi){return[wi]}));for(var an=x.curOp.updateInput,Bn=te.ranges.length-1;Bn>=0;Bn--){var kn=te.ranges[Bn],ar=kn.from(),Mr=kn.to();kn.empty()&&(ne&&ne>0?ar=Qt(ar.line,ar.ch-ne):x.state.overwrite&&!ze?Mr=Qt(Mr.line,Math.min(Dt(fe,Mr.line).text.length,Mr.ch+en(Ge).length)):ze&&ou&&ou.lineWise&&ou.text.join(`
|
|
|
`)==Ge.join(`
|
|
|
`)&&(ar=Mr=Qt(ar.line,0)));var ri={from:ar,to:Mr,text:ft?ft[Bn%ft.length]:Ge,origin:ae||(ze?"paste":x.state.cutIncoming>Me?"cut":"+input")};zo(x.doc,ri),Ci(x,"inputRead",x,ri)}z&&!ze&&Rd(x,z),Fl(x),x.curOp.updateInput<2&&(x.curOp.updateInput=an),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function Pd(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&Wt(z,function(){return _d(z,ne,0,null,"paste")}),!0}function Rd(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ne=x.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ae=ne.ranges[te];if(!(ae.head.ch>100||te&&ne.ranges[te-1].head.line==ae.head.line)){var fe=x.getModeAt(ae.head),Me=!1;if(fe.electricChars){for(var ze=0;ze<fe.electricChars.length;ze++)if(z.indexOf(fe.electricChars.charAt(ze))>-1){Me=au(x,ae.head.line,"smart");break}}else fe.electricInput&&fe.electricInput.test(Dt(x.doc,ae.head.line).text.slice(0,ae.head.ch))&&(Me=au(x,ae.head.line,"smart"));Me&&Ci(x,"electricInput",x,ae.head.line)}}}function Ec(x){for(var z=[],ne=[],te=0;te<x.doc.sel.ranges.length;te++){var ae=x.doc.sel.ranges[te].head.line,fe={anchor:Qt(ae,0),head:Qt(ae+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 Fd(){var x=Je("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=Je("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return he?x.style.width="1000px":x.setAttribute("wrap","off"),lt&&(x.style.border="1px solid black"),xf(x),z}function zd(x){var z=x.optionHandlers,ne=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(te,ae){var fe=this.options,Me=fe[te];fe[te]==ae&&te!="mode"||(fe[te]=ae,z.hasOwnProperty(te)&&pn(this,z[te])(this,ae,Me),Oe(this,"optionChange",this,te))},getOption:function(te){return this.options[te]},getDoc:function(){return this.doc},addKeyMap:function(te,ae){this.state.keyMaps[ae?"push":"unshift"](nl(te))},removeKeyMap:function(te){for(var ae=this.state.keyMaps,fe=0;fe<ae.length;++fe)if(ae[fe]==te||ae[fe].name==te)return ae.splice(fe,1),!0},addOverlay:hn(function(te,ae){var fe=te.token?te:x.getMode(this.options,te);if(fe.startState)throw new Error("Overlays may not be stateful.");Vt(this.state.overlays,{mode:fe,modeSpec:te,opaque:ae&&ae.opaque,priority:ae&&ae.priority||0},function(Me){return Me.priority}),this.state.modeGen++,To(this)}),removeOverlay:hn(function(te){for(var ae=this.state.overlays,fe=0;fe<ae.length;++fe){var Me=ae[fe].modeSpec;if(Me==te||typeof te=="string"&&Me.name==te){ae.splice(fe,1),this.state.modeGen++,To(this);return}}}),indentLine:hn(function(te,ae,fe){typeof ae!="string"&&typeof ae!="number"&&(ae==null?ae=this.options.smartIndent?"smart":"prev":ae=ae?"add":"subtract"),Tn(this.doc,te)&&au(this,te,ae,fe)}),indentSelection:hn(function(te){for(var ae=this.doc.sel.ranges,fe=-1,Me=0;Me<ae.length;Me++){var ze=ae[Me];if(ze.empty())ze.head.line>fe&&(au(this,ze.head.line,te,!0),fe=ze.head.line,Me==this.doc.sel.primIndex&&Fl(this));else{var Ge=ze.from(),ft=ze.to(),Gt=Math.max(fe,Ge.line);fe=Math.min(this.lastLine(),ft.line-(ft.ch?0:1))+1;for(var an=Gt;an<fe;++an)au(this,an,te);var Bn=this.doc.sel.ranges;Ge.ch==0&&ae.length==Bn.length&&Bn[Me].from().ch>0&&Qa(this.doc,Me,new Xr(Ge,Bn[Me].to()),Qe)}}}),getTokenAt:function(te,ae){return _r(this,te,ae)},getLineTokens:function(te,ae){return _r(this,Qt(te),ae,!0)},getTokenTypeAt:function(te){te=Fn(this.doc,te);var ae=yn(this,Dt(this.doc,te.line)),fe=0,Me=(ae.length-1)/2,ze=te.ch,Ge;if(ze==0)Ge=ae[2];else for(;;){var ft=fe+Me>>1;if((ft?ae[ft*2-1]:0)>=ze)Me=ft;else if(ae[ft*2+1]<ze)fe=ft+1;else{Ge=ae[ft*2+2];break}}var Gt=Ge?Ge.indexOf("overlay "):-1;return Gt<0?Ge:Gt==0?null:Ge.slice(0,Gt-1)},getModeAt:function(te){var ae=this.doc.mode;return ae.innerMode?x.innerMode(ae,this.getTokenAt(te).state).mode:ae},getHelper:function(te,ae){return this.getHelpers(te,ae)[0]},getHelpers:function(te,ae){var fe=[];if(!ne.hasOwnProperty(ae))return fe;var Me=ne[ae],ze=this.getModeAt(te);if(typeof ze[ae]=="string")Me[ze[ae]]&&fe.push(Me[ze[ae]]);else if(ze[ae])for(var Ge=0;Ge<ze[ae].length;Ge++){var ft=Me[ze[ae][Ge]];ft&&fe.push(ft)}else ze.helperType&&Me[ze.helperType]?fe.push(Me[ze.helperType]):Me[ze.name]&&fe.push(Me[ze.name]);for(var Gt=0;Gt<Me._global.length;Gt++){var an=Me._global[Gt];an.pred(ze,this)&&at(fe,an.val)==-1&&fe.push(an.val)}return fe},getStateAfter:function(te,ae){var fe=this.doc;return te=Ar(fe,te==null?fe.first+fe.size-1:te),Sn(this,te+1,ae).state},cursorCoords:function(te,ae){var fe,Me=this.doc.sel.primary();return te==null?fe=Me.head:typeof te=="object"?fe=Fn(this.doc,te):fe=te?Me.from():Me.to(),ca(this,fe,ae||"page")},charCoords:function(te,ae){return Fo(this,Fn(this.doc,te),ae||"page")},coordsChar:function(te,ae){return te=ro(this,te,ae||"page"),Uo(this,te.left,te.top)},lineAtHeight:function(te,ae){return te=ro(this,{top:te,left:0},ae||"page").top,An(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,ae,fe){var Me=!1,ze;if(typeof te=="number"){var Ge=this.doc.first+this.doc.size-1;te<this.doc.first?te=this.doc.first:te>Ge&&(te=Ge,Me=!0),ze=Dt(this.doc,te)}else ze=te;return gi(this,ze,{top:0,left:0},ae||"page",fe||Me).top+(Me?this.doc.height-vr(ze):0)},defaultTextHeight:function(){return Os(this.display)},defaultCharWidth:function(){return Mi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ae,fe,Me,ze){var Ge=this.display;te=ca(this,Fn(this.doc,te));var ft=te.bottom,Gt=te.left;if(ae.style.position="absolute",ae.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ae),Ge.sizer.appendChild(ae),Me=="over")ft=te.top;else if(Me=="above"||Me=="near"){var an=Math.max(Ge.wrapper.clientHeight,this.doc.height),Bn=Math.max(Ge.sizer.clientWidth,Ge.lineSpace.clientWidth);(Me=="above"||te.bottom+ae.offsetHeight>an)&&te.top>ae.offsetHeight?ft=te.top-ae.offsetHeight:te.bottom+ae.offsetHeight<=an&&(ft=te.bottom),Gt+ae.offsetWidth>Bn&&(Gt=Bn-ae.offsetWidth)}ae.style.top=ft+"px",ae.style.left=ae.style.right="",ze=="right"?(Gt=Ge.sizer.clientWidth-ae.offsetWidth,ae.style.right="0px"):(ze=="left"?Gt=0:ze=="middle"&&(Gt=(Ge.sizer.clientWidth-ae.offsetWidth)/2),ae.style.left=Gt+"px"),fe&&tu(this,{left:Gt,top:ft,right:Gt+ae.offsetWidth,bottom:ft+ae.offsetHeight})},triggerOnKeyDown:hn(Fc),triggerOnKeyPress:hn(pf),triggerOnKeyUp:hf,triggerOnMouseDown:hn(ll),execCommand:function(te){if(rl.hasOwnProperty(te))return rl[te].call(null,this)},triggerElectric:hn(function(te){Rd(this,te)}),findPosH:function(te,ae,fe,Me){var ze=1;ae<0&&(ze=-1,ae=-ae);for(var Ge=Fn(this.doc,te),ft=0;ft<ae&&(Ge=ld(this.doc,Ge,ze,fe,Me),!Ge.hitSide);++ft);return Ge},moveH:hn(function(te,ae){var fe=this;this.extendSelectionsBy(function(Me){return fe.display.shift||fe.doc.extend||Me.empty()?ld(fe.doc,Me.head,te,ae,fe.options.rtlMoveVisually):te<0?Me.from():Me.to()},Lt)}),deleteH:hn(function(te,ae){var fe=this.doc.sel,Me=this.doc;fe.somethingSelected()?Me.replaceSelection("",null,"+delete"):wl(this,function(ze){var Ge=ld(Me,ze.head,te,ae,!1);return te<0?{from:Ge,to:ze.head}:{from:ze.head,to:Ge}})}),findPosV:function(te,ae,fe,Me){var ze=1,Ge=Me;ae<0&&(ze=-1,ae=-ae);for(var ft=Fn(this.doc,te),Gt=0;Gt<ae;++Gt){var an=ca(this,ft,"div");if(Ge==null?Ge=an.left:an.left=Ge,ft=Sf(this,an,ze,fe),ft.hitSide)break}return ft},moveV:hn(function(te,ae){var fe=this,Me=this.doc,ze=[],Ge=!this.display.shift&&!Me.extend&&Me.sel.somethingSelected();if(Me.extendSelectionsBy(function(Gt){if(Ge)return te<0?Gt.from():Gt.to();var an=ca(fe,Gt.head,"div");Gt.goalColumn!=null&&(an.left=Gt.goalColumn),ze.push(an.left);var Bn=Sf(fe,an,te,ae);return ae=="page"&&Gt==Me.sel.primary()&&Mu(fe,Fo(fe,Bn,"div").top-an.top),Bn},Lt),ze.length)for(var ft=0;ft<Me.sel.ranges.length;ft++)Me.sel.ranges[ft].goalColumn=ze[ft]}),findWordAt:function(te){var ae=this.doc,fe=Dt(ae,te.line).text,Me=te.ch,ze=te.ch;if(fe){var Ge=this.getHelper(te,"wordChars");(te.sticky=="before"||ze==fe.length)&&Me?--Me:++ze;for(var ft=fe.charAt(Me),Gt=pe(ft,Ge)?function(an){return pe(an,Ge)}:/\s/.test(ft)?function(an){return/\s/.test(an)}:function(an){return!/\s/.test(an)&&!pe(an)};Me>0&&Gt(fe.charAt(Me-1));)--Me;for(;ze<fe.length&&Gt(fe.charAt(ze));)++ze}return new Xr(Qt(te.line,Me),Qt(te.line,ze))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Tt(this.display.cursorDiv,"CodeMirror-overwrite"):Fe(this.display.cursorDiv,"CodeMirror-overwrite"),Oe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==He()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:hn(function(te,ae){xs(this,te,ae)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-Oo(this)-this.display.barHeight,width:te.scrollWidth-Oo(this)-this.display.barWidth,clientHeight:As(this),clientWidth:Lo(this)}},scrollIntoView:hn(function(te,ae){te==null?(te={from:this.doc.sel.primary().head,to:null},ae==null&&(ae=this.options.cursorScrollMargin)):typeof te=="number"?te={from:Qt(te,0),to:null}:te.from==null&&(te={from:te,to:null}),te.to||(te.to=te.from),te.margin=ae||0,te.from.line!=null?Au(this,te):ku(this,te.from,te.to,te.margin)}),setSize:hn(function(te,ae){var fe=this,Me=function(Ge){return typeof Ge=="number"||/^\d+$/.test(String(Ge))?Ge+"px":Ge};te!=null&&(this.display.wrapper.style.width=Me(te)),ae!=null&&(this.display.wrapper.style.height=Me(ae)),this.options.lineWrapping&&Oi(this);var ze=this.display.viewFrom;this.doc.iter(ze,this.display.viewTo,function(Ge){if(Ge.widgets){for(var ft=0;ft<Ge.widgets.length;ft++)if(Ge.widgets[ft].noHScroll){qs(fe,ze,"widget");break}}++ze}),this.curOp.forceUpdate=!0,Oe(this,"refresh",this)}),operation:function(te){return Wt(this,te)},startOperation:function(){return ks(this)},endOperation:function(){return xl(this)},refresh:hn(function(){var te=this.display.cachedTextHeight;To(this),this.curOp.forceUpdate=!0,Qi(this),xs(this,this.doc.scrollLeft,this.doc.scrollTop),li(this.display),(te==null||Math.abs(te-Os(this.display))>.5||this.options.lineWrapping)&&Ta(this),Oe(this,"refresh",this)}),swapDoc:hn(function(te){var ae=this.doc;return ae.cm=null,this.state.selectingText&&this.state.selectingText(),Ji(this,te),Qi(this),this.display.input.reset(),xs(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,Ci(this,"swapDoc",this,ae),ae}),phrase:function(te){var ae=this.options.phrases;return ae&&Object.prototype.hasOwnProperty.call(ae,te)?ae[te]:te},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},nn(x),x.registerHelper=function(te,ae,fe){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][ae]=fe},x.registerGlobalHelper=function(te,ae,fe,Me){x.registerHelper(te,ae,Me),ne[te]._global.push({pred:fe,val:Me})}}function ld(x,z,ne,te,ae){var fe=z,Me=ne,ze=Dt(x,z.line),Ge=ae&&x.direction=="rtl"?-ne:ne;function ft(){var _i=z.line+Ge;return _i<x.first||_i>=x.first+x.size?!1:(z=new Qt(_i,z.ch,z.sticky),ze=Dt(x,_i))}function Gt(_i){var yi;if(te=="codepoint"){var zi=ze.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(zi)?yi=null:yi=new Qt(z.line,Math.max(0,Math.min(ze.text.length,z.ch+ne*(zi>=55296&&zi<56320?2:1))),-ne)}else ae?yi=oo(x.cm,ze,z,ne):yi=Ql(ze,z,ne);if(yi==null)if(!_i&&ft())z=Wa(ae,x.cm,ze,z.line,Ge);else return!1;else z=yi;return!0}if(te=="char"||te=="codepoint")Gt();else if(te=="column")Gt(!0);else if(te=="word"||te=="group")for(var an=null,Bn=te=="group",kn=x.cm&&x.cm.getHelper(z,"wordChars"),ar=!0;!(ne<0&&!Gt(!ar));ar=!1){var Mr=ze.text.charAt(z.ch)||`
|
|
|
`,ri=pe(Mr,kn)?"w":Bn&&Mr==`
|
|
|
`?"n":!Bn||/\s/.test(Mr)?null:"p";if(Bn&&!ar&&!ri&&(ri="s"),an&&an!=ri){ne<0&&(ne=1,Gt(),z.sticky="after");break}if(ri&&(an=ri),ne>0&&!Gt(!ar))break}var wi=Nl(x,z,fe,Me,!0);return Xn(fe,wi)&&(wi.hitSide=!0),wi}function Sf(x,z,ne,te){var ae=x.doc,fe=z.left,Me;if(te=="page"){var ze=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ge=Math.max(ze-.5*Os(x.display),3);Me=(ne>0?z.bottom:z.top)+ne*Ge}else te=="line"&&(Me=ne>0?z.bottom+3:z.top-3);for(var ft;ft=Uo(x,fe,Me),!!ft.outside;){if(ne<0?Me<=0:Me>=ae.height){ft.hitSide=!0;break}Me+=ne*5}return ft}var Zo=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ge,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Zo.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ae=ne.div=x.lineDiv;xf(ae,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function fe(ze){for(var Ge=ze.target;Ge;Ge=Ge.parentNode){if(Ge==ae)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ge.className))break}return!1}$t(ae,"paste",function(ze){!fe(ze)||yt(te,ze)||Pd(ze,te)||Ee<=11&&setTimeout(pn(te,function(){return z.updateFromDOM()}),20)}),$t(ae,"compositionstart",function(ze){z.composing={data:ze.data,done:!1}}),$t(ae,"compositionupdate",function(ze){z.composing||(z.composing={data:ze.data,done:!1})}),$t(ae,"compositionend",function(ze){z.composing&&(ze.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),$t(ae,"touchstart",function(){return ne.forceCompositionEnd()}),$t(ae,"input",function(){z.composing||z.readFromDOMSoon()});function Me(ze){if(!(!fe(ze)||yt(te,ze))){if(te.somethingSelected())Uu({lineWise:!1,text:te.getSelections()}),ze.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var Ge=Ec(te);Uu({lineWise:!0,text:Ge.text}),ze.type=="cut"&&te.operation(function(){te.setSelections(Ge.ranges,0,Qe),te.replaceSelection("",null,"cut")})}else return;if(ze.clipboardData){ze.clipboardData.clearData();var ft=ou.text.join(`
|
|
|
`);if(ze.clipboardData.setData("Text",ft),ze.clipboardData.getData("Text")==ft){ze.preventDefault();return}}var Gt=Fd(),an=Gt.firstChild;te.display.lineSpace.insertBefore(Gt,te.display.lineSpace.firstChild),an.value=ou.text.join(`
|
|
|
`);var Bn=document.activeElement;Et(an),setTimeout(function(){te.display.lineSpace.removeChild(Gt),Bn.focus(),Bn==ae&&ne.showPrimarySelection()},50)}}$t(ae,"copy",Me),$t(ae,"cut",Me)},Zo.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},Zo.prototype.prepareSelection=function(){var x=cr(this.cm,!1);return x.focus=document.activeElement==this.div,x},Zo.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},Zo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Zo.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ne=z.doc.sel.primary(),te=ne.from(),ae=ne.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||ae.line<z.display.viewFrom){x.removeAllRanges();return}var fe=ud(z,x.anchorNode,x.anchorOffset),Me=ud(z,x.focusNode,x.focusOffset);if(!(fe&&!fe.bad&&Me&&!Me.bad&&wn(Jn(fe,Me),te)==0&&wn(sr(fe,Me),ae)==0)){var ze=z.display.view,Ge=te.line>=z.display.viewFrom&&Cf(z,te)||{node:ze[0].measure.map[2],offset:0},ft=ae.line<z.display.viewTo&&Cf(z,ae);if(!ft){var Gt=ze[ze.length-1].measure,an=Gt.maps?Gt.maps[Gt.maps.length-1]:Gt.map;ft={node:an[an.length-1],offset:an[an.length-2]-an[an.length-3]}}if(!Ge||!ft){x.removeAllRanges();return}var Bn=x.rangeCount&&x.getRangeAt(0),kn;try{kn=Be(Ge.node,Ge.offset,ft.offset,ft.node)}catch(ar){}kn&&(!oe&&z.state.focused?(x.collapse(Ge.node,Ge.offset),kn.collapsed||(x.removeAllRanges(),x.addRange(kn))):(x.removeAllRanges(),x.addRange(kn)),Bn&&x.anchorNode==null?x.addRange(Bn):oe&&this.startGracePeriod()),this.rememberSelection()}},Zo.prototype.startGracePeriod=function(){var x=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){x.gracePeriod=!1,x.selectionChanged()&&x.cm.operation(function(){return x.cm.curOp.selectionChanged=!0})},20)},Zo.prototype.showMultipleSelections=function(x){xt(this.cm.display.cursorDiv,x.cursors),xt(this.cm.display.selectionDiv,x.selection)},Zo.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},Zo.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return kt(this.div,z)},Zo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Zo.prototype.blur=function(){this.div.blur()},Zo.prototype.getField=function(){return this.div},Zo.prototype.supportsTouch=function(){return!0},Zo.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():Wt(this.cm,function(){return x.cm.curOp.selectionChanged=!0});function z(){x.cm.state.focused&&(x.pollSelection(),x.polling.set(x.cm.options.pollInterval,z))}this.polling.set(this.cm.options.pollInterval,z)},Zo.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},Zo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if(Ue&&we&&this.cm.display.gutterSpecs.length&&u0(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ne=ud(z,x.anchorNode,x.anchorOffset),te=ud(z,x.focusNode,x.focusOffset);ne&&te&&Wt(z,function(){uo(z.doc,ha(ne,te),Qe),(ne.bad||te.bad)&&(z.curOp.selectionChanged=!0)})}}},Zo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,z=x.display,ne=x.doc.sel.primary(),te=ne.from(),ae=ne.to();if(te.ch==0&&te.line>x.firstLine()&&(te=Qt(te.line-1,Dt(x.doc,te.line-1).length)),ae.ch==Dt(x.doc,ae.line).text.length&&ae.line<x.lastLine()&&(ae=Qt(ae.line+1,0)),te.line<z.viewFrom||ae.line>z.viewTo-1)return!1;var fe,Me,ze;te.line==z.viewFrom||(fe=Mo(x,te.line))==0?(Me=mn(z.view[0].line),ze=z.view[0].node):(Me=mn(z.view[fe].line),ze=z.view[fe-1].node.nextSibling);var Ge=Mo(x,ae.line),ft,Gt;if(Ge==z.view.length-1?(ft=z.viewTo-1,Gt=z.lineDiv.lastChild):(ft=mn(z.view[Ge+1].line)-1,Gt=z.view[Ge+1].node.previousSibling),!ze)return!1;for(var an=x.doc.splitLines(c0(x,ze,Gt,Me,ft)),Bn=Ht(x.doc,Qt(Me,0),Qt(ft,Dt(x.doc,ft).text.length));an.length>1&&Bn.length>1;)if(en(an)==en(Bn))an.pop(),Bn.pop(),ft--;else if(an[0]==Bn[0])an.shift(),Bn.shift(),Me++;else break;for(var kn=0,ar=0,Mr=an[0],ri=Bn[0],wi=Math.min(Mr.length,ri.length);kn<wi&&Mr.charCodeAt(kn)==ri.charCodeAt(kn);)++kn;for(var _i=en(an),yi=en(Bn),zi=Math.min(_i.length-(an.length==1?kn:0),yi.length-(Bn.length==1?kn:0));ar<zi&&_i.charCodeAt(_i.length-ar-1)==yi.charCodeAt(yi.length-ar-1);)++ar;if(an.length==1&&Bn.length==1&&Me==te.line)for(;kn&&kn>te.ch&&_i.charCodeAt(_i.length-ar-1)==yi.charCodeAt(yi.length-ar-1);)kn--,ar++;an[an.length-1]=_i.slice(0,_i.length-ar).replace(/^\u200b+/,""),an[0]=an[0].slice(kn).replace(/\u200b+$/,"");var sa=Qt(Me,kn),ga=Qt(ft,Bn.length?en(Bn).length-ar:0);if(an.length>1||an[0]||wn(sa,ga))return nu(x.doc,an,sa,ga,"+input"),!0},Zo.prototype.ensurePolled=function(){this.forceCompositionEnd()},Zo.prototype.reset=function(){this.forceCompositionEnd()},Zo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Zo.prototype.readFromDOMSoon=function(){var x=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(x.readDOMTimeout=null,x.composing)if(x.composing.done)x.composing=null;else return;x.updateFromDOM()},80))},Zo.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&Wt(this.cm,function(){return To(x.cm)})},Zo.prototype.setUneditable=function(x){x.contentEditable="false"},Zo.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||pn(this.cm,_d)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},Zo.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},Zo.prototype.onContextMenu=function(){},Zo.prototype.resetPosition=function(){},Zo.prototype.needsContentAttribute=!0;function Cf(x,z){var ne=os(x,z.line);if(!ne||ne.hidden)return null;var te=Dt(x.doc,z.line),ae=es(ne,te,z.line),fe=Xt(te,x.doc.direction),Me="left";if(fe){var ze=Xe(fe,z.ch);Me=ze%2?"right":"left"}var Ge=ln(ae.map,z.ch,Me);return Ge.offset=Ge.collapse=="right"?Ge.end:Ge.start,Ge}function u0(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function Mc(x,z){return z&&(x.bad=!0),x}function c0(x,z,ne,te,ae){var fe="",Me=!1,ze=x.doc.lineSeparator(),Ge=!1;function ft(kn){return function(ar){return ar.id==kn}}function Gt(){Me&&(fe+=ze,Ge&&(fe+=ze),Me=Ge=!1)}function an(kn){kn&&(Gt(),fe+=kn)}function Bn(kn){if(kn.nodeType==1){var ar=kn.getAttribute("cm-text");if(ar){an(ar);return}var Mr=kn.getAttribute("cm-marker"),ri;if(Mr){var wi=x.findMarks(Qt(te,0),Qt(ae+1,0),ft(+Mr));wi.length&&(ri=wi[0].find(0))&&an(Ht(x.doc,ri.from,ri.to).join(ze));return}if(kn.getAttribute("contenteditable")=="false")return;var _i=/^(pre|div|p|li|table|br)$/i.test(kn.nodeName);if(!/^br$/i.test(kn.nodeName)&&kn.textContent.length==0)return;_i&&Gt();for(var yi=0;yi<kn.childNodes.length;yi++)Bn(kn.childNodes[yi]);/^(pre|p)$/i.test(kn.nodeName)&&(Ge=!0),_i&&(Me=!0)}else kn.nodeType==3&&an(kn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Bn(z),z!=ne;)z=z.nextSibling,Ge=!1;return fe}function ud(x,z,ne){var te;if(z==x.display.lineDiv){if(te=x.display.lineDiv.childNodes[ne],!te)return Mc(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 ae=0;ae<x.display.view.length;ae++){var fe=x.display.view[ae];if(fe.node==te)return d0(fe,z,ne)}}function d0(x,z,ne){var te=x.text.firstChild,ae=!1;if(!z||!kt(te,z))return Mc(Qt(mn(x.line),0),!0);if(z==te&&(ae=!0,z=te.childNodes[ne],ne=0,!z)){var fe=x.rest?en(x.rest):x.line;return Mc(Qt(mn(fe),fe.text.length),ae)}var Me=z.nodeType==3?z:null,ze=z;for(!Me&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(Me=z.firstChild,ne&&(ne=Me.nodeValue.length));ze.parentNode!=te;)ze=ze.parentNode;var Ge=x.measure,ft=Ge.maps;function Gt(ri,wi,_i){for(var yi=-1;yi<(ft?ft.length:0);yi++)for(var zi=yi<0?Ge.map:ft[yi],sa=0;sa<zi.length;sa+=3){var ga=zi[sa+2];if(ga==ri||ga==wi){var Ua=mn(yi<0?x.line:x.rest[yi]),Qo=zi[sa]+_i;return(_i<0||ga!=ri)&&(Qo=zi[sa+(_i?1:0)]),Qt(Ua,Qo)}}}var an=Gt(Me,ze,ne);if(an)return Mc(an,ae);for(var Bn=ze.nextSibling,kn=Me?Me.nodeValue.length-ne:0;Bn;Bn=Bn.nextSibling){if(an=Gt(Bn,Bn.firstChild,0),an)return Mc(Qt(an.line,an.ch-kn),ae);kn+=Bn.textContent.length}for(var ar=ze.previousSibling,Mr=ne;ar;ar=ar.previousSibling){if(an=Gt(ar,ar.firstChild,-1),an)return Mc(Qt(an.line,an.ch+Mr),ae);Mr+=ar.textContent.length}}var Yo=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new ge,this.hasSelection=!1,this.composing=null};Yo.prototype.init=function(x){var z=this,ne=this,te=this.cm;this.createField(x);var ae=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),lt&&(ae.style.width="0px"),$t(ae,"input",function(){ye&&Ee>=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),$t(ae,"paste",function(Me){yt(te,Me)||Pd(Me,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function fe(Me){if(!yt(te,Me)){if(te.somethingSelected())Uu({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var ze=Ec(te);Uu({lineWise:!0,text:ze.text}),Me.type=="cut"?te.setSelections(ze.ranges,null,Qe):(ne.prevInput="",ae.value=ze.text.join(`
|
|
|
`),Et(ae))}else return;Me.type=="cut"&&(te.state.cutIncoming=+new Date)}}$t(ae,"cut",fe),$t(ae,"copy",fe),$t(x.scroller,"paste",function(Me){if(!(Xa(x,Me)||yt(te,Me))){if(!ae.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var ze=new Event("paste");ze.clipboardData=Me.clipboardData,ae.dispatchEvent(ze)}}),$t(x.lineSpace,"selectstart",function(Me){Xa(x,Me)||Cn(Me)}),$t(ae,"compositionstart",function(){var Me=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:Me,range:te.markText(Me,te.getCursor("to"),{className:"CodeMirror-composing"})}}),$t(ae,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},Yo.prototype.createField=function(x){this.wrapper=Fd(),this.textarea=this.wrapper.firstChild},Yo.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},Yo.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=cr(x);if(x.options.moveInputWithCursor){var ae=ca(x,ne.sel.primary().head,"div"),fe=z.wrapper.getBoundingClientRect(),Me=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ae.top+Me.top-fe.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ae.left+Me.left-fe.left))}return te},Yo.prototype.showSelection=function(x){var z=this.cm,ne=z.display;xt(ne.cursorDiv,x.cursors),xt(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},Yo.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&&Et(this.textarea),ye&&Ee>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",ye&&Ee>=9&&(this.hasSelection=null))}},Yo.prototype.getField=function(){return this.textarea},Yo.prototype.supportsTouch=function(){return!1},Yo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!We||He()!=this.textarea))try{this.textarea.focus()}catch(x){}},Yo.prototype.blur=function(){this.textarea.blur()},Yo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Yo.prototype.receivedFocus=function(){this.slowPoll()},Yo.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},Yo.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)},Yo.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||Qn(ne)&&!te&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ae=ne.value;if(ae==te&&!z.somethingSelected())return!1;if(ye&&Ee>=9&&this.hasSelection===ae||ct&&/[\uf700-\uf7ff]/.test(ae))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var fe=ae.charCodeAt(0);if(fe==8203&&!te&&(te="\u200B"),fe==8666)return this.reset(),this.cm.execCommand("undo")}for(var Me=0,ze=Math.min(te.length,ae.length);Me<ze&&te.charCodeAt(Me)==ae.charCodeAt(Me);)++Me;return Wt(z,function(){_d(z,ae.slice(Me),te.length-Me,null,x.composing?"*compose":null),ae.length>1e3||ae.indexOf(`
|
|
|
`)>-1?ne.value=x.prevInput="":x.prevInput=ae,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Yo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Yo.prototype.onKeyPress=function(){ye&&Ee>=9&&(this.hasSelection=null),this.fastPoll()},Yo.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ae=z.textarea;z.contextMenuPending&&z.contextMenuPending();var fe=_o(ne,x),Me=te.scroller.scrollTop;if(!fe||Te)return;var ze=ne.options.resetSelectionOnContextMenu;ze&&ne.doc.sel.contains(fe)==-1&&pn(ne,uo)(ne.doc,ha(fe),Qe);var Ge=ae.style.cssText,ft=z.wrapper.style.cssText,Gt=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ae.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(x.clientY-Gt.top-5)+"px; left: "+(x.clientX-Gt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(ye?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var an;he&&(an=window.scrollY),te.input.focus(),he&&window.scrollTo(null,an),te.input.reset(),ne.somethingSelected()||(ae.value=z.prevInput=" "),z.contextMenuPending=kn,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function Bn(){if(ae.selectionStart!=null){var Mr=ne.somethingSelected(),ri="\u200B"+(Mr?ae.value:"");ae.value="\u21DA",ae.value=ri,z.prevInput=Mr?"":"\u200B",ae.selectionStart=1,ae.selectionEnd=ri.length,te.selForContextMenu=ne.doc.sel}}function kn(){if(z.contextMenuPending==kn&&(z.contextMenuPending=!1,z.wrapper.style.cssText=ft,ae.style.cssText=Ge,ye&&Ee<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=Me),ae.selectionStart!=null)){(!ye||ye&&Ee<9)&&Bn();var Mr=0,ri=function(){te.selForContextMenu==ne.doc.sel&&ae.selectionStart==0&&ae.selectionEnd>0&&z.prevInput=="\u200B"?pn(ne,tl)(ne):Mr++<10?te.detectingSelectAll=setTimeout(ri,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(ri,200)}}if(ye&&Ee>=9&&Bn(),je){Kn(x);var ar=function(){vt(window,"mouseup",ar),setTimeout(kn,20)};$t(window,"mouseup",ar)}else setTimeout(kn,50)},Yo.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},Yo.prototype.setUneditable=function(){},Yo.prototype.needsContentAttribute=!1;function lc(x,z){if(z=z?Bt(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=He();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=ze.getValue()}var ae;if(x.form&&($t(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var fe=x.form;ae=fe.submit;try{var Me=fe.submit=function(){te(),fe.submit=ae,fe.submit(),fe.submit=Me}}catch(Ge){}}z.finishInit=function(Ge){Ge.save=te,Ge.getTextArea=function(){return x},Ge.toTextArea=function(){Ge.toTextArea=isNaN,te(),x.parentNode.removeChild(Ge.getWrapperElement()),x.style.display="",x.form&&(vt(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ae))}},x.style.display="none";var ze=Ia(function(Ge){return x.parentNode.insertBefore(Ge,x.nextSibling)},z);return ze}function Ac(x){x.off=vt,x.on=$t,x.wheelEventPixels=qi,x.Doc=ms,x.splitLines=kr,x.countColumn=De,x.findColumn=dn,x.isWordChar=de,x.Pass=It,x.signal=Oe,x.Line=Gr,x.changeEnd=ja,x.scrollbarModel=zu,x.Pos=Qt,x.cmpPos=wn,x.modes=pi,x.mimeModes=ai,x.resolveMode=Hn,x.getMode=Gn,x.modeExtensions=Or,x.extendMode=Rt,x.copyState=Ke,x.startState=rt,x.innerMode=nt,x.commands=rl,x.keyMap=Po,x.keyName=iu,x.isModifierKey=sc,x.lookupKey=Yl,x.normalizeKeyMap=Cc,x.StringStream=it,x.SharedTextMarker=Ka,x.TextMarker=pu,x.LineWidget=zs,x.e_preventDefault=Cn,x.e_stopPropagation=In,x.e_stop=Kn,x.addClass=Tt,x.contains=kt,x.rmClass=Fe,x.keyNames=Tl}o0(Ia),zd(Ia);var Ou="iter insert remove copy getEditor constructor".split(" ");for(var ql in ms.prototype)ms.prototype.hasOwnProperty(ql)&&at(Ou,ql)<0&&(Ia.prototype[ql]=function(x){return function(){return x.apply(this.doc,arguments)}}(ms.prototype[ql]));return nn(ms),Ia.inputStyles={textarea:Yo,contenteditable:Zo},Ia.defineMode=function(x){!Ia.defaults.mode&&x!="null"&&(Ia.defaults.mode=x),nr.apply(this,arguments)},Ia.defineMIME=yr,Ia.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),Ia.defineMIME("text/plain","null"),Ia.defineExtension=function(x,z){Ia.prototype[x]=z},Ia.defineDocExtension=function(x,z){ms.prototype[x]=z},Ia.fromTextArea=lc,Ac(Ia),Ia.version="5.58.2",Ia})},25419:function(gn,Kt,ie){(function(oe){oe(ie(89780),ie(15525),ie(98101))})(function(oe){"use strict";oe.defineMode("markdown",function(ke,Ce){var Ye=oe.getMode(ke,"text/html"),ye=Ye.name=="null";function Ee(De){if(oe.findModeByName){var ge=oe.findModeByName(De);ge&&(De=ge.mime||ge.mimes[0])}var at=oe.getMode(ke,De);return at.name=="null"?null:at}Ce.highlightFormatting===void 0&&(Ce.highlightFormatting=!1),Ce.maxBlockquoteDepth===void 0&&(Ce.maxBlockquoteDepth=0),Ce.taskLists===void 0&&(Ce.taskLists=!1),Ce.strikethrough===void 0&&(Ce.strikethrough=!1),Ce.emoji===void 0&&(Ce.emoji=!1),Ce.fencedCodeBlockHighlighting===void 0&&(Ce.fencedCodeBlockHighlighting=!0),Ce.fencedCodeBlockDefaultMode===void 0&&(Ce.fencedCodeBlockDefaultMode="text/plain"),Ce.xml===void 0&&(Ce.xml=!0),Ce.tokenTypeOverrides===void 0&&(Ce.tokenTypeOverrides={});var he={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var xe in he)he.hasOwnProperty(xe)&&Ce.tokenTypeOverrides[xe]&&(he[xe]=Ce.tokenTypeOverrides[xe]);var we=/^([*\-_])(?:\s*\1){2,}\s*$/,Te=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,qe=/^\[(x| )\](?=\s)/i,Ie=Ce.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Re=/^ {0,3}(?:\={1,}|-{2,})\s*$/,lt=/^[^#!\[\]*_\\<>` "'(~:]+/,Ue=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,We=/^\s*\[[^\]]+?\]:.*$/,ct=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,tt=" ";function At(De,ge,at){return ge.f=ge.inline=at,at(De,ge)}function ut(De,ge,at){return ge.f=ge.block=at,at(De,ge)}function ot(De){return!De||!/\S/.test(De.string)}function je(De){if(De.linkTitle=!1,De.linkHref=!1,De.linkText=!1,De.em=!1,De.strong=!1,De.strikethrough=!1,De.quote=0,De.indentedCode=!1,De.f==Fe){var ge=ye;if(!ge){var at=oe.innerMode(Ye,De.htmlState);ge=at.mode.name=="xml"&&at.state.tagStart===null&&!at.state.context&&at.state.tokenize.isInText}ge&&(De.f=dt,De.block=Se,De.htmlState=null)}return De.trailingSpace=0,De.trailingSpaceNewLine=!1,De.prevLine=De.thisLine,De.thisLine={stream:null},null}function Se(De,ge){var at=De.column()===ge.indentation,Ct=ot(ge.prevLine.stream),It=ge.indentedCode,Qe=ge.prevLine.hr,et=ge.list!==!1,Lt=(ge.listStack[ge.listStack.length-1]||0)+3;ge.indentedCode=!1;var dn=ge.indentation;if(ge.indentationDiff===null&&(ge.indentationDiff=ge.indentation,et)){for(ge.list=null;dn<ge.listStack[ge.listStack.length-1];)ge.listStack.pop(),ge.listStack.length?ge.indentation=ge.listStack[ge.listStack.length-1]:ge.list=!1;ge.list!==!1&&(ge.indentationDiff=dn-ge.listStack[ge.listStack.length-1])}var _t=!Ct&&!Qe&&!ge.prevLine.header&&(!et||!It)&&!ge.prevLine.fencedCodeEnd,tn=(ge.list===!1||Qe||Ct)&&ge.indentation<=Lt&&De.match(we),en=null;if(ge.indentationDiff>=4&&(It||ge.prevLine.fencedCodeEnd||ge.prevLine.header||Ct))return De.skipToEnd(),ge.indentedCode=!0,he.code;if(De.eatSpace())return null;if(at&&ge.indentation<=Lt&&(en=De.match(Ie))&&en[1].length<=6)return ge.quote=0,ge.header=en[1].length,ge.thisLine.header=!0,Ce.highlightFormatting&&(ge.formatting="header"),ge.f=ge.inline,xt(ge);if(ge.indentation<=Lt&&De.eat(">"))return ge.quote=at?1:ge.quote+1,Ce.highlightFormatting&&(ge.formatting="quote"),De.eatSpace(),xt(ge);if(!tn&&!ge.setext&&at&&ge.indentation<=Lt&&(en=De.match(Te))){var Jt=en[1]?"ol":"ul";return ge.indentation=dn+De.current().length,ge.list=!0,ge.quote=0,ge.listStack.push(ge.indentation),ge.em=!1,ge.strong=!1,ge.code=!1,ge.strikethrough=!1,Ce.taskLists&&De.match(qe,!1)&&(ge.taskList=!0),ge.f=ge.inline,Ce.highlightFormatting&&(ge.formatting=["list","list-"+Jt]),xt(ge)}else{if(at&&ge.indentation<=Lt&&(en=De.match(Ue,!0)))return ge.quote=0,ge.fencedEndRE=new RegExp(en[1]+"+ *$"),ge.localMode=Ce.fencedCodeBlockHighlighting&&Ee(en[2]||Ce.fencedCodeBlockDefaultMode),ge.localMode&&(ge.localState=oe.startState(ge.localMode)),ge.f=ge.block=Ze,Ce.highlightFormatting&&(ge.formatting="code-block"),ge.code=-1,xt(ge);if(ge.setext||(!_t||!et)&&!ge.quote&&ge.list===!1&&!ge.code&&!tn&&!We.test(De.string)&&(en=De.lookAhead(1))&&(en=en.match(Re)))return ge.setext?(ge.header=ge.setext,ge.setext=0,De.skipToEnd(),Ce.highlightFormatting&&(ge.formatting="header")):(ge.header=en[0].charAt(0)=="="?1:2,ge.setext=ge.header),ge.thisLine.header=!0,ge.f=ge.inline,xt(ge);if(tn)return De.skipToEnd(),ge.hr=!0,ge.thisLine.hr=!0,he.hr;if(De.peek()==="[")return At(De,ge,mt)}return At(De,ge,ge.inline)}function Fe(De,ge){var at=Ye.token(De,ge.htmlState);if(!ye){var Ct=oe.innerMode(Ye,ge.htmlState);(Ct.mode.name=="xml"&&Ct.state.tagStart===null&&!Ct.state.context&&Ct.state.tokenize.isInText||ge.md_inside&&De.current().indexOf(">")>-1)&&(ge.f=dt,ge.block=Se,ge.htmlState=null)}return at}function Ze(De,ge){var at=ge.listStack[ge.listStack.length-1]||0,Ct=ge.indentation<at,It=at+3;if(ge.fencedEndRE&&ge.indentation<=It&&(Ct||De.match(ge.fencedEndRE))){Ce.highlightFormatting&&(ge.formatting="code-block");var Qe;return Ct||(Qe=xt(ge)),ge.localMode=ge.localState=null,ge.block=Se,ge.f=dt,ge.fencedEndRE=null,ge.code=0,ge.thisLine.fencedCodeEnd=!0,Ct?ut(De,ge,ge.block):Qe}else return ge.localMode?ge.localMode.token(De,ge.localState):(De.skipToEnd(),he.code)}function xt(De){var ge=[];if(De.formatting){ge.push(he.formatting),typeof De.formatting=="string"&&(De.formatting=[De.formatting]);for(var at=0;at<De.formatting.length;at++)ge.push(he.formatting+"-"+De.formatting[at]),De.formatting[at]==="header"&&ge.push(he.formatting+"-"+De.formatting[at]+"-"+De.header),De.formatting[at]==="quote"&&(!Ce.maxBlockquoteDepth||Ce.maxBlockquoteDepth>=De.quote?ge.push(he.formatting+"-"+De.formatting[at]+"-"+De.quote):ge.push("error"))}if(De.taskOpen)return ge.push("meta"),ge.length?ge.join(" "):null;if(De.taskClosed)return ge.push("property"),ge.length?ge.join(" "):null;if(De.linkHref?ge.push(he.linkHref,"url"):(De.strong&&ge.push(he.strong),De.em&&ge.push(he.em),De.strikethrough&&ge.push(he.strikethrough),De.emoji&&ge.push(he.emoji),De.linkText&&ge.push(he.linkText),De.code&&ge.push(he.code),De.image&&ge.push(he.image),De.imageAltText&&ge.push(he.imageAltText,"link"),De.imageMarker&&ge.push(he.imageMarker)),De.header&&ge.push(he.header,he.header+"-"+De.header),De.quote&&(ge.push(he.quote),!Ce.maxBlockquoteDepth||Ce.maxBlockquoteDepth>=De.quote?ge.push(he.quote+"-"+De.quote):ge.push(he.quote+"-"+Ce.maxBlockquoteDepth)),De.list!==!1){var Ct=(De.listStack.length-1)%3;Ct?Ct===1?ge.push(he.list2):ge.push(he.list3):ge.push(he.list1)}return De.trailingSpaceNewLine?ge.push("trailing-space-new-line"):De.trailingSpace&&ge.push("trailing-space-"+(De.trailingSpace%2?"a":"b")),ge.length?ge.join(" "):null}function Je(De,ge){if(De.match(lt,!0))return xt(ge)}function dt(De,ge){var at=ge.text(De,ge);if(typeof at!="undefined")return at;if(ge.list)return ge.list=null,xt(ge);if(ge.taskList){var Ct=De.match(qe,!0)[1]===" ";return Ct?ge.taskOpen=!0:ge.taskClosed=!0,Ce.highlightFormatting&&(ge.formatting="task"),ge.taskList=!1,xt(ge)}if(ge.taskOpen=!1,ge.taskClosed=!1,ge.header&&De.match(/^#+$/,!0))return Ce.highlightFormatting&&(ge.formatting="header"),xt(ge);var It=De.next();if(ge.linkTitle){ge.linkTitle=!1;var Qe=It;It==="("&&(Qe=")"),Qe=(Qe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var et="^\\s*(?:[^"+Qe+"\\\\]+|\\\\\\\\|\\\\.)"+Qe;if(De.match(new RegExp(et),!0))return he.linkHref}if(It==="`"){var Lt=ge.formatting;Ce.highlightFormatting&&(ge.formatting="code"),De.eatWhile("`");var dn=De.current().length;if(ge.code==0&&(!ge.quote||dn==1))return ge.code=dn,xt(ge);if(dn==ge.code){var _t=xt(ge);return ge.code=0,_t}else return ge.formatting=Lt,xt(ge)}else if(ge.code)return xt(ge);if(It==="\\"&&(De.next(),Ce.highlightFormatting)){var tn=xt(ge),en=he.formatting+"-escape";return tn?tn+" "+en:en}if(It==="!"&&De.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ge.imageMarker=!0,ge.image=!0,Ce.highlightFormatting&&(ge.formatting="image"),xt(ge);if(It==="["&&ge.imageMarker&&De.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ge.imageMarker=!1,ge.imageAltText=!0,Ce.highlightFormatting&&(ge.formatting="image"),xt(ge);if(It==="]"&&ge.imageAltText){Ce.highlightFormatting&&(ge.formatting="image");var tn=xt(ge);return ge.imageAltText=!1,ge.image=!1,ge.inline=ge.f=kt,tn}if(It==="["&&!ge.image)return ge.linkText&&De.match(/^.*?\]/)||(ge.linkText=!0,Ce.highlightFormatting&&(ge.formatting="link")),xt(ge);if(It==="]"&&ge.linkText){Ce.highlightFormatting&&(ge.formatting="link");var tn=xt(ge);return ge.linkText=!1,ge.inline=ge.f=De.match(/\(.*?\)| ?\[.*?\]/,!1)?kt:dt,tn}if(It==="<"&&De.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ge.f=ge.inline=Be,Ce.highlightFormatting&&(ge.formatting="link");var tn=xt(ge);return tn?tn+=" ":tn="",tn+he.linkInline}if(It==="<"&&De.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ge.f=ge.inline=Be,Ce.highlightFormatting&&(ge.formatting="link");var tn=xt(ge);return tn?tn+=" ":tn="",tn+he.linkEmail}if(Ce.xml&&It==="<"&&De.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Jt=De.string.indexOf(">",De.pos);if(Jt!=-1){var Vt=De.string.substring(De.start,Jt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Vt)&&(ge.md_inside=!0)}return De.backUp(1),ge.htmlState=oe.startState(Ye),ut(De,ge,Fe)}if(Ce.xml&&It==="<"&&De.match(/^\/\w*?>/))return ge.md_inside=!1,"tag";if(It==="*"||It==="_"){for(var be=1,ce=De.pos==1?" ":De.string.charAt(De.pos-2);be<3&&De.eat(It);)be++;var ue=De.peek()||" ",de=!/\s/.test(ue)&&(!ct.test(ue)||/\s/.test(ce)||ct.test(ce)),pe=!/\s/.test(ce)&&(!ct.test(ce)||/\s/.test(ue)||ct.test(ue)),se=null,Le=null;if(be%2&&(!ge.em&&de&&(It==="*"||!pe||ct.test(ce))?se=!0:ge.em==It&&pe&&(It==="*"||!de||ct.test(ue))&&(se=!1)),be>1&&(!ge.strong&&de&&(It==="*"||!pe||ct.test(ce))?Le=!0:ge.strong==It&&pe&&(It==="*"||!de||ct.test(ue))&&(Le=!1)),Le!=null||se!=null){Ce.highlightFormatting&&(ge.formatting=se==null?"strong":Le==null?"em":"strong em"),se===!0&&(ge.em=It),Le===!0&&(ge.strong=It);var _t=xt(ge);return se===!1&&(ge.em=!1),Le===!1&&(ge.strong=!1),_t}}else if(It===" "&&(De.eat("*")||De.eat("_"))){if(De.peek()===" ")return xt(ge);De.backUp(1)}if(Ce.strikethrough){if(It==="~"&&De.eatWhile(It)){if(ge.strikethrough){Ce.highlightFormatting&&(ge.formatting="strikethrough");var _t=xt(ge);return ge.strikethrough=!1,_t}else if(De.match(/^[^\s]/,!1))return ge.strikethrough=!0,Ce.highlightFormatting&&(ge.formatting="strikethrough"),xt(ge)}else if(It===" "&&De.match(/^~~/,!0)){if(De.peek()===" ")return xt(ge);De.backUp(2)}}if(Ce.emoji&&It===":"&&De.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ge.emoji=!0,Ce.highlightFormatting&&(ge.formatting="emoji");var ht=xt(ge);return ge.emoji=!1,ht}return It===" "&&(De.match(/^ +$/,!1)?ge.trailingSpace++:ge.trailingSpace&&(ge.trailingSpaceNewLine=!0)),xt(ge)}function Be(De,ge){var at=De.next();if(at===">"){ge.f=ge.inline=dt,Ce.highlightFormatting&&(ge.formatting="link");var Ct=xt(ge);return Ct?Ct+=" ":Ct="",Ct+he.linkInline}return De.match(/^[^>]+/,!0),he.linkInline}function kt(De,ge){if(De.eatSpace())return null;var at=De.next();return at==="("||at==="["?(ge.f=ge.inline=Tt(at==="("?")":"]"),Ce.highlightFormatting&&(ge.formatting="link-string"),ge.linkHref=!0,xt(ge)):"error"}var He={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Tt(De){return function(ge,at){var Ct=ge.next();if(Ct===De){at.f=at.inline=dt,Ce.highlightFormatting&&(at.formatting="link-string");var It=xt(at);return at.linkHref=!1,It}return ge.match(He[De]),at.linkHref=!0,xt(at)}}function mt(De,ge){return De.match(/^([^\]\\]|\\.)*\]:/,!1)?(ge.f=Et,De.next(),Ce.highlightFormatting&&(ge.formatting="link"),ge.linkText=!0,xt(ge)):At(De,ge,dt)}function Et(De,ge){if(De.match(/^\]:/,!0)){ge.f=ge.inline=zt,Ce.highlightFormatting&&(ge.formatting="link");var at=xt(ge);return ge.linkText=!1,at}return De.match(/^([^\]\\]|\\.)+/,!0),he.linkText}function zt(De,ge){return De.eatSpace()?null:(De.match(/^[^\s]+/,!0),De.peek()===void 0?ge.linkTitle=!0:De.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ge.f=ge.inline=dt,he.linkHref+" url")}var Bt={startState:function(){return{f:Se,prevLine:{stream:null},thisLine:{stream:null},block:Se,htmlState:null,indentation:0,inline:dt,text:Je,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(De){return{f:De.f,prevLine:De.prevLine,thisLine:De.thisLine,block:De.block,htmlState:De.htmlState&&oe.copyState(Ye,De.htmlState),indentation:De.indentation,localMode:De.localMode,localState:De.localMode?oe.copyState(De.localMode,De.localState):null,inline:De.inline,text:De.text,formatting:!1,linkText:De.linkText,linkTitle:De.linkTitle,linkHref:De.linkHref,code:De.code,em:De.em,strong:De.strong,strikethrough:De.strikethrough,emoji:De.emoji,header:De.header,setext:De.setext,hr:De.hr,taskList:De.taskList,list:De.list,listStack:De.listStack.slice(0),quote:De.quote,indentedCode:De.indentedCode,trailingSpace:De.trailingSpace,trailingSpaceNewLine:De.trailingSpaceNewLine,md_inside:De.md_inside,fencedEndRE:De.fencedEndRE}},token:function(De,ge){if(ge.formatting=!1,De!=ge.thisLine.stream){if(ge.header=0,ge.hr=!1,De.match(/^\s*$/,!0))return je(ge),null;if(ge.prevLine=ge.thisLine,ge.thisLine={stream:De},ge.taskList=!1,ge.trailingSpace=0,ge.trailingSpaceNewLine=!1,!ge.localState&&(ge.f=ge.block,ge.f!=Fe)){var at=De.match(/^\s*/,!0)[0].replace(/\t/g,tt).length;if(ge.indentation=at,ge.indentationDiff=null,at>0)return null}}return ge.f(De,ge)},innerMode:function(De){return De.block==Fe?{state:De.htmlState,mode:Ye}:De.localState?{state:De.localState,mode:De.localMode}:{state:De,mode:Bt}},indent:function(De,ge,at){return De.block==Fe&&Ye.indent?Ye.indent(De.htmlState,ge,at):De.localState&&De.localMode.indent?De.localMode.indent(De.localState,ge,at):oe.Pass},blankLine:je,getType:xt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Bt},"xml"),oe.defineMIME("text/markdown","markdown"),oe.defineMIME("text/x-markdown","markdown")})},98101:function(gn,Kt,ie){(function(oe){oe(ie(89780))})(function(oe){"use strict";oe.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ke=0;ke<oe.modeInfo.length;ke++){var Ce=oe.modeInfo[ke];Ce.mimes&&(Ce.mime=Ce.mimes[0])}oe.findModeByMIME=function(Ye){Ye=Ye.toLowerCase();for(var ye=0;ye<oe.modeInfo.length;ye++){var Ee=oe.modeInfo[ye];if(Ee.mime==Ye)return Ee;if(Ee.mimes){for(var he=0;he<Ee.mimes.length;he++)if(Ee.mimes[he]==Ye)return Ee}}if(/\+xml$/.test(Ye))return oe.findModeByMIME("application/xml");if(/\+json$/.test(Ye))return oe.findModeByMIME("application/json")},oe.findModeByExtension=function(Ye){Ye=Ye.toLowerCase();for(var ye=0;ye<oe.modeInfo.length;ye++){var Ee=oe.modeInfo[ye];if(Ee.ext){for(var he=0;he<Ee.ext.length;he++)if(Ee.ext[he]==Ye)return Ee}}},oe.findModeByFileName=function(Ye){for(var ye=0;ye<oe.modeInfo.length;ye++){var Ee=oe.modeInfo[ye];if(Ee.file&&Ee.file.test(Ye))return Ee}var he=Ye.lastIndexOf("."),xe=he>-1&&Ye.substring(he+1,Ye.length);if(xe)return oe.findModeByExtension(xe)},oe.findModeByName=function(Ye){Ye=Ye.toLowerCase();for(var ye=0;ye<oe.modeInfo.length;ye++){var Ee=oe.modeInfo[ye];if(Ee.name.toLowerCase()==Ye)return Ee;if(Ee.alias){for(var he=0;he<Ee.alias.length;he++)if(Ee.alias[he].toLowerCase()==Ye)return Ee}}}})},67549:function(gn,Kt,ie){(function(oe){oe(ie(89780))})(function(oe){"use strict";oe.defineMode("stex",function(ke,Ce){"use strict";function Ye(lt,Ue){lt.cmdState.push(Ue)}function ye(lt){return lt.cmdState.length>0?lt.cmdState[lt.cmdState.length-1]:null}function Ee(lt){var Ue=lt.cmdState.pop();Ue&&Ue.closeBracket()}function he(lt){for(var Ue=lt.cmdState,We=Ue.length-1;We>=0;We--){var ct=Ue[We];if(ct.name!="DEFAULT")return ct}return{styleIdentifier:function(){return null}}}function xe(lt,Ue,We){return function(){this.name=lt,this.bracketNo=0,this.style=Ue,this.styles=We,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var we={};we.importmodule=xe("importmodule","tag",["string","builtin"]),we.documentclass=xe("documentclass","tag",["","atom"]),we.usepackage=xe("usepackage","tag",["atom"]),we.begin=xe("begin","tag",["atom"]),we.end=xe("end","tag",["atom"]),we.label=xe("label","tag",["atom"]),we.ref=xe("ref","tag",["atom"]),we.eqref=xe("eqref","tag",["atom"]),we.cite=xe("cite","tag",["atom"]),we.bibitem=xe("bibitem","tag",["atom"]),we.Bibitem=xe("Bibitem","tag",["atom"]),we.RBibitem=xe("RBibitem","tag",["atom"]),we.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Te(lt,Ue){lt.f=Ue}function qe(lt,Ue){var We;if(lt.match(/^\\[a-zA-Z@]+/)){var ct=lt.current().slice(1);return We=we.hasOwnProperty(ct)?we[ct]:we.DEFAULT,We=new We,Ye(Ue,We),Te(Ue,Re),We.style}if(lt.match(/^\\[$&%#{}_]/)||lt.match(/^\\[,;!\/\\]/))return"tag";if(lt.match("\\["))return Te(Ue,function(At,ut){return Ie(At,ut,"\\]")}),"keyword";if(lt.match("\\("))return Te(Ue,function(At,ut){return Ie(At,ut,"\\)")}),"keyword";if(lt.match("$$"))return Te(Ue,function(At,ut){return Ie(At,ut,"$$")}),"keyword";if(lt.match("$"))return Te(Ue,function(At,ut){return Ie(At,ut,"$")}),"keyword";var tt=lt.next();if(tt=="%")return lt.skipToEnd(),"comment";if(tt=="}"||tt=="]"){if(We=ye(Ue),We)We.closeBracket(tt),Te(Ue,Re);else return"error";return"bracket"}else return tt=="{"||tt=="["?(We=we.DEFAULT,We=new We,Ye(Ue,We),"bracket"):/\d/.test(tt)?(lt.eatWhile(/[\w.%]/),"atom"):(lt.eatWhile(/[\w\-_]/),We=he(Ue),We.name=="begin"&&(We.argument=lt.current()),We.styleIdentifier())}function Ie(lt,Ue,We){if(lt.eatSpace())return null;if(We&<.match(We))return Te(Ue,qe),"keyword";if(lt.match(/^\\[a-zA-Z@]+/))return"tag";if(lt.match(/^[a-zA-Z]+/))return"variable-2";if(lt.match(/^\\[$&%#{}_]/)||lt.match(/^\\[,;!\/]/)||lt.match(/^[\^_&]/))return"tag";if(lt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(lt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ct=lt.next();return ct=="{"||ct=="}"||ct=="["||ct=="]"||ct=="("||ct==")"?"bracket":ct=="%"?(lt.skipToEnd(),"comment"):"error"}function Re(lt,Ue){var We=lt.peek(),ct;return We=="{"||We=="["?(ct=ye(Ue),ct.openBracket(We),lt.eat(We),Te(Ue,qe),"bracket"):/[ \t\r]/.test(We)?(lt.eat(We),null):(Te(Ue,qe),Ee(Ue),qe(lt,Ue))}return{startState:function(){var lt=Ce.inMathMode?function(Ue,We){return Ie(Ue,We)}:qe;return{cmdState:[],f:lt}},copyState:function(lt){return{cmdState:lt.cmdState.slice(),f:lt.f}},token:function(lt,Ue){return Ue.f(lt,Ue)},blankLine:function(lt){lt.f=qe,lt.cmdState.length=0},lineComment:"%"}}),oe.defineMIME("text/x-stex","stex"),oe.defineMIME("text/x-latex","stex")})},15525:function(gn,Kt,ie){(function(oe){oe(ie(89780))})(function(oe){"use strict";var ke={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},Ce={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};oe.defineMode("xml",function(Ye,ye){var Ee=Ye.indentUnit,he={},xe=ye.htmlMode?ke:Ce;for(var we in xe)he[we]=xe[we];for(var we in ye)he[we]=ye[we];var Te,qe;function Ie(Be,kt){function He(Et){return kt.tokenize=Et,Et(Be,kt)}var Tt=Be.next();if(Tt=="<")return Be.eat("!")?Be.eat("[")?Be.match("CDATA[")?He(Ue("atom","]]>")):null:Be.match("--")?He(Ue("comment","-->")):Be.match("DOCTYPE",!0,!0)?(Be.eatWhile(/[\w\._\-]/),He(We(1))):null:Be.eat("?")?(Be.eatWhile(/[\w\._\-]/),kt.tokenize=Ue("meta","?>"),"meta"):(Te=Be.eat("/")?"closeTag":"openTag",kt.tokenize=Re,"tag bracket");if(Tt=="&"){var mt;return Be.eat("#")?Be.eat("x")?mt=Be.eatWhile(/[a-fA-F\d]/)&&Be.eat(";"):mt=Be.eatWhile(/[\d]/)&&Be.eat(";"):mt=Be.eatWhile(/[\w\.\-:]/)&&Be.eat(";"),mt?"atom":"error"}else return Be.eatWhile(/[^&<]/),null}Ie.isInText=!0;function Re(Be,kt){var He=Be.next();if(He==">"||He=="/"&&Be.eat(">"))return kt.tokenize=Ie,Te=He==">"?"endTag":"selfcloseTag","tag bracket";if(He=="=")return Te="equals",null;if(He=="<"){kt.tokenize=Ie,kt.state=ut,kt.tagName=kt.tagStart=null;var Tt=kt.tokenize(Be,kt);return Tt?Tt+" tag error":"tag error"}else return/[\'\"]/.test(He)?(kt.tokenize=lt(He),kt.stringStartCol=Be.column(),kt.tokenize(Be,kt)):(Be.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function lt(Be){var kt=function(He,Tt){for(;!He.eol();)if(He.next()==Be){Tt.tokenize=Re;break}return"string"};return kt.isInAttribute=!0,kt}function Ue(Be,kt){return function(He,Tt){for(;!He.eol();){if(He.match(kt)){Tt.tokenize=Ie;break}He.next()}return Be}}function We(Be){return function(kt,He){for(var Tt;(Tt=kt.next())!=null;){if(Tt=="<")return He.tokenize=We(Be+1),He.tokenize(kt,He);if(Tt==">")if(Be==1){He.tokenize=Ie;break}else return He.tokenize=We(Be-1),He.tokenize(kt,He)}return"meta"}}function ct(Be,kt,He){this.prev=Be.context,this.tagName=kt,this.indent=Be.indented,this.startOfLine=He,(he.doNotIndent.hasOwnProperty(kt)||Be.context&&Be.context.noIndent)&&(this.noIndent=!0)}function tt(Be){Be.context&&(Be.context=Be.context.prev)}function At(Be,kt){for(var He;;){if(!Be.context||(He=Be.context.tagName,!he.contextGrabbers.hasOwnProperty(He)||!he.contextGrabbers[He].hasOwnProperty(kt)))return;tt(Be)}}function ut(Be,kt,He){return Be=="openTag"?(He.tagStart=kt.column(),ot):Be=="closeTag"?je:ut}function ot(Be,kt,He){return Be=="word"?(He.tagName=kt.current(),qe="tag",Ze):he.allowMissingTagName&&Be=="endTag"?(qe="tag bracket",Ze(Be,kt,He)):(qe="error",ot)}function je(Be,kt,He){if(Be=="word"){var Tt=kt.current();return He.context&&He.context.tagName!=Tt&&he.implicitlyClosed.hasOwnProperty(He.context.tagName)&&tt(He),He.context&&He.context.tagName==Tt||he.matchClosing===!1?(qe="tag",Se):(qe="tag error",Fe)}else return he.allowMissingTagName&&Be=="endTag"?(qe="tag bracket",Se(Be,kt,He)):(qe="error",Fe)}function Se(Be,kt,He){return Be!="endTag"?(qe="error",Se):(tt(He),ut)}function Fe(Be,kt,He){return qe="error",Se(Be,kt,He)}function Ze(Be,kt,He){if(Be=="word")return qe="attribute",xt;if(Be=="endTag"||Be=="selfcloseTag"){var Tt=He.tagName,mt=He.tagStart;return He.tagName=He.tagStart=null,Be=="selfcloseTag"||he.autoSelfClosers.hasOwnProperty(Tt)?At(He,Tt):(At(He,Tt),He.context=new ct(He,Tt,mt==He.indented)),ut}return qe="error",Ze}function xt(Be,kt,He){return Be=="equals"?Je:(he.allowMissing||(qe="error"),Ze(Be,kt,He))}function Je(Be,kt,He){return Be=="string"?dt:Be=="word"&&he.allowUnquoted?(qe="string",Ze):(qe="error",Ze(Be,kt,He))}function dt(Be,kt,He){return Be=="string"?dt:Ze(Be,kt,He)}return{startState:function(Be){var kt={tokenize:Ie,state:ut,indented:Be||0,tagName:null,tagStart:null,context:null};return Be!=null&&(kt.baseIndent=Be),kt},token:function(Be,kt){if(!kt.tagName&&Be.sol()&&(kt.indented=Be.indentation()),Be.eatSpace())return null;Te=null;var He=kt.tokenize(Be,kt);return(He||Te)&&He!="comment"&&(qe=null,kt.state=kt.state(Te||He,Be,kt),qe&&(He=qe=="error"?He+" error":qe)),He},indent:function(Be,kt,He){var Tt=Be.context;if(Be.tokenize.isInAttribute)return Be.tagStart==Be.indented?Be.stringStartCol+1:Be.indented+Ee;if(Tt&&Tt.noIndent)return oe.Pass;if(Be.tokenize!=Re&&Be.tokenize!=Ie)return He?He.match(/^(\s*)/)[0].length:0;if(Be.tagName)return he.multilineTagIndentPastTag!==!1?Be.tagStart+Be.tagName.length+2:Be.tagStart+Ee*(he.multilineTagIndentFactor||1);if(he.alignCDATA&&/<!\[CDATA\[/.test(kt))return 0;var mt=kt&&/^<(\/)?([\w_:\.-]*)/.exec(kt);if(mt&&mt[1])for(;Tt;)if(Tt.tagName==mt[2]){Tt=Tt.prev;break}else if(he.implicitlyClosed.hasOwnProperty(Tt.tagName))Tt=Tt.prev;else break;else if(mt)for(;Tt;){var Et=he.contextGrabbers[Tt.tagName];if(Et&&Et.hasOwnProperty(mt[2]))Tt=Tt.prev;else break}for(;Tt&&Tt.prev&&!Tt.startOfLine;)Tt=Tt.prev;return Tt?Tt.indent+Ee:Be.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:he.htmlMode?"html":"xml",helperType:he.htmlMode?"html":"xml",skipAttribute:function(Be){Be.state==Je&&(Be.state=Ze)},xmlCurrentTag:function(Be){return Be.tagName?{name:Be.tagName,close:Be.type=="closeTag"}:null},xmlCurrentContext:function(Be){for(var kt=[],He=Be.context;He;He=He.prev)He.tagName&&kt.push(He.tagName);return kt.reverse()}}}),oe.defineMIME("text/xml","xml"),oe.defineMIME("application/xml","xml"),oe.mimeModes.hasOwnProperty("text/html")||oe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(gn,Kt,ie){"use strict";ie.d(Kt,{hP:function(){return Vt}});var oe=function(be,ce){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,de){ue.__proto__=de}||function(ue,de){for(var pe in de)Object.prototype.hasOwnProperty.call(de,pe)&&(ue[pe]=de[pe])})(be,ce)};function ke(be,ce){function ue(){this.constructor=be}oe(be,ce),be.prototype=ce===null?Object.create(ce):(ue.prototype=ce.prototype,new ue)}function Ce(be,ce,ue,de){return new(ue||(ue=Promise))(function(pe,se){function Le(Ne){try{_e(de.next(Ne))}catch(St){se(St)}}function ht(Ne){try{_e(de.throw(Ne))}catch(St){se(St)}}function _e(Ne){var St;Ne.done?pe(Ne.value):(St=Ne.value,St instanceof ue?St:new ue(function(gt){gt(St)})).then(Le,ht)}_e((de=de.apply(be,ce||[])).next())})}function Ye(be,ce){var ue,de,pe,se,Le={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return se={next:ht(0),throw:ht(1),return:ht(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function ht(_e){return function(Ne){return function(St){if(ue)throw new TypeError("Generator is already executing.");for(;Le;)try{if(ue=1,de&&(pe=2&St[0]?de.return:St[0]?de.throw||((pe=de.return)&&pe.call(de),0):de.next)&&!(pe=pe.call(de,St[1])).done)return pe;switch(de=0,pe&&(St=[2&St[0],pe.value]),St[0]){case 0:case 1:pe=St;break;case 4:return Le.label++,{value:St[1],done:!1};case 5:Le.label++,de=St[1],St=[0];continue;case 7:St=Le.ops.pop(),Le.trys.pop();continue;default:if(pe=Le.trys,!((pe=pe.length>0&&pe[pe.length-1])||St[0]!==6&&St[0]!==2)){Le=0;continue}if(St[0]===3&&(!pe||St[1]>pe[0]&&St[1]<pe[3])){Le.label=St[1];break}if(St[0]===6&&Le.label<pe[1]){Le.label=pe[1],pe=St;break}if(pe&&Le.label<pe[2]){Le.label=pe[2],Le.ops.push(St);break}pe[2]&&Le.ops.pop(),Le.trys.pop();continue}St=ce.call(be,Le)}catch(gt){St=[6,gt],de=0}finally{ue=pe=0}if(5&St[0])throw St[1];return{value:St[0]?St[1]:void 0,done:!0}}([_e,Ne])}}}function ye(){for(var be=0,ce=0,ue=arguments.length;ce<ue;ce++)be+=arguments[ce].length;var de=Array(be),pe=0;for(ce=0;ce<ue;ce++)for(var se=arguments[ce],Le=0,ht=se.length;Le<ht;Le++,pe++)de[pe]=se[Le];return de}var Ee=function(){function be(){}return be.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},be.setAttributes=function(ce,ue){for(var de=0,pe=ue;de<pe.length;de++){var se=pe[de],Le=se[0],ht=se[1];ce.setAttribute(Le,ht)}},be.createRect=function(ce,ue,de){var pe=document.createElementNS("http://www.w3.org/2000/svg","rect");return pe.setAttribute("width",ce.toString()),pe.setAttribute("height",ue.toString()),de&&be.setAttributes(pe,de),pe},be.createLine=function(ce,ue,de,pe,se){var Le=document.createElementNS("http://www.w3.org/2000/svg","line");return Le.setAttribute("x1",ce.toString()),Le.setAttribute("y1",ue.toString()),Le.setAttribute("x2",de.toString()),Le.setAttribute("y2",pe.toString()),se&&be.setAttributes(Le,se),Le},be.createPolygon=function(ce,ue){var de=document.createElementNS("http://www.w3.org/2000/svg","polygon");return de.setAttribute("points",ce),ue&&be.setAttributes(de,ue),de},be.createCircle=function(ce,ue){var de=document.createElementNS("http://www.w3.org/2000/svg","circle");return de.setAttribute("cx",(ce/2).toString()),de.setAttribute("cy",(ce/2).toString()),de.setAttribute("r",ce.toString()),ue&&be.setAttributes(de,ue),de},be.createEllipse=function(ce,ue,de){var pe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return pe.setAttribute("cx",(ce/2).toString()),pe.setAttribute("cy",(ue/2).toString()),pe.setAttribute("rx",(ce/2).toString()),pe.setAttribute("ry",(ue/2).toString()),de&&be.setAttributes(pe,de),pe},be.createGroup=function(ce){var ue=document.createElementNS("http://www.w3.org/2000/svg","g");return ce&&be.setAttributes(ue,ce),ue},be.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},be.createMarker=function(ce,ue,de,pe,se,Le,ht){var _e=document.createElementNS("http://www.w3.org/2000/svg","marker");return be.setAttributes(_e,[["id",ce],["orient",ue],["markerWidth",de.toString()],["markerHeight",pe.toString()],["refX",se.toString()],["refY",Le.toString()]]),_e.appendChild(ht),_e},be.createText=function(ce){var ue=document.createElementNS("http://www.w3.org/2000/svg","text");return ue.setAttribute("x","0"),ue.setAttribute("y","0"),ce&&be.setAttributes(ue,ce),ue},be.createTSpan=function(ce,ue){var de=document.createElementNS("http://www.w3.org/2000/svg","tspan");return de.textContent=ce,ue&&be.setAttributes(de,ue),de},be.createImage=function(ce){var ue=document.createElementNS("http://www.w3.org/2000/svg","image");return ce&&be.setAttributes(ue,ce),ue},be.createPoint=function(ce,ue){var de=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return de.x=ce,de.y=ue,de},be.createPath=function(ce,ue){var de=document.createElementNS("http://www.w3.org/2000/svg","path");return de.setAttribute("d",ce),ue&&be.setAttributes(de,ue),de},be}(),he=function(){function be(){}return be.addKey=function(ce){be.key=ce},Object.defineProperty(be,"isLicensed",{get:function(){return!!be.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(be.key)},enumerable:!1,configurable:!0}),be}(),xe=function(){function be(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return be.prototype.rasterize=function(ce,ue,de){var pe=this;return new Promise(function(se){var Le=de!==void 0?de:document.createElement("canvas");ce===null&&(pe.markersOnly=!0,pe.naturalSize=!1);var ht=document.createElementNS("http://www.w3.org/2000/svg","svg");ht.setAttribute("xmlns","http://www.w3.org/2000/svg"),ht.setAttribute("width",ue.width.baseVal.valueAsString),ht.setAttribute("height",ue.height.baseVal.valueAsString),ht.setAttribute("viewBox","0 0 "+ue.viewBox.baseVal.width.toString()+" "+ue.viewBox.baseVal.height.toString()),ht.innerHTML=ue.innerHTML,pe.naturalSize===!0?(ht.width.baseVal.value=ce.naturalWidth,ht.height.baseVal.value=ce.naturalHeight):pe.width!==void 0&&pe.height!==void 0&&(ht.width.baseVal.value=pe.width,ht.height.baseVal.value=pe.height),Le.width=ht.width.baseVal.value,Le.height=ht.height.baseVal.value;var _e=ht.outerHTML,Ne=Le.getContext("2d");pe.markersOnly!==!0&&Ne.drawImage(ce,0,0,Le.width,Le.height);var St=window.URL,gt=new Image(Le.width,Le.height);gt.setAttribute("crossOrigin","anonymous");var Xe=new Blob([_e],{type:"image/svg+xml"}),wt=St.createObjectURL(Xe);gt.onload=function(){Ne.drawImage(gt,0,0),St.revokeObjectURL(wt);var Xt=Le.toDataURL(pe.imageType,pe.imageQuality);se(Xt)},gt.src=wt})},be}(),we=function(){},Te=function(){function be(ce){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ce+"_"}return Object.defineProperty(be.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(be.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(be.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),be.prototype.addClass=function(ce){return this.styleSheet===void 0&&this.addStyleSheet(),ce.name=""+this.classNamePrefix+ce.localName,this.classes.push(ce),this.styleSheet.sheet.insertRule("."+ce.name+" {"+ce.style+"}",this.styleSheet.sheet.cssRules.length),ce},be.prototype.addRule=function(ce){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ce),this.styleSheet.sheet.insertRule(ce.selector+" {"+ce.style+"}",this.styleSheet.sheet.cssRules.length)},be.prototype.addStyleSheet=function(){var ce;this.styleSheet=document.createElement("style"),((ce=this.styleSheetRoot)!==null&&ce!==void 0?ce:document.head).appendChild(this.styleSheet),this.addRule(new qe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new qe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new qe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Ie("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Ie("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},be.prototype.removeStyleSheet=function(){var ce;this.styleSheet&&(((ce=this.styleSheetRoot)!==null&&ce!==void 0?ce:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},be}(),qe=function(be,ce){this.selector=be,this.style=ce},Ie=function(be,ce){this.localName=be,this.style=ce},Re=function(){function be(ce,ue,de,pe,se){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ce,this.displayMode=ue,this.markerItems=de,this.uiStyleSettings=pe,this.styles=se,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return be.prototype.show=function(ce){var ue=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ce,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 Le=document.createElement("div");Le.className=""+ue.toolbarButtonStyleClass.name,Le.setAttribute("data-type-name",se.typeName),Le.innerHTML=se.icon,Le.addEventListener("click",function(){ue.markerToolbarButtonClicked(Le,se)}),ue.buttons.push(Le),ue.markerButtons.push(Le)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var pe=document.createElement("div");pe.className=this.toolbarBlockStyleClass.name,pe.style.whiteSpace="nowrap",pe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(pe),this.addActionButton(pe,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(pe,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},be.prototype.addButtonClickListener=function(ce){this.buttonClickListeners.push(ce)},be.prototype.removeButtonClickListener=function(ce){this.buttonClickListeners.indexOf(ce)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ce),1)},be.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},be.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ce=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ue=0;ue<this.markerButtons.length;ue++)ue<ce||ue===ce&&this.markerButtons.length-1===ce?this.markerButtonBlock.appendChild(this.markerButtons[ue]):(ue===ce&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ue]))}},be.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")},be.prototype.resetButtonStyles=function(){var ce=this;this.buttons.forEach(function(ue){ue.className=ue.className.replace(ce.uiStyleSettings.toolbarButtonStyleColorsClassName?ce.uiStyleSettings.toolbarButtonStyleColorsClassName:ce.toolbarButtonStyleColorsClass.name,"").trim(),ue.className=ue.className.replace(ce.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ce.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ce.toolbarActiveButtonStyleColorsClass.name,"").trim(),ue.className+=" "+(ce.uiStyleSettings.toolbarButtonStyleColorsClassName?ce.uiStyleSettings.toolbarButtonStyleColorsClassName:ce.toolbarButtonStyleColorsClass.name)})},be.prototype.addActionButton=function(ce,ue,de){var pe=this,se=document.createElement("div");switch(se.className=""+this.toolbarButtonStyleClass.name,se.innerHTML=ue,se.setAttribute("data-action",de),se.addEventListener("click",function(){pe.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}ce.appendChild(se),this.buttons.push(se)},be.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ie("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Ie("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ie("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ie("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Ie("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var ce=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ie("toolbar_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.toolbarButtonStyleColorsClass=this.styles.addClass(new Ie("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ie("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new qe("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new qe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},be.prototype.markerToolbarButtonClicked=function(ce,ue){this.setActiveButton(ce),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(de){return de("marker",ue)}),this.markerButtonOverflowBlock.style.display="none"},be.prototype.actionToolbarButtonClicked=function(ce,ue){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(de){return de("action",ue)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},be.prototype.setActiveButton=function(ce){this.resetButtonStyles(),ce.className=ce.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ce.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},be.prototype.setActiveMarkerButton=function(ce){var ue=this.markerButtons.find(function(de){return de.getAttribute("data-type-name")===ce});ue&&this.setActiveButton(ue)},be.prototype.setCurrentMarker=function(ce){var ue=this;this.currentMarker=ce,this.buttons.filter(function(de){return/delete|notes/.test(de.getAttribute("data-action"))}).forEach(function(de){ue.currentMarker===void 0?(de.style.fillOpacity="0.4",de.style.pointerEvents="none"):(de.style.fillOpacity="1",de.style.pointerEvents="all")})},be}(),lt=function(){function be(ce,ue,de,pe){this.panels=[],this.panelButtons=[],this.markerjsContainer=ce,this.displayMode=ue,this.uiStyleSettings=de,this.styles=pe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return be.prototype.addStyles=function(){var ce;this.toolboxStyleClass=this.styles.addClass(new Ie("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Ie("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ue=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ie("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ie("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ie("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Ie("toolbox-panel-row_colors",`
|
|
|
background-color: `+((ce=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ce!==void 0?ce:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ie("toolbox_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.toolboxButtonStyleColorsClass=this.styles.addClass(new Ie("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ie("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new qe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new qe("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},be.prototype.show=function(ce){var ue;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ce,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ue=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ue!==void 0?ue:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},be.prototype.setPanelButtons=function(ce){var ue,de,pe=this;this.panels=ce,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ue=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ue!==void 0?ue: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 Le;se.uiStyleSettings=pe.uiStyleSettings;var ht=document.createElement("div");ht.className=pe.toolboxButtonStyleClass.name+" "+((Le=pe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Le!==void 0?Le:pe.toolboxButtonStyleColorsClass.name),ht.innerHTML=se.icon,ht.title=se.title,ht.addEventListener("click",function(){pe.panelButtonClick(se)}),pe.panelButtons.push(ht),pe.buttonRow.appendChild(ht)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},be.prototype.panelButtonClick=function(ce){var ue=this,de=-1;if(ce!==this.activePanel){de=this.panels.indexOf(ce),this.panelRow.innerHTML="";var pe=ce.getUi();pe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(pe),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=ce}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ue.displayMode==="inline"?ue.panelRow.style.display="none":ue.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(se,Le){var ht,_e;se.className=ue.toolboxButtonStyleClass.name+" "+(Le===de?""+((ht=ue.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ht!==void 0?ht:ue.toolboxActiveButtonStyleColorsClass.name):""+((_e=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&_e!==void 0?_e:ue.toolboxButtonStyleColorsClass.name))})},be}(),Ue=function(be,ce){this.title=be,this.icon=ce},We=function(be){function ce(ue,de,pe,se){var Le=be.call(this,ue,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 Le.colors=[],Le.addTransparent=!1,Le.colorBoxes=[],Le.colors=de,Le.currentColor=pe,Le.setCurrentColor=Le.setCurrentColor.bind(Le),Le.getColorBox=Le.getColorBox.bind(Le),Le}return ke(ce,be),ce.prototype.getUi=function(){var ue=this,de=document.createElement("div");return de.style.overflow="hidden",de.style.whiteSpace="nowrap",this.colors.forEach(function(pe){var se=ue.getColorBox(pe);de.appendChild(se),ue.colorBoxes.push(se)}),de},ce.prototype.getColorBox=function(ue){var de=this,pe=this.uiStyleSettings.toolbarHeight/4,se=this.uiStyleSettings.toolbarHeight-pe,Le=document.createElement("div");Le.style.display="inline-block",Le.style.boxSizing="content-box",Le.style.width=se-2+"px",Le.style.height=se-2+"px",Le.style.padding="1px",Le.style.marginRight="2px",Le.style.marginBottom="2px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderRadius=(se+2)/2+"px",Le.style.borderColor=ue===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){de.setCurrentColor(ue,Le)});var ht=document.createElement("div");return ht.style.display="inline-block",ht.style.width=se-2+"px",ht.style.height=se-2+"px",ht.style.backgroundColor=ue,ht.style.borderRadius=se/2+"px",ue==="transparent"&&(ht.style.fill=this.uiStyleSettings.toolboxAccentColor,ht.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),Le.appendChild(ht),Le},ce.prototype.setCurrentColor=function(ue,de){var pe=this;this.currentColor=ue,this.colorBoxes.forEach(function(se){se.style.borderColor=se===de?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ue)},ce}(Ue),ct=function(){function be(ce,ue,de){this._state="new",this._isSelected=!1,this._container=ce,this._overlayContainer=ue,this.globalSettings=de,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(be.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),be.prototype.ownsTarget=function(ce){return!1},Object.defineProperty(be.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),be.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},be.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},be.prototype.pointerDown=function(ce,ue){},be.prototype.dblClick=function(ce,ue){},be.prototype.manipulate=function(ce){},be.prototype.pointerUp=function(ce){this.stateChanged()},be.prototype.dispose=function(){},be.prototype.addMarkerVisualToContainer=function(ce){this.container.childNodes.length>0?this.container.insertBefore(ce,this.container.childNodes[0]):this.container.appendChild(ce)},be.prototype.getState=function(){return{typeName:be.typeName,state:this.state,notes:this.notes}},be.prototype.restoreState=function(ce){this._state=ce.state,this.notes=ce.notes},be.prototype.scale=function(ce,ue){},be.prototype.colorChanged=function(ce){this.onColorChanged&&this.onColorChanged(ce),this.stateChanged()},be.prototype.fillColorChanged=function(ce){this.onFillColorChanged&&this.onFillColorChanged(ce),this.stateChanged()},be.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ce=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ce.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ce)&&this.onStateChanged(this)}},be.typeName="MarkerBase",be}(),tt=function(){function be(){this.findGripByVisual=this.findGripByVisual.bind(this)}return be.prototype.findGripByVisual=function(ce){return this.topLeft.ownsTarget(ce)?this.topLeft:this.topCenter.ownsTarget(ce)?this.topCenter:this.topRight.ownsTarget(ce)?this.topRight:this.centerLeft.ownsTarget(ce)?this.centerLeft:this.centerRight.ownsTarget(ce)?this.centerRight:this.bottomLeft.ownsTarget(ce)?this.bottomLeft:this.bottomCenter.ownsTarget(ce)?this.bottomCenter:this.bottomRight.ownsTarget(ce)?this.bottomRight:void 0},be}(),At=function(){function be(){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 be.prototype.ownsTarget=function(ce){return ce===this.visual||ce===this.visual.childNodes[0]||ce===this.visual.childNodes[1]},be}(),ut=function(){function be(){}return be.toITransformMatrix=function(ce){return{a:ce.a,b:ce.b,c:ce.c,d:ce.d,e:ce.e,f:ce.f}},be.toSVGMatrix=function(ce,ue){return ce.a=ue.a,ce.b=ue.b,ce.c=ue.c,ce.d=ue.d,ce.e=ue.e,ce.f=ue.f,ce},be}(),ot=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||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 ke(ce,be),Object.defineProperty(ce.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"visual",{get:function(){return this._visual},set:function(ue){this._visual=ue;var de=Ee.createTransform();this._visual.transform.baseVal.appendItem(de)},enumerable:!1,configurable:!0}),ce.prototype.ownsTarget=function(ue){return!!be.prototype.ownsTarget.call(this,ue)||!!(this.controlGrips.findGripByVisual(ue)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ue))},ce.prototype.pointerDown=function(ue,de){be.prototype.pointerDown.call(this,ue,de),this.state==="new"&&(this.left=ue.x,this.top=ue.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var pe=this.unrotatePoint(ue);if(this.manipulationStartX=pe.x,this.manipulationStartY=pe.y,this.offsetX=pe.x-this.left,this.offsetY=pe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(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 Le=this.container.transform.baseVal.getItem(0);Le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Le,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ce.prototype.pointerUp=function(ue){var de=this.state;be.prototype.pointerUp.call(this,ue),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ue),this._state="select",de==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ce.prototype.moveVisual=function(ue){this.visual.style.transform="translate("+ue.x+"px, "+ue.y+"px)"},ce.prototype.manipulate=function(ue){var de=this.unrotatePoint(ue);this.state==="creating"?this.resize(ue):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(ue)},ce.prototype.resize=function(ue){var de=this.manipulationStartLeft,pe=this.manipulationStartWidth,se=this.manipulationStartTop,Le=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:de=this.manipulationStartLeft+ue.x-this.manipulationStartX,pe=this.manipulationStartWidth+this.manipulationStartLeft-de;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:pe=this.manipulationStartWidth+ue.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:se=this.manipulationStartTop+ue.y-this.manipulationStartY,Le=this.manipulationStartHeight+this.manipulationStartTop-se;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Le=this.manipulationStartHeight+ue.y-this.manipulationStartY}pe>=0?(this.left=de,this.width=pe):(this.left=de+pe,this.width=-pe),Le>=0?(this.top=se,this.height=Le):(this.top=se+Le,this.height=-Le),this.setSize()},ce.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ce.prototype.rotate=function(ue){if(Math.abs(ue.x-this.centerX)>.1){var de=Math.sign(ue.x-this.centerX);this.rotationAngle=180*Math.atan((ue.y-this.centerY)/(ue.x-this.centerX))/Math.PI+90*de,this.applyRotation()}},ce.prototype.applyRotation=function(){var ue=this.container.transform.baseVal.getItem(0);ue.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ue,0)},ce.prototype.rotatePoint=function(ue){if(this.rotationAngle===0)return ue;var de=this.container.getCTM(),pe=Ee.createPoint(ue.x,ue.y);return{x:(pe=pe.matrixTransform(de)).x,y:pe.y}},ce.prototype.unrotatePoint=function(ue){if(this.rotationAngle===0)return ue;var de=this.container.getCTM();de=de.inverse();var pe=Ee.createPoint(ue.x,ue.y);return{x:(pe=pe.matrixTransform(de)).x,y:pe.y}},ce.prototype.select=function(){be.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ce.prototype.deselect=function(){be.prototype.deselect.call(this),this.controlBox.style.display="none"},ce.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup();var ue=Ee.createTransform();ue.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ue),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 tt,this.addControlGrips(),this.controlBox.style.display="none"},ce.prototype.adjustControlBox=function(){var ue=this.controlBox.transform.baseVal.getItem(0);ue.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ue,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()},ce.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()},ce.prototype.createGrip=function(){var ue=new At;return ue.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(ue.visual),ue},ce.prototype.positionGrips=function(){var ue=this.controlGrips.topLeft.GRIP_SIZE,de=-ue/2,pe=de,se=(this.width+this.CB_DISTANCE)/2-ue/2,Le=(this.height+this.CB_DISTANCE)/2-ue/2,ht=this.height+this.CB_DISTANCE-ue/2,_e=this.width+this.CB_DISTANCE-ue/2;this.positionGrip(this.controlGrips.topLeft.visual,de,pe),this.positionGrip(this.controlGrips.topCenter.visual,se,pe),this.positionGrip(this.controlGrips.topRight.visual,_e,pe),this.positionGrip(this.controlGrips.centerLeft.visual,de,Le),this.positionGrip(this.controlGrips.centerRight.visual,_e,Le),this.positionGrip(this.controlGrips.bottomLeft.visual,de,ht),this.positionGrip(this.controlGrips.bottomCenter.visual,se,ht),this.positionGrip(this.controlGrips.bottomRight.visual,_e,ht),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,se,pe-3*this.CB_DISTANCE)},ce.prototype.positionGrip=function(ue,de,pe){var se=ue.transform.baseVal.getItem(0);se.setTranslate(de,pe),ue.transform.baseVal.replaceItem(se,0)},ce.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ce.prototype.showControlBox=function(){this.controlBox.style.display=""},ce.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ut.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ut.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},be.prototype.getState.call(this))},ce.prototype.restoreState=function(ue){be.prototype.restoreState.call(this,ue);var de=ue;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(ut.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,de.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ut.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,de.containerTransformMatrix))},ce.prototype.scale=function(ue,de){be.prototype.scale.call(this,ue,de);var pe=this.rotatePoint({x:this.left,y:this.top}),se=this.unrotatePoint({x:pe.x*ue,y:pe.y*de});this.left=se.x,this.top=se.y,this.width=this.width*ue,this.height=this.height*de,this.adjustControlBox()},ce}(ct),je=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||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 ke(ce,be),ce.prototype.ownsTarget=function(ue){return!(!be.prototype.ownsTarget.call(this,ue)&&ue!==this.visual)},ce.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)},ce.prototype.pointerDown=function(ue,de){be.prototype.pointerDown.call(this,ue,de),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},ce.prototype.manipulate=function(ue){be.prototype.manipulate.call(this,ue)},ce.prototype.resize=function(ue){be.prototype.resize.call(this,ue),this.setSize()},ce.prototype.setSize=function(){be.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ce.prototype.pointerUp=function(ue){be.prototype.pointerUp.call(this,ue),this.setSize()},ce.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},ce.prototype.setFillColor=function(ue){this.fillColor=ue,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ce.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ce.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ce.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},be.prototype.getState.call(this))},ce.prototype.restoreState=function(ue){var de=ue;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.opacity=de.opacity,this.createVisual(),be.prototype.restoreState.call(this,ue),this.setSize()},ce.prototype.scale=function(ue,de){be.prototype.scale.call(this,ue,de),this.setSize()},ce.title="Rectangle marker",ce}(ot),Se=function(be){function ce(ue,de,pe,se){var Le=be.call(this,ue,se||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Le.widths=[],Le.widthBoxes=[],Le.widths=de,Le.currentWidth=pe,Le.setCurrentWidth=Le.setCurrentWidth.bind(Le),Le}return ke(ce,be),ce.prototype.getUi=function(){var ue=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",this.widths.forEach(function(pe){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=pe===ue.currentWidth?ue.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ue.setCurrentWidth(pe,se)}),de.appendChild(se);var Le=document.createElement("div");Le.innerText=pe.toString(),Le.style.marginRight="5px",se.appendChild(Le);var ht=document.createElement("div");ht.style.minHeight="20px",ht.style.flexGrow="2",ht.style.display="flex",ht.style.alignItems="center";var _e=document.createElement("hr");_e.style.minWidth="20px",_e.style.border="0px",_e.style.borderTop=pe+"px solid "+ue.uiStyleSettings.toolboxColor,_e.style.flexGrow="2",ht.appendChild(_e),se.appendChild(ht),ue.widthBoxes.push(se)}),de},ce.prototype.setCurrentWidth=function(ue,de){var pe=this;this.currentWidth=ue,this.widthBoxes.forEach(function(se){se.style.borderColor=se===de?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ce}(Ue),Fe=function(be){function ce(ue,de,pe,se){var Le=be.call(this,ue,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 Le.styles=[],Le.styleBoxes=[],Le.styles=de,Le.currentStyle=pe,Le.setCurrentStyle=Le.setCurrentStyle.bind(Le),Le}return ke(ce,be),ce.prototype.getUi=function(){var ue=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",this.styles.forEach(function(pe){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/ue.styles.length-5+"%",se.style.borderColor=pe===ue.currentStyle?ue.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ue.setCurrentStyle(pe,se)}),de.appendChild(se);var Le=document.createElement("div");Le.style.minHeight="20px",Le.style.flexGrow="2",Le.style.overflow="hidden";var ht=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ue.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(pe!==""?'stroke-dasharray="'+pe+'"':"")+` />
|
|
|
</svg>`;Le.innerHTML=ht,se.appendChild(Le),ue.styleBoxes.push(se)}),de},ce.prototype.setCurrentStyle=function(ue,de){var pe=this;this.currentStyle=ue,this.styleBoxes.forEach(function(se){se.style.borderColor=se===de?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ce}(Ue),Ze=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||this;return se.strokeColor=pe.defaultColor,se.strokeWidth=pe.defaultStrokeWidth,se.strokeDasharray=pe.defaultStrokeDasharray,se.strokePanel=new We("Line color",pe.defaultColorSet,pe.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Se("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Fe("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return ke(ce,be),Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var ue=be.prototype.getState.call(this);return ue.typeName=ce.typeName,ue},ce.typeName="FrameMarker",ce.title="Frame marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ce}(je),xt=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"},Je=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||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 ke(ce,be),ce.prototype.ownsTarget=function(ue){return!!be.prototype.ownsTarget.call(this,ue)||!(!this.grip1.ownsTarget(ue)&&!this.grip2.ownsTarget(ue))},ce.prototype.pointerDown=function(ue,de){be.prototype.pointerDown.call(this,ue,de),this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.state==="new"&&(this.x1=ue.x,this.y1=ue.y,this.x2=ue.x,this.y2=ue.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")},ce.prototype.pointerUp=function(ue){var de=this.state;be.prototype.pointerUp.call(this,ue),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(ue),this._state="select",de==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ce.prototype.adjustVisual=function(){},ce.prototype.manipulate=function(ue){this.state==="creating"?this.resize(ue):this.state==="move"?(this.x1=this.manipulationStartX1+ue.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ue.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ue.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ue.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ue)},ce.prototype.resize=function(ue){switch(this.activeGrip){case this.grip1:this.x1=ue.x,this.y1=ue.y;break;case this.grip2:case void 0:this.x2=ue.x,this.y2=ue.y}this.adjustVisual(),this.adjustControlBox()},ce.prototype.select=function(){be.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ce.prototype.deselect=function(){be.prototype.deselect.call(this),this.controlBox.style.display="none"},ce.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ce.prototype.adjustControlBox=function(){this.positionGrips()},ce.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ce.prototype.createGrip=function(){var ue=new At;return ue.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(ue.visual),ue},ce.prototype.positionGrips=function(){var ue=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ue/2,this.y1-ue/2),this.positionGrip(this.grip2.visual,this.x2-ue/2,this.y2-ue/2)},ce.prototype.positionGrip=function(ue,de,pe){var se=ue.transform.baseVal.getItem(0);se.setTranslate(de,pe),ue.transform.baseVal.replaceItem(se,0)},ce.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},be.prototype.getState.call(this))},ce.prototype.restoreState=function(ue){be.prototype.restoreState.call(this,ue);var de=ue;this.x1=de.x1,this.y1=de.y1,this.x2=de.x2,this.y2=de.y2},ce.prototype.scale=function(ue,de){be.prototype.scale.call(this,ue,de),this.x1=this.x1*ue,this.y1=this.y1*de,this.x2=this.x2*ue,this.y2=this.y2*de,this.adjustVisual(),this.adjustControlBox()},ce}(ct),dt=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||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=pe.defaultColor,se.strokeWidth=pe.defaultStrokeWidth,se.strokeDasharray=pe.defaultStrokeDasharray,se.strokePanel=new We("Line color",pe.defaultColorSet,pe.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Se("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Fe("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return ke(ce,be),ce.prototype.ownsTarget=function(ue){return!(!be.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.selectorLine&&ue!==this.visibleLine)},ce.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)},ce.prototype.pointerDown=function(ue,de){be.prototype.pointerDown.call(this,ue,de),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ce.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()]]))},ce.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.adjustVisual(),this.colorChanged(ue)},ce.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.adjustVisual()},ce.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var ue=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},be.prototype.getState.call(this));return ue.typeName=ce.typeName,ue},ce.prototype.restoreState=function(ue){be.prototype.restoreState.call(this,ue);var de=ue;this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.createVisual(),this.adjustVisual()},ce.typeName="LineMarker",ce.title="Line marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ce}(Je),Be=function(be){function ce(ue,de,pe,se){var Le=be.call(this,ue,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 Le.fonts=[],Le.fontBoxes=[],Le.fonts=de,Le.currentFont=pe,Le.setCurrentFont=Le.setCurrentFont.bind(Le),Le}return ke(ce,be),ce.prototype.getUi=function(){var ue=this,de=document.createElement("div");return de.style.overflow="hidden",de.style.flexGrow="2",this.fonts.forEach(function(pe){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/ue.fonts.length-5+"%",se.style.borderColor=pe===ue.currentFont?ue.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ue.setCurrentFont(pe,se)}),de.appendChild(se);var Le=document.createElement("div");Le.style.display="flex",Le.style.minHeight="20px",Le.style.flexGrow="2",Le.style.fontFamily=pe,Le.style.overflow="hidden";var ht=document.createElement("div");ht.style.whiteSpace="nowrap",ht.style.overflow="hidden",ht.style.textOverflow="ellipsis",ht.innerHTML="The quick brown fox jumps over the lazy dog",Le.appendChild(ht),se.appendChild(Le),ue.fontBoxes.push(se)}),de},ce.prototype.setCurrentFont=function(ue,de){var pe=this;this.currentFont=ue,this.fontBoxes.forEach(function(se){se.style.borderColor=se===de?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ce}(Ue),kt=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||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=pe.defaultColor,se.fontFamily=pe.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 We("Color",pe.defaultColorSet,pe.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.fontFamilyPanel=new Be("Font",pe.defaultFontFamilies,pe.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se}return ke(ce,be),ce.prototype.ownsTarget=function(ue){if(be.prototype.ownsTarget.call(this,ue)||ue===this.visual||ue===this.textElement||ue===this.bgRectangle)return!0;var de=!1;return this.textElement.childNodes.forEach(function(pe){pe===ue&&(de=!0)}),de},ce.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()},ce.prototype.pointerDown=function(ue,de){be.prototype.pointerDown.call(this,ue,de),this.isMoved=!1,this.pointerDownPoint=ue,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},ce.prototype.renderText=function(){var ue=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){ue.textElement.appendChild(Ee.createTSpan(de.trim()===""?" ":de.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ce.prototype.getTextScale=function(){var ue=this.textElement.getBBox(),de=1;if(ue.width>0&&ue.height>0){var pe=(1*this.width-this.width*this.padding*2/100)/ue.width,se=(1*this.height-this.height*this.padding*2/100)/ue.height;de=Math.min(pe,se)}return de},ce.prototype.getTextPosition=function(ue){var de=this.textElement.getBBox(),pe=0,se=0;return de.width>0&&de.height>0&&(pe=(this.width-de.width*ue)/2,se=this.height/2-de.height*ue/2),{x:pe,y:se}},ce.prototype.sizeText=function(){var ue=this.textElement.getBBox(),de=this.getTextScale(),pe=this.getTextPosition(de);pe.y-=ue.y*de,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+pe.x+"px, "+pe.y+"px) scale("+de+", "+de+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(pe.x,pe.y),this.textElement.transform.baseVal.getItem(1).setScale(de,de))},ce.prototype.manipulate=function(ue){be.prototype.manipulate.call(this,ue),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ue.x-this.pointerDownPoint.x)>5||Math.abs(ue.y-this.pointerDownPoint.y)>5)},ce.prototype.resize=function(ue){be.prototype.resize.call(this,ue),this.isMoved=!0,this.setSize(),this.sizeText()},ce.prototype.setSize=function(){be.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()]]))},ce.prototype.pointerUp=function(ue){var de=this.state;de==="creating"&&(this._suppressMarkerCreateEvent=!0),be.prototype.pointerUp.call(this,ue),this.setSize(),(de==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ce.prototype.showTextEditor=function(){var ue=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(ue.textEditor.style.fontSize);ue.textEditor.clientWidth>=Number.parseInt(ue.textEditor.style.maxWidth)&&de>.9;)de-=.1,ue.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 pe=de.clipboardData.getData("text"),se=window.getSelection();if(!se.rangeCount)return!1;se.deleteFromDocument(),se.getRangeAt(0).insertNode(document.createTextNode(pe)),de.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ue.textEditDivClicked(ue.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ce.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ue=this.getTextScale(),de=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),pe=this.textElement.getBBox(),se={x:pe.width*ue,y:pe.height*ue};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*ue,12)+"px",this.textElement.style.display="none"}},ce.prototype.textEditDivClicked=function(ue){this.text=ue.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ce.prototype.select=function(){be.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ce.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),be.prototype.deselect.call(this)},ce.prototype.dblClick=function(ue,de){be.prototype.dblClick.call(this,ue,de),this.showTextEditor()},ce.prototype.setColor=function(ue){this.textElement&&Ee.setAttributes(this.textElement,[["fill",ue]]),this.color=ue,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ue)},ce.prototype.setFont=function(ue){this.textElement&&Ee.setAttributes(this.textElement,[["font-family",ue]]),this.fontFamily=ue,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ce.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ce.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var ue=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},be.prototype.getState.call(this));return ue.typeName=ce.typeName,ue},ce.prototype.restoreState=function(ue){var de=ue;this.color=de.color,this.fontFamily=de.fontFamily,this.padding=de.padding,this.text=de.text,this.createVisual(),be.prototype.restoreState.call(this,ue),this.setSize()},ce.prototype.scale=function(ue,de){be.prototype.scale.call(this,ue,de),this.setSize(),this.sizeText(),this.positionTextEditor()},ce.typeName="TextMarker",ce.title="Text marker",ce.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>',ce}(ot),He=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||this;return se.color="transparent",se.lineWidth=3,se.drawing=!1,se.pixelRatio=1,se.color=pe.defaultColor,se.lineWidth=pe.defaultStrokeWidth,se.pixelRatio=pe.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 We("Color",pe.defaultColorSet,pe.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.lineWidthPanel=new Se("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),se.lineWidthPanel.onWidthChanged=se.setLineWidth,se}return ke(ce,be),ce.prototype.ownsTarget=function(ue){return!(!be.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.drawingImage)},ce.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.drawingImage=Ee.createImage(),this.visual.appendChild(this.drawingImage);var ue=Ee.createTransform();this.visual.transform.baseVal.appendItem(ue),this.addMarkerVisualToContainer(this.visual)},ce.prototype.pointerDown=function(ue,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(ue.x,ue.y),this.drawing=!0):be.prototype.pointerDown.call(this,ue,de)},ce.prototype.manipulate=function(ue){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ue.x,ue.y),this.canvasContext.stroke()):be.prototype.manipulate.call(this,ue)},ce.prototype.resize=function(ue){be.prototype.resize.call(this,ue),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ce.prototype.pointerUp=function(ue){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):be.prototype.pointerUp.call(this,ue)},ce.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)},ce.prototype.select=function(){this.state==="creating"&&this.finishCreation(),be.prototype.select.call(this)},ce.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),be.prototype.deselect.call(this)},ce.prototype.finishCreation=function(){for(var ue=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),de=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],pe=de[0],se=de[1],Le=de[2],ht=de[3],_e=!1,Ne=0;Ne<this.canvasElement.height;Ne++)for(var St=0;St<this.canvasElement.width;St++)ue.data[Ne*this.canvasElement.width*4+4*St+3]>0&&(_e=!0,Ne<se&&(se=Ne),St<pe&&(pe=St),Ne>ht&&(ht=Ne),St>Le&&(Le=St));if(_e){this.left=pe/this.pixelRatio,this.top=se/this.pixelRatio,this.width=(Le-pe)/this.pixelRatio,this.height=(ht-se)/this.pixelRatio;var gt=document.createElement("canvas");gt.width=Le-pe,gt.height=ht-se,gt.getContext("2d").putImageData(this.canvasContext.getImageData(pe,se,Le-pe,ht-se),0,0),this.drawingImgUrl=gt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ce.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})},ce.prototype.setColor=function(ue){this.color=ue,this.colorChanged(ue)},ce.prototype.setLineWidth=function(ue){this.lineWidth=ue},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var ue=Object.assign({drawingImgUrl:this.drawingImgUrl},be.prototype.getState.call(this));return ue.typeName=ce.typeName,ue},ce.prototype.restoreState=function(ue){this.createVisual(),be.prototype.restoreState.call(this,ue),this.drawingImgUrl=ue.drawingImgUrl,this.setDrawingImage()},ce.prototype.scale=function(ue,de){be.prototype.scale.call(this,ue,de),this.setDrawingImage()},ce.typeName="FreehandMarker",ce.title="Freehand marker",ce.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>',ce}(ot),Tt=function(be){function ce(ue,de,pe){var se=be.call(this,ue,pe||'<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 ke(ce,be),ce.prototype.getUi=function(){var ue=this,de=document.createElement("div");de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2";for(var pe=function(ht){var _e="both";switch(ht){case 0:_e="both";break;case 1:_e="start";break;case 2:_e="end";break;case 3:_e="none"}var Ne=document.createElement("div");if(Ne.style.display="flex",Ne.style.flexGrow="2",Ne.style.alignItems="center",Ne.style.justifyContent="space-between",Ne.style.padding="5px",Ne.style.borderWidth="2px",Ne.style.borderStyle="solid",Ne.style.borderColor=_e===se.currentType?se.uiStyleSettings.toolboxAccentColor:"transparent",Ne.addEventListener("click",function(){ue.setCurrentType(_e,Ne)}),de.appendChild(Ne),_e==="both"||_e==="start"){var St=document.createElement("div");St.style.display="flex",St.style.alignItems="center",St.style.minHeight="20px",St.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>`,St.style.marginLeft="5px",Ne.appendChild(St)}var gt=document.createElement("div");gt.style.display="flex",gt.style.alignItems="center",gt.style.minHeight="20px",gt.style.flexGrow="2";var Xe=document.createElement("hr");if(Xe.style.minWidth="20px",Xe.style.border="0px",Xe.style.borderTop="3px solid "+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee"),Xe.style.flexGrow="2",gt.appendChild(Xe),Ne.appendChild(gt),_e==="both"||_e==="end"){var wt=document.createElement("div");wt.style.display="flex",wt.style.alignItems="center",wt.style.minHeight="20px",wt.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>`,wt.style.marginRight="5px",Ne.appendChild(wt)}se.typeBoxes.push(Ne)},se=this,Le=0;Le<4;Le++)pe(Le);return de},ce.prototype.setCurrentType=function(ue,de){var pe=this;this.currentType=ue,this.typeBoxes.forEach(function(se){se.style.borderColor=se===de?pe.uiStyleSettings!==void 0?pe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ce}(Ue),mt=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||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 Tt("Arrow type","end"),se.arrowTypePanel.onArrowTypeChanged=se.setArrowType,se}return ke(ce,be),ce.prototype.ownsTarget=function(ue){return!(!be.prototype.ownsTarget.call(this,ue)&&ue!==this.arrow1&&ue!==this.arrow2)},ce.prototype.getArrowPoints=function(ue,de){var pe=this.arrowBaseWidth+2*this.strokeWidth,se=this.arrowBaseHeight+2*this.strokeWidth;return ue-pe/2+","+(de+se/2)+" "+ue+","+(de-se/2)+" "+(ue+pe/2)+","+(de+se/2)},ce.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)},ce.prototype.pointerDown=function(ue,de){be.prototype.pointerDown.call(this,ue,de),this.state==="creating"&&this.createTips()},ce.prototype.adjustVisual=function(){if(be.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 ue=0;Math.abs(this.x1-this.x2)>.1&&(ue=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(ue,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(de,0);var pe=this.arrow2.transform.baseVal.getItem(0);pe.setRotate(ue+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(pe,0)}},ce.prototype.setArrowType=function(ue){this.arrowType=ue,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var ue=Object.assign({arrowType:this.arrowType},be.prototype.getState.call(this));return ue.typeName=ce.typeName,ue},ce.prototype.restoreState=function(ue){be.prototype.restoreState.call(this,ue);var de=ue;this.arrowType=de.arrowType,this.createTips(),this.adjustVisual()},ce.typeName="ArrowMarker",ce.title="Arrow marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ce}(dt),Et=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||this;return se.fillColor=pe.defaultFillColor,se.strokeWidth=0,se.fillPanel=new We("Color",pe.defaultColorSet,pe.defaultFillColor),se.fillPanel.onColorChanged=se.setFillColor,se}return ke(ce,be),Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var ue=be.prototype.getState.call(this);return ue.typeName=ce.typeName,ue},ce.typeName="CoverMarker",ce.title="Cover marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ce}(je),zt=function(be){function ce(ue,de,pe,se){var Le=be.call(this,ue,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 Le.opacities=[],Le.opacityBoxes=[],Le.opacities=de,Le.currentOpacity=pe,Le.setCurrentOpacity=Le.setCurrentOpacity.bind(Le),Le}return ke(ce,be),ce.prototype.getUi=function(){var ue=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(pe){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=pe===ue.currentOpacity?ue.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ue.setCurrentOpacity(pe,se)}),de.appendChild(se);var Le=document.createElement("div");Le.innerText=100*pe+"%",se.appendChild(Le),ue.opacityBoxes.push(se)}),de},ce.prototype.setCurrentOpacity=function(ue,de){var pe=this;this.currentOpacity=ue,this.opacityBoxes.forEach(function(se){se.style.borderColor=se===de?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ce}(Ue),Bt=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||this;return se.setOpacity=se.setOpacity.bind(se),se.fillColor=pe.defaultHighlightColor,se.strokeWidth=0,se.opacity=pe.defaultHighlightOpacity,se.fillPanel=new We("Color",pe.defaultColorSet,se.fillColor),se.fillPanel.onColorChanged=se.setFillColor,se.opacityPanel=new zt("Opacity",pe.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return ke(ce,be),ce.prototype.setOpacity=function(ue){this.opacity=ue,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var ue=be.prototype.getState.call(this);return ue.typeName=ce.typeName,ue},ce.typeName="HighlightMarker",ce.title="Highlight marker",ce.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>',ce}(Et),De='<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>',ge='<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>',at=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||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=pe.defaultStrokeColor,se.bgColor=pe.defaultFillColor,se.fontFamily=pe.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 We("Text color",pe.defaultColorSet,se.color,De),se.colorPanel.onColorChanged=se.setColor,se.bgColorPanel=new We("Fill color",pe.defaultColorSet,se.bgColor,ge),se.bgColorPanel.onColorChanged=se.setBgColor,se.fontFamilyPanel=new Be("Font",pe.defaultFontFamilies,pe.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.tipGrip=new At,se.tipGrip.visual.transform.baseVal.appendItem(Ee.createTransform()),se.controlBox.appendChild(se.tipGrip.visual),se}return ke(ce,be),ce.prototype.ownsTarget=function(ue){return be.prototype.ownsTarget.call(this,ue)||this.tipGrip.ownsTarget(ue)||this.tip===ue},ce.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)},ce.prototype.pointerDown=function(ue,de){this.state==="new"&&be.prototype.pointerDown.call(this,ue,de),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(de)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):be.prototype.pointerDown.call(this,ue,de)},ce.prototype.pointerUp=function(ue){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,be.prototype.pointerUp.call(this,ue);else{var de=this.state==="creating";be.prototype.pointerUp.call(this,ue),this.setTipPoints(de),this.positionTip()}},ce.prototype.manipulate=function(ue){if(this.tipMoving){var de=this.unrotatePoint(ue);this.tipPosition={x:de.x-this.manipulationStartLeft,y:de.y-this.manipulationStartTop},this.positionTip()}else be.prototype.manipulate.call(this,ue)},ce.prototype.setBgColor=function(ue){this.bgRectangle&&this.tip&&(Ee.setAttributes(this.bgRectangle,[["fill",ue]]),Ee.setAttributes(this.tip,[["fill",ue]])),this.bgColor=ue,this.fillColorChanged(ue)},ce.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},ce.prototype.setTipPoints=function(ue){ue===void 0&&(ue=!1);var de=Math.min(this.height/2,15),pe=this.height/5;ue&&(this.tipPosition={x:de+pe/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))?(pe=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:de,y:0},this.tipBase2Position={x:de+pe,y:0}):(this.tipBase1Position={x:0,y:de},this.tipBase2Position={x:0,y:de+pe}):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))?(pe=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-de-pe,y:0},this.tipBase2Position={x:this.width-de,y:0}):(this.tipBase1Position={x:this.width,y:de},this.tipBase2Position={x:this.width,y:de+pe}):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))?(pe=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-de-pe,y:this.height},this.tipBase2Position={x:this.width-de,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-de-pe},this.tipBase2Position={x:this.width,y:this.height-de}):se<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(pe=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:de,y:this.height},this.tipBase2Position={x:de+pe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-de},this.tipBase2Position={x:0,y:this.height-de-pe})},ce.prototype.resize=function(ue){be.prototype.resize.call(this,ue),this.positionTip()},ce.prototype.positionTip=function(){Ee.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ue=this.tipGrip.visual.transform.baseVal.getItem(0);ue.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ue,0)},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ce.prototype.select=function(){this.positionTip(),be.prototype.select.call(this)},ce.prototype.getState=function(){var ue=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},be.prototype.getState.call(this));return ue.typeName=ce.typeName,ue},ce.prototype.restoreState=function(ue){var de=ue;this.bgColor=de.bgColor,this.tipPosition=de.tipPosition,be.prototype.restoreState.call(this,ue),this.createTip(),this.setTipPoints()},ce.prototype.scale=function(ue,de){be.prototype.scale.call(this,ue,de),this.tipPosition={x:this.tipPosition.x*ue,y:this.tipPosition.y*de},this.positionTip()},ce.typeName="CalloutMarker",ce.title="Callout marker",ce.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>',ce}(kt),Ct=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.opacity=1,se.strokeColor=pe.defaultColor,se.strokeWidth=pe.defaultStrokeWidth,se.strokeDasharray=pe.defaultStrokeDasharray,se.fillColor=pe.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 We("Line color",ye(pe.defaultColorSet,["transparent"]),pe.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.fillPanel=new We("Fill color",ye(pe.defaultColorSet,["transparent"]),se.fillColor,ge),se.fillPanel.onColorChanged=se.setFillColor,se.strokeWidthPanel=new Se("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Fe("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se.opacityPanel=new zt("Opacity",pe.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return ke(ce,be),ce.prototype.ownsTarget=function(ue){return!(!be.prototype.ownsTarget.call(this,ue)&&ue!==this.visual)},ce.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)},ce.prototype.pointerDown=function(ue,de){be.prototype.pointerDown.call(this,ue,de),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},ce.prototype.manipulate=function(ue){be.prototype.manipulate.call(this,ue)},ce.prototype.resize=function(ue){be.prototype.resize.call(this,ue),this.setSize()},ce.prototype.setSize=function(){be.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()]])},ce.prototype.pointerUp=function(ue){be.prototype.pointerUp.call(this,ue),this.setSize()},ce.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},ce.prototype.setFillColor=function(ue){this.fillColor=ue,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ue),this.stateChanged()},ce.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ce.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ce.prototype.setOpacity=function(ue){this.opacity=ue,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var ue=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},be.prototype.getState.call(this));return ue.typeName=ce.typeName,ue},ce.prototype.restoreState=function(ue){var de=ue;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.opacity=de.opacity,this.createVisual(),be.prototype.restoreState.call(this,ue),this.setSize()},ce.prototype.scale=function(ue,de){be.prototype.scale.call(this,ue,de),this.setSize()},ce.typeName="EllipseMarker",ce.title="Ellipse marker",ce.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>',ce}(ot),It=function(be){function ce(ue,de,pe){return be.call(this,ue,de,pe)||this}return ke(ce,be),Object.defineProperty(ce.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ce.prototype.ownsTarget=function(ue){return!(!be.prototype.ownsTarget.call(this,ue)&&ue!==this.tip1&&ue!==this.tip2)},ce.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)},ce.prototype.pointerDown=function(ue,de){be.prototype.pointerDown.call(this,ue,de),this.state==="creating"&&this.createTips()},ce.prototype.adjustVisual=function(){if(be.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 ue=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(ue,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(de,0);var pe=this.tip2.transform.baseVal.getItem(0);pe.setRotate(ue+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(pe,0)}},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var ue=be.prototype.getState.call(this);return ue.typeName=ce.typeName,ue},ce.prototype.restoreState=function(ue){be.prototype.restoreState.call(this,ue),this.createTips(),this.adjustVisual()},ce.typeName="MeasurementMarker",ce.title="Measurement marker",ce.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>',ce}(dt),Qe=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||this;return se.strokePanel.colors=pe.defaultColorSet,se.fillColor="transparent",se}return ke(ce,be),Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var ue=be.prototype.getState.call(this);return ue.typeName=ce.typeName,ue},ce.typeName="EllipseFrameMarker",ce.title="Ellipse frame marker",ce.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>',ce}(Ct),et=function(){function be(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(be.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),be.prototype.addUndoStep=function(ce){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ce)||(this.undoStack.push(ce),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ce)&&this.redoStack.splice(0,this.redoStack.length))},be.prototype.replaceLastUndoStep=function(ce){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ce)},be.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},be.prototype.undo=function(){if(this.undoStack.length>1){var ce=this.undoStack.pop();return ce!==void 0&&this.redoStack.push(ce),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},be.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},be}(),Lt=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||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=pe.defaultColor,se.strokeWidth=pe.defaultStrokeWidth,se.strokeDasharray=pe.defaultStrokeDasharray,se.strokePanel=new We("Line color",pe.defaultColorSet,pe.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Se("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Fe("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return ke(ce,be),ce.prototype.ownsTarget=function(ue){return!(!be.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.selectorCurve&&ue!==this.visibleCurve&&!this.curveGrip.ownsTarget(ue))},ce.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ce.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)},ce.prototype.pointerDown=function(ue,de){be.prototype.pointerDown.call(this,ue,de),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ue.x,this.curveY=ue.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(de)&&(this.activeGrip=this.curveGrip,this._state="resize")},ce.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()]]))},ce.prototype.setupControlBox=function(){be.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)},ce.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,be.prototype.addControlGrips.call(this)},ce.prototype.positionGrips=function(){be.prototype.positionGrips.call(this);var ue=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ue/2,this.curveY-ue/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()))},ce.prototype.manipulate=function(ue){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ue.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ue.y-this.manipulationStartY),be.prototype.manipulate.call(this,ue)},ce.prototype.resize=function(ue){this.activeGrip===this.curveGrip&&(this.curveX=ue.x,this.curveY=ue.y),be.prototype.resize.call(this,ue),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ce.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.adjustVisual(),this.colorChanged(ue)},ce.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.adjustVisual()},ce.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.adjustVisual()},ce.prototype.scale=function(ue,de){this.curveX=this.curveX*ue,this.curveY=this.curveY*de,be.prototype.scale.call(this,ue,de)},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var ue=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},be.prototype.getState.call(this));return ue.typeName=ce.typeName,ue},ce.prototype.restoreState=function(ue){be.prototype.restoreState.call(this,ue);var de=ue;this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.curveX=de.curveX,this.curveY=de.curveY,this.createVisual(),this.adjustVisual()},ce.typeName="CurveMarker",ce.title="Curve marker",ce.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>',ce}(Je),dn=function(be){function ce(ue,de,pe){var se=be.call(this,ue,de,pe)||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=pe.defaultColor,se.strokeWidth=pe.defaultStrokeWidth,se.strokeDasharray=pe.defaultStrokeDasharray,se.fillColor=pe.defaultFillColor,se.textColor=pe.defaultStrokeColor,se.fontFamily=pe.defaultFontFamily,se.fontSize=pe.defaultCaptionFontSize,se.captionText=pe.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 We("Line color",ye(pe.defaultColorSet,["transparent"]),se.strokeColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.fillPanel=new We("Fill color",ye(pe.defaultColorSet,["transparent"]),se.fillColor,ge),se.fillPanel.onColorChanged=se.setFillColor,se.strokeWidthPanel=new Se("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Fe("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se.fontFamilyPanel=new Be("Font",pe.defaultFontFamilies,pe.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.textColorPanel=new We("Text color",pe.defaultColorSet,se.textColor,De),se.textColorPanel.onColorChanged=se.setTextColor,se}return ke(ce,be),ce.prototype.ownsTarget=function(ue){return!(!be.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.frame&&ue!==this.captionBg&&ue!==this.captionElement)},ce.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()},ce.prototype.setCaptionText=function(ue){this.captionText=ue,this.captionElement.textContent=this.captionText,this.sizeCaption()},ce.prototype.pointerDown=function(ue,de){be.prototype.pointerDown.call(this,ue,de),this.isMoved=!1,this.pointerDownPoint=ue,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},ce.prototype.manipulate=function(ue){be.prototype.manipulate.call(this,ue),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ue.x-this.pointerDownPoint.x)>5||Math.abs(ue.y-this.pointerDownPoint.y)>5)},ce.prototype.resize=function(ue){be.prototype.resize.call(this,ue),this.setSize()},ce.prototype.sizeCaption=function(){var ue=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ue.width+2*this.PADDING,this.captionBoxHeight=ue.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')"]])},ce.prototype.showTextEditor=function(){var ue=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"&&ue.finishTextEditing(ue.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(de){de.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ue.finishTextEditing(ue.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ue.finishTextEditing(ue.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ce.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"))},ce.prototype.finishTextEditing=function(ue){this.setCaptionText(ue.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ce.prototype.setFont=function(ue){this.captionElement&&Ee.setAttributes(this.captionElement,[["font-family",ue]]),this.fontFamily=ue,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ce.prototype.setTextColor=function(ue){this.captionElement&&Ee.setAttributes(this.captionElement,[["fill",ue]]),this.textColor=ue,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ce.prototype.setSize=function(){be.prototype.setSize.call(this),Ee.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ce.prototype.pointerUp=function(ue){be.prototype.pointerUp.call(this,ue),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ce.prototype.dblClick=function(ue,de){be.prototype.dblClick.call(this,ue,de),this.showTextEditor()},ce.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.frame&&Ee.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},ce.prototype.setFillColor=function(ue){this.fillColor=ue,this.captionBg&&Ee.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ue),this.stateChanged()},ce.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.frame&&Ee.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ce.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.frame&&Ee.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var ue=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},be.prototype.getState.call(this));return ue.typeName=this.typeName,ue},ce.prototype.restoreState=function(ue){var de=ue;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(),be.prototype.restoreState.call(this,ue),this.setSize()},ce.prototype.scale=function(ue,de){be.prototype.scale.call(this,ue,de),this.setSize()},ce.typeName="CaptionFrameMarker",ce.title="Caption frame marker",ce.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>',ce}(ot),_t=function(){function be(ce,ue){ue===void 0&&(ue=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ce,this.cancelable=ue}return Object.defineProperty(be.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),be.prototype.preventDefault=function(){this._defaultPrevented=!0},be}(),tn=function(be){function ce(ue,de,pe){var se=be.call(this,ue,!1)||this;return se.dataUrl=de,se.state=pe,se}return ke(ce,be),ce}(_t),en=function(be){function ce(ue,de,pe){pe===void 0&&(pe=!1);var se=be.call(this,ue,pe)||this;return se.marker=de,se}return ke(ce,be),ce}(_t),Jt=function(){function be(){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 be.prototype.addEventListener=function(ce,ue){this[ce].push(ue)},be.prototype.removeEventListener=function(ce,ue){var de=this[ce].indexOf(ue);de>-1&&this[ce].splice(de,1)},be}(),Vt=function(){function be(ce){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new xt,this._isOpen=!1,this.undoRedoManager=new et,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Jt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=be.instanceCounter++,this.styles=new Te(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ce,this.targetRoot=document.body,this.width=ce.clientWidth,this.height=ce.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(be.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ze,He,mt,kt,Qe,Ct,Bt,at,It,Et,dt,Lt,dn]},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ze,He,mt,kt,Ct,Bt,at]},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ze,He,mt,kt,Bt]},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ce){var ue=this;this._availableMarkerTypes.splice(0),ce.forEach(function(de){if(typeof de=="string"){var pe=ue.ALL_MARKER_TYPES.find(function(se){return se.typeName===de});pe!==void 0&&ue._availableMarkerTypes.push(pe)}else ue._availableMarkerTypes.push(de)})},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ce){this._zoomLevel=ce,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(be.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),be.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),he.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},be.prototype.show=function(){var ce=this;this.styles.styleSheetRoot===void 0&&we.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=we.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ue){return ue(new _t(ce))})},be.prototype.render=function(){return Ce(this,void 0,void 0,function(){var ce;return Ye(this,function(ue){switch(ue.label){case 0:return this.setCurrentMarker(),(ce=new xe).naturalSize=this.renderAtNaturalSize,ce.imageType=this.renderImageType,ce.imageQuality=this.renderImageQuality,ce.markersOnly=this.renderMarkersOnly,ce.width=this.renderWidth,ce.height=this.renderHeight,[4,ce.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ue.sent(),[4,ce.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ue.sent()]}})})},be.prototype.close=function(ce){var ue=this;if(ce===void 0&&(ce=!1),this.isOpen){var de=!1;ce||this.eventListeners.beforeclose.forEach(function(pe){var se=new _t(ue,!0);pe(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(pe){return pe(new _t(ue))}),this.detachEvents(),this._isOpen=!1)}},be.prototype.addMarkersToToolbar=function(){for(var ce,ue=[],de=0;de<arguments.length;de++)ue[de]=arguments[de];(ce=this._availableMarkerTypes).push.apply(ce,ue)},be.prototype.addRenderEventListener=function(ce){this.addEventListener("render",function(ue){ce(ue.dataUrl,ue.state)})},be.prototype.removeRenderEventListener=function(ce){},be.prototype.addCloseEventListener=function(ce){this.addEventListener("close",function(){ce()})},be.prototype.removeCloseEventListener=function(ce){},be.prototype.setupResizeObserver=function(){var ce=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ce.resize(ce.target.clientWidth,ce.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ce.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},be.prototype.onPopupTargetResize=function(){var ce=1*this.target.clientWidth/this.target.clientHeight,ue=this.editorCanvas.clientWidth/ce>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ce:this.editorCanvas.clientWidth,de=ue<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ce;this.resize(ue,de)},be.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},be.prototype.resize=function(ce,ue){this._isResizing=!0;var de=ce/this.imageWidth,pe=ue/this.imageHeight;this.imageWidth=Math.round(ce),this.imageHeight=Math.round(ue),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,pe),this._isResizing=!1},be.prototype.scaleMarkers=function(ce,ue){var de,pe=this;this._currentMarker&&this._currentMarker instanceof kt?this._currentMarker.scale(ce,ue):(de=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(se){se!==pe._currentMarker&&se.scale(ce,ue)}),de!==void 0&&this.setCurrentMarker(de)},be.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"},be.prototype.setTopLeft=function(){var ce=this.editingTarget.getBoundingClientRect(),ue=this.editorCanvas.getBoundingClientRect();this.left=ce.left-ue.left,this.top=ce.top-ue.top},be.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)},be.prototype.addDefs=function(){for(var ce,ue=[],de=0;de<arguments.length;de++)ue[de]=arguments[de];this.defs=Ee.createDefs(),this.addDefsToImage(),(ce=this.defs).append.apply(ce,ue)},be.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},be.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)},be.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},be.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},be.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)},be.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},be.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)},be.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 ce=document.createElement("a");ce.href="https://markerjs.com/",ce.target="_blank",ce.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>',ce.title="Powered by marker.js",ce.style.display="grid",ce.style.alignItems="center",ce.style.justifyItems="center",ce.style.padding="3px",ce.style.width="20px",ce.style.height="20px",this.logoUI.appendChild(ce),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},be.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")},be.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"},be.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},be.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 ce=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=ce+"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 Re(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 lt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},be.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},be.prototype.removeMarker=function(ce){this.markerImage.removeChild(ce.container),this.markers.indexOf(ce)>-1&&this.markers.splice(this.markers.indexOf(ce),1),ce.dispose()},be.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())},be.prototype.toolbarButtonClicked=function(ce,ue){if(ce==="marker"&&ue!==void 0)this.createNewMarker(ue);else if(ce==="action")switch(ue){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()}},be.prototype.deleteSelectedMarker=function(){var ce=this;if(this._currentMarker!==void 0){var ue=!1;if(this.eventListeners.markerbeforedelete.forEach(function(pe){var se=new en(ce,ce._currentMarker,!0);pe(se),se.defaultPrevented&&(ue=!0)}),!ue){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(pe){return pe(new en(ce,de))})}}},be.prototype.clear=function(){var ce=this,ue=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Le){var ht=new en(ce,void 0,!0);Le(ht),ht.defaultPrevented&&(ue=!0)}),!ue)){this.setCurrentMarker();for(var de=function(Le){var ht=pe.markers[Le];pe.setCurrentMarker(pe.markers[Le]),pe._currentMarker.dispose(),pe.markerImage.removeChild(pe._currentMarker.container),pe.markers.splice(pe.markers.indexOf(pe._currentMarker),1),pe.eventListeners.markerdelete.forEach(function(_e){return _e(new en(ce,ht))})},pe=this,se=this.markers.length-1;se>=0;se--)de(se);this.addUndoStep()}},Object.defineProperty(be.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),be.prototype.showNotesEditor=function(){var ce;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=(ce=this._currentMarker.notes)!==null&&ce!==void 0?ce:"",this.overlayContainer.appendChild(this.notesArea))},be.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)},be.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},be.prototype.addUndoStep=function(){var ce=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ue=this.getState(),de=this.undoRedoManager.getLastUndoStep();if(!de||de.width===ue.width&&de.height===ue.height){var pe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ue),pe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(se){return se(new _t(ce))})}else this.undoRedoManager.replaceLastUndoStep(ue),this.eventListeners.statechange.forEach(function(se){return se(new _t(ce))})}},be.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},be.prototype.undoStep=function(){var ce=this,ue=this.undoRedoManager.undo();ue!==void 0&&(this.restoreState(ue),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(de){return de(new _t(ce))}))},be.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},be.prototype.redoStep=function(){var ce=this,ue=this.undoRedoManager.redo();ue!==void 0&&(this.restoreState(ue),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(de){return de(new _t(ce))}))},be.prototype.stepZoom=function(){var ce=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ce<this.zoomSteps.length-1?this.zoomSteps[ce+1]:this.zoomSteps[0]},be.prototype.panTo=function(ce){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ce.x,top:this.prevPanPoint.y-ce.y}),this.prevPanPoint=ce},be.prototype.startRenderAndClose=function(){return Ce(this,void 0,void 0,function(){var ce,ue,de=this;return Ye(this,function(pe){switch(pe.label){case 0:return[4,this.render()];case 1:return ce=pe.sent(),ue=this.getState(),this.eventListeners.render.forEach(function(se){return se(new tn(de,ce,ue))}),this.close(!0),[2]}})})},be.prototype.getState=function(ce){ce===!0&&this.setCurrentMarker();var ue={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(de){return ue.markers.push(de.getState())}),ue},be.prototype.restoreState=function(ce){var ue=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ce.markers.forEach(function(de){var pe=ue._availableMarkerTypes.find(function(Le){return Le.typeName===de.typeName});if(pe!==void 0){var se=ue.addNewMarker(pe);se.restoreState(de),ue.markers.push(se)}}),ce.width&&ce.height&&(ce.width!==this.imageWidth||ce.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ce.width,this.imageHeight/ce.height),this.eventListeners.restorestate.forEach(function(de){return de(new _t(ue))})},be.prototype.addNewMarker=function(ce){var ue=Ee.createGroup();return this.markerImage.appendChild(ue),new ce(ue,this.overlayContainer,this.settings)},be.prototype.createNewMarker=function(ce){var ue,de=this;(ue=typeof ce=="string"?this._availableMarkerTypes.find(function(pe){return pe.typeName===ce}):ce)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ue),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(ue.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(pe){return pe(new en(de,de._currentMarker))}))},be.prototype.markerCreated=function(ce){var ue=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ce),this.setCurrentMarker(ce),ce instanceof He&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(He):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(de){return de(new en(ue,ue._currentMarker))})},be.prototype.colorChanged=function(ce){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ce,this.settings.defaultStrokeColor=ce)},be.prototype.fillColorChanged=function(ce){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ce)},be.prototype.markerStateChanged=function(ce){var ue=this;this.eventListeners.markerchange.forEach(function(de){return de(new en(ue,ce))})},be.prototype.setCurrentMarker=function(ce){var ue=this;this._currentMarker!==ce&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(de){return de(new en(ue,ue._currentMarker))})),this._currentMarker=ce,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 en(ue,ue._currentMarker))}))},be.prototype.onPointerDown=function(ce){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ce.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ue=this.markers.find(function(de){return de.ownsTarget(ce.target)});ue!==void 0?(this.setCurrentMarker(ue),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ce.clientX,ce.clientY),ce.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ce.clientX,y:ce.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ce.clientX,ce.clientY))},be.prototype.onDblClick=function(ce){if(this._isFocused||this.focus(),this.mode==="select"){var ue=this.markers.find(function(de){return de.ownsTarget(ce.target)});ue!==void 0&&ue!==this._currentMarker&&this.setCurrentMarker(ue),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ce.clientX,ce.clientY),ce.target):this.setCurrentMarker()}},be.prototype.onPointerMove=function(ce){this.touchPoints!==1&&ce.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ce.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ce.clientX,ce.clientY)):this.zoomLevel>1&&this.panTo({x:ce.clientX,y:ce.clientY}))},be.prototype.onPointerUp=function(ce){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ce.clientX,ce.clientY)),this.isDragging=!1,this.addUndoStep()},be.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},be.prototype.onKeyUp=function(ce){this._currentMarker===void 0||this.notesArea!==void 0||ce.key!=="Delete"&&ce.key!=="Backspace"||this.deleteSelectedMarker()},be.prototype.clientToLocalCoordinates=function(ce,ue){var de=this.markerImage.getBoundingClientRect();return{x:(ce-de.left)/this.zoomLevel,y:(ue-de.top)/this.zoomLevel}},be.prototype.onWindowResize=function(){this.positionUI()},be.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ce=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ce+"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()},be.prototype.addLicenseKey=function(ce){he.addKey(ce)},be.prototype.addEventListener=function(ce,ue){this.eventListeners.addEventListener(ce,ue)},be.prototype.removeEventListener=function(ce,ue){this.eventListeners.removeEventListener(ce,ue)},be.prototype.renderState=function(ce){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ce),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(be.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),be.prototype.focus=function(){var ce=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ue){return ue(new _t(ce))}))},be.prototype.blur=function(){var ce=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ue){return ue(new _t(ce))}))},be.instanceCounter=0,be}()},5630:function(gn,Kt,ie){"use strict";var oe=ie(54476),ke=ie(33885),Ce=ie(20068),Ye=ie(42978),ye=ie(75931),Ee=ie(92310),he=ie.n(Ee),xe=ie(18929),we=ie(59301),Te=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],qe=(0,we.forwardRef)(function(Ie,Re){var lt,Ue=Ie.prefixCls,We=Ue===void 0?"rc-checkbox":Ue,ct=Ie.className,tt=Ie.style,At=Ie.checked,ut=Ie.disabled,ot=Ie.defaultChecked,je=ot===void 0?!1:ot,Se=Ie.type,Fe=Se===void 0?"checkbox":Se,Ze=Ie.title,xt=Ie.onChange,Je=(0,ye.Z)(Ie,Te),dt=(0,we.useRef)(null),Be=(0,xe.Z)(je,{value:At}),kt=(0,Ye.Z)(Be,2),He=kt[0],Tt=kt[1];(0,we.useImperativeHandle)(Re,function(){return{focus:function(){var Bt;(Bt=dt.current)===null||Bt===void 0||Bt.focus()},blur:function(){var Bt;(Bt=dt.current)===null||Bt===void 0||Bt.blur()},input:dt.current}});var mt=he()(We,ct,(lt={},(0,Ce.Z)(lt,"".concat(We,"-checked"),He),(0,Ce.Z)(lt,"".concat(We,"-disabled"),ut),lt)),Et=function(Bt){ut||("checked"in Ie||Tt(Bt.target.checked),xt==null||xt({target:(0,ke.Z)((0,ke.Z)({},Ie),{},{type:Fe,checked:Bt.target.checked}),stopPropagation:function(){Bt.stopPropagation()},preventDefault:function(){Bt.preventDefault()},nativeEvent:Bt.nativeEvent}))};return we.createElement("span",{className:mt,title:Ze,style:tt},we.createElement("input",(0,oe.Z)({},Je,{className:"".concat(We,"-input"),ref:dt,onChange:Et,disabled:ut,checked:!!He,type:Fe})),we.createElement("span",{className:"".concat(We,"-inner")}))});Kt.Z=qe},31561:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Fe}});var oe=ie(54476),ke=ie(20068),Ce=ie(42978),Ye=ie(75931),ye=ie(35593),Ee=ie(92310),he=ie.n(Ee),xe=ie(8654),we=ie(59301),Te=ie(10228),qe=ie(16089),Ie=Te.Z.ESC,Re=Te.Z.TAB;function lt(Ze){var xt=Ze.visible,Je=Ze.triggerRef,dt=Ze.onVisibleChange,Be=Ze.autoFocus,kt=Ze.overlayRef,He=we.useRef(!1),Tt=function(){if(xt){var Bt,De;(Bt=Je.current)===null||Bt===void 0||(De=Bt.focus)===null||De===void 0||De.call(Bt),dt==null||dt(!1)}},mt=function(){var Bt;return(Bt=kt.current)!==null&&Bt!==void 0&&Bt.focus?(kt.current.focus(),He.current=!0,!0):!1},Et=function(Bt){switch(Bt.keyCode){case Ie:Tt();break;case Re:{var De=!1;He.current||(De=mt()),De?Bt.preventDefault():Tt();break}}};we.useEffect(function(){return xt?(window.addEventListener("keydown",Et),Be&&(0,qe.Z)(mt,3),function(){window.removeEventListener("keydown",Et),He.current=!1}):function(){He.current=!1}},[xt])}var Ue=(0,we.forwardRef)(function(Ze,xt){var Je=Ze.overlay,dt=Ze.arrow,Be=Ze.prefixCls,kt=(0,we.useMemo)(function(){var Tt;return typeof Je=="function"?Tt=Je():Tt=Je,Tt},[Je]),He=(0,xe.sQ)(xt,kt==null?void 0:kt.ref);return we.createElement(we.Fragment,null,dt&&we.createElement("div",{className:"".concat(Be,"-arrow")}),we.cloneElement(kt,{ref:(0,xe.Yr)(kt)?He:void 0}))}),We=Ue,ct={adjustX:1,adjustY:1},tt=[0,0],At={topLeft:{points:["bl","tl"],overflow:ct,offset:[0,-4],targetOffset:tt},top:{points:["bc","tc"],overflow:ct,offset:[0,-4],targetOffset:tt},topRight:{points:["br","tr"],overflow:ct,offset:[0,-4],targetOffset:tt},bottomLeft:{points:["tl","bl"],overflow:ct,offset:[0,4],targetOffset:tt},bottom:{points:["tc","bc"],overflow:ct,offset:[0,4],targetOffset:tt},bottomRight:{points:["tr","br"],overflow:ct,offset:[0,4],targetOffset:tt}},ut=At,ot=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function je(Ze,xt){var Je,dt=Ze.arrow,Be=dt===void 0?!1:dt,kt=Ze.prefixCls,He=kt===void 0?"rc-dropdown":kt,Tt=Ze.transitionName,mt=Ze.animation,Et=Ze.align,zt=Ze.placement,Bt=zt===void 0?"bottomLeft":zt,De=Ze.placements,ge=De===void 0?ut:De,at=Ze.getPopupContainer,Ct=Ze.showAction,It=Ze.hideAction,Qe=Ze.overlayClassName,et=Ze.overlayStyle,Lt=Ze.visible,dn=Ze.trigger,_t=dn===void 0?["hover"]:dn,tn=Ze.autoFocus,en=Ze.overlay,Jt=Ze.children,Vt=Ze.onVisibleChange,be=(0,Ye.Z)(Ze,ot),ce=we.useState(),ue=(0,Ce.Z)(ce,2),de=ue[0],pe=ue[1],se="visible"in Ze?Lt:de,Le=we.useRef(null),ht=we.useRef(null),_e=we.useRef(null);we.useImperativeHandle(xt,function(){return Le.current});var Ne=function(vt){pe(vt),Vt==null||Vt(vt)};lt({visible:se,triggerRef:_e,onVisibleChange:Ne,autoFocus:tn,overlayRef:ht});var St=function(vt){var Oe=Ze.onOverlayClick;pe(!1),Oe&&Oe(vt)},gt=function(){return we.createElement(We,{ref:ht,overlay:en,prefixCls:He,arrow:Be})},Xe=function(){return typeof en=="function"?gt:gt()},wt=function(){var vt=Ze.minOverlayWidthMatchTrigger,Oe=Ze.alignPoint;return"minOverlayWidthMatchTrigger"in Ze?vt:!Oe},Xt=function(){var vt=Ze.openClassName;return vt!==void 0?vt:"".concat(He,"-open")},bt=we.cloneElement(Jt,{className:he()((Je=Jt.props)===null||Je===void 0?void 0:Je.className,se&&Xt()),ref:(0,xe.Yr)(Jt)?(0,xe.sQ)(_e,Jt.ref):void 0}),$t=It;return!$t&&_t.indexOf("contextMenu")!==-1&&($t=["click"]),we.createElement(ye.Z,(0,oe.Z)({builtinPlacements:ge},be,{prefixCls:He,ref:Le,popupClassName:he()(Qe,(0,ke.Z)({},"".concat(He,"-show-arrow"),Be)),popupStyle:et,action:_t,showAction:Ct,hideAction:$t,popupPlacement:Bt,popupAlign:Et,popupTransitionName:Tt,popupAnimation:mt,popupVisible:se,stretch:wt()?"minWidth":"",popup:Xe(),onPopupVisibleChange:Ne,onPopupClick:St,getPopupContainer:at}),bt)}var Se=we.forwardRef(je),Fe=Se},93681:function(gn,Kt,ie){"use strict";ie.r(Kt),ie.d(Kt,{BaseInput:function(){return Te},default:function(){return At}});var oe=ie(54476),ke=ie(33885),Ce=ie(20068),Ye=ie(76190),ye=ie(92310),Ee=ie.n(ye),he=ie(59301),xe=ie(5643),we=function(ot){var je,Se,Fe=ot.inputElement,Ze=ot.prefixCls,xt=ot.prefix,Je=ot.suffix,dt=ot.addonBefore,Be=ot.addonAfter,kt=ot.className,He=ot.style,Tt=ot.disabled,mt=ot.readOnly,Et=ot.focused,zt=ot.triggerFocus,Bt=ot.allowClear,De=ot.value,ge=ot.handleReset,at=ot.hidden,Ct=ot.classes,It=ot.classNames,Qe=ot.dataAttrs,et=ot.styles,Lt=ot.components,dn=(Lt==null?void 0:Lt.affixWrapper)||"span",_t=(Lt==null?void 0:Lt.groupWrapper)||"span",tn=(Lt==null?void 0:Lt.wrapper)||"span",en=(Lt==null?void 0:Lt.groupAddon)||"span",Jt=(0,he.useRef)(null),Vt=function(gt){var Xe;(Xe=Jt.current)!==null&&Xe!==void 0&&Xe.contains(gt.target)&&(zt==null||zt())},be=function(){var gt;if(!Bt)return null;var Xe=!Tt&&!mt&&De,wt="".concat(Ze,"-clear-icon"),Xt=(0,Ye.Z)(Bt)==="object"&&Bt!==null&&Bt!==void 0&&Bt.clearIcon?Bt.clearIcon:"\u2716";return he.createElement("span",{onClick:ge,onMouseDown:function($t){return $t.preventDefault()},className:Ee()(wt,(gt={},(0,Ce.Z)(gt,"".concat(wt,"-hidden"),!Xe),(0,Ce.Z)(gt,"".concat(wt,"-has-suffix"),!!Je),gt)),role:"button",tabIndex:-1},Xt)},ce=(0,he.cloneElement)(Fe,{value:De,hidden:at,className:Ee()((je=Fe.props)===null||je===void 0?void 0:je.className,!(0,xe.X3)(ot)&&!(0,xe.He)(ot)&&kt)||null,style:(0,ke.Z)((0,ke.Z)({},(Se=Fe.props)===null||Se===void 0?void 0:Se.style),!(0,xe.X3)(ot)&&!(0,xe.He)(ot)?He:{})});if((0,xe.X3)(ot)){var ue,de="".concat(Ze,"-affix-wrapper"),pe=Ee()(de,(ue={},(0,Ce.Z)(ue,"".concat(de,"-disabled"),Tt),(0,Ce.Z)(ue,"".concat(de,"-focused"),Et),(0,Ce.Z)(ue,"".concat(de,"-readonly"),mt),(0,Ce.Z)(ue,"".concat(de,"-input-with-clear-btn"),Je&&Bt&&De),ue),!(0,xe.He)(ot)&&kt,Ct==null?void 0:Ct.affixWrapper,It==null?void 0:It.affixWrapper),se=(Je||Bt)&&he.createElement("span",{className:Ee()("".concat(Ze,"-suffix"),It==null?void 0:It.suffix),style:et==null?void 0:et.suffix},be(),Je);ce=he.createElement(dn,(0,oe.Z)({className:pe,style:(0,ke.Z)((0,ke.Z)({},(0,xe.He)(ot)?void 0:He),et==null?void 0:et.affixWrapper),hidden:!(0,xe.He)(ot)&&at,onClick:Vt},Qe==null?void 0:Qe.affixWrapper,{ref:Jt}),xt&&he.createElement("span",{className:Ee()("".concat(Ze,"-prefix"),It==null?void 0:It.prefix),style:et==null?void 0:et.prefix},xt),(0,he.cloneElement)(Fe,{value:De,hidden:null}),se)}if((0,xe.He)(ot)){var Le="".concat(Ze,"-group"),ht="".concat(Le,"-addon"),_e=Ee()("".concat(Ze,"-wrapper"),Le,Ct==null?void 0:Ct.wrapper),Ne=Ee()("".concat(Ze,"-group-wrapper"),kt,Ct==null?void 0:Ct.group);return he.createElement(_t,{className:Ne,style:He,hidden:at},he.createElement(tn,{className:_e},dt&&he.createElement(en,{className:ht},dt),(0,he.cloneElement)(ce,{hidden:null}),Be&&he.createElement(en,{className:ht},Be)))}return ce},Te=we,qe=ie(94480),Ie=ie(42978),Re=ie(75931),lt=ie(18929),Ue=ie(2738),We=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],ct=(0,he.forwardRef)(function(ut,ot){var je=ut.autoComplete,Se=ut.onChange,Fe=ut.onFocus,Ze=ut.onBlur,xt=ut.onPressEnter,Je=ut.onKeyDown,dt=ut.prefixCls,Be=dt===void 0?"rc-input":dt,kt=ut.disabled,He=ut.htmlSize,Tt=ut.className,mt=ut.maxLength,Et=ut.suffix,zt=ut.showCount,Bt=ut.type,De=Bt===void 0?"text":Bt,ge=ut.classes,at=ut.classNames,Ct=ut.styles,It=(0,Re.Z)(ut,We),Qe=(0,lt.Z)(ut.defaultValue,{value:ut.value}),et=(0,Ie.Z)(Qe,2),Lt=et[0],dn=et[1],_t=(0,he.useState)(!1),tn=(0,Ie.Z)(_t,2),en=tn[0],Jt=tn[1],Vt=(0,he.useRef)(null),be=function(Ne){Vt.current&&(0,xe.nH)(Vt.current,Ne)};(0,he.useImperativeHandle)(ot,function(){return{focus:be,blur:function(){var Ne;(Ne=Vt.current)===null||Ne===void 0||Ne.blur()},setSelectionRange:function(Ne,St,gt){var Xe;(Xe=Vt.current)===null||Xe===void 0||Xe.setSelectionRange(Ne,St,gt)},select:function(){var Ne;(Ne=Vt.current)===null||Ne===void 0||Ne.select()},input:Vt.current}}),(0,he.useEffect)(function(){Jt(function(_e){return _e&&kt?!1:_e})},[kt]);var ce=function(Ne){ut.value===void 0&&dn(Ne.target.value),Vt.current&&(0,xe.rJ)(Vt.current,Ne,Se)},ue=function(Ne){xt&&Ne.key==="Enter"&&xt(Ne),Je==null||Je(Ne)},de=function(Ne){Jt(!0),Fe==null||Fe(Ne)},pe=function(Ne){Jt(!1),Ze==null||Ze(Ne)},se=function(Ne){dn(""),be(),Vt.current&&(0,xe.rJ)(Vt.current,Ne,Se)},Le=function(){var Ne=(0,Ue.Z)(ut,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return he.createElement("input",(0,oe.Z)({autoComplete:je},Ne,{onChange:ce,onFocus:de,onBlur:pe,onKeyDown:ue,className:Ee()(Be,(0,Ce.Z)({},"".concat(Be,"-disabled"),kt),at==null?void 0:at.input),style:Ct==null?void 0:Ct.input,ref:Vt,size:He,type:De}))},ht=function(){var Ne=Number(mt)>0;if(Et||zt){var St=(0,xe.D7)(Lt),gt=(0,qe.Z)(St).length,Xe=(0,Ye.Z)(zt)==="object"?zt.formatter({value:St,count:gt,maxLength:mt}):"".concat(gt).concat(Ne?" / ".concat(mt):"");return he.createElement(he.Fragment,null,!!zt&&he.createElement("span",{className:Ee()("".concat(Be,"-show-count-suffix"),(0,Ce.Z)({},"".concat(Be,"-show-count-has-suffix"),!!Et),at==null?void 0:at.count),style:(0,ke.Z)({},Ct==null?void 0:Ct.count)},Xe),Et)}return null};return he.createElement(Te,(0,oe.Z)({},It,{prefixCls:Be,className:Tt,inputElement:Le(),handleReset:se,value:(0,xe.D7)(Lt),focused:en,triggerFocus:be,suffix:ht(),disabled:kt,classes:ge,classNames:at,styles:Ct}))}),tt=ct,At=tt},5643:function(gn,Kt,ie){"use strict";ie.d(Kt,{D7:function(){return ye},He:function(){return oe},X3:function(){return ke},nH:function(){return Ye},rJ:function(){return Ce}});function oe(Ee){return!!(Ee.addonBefore||Ee.addonAfter)}function ke(Ee){return!!(Ee.prefix||Ee.suffix||Ee.allowClear)}function Ce(Ee,he,xe,we){if(xe){var Te=he;if(he.type==="click"){var qe=Ee.cloneNode(!0);Te=Object.create(he,{target:{value:qe},currentTarget:{value:qe}}),qe.value="",xe(Te);return}if(we!==void 0){Te=Object.create(he,{target:{value:Ee},currentTarget:{value:Ee}}),Ee.value=we,xe(Te);return}xe(Te)}}function Ye(Ee,he){if(Ee){Ee.focus(he);var xe=he||{},we=xe.cursor;if(we){var Te=Ee.value.length;switch(we){case"start":Ee.setSelectionRange(0,0);break;case"end":Ee.setSelectionRange(Te,Te);break;default:Ee.setSelectionRange(0,Te)}}}}function ye(Ee){return typeof Ee=="undefined"||Ee===null?"":String(Ee)}},15285:function(gn,Kt,ie){"use strict";ie.d(Kt,{iz:function(){return Pn},ck:function(){return Yn},BW:function(){return Tn},sN:function(){return Yn},Wd:function(){return Ht},ZP:function(){return dr},Xl:function(){return Je}});var oe=ie(54476),ke=ie(20068),Ce=ie(33885),Ye=ie(94480),ye=ie(42978),Ee=ie(75931),he=ie(92310),xe=ie.n(he),we=ie(83836),Te=ie(18929),qe=ie(13697),Ie=ie(48736),Re=ie(59301),lt=ie(4676),Ue=Re.createContext(null);function We(Ot,cn){return Ot===void 0?null:"".concat(Ot,"-").concat(cn)}function ct(Ot){var cn=Re.useContext(Ue);return We(cn,Ot)}var tt=ie(80547),At=["children","locked"],ut=Re.createContext(null);function ot(Ot,cn){var vn=(0,Ce.Z)({},Ot);return Object.keys(cn).forEach(function(Mn){var yn=cn[Mn];yn!==void 0&&(vn[Mn]=yn)}),vn}function je(Ot){var cn=Ot.children,vn=Ot.locked,Mn=(0,Ee.Z)(Ot,At),yn=Re.useContext(ut),Sn=(0,tt.Z)(function(){return ot(yn,Mn)},[yn,Mn],function(bn,zn){return!vn&&(bn[0]!==zn[0]||!(0,qe.Z)(bn[1],zn[1],!0))});return Re.createElement(ut.Provider,{value:Sn},cn)}var Se=[],Fe=Re.createContext(null);function Ze(){return Re.useContext(Fe)}var xt=Re.createContext(Se);function Je(Ot){var cn=Re.useContext(xt);return Re.useMemo(function(){return Ot!==void 0?[].concat((0,Ye.Z)(cn),[Ot]):cn},[cn,Ot])}var dt=Re.createContext(null),Be=Re.createContext({}),kt=Be,He=ie(29194);function Tt(Ot){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,He.Z)(Ot)){var vn=Ot.nodeName.toLowerCase(),Mn=["input","select","textarea","button"].includes(vn)||Ot.isContentEditable||vn==="a"&&!!Ot.getAttribute("href"),yn=Ot.getAttribute("tabindex"),Sn=Number(yn),bn=null;return yn&&!Number.isNaN(Sn)?bn=Sn:Mn&&bn===null&&(bn=0),Mn&&Ot.disabled&&(bn=null),bn!==null&&(bn>=0||cn&&bn<0)}return!1}function mt(Ot){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vn=(0,Ye.Z)(Ot.querySelectorAll("*")).filter(function(Mn){return Tt(Mn,cn)});return Tt(Ot,cn)&&vn.unshift(Ot),vn}var Et=null;function zt(){Et=document.activeElement}function Bt(){Et=null}function De(){if(Et)try{Et.focus()}catch(Ot){}}function ge(Ot,cn){if(cn.keyCode===9){var vn=mt(Ot),Mn=vn[cn.shiftKey?0:vn.length-1],yn=Mn===document.activeElement||Ot===document.activeElement;if(yn){var Sn=vn[cn.shiftKey?vn.length-1:0];Sn.focus(),cn.preventDefault()}}}var at=ie(10228),Ct=ie(16089),It=at.Z.LEFT,Qe=at.Z.RIGHT,et=at.Z.UP,Lt=at.Z.DOWN,dn=at.Z.ENTER,_t=at.Z.ESC,tn=at.Z.HOME,en=at.Z.END,Jt=[et,Lt,It,Qe];function Vt(Ot,cn,vn,Mn){var yn,Sn,bn,zn,Zn="prev",qn="next",_r="children",ei="parent";if(Ot==="inline"&&Mn===dn)return{inlineTrigger:!0};var di=(yn={},(0,ke.Z)(yn,et,Zn),(0,ke.Z)(yn,Lt,qn),yn),zr=(Sn={},(0,ke.Z)(Sn,It,vn?qn:Zn),(0,ke.Z)(Sn,Qe,vn?Zn:qn),(0,ke.Z)(Sn,Lt,_r),(0,ke.Z)(Sn,dn,_r),Sn),Lr=(bn={},(0,ke.Z)(bn,et,Zn),(0,ke.Z)(bn,Lt,qn),(0,ke.Z)(bn,dn,_r),(0,ke.Z)(bn,_t,ei),(0,ke.Z)(bn,It,vn?_r:ei),(0,ke.Z)(bn,Qe,vn?ei:_r),bn),mi={inline:di,horizontal:zr,vertical:Lr,inlineSub:di,horizontalSub:Lr,verticalSub:Lr},oi=(zn=mi["".concat(Ot).concat(cn?"":"Sub")])===null||zn===void 0?void 0:zn[Mn];switch(oi){case Zn:return{offset:-1,sibling:!0};case qn:return{offset:1,sibling:!0};case ei:return{offset:-1,sibling:!1};case _r:return{offset:1,sibling:!1};default:return null}}function be(Ot){for(var cn=Ot;cn;){if(cn.getAttribute("data-menu-list"))return cn;cn=cn.parentElement}return null}function ce(Ot,cn){for(var vn=Ot||document.activeElement;vn;){if(cn.has(vn))return vn;vn=vn.parentElement}return null}function ue(Ot,cn){var vn=mt(Ot,!0);return vn.filter(function(Mn){return cn.has(Mn)})}function de(Ot,cn,vn){var Mn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ot)return null;var yn=ue(Ot,cn),Sn=yn.length,bn=yn.findIndex(function(zn){return vn===zn});return Mn<0?bn===-1?bn=Sn-1:bn-=1:Mn>0&&(bn+=1),bn=(bn+Sn)%Sn,yn[bn]}var pe=function(cn,vn){var Mn=new Set,yn=new Map,Sn=new Map;return cn.forEach(function(bn){var zn=document.querySelector("[data-menu-id='".concat(We(vn,bn),"']"));zn&&(Mn.add(zn),Sn.set(zn,bn),yn.set(bn,zn))}),{elements:Mn,key2element:yn,element2key:Sn}};function se(Ot,cn,vn,Mn,yn,Sn,bn,zn,Zn,qn){var _r=Re.useRef(),ei=Re.useRef();ei.current=cn;var di=function(){Ct.Z.cancel(_r.current)};return Re.useEffect(function(){return function(){di()}},[]),function(zr){var Lr=zr.which;if([].concat(Jt,[dn,_t,tn,en]).includes(Lr)){var mi=Sn(),oi=pe(mi,Mn),ti=oi,Pr=ti.elements,Vr=ti.key2element,En=ti.element2key,Yr=Vr.get(cn),Li=ce(Yr,Pr),Yi=En.get(Li),ni=Vt(Ot,bn(Yi,!0).length===1,vn,Lr);if(!ni&&Lr!==tn&&Lr!==en)return;(Jt.includes(Lr)||[tn,en].includes(Lr))&&zr.preventDefault();var tr=function(ki){if(ki){var Da=ki,jr=ki.querySelector("a");jr!=null&&jr.getAttribute("href")&&(Da=jr);var $r=En.get(ki);zn($r),di(),_r.current=(0,Ct.Z)(function(){ei.current===$r&&Da.focus()})}};if([tn,en].includes(Lr)||ni.sibling||!Li){var Un;!Li||Ot==="inline"?Un=yn.current:Un=be(Li);var Qr,Dr=ue(Un,Pr);Lr===tn?Qr=Dr[0]:Lr===en?Qr=Dr[Dr.length-1]:Qr=de(Un,Pr,Li,ni.offset),tr(Qr)}else if(ni.inlineTrigger)Zn(Yi);else if(ni.offset>0)Zn(Yi,!0),di(),_r.current=(0,Ct.Z)(function(){oi=pe(mi,Mn);var ea=Li.getAttribute("aria-controls"),ki=document.getElementById(ea),Da=de(ki,oi.elements);tr(Da)},5);else if(ni.offset<0){var fi=bn(Yi,!0),Ni=fi[fi.length-2],si=Vr.get(Ni);Zn(Ni,!1),tr(si)}}qn==null||qn(zr)}}function Le(Ot){Promise.resolve().then(Ot)}var ht="__RC_UTIL_PATH_SPLIT__",_e=function(cn){return cn.join(ht)},Ne=function(cn){return cn.split(ht)},St="rc-menu-more";function gt(){var Ot=Re.useState({}),cn=(0,ye.Z)(Ot,2),vn=cn[1],Mn=(0,Re.useRef)(new Map),yn=(0,Re.useRef)(new Map),Sn=Re.useState([]),bn=(0,ye.Z)(Sn,2),zn=bn[0],Zn=bn[1],qn=(0,Re.useRef)(0),_r=(0,Re.useRef)(!1),ei=function(){_r.current||vn({})},di=(0,Re.useCallback)(function(Vr,En){var Yr=_e(En);yn.current.set(Yr,Vr),Mn.current.set(Vr,Yr),qn.current+=1;var Li=qn.current;Le(function(){Li===qn.current&&ei()})},[]),zr=(0,Re.useCallback)(function(Vr,En){var Yr=_e(En);yn.current.delete(Yr),Mn.current.delete(Vr)},[]),Lr=(0,Re.useCallback)(function(Vr){Zn(Vr)},[]),mi=(0,Re.useCallback)(function(Vr,En){var Yr=Mn.current.get(Vr)||"",Li=Ne(Yr);return En&&zn.includes(Li[0])&&Li.unshift(St),Li},[zn]),oi=(0,Re.useCallback)(function(Vr,En){return Vr.some(function(Yr){var Li=mi(Yr,!0);return Li.includes(En)})},[mi]),ti=function(){var En=(0,Ye.Z)(Mn.current.keys());return zn.length&&En.push(St),En},Pr=(0,Re.useCallback)(function(Vr){var En="".concat(Mn.current.get(Vr)).concat(ht),Yr=new Set;return(0,Ye.Z)(yn.current.keys()).forEach(function(Li){Li.startsWith(En)&&Yr.add(yn.current.get(Li))}),Yr},[]);return Re.useEffect(function(){return function(){_r.current=!0}},[]),{registerPath:di,unregisterPath:zr,refreshOverflowKeys:Lr,isSubPathKey:oi,getKeyPath:mi,getKeys:ti,getSubPathKeys:Pr}}function Xe(Ot){var cn=Re.useRef(Ot);cn.current=Ot;var vn=Re.useCallback(function(){for(var Mn,yn=arguments.length,Sn=new Array(yn),bn=0;bn<yn;bn++)Sn[bn]=arguments[bn];return(Mn=cn.current)===null||Mn===void 0?void 0:Mn.call.apply(Mn,[cn].concat(Sn))},[]);return Ot?vn:void 0}var wt=Math.random().toFixed(5).toString().slice(2),Xt=0;function bt(Ot){var cn=(0,Te.Z)(Ot,{value:Ot}),vn=(0,ye.Z)(cn,2),Mn=vn[0],yn=vn[1];return Re.useEffect(function(){Xt+=1;var Sn="".concat(wt,"-").concat(Xt);yn("rc-menu-uuid-".concat(Sn))},[]),Mn}var $t=ie(67732),on=ie(83652),vt=ie(42403),Oe=ie(158),yt=ie(2738),jt=ie(8654);function Zt(Ot,cn,vn,Mn){var yn=Re.useContext(ut),Sn=yn.activeKey,bn=yn.onActive,zn=yn.onInactive,Zn={active:Sn===Ot};return cn||(Zn.onMouseEnter=function(qn){vn==null||vn({key:Ot,domEvent:qn}),bn(Ot)},Zn.onMouseLeave=function(qn){Mn==null||Mn({key:Ot,domEvent:qn}),zn(Ot)}),Zn}function nn(Ot){var cn=Re.useContext(ut),vn=cn.mode,Mn=cn.rtl,yn=cn.inlineIndent;if(vn!=="inline")return null;var Sn=Ot;return Mn?{paddingRight:Sn*yn}:{paddingLeft:Sn*yn}}function Cn(Ot){var cn=Ot.icon,vn=Ot.props,Mn=Ot.children,yn;return cn===null||cn===!1?null:(typeof cn=="function"?yn=Re.createElement(cn,(0,Ce.Z)({},vn)):typeof cn!="boolean"&&(yn=cn),yn||Mn||null)}var In=["item"];function Dn(Ot){var cn=Ot.item,vn=(0,Ee.Z)(Ot,In);return Object.defineProperty(vn,"item",{get:function(){return(0,Ie.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),cn}}),vn}var Kn=["title","attribute","elementRef"],Vn=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],_n=["active"],or=function(Ot){(0,vt.Z)(vn,Ot);var cn=(0,Oe.Z)(vn);function vn(){return(0,$t.Z)(this,vn),cn.apply(this,arguments)}return(0,on.Z)(vn,[{key:"render",value:function(){var yn=this.props,Sn=yn.title,bn=yn.attribute,zn=yn.elementRef,Zn=(0,Ee.Z)(yn,Kn),qn=(0,yt.Z)(Zn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Ie.ZP)(!bn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),Re.createElement(we.Z.Item,(0,oe.Z)({},bn,{title:typeof Sn=="string"?Sn:void 0},qn,{ref:zn}))}}]),vn}(Re.Component),wr=Re.forwardRef(function(Ot,cn){var vn,Mn=Ot.style,yn=Ot.className,Sn=Ot.eventKey,bn=Ot.warnKey,zn=Ot.disabled,Zn=Ot.itemIcon,qn=Ot.children,_r=Ot.role,ei=Ot.onMouseEnter,di=Ot.onMouseLeave,zr=Ot.onClick,Lr=Ot.onKeyDown,mi=Ot.onFocus,oi=(0,Ee.Z)(Ot,Vn),ti=ct(Sn),Pr=Re.useContext(ut),Vr=Pr.prefixCls,En=Pr.onItemClick,Yr=Pr.disabled,Li=Pr.overflowDisabled,Yi=Pr.itemIcon,ni=Pr.selectedKeys,tr=Pr.onActive,Un=Re.useContext(kt),Qr=Un._internalRenderMenuItem,Dr="".concat(Vr,"-item"),fi=Re.useRef(),Ni=Re.useRef(),si=Yr||zn,ea=(0,jt.x1)(cn,Ni),ki=Je(Sn),Da=function(xr){return{key:Sn,keyPath:(0,Ye.Z)(ki).reverse(),item:fi.current,domEvent:xr}},jr=Zn||Yi,$r=Zt(Sn,si,ei,di),Di=$r.active,Ii=(0,Ee.Z)($r,_n),La=ni.includes(Sn),So=nn(ki.length),Ga=function(xr){if(!si){var Gr=Da(xr);zr==null||zr(Dn(Gr)),En(Gr)}},la=function(xr){if(Lr==null||Lr(xr),xr.which===at.Z.ENTER){var Gr=Da(xr);zr==null||zr(Dn(Gr)),En(Gr)}},Oa=function(xr){tr(Sn),mi==null||mi(xr)},Ma={};Ot.role==="option"&&(Ma["aria-selected"]=La);var vr=Re.createElement(or,(0,oe.Z)({ref:fi,elementRef:ea,role:_r===null?"none":_r||"menuitem",tabIndex:zn?null:-1,"data-menu-id":Li&&ti?null:ti},oi,Ii,Ma,{component:"li","aria-disabled":zn,style:(0,Ce.Z)((0,Ce.Z)({},So),Mn),className:xe()(Dr,(vn={},(0,ke.Z)(vn,"".concat(Dr,"-active"),Di),(0,ke.Z)(vn,"".concat(Dr,"-selected"),La),(0,ke.Z)(vn,"".concat(Dr,"-disabled"),si),vn),yn),onClick:Ga,onKeyDown:la,onFocus:Oa}),qn,Re.createElement(Cn,{props:(0,Ce.Z)((0,Ce.Z)({},Ot),{},{isSelected:La}),icon:jr}));return Qr&&(vr=Qr(vr,Ot,{selected:La})),vr});function Tr(Ot,cn){var vn=Ot.eventKey,Mn=Ze(),yn=Je(vn);return Re.useEffect(function(){if(Mn)return Mn.registerPath(vn,yn),function(){Mn.unregisterPath(vn,yn)}},[yn]),Mn?null:Re.createElement(wr,(0,oe.Z)({},Ot,{ref:cn}))}var Yn=Re.forwardRef(Tr),hr=["className","children"],kr=function(cn,vn){var Mn=cn.className,yn=cn.children,Sn=(0,Ee.Z)(cn,hr),bn=Re.useContext(ut),zn=bn.prefixCls,Zn=bn.mode,qn=bn.rtl;return Re.createElement("ul",(0,oe.Z)({className:xe()(zn,qn&&"".concat(zn,"-rtl"),"".concat(zn,"-sub"),"".concat(zn,"-").concat(Zn==="inline"?"inline":"vertical"),Mn),role:"menu"},Sn,{"data-menu-list":!0,ref:vn}),yn)},Qn=Re.forwardRef(kr);Qn.displayName="SubMenuList";var Fr=Qn,ci=ie(11592);function Cr(Ot,cn){return(0,ci.Z)(Ot).map(function(vn,Mn){if(Re.isValidElement(vn)){var yn,Sn,bn=vn.key,zn=(yn=(Sn=vn.props)===null||Sn===void 0?void 0:Sn.eventKey)!==null&&yn!==void 0?yn:bn,Zn=zn==null;Zn&&(zn="tmp_key-".concat([].concat((0,Ye.Z)(cn),[Mn]).join("-")));var qn={key:zn,eventKey:zn};return Re.cloneElement(vn,qn)}return vn})}var pi=ie(35593),ai={adjustX:1,adjustY:1},nr={topLeft:{points:["bl","tl"],overflow:ai},topRight:{points:["br","tr"],overflow:ai},bottomLeft:{points:["tl","bl"],overflow:ai},bottomRight:{points:["tr","br"],overflow:ai},leftTop:{points:["tr","tl"],overflow:ai},leftBottom:{points:["br","bl"],overflow:ai},rightTop:{points:["tl","tr"],overflow:ai},rightBottom:{points:["bl","br"],overflow:ai}},yr={topLeft:{points:["bl","tl"],overflow:ai},topRight:{points:["br","tr"],overflow:ai},bottomLeft:{points:["tl","bl"],overflow:ai},bottomRight:{points:["tr","br"],overflow:ai},rightTop:{points:["tr","tl"],overflow:ai},rightBottom:{points:["br","bl"],overflow:ai},leftTop:{points:["tl","tr"],overflow:ai},leftBottom:{points:["bl","br"],overflow:ai}},Hn=null;function Gn(Ot,cn,vn){if(cn)return cn;if(vn)return vn[Ot]||vn.other}var Or={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Rt(Ot){var cn=Ot.prefixCls,vn=Ot.visible,Mn=Ot.children,yn=Ot.popup,Sn=Ot.popupStyle,bn=Ot.popupClassName,zn=Ot.popupOffset,Zn=Ot.disabled,qn=Ot.mode,_r=Ot.onVisibleChange,ei=Re.useContext(ut),di=ei.getPopupContainer,zr=ei.rtl,Lr=ei.subMenuOpenDelay,mi=ei.subMenuCloseDelay,oi=ei.builtinPlacements,ti=ei.triggerSubMenuAction,Pr=ei.forceSubMenuRender,Vr=ei.rootClassName,En=ei.motion,Yr=ei.defaultMotions,Li=Re.useState(!1),Yi=(0,ye.Z)(Li,2),ni=Yi[0],tr=Yi[1],Un=zr?(0,Ce.Z)((0,Ce.Z)({},yr),oi):(0,Ce.Z)((0,Ce.Z)({},nr),oi),Qr=Or[qn],Dr=Gn(qn,En,Yr),fi=Re.useRef(Dr);qn!=="inline"&&(fi.current=Dr);var Ni=(0,Ce.Z)((0,Ce.Z)({},fi.current),{},{leavedClassName:"".concat(cn,"-hidden"),removeOnLeave:!1,motionAppear:!0}),si=Re.useRef();return Re.useEffect(function(){return si.current=(0,Ct.Z)(function(){tr(vn)}),function(){Ct.Z.cancel(si.current)}},[vn]),Re.createElement(pi.Z,{prefixCls:cn,popupClassName:xe()("".concat(cn,"-popup"),(0,ke.Z)({},"".concat(cn,"-rtl"),zr),bn,Vr),stretch:qn==="horizontal"?"minWidth":null,getPopupContainer:di,builtinPlacements:Un,popupPlacement:Qr,popupVisible:ni,popup:yn,popupStyle:Sn,popupAlign:zn&&{offset:zn},action:Zn?[]:[ti],mouseEnterDelay:Lr,mouseLeaveDelay:mi,onPopupVisibleChange:_r,forceRender:Pr,popupMotion:Ni,fresh:!0},Mn)}var Ke=ie(77900);function nt(Ot){var cn=Ot.id,vn=Ot.open,Mn=Ot.keyPath,yn=Ot.children,Sn="inline",bn=Re.useContext(ut),zn=bn.prefixCls,Zn=bn.forceSubMenuRender,qn=bn.motion,_r=bn.defaultMotions,ei=bn.mode,di=Re.useRef(!1);di.current=ei===Sn;var zr=Re.useState(!di.current),Lr=(0,ye.Z)(zr,2),mi=Lr[0],oi=Lr[1],ti=di.current?vn:!1;Re.useEffect(function(){di.current&&oi(!1)},[ei]);var Pr=(0,Ce.Z)({},Gn(Sn,qn,_r));Mn.length>1&&(Pr.motionAppear=!1);var Vr=Pr.onVisibleChanged;return Pr.onVisibleChanged=function(En){return!di.current&&!En&&oi(!0),Vr==null?void 0:Vr(En)},mi?null:Re.createElement(je,{mode:Sn,locked:!di.current},Re.createElement(Ke.default,(0,oe.Z)({visible:ti},Pr,{forceRender:Zn,removeOnLeave:!1,leavedClassName:"".concat(zn,"-hidden")}),function(En){var Yr=En.className,Li=En.style;return Re.createElement(Fr,{id:cn,className:Yr,style:Li},yn)}))}var rt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],it=["active"],Dt=function(cn){var vn,Mn=cn.style,yn=cn.className,Sn=cn.title,bn=cn.eventKey,zn=cn.warnKey,Zn=cn.disabled,qn=cn.internalPopupClose,_r=cn.children,ei=cn.itemIcon,di=cn.expandIcon,zr=cn.popupClassName,Lr=cn.popupOffset,mi=cn.popupStyle,oi=cn.onClick,ti=cn.onMouseEnter,Pr=cn.onMouseLeave,Vr=cn.onTitleClick,En=cn.onTitleMouseEnter,Yr=cn.onTitleMouseLeave,Li=(0,Ee.Z)(cn,rt),Yi=ct(bn),ni=Re.useContext(ut),tr=ni.prefixCls,Un=ni.mode,Qr=ni.openKeys,Dr=ni.disabled,fi=ni.overflowDisabled,Ni=ni.activeKey,si=ni.selectedKeys,ea=ni.itemIcon,ki=ni.expandIcon,Da=ni.onItemClick,jr=ni.onOpenChange,$r=ni.onActive,Di=Re.useContext(kt),Ii=Di._internalRenderSubMenuItem,La=Re.useContext(dt),So=La.isSubPathKey,Ga=Je(),la="".concat(tr,"-submenu"),Oa=Dr||Zn,Ma=Re.useRef(),vr=Re.useRef(),br=ei!=null?ei:ea,xr=di!=null?di:ki,Gr=Qr.includes(bn),ia=!fi&&Gr,wa=So(si,bn),Ea=Zt(bn,Oa,En,Yr),Sa=Ea.active,Aa=(0,Ee.Z)(Ea,it),_a=Re.useState(!1),mo=(0,ye.Z)(_a,2),co=mo[0],qo=mo[1],Bo=function(no){Oa||qo(no)},eo=function(no){Bo(!0),ti==null||ti({key:bn,domEvent:no})},Bs=function(no){Bo(!1),Pr==null||Pr({key:bn,domEvent:no})},Wo=Re.useMemo(function(){return Sa||(Un!=="inline"?co||So([Ni],bn):!1)},[Un,Sa,Ni,co,bn,So]),Ro=nn(Ga.length),fo=function(no){Oa||(Vr==null||Vr({key:bn,domEvent:no}),Un==="inline"&&jr(bn,!Gr))},za=Xe(function(go){oi==null||oi(Dn(go)),Da(go)}),Ei=function(no){Un!=="inline"&&jr(bn,no)},ta=function(){$r(bn)},Zi=Yi&&"".concat(Yi,"-popup"),Ci=Re.createElement("div",(0,oe.Z)({role:"menuitem",style:Ro,className:"".concat(la,"-title"),tabIndex:Oa?null:-1,ref:Ma,title:typeof Sn=="string"?Sn:null,"data-menu-id":fi&&Yi?null:Yi,"aria-expanded":ia,"aria-haspopup":!0,"aria-controls":Zi,"aria-disabled":Oa,onClick:fo,onFocus:ta},Aa),Sn,Re.createElement(Cn,{icon:Un!=="horizontal"?xr:void 0,props:(0,Ce.Z)((0,Ce.Z)({},cn),{},{isOpen:ia,isSubMenu:!0})},Re.createElement("i",{className:"".concat(la,"-arrow")}))),va=Re.useRef(Un);if(Un!=="inline"&&Ga.length>1?va.current="vertical":va.current=Un,!fi){var oa=va.current;Ci=Re.createElement(Rt,{mode:oa,prefixCls:la,visible:!qn&&ia&&Un!=="inline",popupClassName:zr,popupOffset:Lr,popupStyle:mi,popup:Re.createElement(je,{mode:oa==="horizontal"?"vertical":oa},Re.createElement(Fr,{id:Zi,ref:vr},_r)),disabled:Oa,onVisibleChange:Ei},Ci)}var to=Re.createElement(we.Z.Item,(0,oe.Z)({role:"none"},Li,{component:"li",style:Mn,className:xe()(la,"".concat(la,"-").concat(Un),yn,(vn={},(0,ke.Z)(vn,"".concat(la,"-open"),ia),(0,ke.Z)(vn,"".concat(la,"-active"),Wo),(0,ke.Z)(vn,"".concat(la,"-selected"),wa),(0,ke.Z)(vn,"".concat(la,"-disabled"),Oa),vn)),onMouseEnter:eo,onMouseLeave:Bs}),Ci,!fi&&Re.createElement(nt,{id:Zi,open:ia,keyPath:Ga},_r));return Ii&&(to=Ii(to,cn,{selected:wa,active:Wo,open:ia,disabled:Oa})),Re.createElement(je,{onItemClick:za,mode:Un==="horizontal"?"vertical":Un,itemIcon:br,expandIcon:xr},to)};function Ht(Ot){var cn=Ot.eventKey,vn=Ot.children,Mn=Je(cn),yn=Cr(vn,Mn),Sn=Ze();Re.useEffect(function(){if(Sn)return Sn.registerPath(cn,Mn),function(){Sn.unregisterPath(cn,Mn)}},[Mn]);var bn;return Sn?bn=yn:bn=Re.createElement(Dt,Ot,yn),Re.createElement(xt.Provider,{value:Mn},bn)}var sn=ie(76190),qt=["className","title","eventKey","children"],mn=["children"],An=function(cn){var vn=cn.className,Mn=cn.title,yn=cn.eventKey,Sn=cn.children,bn=(0,Ee.Z)(cn,qt),zn=Re.useContext(ut),Zn=zn.prefixCls,qn="".concat(Zn,"-item-group");return Re.createElement("li",(0,oe.Z)({role:"presentation"},bn,{onClick:function(ei){return ei.stopPropagation()},className:xe()(qn,vn)}),Re.createElement("div",{role:"presentation",className:"".concat(qn,"-title"),title:typeof Mn=="string"?Mn:void 0},Mn),Re.createElement("ul",{role:"group",className:"".concat(qn,"-list")},Sn))};function Tn(Ot){var cn=Ot.children,vn=(0,Ee.Z)(Ot,mn),Mn=Je(vn.eventKey),yn=Cr(cn,Mn),Sn=Ze();return Sn?yn:Re.createElement(An,(0,yt.Z)(vn,["warnKey"]),yn)}function Pn(Ot){var cn=Ot.className,vn=Ot.style,Mn=Re.useContext(ut),yn=Mn.prefixCls,Sn=Ze();return Sn?null:Re.createElement("li",{role:"separator",className:xe()("".concat(yn,"-item-divider"),cn),style:vn})}var Qt=["label","children","key","type"];function wn(Ot){return(Ot||[]).map(function(cn,vn){if(cn&&(0,sn.Z)(cn)==="object"){var Mn=cn,yn=Mn.label,Sn=Mn.children,bn=Mn.key,zn=Mn.type,Zn=(0,Ee.Z)(Mn,Qt),qn=bn!=null?bn:"tmp-".concat(vn);return Sn||zn==="group"?zn==="group"?Re.createElement(Tn,(0,oe.Z)({key:qn},Zn,{title:yn}),wn(Sn)):Re.createElement(Ht,(0,oe.Z)({key:qn},Zn,{title:yn}),wn(Sn)):zn==="divider"?Re.createElement(Pn,(0,oe.Z)({key:qn},Zn)):Re.createElement(Yn,(0,oe.Z)({key:qn},Zn),yn)}return null}).filter(function(cn){return cn})}function Xn(Ot,cn,vn){var Mn=Ot;return cn&&(Mn=wn(cn)),Cr(Mn,vn)}var Wn=["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"],sr=[],Jn=Re.forwardRef(function(Ot,cn){var vn,Mn,yn=Ot,Sn=yn.prefixCls,bn=Sn===void 0?"rc-menu":Sn,zn=yn.rootClassName,Zn=yn.style,qn=yn.className,_r=yn.tabIndex,ei=_r===void 0?0:_r,di=yn.items,zr=yn.children,Lr=yn.direction,mi=yn.id,oi=yn.mode,ti=oi===void 0?"vertical":oi,Pr=yn.inlineCollapsed,Vr=yn.disabled,En=yn.disabledOverflow,Yr=yn.subMenuOpenDelay,Li=Yr===void 0?.1:Yr,Yi=yn.subMenuCloseDelay,ni=Yi===void 0?.1:Yi,tr=yn.forceSubMenuRender,Un=yn.defaultOpenKeys,Qr=yn.openKeys,Dr=yn.activeKey,fi=yn.defaultActiveFirst,Ni=yn.selectable,si=Ni===void 0?!0:Ni,ea=yn.multiple,ki=ea===void 0?!1:ea,Da=yn.defaultSelectedKeys,jr=yn.selectedKeys,$r=yn.onSelect,Di=yn.onDeselect,Ii=yn.inlineIndent,La=Ii===void 0?24:Ii,So=yn.motion,Ga=yn.defaultMotions,la=yn.triggerSubMenuAction,Oa=la===void 0?"hover":la,Ma=yn.builtinPlacements,vr=yn.itemIcon,br=yn.expandIcon,xr=yn.overflowedIndicator,Gr=xr===void 0?"...":xr,ia=yn.overflowedIndicatorPopupClassName,wa=yn.getPopupContainer,Ea=yn.onClick,Sa=yn.onOpenChange,Aa=yn.onKeyDown,_a=yn.openAnimation,mo=yn.openTransitionName,co=yn._internalRenderMenuItem,qo=yn._internalRenderSubMenuItem,Bo=(0,Ee.Z)(yn,Wn),eo=Re.useMemo(function(){return Xn(zr,di,sr)},[zr,di]),Bs=Re.useState(!1),Wo=(0,ye.Z)(Bs,2),Ro=Wo[0],fo=Wo[1],za=Re.useRef(),Ei=bt(mi),ta=Lr==="rtl",Zi=(0,Te.Z)(Un,{value:Qr,postState:function(Bi){return Bi||sr}}),Ci=(0,ye.Z)(Zi,2),va=Ci[0],oa=Ci[1],to=function(Bi){var ua=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ca(){oa(Bi),Sa==null||Sa(Bi)}ua?(0,lt.flushSync)(Ca):Ca()},go=Re.useState(va),no=(0,ye.Z)(go,2),xn=no[0],gr=no[1],Hr=Re.useRef(!1),Ti=Re.useMemo(function(){return(ti==="inline"||ti==="vertical")&&Pr?["vertical",Pr]:[ti,!1]},[ti,Pr]),Ui=(0,ye.Z)(Ti,2),ji=Ui[0],ba=Ui[1],Co=ji==="inline",fn=Re.useState(ji),Xa=(0,ye.Z)(fn,2),ho=Xa[0],El=Xa[1],ys=Re.useState(ba),Oo=(0,ye.Z)(ys,2),Lo=Oo[0],As=Oo[1];Re.useEffect(function(){El(ji),As(ba),Hr.current&&(Co?oa(xn):to(sr))},[ji,ba]);var po=Re.useState(0),es=(0,ye.Z)(po,2),Gs=es[0],al=es[1],os=Gs>=eo.length-1||ho!=="horizontal"||En;Re.useEffect(function(){Co&&gr(va)},[va]),Re.useEffect(function(){return Hr.current=!0,function(){Hr.current=!1}},[]);var cs=gt(),lo=cs.registerPath,yl=cs.unregisterPath,ln=cs.refreshOverflowKeys,Ft=cs.isSubPathKey,st=cs.getKeyPath,mr=cs.getKeys,bi=cs.getSubPathKeys,Oi=Re.useMemo(function(){return{registerPath:lo,unregisterPath:yl}},[lo,yl]),Qi=Re.useMemo(function(){return{isSubPathKey:Ft}},[Ft]);Re.useEffect(function(){ln(os?sr:eo.slice(Gs+1).map(function(Mi){return Mi.key}))},[Gs,os]);var $i=(0,Te.Z)(Dr||fi&&((vn=eo[0])===null||vn===void 0?void 0:vn.key),{value:Dr}),Jr=(0,ye.Z)($i,2),lr=Jr[0],gi=Jr[1],ro=Xe(function(Mi){gi(Mi)}),Fo=Xe(function(){gi(void 0)});(0,Re.useImperativeHandle)(cn,function(){return{list:za.current,focus:function(Bi){var ua,Ca=mr(),Ta=pe(Ca,Ei),_o=Ta.elements,Mo=Ta.key2element,To=Ta.element2key,qs=ue(za.current,_o),Ya=lr!=null?lr:qs[0]?To.get(qs[0]):(ua=eo.find(function(Ml){return!Ml.props.disabled}))===null||ua===void 0?void 0:ua.key,ii=Mo.get(Ya);if(Ya&&ii){var _s;ii==null||(_s=ii.focus)===null||_s===void 0||_s.call(ii,Bi)}}}});var ca=(0,Te.Z)(Da||[],{value:jr,postState:function(Bi){return Array.isArray(Bi)?Bi:Bi==null?sr:[Bi]}}),Pa=(0,ye.Z)(ca,2),$o=Pa[0],Uo=Pa[1],bs=function(Bi){if(si){var ua=Bi.key,Ca=$o.includes(ua),Ta;ki?Ca?Ta=$o.filter(function(Mo){return Mo!==ua}):Ta=[].concat((0,Ye.Z)($o),[ua]):Ta=[ua],Uo(Ta);var _o=(0,Ce.Z)((0,Ce.Z)({},Bi),{},{selectedKeys:Ta});Ca?Di==null||Di(_o):$r==null||$r(_o)}!ki&&va.length&&ho!=="inline"&&to(sr)},ds=Xe(function(Mi){Ea==null||Ea(Dn(Mi)),bs(Mi)}),io=Xe(function(Mi,Bi){var ua=va.filter(function(Ta){return Ta!==Mi});if(Bi)ua.push(Mi);else if(ho!=="inline"){var Ca=bi(Mi);ua=ua.filter(function(Ta){return!Ca.has(Ta)})}(0,qe.Z)(va,ua,!0)||to(ua,!0)}),fs=function(Bi,ua){var Ca=ua!=null?ua:!va.includes(Bi);io(Bi,Ca)},No=se(ho,lr,ta,Ei,za,mr,st,gi,fs,Aa);Re.useEffect(function(){fo(!0)},[]);var Ra=Re.useMemo(function(){return{_internalRenderMenuItem:co,_internalRenderSubMenuItem:qo}},[co,qo]),wo=ho!=="horizontal"||En?eo:eo.map(function(Mi,Bi){return Re.createElement(je,{key:Mi.key,overflowDisabled:Bi>Gs},Mi)}),Os=Re.createElement(we.Z,(0,oe.Z)({id:mi,ref:za,prefixCls:"".concat(bn,"-overflow"),component:"ul",itemComponent:Yn,className:xe()(bn,"".concat(bn,"-root"),"".concat(bn,"-").concat(ho),qn,(Mn={},(0,ke.Z)(Mn,"".concat(bn,"-inline-collapsed"),Lo),(0,ke.Z)(Mn,"".concat(bn,"-rtl"),ta),Mn),zn),dir:Lr,style:Zn,role:"menu",tabIndex:ei,data:wo,renderRawItem:function(Bi){return Bi},renderRawRest:function(Bi){var ua=Bi.length,Ca=ua?eo.slice(-ua):null;return Re.createElement(Ht,{eventKey:St,title:Gr,disabled:os,internalPopupClose:ua===0,popupClassName:ia},Ca)},maxCount:ho!=="horizontal"||En?we.Z.INVALIDATE:we.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Bi){al(Bi)},onKeyDown:No},Bo));return Re.createElement(kt.Provider,{value:Ra},Re.createElement(Ue.Provider,{value:Ei},Re.createElement(je,{prefixCls:bn,rootClassName:zn,mode:ho,openKeys:va,rtl:ta,disabled:Vr,motion:Ro?So:null,defaultMotions:Ro?Ga:null,activeKey:lr,onActive:ro,onInactive:Fo,selectedKeys:$o,inlineIndent:La,subMenuOpenDelay:Li,subMenuCloseDelay:ni,forceSubMenuRender:tr,builtinPlacements:Ma,triggerSubMenuAction:Oa,getPopupContainer:wa,itemIcon:vr,expandIcon:br,onItemClick:ds,onOpenChange:io},Re.createElement(dt.Provider,{value:Qi},Os),Re.createElement("div",{style:{display:"none"},"aria-hidden":!0},Re.createElement(Fe.Provider,{value:Oi},eo)))))}),Ar=Jn,Fn=Ar;Fn.Item=Yn,Fn.SubMenu=Ht,Fn.ItemGroup=Tn,Fn.Divider=Pn;var dr=Fn},83836:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return zt}});var oe=ie(54476),ke=ie(33885),Ce=ie(42978),Ye=ie(75931),ye=ie(59301),Ee=ie(92310),he=ie.n(Ee),xe=ie(29301),we=ie(34280),Te=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],qe=void 0;function Ie(Bt,De){var ge=Bt.prefixCls,at=Bt.invalidate,Ct=Bt.item,It=Bt.renderItem,Qe=Bt.responsive,et=Bt.responsiveDisabled,Lt=Bt.registerSize,dn=Bt.itemKey,_t=Bt.className,tn=Bt.style,en=Bt.children,Jt=Bt.display,Vt=Bt.order,be=Bt.component,ce=be===void 0?"div":be,ue=(0,Ye.Z)(Bt,Te),de=Qe&&!Jt;function pe(Ne){Lt(dn,Ne)}ye.useEffect(function(){return function(){pe(null)}},[]);var se=It&&Ct!==qe?It(Ct,{index:Vt}):en,Le;at||(Le={opacity:de?0:1,height:de?0:qe,overflowY:de?"hidden":qe,order:Qe?Vt:qe,pointerEvents:de?"none":qe,position:de?"absolute":qe});var ht={};de&&(ht["aria-hidden"]=!0);var _e=ye.createElement(ce,(0,oe.Z)({className:he()(!at&&ge,_t),style:(0,ke.Z)((0,ke.Z)({},Le),tn)},ht,ue,{ref:De}),se);return Qe&&(_e=ye.createElement(xe.Z,{onResize:function(St){var gt=St.offsetWidth;pe(gt)},disabled:et},_e)),_e}var Re=ye.forwardRef(Ie);Re.displayName="Item";var lt=Re,Ue=ie(6089),We=ie(4676),ct=ie(16089);function tt(Bt){if(typeof MessageChannel=="undefined")(0,ct.Z)(Bt);else{var De=new MessageChannel;De.port1.onmessage=function(){return Bt()},De.port2.postMessage(void 0)}}function At(){var Bt=ye.useRef(null),De=function(at){Bt.current||(Bt.current=[],tt(function(){(0,We.unstable_batchedUpdates)(function(){Bt.current.forEach(function(Ct){Ct()}),Bt.current=null})})),Bt.current.push(at)};return De}function ut(Bt,De){var ge=ye.useState(De),at=(0,Ce.Z)(ge,2),Ct=at[0],It=at[1],Qe=(0,Ue.Z)(function(et){Bt(function(){It(et)})});return[Ct,Qe]}var ot=ye.createContext(null),je=["component"],Se=["className"],Fe=["className"],Ze=function(De,ge){var at=ye.useContext(ot);if(!at){var Ct=De.component,It=Ct===void 0?"div":Ct,Qe=(0,Ye.Z)(De,je);return ye.createElement(It,(0,oe.Z)({},Qe,{ref:ge}))}var et=at.className,Lt=(0,Ye.Z)(at,Se),dn=De.className,_t=(0,Ye.Z)(De,Fe);return ye.createElement(ot.Provider,{value:null},ye.createElement(lt,(0,oe.Z)({ref:ge,className:he()(et,dn)},Lt,_t)))},xt=ye.forwardRef(Ze);xt.displayName="RawItem";var Je=xt,dt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Be="responsive",kt="invalidate";function He(Bt){return"+ ".concat(Bt.length," ...")}function Tt(Bt,De){var ge=Bt.prefixCls,at=ge===void 0?"rc-overflow":ge,Ct=Bt.data,It=Ct===void 0?[]:Ct,Qe=Bt.renderItem,et=Bt.renderRawItem,Lt=Bt.itemKey,dn=Bt.itemWidth,_t=dn===void 0?10:dn,tn=Bt.ssr,en=Bt.style,Jt=Bt.className,Vt=Bt.maxCount,be=Bt.renderRest,ce=Bt.renderRawRest,ue=Bt.prefix,de=Bt.suffix,pe=Bt.component,se=pe===void 0?"div":pe,Le=Bt.itemComponent,ht=Bt.onVisibleChange,_e=(0,Ye.Z)(Bt,dt),Ne=tn==="full",St=At(),gt=ut(St,null),Xe=(0,Ce.Z)(gt,2),wt=Xe[0],Xt=Xe[1],bt=wt||0,$t=ut(St,new Map),on=(0,Ce.Z)($t,2),vt=on[0],Oe=on[1],yt=ut(St,0),jt=(0,Ce.Z)(yt,2),Zt=jt[0],nn=jt[1],Cn=ut(St,0),In=(0,Ce.Z)(Cn,2),Dn=In[0],Kn=In[1],Vn=ut(St,0),_n=(0,Ce.Z)(Vn,2),or=_n[0],wr=_n[1],Tr=ut(St,0),Yn=(0,Ce.Z)(Tr,2),hr=Yn[0],kr=Yn[1],Qn=(0,ye.useState)(null),Fr=(0,Ce.Z)(Qn,2),ci=Fr[0],Cr=Fr[1],pi=(0,ye.useState)(null),ai=(0,Ce.Z)(pi,2),nr=ai[0],yr=ai[1],Hn=ye.useMemo(function(){return nr===null&&Ne?Number.MAX_SAFE_INTEGER:nr||0},[nr,wt]),Gn=(0,ye.useState)(!1),Or=(0,Ce.Z)(Gn,2),Rt=Or[0],Ke=Or[1],nt="".concat(at,"-item"),rt=Math.max(Zt,Dn),it=Vt===Be,Dt=It.length&&it,Ht=Vt===kt,sn=Dt||typeof Vt=="number"&&It.length>Vt,qt=(0,ye.useMemo)(function(){var Sn=It;return Dt?wt===null&&Ne?Sn=It:Sn=It.slice(0,Math.min(It.length,bt/_t)):typeof Vt=="number"&&(Sn=It.slice(0,Vt)),Sn},[It,_t,wt,Vt,Dt]),mn=(0,ye.useMemo)(function(){return Dt?It.slice(Hn+1):It.slice(qt.length)},[It,qt,Dt,Hn]),An=(0,ye.useCallback)(function(Sn,bn){var zn;return typeof Lt=="function"?Lt(Sn):(zn=Lt&&(Sn==null?void 0:Sn[Lt]))!==null&&zn!==void 0?zn:bn},[Lt]),Tn=(0,ye.useCallback)(Qe||function(Sn){return Sn},[Qe]);function Pn(Sn,bn,zn){nr===Sn&&(bn===void 0||bn===ci)||(yr(Sn),zn||(Ke(Sn<It.length-1),ht==null||ht(Sn)),bn!==void 0&&Cr(bn))}function Qt(Sn,bn){Xt(bn.clientWidth)}function wn(Sn,bn){Oe(function(zn){var Zn=new Map(zn);return bn===null?Zn.delete(Sn):Zn.set(Sn,bn),Zn})}function Xn(Sn,bn){Kn(bn),nn(Dn)}function Wn(Sn,bn){wr(bn)}function sr(Sn,bn){kr(bn)}function Jn(Sn){return vt.get(An(qt[Sn],Sn))}(0,we.Z)(function(){if(bt&&typeof rt=="number"&&qt){var Sn=or+hr,bn=qt.length,zn=bn-1;if(!bn){Pn(0,null);return}for(var Zn=0;Zn<bn;Zn+=1){var qn=Jn(Zn);if(Ne&&(qn=qn||0),qn===void 0){Pn(Zn-1,void 0,!0);break}if(Sn+=qn,zn===0&&Sn<=bt||Zn===zn-1&&Sn+Jn(zn)<=bt){Pn(zn,null);break}else if(Sn+rt>bt){Pn(Zn-1,Sn-qn-hr+Dn);break}}de&&Jn(0)+hr>bt&&Cr(null)}},[bt,vt,Dn,or,hr,An,qt]);var Ar=Rt&&!!mn.length,Fn={};ci!==null&&Dt&&(Fn={position:"absolute",left:ci,top:0});var dr={prefixCls:nt,responsive:Dt,component:Le,invalidate:Ht},Ot=et?function(Sn,bn){var zn=An(Sn,bn);return ye.createElement(ot.Provider,{key:zn,value:(0,ke.Z)((0,ke.Z)({},dr),{},{order:bn,item:Sn,itemKey:zn,registerSize:wn,display:bn<=Hn})},et(Sn,bn))}:function(Sn,bn){var zn=An(Sn,bn);return ye.createElement(lt,(0,oe.Z)({},dr,{order:bn,key:zn,item:Sn,renderItem:Tn,itemKey:zn,registerSize:wn,display:bn<=Hn}))},cn={order:Ar?Hn:Number.MAX_SAFE_INTEGER,className:"".concat(nt,"-rest"),registerSize:Xn,display:Ar},vn=be||He,Mn=ce?ye.createElement(ot.Provider,{value:(0,ke.Z)((0,ke.Z)({},dr),cn)},ce(mn)):ye.createElement(lt,(0,oe.Z)({},dr,cn),typeof vn=="function"?vn(mn):vn),yn=ye.createElement(se,(0,oe.Z)({className:he()(!Ht&&at,Jt),style:en,ref:De},_e),ue&&ye.createElement(lt,(0,oe.Z)({},dr,{responsive:it,responsiveDisabled:!Dt,order:-1,className:"".concat(nt,"-prefix"),registerSize:Wn,display:!0}),ue),qt.map(Ot),sn?Mn:null,de&&ye.createElement(lt,(0,oe.Z)({},dr,{responsive:it,responsiveDisabled:!Dt,order:Hn,className:"".concat(nt,"-suffix"),registerSize:sr,display:!0,style:Fn}),de));return it?ye.createElement(xe.Z,{onResize:Qt,disabled:!Dt},yn):yn}var mt=ye.forwardRef(Tt);mt.displayName="Overflow",mt.Item=Je,mt.RESPONSIVE=Be,mt.INVALIDATE=kt;var Et=mt,zt=Et},91735:function(gn,Kt){"use strict";Kt.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(gn,Kt,ie){"use strict";ie.d(Kt,{ZP:function(){return he}});var oe=ie(42978),ke=ie(59301),Ce=ie(47273),Ye=0,ye=(0,Ce.Z)();function Ee(){var xe;return ye?(xe=Ye,Ye+=1):xe="TEST_OR_SSR",xe}function he(xe){var we=ke.useState(),Te=(0,oe.Z)(we,2),qe=Te[0],Ie=Te[1];return ke.useEffect(function(){Ie("rc_select_".concat(Ee()))},[]),xe||qe}},77861:function(gn,Kt,ie){"use strict";ie.d(Kt,{Ac:function(){return wt},Xo:function(){return Dn},Wx:function(){return Vn},ZP:function(){return nt},lk:function(){return ot}});var oe=ie(54476),ke=ie(94480),Ce=ie(20068),Ye=ie(33885),ye=ie(42978),Ee=ie(75931),he=ie(76190),xe=ie(18929),we=ie(48736),Te=ie(59301),qe=ie(92310),Ie=ie.n(qe),Re=ie(34280),lt=ie(49658),Ue=ie(10228),We=ie(8654),ct=function(it){var Dt=it.className,Ht=it.customizeIcon,sn=it.customizeIconProps,qt=it.onMouseDown,mn=it.onClick,An=it.children,Tn;return typeof Ht=="function"?Tn=Ht(sn):Tn=Ht,Te.createElement("span",{className:Dt,onMouseDown:function(Qt){Qt.preventDefault(),qt&&qt(Qt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:mn,"aria-hidden":!0},Tn!==void 0?Tn:Te.createElement("span",{className:Ie()(Dt.split(/\s+/).map(function(Pn){return"".concat(Pn,"-icon")}))},An))},tt=ct;function At(rt,it,Dt,Ht,sn){var qt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,mn=arguments.length>6?arguments[6]:void 0,An=arguments.length>7?arguments[7]:void 0,Tn=Te.useMemo(function(){if((0,he.Z)(Ht)==="object")return Ht.clearIcon;if(sn)return sn},[Ht,sn]),Pn=Te.useMemo(function(){return!!(!qt&&Ht&&(Dt.length||mn)&&!(An==="combobox"&&mn===""))},[Ht,qt,Dt.length,mn,An]);return{allowClear:Pn,clearIcon:Te.createElement(tt,{className:"".concat(rt,"-clear"),onMouseDown:it,customizeIcon:Tn},"\xD7")}}var ut=Te.createContext(null);function ot(){return Te.useContext(ut)}function je(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,it=Te.useState(!1),Dt=(0,ye.Z)(it,2),Ht=Dt[0],sn=Dt[1],qt=Te.useRef(null),mn=function(){window.clearTimeout(qt.current)};Te.useEffect(function(){return mn},[]);var An=function(Pn,Qt){mn(),qt.current=window.setTimeout(function(){sn(Pn),Qt&&Qt()},rt)};return[Ht,An,mn]}function Se(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,it=Te.useRef(null),Dt=Te.useRef(null);Te.useEffect(function(){return function(){window.clearTimeout(Dt.current)}},[]);function Ht(sn){(sn||it.current===null)&&(it.current=sn),window.clearTimeout(Dt.current),Dt.current=window.setTimeout(function(){it.current=null},rt)}return[function(){return it.current},Ht]}function Fe(rt,it,Dt,Ht){var sn=Te.useRef(null);sn.current={open:it,triggerOpen:Dt,customizedTrigger:Ht},Te.useEffect(function(){function qt(mn){var An;if(!((An=sn.current)!==null&&An!==void 0&&An.customizedTrigger)){var Tn=mn.target;Tn.shadowRoot&&mn.composed&&(Tn=mn.composedPath()[0]||Tn),sn.current.open&&rt().filter(function(Pn){return Pn}).every(function(Pn){return!Pn.contains(Tn)&&Pn!==Tn})&&sn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",qt),function(){return window.removeEventListener("mousedown",qt)}},[])}var Ze=ie(26112),xt=ie(83836),Je=function(it,Dt){var Ht,sn,qt=it.prefixCls,mn=it.id,An=it.inputElement,Tn=it.disabled,Pn=it.tabIndex,Qt=it.autoFocus,wn=it.autoComplete,Xn=it.editable,Wn=it.activeDescendantId,sr=it.value,Jn=it.maxLength,Ar=it.onKeyDown,Fn=it.onMouseDown,dr=it.onChange,Ot=it.onPaste,cn=it.onCompositionStart,vn=it.onCompositionEnd,Mn=it.open,yn=it.attrs,Sn=An||Te.createElement("input",null),bn=Sn,zn=bn.ref,Zn=bn.props,qn=Zn.onKeyDown,_r=Zn.onChange,ei=Zn.onMouseDown,di=Zn.onCompositionStart,zr=Zn.onCompositionEnd,Lr=Zn.style;return(0,we.Kp)(!("maxLength"in Sn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Sn=Te.cloneElement(Sn,(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({type:"search"},Zn),{},{id:mn,ref:(0,We.sQ)(Dt,zn),disabled:Tn,tabIndex:Pn,autoComplete:wn||"off",autoFocus:Qt,className:Ie()("".concat(qt,"-selection-search-input"),(Ht=Sn)===null||Ht===void 0||(sn=Ht.props)===null||sn===void 0?void 0:sn.className),role:"combobox","aria-label":"Search","aria-expanded":Mn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(mn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(mn,"_list"),"aria-activedescendant":Mn?Wn:void 0},yn),{},{value:Xn?sr:"",maxLength:Jn,readOnly:!Xn,unselectable:Xn?null:"on",style:(0,Ye.Z)((0,Ye.Z)({},Lr),{},{opacity:Xn?null:0}),onKeyDown:function(oi){Ar(oi),qn&&qn(oi)},onMouseDown:function(oi){Fn(oi),ei&&ei(oi)},onChange:function(oi){dr(oi),_r&&_r(oi)},onCompositionStart:function(oi){cn(oi),di&&di(oi)},onCompositionEnd:function(oi){vn(oi),zr&&zr(oi)},onPaste:Ot})),Sn},dt=Te.forwardRef(Je);dt.displayName="Input";var Be=dt;function kt(rt){return Array.isArray(rt)?rt:rt!==void 0?[rt]:[]}var He=typeof window!="undefined"&&window.document&&window.document.documentElement,Tt=He;function mt(rt){return rt!=null}function Et(rt){return!rt&&rt!==0}function zt(rt){return["string","number"].includes((0,he.Z)(rt))}function Bt(rt){var it=void 0;return rt&&(zt(rt.title)?it=rt.title.toString():zt(rt.label)&&(it=rt.label.toString())),it}function De(rt,it){Tt?Te.useLayoutEffect(rt,it):Te.useEffect(rt,it)}function ge(rt){var it;return(it=rt.key)!==null&&it!==void 0?it:rt.value}var at=function(it){it.preventDefault(),it.stopPropagation()},Ct=function(it){var Dt=it.id,Ht=it.prefixCls,sn=it.values,qt=it.open,mn=it.searchValue,An=it.autoClearSearchValue,Tn=it.inputRef,Pn=it.placeholder,Qt=it.disabled,wn=it.mode,Xn=it.showSearch,Wn=it.autoFocus,sr=it.autoComplete,Jn=it.activeDescendantId,Ar=it.tabIndex,Fn=it.removeIcon,dr=it.maxTagCount,Ot=it.maxTagTextLength,cn=it.maxTagPlaceholder,vn=cn===void 0?function(Ni){return"+ ".concat(Ni.length," ...")}:cn,Mn=it.tagRender,yn=it.onToggleOpen,Sn=it.onRemove,bn=it.onInputChange,zn=it.onInputPaste,Zn=it.onInputKeyDown,qn=it.onInputMouseDown,_r=it.onInputCompositionStart,ei=it.onInputCompositionEnd,di=Te.useRef(null),zr=(0,Te.useState)(0),Lr=(0,ye.Z)(zr,2),mi=Lr[0],oi=Lr[1],ti=(0,Te.useState)(!1),Pr=(0,ye.Z)(ti,2),Vr=Pr[0],En=Pr[1],Yr="".concat(Ht,"-selection"),Li=qt||wn==="multiple"&&An===!1||wn==="tags"?mn:"",Yi=wn==="tags"||wn==="multiple"&&An===!1||Xn&&(qt||Vr);De(function(){oi(di.current.scrollWidth)},[Li]);function ni(Ni,si,ea,ki,Da){return Te.createElement("span",{className:Ie()("".concat(Yr,"-item"),(0,Ce.Z)({},"".concat(Yr,"-item-disabled"),ea)),title:Bt(Ni)},Te.createElement("span",{className:"".concat(Yr,"-item-content")},si),ki&&Te.createElement(tt,{className:"".concat(Yr,"-item-remove"),onMouseDown:at,onClick:Da,customizeIcon:Fn},"\xD7"))}function tr(Ni,si,ea,ki,Da){var jr=function(Di){at(Di),yn(!qt)};return Te.createElement("span",{onMouseDown:jr},Mn({label:si,value:Ni,disabled:ea,closable:ki,onClose:Da}))}function Un(Ni){var si=Ni.disabled,ea=Ni.label,ki=Ni.value,Da=!Qt&&!si,jr=ea;if(typeof Ot=="number"&&(typeof ea=="string"||typeof ea=="number")){var $r=String(jr);$r.length>Ot&&(jr="".concat($r.slice(0,Ot),"..."))}var Di=function(La){La&&La.stopPropagation(),Sn(Ni)};return typeof Mn=="function"?tr(ki,jr,si,Da,Di):ni(Ni,jr,si,Da,Di)}function Qr(Ni){var si=typeof vn=="function"?vn(Ni):vn;return ni({title:si},si,!1)}var Dr=Te.createElement("div",{className:"".concat(Yr,"-search"),style:{width:mi},onFocus:function(){En(!0)},onBlur:function(){En(!1)}},Te.createElement(Be,{ref:Tn,open:qt,prefixCls:Ht,id:Dt,inputElement:null,disabled:Qt,autoFocus:Wn,autoComplete:sr,editable:Yi,activeDescendantId:Jn,value:Li,onKeyDown:Zn,onMouseDown:qn,onChange:bn,onPaste:zn,onCompositionStart:_r,onCompositionEnd:ei,tabIndex:Ar,attrs:(0,Ze.Z)(it,!0)}),Te.createElement("span",{ref:di,className:"".concat(Yr,"-search-mirror"),"aria-hidden":!0},Li,"\xA0")),fi=Te.createElement(xt.Z,{prefixCls:"".concat(Yr,"-overflow"),data:sn,renderItem:Un,renderRest:Qr,suffix:Dr,itemKey:ge,maxCount:dr});return Te.createElement(Te.Fragment,null,fi,!sn.length&&!Li&&Te.createElement("span",{className:"".concat(Yr,"-placeholder")},Pn))},It=Ct,Qe=function(it){var Dt=it.inputElement,Ht=it.prefixCls,sn=it.id,qt=it.inputRef,mn=it.disabled,An=it.autoFocus,Tn=it.autoComplete,Pn=it.activeDescendantId,Qt=it.mode,wn=it.open,Xn=it.values,Wn=it.placeholder,sr=it.tabIndex,Jn=it.showSearch,Ar=it.searchValue,Fn=it.activeValue,dr=it.maxLength,Ot=it.onInputKeyDown,cn=it.onInputMouseDown,vn=it.onInputChange,Mn=it.onInputPaste,yn=it.onInputCompositionStart,Sn=it.onInputCompositionEnd,bn=it.title,zn=Te.useState(!1),Zn=(0,ye.Z)(zn,2),qn=Zn[0],_r=Zn[1],ei=Qt==="combobox",di=ei||Jn,zr=Xn[0],Lr=Ar||"";ei&&Fn&&!qn&&(Lr=Fn),Te.useEffect(function(){ei&&_r(!1)},[ei,Fn]);var mi=Qt!=="combobox"&&!wn&&!Jn?!1:!!Lr,oi=bn===void 0?Bt(zr):bn,ti=function(){if(zr)return null;var Vr=mi?{visibility:"hidden"}:void 0;return Te.createElement("span",{className:"".concat(Ht,"-selection-placeholder"),style:Vr},Wn)};return Te.createElement(Te.Fragment,null,Te.createElement("span",{className:"".concat(Ht,"-selection-search")},Te.createElement(Be,{ref:qt,prefixCls:Ht,id:sn,open:wn,inputElement:Dt,disabled:mn,autoFocus:An,autoComplete:Tn,editable:di,activeDescendantId:Pn,value:Lr,onKeyDown:Ot,onMouseDown:cn,onChange:function(Vr){_r(!0),vn(Vr)},onPaste:Mn,onCompositionStart:yn,onCompositionEnd:Sn,tabIndex:sr,attrs:(0,Ze.Z)(it,!0),maxLength:ei?dr:void 0})),!ei&&zr?Te.createElement("span",{className:"".concat(Ht,"-selection-item"),title:oi,style:mi?{visibility:"hidden"}:void 0},zr.label):null,ti())},et=Qe;function Lt(rt){return![Ue.Z.ESC,Ue.Z.SHIFT,Ue.Z.BACKSPACE,Ue.Z.TAB,Ue.Z.WIN_KEY,Ue.Z.ALT,Ue.Z.META,Ue.Z.WIN_KEY_RIGHT,Ue.Z.CTRL,Ue.Z.SEMICOLON,Ue.Z.EQUALS,Ue.Z.CAPS_LOCK,Ue.Z.CONTEXT_MENU,Ue.Z.F1,Ue.Z.F2,Ue.Z.F3,Ue.Z.F4,Ue.Z.F5,Ue.Z.F6,Ue.Z.F7,Ue.Z.F8,Ue.Z.F9,Ue.Z.F10,Ue.Z.F11,Ue.Z.F12].includes(rt)}var dn=function(it,Dt){var Ht=(0,Te.useRef)(null),sn=(0,Te.useRef)(!1),qt=it.prefixCls,mn=it.open,An=it.mode,Tn=it.showSearch,Pn=it.tokenWithEnter,Qt=it.autoClearSearchValue,wn=it.onSearch,Xn=it.onSearchSubmit,Wn=it.onToggleOpen,sr=it.onInputKeyDown,Jn=it.domRef;Te.useImperativeHandle(Dt,function(){return{focus:function(){Ht.current.focus()},blur:function(){Ht.current.blur()}}});var Ar=Se(0),Fn=(0,ye.Z)(Ar,2),dr=Fn[0],Ot=Fn[1],cn=function(Lr){var mi=Lr.which;(mi===Ue.Z.UP||mi===Ue.Z.DOWN)&&Lr.preventDefault(),sr&&sr(Lr),mi===Ue.Z.ENTER&&An==="tags"&&!sn.current&&!mn&&(Xn==null||Xn(Lr.target.value)),Lt(mi)&&Wn(!0)},vn=function(){Ot(!0)},Mn=(0,Te.useRef)(null),yn=function(Lr){wn(Lr,!0,sn.current)!==!1&&Wn(!0)},Sn=function(){sn.current=!0},bn=function(Lr){sn.current=!1,An!=="combobox"&&yn(Lr.target.value)},zn=function(Lr){var mi=Lr.target.value;if(Pn&&Mn.current&&/[\r\n]/.test(Mn.current)){var oi=Mn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");mi=mi.replace(oi,Mn.current)}Mn.current=null,yn(mi)},Zn=function(Lr){var mi=Lr.clipboardData,oi=mi.getData("text");Mn.current=oi},qn=function(Lr){var mi=Lr.target;if(mi!==Ht.current){var oi=document.body.style.msTouchAction!==void 0;oi?setTimeout(function(){Ht.current.focus()}):Ht.current.focus()}},_r=function(Lr){var mi=dr();Lr.target!==Ht.current&&!mi&&An!=="combobox"&&Lr.preventDefault(),(An!=="combobox"&&(!Tn||!mi)||!mn)&&(mn&&Qt!==!1&&wn("",!0,!1),Wn())},ei={inputRef:Ht,onInputKeyDown:cn,onInputMouseDown:vn,onInputChange:zn,onInputPaste:Zn,onInputCompositionStart:Sn,onInputCompositionEnd:bn},di=An==="multiple"||An==="tags"?Te.createElement(It,(0,oe.Z)({},it,ei)):Te.createElement(et,(0,oe.Z)({},it,ei));return Te.createElement("div",{ref:Jn,className:"".concat(qt,"-selector"),onClick:qn,onMouseDown:_r},di)},_t=Te.forwardRef(dn);_t.displayName="Selector";var tn=_t,en=ie(35593),Jt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Vt=function(it){var Dt=it===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Dt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Dt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Dt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Dt,adjustY:1},htmlRegion:"scroll"}}},be=function(it,Dt){var Ht=it.prefixCls,sn=it.disabled,qt=it.visible,mn=it.children,An=it.popupElement,Tn=it.animation,Pn=it.transitionName,Qt=it.dropdownStyle,wn=it.dropdownClassName,Xn=it.direction,Wn=Xn===void 0?"ltr":Xn,sr=it.placement,Jn=it.builtinPlacements,Ar=it.dropdownMatchSelectWidth,Fn=it.dropdownRender,dr=it.dropdownAlign,Ot=it.getPopupContainer,cn=it.empty,vn=it.getTriggerDOMNode,Mn=it.onPopupVisibleChange,yn=it.onPopupMouseEnter,Sn=(0,Ee.Z)(it,Jt),bn="".concat(Ht,"-dropdown"),zn=An;Fn&&(zn=Fn(An));var Zn=Te.useMemo(function(){return Jn||Vt(Ar)},[Jn,Ar]),qn=Tn?"".concat(bn,"-").concat(Tn):Pn,_r=typeof Ar=="number",ei=Te.useMemo(function(){return _r?null:Ar===!1?"minWidth":"width"},[Ar,_r]),di=Qt;_r&&(di=(0,Ye.Z)((0,Ye.Z)({},di),{},{width:Ar}));var zr=Te.useRef(null);return Te.useImperativeHandle(Dt,function(){return{getPopupElement:function(){return zr.current}}}),Te.createElement(en.Z,(0,oe.Z)({},Sn,{showAction:Mn?["click"]:[],hideAction:Mn?["click"]:[],popupPlacement:sr||(Wn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Zn,prefixCls:bn,popupTransitionName:qn,popup:Te.createElement("div",{ref:zr,onMouseEnter:yn},zn),stretch:ei,popupAlign:dr,popupVisible:qt,getPopupContainer:Ot,popupClassName:Ie()(wn,(0,Ce.Z)({},"".concat(bn,"-empty"),cn)),popupStyle:di,getTriggerDOMNode:vn,onPopupVisibleChange:Mn}),mn)},ce=Te.forwardRef(be);ce.displayName="SelectTrigger";var ue=ce,de=ie(66712);function pe(rt,it){var Dt=rt.key,Ht;return"value"in rt&&(Ht=rt.value),Dt!=null?Dt:Ht!==void 0?Ht:"rc-index-key-".concat(it)}function se(rt,it){var Dt=rt||{},Ht=Dt.label,sn=Dt.value,qt=Dt.options,mn=Dt.groupLabel,An=Ht||(it?"children":"label");return{label:An,value:sn||"value",options:qt||"options",groupLabel:mn||An}}function Le(rt){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Dt=it.fieldNames,Ht=it.childrenAsData,sn=[],qt=se(Dt,!1),mn=qt.label,An=qt.value,Tn=qt.options,Pn=qt.groupLabel;function Qt(wn,Xn){wn.forEach(function(Wn){if(Xn||!(Tn in Wn)){var sr=Wn[An];sn.push({key:pe(Wn,sn.length),groupOption:Xn,data:Wn,label:Wn[mn],value:sr})}else{var Jn=Wn[Pn];Jn===void 0&&Ht&&(Jn=Wn.label),sn.push({key:pe(Wn,sn.length),group:!0,data:Wn,label:Jn}),Qt(Wn[Tn],!0)}})}return Qt(rt,!1),sn}function ht(rt){var it=(0,Ye.Z)({},rt);return"props"in it||Object.defineProperty(it,"props",{get:function(){return(0,we.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),it}}),it}function _e(rt,it){if(!it||!it.length)return null;var Dt=!1;function Ht(qt,mn){var An=(0,de.Z)(mn),Tn=An[0],Pn=An.slice(1);if(!Tn)return[qt];var Qt=qt.split(Tn);return Dt=Dt||Qt.length>1,Qt.reduce(function(wn,Xn){return[].concat((0,ke.Z)(wn),(0,ke.Z)(Ht(Xn,Pn)))},[]).filter(function(wn){return wn})}var sn=Ht(rt,it);return Dt?sn:null}var Ne=["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"],St=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function gt(rt){return rt==="tags"||rt==="multiple"}var Xe=Te.forwardRef(function(rt,it){var Dt,Ht,sn=rt.id,qt=rt.prefixCls,mn=rt.className,An=rt.showSearch,Tn=rt.tagRender,Pn=rt.direction,Qt=rt.omitDomProps,wn=rt.displayValues,Xn=rt.onDisplayValuesChange,Wn=rt.emptyOptions,sr=rt.notFoundContent,Jn=sr===void 0?"Not Found":sr,Ar=rt.onClear,Fn=rt.mode,dr=rt.disabled,Ot=rt.loading,cn=rt.getInputElement,vn=rt.getRawInputElement,Mn=rt.open,yn=rt.defaultOpen,Sn=rt.onDropdownVisibleChange,bn=rt.activeValue,zn=rt.onActiveValueChange,Zn=rt.activeDescendantId,qn=rt.searchValue,_r=rt.autoClearSearchValue,ei=rt.onSearch,di=rt.onSearchSplit,zr=rt.tokenSeparators,Lr=rt.allowClear,mi=rt.suffixIcon,oi=rt.clearIcon,ti=rt.OptionList,Pr=rt.animation,Vr=rt.transitionName,En=rt.dropdownStyle,Yr=rt.dropdownClassName,Li=rt.dropdownMatchSelectWidth,Yi=rt.dropdownRender,ni=rt.dropdownAlign,tr=rt.placement,Un=rt.builtinPlacements,Qr=rt.getPopupContainer,Dr=rt.showAction,fi=Dr===void 0?[]:Dr,Ni=rt.onFocus,si=rt.onBlur,ea=rt.onKeyUp,ki=rt.onKeyDown,Da=rt.onMouseDown,jr=(0,Ee.Z)(rt,Ne),$r=gt(Fn),Di=(An!==void 0?An:$r)||Fn==="combobox",Ii=(0,Ye.Z)({},jr);St.forEach(function(st){delete Ii[st]}),Qt==null||Qt.forEach(function(st){delete Ii[st]});var La=Te.useState(!1),So=(0,ye.Z)(La,2),Ga=So[0],la=So[1];Te.useEffect(function(){la((0,lt.Z)())},[]);var Oa=Te.useRef(null),Ma=Te.useRef(null),vr=Te.useRef(null),br=Te.useRef(null),xr=Te.useRef(null),Gr=je(),ia=(0,ye.Z)(Gr,3),wa=ia[0],Ea=ia[1],Sa=ia[2];Te.useImperativeHandle(it,function(){var st,mr;return{focus:(st=br.current)===null||st===void 0?void 0:st.focus,blur:(mr=br.current)===null||mr===void 0?void 0:mr.blur,scrollTo:function(Oi){var Qi;return(Qi=xr.current)===null||Qi===void 0?void 0:Qi.scrollTo(Oi)}}});var Aa=Te.useMemo(function(){var st;if(Fn!=="combobox")return qn;var mr=(st=wn[0])===null||st===void 0?void 0:st.value;return typeof mr=="string"||typeof mr=="number"?String(mr):""},[qn,Fn,wn]),_a=Fn==="combobox"&&typeof cn=="function"&&cn()||null,mo=typeof vn=="function"&&vn(),co=(0,We.x1)(Ma,mo==null||(Dt=mo.props)===null||Dt===void 0?void 0:Dt.ref),qo=Te.useState(!1),Bo=(0,ye.Z)(qo,2),eo=Bo[0],Bs=Bo[1];(0,Re.Z)(function(){Bs(!0)},[]);var Wo=(0,xe.Z)(!1,{defaultValue:yn,value:Mn}),Ro=(0,ye.Z)(Wo,2),fo=Ro[0],za=Ro[1],Ei=eo?fo:!1,ta=!Jn&&Wn;(dr||ta&&Ei&&Fn==="combobox")&&(Ei=!1);var Zi=ta?!1:Ei,Ci=Te.useCallback(function(st){var mr=st!==void 0?st:!Ei;dr||(za(mr),Ei!==mr&&(Sn==null||Sn(mr)))},[dr,Ei,za,Sn]),va=Te.useMemo(function(){return(zr||[]).some(function(st){return[`
|
|
|
`,`\r
|
|
|
`].includes(st)})},[zr]),oa=function(mr,bi,Oi){var Qi=!0,$i=mr;zn==null||zn(null);var Jr=Oi?null:_e(mr,zr);return Fn!=="combobox"&&Jr&&($i="",di==null||di(Jr),Ci(!1),Qi=!1),ei&&Aa!==$i&&ei($i,{source:bi?"typing":"effect"}),Qi},to=function(mr){!mr||!mr.trim()||ei(mr,{source:"submit"})};Te.useEffect(function(){!Ei&&!$r&&Fn!=="combobox"&&oa("",!1,!1)},[Ei]),Te.useEffect(function(){fo&&dr&&za(!1),dr&&Ea(!1)},[dr]);var go=Se(),no=(0,ye.Z)(go,2),xn=no[0],gr=no[1],Hr=function(mr){var bi=xn(),Oi=mr.which;if(Oi===Ue.Z.ENTER&&(Fn!=="combobox"&&mr.preventDefault(),Ei||Ci(!0)),gr(!!Aa),Oi===Ue.Z.BACKSPACE&&!bi&&$r&&!Aa&&wn.length){for(var Qi=(0,ke.Z)(wn),$i=null,Jr=Qi.length-1;Jr>=0;Jr-=1){var lr=Qi[Jr];if(!lr.disabled){Qi.splice(Jr,1),$i=lr;break}}$i&&Xn(Qi,{type:"remove",values:[$i]})}for(var gi=arguments.length,ro=new Array(gi>1?gi-1:0),Fo=1;Fo<gi;Fo++)ro[Fo-1]=arguments[Fo];if(Ei&&xr.current){var ca;(ca=xr.current).onKeyDown.apply(ca,[mr].concat(ro))}ki==null||ki.apply(void 0,[mr].concat(ro))},Ti=function(mr){for(var bi=arguments.length,Oi=new Array(bi>1?bi-1:0),Qi=1;Qi<bi;Qi++)Oi[Qi-1]=arguments[Qi];if(Ei&&xr.current){var $i;($i=xr.current).onKeyUp.apply($i,[mr].concat(Oi))}ea==null||ea.apply(void 0,[mr].concat(Oi))},Ui=function(mr){var bi=wn.filter(function(Oi){return Oi!==mr});Xn(bi,{type:"remove",values:[mr]})},ji=Te.useRef(!1),ba=function(){Ea(!0),dr||(Ni&&!ji.current&&Ni.apply(void 0,arguments),fi.includes("focus")&&Ci(!0)),ji.current=!0},Co=function(){Ea(!1,function(){ji.current=!1,Ci(!1)}),!dr&&(Aa&&(Fn==="tags"?ei(Aa,{source:"submit"}):Fn==="multiple"&&ei("",{source:"blur"})),si&&si.apply(void 0,arguments))},fn=[];Te.useEffect(function(){return function(){fn.forEach(function(st){return clearTimeout(st)}),fn.splice(0,fn.length)}},[]);var Xa=function(mr){var bi,Oi=mr.target,Qi=(bi=vr.current)===null||bi===void 0?void 0:bi.getPopupElement();if(Qi&&Qi.contains(Oi)){var $i=setTimeout(function(){var ro=fn.indexOf($i);if(ro!==-1&&fn.splice(ro,1),Sa(),!Ga&&!Qi.contains(document.activeElement)){var Fo;(Fo=br.current)===null||Fo===void 0||Fo.focus()}});fn.push($i)}for(var Jr=arguments.length,lr=new Array(Jr>1?Jr-1:0),gi=1;gi<Jr;gi++)lr[gi-1]=arguments[gi];Da==null||Da.apply(void 0,[mr].concat(lr))},ho=Te.useState({}),El=(0,ye.Z)(ho,2),ys=El[1];function Oo(){ys({})}var Lo;mo&&(Lo=function(mr){Ci(mr)}),Fe(function(){var st;return[Oa.current,(st=vr.current)===null||st===void 0?void 0:st.getPopupElement()]},Zi,Ci,!!mo);var As=Te.useMemo(function(){return(0,Ye.Z)((0,Ye.Z)({},rt),{},{notFoundContent:Jn,open:Ei,triggerOpen:Zi,id:sn,showSearch:Di,multiple:$r,toggleOpen:Ci})},[rt,Jn,Zi,Ei,sn,Di,$r,Ci]),po=!!mi||Ot,es;po&&(es=Te.createElement(tt,{className:Ie()("".concat(qt,"-arrow"),(0,Ce.Z)({},"".concat(qt,"-arrow-loading"),Ot)),customizeIcon:mi,customizeIconProps:{loading:Ot,searchValue:Aa,open:Ei,focused:wa,showSearch:Di}}));var Gs=function(){var mr;Ar==null||Ar(),(mr=br.current)===null||mr===void 0||mr.focus(),Xn([],{type:"clear",values:wn}),oa("",!1,!1)},al=At(qt,Gs,wn,Lr,oi,dr,Aa,Fn),os=al.allowClear,cs=al.clearIcon,lo=Te.createElement(ti,{ref:xr}),yl=Ie()(qt,mn,(Ht={},(0,Ce.Z)(Ht,"".concat(qt,"-focused"),wa),(0,Ce.Z)(Ht,"".concat(qt,"-multiple"),$r),(0,Ce.Z)(Ht,"".concat(qt,"-single"),!$r),(0,Ce.Z)(Ht,"".concat(qt,"-allow-clear"),Lr),(0,Ce.Z)(Ht,"".concat(qt,"-show-arrow"),po),(0,Ce.Z)(Ht,"".concat(qt,"-disabled"),dr),(0,Ce.Z)(Ht,"".concat(qt,"-loading"),Ot),(0,Ce.Z)(Ht,"".concat(qt,"-open"),Ei),(0,Ce.Z)(Ht,"".concat(qt,"-customize-input"),_a),(0,Ce.Z)(Ht,"".concat(qt,"-show-search"),Di),Ht)),ln=Te.createElement(ue,{ref:vr,disabled:dr,prefixCls:qt,visible:Zi,popupElement:lo,animation:Pr,transitionName:Vr,dropdownStyle:En,dropdownClassName:Yr,direction:Pn,dropdownMatchSelectWidth:Li,dropdownRender:Yi,dropdownAlign:ni,placement:tr,builtinPlacements:Un,getPopupContainer:Qr,empty:Wn,getTriggerDOMNode:function(){return Ma.current},onPopupVisibleChange:Lo,onPopupMouseEnter:Oo},mo?Te.cloneElement(mo,{ref:co}):Te.createElement(tn,(0,oe.Z)({},rt,{domRef:Ma,prefixCls:qt,inputElement:_a,ref:br,id:sn,showSearch:Di,autoClearSearchValue:_r,mode:Fn,activeDescendantId:Zn,tagRender:Tn,values:wn,open:Ei,onToggleOpen:Ci,activeValue:bn,searchValue:Aa,onSearch:oa,onSearchSubmit:to,onRemove:Ui,tokenWithEnter:va}))),Ft;return mo?Ft=ln:Ft=Te.createElement("div",(0,oe.Z)({className:yl},Ii,{ref:Oa,onMouseDown:Xa,onKeyDown:Hr,onKeyUp:Ti,onFocus:ba,onBlur:Co}),wa&&!Ei&&Te.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(wn.map(function(st){var mr=st.label,bi=st.value;return["number","string"].includes((0,he.Z)(mr))?mr:bi}).join(", "))),ln,es,os&&cs),Te.createElement(ut.Provider,{value:As},Ft)}),wt=Xe,Xt=function(rt,it){var Dt=Te.useRef({values:new Map,options:new Map}),Ht=Te.useMemo(function(){var qt=Dt.current,mn=qt.values,An=qt.options,Tn=rt.map(function(wn){if(wn.label===void 0){var Xn;return(0,Ye.Z)((0,Ye.Z)({},wn),{},{label:(Xn=mn.get(wn.value))===null||Xn===void 0?void 0:Xn.label})}return wn}),Pn=new Map,Qt=new Map;return Tn.forEach(function(wn){Pn.set(wn.value,wn),Qt.set(wn.value,it.get(wn.value)||An.get(wn.value))}),Dt.current.values=Pn,Dt.current.options=Qt,Tn},[rt,it]),sn=Te.useCallback(function(qt){return it.get(qt)||Dt.current.options.get(qt)},[it]);return[Ht,sn]};function bt(rt,it){return kt(rt).join("").toUpperCase().includes(it)}var $t=function(rt,it,Dt,Ht,sn){return Te.useMemo(function(){if(!Dt||Ht===!1)return rt;var qt=it.options,mn=it.label,An=it.value,Tn=[],Pn=typeof Ht=="function",Qt=Dt.toUpperCase(),wn=Pn?Ht:function(Wn,sr){return sn?bt(sr[sn],Qt):sr[qt]?bt(sr[mn!=="children"?mn:"label"],Qt):bt(sr[An],Qt)},Xn=Pn?function(Wn){return ht(Wn)}:function(Wn){return Wn};return rt.forEach(function(Wn){if(Wn[qt]){var sr=wn(Dt,Xn(Wn));if(sr)Tn.push(Wn);else{var Jn=Wn[qt].filter(function(Ar){return wn(Dt,Xn(Ar))});Jn.length&&Tn.push((0,Ye.Z)((0,Ye.Z)({},Wn),{},(0,Ce.Z)({},qt,Jn)))}return}wn(Dt,Xn(Wn))&&Tn.push(Wn)}),Tn},[rt,Ht,sn,Dt,it])},on=ie(17115),vt=ie(11592),Oe=["children","value"],yt=["children"];function jt(rt){var it=rt,Dt=it.key,Ht=it.props,sn=Ht.children,qt=Ht.value,mn=(0,Ee.Z)(Ht,Oe);return(0,Ye.Z)({key:Dt,value:qt!==void 0?qt:Dt,children:sn},mn)}function Zt(rt){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,vt.Z)(rt).map(function(Dt,Ht){if(!Te.isValidElement(Dt)||!Dt.type)return null;var sn=Dt,qt=sn.type.isSelectOptGroup,mn=sn.key,An=sn.props,Tn=An.children,Pn=(0,Ee.Z)(An,yt);return it||!qt?jt(Dt):(0,Ye.Z)((0,Ye.Z)({key:"__RC_SELECT_GRP__".concat(mn===null?Ht:mn,"__"),label:mn},Pn),{},{options:Zt(Tn)})}).filter(function(Dt){return Dt})}function nn(rt,it,Dt,Ht,sn){return Te.useMemo(function(){var qt=rt,mn=!rt;mn&&(qt=Zt(it));var An=new Map,Tn=new Map,Pn=function(Xn,Wn,sr){sr&&typeof sr=="string"&&Xn.set(Wn[sr],Wn)};function Qt(wn){for(var Xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wn=0;Wn<wn.length;Wn+=1){var sr=wn[Wn];!sr[Dt.options]||Xn?(An.set(sr[Dt.value],sr),Pn(Tn,sr,Dt.label),Pn(Tn,sr,Ht),Pn(Tn,sr,sn)):Qt(sr[Dt.options],!0)}}return Qt(qt),{options:qt,valueOptions:An,labelOptions:Tn}},[rt,it,Dt,Ht,sn])}function Cn(rt){var it=Te.useRef();it.current=rt;var Dt=Te.useCallback(function(){return it.current.apply(it,arguments)},[]);return Dt}var In=function(){return null};In.isSelectOptGroup=!0;var Dn=In,Kn=function(){return null};Kn.isSelectOption=!0;var Vn=Kn,_n=ie(80547),or=ie(2738),wr=ie(48911),Tr=Te.createContext(null),Yn=Tr;function hr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var kr=["disabled","title","children","style","className"];function Qn(rt){return typeof rt=="string"||typeof rt=="number"}var Fr=function(it,Dt){var Ht=ot(),sn=Ht.prefixCls,qt=Ht.id,mn=Ht.open,An=Ht.multiple,Tn=Ht.mode,Pn=Ht.searchValue,Qt=Ht.toggleOpen,wn=Ht.notFoundContent,Xn=Ht.onPopupScroll,Wn=Te.useContext(Yn),sr=Wn.flattenOptions,Jn=Wn.onActiveValue,Ar=Wn.defaultActiveFirstOption,Fn=Wn.onSelect,dr=Wn.menuItemSelectedIcon,Ot=Wn.rawValues,cn=Wn.fieldNames,vn=Wn.virtual,Mn=Wn.direction,yn=Wn.listHeight,Sn=Wn.listItemHeight,bn="".concat(sn,"-item"),zn=(0,_n.Z)(function(){return sr},[mn,sr],function(ni,tr){return tr[0]&&ni[1]!==tr[1]}),Zn=Te.useRef(null),qn=function(tr){tr.preventDefault()},_r=function(tr){Zn.current&&Zn.current.scrollTo(typeof tr=="number"?{index:tr}:tr)},ei=function(tr){for(var Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Qr=zn.length,Dr=0;Dr<Qr;Dr+=1){var fi=(tr+Dr*Un+Qr)%Qr,Ni=zn[fi],si=Ni.group,ea=Ni.data;if(!si&&!ea.disabled)return fi}return-1},di=Te.useState(function(){return ei(0)}),zr=(0,ye.Z)(di,2),Lr=zr[0],mi=zr[1],oi=function(tr){var Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;mi(tr);var Qr={source:Un?"keyboard":"mouse"},Dr=zn[tr];if(!Dr){Jn(null,-1,Qr);return}Jn(Dr.value,tr,Qr)};(0,Te.useEffect)(function(){oi(Ar!==!1?ei(0):-1)},[zn.length,Pn]);var ti=Te.useCallback(function(ni){return Ot.has(ni)&&Tn!=="combobox"},[Tn,(0,ke.Z)(Ot).toString(),Ot.size]);(0,Te.useEffect)(function(){var ni=setTimeout(function(){if(!An&&mn&&Ot.size===1){var Un=Array.from(Ot)[0],Qr=zn.findIndex(function(Dr){var fi=Dr.data;return fi.value===Un});Qr!==-1&&(oi(Qr),_r(Qr))}});if(mn){var tr;(tr=Zn.current)===null||tr===void 0||tr.scrollTo(void 0)}return function(){return clearTimeout(ni)}},[mn,Pn,sr.length]);var Pr=function(tr){tr!==void 0&&Fn(tr,{selected:!Ot.has(tr)}),An||Qt(!1)};if(Te.useImperativeHandle(Dt,function(){return{onKeyDown:function(tr){var Un=tr.which,Qr=tr.ctrlKey;switch(Un){case Ue.Z.N:case Ue.Z.P:case Ue.Z.UP:case Ue.Z.DOWN:{var Dr=0;if(Un===Ue.Z.UP?Dr=-1:Un===Ue.Z.DOWN?Dr=1:hr()&&Qr&&(Un===Ue.Z.N?Dr=1:Un===Ue.Z.P&&(Dr=-1)),Dr!==0){var fi=ei(Lr+Dr,Dr);_r(fi),oi(fi,!0)}break}case Ue.Z.ENTER:{var Ni=zn[Lr];Ni&&!Ni.data.disabled?Pr(Ni.value):Pr(void 0),mn&&tr.preventDefault();break}case Ue.Z.ESC:Qt(!1),mn&&tr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(tr){_r(tr)}}}),zn.length===0)return Te.createElement("div",{role:"listbox",id:"".concat(qt,"_list"),className:"".concat(bn,"-empty"),onMouseDown:qn},wn);var Vr=Object.keys(cn).map(function(ni){return cn[ni]}),En=function(tr){return tr.label};function Yr(ni,tr){var Un=ni.group;return{role:Un?"presentation":"option",id:"".concat(qt,"_list_").concat(tr)}}var Li=function(tr){var Un=zn[tr];if(!Un)return null;var Qr=Un.data||{},Dr=Qr.value,fi=Un.group,Ni=(0,Ze.Z)(Qr,!0),si=En(Un);return Un?Te.createElement("div",(0,oe.Z)({"aria-label":typeof si=="string"&&!fi?si:null},Ni,{key:tr},Yr(Un,tr),{"aria-selected":ti(Dr)}),Dr):null},Yi={role:"listbox",id:"".concat(qt,"_list")};return Te.createElement(Te.Fragment,null,vn&&Te.createElement("div",(0,oe.Z)({},Yi,{style:{height:0,width:0,overflow:"hidden"}}),Li(Lr-1),Li(Lr),Li(Lr+1)),Te.createElement(wr.Z,{itemKey:"key",ref:Zn,data:zn,height:yn,itemHeight:Sn,fullHeight:!1,onMouseDown:qn,onScroll:Xn,virtual:vn,direction:Mn,innerProps:vn?null:Yi},function(ni,tr){var Un,Qr=ni.group,Dr=ni.groupOption,fi=ni.data,Ni=ni.label,si=ni.value,ea=fi.key;if(Qr){var ki,Da=(ki=fi.title)!==null&&ki!==void 0?ki:Qn(Ni)?Ni.toString():void 0;return Te.createElement("div",{className:Ie()(bn,"".concat(bn,"-group")),title:Da},Ni!==void 0?Ni:ea)}var jr=fi.disabled,$r=fi.title,Di=fi.children,Ii=fi.style,La=fi.className,So=(0,Ee.Z)(fi,kr),Ga=(0,or.Z)(So,Vr),la=ti(si),Oa="".concat(bn,"-option"),Ma=Ie()(bn,Oa,La,(Un={},(0,Ce.Z)(Un,"".concat(Oa,"-grouped"),Dr),(0,Ce.Z)(Un,"".concat(Oa,"-active"),Lr===tr&&!jr),(0,Ce.Z)(Un,"".concat(Oa,"-disabled"),jr),(0,Ce.Z)(Un,"".concat(Oa,"-selected"),la),Un)),vr=En(ni),br=!dr||typeof dr=="function"||la,xr=typeof vr=="number"?vr:vr||si,Gr=Qn(xr)?xr.toString():void 0;return $r!==void 0&&(Gr=$r),Te.createElement("div",(0,oe.Z)({},(0,Ze.Z)(Ga),vn?{}:Yr(ni,tr),{"aria-selected":la,className:Ma,title:Gr,onMouseMove:function(){Lr===tr||jr||oi(tr)},onClick:function(){jr||Pr(si)},style:Ii}),Te.createElement("div",{className:"".concat(Oa,"-content")},xr),Te.isValidElement(dr)||la,br&&Te.createElement(tt,{className:"".concat(bn,"-option-state"),customizeIcon:dr,customizeIconProps:{isSelected:la}},la?"\u2713":null))}))},ci=Te.forwardRef(Fr);ci.displayName="OptionList";var Cr=ci;function pi(rt){var it=rt.mode,Dt=rt.options,Ht=rt.children,sn=rt.backfill,qt=rt.allowClear,mn=rt.placeholder,An=rt.getInputElement,Tn=rt.showSearch,Pn=rt.onSearch,Qt=rt.defaultOpen,wn=rt.autoFocus,Xn=rt.labelInValue,Wn=rt.value,sr=rt.inputValue,Jn=rt.optionLabelProp,Ar=isMultiple(it),Fn=Tn!==void 0?Tn:Ar||it==="combobox",dr=Dt||convertChildrenToData(Ht);if(warning(it!=="tags"||dr.every(function(Mn){return!Mn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),it==="tags"||it==="combobox"){var Ot=dr.some(function(Mn){return Mn.options?Mn.options.some(function(yn){return typeof("value"in yn?yn.value:yn.key)=="number"}):typeof("value"in Mn?Mn.value:Mn.key)=="number"});warning(!Ot,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(it!=="combobox"||!Jn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(it==="combobox"||!sn,"`backfill` only works with `combobox` mode."),warning(it==="combobox"||!An,"`getInputElement` only work with `combobox` mode."),noteOnce(it!=="combobox"||!An||!qt||!mn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Pn&&!Fn&&it!=="combobox"&&it!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Qt||wn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Wn!=null){var cn=toArray(Wn);warning(!Xn||cn.every(function(Mn){return _typeof(Mn)==="object"&&("key"in Mn||"value"in Mn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ar||Array.isArray(Wn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ht){var vn=null;toNodeArray(Ht).some(function(Mn){if(!React.isValidElement(Mn)||!Mn.type)return!1;var yn=Mn,Sn=yn.type;if(Sn.isSelectOption)return!1;if(Sn.isSelectOptGroup){var bn=toNodeArray(Mn.props.children).every(function(zn){return!React.isValidElement(zn)||!Mn.type||zn.type.isSelectOption?!0:(vn=zn.type,!1)});return!bn}return vn=Sn,!0}),vn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(vn.displayName||vn.name||vn,"`.")),warning(sr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ai(rt,it){if(rt){var Dt=function Ht(sn){for(var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mn=0;mn<sn.length;mn++){var An=sn[mn];if(An[it==null?void 0:it.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!qt&&Array.isArray(An[it==null?void 0:it.options])&&Ht(An[it==null?void 0:it.options],!0))break}};Dt(rt)}}var nr=null,yr=["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"],Hn=["inputValue"];function Gn(rt){return!rt||(0,he.Z)(rt)!=="object"}var Or=Te.forwardRef(function(rt,it){var Dt=rt.id,Ht=rt.mode,sn=rt.prefixCls,qt=sn===void 0?"rc-select":sn,mn=rt.backfill,An=rt.fieldNames,Tn=rt.inputValue,Pn=rt.searchValue,Qt=rt.onSearch,wn=rt.autoClearSearchValue,Xn=wn===void 0?!0:wn,Wn=rt.onSelect,sr=rt.onDeselect,Jn=rt.dropdownMatchSelectWidth,Ar=Jn===void 0?!0:Jn,Fn=rt.filterOption,dr=rt.filterSort,Ot=rt.optionFilterProp,cn=rt.optionLabelProp,vn=rt.options,Mn=rt.children,yn=rt.defaultActiveFirstOption,Sn=rt.menuItemSelectedIcon,bn=rt.virtual,zn=rt.direction,Zn=rt.listHeight,qn=Zn===void 0?200:Zn,_r=rt.listItemHeight,ei=_r===void 0?20:_r,di=rt.value,zr=rt.defaultValue,Lr=rt.labelInValue,mi=rt.onChange,oi=(0,Ee.Z)(rt,yr),ti=(0,on.ZP)(Dt),Pr=gt(Ht),Vr=!!(!vn&&Mn),En=Te.useMemo(function(){return Fn===void 0&&Ht==="combobox"?!1:Fn},[Fn,Ht]),Yr=Te.useMemo(function(){return se(An,Vr)},[JSON.stringify(An),Vr]),Li=(0,xe.Z)("",{value:Pn!==void 0?Pn:Tn,postState:function(ta){return ta||""}}),Yi=(0,ye.Z)(Li,2),ni=Yi[0],tr=Yi[1],Un=nn(vn,Mn,Yr,Ot,cn),Qr=Un.valueOptions,Dr=Un.labelOptions,fi=Un.options,Ni=Te.useCallback(function(Ei){var ta=kt(Ei);return ta.map(function(Zi){var Ci,va,oa,to,go;if(Gn(Zi))Ci=Zi;else{var no;oa=Zi.key,va=Zi.label,Ci=(no=Zi.value)!==null&&no!==void 0?no:oa}var xn=Qr.get(Ci);if(xn){var gr;if(va===void 0&&(va=xn==null?void 0:xn[cn||Yr.label]),oa===void 0&&(oa=(gr=xn==null?void 0:xn.key)!==null&&gr!==void 0?gr:Ci),to=xn==null?void 0:xn.disabled,go=xn==null?void 0:xn.title,0)var Hr}return{label:va,value:Ci,key:oa,disabled:to,title:go}})},[Yr,cn,Qr]),si=(0,xe.Z)(zr,{value:di}),ea=(0,ye.Z)(si,2),ki=ea[0],Da=ea[1],jr=Te.useMemo(function(){var Ei,ta=Ni(ki);return Ht==="combobox"&&Et((Ei=ta[0])===null||Ei===void 0?void 0:Ei.value)?[]:ta},[ki,Ni,Ht]),$r=Xt(jr,Qr),Di=(0,ye.Z)($r,2),Ii=Di[0],La=Di[1],So=Te.useMemo(function(){if(!Ht&&Ii.length===1){var Ei=Ii[0];if(Ei.value===null&&(Ei.label===null||Ei.label===void 0))return[]}return Ii.map(function(ta){var Zi;return(0,Ye.Z)((0,Ye.Z)({},ta),{},{label:(Zi=ta.label)!==null&&Zi!==void 0?Zi:ta.value})})},[Ht,Ii]),Ga=Te.useMemo(function(){return new Set(Ii.map(function(Ei){return Ei.value}))},[Ii]);Te.useEffect(function(){if(Ht==="combobox"){var Ei,ta=(Ei=Ii[0])===null||Ei===void 0?void 0:Ei.value;tr(mt(ta)?String(ta):"")}},[Ii]);var la=Cn(function(Ei,ta){var Zi,Ci=ta!=null?ta:Ei;return Zi={},(0,Ce.Z)(Zi,Yr.value,Ei),(0,Ce.Z)(Zi,Yr.label,Ci),Zi}),Oa=Te.useMemo(function(){if(Ht!=="tags")return fi;var Ei=(0,ke.Z)(fi),ta=function(Ci){return Qr.has(Ci)};return(0,ke.Z)(Ii).sort(function(Zi,Ci){return Zi.value<Ci.value?-1:1}).forEach(function(Zi){var Ci=Zi.value;ta(Ci)||Ei.push(la(Ci,Zi.label))}),Ei},[la,fi,Qr,Ii,Ht]),Ma=$t(Oa,Yr,ni,En,Ot),vr=Te.useMemo(function(){return Ht!=="tags"||!ni||Ma.some(function(Ei){return Ei[Ot||"value"]===ni})||Ma.some(function(Ei){return Ei[Yr.value]===ni})?Ma:[la(ni)].concat((0,ke.Z)(Ma))},[la,Ot,Ht,Ma,ni,Yr]),br=Te.useMemo(function(){return dr?(0,ke.Z)(vr).sort(function(Ei,ta){return dr(Ei,ta)}):vr},[vr,dr]),xr=Te.useMemo(function(){return Le(br,{fieldNames:Yr,childrenAsData:Vr})},[br,Yr,Vr]),Gr=function(ta){var Zi=Ni(ta);if(Da(Zi),mi&&(Zi.length!==Ii.length||Zi.some(function(oa,to){var go;return((go=Ii[to])===null||go===void 0?void 0:go.value)!==(oa==null?void 0:oa.value)}))){var Ci=Lr?Zi:Zi.map(function(oa){return oa.value}),va=Zi.map(function(oa){return ht(La(oa.value))});mi(Pr?Ci:Ci[0],Pr?va:va[0])}},ia=Te.useState(null),wa=(0,ye.Z)(ia,2),Ea=wa[0],Sa=wa[1],Aa=Te.useState(0),_a=(0,ye.Z)(Aa,2),mo=_a[0],co=_a[1],qo=yn!==void 0?yn:Ht!=="combobox",Bo=Te.useCallback(function(Ei,ta){var Zi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ci=Zi.source,va=Ci===void 0?"keyboard":Ci;co(ta),mn&&Ht==="combobox"&&Ei!==null&&va==="keyboard"&&Sa(String(Ei))},[mn,Ht]),eo=function(ta,Zi,Ci){var va=function(){var ji,ba=La(ta);return[Lr?{label:ba==null?void 0:ba[Yr.label],value:ta,key:(ji=ba==null?void 0:ba.key)!==null&&ji!==void 0?ji:ta}:ta,ht(ba)]};if(Zi&&Wn){var oa=va(),to=(0,ye.Z)(oa,2),go=to[0],no=to[1];Wn(go,no)}else if(!Zi&&sr&&Ci!=="clear"){var xn=va(),gr=(0,ye.Z)(xn,2),Hr=gr[0],Ti=gr[1];sr(Hr,Ti)}},Bs=Cn(function(Ei,ta){var Zi,Ci=Pr?ta.selected:!0;Ci?Zi=Pr?[].concat((0,ke.Z)(Ii),[Ei]):[Ei]:Zi=Ii.filter(function(va){return va.value!==Ei}),Gr(Zi),eo(Ei,Ci),Ht==="combobox"?Sa(""):(!gt||Xn)&&(tr(""),Sa(""))}),Wo=function(ta,Zi){Gr(ta);var Ci=Zi.type,va=Zi.values;(Ci==="remove"||Ci==="clear")&&va.forEach(function(oa){eo(oa.value,!1,Ci)})},Ro=function(ta,Zi){if(tr(ta),Sa(null),Zi.source==="submit"){var Ci=(ta||"").trim();if(Ci){var va=Array.from(new Set([].concat((0,ke.Z)(Ga),[Ci])));Gr(va),eo(Ci,!0),tr("")}return}Zi.source!=="blur"&&(Ht==="combobox"&&Gr(ta),Qt==null||Qt(ta))},fo=function(ta){var Zi=ta;Ht!=="tags"&&(Zi=ta.map(function(va){var oa=Dr.get(va);return oa==null?void 0:oa.value}).filter(function(va){return va!==void 0}));var Ci=Array.from(new Set([].concat((0,ke.Z)(Ga),(0,ke.Z)(Zi))));Gr(Ci),Ci.forEach(function(va){eo(va,!0)})},za=Te.useMemo(function(){var Ei=bn!==!1&&Ar!==!1;return(0,Ye.Z)((0,Ye.Z)({},Un),{},{flattenOptions:xr,onActiveValue:Bo,defaultActiveFirstOption:qo,onSelect:Bs,menuItemSelectedIcon:Sn,rawValues:Ga,fieldNames:Yr,virtual:Ei,direction:zn,listHeight:qn,listItemHeight:ei,childrenAsData:Vr})},[Un,xr,Bo,qo,Bs,Sn,Ga,Yr,bn,Ar,qn,ei,Vr]);return Te.createElement(Yn.Provider,{value:za},Te.createElement(wt,(0,oe.Z)({},oi,{id:ti,prefixCls:qt,ref:it,omitDomProps:Hn,mode:Ht,displayValues:So,onDisplayValuesChange:Wo,direction:zn,searchValue:ni,onSearch:Ro,autoClearSearchValue:Xn,onSearchSplit:fo,dropdownMatchSelectWidth:Ar,OptionList:Cr,emptyOptions:!xr.length,activeValue:Ea,activeDescendantId:"".concat(ti,"_list_").concat(mo)})))}),Rt=Or;Rt.Option=Vn,Rt.OptGroup=Dn;var Ke=Rt,nt=Ke},9296:function(gn,Kt,ie){"use strict";ie.r(Kt),ie.d(Kt,{ResizableTextArea:function(){return dt},default:function(){return Et}});var oe=ie(54476),ke=ie(33885),Ce=ie(20068),Ye=ie(76190),ye=ie(42978),Ee=ie(75931),he=ie(94480),xe=ie(92310),we=ie.n(xe),Te=ie(93681),qe=ie(5643),Ie=ie(18929),Re=ie(59301),lt=ie(29301),Ue=ie(34280),We=ie(16089),ct=`
|
|
|
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;
|
|
|
`,tt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],At={},ut;function ot(zt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=zt.getAttribute("id")||zt.getAttribute("data-reactid")||zt.getAttribute("name");if(Bt&&At[De])return At[De];var ge=window.getComputedStyle(zt),at=ge.getPropertyValue("box-sizing")||ge.getPropertyValue("-moz-box-sizing")||ge.getPropertyValue("-webkit-box-sizing"),Ct=parseFloat(ge.getPropertyValue("padding-bottom"))+parseFloat(ge.getPropertyValue("padding-top")),It=parseFloat(ge.getPropertyValue("border-bottom-width"))+parseFloat(ge.getPropertyValue("border-top-width")),Qe=tt.map(function(Lt){return"".concat(Lt,":").concat(ge.getPropertyValue(Lt))}).join(";"),et={sizingStyle:Qe,paddingSize:Ct,borderSize:It,boxSizing:at};return Bt&&De&&(At[De]=et),et}function je(zt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ut||(ut=document.createElement("textarea"),ut.setAttribute("tab-index","-1"),ut.setAttribute("aria-hidden","true"),document.body.appendChild(ut)),zt.getAttribute("wrap")?ut.setAttribute("wrap",zt.getAttribute("wrap")):ut.removeAttribute("wrap");var at=ot(zt,Bt),Ct=at.paddingSize,It=at.borderSize,Qe=at.boxSizing,et=at.sizingStyle;ut.setAttribute("style","".concat(et,";").concat(ct)),ut.value=zt.value||zt.placeholder||"";var Lt=void 0,dn=void 0,_t,tn=ut.scrollHeight;if(Qe==="border-box"?tn+=It:Qe==="content-box"&&(tn-=Ct),De!==null||ge!==null){ut.value=" ";var en=ut.scrollHeight-Ct;De!==null&&(Lt=en*De,Qe==="border-box"&&(Lt=Lt+Ct+It),tn=Math.max(Lt,tn)),ge!==null&&(dn=en*ge,Qe==="border-box"&&(dn=dn+Ct+It),_t=tn>dn?"":"hidden",tn=Math.min(dn,tn))}var Jt={height:tn,overflowY:_t,resize:"none"};return Lt&&(Jt.minHeight=Lt),dn&&(Jt.maxHeight=dn),Jt}var Se=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Fe=0,Ze=1,xt=2,Je=Re.forwardRef(function(zt,Bt){var De=zt,ge=De.prefixCls,at=De.onPressEnter,Ct=De.defaultValue,It=De.value,Qe=De.autoSize,et=De.onResize,Lt=De.className,dn=De.style,_t=De.disabled,tn=De.onChange,en=De.onInternalAutoSize,Jt=(0,Ee.Z)(De,Se),Vt=(0,Ie.Z)(Ct,{value:It,postState:function(Dn){return Dn!=null?Dn:""}}),be=(0,ye.Z)(Vt,2),ce=be[0],ue=be[1],de=function(Dn){ue(Dn.target.value),tn==null||tn(Dn)},pe=Re.useRef();Re.useImperativeHandle(Bt,function(){return{textArea:pe.current}});var se=Re.useMemo(function(){return Qe&&(0,Ye.Z)(Qe)==="object"?[Qe.minRows,Qe.maxRows]:[]},[Qe]),Le=(0,ye.Z)(se,2),ht=Le[0],_e=Le[1],Ne=!!Qe,St=function(){try{if(document.activeElement===pe.current){var Dn=pe.current,Kn=Dn.selectionStart,Vn=Dn.selectionEnd,_n=Dn.scrollTop;pe.current.setSelectionRange(Kn,Vn),pe.current.scrollTop=_n}}catch(or){}},gt=Re.useState(xt),Xe=(0,ye.Z)(gt,2),wt=Xe[0],Xt=Xe[1],bt=Re.useState(),$t=(0,ye.Z)(bt,2),on=$t[0],vt=$t[1],Oe=function(){Xt(Fe)};(0,Ue.Z)(function(){Ne&&Oe()},[It,ht,_e,Ne]),(0,Ue.Z)(function(){if(wt===Fe)Xt(Ze);else if(wt===Ze){var In=je(pe.current,!1,ht,_e);Xt(xt),vt(In)}else St()},[wt]);var yt=Re.useRef(),jt=function(){We.Z.cancel(yt.current)},Zt=function(Dn){wt===xt&&(et==null||et(Dn),Qe&&(jt(),yt.current=(0,We.Z)(function(){Oe()})))};Re.useEffect(function(){return jt},[]);var nn=Ne?on:null,Cn=(0,ke.Z)((0,ke.Z)({},dn),nn);return(wt===Fe||wt===Ze)&&(Cn.overflowY="hidden",Cn.overflowX="hidden"),Re.createElement(lt.Z,{onResize:Zt,disabled:!(Qe||et)},Re.createElement("textarea",(0,oe.Z)({},Jt,{ref:pe,style:Cn,className:we()(ge,Lt,(0,Ce.Z)({},"".concat(ge,"-disabled"),_t)),disabled:_t,value:ce,onChange:de})))}),dt=Je,Be=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function kt(zt,Bt){return(0,he.Z)(zt||"").slice(0,Bt).join("")}function He(zt,Bt,De,ge){var at=De;return zt?at=kt(De,ge):(0,he.Z)(Bt||"").length<De.length&&(0,he.Z)(De||"").length>ge&&(at=Bt),at}var Tt=Re.forwardRef(function(zt,Bt){var De,ge=zt.defaultValue,at=zt.value,Ct=zt.onFocus,It=zt.onBlur,Qe=zt.onChange,et=zt.allowClear,Lt=zt.maxLength,dn=zt.onCompositionStart,_t=zt.onCompositionEnd,tn=zt.suffix,en=zt.prefixCls,Jt=en===void 0?"rc-textarea":en,Vt=zt.classes,be=zt.showCount,ce=zt.className,ue=zt.style,de=zt.disabled,pe=zt.hidden,se=zt.classNames,Le=zt.styles,ht=zt.onResize,_e=(0,Ee.Z)(zt,Be),Ne=(0,Ie.Z)(ge,{value:at,defaultValue:ge}),St=(0,ye.Z)(Ne,2),gt=St[0],Xe=St[1],wt=(0,Re.useRef)(null),Xt=Re.useState(!1),bt=(0,ye.Z)(Xt,2),$t=bt[0],on=bt[1],vt=Re.useState(!1),Oe=(0,ye.Z)(vt,2),yt=Oe[0],jt=Oe[1],Zt=Re.useRef(),nn=Re.useRef(0),Cn=Re.useState(null),In=(0,ye.Z)(Cn,2),Dn=In[0],Kn=In[1],Vn=function(){var Gn;(Gn=wt.current)===null||Gn===void 0||Gn.textArea.focus()};(0,Re.useImperativeHandle)(Bt,function(){return{resizableTextArea:wt.current,focus:Vn,blur:function(){var Gn;(Gn=wt.current)===null||Gn===void 0||Gn.textArea.blur()}}}),(0,Re.useEffect)(function(){on(function(Hn){return!de&&Hn})},[de]);var _n=Number(Lt)>0,or=function(Gn){jt(!0),Zt.current=gt,nn.current=Gn.currentTarget.selectionStart,dn==null||dn(Gn)},wr=function(Gn){jt(!1);var Or=Gn.currentTarget.value;if(_n){var Rt,Ke=nn.current>=Lt+1||nn.current===((Rt=Zt.current)===null||Rt===void 0?void 0:Rt.length);Or=He(Ke,Zt.current,Or,Lt)}Or!==gt&&(Xe(Or),(0,qe.rJ)(Gn.currentTarget,Gn,Qe,Or)),_t==null||_t(Gn)},Tr=function(Gn){var Or=Gn.target.value;if(!yt&&_n){var Rt=Gn.target.selectionStart>=Lt+1||Gn.target.selectionStart===Or.length||!Gn.target.selectionStart;Or=He(Rt,gt,Or,Lt)}Xe(Or),(0,qe.rJ)(Gn.currentTarget,Gn,Qe,Or)},Yn=function(Gn){var Or=_e.onPressEnter,Rt=_e.onKeyDown;Gn.key==="Enter"&&Or&&Or(Gn),Rt==null||Rt(Gn)},hr=function(Gn){on(!0),Ct==null||Ct(Gn)},kr=function(Gn){on(!1),It==null||It(Gn)},Qn=function(Gn){var Or;Xe(""),Vn(),(0,qe.rJ)((Or=wt.current)===null||Or===void 0?void 0:Or.textArea,Gn,Qe)},Fr=(0,qe.D7)(gt);!yt&&_n&&at==null&&(Fr=kt(Fr,Lt));var ci=tn,Cr;if(be){var pi=(0,he.Z)(Fr).length;(0,Ye.Z)(be)==="object"?Cr=be.formatter({value:Fr,count:pi,maxLength:Lt}):Cr="".concat(pi).concat(_n?" / ".concat(Lt):""),ci=Re.createElement(Re.Fragment,null,ci,Re.createElement("span",{className:we()("".concat(Jt,"-data-count"),se==null?void 0:se.count),style:Le==null?void 0:Le.count},Cr))}var ai=function(Gn){var Or;ht==null||ht(Gn),(Or=wt.current)!==null&&Or!==void 0&&Or.textArea.style.height&&Kn(!0)},nr=!_e.autoSize&&!be&&!et,yr=Re.createElement(Te.BaseInput,{value:Fr,allowClear:et,handleReset:Qn,suffix:ci,prefixCls:Jt,classes:{affixWrapper:we()(Vt==null?void 0:Vt.affixWrapper,(De={},(0,Ce.Z)(De,"".concat(Jt,"-show-count"),be),(0,Ce.Z)(De,"".concat(Jt,"-textarea-allow-clear"),et),De))},disabled:de,focused:$t,className:ce,style:(0,ke.Z)((0,ke.Z)({},ue),Dn&&!nr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Cr=="string"?Cr:void 0}},hidden:pe,inputElement:Re.createElement(dt,(0,oe.Z)({},_e,{onKeyDown:Yn,onChange:Tr,onFocus:hr,onBlur:kr,onCompositionStart:or,onCompositionEnd:wr,className:se==null?void 0:se.textarea,style:(0,ke.Z)((0,ke.Z)({},Le==null?void 0:Le.textarea),{},{resize:ue==null?void 0:ue.resize}),disabled:de,prefixCls:Jt,onResize:ai,ref:wt}))});return yr}),mt=Tt,Et=mt},39417:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Ze}});var oe=ie(54476),ke=ie(20068),Ce=ie(75931),Ye=ie(33885),ye=ie(67732),Ee=ie(83652),he=ie(31226),xe=ie(42403),we=ie(158),Te=ie(92310),qe=ie.n(Te),Ie=ie(26112),Re=ie(59301),lt=ie(39378),Ue=function(Je){for(var dt=Je.prefixCls,Be=Je.level,kt=Je.isStart,He=Je.isEnd,Tt="".concat(dt,"-indent-unit"),mt=[],Et=0;Et<Be;Et+=1){var zt;mt.push(Re.createElement("span",{key:Et,className:qe()(Tt,(zt={},(0,ke.Z)(zt,"".concat(Tt,"-start"),kt[Et]),(0,ke.Z)(zt,"".concat(Tt,"-end"),He[Et]),zt))}))}return Re.createElement("span",{"aria-hidden":"true",className:"".concat(dt,"-indent")},mt)},We=Re.memo(Ue),ct=ie(67841),tt=ie(71430),At=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ut="open",ot="close",je="---",Se=function(xt){(0,xe.Z)(dt,xt);var Je=(0,we.Z)(dt);function dt(){var Be;(0,ye.Z)(this,dt);for(var kt=arguments.length,He=new Array(kt),Tt=0;Tt<kt;Tt++)He[Tt]=arguments[Tt];return Be=Je.call.apply(Je,[this].concat(He)),Be.state={dragNodeHighlight:!1},Be.selectHandle=void 0,Be.cacheIndent=void 0,Be.onSelectorClick=function(mt){var Et=Be.props.context.onNodeClick;Et(mt,(0,tt.F)(Be.props)),Be.isSelectable()?Be.onSelect(mt):Be.onCheck(mt)},Be.onSelectorDoubleClick=function(mt){var Et=Be.props.context.onNodeDoubleClick;Et(mt,(0,tt.F)(Be.props))},Be.onSelect=function(mt){if(!Be.isDisabled()){var Et=Be.props.context.onNodeSelect;Et(mt,(0,tt.F)(Be.props))}},Be.onCheck=function(mt){if(!Be.isDisabled()){var Et=Be.props,zt=Et.disableCheckbox,Bt=Et.checked,De=Be.props.context.onNodeCheck;if(!(!Be.isCheckable()||zt)){var ge=!Bt;De(mt,(0,tt.F)(Be.props),ge)}}},Be.onMouseEnter=function(mt){var Et=Be.props.context.onNodeMouseEnter;Et(mt,(0,tt.F)(Be.props))},Be.onMouseLeave=function(mt){var Et=Be.props.context.onNodeMouseLeave;Et(mt,(0,tt.F)(Be.props))},Be.onContextMenu=function(mt){var Et=Be.props.context.onNodeContextMenu;Et(mt,(0,tt.F)(Be.props))},Be.onDragStart=function(mt){var Et=Be.props.context.onNodeDragStart;mt.stopPropagation(),Be.setState({dragNodeHighlight:!0}),Et(mt,(0,he.Z)(Be));try{mt.dataTransfer.setData("text/plain","")}catch(zt){}},Be.onDragEnter=function(mt){var Et=Be.props.context.onNodeDragEnter;mt.preventDefault(),mt.stopPropagation(),Et(mt,(0,he.Z)(Be))},Be.onDragOver=function(mt){var Et=Be.props.context.onNodeDragOver;mt.preventDefault(),mt.stopPropagation(),Et(mt,(0,he.Z)(Be))},Be.onDragLeave=function(mt){var Et=Be.props.context.onNodeDragLeave;mt.stopPropagation(),Et(mt,(0,he.Z)(Be))},Be.onDragEnd=function(mt){var Et=Be.props.context.onNodeDragEnd;mt.stopPropagation(),Be.setState({dragNodeHighlight:!1}),Et(mt,(0,he.Z)(Be))},Be.onDrop=function(mt){var Et=Be.props.context.onNodeDrop;mt.preventDefault(),mt.stopPropagation(),Be.setState({dragNodeHighlight:!1}),Et(mt,(0,he.Z)(Be))},Be.onExpand=function(mt){var Et=Be.props,zt=Et.loading,Bt=Et.context.onNodeExpand;zt||Bt(mt,(0,tt.F)(Be.props))},Be.setSelectHandle=function(mt){Be.selectHandle=mt},Be.getNodeState=function(){var mt=Be.props.expanded;return Be.isLeaf()?null:mt?ut:ot},Be.hasChildren=function(){var mt=Be.props.eventKey,Et=Be.props.context.keyEntities,zt=(0,ct.Z)(Et,mt)||{},Bt=zt.children;return!!(Bt||[]).length},Be.isLeaf=function(){var mt=Be.props,Et=mt.isLeaf,zt=mt.loaded,Bt=Be.props.context.loadData,De=Be.hasChildren();return Et===!1?!1:Et||!Bt&&!De||Bt&&zt&&!De},Be.isDisabled=function(){var mt=Be.props.disabled,Et=Be.props.context.disabled;return!!(Et||mt)},Be.isCheckable=function(){var mt=Be.props.checkable,Et=Be.props.context.checkable;return!Et||mt===!1?!1:Et},Be.syncLoadData=function(mt){var Et=mt.expanded,zt=mt.loading,Bt=mt.loaded,De=Be.props.context,ge=De.loadData,at=De.onNodeLoad;zt||ge&&Et&&!Be.isLeaf()&&!Be.hasChildren()&&!Bt&&at((0,tt.F)(Be.props))},Be.isDraggable=function(){var mt=Be.props,Et=mt.data,zt=mt.context.draggable;return!!(zt&&(!zt.nodeDraggable||zt.nodeDraggable(Et)))},Be.renderDragHandler=function(){var mt=Be.props.context,Et=mt.draggable,zt=mt.prefixCls;return Et!=null&&Et.icon?Re.createElement("span",{className:"".concat(zt,"-draggable-icon")},Et.icon):null},Be.renderSwitcherIconDom=function(mt){var Et=Be.props.switcherIcon,zt=Be.props.context.switcherIcon,Bt=Et||zt;return typeof Bt=="function"?Bt((0,Ye.Z)((0,Ye.Z)({},Be.props),{},{isLeaf:mt})):Bt},Be.renderSwitcher=function(){var mt=Be.props.expanded,Et=Be.props.context.prefixCls;if(Be.isLeaf()){var zt=Be.renderSwitcherIconDom(!0);return zt!==!1?Re.createElement("span",{className:qe()("".concat(Et,"-switcher"),"".concat(Et,"-switcher-noop"))},zt):null}var Bt=qe()("".concat(Et,"-switcher"),"".concat(Et,"-switcher_").concat(mt?ut:ot)),De=Be.renderSwitcherIconDom(!1);return De!==!1?Re.createElement("span",{onClick:Be.onExpand,className:Bt},De):null},Be.renderCheckbox=function(){var mt=Be.props,Et=mt.checked,zt=mt.halfChecked,Bt=mt.disableCheckbox,De=Be.props.context.prefixCls,ge=Be.isDisabled(),at=Be.isCheckable();if(!at)return null;var Ct=typeof at!="boolean"?at:null;return Re.createElement("span",{className:qe()("".concat(De,"-checkbox"),Et&&"".concat(De,"-checkbox-checked"),!Et&&zt&&"".concat(De,"-checkbox-indeterminate"),(ge||Bt)&&"".concat(De,"-checkbox-disabled")),onClick:Be.onCheck},Ct)},Be.renderIcon=function(){var mt=Be.props.loading,Et=Be.props.context.prefixCls;return Re.createElement("span",{className:qe()("".concat(Et,"-iconEle"),"".concat(Et,"-icon__").concat(Be.getNodeState()||"docu"),mt&&"".concat(Et,"-icon_loading"))})},Be.renderSelector=function(){var mt=Be.state.dragNodeHighlight,Et=Be.props,zt=Et.title,Bt=zt===void 0?je:zt,De=Et.selected,ge=Et.icon,at=Et.loading,Ct=Et.data,It=Be.props.context,Qe=It.prefixCls,et=It.showIcon,Lt=It.icon,dn=It.loadData,_t=It.titleRender,tn=Be.isDisabled(),en="".concat(Qe,"-node-content-wrapper"),Jt;if(et){var Vt=ge||Lt;Jt=Vt?Re.createElement("span",{className:qe()("".concat(Qe,"-iconEle"),"".concat(Qe,"-icon__customize"))},typeof Vt=="function"?Vt(Be.props):Vt):Be.renderIcon()}else dn&&at&&(Jt=Be.renderIcon());var be;typeof Bt=="function"?be=Bt(Ct):_t?be=_t(Ct):be=Bt;var ce=Re.createElement("span",{className:"".concat(Qe,"-title")},be);return Re.createElement("span",{ref:Be.setSelectHandle,title:typeof Bt=="string"?Bt:"",className:qe()("".concat(en),"".concat(en,"-").concat(Be.getNodeState()||"normal"),!tn&&(De||mt)&&"".concat(Qe,"-node-selected")),onMouseEnter:Be.onMouseEnter,onMouseLeave:Be.onMouseLeave,onContextMenu:Be.onContextMenu,onClick:Be.onSelectorClick,onDoubleClick:Be.onSelectorDoubleClick},Jt,ce,Be.renderDropIndicator())},Be.renderDropIndicator=function(){var mt=Be.props,Et=mt.disabled,zt=mt.eventKey,Bt=Be.props.context,De=Bt.draggable,ge=Bt.dropLevelOffset,at=Bt.dropPosition,Ct=Bt.prefixCls,It=Bt.indent,Qe=Bt.dropIndicatorRender,et=Bt.dragOverNodeKey,Lt=Bt.direction,dn=!!De,_t=!Et&&dn&&et===zt,tn=It!=null?It:Be.cacheIndent;return Be.cacheIndent=It,_t?Qe({dropPosition:at,dropLevelOffset:ge,indent:tn,prefixCls:Ct,direction:Lt}):null},Be}return(0,Ee.Z)(dt,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var kt=this.props.selectable,He=this.props.context.selectable;return typeof kt=="boolean"?kt:He}},{key:"render",value:function(){var kt,He=this.props,Tt=He.eventKey,mt=He.className,Et=He.style,zt=He.dragOver,Bt=He.dragOverGapTop,De=He.dragOverGapBottom,ge=He.isLeaf,at=He.isStart,Ct=He.isEnd,It=He.expanded,Qe=He.selected,et=He.checked,Lt=He.halfChecked,dn=He.loading,_t=He.domRef,tn=He.active,en=He.data,Jt=He.onMouseMove,Vt=He.selectable,be=(0,Ce.Z)(He,At),ce=this.props.context,ue=ce.prefixCls,de=ce.filterTreeNode,pe=ce.keyEntities,se=ce.dropContainerKey,Le=ce.dropTargetKey,ht=ce.draggingNodeKey,_e=this.isDisabled(),Ne=(0,Ie.Z)(be,{aria:!0,data:!0}),St=(0,ct.Z)(pe,Tt)||{},gt=St.level,Xe=Ct[Ct.length-1],wt=this.isDraggable(),Xt=!_e&&wt,bt=ht===Tt,$t=Vt!==void 0?{"aria-selected":!!Vt}:void 0;return Re.createElement("div",(0,oe.Z)({ref:_t,className:qe()(mt,"".concat(ue,"-treenode"),(kt={},(0,ke.Z)(kt,"".concat(ue,"-treenode-disabled"),_e),(0,ke.Z)(kt,"".concat(ue,"-treenode-switcher-").concat(It?"open":"close"),!ge),(0,ke.Z)(kt,"".concat(ue,"-treenode-checkbox-checked"),et),(0,ke.Z)(kt,"".concat(ue,"-treenode-checkbox-indeterminate"),Lt),(0,ke.Z)(kt,"".concat(ue,"-treenode-selected"),Qe),(0,ke.Z)(kt,"".concat(ue,"-treenode-loading"),dn),(0,ke.Z)(kt,"".concat(ue,"-treenode-active"),tn),(0,ke.Z)(kt,"".concat(ue,"-treenode-leaf-last"),Xe),(0,ke.Z)(kt,"".concat(ue,"-treenode-draggable"),wt),(0,ke.Z)(kt,"dragging",bt),(0,ke.Z)(kt,"drop-target",Le===Tt),(0,ke.Z)(kt,"drop-container",se===Tt),(0,ke.Z)(kt,"drag-over",!_e&&zt),(0,ke.Z)(kt,"drag-over-gap-top",!_e&&Bt),(0,ke.Z)(kt,"drag-over-gap-bottom",!_e&&De),(0,ke.Z)(kt,"filter-node",de&&de((0,tt.F)(this.props))),kt)),style:Et,draggable:Xt,"aria-grabbed":bt,onDragStart:Xt?this.onDragStart:void 0,onDragEnter:wt?this.onDragEnter:void 0,onDragOver:wt?this.onDragOver:void 0,onDragLeave:wt?this.onDragLeave:void 0,onDrop:wt?this.onDrop:void 0,onDragEnd:wt?this.onDragEnd:void 0,onMouseMove:Jt},$t,Ne),Re.createElement(We,{prefixCls:ue,level:gt,isStart:at,isEnd:Ct}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),dt}(Re.Component),Fe=function(Je){return Re.createElement(lt.k.Consumer,null,function(dt){return Re.createElement(Se,(0,oe.Z)({},Je,{context:dt}))})};Fe.displayName="TreeNode",Fe.isTreeNode=1;var Ze=Fe},39378:function(gn,Kt,ie){"use strict";ie.d(Kt,{k:function(){return ke}});var oe=ie(59301),ke=oe.createContext(null)},60091:function(gn,Kt,ie){"use strict";ie.d(Kt,{O:function(){return Ze.Z},Z:function(){return ce}});var oe=ie(54476),ke=ie(20068),Ce=ie(76190),Ye=ie(33885),ye=ie(94480),Ee=ie(67732),he=ie(83652),xe=ie(31226),we=ie(42403),Te=ie(158),qe=ie(92310),Ie=ie.n(qe),Re=ie(10228),lt=ie(26112),Ue=ie(48736),We=ie(59301),ct=ie(39378);function tt(ue){var de=ue.dropPosition,pe=ue.dropLevelOffset,se=ue.indent,Le={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(de){case-1:Le.top=0,Le.left=-pe*se;break;case 1:Le.bottom=0,Le.left=-pe*se;break;case 0:Le.bottom=0,Le.left=se;break}return We.createElement("div",{style:Le})}function At(ue){if(ue==null)throw new TypeError("Cannot destructure "+ue)}var ut=ie(42978),ot=ie(75931),je=ie(34280),Se=ie(48911),Fe=ie(77900),Ze=ie(39417);function xt(ue,de){var pe=We.useState(!1),se=(0,ut.Z)(pe,2),Le=se[0],ht=se[1];We.useLayoutEffect(function(){if(Le)return ue(),function(){de()}},[Le]),We.useLayoutEffect(function(){return ht(!0),function(){ht(!1)}},[])}var Je=ie(71430),dt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Be=function(de,pe){var se=de.className,Le=de.style,ht=de.motion,_e=de.motionNodes,Ne=de.motionType,St=de.onMotionStart,gt=de.onMotionEnd,Xe=de.active,wt=de.treeNodeRequiredProps,Xt=(0,ot.Z)(de,dt),bt=We.useState(!0),$t=(0,ut.Z)(bt,2),on=$t[0],vt=$t[1],Oe=We.useContext(ct.k),yt=Oe.prefixCls,jt=_e&&Ne!=="hide";(0,je.Z)(function(){_e&&jt!==on&&vt(jt)},[_e]);var Zt=function(){_e&&St()},nn=We.useRef(!1),Cn=function(){_e&&!nn.current&&(nn.current=!0,gt())};xt(Zt,Cn);var In=function(Kn){jt===Kn&&Cn()};return _e?We.createElement(Fe.default,(0,oe.Z)({ref:pe,visible:on},ht,{motionAppear:Ne==="show",onVisibleChanged:In}),function(Dn,Kn){var Vn=Dn.className,_n=Dn.style;return We.createElement("div",{ref:Kn,className:Ie()("".concat(yt,"-treenode-motion"),Vn),style:_n},_e.map(function(or){var wr=(0,oe.Z)({},(At(or.data),or.data)),Tr=or.title,Yn=or.key,hr=or.isStart,kr=or.isEnd;delete wr.children;var Qn=(0,Je.H8)(Yn,wt);return We.createElement(Ze.Z,(0,oe.Z)({},wr,Qn,{title:Tr,active:Xe,data:or.data,key:Yn,isStart:hr,isEnd:kr}))}))}):We.createElement(Ze.Z,(0,oe.Z)({domRef:pe,className:se,style:Le},Xt,{active:Xe}))};Be.displayName="MotionTreeNode";var kt=We.forwardRef(Be),He=kt;function Tt(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],pe=ue.length,se=de.length;if(Math.abs(pe-se)!==1)return{add:!1,key:null};function Le(ht,_e){var Ne=new Map;ht.forEach(function(gt){Ne.set(gt,!0)});var St=_e.filter(function(gt){return!Ne.has(gt)});return St.length===1?St[0]:null}return pe<se?{add:!0,key:Le(ue,de)}:{add:!1,key:Le(de,ue)}}function mt(ue,de,pe){var se=ue.findIndex(function(Ne){return Ne.key===pe}),Le=ue[se+1],ht=de.findIndex(function(Ne){return Ne.key===pe});if(Le){var _e=de.findIndex(function(Ne){return Ne.key===Le.key});return de.slice(ht+1,_e)}return de.slice(ht+1)}var Et=["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"],zt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Bt=function(){},De="RC_TREE_MOTION_".concat(Math.random()),ge={key:De},at={key:De,level:0,index:0,pos:"0",node:ge,nodes:[ge]},Ct={parent:null,children:[],pos:at.pos,data:ge,title:null,key:De,isStart:[],isEnd:[]};function It(ue,de,pe,se){return de===!1||!pe?ue:ue.slice(0,Math.ceil(pe/se)+1)}function Qe(ue){var de=ue.key,pe=ue.pos;return(0,Je.km)(de,pe)}function et(ue){for(var de=String(ue.data.key),pe=ue;pe.parent;)pe=pe.parent,de="".concat(pe.data.key," > ").concat(de);return de}var Lt=We.forwardRef(function(ue,de){var pe=ue.prefixCls,se=ue.data,Le=ue.selectable,ht=ue.checkable,_e=ue.expandedKeys,Ne=ue.selectedKeys,St=ue.checkedKeys,gt=ue.loadedKeys,Xe=ue.loadingKeys,wt=ue.halfCheckedKeys,Xt=ue.keyEntities,bt=ue.disabled,$t=ue.dragging,on=ue.dragOverNodeKey,vt=ue.dropPosition,Oe=ue.motion,yt=ue.height,jt=ue.itemHeight,Zt=ue.virtual,nn=ue.focusable,Cn=ue.activeItem,In=ue.focused,Dn=ue.tabIndex,Kn=ue.onKeyDown,Vn=ue.onFocus,_n=ue.onBlur,or=ue.onActiveChange,wr=ue.onListChangeStart,Tr=ue.onListChangeEnd,Yn=(0,ot.Z)(ue,Et),hr=We.useRef(null),kr=We.useRef(null);We.useImperativeHandle(de,function(){return{scrollTo:function(wn){hr.current.scrollTo(wn)},getIndentWidth:function(){return kr.current.offsetWidth}}});var Qn=We.useState(_e),Fr=(0,ut.Z)(Qn,2),ci=Fr[0],Cr=Fr[1],pi=We.useState(se),ai=(0,ut.Z)(pi,2),nr=ai[0],yr=ai[1],Hn=We.useState(se),Gn=(0,ut.Z)(Hn,2),Or=Gn[0],Rt=Gn[1],Ke=We.useState([]),nt=(0,ut.Z)(Ke,2),rt=nt[0],it=nt[1],Dt=We.useState(null),Ht=(0,ut.Z)(Dt,2),sn=Ht[0],qt=Ht[1],mn=We.useRef(se);mn.current=se;function An(){var Qt=mn.current;yr(Qt),Rt(Qt),it([]),qt(null),Tr()}(0,je.Z)(function(){Cr(_e);var Qt=Tt(ci,_e);if(Qt.key!==null)if(Qt.add){var wn=nr.findIndex(function(Fn){var dr=Fn.key;return dr===Qt.key}),Xn=It(mt(nr,se,Qt.key),Zt,yt,jt),Wn=nr.slice();Wn.splice(wn+1,0,Ct),Rt(Wn),it(Xn),qt("show")}else{var sr=se.findIndex(function(Fn){var dr=Fn.key;return dr===Qt.key}),Jn=It(mt(se,nr,Qt.key),Zt,yt,jt),Ar=se.slice();Ar.splice(sr+1,0,Ct),Rt(Ar),it(Jn),qt("hide")}else nr!==se&&(yr(se),Rt(se))},[_e,se]),We.useEffect(function(){$t||An()},[$t]);var Tn=Oe?Or:se,Pn={expandedKeys:_e,selectedKeys:Ne,loadedKeys:gt,loadingKeys:Xe,checkedKeys:St,halfCheckedKeys:wt,dragOverNodeKey:on,dropPosition:vt,keyEntities:Xt};return We.createElement(We.Fragment,null,In&&Cn&&We.createElement("span",{style:zt,"aria-live":"assertive"},et(Cn)),We.createElement("div",null,We.createElement("input",{style:zt,disabled:nn===!1||bt,tabIndex:nn!==!1?Dn:null,onKeyDown:Kn,onFocus:Vn,onBlur:_n,value:"",onChange:Bt,"aria-label":"for screen reader"})),We.createElement("div",{className:"".concat(pe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},We.createElement("div",{className:"".concat(pe,"-indent")},We.createElement("div",{ref:kr,className:"".concat(pe,"-indent-unit")}))),We.createElement(Se.Z,(0,oe.Z)({},Yn,{data:Tn,itemKey:Qe,height:yt,fullHeight:!1,virtual:Zt,itemHeight:jt,prefixCls:"".concat(pe,"-list"),ref:hr,onVisibleChange:function(wn,Xn){var Wn=new Set(wn),sr=Xn.filter(function(Jn){return!Wn.has(Jn)});sr.some(function(Jn){return Qe(Jn)===De})&&An()}}),function(Qt){var wn=Qt.pos,Xn=(0,oe.Z)({},(At(Qt.data),Qt.data)),Wn=Qt.title,sr=Qt.key,Jn=Qt.isStart,Ar=Qt.isEnd,Fn=(0,Je.km)(sr,wn);delete Xn.key,delete Xn.children;var dr=(0,Je.H8)(Fn,Pn);return We.createElement(He,(0,oe.Z)({},Xn,dr,{title:Wn,active:!!Cn&&sr===Cn.key,pos:wn,data:Qt.data,isStart:Jn,isEnd:Ar,motion:Oe,motionNodes:sr===De?rt:null,motionType:sn,onMotionStart:wr,onMotionEnd:An,treeNodeRequiredProps:Pn,onMouseMove:function(){or(null)}}))}))});Lt.displayName="NodeList";var dn=Lt,_t=ie(35654),tn=ie(90782),en=ie(67841),Jt=10,Vt=function(ue){(0,we.Z)(pe,ue);var de=(0,Te.Z)(pe);function pe(){var se;(0,Ee.Z)(this,pe);for(var Le=arguments.length,ht=new Array(Le),_e=0;_e<Le;_e++)ht[_e]=arguments[_e];return se=de.call.apply(de,[this].concat(ht)),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,Je.w$)()},se.dragStartMousePosition=null,se.dragNode=void 0,se.currentMouseOverDroppableNodeKey=null,se.listRef=We.createRef(),se.onNodeDragStart=function(Ne,St){var gt=se.state,Xe=gt.expandedKeys,wt=gt.keyEntities,Xt=se.props.onDragStart,bt=St.props.eventKey;se.dragNode=St,se.dragStartMousePosition={x:Ne.clientX,y:Ne.clientY};var $t=(0,_t._5)(Xe,bt);se.setState({draggingNodeKey:bt,dragChildrenKeys:(0,_t.wA)(bt,wt),indent:se.listRef.current.getIndentWidth()}),se.setExpandedKeys($t),window.addEventListener("dragend",se.onWindowDragEnd),Xt==null||Xt({event:Ne,node:(0,Je.F)(St.props)})},se.onNodeDragEnter=function(Ne,St){var gt=se.state,Xe=gt.expandedKeys,wt=gt.keyEntities,Xt=gt.dragChildrenKeys,bt=gt.flattenNodes,$t=gt.indent,on=se.props,vt=on.onDragEnter,Oe=on.onExpand,yt=on.allowDrop,jt=on.direction,Zt=St.props,nn=Zt.pos,Cn=Zt.eventKey,In=(0,xe.Z)(se),Dn=In.dragNode;if(se.currentMouseOverDroppableNodeKey!==Cn&&(se.currentMouseOverDroppableNodeKey=Cn),!Dn){se.resetDragState();return}var Kn=(0,_t.OM)(Ne,Dn,St,$t,se.dragStartMousePosition,yt,bt,wt,Xe,jt),Vn=Kn.dropPosition,_n=Kn.dropLevelOffset,or=Kn.dropTargetKey,wr=Kn.dropContainerKey,Tr=Kn.dropTargetPos,Yn=Kn.dropAllowed,hr=Kn.dragOverNodeKey;if(Xt.indexOf(or)!==-1||!Yn){se.resetDragState();return}if(se.delayedDragEnterLogic||(se.delayedDragEnterLogic={}),Object.keys(se.delayedDragEnterLogic).forEach(function(kr){clearTimeout(se.delayedDragEnterLogic[kr])}),Dn.props.eventKey!==St.props.eventKey&&(Ne.persist(),se.delayedDragEnterLogic[nn]=window.setTimeout(function(){if(se.state.draggingNodeKey!==null){var kr=(0,ye.Z)(Xe),Qn=(0,en.Z)(wt,St.props.eventKey);Qn&&(Qn.children||[]).length&&(kr=(0,_t.L0)(Xe,St.props.eventKey)),"expandedKeys"in se.props||se.setExpandedKeys(kr),Oe==null||Oe(kr,{node:(0,Je.F)(St.props),expanded:!0,nativeEvent:Ne.nativeEvent})}},800)),Dn.props.eventKey===or&&_n===0){se.resetDragState();return}se.setState({dragOverNodeKey:hr,dropPosition:Vn,dropLevelOffset:_n,dropTargetKey:or,dropContainerKey:wr,dropTargetPos:Tr,dropAllowed:Yn}),vt==null||vt({event:Ne,node:(0,Je.F)(St.props),expandedKeys:Xe})},se.onNodeDragOver=function(Ne,St){var gt=se.state,Xe=gt.dragChildrenKeys,wt=gt.flattenNodes,Xt=gt.keyEntities,bt=gt.expandedKeys,$t=gt.indent,on=se.props,vt=on.onDragOver,Oe=on.allowDrop,yt=on.direction,jt=(0,xe.Z)(se),Zt=jt.dragNode;if(Zt){var nn=(0,_t.OM)(Ne,Zt,St,$t,se.dragStartMousePosition,Oe,wt,Xt,bt,yt),Cn=nn.dropPosition,In=nn.dropLevelOffset,Dn=nn.dropTargetKey,Kn=nn.dropContainerKey,Vn=nn.dropAllowed,_n=nn.dropTargetPos,or=nn.dragOverNodeKey;Xe.indexOf(Dn)!==-1||!Vn||(Zt.props.eventKey===Dn&&In===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():Cn===se.state.dropPosition&&In===se.state.dropLevelOffset&&Dn===se.state.dropTargetKey&&Kn===se.state.dropContainerKey&&_n===se.state.dropTargetPos&&Vn===se.state.dropAllowed&&or===se.state.dragOverNodeKey||se.setState({dropPosition:Cn,dropLevelOffset:In,dropTargetKey:Dn,dropContainerKey:Kn,dropTargetPos:_n,dropAllowed:Vn,dragOverNodeKey:or}),vt==null||vt({event:Ne,node:(0,Je.F)(St.props)}))}},se.onNodeDragLeave=function(Ne,St){se.currentMouseOverDroppableNodeKey===St.props.eventKey&&!Ne.currentTarget.contains(Ne.relatedTarget)&&(se.resetDragState(),se.currentMouseOverDroppableNodeKey=null);var gt=se.props.onDragLeave;gt==null||gt({event:Ne,node:(0,Je.F)(St.props)})},se.onWindowDragEnd=function(Ne){se.onNodeDragEnd(Ne,null,!0),window.removeEventListener("dragend",se.onWindowDragEnd)},se.onNodeDragEnd=function(Ne,St){var gt=se.props.onDragEnd;se.setState({dragOverNodeKey:null}),se.cleanDragState(),gt==null||gt({event:Ne,node:(0,Je.F)(St.props)}),se.dragNode=null,window.removeEventListener("dragend",se.onWindowDragEnd)},se.onNodeDrop=function(Ne,St){var gt,Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,wt=se.state,Xt=wt.dragChildrenKeys,bt=wt.dropPosition,$t=wt.dropTargetKey,on=wt.dropTargetPos,vt=wt.dropAllowed;if(vt){var Oe=se.props.onDrop;if(se.setState({dragOverNodeKey:null}),se.cleanDragState(),$t!==null){var yt=(0,Ye.Z)((0,Ye.Z)({},(0,Je.H8)($t,se.getTreeNodeRequiredProps())),{},{active:((gt=se.getActiveItem())===null||gt===void 0?void 0:gt.key)===$t,data:(0,en.Z)(se.state.keyEntities,$t).node}),jt=Xt.indexOf($t)!==-1;(0,Ue.ZP)(!jt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Zt=(0,_t.yx)(on),nn={event:Ne,node:(0,Je.F)(yt),dragNode:se.dragNode?(0,Je.F)(se.dragNode.props):null,dragNodesKeys:[se.dragNode.props.eventKey].concat(Xt),dropToGap:bt!==0,dropPosition:bt+Number(Zt[Zt.length-1])};Xe||Oe==null||Oe(nn),se.dragNode=null}}},se.cleanDragState=function(){var Ne=se.state.draggingNodeKey;Ne!==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(Ne,St){var gt=se.state,Xe=gt.expandedKeys,wt=gt.flattenNodes,Xt=St.expanded,bt=St.key,$t=St.isLeaf;if(!($t||Ne.shiftKey||Ne.metaKey||Ne.ctrlKey)){var on=wt.filter(function(Oe){return Oe.key===bt})[0],vt=(0,Je.F)((0,Ye.Z)((0,Ye.Z)({},(0,Je.H8)(bt,se.getTreeNodeRequiredProps())),{},{data:on.data}));se.setExpandedKeys(Xt?(0,_t._5)(Xe,bt):(0,_t.L0)(Xe,bt)),se.onNodeExpand(Ne,vt)}},se.onNodeClick=function(Ne,St){var gt=se.props,Xe=gt.onClick,wt=gt.expandAction;wt==="click"&&se.triggerExpandActionExpand(Ne,St),Xe==null||Xe(Ne,St)},se.onNodeDoubleClick=function(Ne,St){var gt=se.props,Xe=gt.onDoubleClick,wt=gt.expandAction;wt==="doubleClick"&&se.triggerExpandActionExpand(Ne,St),Xe==null||Xe(Ne,St)},se.onNodeSelect=function(Ne,St){var gt=se.state.selectedKeys,Xe=se.state,wt=Xe.keyEntities,Xt=Xe.fieldNames,bt=se.props,$t=bt.onSelect,on=bt.multiple,vt=St.selected,Oe=St[Xt.key],yt=!vt;yt?on?gt=(0,_t.L0)(gt,Oe):gt=[Oe]:gt=(0,_t._5)(gt,Oe);var jt=gt.map(function(Zt){var nn=(0,en.Z)(wt,Zt);return nn?nn.node:null}).filter(function(Zt){return Zt});se.setUncontrolledState({selectedKeys:gt}),$t==null||$t(gt,{event:"select",selected:yt,node:St,selectedNodes:jt,nativeEvent:Ne.nativeEvent})},se.onNodeCheck=function(Ne,St,gt){var Xe=se.state,wt=Xe.keyEntities,Xt=Xe.checkedKeys,bt=Xe.halfCheckedKeys,$t=se.props,on=$t.checkStrictly,vt=$t.onCheck,Oe=St.key,yt,jt={event:"check",node:St,checked:gt,nativeEvent:Ne.nativeEvent};if(on){var Zt=gt?(0,_t.L0)(Xt,Oe):(0,_t._5)(Xt,Oe),nn=(0,_t._5)(bt,Oe);yt={checked:Zt,halfChecked:nn},jt.checkedNodes=Zt.map(function(_n){return(0,en.Z)(wt,_n)}).filter(function(_n){return _n}).map(function(_n){return _n.node}),se.setUncontrolledState({checkedKeys:Zt})}else{var Cn=(0,tn.S)([].concat((0,ye.Z)(Xt),[Oe]),!0,wt),In=Cn.checkedKeys,Dn=Cn.halfCheckedKeys;if(!gt){var Kn=new Set(In);Kn.delete(Oe);var Vn=(0,tn.S)(Array.from(Kn),{checked:!1,halfCheckedKeys:Dn},wt);In=Vn.checkedKeys,Dn=Vn.halfCheckedKeys}yt=In,jt.checkedNodes=[],jt.checkedNodesPositions=[],jt.halfCheckedKeys=Dn,In.forEach(function(_n){var or=(0,en.Z)(wt,_n);if(or){var wr=or.node,Tr=or.pos;jt.checkedNodes.push(wr),jt.checkedNodesPositions.push({node:wr,pos:Tr})}}),se.setUncontrolledState({checkedKeys:In},!1,{halfCheckedKeys:Dn})}vt==null||vt(yt,jt)},se.onNodeLoad=function(Ne){var St=Ne.key,gt=new Promise(function(Xe,wt){se.setState(function(Xt){var bt=Xt.loadedKeys,$t=bt===void 0?[]:bt,on=Xt.loadingKeys,vt=on===void 0?[]:on,Oe=se.props,yt=Oe.loadData,jt=Oe.onLoad;if(!yt||$t.indexOf(St)!==-1||vt.indexOf(St)!==-1)return null;var Zt=yt(Ne);return Zt.then(function(){var nn=se.state.loadedKeys,Cn=(0,_t.L0)(nn,St);jt==null||jt(Cn,{event:"load",node:Ne}),se.setUncontrolledState({loadedKeys:Cn}),se.setState(function(In){return{loadingKeys:(0,_t._5)(In.loadingKeys,St)}}),Xe()}).catch(function(nn){if(se.setState(function(In){return{loadingKeys:(0,_t._5)(In.loadingKeys,St)}}),se.loadingRetryTimes[St]=(se.loadingRetryTimes[St]||0)+1,se.loadingRetryTimes[St]>=Jt){var Cn=se.state.loadedKeys;(0,Ue.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),se.setUncontrolledState({loadedKeys:(0,_t.L0)(Cn,St)}),Xe()}wt(nn)}),{loadingKeys:(0,_t.L0)(vt,St)}})});return gt.catch(function(){}),gt},se.onNodeMouseEnter=function(Ne,St){var gt=se.props.onMouseEnter;gt==null||gt({event:Ne,node:St})},se.onNodeMouseLeave=function(Ne,St){var gt=se.props.onMouseLeave;gt==null||gt({event:Ne,node:St})},se.onNodeContextMenu=function(Ne,St){var gt=se.props.onRightClick;gt&&(Ne.preventDefault(),gt({event:Ne,node:St}))},se.onFocus=function(){var Ne=se.props.onFocus;se.setState({focused:!0});for(var St=arguments.length,gt=new Array(St),Xe=0;Xe<St;Xe++)gt[Xe]=arguments[Xe];Ne==null||Ne.apply(void 0,gt)},se.onBlur=function(){var Ne=se.props.onBlur;se.setState({focused:!1}),se.onActiveChange(null);for(var St=arguments.length,gt=new Array(St),Xe=0;Xe<St;Xe++)gt[Xe]=arguments[Xe];Ne==null||Ne.apply(void 0,gt)},se.getTreeNodeRequiredProps=function(){var Ne=se.state,St=Ne.expandedKeys,gt=Ne.selectedKeys,Xe=Ne.loadedKeys,wt=Ne.loadingKeys,Xt=Ne.checkedKeys,bt=Ne.halfCheckedKeys,$t=Ne.dragOverNodeKey,on=Ne.dropPosition,vt=Ne.keyEntities;return{expandedKeys:St||[],selectedKeys:gt||[],loadedKeys:Xe||[],loadingKeys:wt||[],checkedKeys:Xt||[],halfCheckedKeys:bt||[],dragOverNodeKey:$t,dropPosition:on,keyEntities:vt}},se.setExpandedKeys=function(Ne){var St=se.state,gt=St.treeData,Xe=St.fieldNames,wt=(0,Je.oH)(gt,Ne,Xe);se.setUncontrolledState({expandedKeys:Ne,flattenNodes:wt},!0)},se.onNodeExpand=function(Ne,St){var gt=se.state.expandedKeys,Xe=se.state,wt=Xe.listChanging,Xt=Xe.fieldNames,bt=se.props,$t=bt.onExpand,on=bt.loadData,vt=St.expanded,Oe=St[Xt.key];if(!wt){var yt=gt.indexOf(Oe),jt=!vt;if((0,Ue.ZP)(vt&&yt!==-1||!vt&&yt===-1,"Expand state not sync with index check"),jt?gt=(0,_t.L0)(gt,Oe):gt=(0,_t._5)(gt,Oe),se.setExpandedKeys(gt),$t==null||$t(gt,{node:St,expanded:jt,nativeEvent:Ne.nativeEvent}),jt&&on){var Zt=se.onNodeLoad(St);Zt&&Zt.then(function(){var nn=(0,Je.oH)(se.state.treeData,gt,Xt);se.setUncontrolledState({flattenNodes:nn})}).catch(function(){var nn=se.state.expandedKeys,Cn=(0,_t._5)(nn,Oe);se.setExpandedKeys(Cn)})}}},se.onListChangeStart=function(){se.setUncontrolledState({listChanging:!0})},se.onListChangeEnd=function(){setTimeout(function(){se.setUncontrolledState({listChanging:!1})})},se.onActiveChange=function(Ne){var St=se.state.activeKey,gt=se.props.onActiveChange;St!==Ne&&(se.setState({activeKey:Ne}),Ne!==null&&se.scrollTo({key:Ne}),gt==null||gt(Ne))},se.getActiveItem=function(){var Ne=se.state,St=Ne.activeKey,gt=Ne.flattenNodes;return St===null?null:gt.find(function(Xe){var wt=Xe.key;return wt===St})||null},se.offsetActiveKey=function(Ne){var St=se.state,gt=St.flattenNodes,Xe=St.activeKey,wt=gt.findIndex(function($t){var on=$t.key;return on===Xe});wt===-1&&Ne<0&&(wt=gt.length),wt=(wt+Ne+gt.length)%gt.length;var Xt=gt[wt];if(Xt){var bt=Xt.key;se.onActiveChange(bt)}else se.onActiveChange(null)},se.onKeyDown=function(Ne){var St=se.state,gt=St.activeKey,Xe=St.expandedKeys,wt=St.checkedKeys,Xt=St.fieldNames,bt=se.props,$t=bt.onKeyDown,on=bt.checkable,vt=bt.selectable;switch(Ne.which){case Re.Z.UP:{se.offsetActiveKey(-1),Ne.preventDefault();break}case Re.Z.DOWN:{se.offsetActiveKey(1),Ne.preventDefault();break}}var Oe=se.getActiveItem();if(Oe&&Oe.data){var yt=se.getTreeNodeRequiredProps(),jt=Oe.data.isLeaf===!1||!!(Oe.data[Xt.children]||[]).length,Zt=(0,Je.F)((0,Ye.Z)((0,Ye.Z)({},(0,Je.H8)(gt,yt)),{},{data:Oe.data,active:!0}));switch(Ne.which){case Re.Z.LEFT:{jt&&Xe.includes(gt)?se.onNodeExpand({},Zt):Oe.parent&&se.onActiveChange(Oe.parent.key),Ne.preventDefault();break}case Re.Z.RIGHT:{jt&&!Xe.includes(gt)?se.onNodeExpand({},Zt):Oe.children&&Oe.children.length&&se.onActiveChange(Oe.children[0].key),Ne.preventDefault();break}case Re.Z.ENTER:case Re.Z.SPACE:{on&&!Zt.disabled&&Zt.checkable!==!1&&!Zt.disableCheckbox?se.onNodeCheck({},Zt,!wt.includes(gt)):!on&&vt&&!Zt.disabled&&Zt.selectable!==!1&&se.onNodeSelect({},Zt);break}}}$t==null||$t(Ne)},se.setUncontrolledState=function(Ne){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!se.destroyed){var Xe=!1,wt=!0,Xt={};Object.keys(Ne).forEach(function(bt){if(bt in se.props){wt=!1;return}Xe=!0,Xt[bt]=Ne[bt]}),Xe&&(!St||wt)&&se.setState((0,Ye.Z)((0,Ye.Z)({},Xt),gt))}},se.scrollTo=function(Ne){se.listRef.current.scrollTo(Ne)},se}return(0,he.Z)(pe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Le=this.props.activeKey;Le!==void 0&&Le!==this.state.activeKey&&(this.setState({activeKey:Le}),Le!==null&&this.scrollTo({key:Le}))}},{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 Le,ht=this.state,_e=ht.focused,Ne=ht.flattenNodes,St=ht.keyEntities,gt=ht.draggingNodeKey,Xe=ht.activeKey,wt=ht.dropLevelOffset,Xt=ht.dropContainerKey,bt=ht.dropTargetKey,$t=ht.dropPosition,on=ht.dragOverNodeKey,vt=ht.indent,Oe=this.props,yt=Oe.prefixCls,jt=Oe.className,Zt=Oe.style,nn=Oe.showLine,Cn=Oe.focusable,In=Oe.tabIndex,Dn=In===void 0?0:In,Kn=Oe.selectable,Vn=Oe.showIcon,_n=Oe.icon,or=Oe.switcherIcon,wr=Oe.draggable,Tr=Oe.checkable,Yn=Oe.checkStrictly,hr=Oe.disabled,kr=Oe.motion,Qn=Oe.loadData,Fr=Oe.filterTreeNode,ci=Oe.height,Cr=Oe.itemHeight,pi=Oe.virtual,ai=Oe.titleRender,nr=Oe.dropIndicatorRender,yr=Oe.onContextMenu,Hn=Oe.onScroll,Gn=Oe.direction,Or=Oe.rootClassName,Rt=Oe.rootStyle,Ke=(0,lt.Z)(this.props,{aria:!0,data:!0}),nt;return wr&&((0,Ce.Z)(wr)==="object"?nt=wr:typeof wr=="function"?nt={nodeDraggable:wr}:nt={}),We.createElement(ct.k.Provider,{value:{prefixCls:yt,selectable:Kn,showIcon:Vn,icon:_n,switcherIcon:or,draggable:nt,draggingNodeKey:gt,checkable:Tr,checkStrictly:Yn,disabled:hr,keyEntities:St,dropLevelOffset:wt,dropContainerKey:Xt,dropTargetKey:bt,dropPosition:$t,dragOverNodeKey:on,indent:vt,direction:Gn,dropIndicatorRender:nr,loadData:Qn,filterTreeNode:Fr,titleRender:ai,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}},We.createElement("div",{role:"tree",className:Ie()(yt,jt,Or,(Le={},(0,ke.Z)(Le,"".concat(yt,"-show-line"),nn),(0,ke.Z)(Le,"".concat(yt,"-focused"),_e),(0,ke.Z)(Le,"".concat(yt,"-active-focused"),Xe!==null),Le)),style:Rt},We.createElement(dn,(0,oe.Z)({ref:this.listRef,prefixCls:yt,style:Zt,data:Ne,disabled:hr,selectable:Kn,checkable:!!Tr,motion:kr,dragging:gt!==null,height:ci,itemHeight:Cr,virtual:pi,focusable:Cn,focused:_e,tabIndex:Dn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:yr,onScroll:Hn},this.getTreeNodeRequiredProps(),Ke))))}}],[{key:"getDerivedStateFromProps",value:function(Le,ht){var _e=ht.prevProps,Ne={prevProps:Le};function St(Cn){return!_e&&Cn in Le||_e&&_e[Cn]!==Le[Cn]}var gt,Xe=ht.fieldNames;if(St("fieldNames")&&(Xe=(0,Je.w$)(Le.fieldNames),Ne.fieldNames=Xe),St("treeData")?gt=Le.treeData:St("children")&&((0,Ue.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),gt=(0,Je.zn)(Le.children)),gt){Ne.treeData=gt;var wt=(0,Je.I8)(gt,{fieldNames:Xe});Ne.keyEntities=(0,Ye.Z)((0,ke.Z)({},De,at),wt.keyEntities)}var Xt=Ne.keyEntities||ht.keyEntities;if(St("expandedKeys")||_e&&St("autoExpandParent"))Ne.expandedKeys=Le.autoExpandParent||!_e&&Le.defaultExpandParent?(0,_t.r7)(Le.expandedKeys,Xt):Le.expandedKeys;else if(!_e&&Le.defaultExpandAll){var bt=(0,Ye.Z)({},Xt);delete bt[De],Ne.expandedKeys=Object.keys(bt).map(function(Cn){return bt[Cn].key})}else!_e&&Le.defaultExpandedKeys&&(Ne.expandedKeys=Le.autoExpandParent||Le.defaultExpandParent?(0,_t.r7)(Le.defaultExpandedKeys,Xt):Le.defaultExpandedKeys);if(Ne.expandedKeys||delete Ne.expandedKeys,gt||Ne.expandedKeys){var $t=(0,Je.oH)(gt||ht.treeData,Ne.expandedKeys||ht.expandedKeys,Xe);Ne.flattenNodes=$t}if(Le.selectable&&(St("selectedKeys")?Ne.selectedKeys=(0,_t.BT)(Le.selectedKeys,Le):!_e&&Le.defaultSelectedKeys&&(Ne.selectedKeys=(0,_t.BT)(Le.defaultSelectedKeys,Le))),Le.checkable){var on;if(St("checkedKeys")?on=(0,_t.E6)(Le.checkedKeys)||{}:!_e&&Le.defaultCheckedKeys?on=(0,_t.E6)(Le.defaultCheckedKeys)||{}:gt&&(on=(0,_t.E6)(Le.checkedKeys)||{checkedKeys:ht.checkedKeys,halfCheckedKeys:ht.halfCheckedKeys}),on){var vt=on,Oe=vt.checkedKeys,yt=Oe===void 0?[]:Oe,jt=vt.halfCheckedKeys,Zt=jt===void 0?[]:jt;if(!Le.checkStrictly){var nn=(0,tn.S)(yt,!0,Xt);yt=nn.checkedKeys,Zt=nn.halfCheckedKeys}Ne.checkedKeys=yt,Ne.halfCheckedKeys=Zt}}return St("loadedKeys")&&(Ne.loadedKeys=Le.loadedKeys),Ne}}]),pe}(We.Component);Vt.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:tt,allowDrop:function(){return!0},expandAction:!1},Vt.TreeNode=Ze.Z;var be=Vt,ce=be},35654:function(gn,Kt,ie){"use strict";ie.d(Kt,{BT:function(){return We},E6:function(){return At},L0:function(){return Te},OM:function(){return Ue},_5:function(){return we},r7:function(){return ut},wA:function(){return Ie},yx:function(){return qe}});var oe=ie(94480),ke=ie(76190),Ce=ie(48736),Ye=ie(59301),ye=ie(39417),Ee=ie(67841),he=ie(71430),xe=null;function we(ot,je){if(!ot)return[];var Se=ot.slice(),Fe=Se.indexOf(je);return Fe>=0&&Se.splice(Fe,1),Se}function Te(ot,je){var Se=(ot||[]).slice();return Se.indexOf(je)===-1&&Se.push(je),Se}function qe(ot){return ot.split("-")}function Ie(ot,je){var Se=[],Fe=(0,Ee.Z)(je,ot);function Ze(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];xt.forEach(function(Je){var dt=Je.key,Be=Je.children;Se.push(dt),Ze(Be)})}return Ze(Fe.children),Se}function Re(ot){if(ot.parent){var je=qe(ot.pos);return Number(je[je.length-1])===ot.parent.children.length-1}return!1}function lt(ot){var je=qe(ot.pos);return Number(je[je.length-1])===0}function Ue(ot,je,Se,Fe,Ze,xt,Je,dt,Be,kt){var He,Tt=ot.clientX,mt=ot.clientY,Et=ot.target.getBoundingClientRect(),zt=Et.top,Bt=Et.height,De=(kt==="rtl"?-1:1)*(((Ze==null?void 0:Ze.x)||0)-Tt),ge=(De-12)/Fe,at=(0,Ee.Z)(dt,Se.props.eventKey);if(mt<zt+Bt/2){var Ct=Je.findIndex(function(ce){return ce.key===at.key}),It=Ct<=0?0:Ct-1,Qe=Je[It].key;at=(0,Ee.Z)(dt,Qe)}var et=at.key,Lt=at,dn=at.key,_t=0,tn=0;if(!Be.includes(et))for(var en=0;en<ge&&Re(at);en+=1)at=at.parent,tn+=1;var Jt=je.props.data,Vt=at.node,be=!0;return lt(at)&&at.level===0&&mt<zt+Bt/2&&xt({dragNode:Jt,dropNode:Vt,dropPosition:-1})&&at.key===Se.props.eventKey?_t=-1:(Lt.children||[]).length&&Be.includes(dn)?xt({dragNode:Jt,dropNode:Vt,dropPosition:0})?_t=0:be=!1:tn===0?ge>-1.5?xt({dragNode:Jt,dropNode:Vt,dropPosition:1})?_t=1:be=!1:xt({dragNode:Jt,dropNode:Vt,dropPosition:0})?_t=0:xt({dragNode:Jt,dropNode:Vt,dropPosition:1})?_t=1:be=!1:xt({dragNode:Jt,dropNode:Vt,dropPosition:1})?_t=1:be=!1,{dropPosition:_t,dropLevelOffset:tn,dropTargetKey:at.key,dropTargetPos:at.pos,dragOverNodeKey:dn,dropContainerKey:_t===0?null:((He=at.parent)===null||He===void 0?void 0:He.key)||null,dropAllowed:be}}function We(ot,je){if(ot){var Se=je.multiple;return Se?ot.slice():ot.length?[ot[0]]:ot}}var ct=function(je){return je};function tt(ot,je){if(!ot)return[];var Se=je||{},Fe=Se.processProps,Ze=Fe===void 0?ct:Fe,xt=Array.isArray(ot)?ot:[ot];return xt.map(function(Je){var dt=Je.children,Be=_objectWithoutProperties(Je,xe),kt=tt(dt,je);return React.createElement(TreeNode,_extends({key:Be.key},Ze(Be)),kt)})}function At(ot){if(!ot)return null;var je;if(Array.isArray(ot))je={checkedKeys:ot,halfCheckedKeys:void 0};else if((0,ke.Z)(ot)==="object")je={checkedKeys:ot.checked||void 0,halfCheckedKeys:ot.halfChecked||void 0};else return(0,Ce.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return je}function ut(ot,je){var Se=new Set;function Fe(Ze){if(!Se.has(Ze)){var xt=(0,Ee.Z)(je,Ze);if(xt){Se.add(Ze);var Je=xt.parent,dt=xt.node;dt.disabled||Je&&Fe(Je.key)}}}return(ot||[]).forEach(function(Ze){Fe(Ze)}),(0,oe.Z)(Se)}},90782:function(gn,Kt,ie){"use strict";ie.d(Kt,{S:function(){return he}});var oe=ie(48736),ke=ie(67841);function Ce(xe,we){var Te=new Set;return xe.forEach(function(qe){we.has(qe)||Te.add(qe)}),Te}function Ye(xe){var we=xe||{},Te=we.disabled,qe=we.disableCheckbox,Ie=we.checkable;return!!(Te||qe)||Ie===!1}function ye(xe,we,Te,qe){for(var Ie=new Set(xe),Re=new Set,lt=0;lt<=Te;lt+=1){var Ue=we.get(lt)||new Set;Ue.forEach(function(At){var ut=At.key,ot=At.node,je=At.children,Se=je===void 0?[]:je;Ie.has(ut)&&!qe(ot)&&Se.filter(function(Fe){return!qe(Fe.node)}).forEach(function(Fe){Ie.add(Fe.key)})})}for(var We=new Set,ct=Te;ct>=0;ct-=1){var tt=we.get(ct)||new Set;tt.forEach(function(At){var ut=At.parent,ot=At.node;if(!(qe(ot)||!At.parent||We.has(At.parent.key))){if(qe(At.parent.node)){We.add(ut.key);return}var je=!0,Se=!1;(ut.children||[]).filter(function(Fe){return!qe(Fe.node)}).forEach(function(Fe){var Ze=Fe.key,xt=Ie.has(Ze);je&&!xt&&(je=!1),!Se&&(xt||Re.has(Ze))&&(Se=!0)}),je&&Ie.add(ut.key),Se&&Re.add(ut.key),We.add(ut.key)}})}return{checkedKeys:Array.from(Ie),halfCheckedKeys:Array.from(Ce(Re,Ie))}}function Ee(xe,we,Te,qe,Ie){for(var Re=new Set(xe),lt=new Set(we),Ue=0;Ue<=qe;Ue+=1){var We=Te.get(Ue)||new Set;We.forEach(function(ut){var ot=ut.key,je=ut.node,Se=ut.children,Fe=Se===void 0?[]:Se;!Re.has(ot)&&!lt.has(ot)&&!Ie(je)&&Fe.filter(function(Ze){return!Ie(Ze.node)}).forEach(function(Ze){Re.delete(Ze.key)})})}lt=new Set;for(var ct=new Set,tt=qe;tt>=0;tt-=1){var At=Te.get(tt)||new Set;At.forEach(function(ut){var ot=ut.parent,je=ut.node;if(!(Ie(je)||!ut.parent||ct.has(ut.parent.key))){if(Ie(ut.parent.node)){ct.add(ot.key);return}var Se=!0,Fe=!1;(ot.children||[]).filter(function(Ze){return!Ie(Ze.node)}).forEach(function(Ze){var xt=Ze.key,Je=Re.has(xt);Se&&!Je&&(Se=!1),!Fe&&(Je||lt.has(xt))&&(Fe=!0)}),Se||Re.delete(ot.key),Fe&<.add(ot.key),ct.add(ot.key)}})}return{checkedKeys:Array.from(Re),halfCheckedKeys:Array.from(Ce(lt,Re))}}function he(xe,we,Te,qe){var Ie=[],Re;qe?Re=qe:Re=Ye;var lt=new Set(xe.filter(function(tt){var At=!!(0,ke.Z)(Te,tt);return At||Ie.push(tt),At})),Ue=new Map,We=0;Object.keys(Te).forEach(function(tt){var At=Te[tt],ut=At.level,ot=Ue.get(ut);ot||(ot=new Set,Ue.set(ut,ot)),ot.add(At),We=Math.max(We,ut)}),(0,oe.ZP)(!Ie.length,"Tree missing follow keys: ".concat(Ie.slice(0,100).map(function(tt){return"'".concat(tt,"'")}).join(", ")));var ct;return we===!0?ct=ye(lt,Ue,We,Re):ct=Ee(lt,we.halfCheckedKeys,Ue,We,Re),ct}},67841:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return oe}});function oe(ke,Ce){return ke[Ce]}},71430:function(gn,Kt,ie){"use strict";ie.d(Kt,{F:function(){return ut},H8:function(){return At},I8:function(){return tt},km:function(){return Ie},oH:function(){return We},w$:function(){return Re},zn:function(){return Ue}});var oe=ie(76190),ke=ie(94480),Ce=ie(33885),Ye=ie(75931),ye=ie(11592),Ee=ie(2738),he=ie(48736),xe=ie(67841),we=["children"];function Te(ot,je){return"".concat(ot,"-").concat(je)}function qe(ot){return ot&&ot.type&&ot.type.isTreeNode}function Ie(ot,je){return ot!=null?ot:je}function Re(ot){var je=ot||{},Se=je.title,Fe=je._title,Ze=je.key,xt=je.children,Je=Se||"title";return{title:Je,_title:Fe||[Je],key:Ze||"key",children:xt||"children"}}function lt(ot,je){var Se=new Map;function Fe(Ze){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ze||[]).forEach(function(Je){var dt=Je[je.key],Be=Je[je.children];warning(dt!=null,"Tree node must have a certain key: [".concat(xt).concat(dt,"]"));var kt=String(dt);warning(!Se.has(kt)||dt===null||dt===void 0,"Same 'key' exist in the Tree: ".concat(kt)),Se.set(kt,!0),Fe(Be,"".concat(xt).concat(kt," > "))})}Fe(ot)}function Ue(ot){function je(Se){var Fe=(0,ye.Z)(Se);return Fe.map(function(Ze){if(!qe(Ze))return(0,he.ZP)(!Ze,"Tree/TreeNode can only accept TreeNode as children."),null;var xt=Ze.key,Je=Ze.props,dt=Je.children,Be=(0,Ye.Z)(Je,we),kt=(0,Ce.Z)({key:xt},Be),He=je(dt);return He.length&&(kt.children=He),kt}).filter(function(Ze){return Ze})}return je(ot)}function We(ot,je,Se){var Fe=Re(Se),Ze=Fe._title,xt=Fe.key,Je=Fe.children,dt=new Set(je===!0?[]:je),Be=[];function kt(He){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return He.map(function(mt,Et){for(var zt=Te(Tt?Tt.pos:"0",Et),Bt=Ie(mt[xt],zt),De,ge=0;ge<Ze.length;ge+=1){var at=Ze[ge];if(mt[at]!==void 0){De=mt[at];break}}var Ct=(0,Ce.Z)((0,Ce.Z)({},(0,Ee.Z)(mt,[].concat((0,ke.Z)(Ze),[xt,Je]))),{},{title:De,key:Bt,parent:Tt,pos:zt,children:null,data:mt,isStart:[].concat((0,ke.Z)(Tt?Tt.isStart:[]),[Et===0]),isEnd:[].concat((0,ke.Z)(Tt?Tt.isEnd:[]),[Et===He.length-1])});return Be.push(Ct),je===!0||dt.has(Bt)?Ct.children=kt(mt[Je]||[],Ct):Ct.children=[],Ct})}return kt(ot),Be}function ct(ot,je,Se){var Fe={};(0,oe.Z)(Se)==="object"?Fe=Se:Fe={externalGetKey:Se},Fe=Fe||{};var Ze=Fe,xt=Ze.childrenPropName,Je=Ze.externalGetKey,dt=Ze.fieldNames,Be=Re(dt),kt=Be.key,He=Be.children,Tt=xt||He,mt;Je?typeof Je=="string"?mt=function(Bt){return Bt[Je]}:typeof Je=="function"&&(mt=function(Bt){return Je(Bt)}):mt=function(Bt,De){return Ie(Bt[kt],De)};function Et(zt,Bt,De,ge){var at=zt?zt[Tt]:ot,Ct=zt?Te(De.pos,Bt):"0",It=zt?[].concat((0,ke.Z)(ge),[zt]):[];if(zt){var Qe=mt(zt,Ct),et={node:zt,index:Bt,pos:Ct,key:Qe,parentPos:De.node?De.pos:null,level:De.level+1,nodes:It};je(et)}at&&at.forEach(function(Lt,dn){Et(Lt,dn,{node:zt,pos:Ct,level:De?De.level+1:-1},It)})}Et(null)}function tt(ot){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Se=je.initWrapper,Fe=je.processEntity,Ze=je.onProcessFinished,xt=je.externalGetKey,Je=je.childrenPropName,dt=je.fieldNames,Be=arguments.length>2?arguments[2]:void 0,kt=xt||Be,He={},Tt={},mt={posEntities:He,keyEntities:Tt};return Se&&(mt=Se(mt)||mt),ct(ot,function(Et){var zt=Et.node,Bt=Et.index,De=Et.pos,ge=Et.key,at=Et.parentPos,Ct=Et.level,It=Et.nodes,Qe={node:zt,nodes:It,index:Bt,key:ge,pos:De,level:Ct},et=Ie(ge,De);He[De]=Qe,Tt[et]=Qe,Qe.parent=He[at],Qe.parent&&(Qe.parent.children=Qe.parent.children||[],Qe.parent.children.push(Qe)),Fe&&Fe(Qe,mt)},{externalGetKey:kt,childrenPropName:Je,fieldNames:dt}),Ze&&Ze(mt),mt}function At(ot,je){var Se=je.expandedKeys,Fe=je.selectedKeys,Ze=je.loadedKeys,xt=je.loadingKeys,Je=je.checkedKeys,dt=je.halfCheckedKeys,Be=je.dragOverNodeKey,kt=je.dropPosition,He=je.keyEntities,Tt=(0,xe.Z)(He,ot),mt={eventKey:ot,expanded:Se.indexOf(ot)!==-1,selected:Fe.indexOf(ot)!==-1,loaded:Ze.indexOf(ot)!==-1,loading:xt.indexOf(ot)!==-1,checked:Je.indexOf(ot)!==-1,halfChecked:dt.indexOf(ot)!==-1,pos:String(Tt?Tt.pos:""),dragOver:Be===ot&&kt===0,dragOverGapTop:Be===ot&&kt===-1,dragOverGapBottom:Be===ot&&kt===1};return mt}function ut(ot){var je=ot.data,Se=ot.expanded,Fe=ot.selected,Ze=ot.checked,xt=ot.loaded,Je=ot.loading,dt=ot.halfChecked,Be=ot.dragOver,kt=ot.dragOverGapTop,He=ot.dragOverGapBottom,Tt=ot.pos,mt=ot.active,Et=ot.eventKey,zt=(0,Ce.Z)((0,Ce.Z)({},je),{},{expanded:Se,selected:Fe,checked:Ze,loaded:xt,loading:Je,halfChecked:dt,dragOver:Be,dragOverGapTop:kt,dragOverGapBottom:He,pos:Tt,active:mt,key:Et});return"props"in zt||Object.defineProperty(zt,"props",{get:function(){return(0,he.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ot}}),zt}},8224:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return ke}});var oe=ie(4676);function ke(Ce,Ye,ye,Ee){var he=oe.unstable_batchedUpdates?function(we){oe.unstable_batchedUpdates(ye,we)}:ye;return Ce!=null&&Ce.addEventListener&&Ce.addEventListener(Ye,he,Ee),{remove:function(){Ce!=null&&Ce.removeEventListener&&Ce.removeEventListener(Ye,he,Ee)}}}},55468:function(gn,Kt,ie){"use strict";ie.d(Kt,{g1:function(){return qe},os:function(){return Re}});var oe=/margin|padding|width|height|max|min|offset/,ke={left:!0,top:!0},Ce={cssFloat:1,styleFloat:1,float:1};function Ye(lt){return lt.nodeType===1?lt.ownerDocument.defaultView.getComputedStyle(lt,null):{}}function ye(lt,Ue,We){if(Ue=Ue.toLowerCase(),We==="auto"){if(Ue==="height")return lt.offsetHeight;if(Ue==="width")return lt.offsetWidth}return Ue in ke||(ke[Ue]=oe.test(Ue)),ke[Ue]?parseFloat(We)||0:We}function Ee(lt,Ue){var We=arguments.length,ct=Ye(lt);return Ue=Ce[Ue]?"cssFloat"in lt.style?"cssFloat":"styleFloat":Ue,We===1?ct:ye(lt,Ue,ct[Ue]||lt.style[Ue])}function he(lt,Ue,We){var ct=arguments.length;if(Ue=Ce[Ue]?"cssFloat"in lt.style?"cssFloat":"styleFloat":Ue,ct===3)return typeof We=="number"&&oe.test(Ue)&&(We="".concat(We,"px")),lt.style[Ue]=We,We;for(var tt in Ue)Ue.hasOwnProperty(tt)&&he(lt,tt,Ue[tt]);return Ye(lt)}function xe(lt){return lt===document.body?document.documentElement.clientWidth:lt.offsetWidth}function we(lt){return lt===document.body?window.innerHeight||document.documentElement.clientHeight:lt.offsetHeight}function Te(){var lt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ue=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:lt,height:Ue}}function qe(){var lt=document.documentElement.clientWidth,Ue=window.innerHeight||document.documentElement.clientHeight;return{width:lt,height:Ue}}function Ie(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Re(lt){var Ue=lt.getBoundingClientRect(),We=document.documentElement;return{left:Ue.left+(window.pageXOffset||We.scrollLeft)-(We.clientLeft||document.body.clientLeft||0),top:Ue.top+(window.pageYOffset||We.scrollTop)-(We.clientTop||document.body.clientTop||0)}}},24514:function(gn,Kt,ie){"use strict";ie.d(Kt,{G:function(){return Ye}});var oe=ie(47273),ke=function(Ee){if((0,oe.Z)()&&window.document.documentElement){var he=Array.isArray(Ee)?Ee:[Ee],xe=window.document.documentElement;return he.some(function(we){return we in xe.style})}return!1},Ce=function(Ee,he){if(!ke(Ee))return!1;var xe=document.createElement("div"),we=xe.style[Ee];return xe.style[Ee]=he,xe.style[Ee]!==we};function Ye(ye,Ee){return!Array.isArray(ye)&&Ee!==void 0?Ce(ye,Ee):ke(ye)}},48911:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Vt}});var oe=ie(54476),ke=ie(76190),Ce=ie(33885),Ye=ie(20068),ye=ie(42978),Ee=ie(75931),he=ie(92310),xe=ie.n(he),we=ie(29301),Te=ie(70425),qe=ie(34280),Ie=ie(59301),Re=ie(4676),lt=Ie.forwardRef(function(be,ce){var ue=be.height,de=be.offsetY,pe=be.offsetX,se=be.children,Le=be.prefixCls,ht=be.onInnerResize,_e=be.innerProps,Ne=be.rtl,St=be.extra,gt={},Xe={display:"flex",flexDirection:"column"};return de!==void 0&&(gt={height:ue,position:"relative",overflow:"hidden"},Xe=(0,Ce.Z)((0,Ce.Z)({},Xe),{},(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({transform:"translateY(".concat(de,"px)")},Ne?"marginRight":"marginLeft",-pe),"position","absolute"),"left",0),"right",0),"top",0))),Ie.createElement("div",{style:gt},Ie.createElement(we.Z,{onResize:function(Xt){var bt=Xt.offsetHeight;bt&&ht&&ht()}},Ie.createElement("div",(0,oe.Z)({style:Xe,className:xe()((0,Ye.Z)({},"".concat(Le,"-holder-inner"),Le)),ref:ce},_e),se,St)))});lt.displayName="Filler";var Ue=lt;function We(be){var ce=be.children,ue=be.setRef,de=Ie.useCallback(function(pe){ue(pe)},[]);return Ie.cloneElement(ce,{ref:de})}function ct(be,ce,ue,de,pe,se,Le,ht){var _e=ht.getKey;return be.slice(ce,ue+1).map(function(Ne,St){var gt=ce+St,Xe=Le(Ne,gt,{style:{width:de},offsetX:pe}),wt=_e(Ne);return Ie.createElement(We,{key:wt,setRef:function(bt){return se(Ne,bt)}},Xe)})}function tt(be,ce,ue,de){var pe=ue-be,se=ce-ue,Le=Math.min(pe,se)*2;if(de<=Le){var ht=Math.floor(de/2);return de%2?ue+ht+1:ue-ht}return pe>se?ue-(de-se):ue+(de-pe)}function At(be,ce,ue){var de=be.length,pe=ce.length,se,Le;if(de===0&&pe===0)return null;de<pe?(se=be,Le=ce):(se=ce,Le=be);var ht={__EMPTY_ITEM__:!0};function _e(Xt){return Xt!==void 0?ue(Xt):ht}for(var Ne=null,St=Math.abs(de-pe)!==1,gt=0;gt<Le.length;gt+=1){var Xe=_e(se[gt]),wt=_e(Le[gt]);if(Xe!==wt){Ne=gt,St=St||Xe!==_e(Le[gt+1]);break}}return Ne===null?null:{index:Ne,multiple:St}}function ut(be,ce,ue){var de=Ie.useState(be),pe=(0,ye.Z)(de,2),se=pe[0],Le=pe[1],ht=Ie.useState(null),_e=(0,ye.Z)(ht,2),Ne=_e[0],St=_e[1];return Ie.useEffect(function(){var gt=At(se||[],be||[],ce);(gt==null?void 0:gt.index)!==void 0&&(ue==null||ue(gt.index),St(be[gt.index])),Le(be)},[be]),[Ne]}var ot=ie(16089),je=(typeof navigator=="undefined"?"undefined":(0,ke.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Se=je,Fe=function(be,ce,ue,de){var pe=(0,Ie.useRef)(!1),se=(0,Ie.useRef)(null);function Le(){clearTimeout(se.current),pe.current=!0,se.current=setTimeout(function(){pe.current=!1},50)}var ht=(0,Ie.useRef)({top:be,bottom:ce,left:ue,right:de});return ht.current.top=be,ht.current.bottom=ce,ht.current.left=ue,ht.current.right=de,function(_e,Ne){var St=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,gt=_e?Ne<0&&ht.current.left||Ne>0&&ht.current.right:Ne<0&&ht.current.top||Ne>0&&ht.current.bottom;return St&>?(clearTimeout(se.current),pe.current=!1):(!gt||pe.current)&&Le(),!pe.current&>}};function Ze(be,ce,ue,de,pe,se,Le){var ht=(0,Ie.useRef)(0),_e=(0,Ie.useRef)(null),Ne=(0,Ie.useRef)(null),St=(0,Ie.useRef)(!1),gt=Fe(ce,ue,de,pe);function Xe(vt,Oe){if(ot.Z.cancel(_e.current),!gt(!1,Oe)){var yt=vt;if(!yt._virtualHandled)yt._virtualHandled=!0;else return;ht.current+=Oe,Ne.current=Oe,Se||yt.preventDefault(),_e.current=(0,ot.Z)(function(){var jt=St.current?10:1;Le(ht.current*jt,!1),ht.current=0})}}function wt(vt,Oe){Le(Oe,!0),Se||vt.preventDefault()}var Xt=(0,Ie.useRef)(null),bt=(0,Ie.useRef)(null);function $t(vt){if(be){ot.Z.cancel(bt.current),bt.current=(0,ot.Z)(function(){Xt.current=null},2);var Oe=vt.deltaX,yt=vt.deltaY,jt=vt.shiftKey,Zt=Oe,nn=yt;(Xt.current==="sx"||!Xt.current&&jt&&yt&&!Oe)&&(Zt=yt,nn=0,Xt.current="sx");var Cn=Math.abs(Zt),In=Math.abs(nn);Xt.current===null&&(Xt.current=se&&Cn>In?"x":"y"),Xt.current==="y"?Xe(vt,nn):wt(vt,Zt)}}function on(vt){be&&(St.current=vt.detail===Ne.current)}return[$t,on]}function xt(be,ce,ue,de){var pe=Ie.useMemo(function(){return[new Map,[]]},[be,ue.id,de]),se=(0,ye.Z)(pe,2),Le=se[0],ht=se[1],_e=function(St){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:St,Xe=Le.get(St),wt=Le.get(gt);if(Xe===void 0||wt===void 0)for(var Xt=be.length,bt=ht.length;bt<Xt;bt+=1){var $t,on=be[bt],vt=ce(on);Le.set(vt,bt);var Oe=($t=ue.get(vt))!==null&&$t!==void 0?$t:de;if(ht[bt]=(ht[bt-1]||0)+Oe,vt===St&&(Xe=bt),vt===gt&&(wt=bt),Xe!==void 0&&wt!==void 0)break}return{top:ht[Xe-1]||0,bottom:ht[wt]}};return _e}var Je=ie(67732),dt=ie(83652),Be=function(){function be(){(0,Je.Z)(this,be),(0,Ye.Z)(this,"maps",void 0),(0,Ye.Z)(this,"id",0),(0,Ye.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,dt.Z)(be,[{key:"set",value:function(ue,de){this.diffRecords.set(ue,this.maps[ue]),this.maps[ue]=de,this.id+=1}},{key:"get",value:function(ue){return this.maps[ue]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),be}(),kt=Be;function He(be){var ce=parseFloat(be);return isNaN(ce)?0:ce}function Tt(be,ce,ue){var de=Ie.useState(0),pe=(0,ye.Z)(de,2),se=pe[0],Le=pe[1],ht=(0,Ie.useRef)(new Map),_e=(0,Ie.useRef)(new kt),Ne=(0,Ie.useRef)(0);function St(){Ne.current+=1}function gt(){var wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;St();var Xt=function(){var on=!1;ht.current.forEach(function(vt,Oe){if(vt&&vt.offsetParent){var yt=vt.offsetHeight,jt=getComputedStyle(vt),Zt=jt.marginTop,nn=jt.marginBottom,Cn=He(Zt),In=He(nn),Dn=yt+Cn+In;_e.current.get(Oe)!==Dn&&(_e.current.set(Oe,Dn),on=!0)}}),on&&Le(function(vt){return vt+1})};if(wt)Xt();else{Ne.current+=1;var bt=Ne.current;Promise.resolve().then(function(){bt===Ne.current&&Xt()})}}function Xe(wt,Xt){var bt=be(wt),$t=ht.current.get(bt);Xt?(ht.current.set(bt,Xt),gt()):ht.current.delete(bt),!$t!=!Xt&&(Xt?ce==null||ce(wt):ue==null||ue(wt))}return(0,Ie.useEffect)(function(){return St},[]),[Xe,gt,_e.current,se]}var mt=14/15;function Et(be,ce,ue){var de=(0,Ie.useRef)(!1),pe=(0,Ie.useRef)(0),se=(0,Ie.useRef)(0),Le=(0,Ie.useRef)(null),ht=(0,Ie.useRef)(null),_e,Ne=function(wt){if(de.current){var Xt=Math.ceil(wt.touches[0].pageX),bt=Math.ceil(wt.touches[0].pageY),$t=pe.current-Xt,on=se.current-bt,vt=Math.abs($t)>Math.abs(on);vt?pe.current=Xt:se.current=bt;var Oe=ue(vt,vt?$t:on,!1,wt);Oe&&wt.preventDefault(),clearInterval(ht.current),Oe&&(ht.current=setInterval(function(){vt?$t*=mt:on*=mt;var yt=Math.floor(vt?$t:on);(!ue(vt,yt,!0)||Math.abs(yt)<=.1)&&clearInterval(ht.current)},16))}},St=function(){de.current=!1,_e()},gt=function(wt){_e(),wt.touches.length===1&&!de.current&&(de.current=!0,pe.current=Math.ceil(wt.touches[0].pageX),se.current=Math.ceil(wt.touches[0].pageY),Le.current=wt.target,Le.current.addEventListener("touchmove",Ne,{passive:!1}),Le.current.addEventListener("touchend",St,{passive:!0}))};_e=function(){Le.current&&(Le.current.removeEventListener("touchmove",Ne),Le.current.removeEventListener("touchend",St))},(0,qe.Z)(function(){return be&&ce.current.addEventListener("touchstart",gt,{passive:!0}),function(){var Xe;(Xe=ce.current)===null||Xe===void 0||Xe.removeEventListener("touchstart",gt),_e(),clearInterval(ht.current)}},[be])}function zt(be){return Math.floor(Math.pow(be,.5))}function Bt(be,ce){var ue="touches"in be?be.touches[0]:be;return ue[ce?"pageX":"pageY"]-window[ce?"scrollX":"scrollY"]}function De(be,ce,ue){Ie.useEffect(function(){var de=ce.current;if(be&&de){var pe=!1,se,Le,ht=function(){ot.Z.cancel(se)},_e=function Xe(){ht(),se=(0,ot.Z)(function(){ue(Le),Xe()})},Ne=function(){pe=!1,ht()},St=function(wt){if(!(wt.target.draggable||wt.button!==0)){var Xt=wt;Xt._virtualHandled||(Xt._virtualHandled=!0,pe=!0)}},gt=function(wt){if(pe){var Xt=Bt(wt,!1),bt=de.getBoundingClientRect(),$t=bt.top,on=bt.bottom;if(Xt<=$t){var vt=$t-Xt;Le=-zt(vt),_e()}else if(Xt>=on){var Oe=Xt-on;Le=zt(Oe),_e()}else ht()}};return de.addEventListener("mousedown",St),de.ownerDocument.addEventListener("mouseup",Ne),de.ownerDocument.addEventListener("mousemove",gt),de.ownerDocument.addEventListener("dragend",Ne),function(){de.removeEventListener("mousedown",St),de.ownerDocument.removeEventListener("mouseup",Ne),de.ownerDocument.removeEventListener("mousemove",gt),de.ownerDocument.removeEventListener("dragend",Ne),ht()}}},[be])}var ge=10;function at(be,ce,ue,de,pe,se,Le,ht){var _e=Ie.useRef(),Ne=Ie.useState(null),St=(0,ye.Z)(Ne,2),gt=St[0],Xe=St[1];return(0,qe.Z)(function(){if(gt&>.times<ge){if(!be.current){Xe(function(kr){return(0,Ce.Z)({},kr)});return}se();var wt=gt.targetAlign,Xt=gt.originAlign,bt=gt.index,$t=gt.offset,on=be.current.clientHeight,vt=!1,Oe=wt,yt=null;if(on){for(var jt=wt||Xt,Zt=0,nn=0,Cn=0,In=Math.min(ce.length-1,bt),Dn=0;Dn<=In;Dn+=1){var Kn=pe(ce[Dn]);nn=Zt;var Vn=ue.get(Kn);Cn=nn+(Vn===void 0?de:Vn),Zt=Cn}for(var _n=jt==="top"?$t:on-$t,or=In;or>=0;or-=1){var wr=pe(ce[or]),Tr=ue.get(wr);if(Tr===void 0){vt=!0;break}if(_n-=Tr,_n<=0)break}switch(jt){case"top":yt=nn-$t;break;case"bottom":yt=Cn-on+$t;break;default:{var Yn=be.current.scrollTop,hr=Yn+on;nn<Yn?Oe="top":Cn>hr&&(Oe="bottom")}}yt!==null&&Le(yt),yt!==gt.lastTop&&(vt=!0)}vt&&Xe((0,Ce.Z)((0,Ce.Z)({},gt),{},{times:gt.times+1,targetAlign:Oe,lastTop:yt}))}},[gt,be.current]),function(wt){if(wt==null){ht();return}if(ot.Z.cancel(_e.current),typeof wt=="number")Le(wt);else if(wt&&(0,ke.Z)(wt)==="object"){var Xt,bt=wt.align;"index"in wt?Xt=wt.index:Xt=ce.findIndex(function(vt){return pe(vt)===wt.key});var $t=wt.offset,on=$t===void 0?0:$t;Xe({times:0,index:Xt,offset:on,originAlign:bt})}}}var Ct=Ie.forwardRef(function(be,ce){var ue=be.prefixCls,de=be.rtl,pe=be.scrollOffset,se=be.scrollRange,Le=be.onStartMove,ht=be.onStopMove,_e=be.onScroll,Ne=be.horizontal,St=be.spinSize,gt=be.containerSize,Xe=be.style,wt=be.thumbStyle,Xt=be.showScrollBar,bt=Ie.useState(!1),$t=(0,ye.Z)(bt,2),on=$t[0],vt=$t[1],Oe=Ie.useState(null),yt=(0,ye.Z)(Oe,2),jt=yt[0],Zt=yt[1],nn=Ie.useState(null),Cn=(0,ye.Z)(nn,2),In=Cn[0],Dn=Cn[1],Kn=!de,Vn=Ie.useRef(),_n=Ie.useRef(),or=Ie.useState(Xt),wr=(0,ye.Z)(or,2),Tr=wr[0],Yn=wr[1],hr=Ie.useRef(),kr=function(){Xt===!0||Xt===!1||(clearTimeout(hr.current),Yn(!0),hr.current=setTimeout(function(){Yn(!1)},3e3))},Qn=se-gt||0,Fr=gt-St||0,ci=Ie.useMemo(function(){if(pe===0||Qn===0)return 0;var Rt=pe/Qn;return Rt*Fr},[pe,Qn,Fr]),Cr=function(Ke){Ke.stopPropagation(),Ke.preventDefault()},pi=Ie.useRef({top:ci,dragging:on,pageY:jt,startTop:In});pi.current={top:ci,dragging:on,pageY:jt,startTop:In};var ai=function(Ke){vt(!0),Zt(Bt(Ke,Ne)),Dn(pi.current.top),Le(),Ke.stopPropagation(),Ke.preventDefault()};Ie.useEffect(function(){var Rt=function(it){it.preventDefault()},Ke=Vn.current,nt=_n.current;return Ke.addEventListener("touchstart",Rt,{passive:!1}),nt.addEventListener("touchstart",ai,{passive:!1}),function(){Ke.removeEventListener("touchstart",Rt),nt.removeEventListener("touchstart",ai)}},[]);var nr=Ie.useRef();nr.current=Qn;var yr=Ie.useRef();yr.current=Fr,Ie.useEffect(function(){if(on){var Rt,Ke=function(it){var Dt=pi.current,Ht=Dt.dragging,sn=Dt.pageY,qt=Dt.startTop;ot.Z.cancel(Rt);var mn=Vn.current.getBoundingClientRect(),An=gt/(Ne?mn.width:mn.height);if(Ht){var Tn=(Bt(it,Ne)-sn)*An,Pn=qt;!Kn&&Ne?Pn-=Tn:Pn+=Tn;var Qt=nr.current,wn=yr.current,Xn=wn?Pn/wn:0,Wn=Math.ceil(Xn*Qt);Wn=Math.max(Wn,0),Wn=Math.min(Wn,Qt),Rt=(0,ot.Z)(function(){_e(Wn,Ne)})}},nt=function(){vt(!1),ht()};return window.addEventListener("mousemove",Ke,{passive:!0}),window.addEventListener("touchmove",Ke,{passive:!0}),window.addEventListener("mouseup",nt,{passive:!0}),window.addEventListener("touchend",nt,{passive:!0}),function(){window.removeEventListener("mousemove",Ke),window.removeEventListener("touchmove",Ke),window.removeEventListener("mouseup",nt),window.removeEventListener("touchend",nt),ot.Z.cancel(Rt)}}},[on]),Ie.useEffect(function(){return kr(),function(){clearTimeout(hr.current)}},[pe]),Ie.useImperativeHandle(ce,function(){return{delayHidden:kr}});var Hn="".concat(ue,"-scrollbar"),Gn={position:"absolute",visibility:Tr?null:"hidden"},Or={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ne?(Object.assign(Gn,{height:8,left:0,right:0,bottom:0}),Object.assign(Or,(0,Ye.Z)({height:"100%",width:St},Kn?"left":"right",ci))):(Object.assign(Gn,(0,Ye.Z)({width:8,top:0,bottom:0},Kn?"right":"left",0)),Object.assign(Or,{width:"100%",height:St,top:ci})),Ie.createElement("div",{ref:Vn,className:xe()(Hn,(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},"".concat(Hn,"-horizontal"),Ne),"".concat(Hn,"-vertical"),!Ne),"".concat(Hn,"-visible"),Tr)),style:(0,Ce.Z)((0,Ce.Z)({},Gn),Xe),onMouseDown:Cr,onMouseMove:kr},Ie.createElement("div",{ref:_n,className:xe()("".concat(Hn,"-thumb"),(0,Ye.Z)({},"".concat(Hn,"-thumb-moving"),on)),style:(0,Ce.Z)((0,Ce.Z)({},Or),wt),onMouseDown:ai}))}),It=Ct,Qe=20;function et(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ue=be/ce*be;return isNaN(ue)&&(ue=0),ue=Math.max(ue,Qe),Math.floor(ue)}var Lt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],dn=[],_t={overflowY:"auto",overflowAnchor:"none"};function tn(be,ce){var ue=be.prefixCls,de=ue===void 0?"rc-virtual-list":ue,pe=be.className,se=be.height,Le=be.itemHeight,ht=be.fullHeight,_e=ht===void 0?!0:ht,Ne=be.style,St=be.data,gt=be.children,Xe=be.itemKey,wt=be.virtual,Xt=be.direction,bt=be.scrollWidth,$t=be.component,on=$t===void 0?"div":$t,vt=be.onScroll,Oe=be.onVirtualScroll,yt=be.onVisibleChange,jt=be.innerProps,Zt=be.extraRender,nn=be.styles,Cn=be.showScrollBar,In=Cn===void 0?"optional":Cn,Dn=(0,Ee.Z)(be,Lt),Kn=Ie.useCallback(function(jr){return typeof Xe=="function"?Xe(jr):jr==null?void 0:jr[Xe]},[Xe]),Vn=Tt(Kn,null,null),_n=(0,ye.Z)(Vn,4),or=_n[0],wr=_n[1],Tr=_n[2],Yn=_n[3],hr=!!(wt!==!1&&se&&Le),kr=Ie.useMemo(function(){return Object.values(Tr.maps).reduce(function(jr,$r){return jr+$r},0)},[Tr.id,Tr.maps]),Qn=hr&&St&&(Math.max(Le*St.length,kr)>se||!!bt),Fr=Xt==="rtl",ci=xe()(de,(0,Ye.Z)({},"".concat(de,"-rtl"),Fr),pe),Cr=St||dn,pi=(0,Ie.useRef)(),ai=(0,Ie.useRef)(),nr=(0,Ie.useRef)(),yr=(0,Ie.useState)(0),Hn=(0,ye.Z)(yr,2),Gn=Hn[0],Or=Hn[1],Rt=(0,Ie.useState)(0),Ke=(0,ye.Z)(Rt,2),nt=Ke[0],rt=Ke[1],it=(0,Ie.useState)(!1),Dt=(0,ye.Z)(it,2),Ht=Dt[0],sn=Dt[1],qt=function(){sn(!0)},mn=function(){sn(!1)},An={getKey:Kn};function Tn(jr){Or(function($r){var Di;typeof jr=="function"?Di=jr($r):Di=jr;var Ii=ei(Di);return pi.current.scrollTop=Ii,Ii})}var Pn=(0,Ie.useRef)({start:0,end:Cr.length}),Qt=(0,Ie.useRef)(),wn=ut(Cr,Kn),Xn=(0,ye.Z)(wn,1),Wn=Xn[0];Qt.current=Wn;var sr=Ie.useMemo(function(){if(!hr)return{scrollHeight:void 0,start:0,end:Cr.length-1,offset:void 0};if(!Qn){var jr;return{scrollHeight:((jr=ai.current)===null||jr===void 0?void 0:jr.offsetHeight)||0,start:0,end:Cr.length-1,offset:void 0}}for(var $r=0,Di,Ii,La,So=Cr.length,Ga=0;Ga<So;Ga+=1){var la=Cr[Ga],Oa=Kn(la),Ma=Tr.get(Oa),vr=$r+(Ma===void 0?Le:Ma);vr>=Gn&&Di===void 0&&(Di=Ga,Ii=$r),vr>Gn+se&&La===void 0&&(La=Ga),$r=vr}return Di===void 0&&(Di=0,Ii=0,La=Math.ceil(se/Le)),La===void 0&&(La=Cr.length-1),La=Math.min(La+1,Cr.length-1),{scrollHeight:$r,start:Di,end:La,offset:Ii}},[Qn,hr,Gn,Cr,Yn,se]),Jn=sr.scrollHeight,Ar=sr.start,Fn=sr.end,dr=sr.offset;Pn.current.start=Ar,Pn.current.end=Fn,Ie.useLayoutEffect(function(){var jr=Tr.getRecord();if(jr.size===1){var $r=Array.from(jr.keys())[0],Di=jr.get($r),Ii=Cr[Ar];if(Ii&&Di===void 0){var La=Kn(Ii);if(La===$r){var So=Tr.get($r),Ga=So-Le;Tn(function(la){return la+Ga})}}}Tr.resetRecord()},[Jn]);var Ot=Ie.useState({width:0,height:se}),cn=(0,ye.Z)(Ot,2),vn=cn[0],Mn=cn[1],yn=function($r){Mn({width:$r.offsetWidth,height:$r.offsetHeight})},Sn=(0,Ie.useRef)(),bn=(0,Ie.useRef)(),zn=Ie.useMemo(function(){return et(vn.width,bt)},[vn.width,bt]),Zn=Ie.useMemo(function(){return et(vn.height,Jn)},[vn.height,Jn]),qn=Jn-se,_r=(0,Ie.useRef)(qn);_r.current=qn;function ei(jr){var $r=jr;return Number.isNaN(_r.current)||($r=Math.min($r,_r.current)),$r=Math.max($r,0),$r}var di=Gn<=0,zr=Gn>=qn,Lr=nt<=0,mi=nt>=bt,oi=Fe(di,zr,Lr,mi),ti=function(){return{x:Fr?-nt:nt,y:Gn}},Pr=(0,Ie.useRef)(ti()),Vr=(0,Te.useEvent)(function(jr){if(Oe){var $r=(0,Ce.Z)((0,Ce.Z)({},ti()),jr);(Pr.current.x!==$r.x||Pr.current.y!==$r.y)&&(Oe($r),Pr.current=$r)}});function En(jr,$r){var Di=jr;$r?((0,Re.flushSync)(function(){rt(Di)}),Vr()):Tn(Di)}function Yr(jr){var $r=jr.currentTarget.scrollTop;$r!==Gn&&Tn($r),vt==null||vt(jr),Vr()}var Li=function($r){var Di=$r,Ii=bt?bt-vn.width:0;return Di=Math.max(Di,0),Di=Math.min(Di,Ii),Di},Yi=(0,Te.useEvent)(function(jr,$r){$r?((0,Re.flushSync)(function(){rt(function(Di){var Ii=Di+(Fr?-jr:jr);return Li(Ii)})}),Vr()):Tn(function(Di){var Ii=Di+jr;return Ii})}),ni=Ze(hr,di,zr,Lr,mi,!!bt,Yi),tr=(0,ye.Z)(ni,2),Un=tr[0],Qr=tr[1];Et(hr,pi,function(jr,$r,Di,Ii){var La=Ii;return oi(jr,$r,Di)?!1:!La||!La._virtualHandled?(La&&(La._virtualHandled=!0),Un({preventDefault:function(){},deltaX:jr?$r:0,deltaY:jr?0:$r}),!0):!1}),De(Qn,pi,function(jr){Tn(function($r){return $r+jr})}),(0,qe.Z)(function(){function jr(Di){var Ii=di&&Di.detail<0,La=zr&&Di.detail>0;hr&&!Ii&&!La&&Di.preventDefault()}var $r=pi.current;return $r.addEventListener("wheel",Un,{passive:!1}),$r.addEventListener("DOMMouseScroll",Qr,{passive:!0}),$r.addEventListener("MozMousePixelScroll",jr,{passive:!1}),function(){$r.removeEventListener("wheel",Un),$r.removeEventListener("DOMMouseScroll",Qr),$r.removeEventListener("MozMousePixelScroll",jr)}},[hr,di,zr]),(0,qe.Z)(function(){if(bt){var jr=Li(nt);rt(jr),Vr({x:jr})}},[vn.width,bt]);var Dr=function(){var $r,Di;($r=Sn.current)===null||$r===void 0||$r.delayHidden(),(Di=bn.current)===null||Di===void 0||Di.delayHidden()},fi=at(pi,Cr,Tr,Le,Kn,function(){return wr(!0)},Tn,Dr);Ie.useImperativeHandle(ce,function(){return{nativeElement:nr.current,getScrollInfo:ti,scrollTo:function($r){function Di(Ii){return Ii&&(0,ke.Z)(Ii)==="object"&&("left"in Ii||"top"in Ii)}Di($r)?($r.left!==void 0&&rt(Li($r.left)),fi($r.top)):fi($r)}}}),(0,qe.Z)(function(){if(yt){var jr=Cr.slice(Ar,Fn+1);yt(jr,Cr)}},[Ar,Fn,Cr]);var Ni=xt(Cr,Kn,Tr,Le),si=Zt==null?void 0:Zt({start:Ar,end:Fn,virtual:Qn,offsetX:nt,offsetY:dr,rtl:Fr,getSize:Ni}),ea=ct(Cr,Ar,Fn,bt,nt,or,gt,An),ki=null;se&&(ki=(0,Ce.Z)((0,Ye.Z)({},_e?"height":"maxHeight",se),_t),hr&&(ki.overflowY="hidden",bt&&(ki.overflowX="hidden"),Ht&&(ki.pointerEvents="none")));var Da={};return Fr&&(Da.dir="rtl"),Ie.createElement("div",(0,oe.Z)({ref:nr,style:(0,Ce.Z)((0,Ce.Z)({},Ne),{},{position:"relative"}),className:ci},Da,Dn),Ie.createElement(we.Z,{onResize:yn},Ie.createElement(on,{className:"".concat(de,"-holder"),style:ki,ref:pi,onScroll:Yr,onMouseEnter:Dr},Ie.createElement(Ue,{prefixCls:de,height:Jn,offsetX:nt,offsetY:dr,scrollWidth:bt,onInnerResize:wr,ref:ai,innerProps:jt,rtl:Fr,extra:si},ea))),Qn&&Jn>se&&Ie.createElement(It,{ref:Sn,prefixCls:de,scrollOffset:Gn,scrollRange:Jn,rtl:Fr,onScroll:En,onStartMove:qt,onStopMove:mn,spinSize:Zn,containerSize:vn.height,style:nn==null?void 0:nn.verticalScrollBar,thumbStyle:nn==null?void 0:nn.verticalScrollBarThumb,showScrollBar:In}),Qn&&bt>vn.width&&Ie.createElement(It,{ref:bn,prefixCls:de,scrollOffset:nt,scrollRange:bt,rtl:Fr,onScroll:En,onStartMove:qt,onStopMove:mn,spinSize:zn,containerSize:vn.width,horizontal:!0,style:nn==null?void 0:nn.horizontalScrollBar,thumbStyle:nn==null?void 0:nn.horizontalScrollBarThumb,showScrollBar:In}))}var en=Ie.forwardRef(tn);en.displayName="List";var Jt=en,Vt=Jt},90034:function(gn,Kt,ie){var oe={"./doc.png":63604,"./docx.png":30045,"./jpg.png":13740,"./md.png":58881,"./pdf.png":28982,"./png.png":2487,"./txt.png":3164,"./xls.png":88745,"./xlsx.png":49321};function ke(Ye){var ye=Ce(Ye);return ie(ye)}function Ce(Ye){if(!ie.o(oe,Ye)){var ye=new Error("Cannot find module '"+Ye+"'");throw ye.code="MODULE_NOT_FOUND",ye}return oe[Ye]}ke.keys=function(){return Object.keys(oe)},ke.resolve=Ce,gn.exports=ke,ke.id=90034},11689:function(gn){"use strict";gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAABERJREFUSEullltsVFUUhr+1z3SgQoVOS9sZqG2oCZcENDHxyQQT9WXqpQ0E37xweVESosbwIo2ATxpJiTZFUkmkaowSCtg0mJAIiRqJMUFMTBUUQum0KDNDhZG2M2cvs08z7bSdGUncT+fsvdb/r9u/zxHKrNFbWsckT1s0LrBKhSiqAoyg+hviDYR8TtbVyWg5HOcwb42Oap2G7ZuqvAgsLAeAMIFyJLTAdNQtLk42j2Q4lXtKrHyIsKws+PzDJKrbY7WhvrlHs0iGk7ltghwEvNIEChQtgHOxImZHNCLdhf7T1iNjGsfXk6pakkAVMllYFC5NIyLWiGysr5bjeaKAxDXYZnUQ1er/KlH6DlRXlrcS+DtrzZr7lknCWQYkiaTfA2wt5Zov0LiFSRUWoITz+SpIkeqJ0BuNeM8FJEEWk3YICM8lceDGQDgsqAi5HOT8qdDEgKiiOS3VoZyvprmxVoZlNK07rbWdxbKoCAvW+lz45SLpsVsB6PQSQ1NTI7FoPfiKKQIgwq5oxHtbEkl7DLS90Cbrw+83lNUNObbu2M3pb86SvZ0hSGWGhaqqJezZu5uN7XEujSir6sEUlE5EBqIR0yrDKf+iKPfnfa3CqyeE9G0hXtXPax17sJkM+P5U7VwDXEbWBs/3Lqml/9Qp2g4v4q0nlbZ1s4b3WqzGNMpw0k8LLM0fJf+BDT3CwyuE5j/e42DPIZiYpDn+GMnBS2QSo9SsW4OI8OcP5xET5tOjfbx8ZiUPNcJHGwtKiozHakylJJL+LWBxnuRGBrYdM6xvgIrzB+ju7g4ij3/SxeAXXzL09bc8uGMLxjOc29eJmAo+P9bH/vMtNNfCu/EZEhHJRSOmQhIpexnV5jzJzTvwxlfC6jph7LsDdL3fBZ7Holg9ufEJ7ESW0OJKbDbHROomIiFOnOzjyK8tNEbg9Q0FmSjXY7Veg2t8P2jrTE+Uw+cMVZWQ+rGXfXv2BSSuHyYUAjRoibohUCUUvofvzw5w+EI9j7Yoj6yc1ZPTsRrzhIyk/JdU6So8Gs9C8g4syF0n3r6F4ZEhgvhEAk2oe1N3wQmbN23ig84OfhpSVkbmCtO8EquRThm6octDRq+oqguzYEChcqFweSjBZ32nSKbTs5TgGv/A2lU82/Y4ngkzPjFP+laMaYlWy5Wpuyulh6za7XP15KZ1YQWEKgTjTU2tK5Xbd9PsKpadVCYL5ZMHEY7EIt7z03fX1b80FjJ2EKgqpnwH6ETmwPNac3py0ikc2Bl8yajI2lhErk6TBNmk9RlrnfqL3hDFuEvtqXhmc3SpHJ0hLTBNpHUn1u7/H0TuD2DX8oj3ztz+zoroelrbfGt7CwV6l2lkxDMvFGZQNJP85rWkrvCwexXc96DMpzjwsAgfg9md78G8ASoXZSKtTVjbBtIKuh6oDeyVpIr+7BmvX+G4G9NyOCX/CO6yRHdl9i+jmbAprh0r/wAAAABJRU5ErkJggg=="},71986:function(gn){"use strict";gn.exports="data:image/png;base64,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"},37166:function(gn){"use strict";gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAIABJREFUeF6VnQmAnGV9/z/vMffeV3azuRMCSUgCSQggiCBFEE9UvFpqW6utFopa71bx6GHRWq31xKtSFS0eqICV+wwSIJKQkDvZJJvsObOzO/d7PH9/z/O+s5sY2/4XhpmdnXln3u/7/f1+39/xPFj8H39Wr742GRaOXaYs65WWnVhtuc58y7Lmh4oWZYFv2fpIgdxZFtg2oZMgdByU7eA7Npbt6L958rttUXMsQtsCyyawLEI5gC0HMMcCpf8193ILIVT6ZoUhlgqxw5BEoLAD87ulAuxQkZC/h4ogDHBCX79eXivHsfShQizkOJQsFR63FMdVGO6yHfWz1s4FD+za9V+N/ws01v/2otVLzuv36tZHwfpDlN1m2w6W62LLiVpyLhahpQixNRiBxkPAE+BcQtvRj+Veyd8dG99x8CyLIOESuC4qlPcJ6BH48lgOHoMnXzIMIAJA7gUQ/VwQ4obgBgGOgBiGOAiIIY4fEqoQFXoazEQIlrwnuhhKLoB8hgZXPlH/IhdsGmV911HpTxwef3Dkf8Lo9wL40hUvTR0uTfxtiHpPYFk527KxQhfLtbGdhAZJoQiEEChC+V1AsS0sR8AU0ISB8pwLtkPg2niuTaAZaBO4CXwBUL6hMFiA0zdDuuYDfcLyQQJaBJwG0QAo906gcAXMiInCOtuPQQ80gI4GKgYQ/dhSShNbPtDRdwGhsFw+z6JswWdTbV3/sH//3fXTAXlaAIV1qmr9RKnwAmGVsmxsLCxLgLA0eFiOBkyflzDQEWDknB3Qj11CxyVwxGxdlDAvIaZs4dsODcfFd1yU62hw5bgngRhZrkZSgxabcARiIOD5+m8CoO2H2EFAMgg1E1Gefs4Vc1cCYGTC2pwFKAOSvMdcrMgAwiBirUZVAww84dq5a07Hxt8B8OwF568Lg/BOpawFMeKhsE8g1GBoz2HAi1gjIIdizhpcB+UIwwQ0Y7o4Ll7CJpB7x6HhCnjGtBF2atuVKz6HgdqMIybGptv0h7H5+gZEP8QKAg2G64vPUziBp38X1rmRyRqmikkLMw2A2pfKY5TxvGGAChVi3vJ9bDdB6DXEvx7DVVcfG316x1wmngSgMI86W5VSC+Sk9DmIjxP2aZbY2o8JgJb2fbZmTmijnxczFjZp5kVAavAEMM0+h4btUpOvKsdOJ+jubGPxvB6WDnQz2N1JX0cLLckkthxPKSqez8hUieGJKQ6PTDI0MslEYRpqdcMi8VlitoGYrAAakggDkn6gnxNAxEcKeG4UdJSAqAzzxFdqAHUAkvMV9sot0OdpOy5h4BmmYx1zbeu8w+Nbm36xCWDk8x4EdYHxPtoj6J9QM8OwT4NoxQBa4EqgEFBDzTYBOpTn5IMdh8ARP2dTtx3KoSLZkmHdmYt5yaZVvHDtSlYvHqCvo5WEI0z8n38CFTJeLLH76BiP7dzHPU/v4annD1MWQOV0tUn6mnlpDaqnmSl+UUBpAhj70ZiBmqECZuQmmiCKl9d2bBgrEGI9ke7suTT2iU0A1wyc/wlF+BElB9XxSMw2cg+RtFDa94npxicq5mprJirHQv9dmOca36fcBFUcaipgwWAvr7h8M6+74kLOXbnk9wBmvmRsuf+rRAD2HB3hp488w/f+ewvbdw+B72n2pgIfV4NpfKOAY4KGidQmmAgzxdfJc/JYAAzQGEQ+Us5Vu/bopOVvoRV8cnji6Y/GYQ4xXavOfgU5/WQY+Thjwdq5a0aKsoj8lDyvfaA2azFbGxz5tIRmYMOCWqAYXNjHH7/uCt78ihcz0NPVpJj+krGfOw3xIr8e+/fZi9mEN+JD9N5Kvc6dj/6GL9x2F49s3a2ByVniCyWAiH8UE/VNJI4itQEwMJcsFLMW4MS/CmBREJEz1xpXXhUSmiBTdm1rhZiyfu/Zg5u/FIbqHSedhxKZIuZrcLZxDZg6WhqA5doIA0XbKdfCkcBhu1TFB2VTvPHal3D9n7yW+X095rT/B9D0Z5mIp32u4UXsQiJTiExiFnexFnAUuOLwAS8IuP2eLXzqltvZvuMQrQkLV4trMVHfBJsoMscM1A5IP2f8oS3W43va7G0cLcuUsrBVSCC+U5tz8OWjk0+/07p29bXJXVNHxkG1yQnOUsQAKNJEvpptuVrviYDWQCoxWfF3Rn4oV553qHoe6zes5KPvezsXbFr3vwLnR4wyelKAU/ri+NqrGhdiwDRgGddioBURL08KcOJBkwoSlkUKmCqV+fTXf8QXv/lTGtUGWccyJhyzUY4R+TxbzFL8p85yogynCYT2ezpIykUIQ/ONUUy3zFvUa60ZuPBKrOCXMUPi9ylhoDbTyNIliOhMa46UETA1gA6enLgDf/KWV/Ge6/+E1pacZpx+92lMVX9XFL6I7wgkiXvy9eRdvgL5XUDVaZ64J0ucuoFR/1eBp/WuAVCAS1qKpAVpbLLA/Vu2ceNNX+LAniPkUrY24aYmNCetQRUGyt+EdXJcZ67zsCzcREq/zm809LfS5+YEV1lr5p/3RaV456luSKuiiJCGhY5mojZhfROAjQ+sBQGdPTlu+ugNvPoVL/m9rNOMlo/X4Bi2iYsQ8OV3XxkAJR0MlAAnv1t4+n3ydQyAcZiTDxKg7XpIQomvAteGpA0pG9IWtFs2x0cneNcH/5Vf3fsErSk3ki5yaYzvE9MVQCRzEVzE9kxaZ1JLycKMx1X4vqfzaP1tFF+y1gyc94CCS08FEGUSem1CIpC1LpSAEWk4eWzZVPw6q9Yu5zM3f5C1Z686LetElMpXEhAEKAFGHouZCgD6XsxWWfiW0oDJTcAz7zHfQ0A1+tfIDu3WlSJRMSmc2IjjiC8G17FJuZByLFpEKdTqfPimz/P9795NS8I1/k2D97uFClvz3nym0Ybm4hnCCsjNLOVBa/X8zXtUGK78HVOLTFgYIvDJlTAMnNWD5XqNy696AZ/65w/S19sTBYnI5CPzCCW31B9q42lWmZtvSwVHTNCiEYEm7JPfNSOlwCDgis8OfiuwAkUQWBgRLGYXgyiRNsRRBkDXVtrpJ20b17VxXIuUa5FNOqR+W/L4xMf+ne987UdkUgkNXnwTwa19qy7YSF5s/GKEmqngaCJEYttcwb3WmoHNM6EKW04F0BKHpp2nMTN9NSxH3wTPuufxmjdfxSf//n2k0xmTe2ubMFdUf5gGLyQIQ104EX+lTRNHp3RSXGhIWUuADAUk8HwxE0XghzpLCwJ5b4gv6ZUAqY9tbnJSWmUJ80SyWEp7F8kQXQHQcXBdi4Rrk0jYpJMuGRf+4cOf5bvfuoN0Ookzp0ghzDPkjtO7yEfGsTXK/ZUS29A+uWStmrdRBNnJzl6br6Rvhk3CPA1ilPs2PI9LX7KRL93yUZJJKSjI+zNYpCP8fANgaMCTmpwOCsKi0JLUlUA5eLZLPenQEP/nKTwvJPA8Ql8AC/HkdYG8XzI0UzURVmpf2BSKJoe1hXni7LG0H7QdheMYBrqOOwtiJkHaVnz4+k9w1x3305pK6YusCwvaJfq6xGUIoEy5KzJnxzWs9X0pFZrs6/QAats3TBO/JwDHmkxMuNbw+Mq3P8QVV11AGNT0VRcJA0mUSqNC25ysZp5hoR8DISzTwMTm6mhmNnyFp0010EDLa+T5UF8AqRcoDapIF00areqNg9J5k7BPg2frmqx8nYRtwBQGuq6Lk7BxkxbZTJqwVuX6697Lzm27SCQTWJKxxHJGGG5s2fjAKIDNif/6YumQtqp/kzp9RiDlqygD0bmu6DOp3SlqNY+bP38jr3vTZajQlMmMn5SrliQIMvi+pU9eKhuBgKLv5SZ+zZikF1g0BCj9N2gEwk5l/i6vUwKkMVdPqldKGByVPDWQca5q+CDsEyY6otkkMbItEnbEQg2iMWU34dLSluHE0BGuf/N7KExMaf2oy2YRt0xxQT5DK1MDlnZT5sIZLaywVg+cN0c9nxyLNYBSAxQGCj5KvATUag1e+qqL+eLX34cKa+ZDmyFLImOSej2tARP/JSYcil/T4MS3ECmeNCJGCmgapMDCCwVAAc+wT9joC7jaLRjpEuvIOGRpcSMmbCksYZ4uRSnjCwVEyUhcBzcpIDokki7tnS089ssH+diNf29MNTZZqW/qanUsZgwbtUlHPtePGXp6ACOy6oChS6m60uxE0qZS83jv313HO258DSg/Kv/IVTF5g3ys56Wp1oSNxiQ1kEGgA4QBMQLJtzRwkoLJfRM4MWntbwRQS/tC8Z0ieA2AIoWiml6co2jNZtoqUlBwI0mTiHyhI0FFwEs4JJMObsqlvaOVr37q37ntlttJpxM62zBhxDDQtpwo+zCBcTYrjl5zWgBN0ostdh7lvnEwkftkJsE3vv9x1p2zWJtMJJSM37CihCy0KFeyVGtWEzwBUAcI7e/MvTZVX9HQDJR7A6YwVszXgCogm98FQLE0KW0JiEZYaAeiGajlfuwD5XeJyDoaS+UtNmMB0cVNOiRzaS2kP/jW97Nvxx6SbiIy2CiINHszAqzRjXGVSCuBUwGc9YfxyyQaGzOW7+p7IWs3nsFXvvNhOruyphBpJH2kdaKCJCF+PUFhJkXdM8FE+cJGP5IpApZPIAzzFXU/0GAKYA2RMMJSAVuDKr4yei5mofaNcbIUgRhpVrmorliMZqC51wA6ThSNJTVzdfBwkwlyHS3s3b6Tj7zjb1HiL/SpmvOJSvpRIDFNKGOfkQ49HQNPBjEq5+vMw6JWrfPGt17NRz75Z5GEidOeSNHbkVIXYAOYnkkzVbIJIvBC3ze6zg81cJ4f0PBF/xmfKL/r5/VrjJAWRgoz5bH4UfGNwkQDoKlcxzpW68CmHrQNiBpACzFlE0jElE0wEQDdtEtbZzvf+uzX+Ol//JhUOmly4ij7MJF41gdq1pumE9aa/vOMjDvlx4BoTNlEWANktd7g4595B2/4wxebdoY+ji6sRaZsul7KkpI6eDWb0XySai0gFMZFZqzN1BOwQhqeMWctZQQ0DWJIQ7NQQPX13+qeT8NrUK97NDxhr1yMOZFYm6wA5JIUhiUShmUClASQ2ITlPiEC29V+UG7pbJZGrcaH3/YBxk+M4ugi8mz0NYEyqgKJbIr0qGQisRhoQjjLQANaXCU2XTO45baPsPmCs0xvuFlwMlcIKypQKd80sgPIF5KMFmx8QUdMODQnH3iBdgkaLJ2BCBsVjYZPrV6lVqlSmalTKdaoTTVoTAf4MxZBycFqJCBwsKTSoRztry05KyfAckKcdIid87HaFE47JNoTpNqypFuypDNZEqmUAVpHZWFhgpauDu77+b06qKQTSd1tnDVh8zjmpdaeysJaM3+zOqkOeFL5yWjBqCyta3Gt7Vm+9/NPsmRpf8ROYZvxF6a9HkjJW5fGNYCholFxODzqUioHqEBYU9fBRMzamLJPvVajMlOinK9SGVXUx238QoagkKNeFAYrGvWQehBQF0bi0VBSGTGmLMVOuaBJHDKkyDopWhJJsklhF7g5H5WrErbPoLrLWAOKdG8b6Y4O0pmMNuV0No2dSPCJ93yMQ8/v18J7rvk2fV/U7tTF+bMHNptaye+kc3HR1DSQBEhx7AuWztMAdnVK+qyTn0gDxjXkkMAyVV+doIuYDmB03GZoTOSN9Cl8PS0QNCqUCjOURqpUhm2qR1uZOZGmkFeMVMqM1ork/TzFcIoKRTxVJVANfMsjkLqOmG9UhtfOXWSHTCmEDnbo4KoUSZUl52TpTvQwkJ7P4tZ+5rd00dLhEfaN4y+ewl2eJN3XQyqbo6WzlScf3coXPvk5ktKz1jBYUQkrzseESgKuQspZ2gWfmo3oGpgvJXsBVwS1hd8IWXXuMm798cdIp6V8qQtKBkRdrjCFpzAardBlHwExgEpJsWtIUZiuEVamqY0XqR6ymD6Y48Swxd7JIkMzo4zURymGeWqU8KkQIO1Lya2lX+tFmUEUqLTbjT7f5HdGzgiQODha1ri4KkmKHGknA36CZJBjeXYFmzo3cua8QRILR/HOGsM9q4VMbxduKss/f/CfOLBrt/afuoURFUjiIp98gpxfM4j8LoBS1TT5sBFW4DVCNr9wDd/4wU04MlWg2RXgOIE2Y3GyoVTxdBoUlZ0kRwstwkaDZ7fn2fbACN5QK6UTreweKfBsfh/H6keYJo8flvFVjTBsmOa3BidqNcYZvakrzbnFlbu49RiBGmUW+upJO9V2WNbfy8rFS/FqOQ4PzZCfLDE/McgfDLyYTYtXopaOEW4o07Z6Hk//+jm+/Kl/1xE7znZ02T+qhovZiZGdBGDc9DFdABN95V70mjj4Wt3j8pedz5e/+l5qpQq5eYNM1JJY0xP0zxPfZ2rOtmaLcbp6Ciq08Epl7vvWGLvv6mJ3fpJH808w3DhMTRXxwjJB0GgyuFn+iEGbLWUYQKNsYbYkE8WyGNgozdLxLZI4kif3d+bYtHY5Z6xcjJNIMjxUZ9tTE5wYmWJNxzLevPIN9A0kaWw6hr0qxWf/4ascPXAYO2F4p88n6j/H+vq0JqxJZ7lac4k8Wb1mKavOOZv2vnms3XgWC+a3cc9t97N5wyDzL7ucXfvLrG2bZHCxlLNMOmeKnrONm92/muK+L2S55+BzPDrzAKVwnEYwJUmfCeSR1opUbPTcbEHTSITo9yaAc5+LDxKxc44siyNpVzbD+jMXs2r1Ut2CyLamyedrPPTTExwaztOSDnn3yg+wtK+bxoZ93Hf8YX56x4O6AKFTOx1G55TSBMymD9RaL57Mi+ZfwoD33vRWrnntFYR+g+zAMkokkWrY8dEi933+Fl5w1Xp2+EvpKR7hmhf34GallmtahHq8BJg+WuaOj9r89PGd3Dt9N+VwhCAsz4I2hykGp2aKMfs4Eq5NoJuAz77WREzj6ON6oakjGSPMJVOsWTrIunXL6O3tIJ1L6ADx0MO/YejZgHytyoJsK3+38N9o7a1ycPWDfOHn/0m9XtcuRSxsVtRFbDxbV2PigmpU/8OiWqvyJ3/1Wj788etBVZkYneHIRJly7zLKDQiqAcee3k6w+1HaN7yQI7uOc+2VPaxYOy+a44sooBRbb63yn58rcNvobUx4BwmDyhw2nQJWTKo55fST2BeJ2SbB5qRbUddiVrfG/kp/mk3aznB23zI2bFhE98Is6VwSlbB4+qk9PPzYdjo4k5Hac9zQ809c2v1CKuc+x2ee+TTDo2NIQG5eClN6MkFEZIyOpdFYngQTkRqr1i3lP35yMy05GT+toRqwfU+JA6MBx0oOqlYlqFeYeuZRVqxaxN7Dio2rE1zzxvVY0h6Lrnt10uP7f9PgGw8+yK8r9xD4Mscyh2VN9sWBIQY+QjKy2qgiGR03LqbOsVP9UNgXT7fO/i1m4XzO5j3W9aztSLPtykepzq9guzbP7TzIL+97GjfoxA9rXORcwdva34Vaf4hPH/o4wxOjOh1supAmN8SE528+qR4oL6t7DT7z5ffzytdehgqmsPw6QdnnxEiNBx45yqGiRb1aJWjUmRo6yMpFaSaK7eSSNW5418W09eXMZ9lw+LEaX/ybSW498j1Ga3tNj605nxfLkNjy5rCxyaO4mRl1407F7KTfTw9gbNZreQX/yj8x4E5z16u/w8zCaZyEy+7dh/jlvduo1RRZt40z/FVc3/4hwjWHufnQxymUZ3RRotnqnOtf1w1eYNLmqEwjueW8BV385J7P096RQIUVrHqDRrFGIV/h7rt2s/NoiVK5qjXezHiB3nZFrmMBhbECN974AlaeI6OFugLLw7eU+NJnn+eOqdupeRMmq9GsMwLcZEFzp5/M77NDEtH4hm5zmrw79mmRp46akCef4JyiU5O181jJy+3XsWR5lfLFR0i2JbGTDnv2DHH3/dsolRu0J7tZ7q3i7d1/TemMHXxu72d17VJ07u9yG6yNSy5RUnr3vYY+NxmDuOrVL+Tz3/wgqBIENajXqEzWKOZnePCBvTy65RilSk2XsYr5Cr3tWQYXdDB0eIo3v2U9f/CytWaC1Q/5/kfzfP32J3mk9N/4fikCcE6kbAaMiH3aUpodGH2t5YuvTwW8uj3g7hmXJ6qG3q1WyOac4v6S7svp9rwJF+Zd8RRDbA4ONgs7eti4fhGLls6jpS1Hq9PG9l17eeDxpxgvN2hNdLPK38gfz/8z9vf/klv3fR/XdnS/pFkInMvAcxddokLl4wcigKFaqXHjh67jhg+8GaWKWH5VDzPOTJQpjk3z1NYhfvGzXVTrvq4tTE3V6cq1sWJVG4cPlbjk8sVc92cvwEklqE/7fOWvR/jOow+xrfI4SnezdDf8ZD8YnfRsTt7UNc2v2mmHfGRewDcKDjt1F8EiAaxMKXbXtfqM/MBcXyVaNh4HEYhhflc7m85ezuKlA2Q7U6wdPo+tO57j+8d/SL4c0up2szF8Ma9Z/nLuS3ybR4Ye16N4OtM6zc9JPlBeU6vW+Phn/4o3/+nVswBWG0yPl8iPTLHzuePc/r3t1DxfM1Cyk1LF47xNixg9XuWsdT385fWXkG5LUzxR53M3DnHbtgfZV3nWlMajoKHNtxlMhHHNOu8pznq21iacOpmbUaCZc2KrXEUxhONaQplB+PhHUrtFXZ2cu245Cxf1kW1N0Vrv5smte7l75xbd2OpKdHKp8xouWbOe7xY+x9GxYWwZdYh+TgXyd4JIvVrnHz//Lq697nIIi+AJAw2A48cL7N8zxg9v3UFDqpvRqY6M5dm0aTmVYkDfwlauf9fFtHdnGTtS5eb37uPHOx7maGkPQTTZNLdV2Dy/2UbvbKRtGqSRDSYYzL2Pnzf3Mnlwx6oGnzrs8GBVipUnR05pNC3r6+acdcvon99NNpehVvd58OHn2HXgiJY6PYl5vKzljay9oJNv7/sa46MFs3QlqheYbC2+KMrImLigqk34t7PHH7v5nfzRn1+NCgtYXg2qPtMT04wNFzi8b5I7bt1HvRHqqdRyzac8U2btxgFq0yEt3SneceOF9PTnGDlS4VPv38HPnvs1x0oHCGW9RrMkbnRVE8zZqHEKgDFI2vZPMaK5ZmWRtkIuz4Y8WLEpRw0wM8Jk6pZJ22Ll/F7WrllC77xOMpkM4xNF7n1oByfyU3qIaDC5jFf3voYVlytufepHHDkixdWTPzaewNBgCoAmCTGmUq02+IsbX8t7b3oLhAVoCIAepckZRo8XGdpb4Je3HaNekcU0li7HS89kwYqQcsEj1ZbkbTecy7yBVsZOVPmHD27lru2/4dj0QQLdwYv6DRG7tI86NRMxjjI2mlOYdHpfNHuKcwGPbcQwURrti7rbWXXGIIODvWSyaZ7ff4xfP3OAmheQtBMsS63i5QuvZODFZW69706ODo/pxtSsCZvKTPz9rLPnb9bdyLgaI+Xyiy8/l6//4COosIhVr6IqHjP5MvnREgd3FnnoJwXqFdeMe4SW1o2LzlZMj/mk2pO85Z1n0TOQozRV55MfeoxfPLWLQvkItu1FDXXp90p70lQ0YgkV9x1O9odzr/7/L3hzATRHzSQcejtyLBvspa0jx54DIxwdmdLTXEkrw9nZc7h81XnkNkxz68/uZiyfx9YiOsYoknxay0cMjBpu5kqH6AP/+L6bmTc/i5qZwZuqUC7WmS5W2bttht/8qkFtJq2nmaS5ky9PsWQdlMdTpHvgTX+5mK5emU4I+dTHHuBHD+yiVB+jKycduLgfLJVlc5N2pbxWxmel1xtPHJxcKY8j82kaOE1vfIqFn/ZX03RvSSdIJxPMVD3dlEolbLJWG5u7N3LRhjPxeqf5zh13Ua5XTatAA2guyNzvZa2Vkv4sP3UxUvzgTZ96G3/0tqtQUxM0piqUphtUyj67thQ5vCVJdSqtDybyZ7x+gmVr0pSG2mhZUeXVf9ZHa0dSTwF87d8e4Zs/eJqR4hgLutO6SaSb5FI71MDJ5EE8hGRmaPQMjDwnFyhqooudm26YkZJz243GKUSTWzpLjIeD4zM7Hehxs8zMFKZdm95EHxctPZvNm87i8OQwtz94r5Zqsb40IEYZd9wJXDv//HjqrWnGgadYuKSXH9z5j3RkoD5RojLToDzt89xDRSZ2dFGfljmZkEq9xoRziBVLBinsTzFwYYnLr+0gk02Qyrjce/d2/vEz97JreJQFnSmpE2vzlWl3mdSSYSE9N6MBnbOeMCrIamCilUQxgKbnok8nmp6OZnD0ELhZYOhJDbMpyE81fdNxNG7LzOVlHZfFbQNctm4N61eu5edbHuKZwztJuHpS0HBci+lTGuvr5p8flwmjIUqJjDaVWp03XHcFf3/zn+ONT1Gb9hg5WubYMyFTu7oJPUcXTQ+NHiW1okC/OpPxE1XWXlNl/QtyJNIyh+IwMjzBhz90O/f/5jAp26Y316L7u/JeM9Mdj60JiOZmTNg0qvRqUHlN9I/mQ1T4MIQUcLThazB0GU2qjIFHyWvgaek0V2ca4E+uwCs6k1mWdfdw9QXn0e4s5qv3f5daUMMysx5NE26mnvFzwsDokFHLLgr6ytL91xtuvJYb/uoaqoUyRw+VmNnZTWW4Bb9eJ7A8do/tYfm6Dorbegg7x9j8Bpu++SnduI5Wh/HVL9zJLT/YyuGxEss6u0mQIAwt3Uo27DPXWI9qRADqwUwZKo9yZTPYbQbTdeU7SgFj4AwzRKNFwONT8xtMN6p6uOn0eZiZKBNjnpdu48xFvbxs00U88ewQW448rRvxp1ZgDG5zQF2r+8Lm+LEAiLMEufri3F//+j/gqj+4iPqxFIWDSb0wY9maXhxJAVtLjG13KB+3Wf6SIovOypDMOnq4R49YJBz27Rriwx/7AY/uHEV5Dktb+nCClB7MDGVsVwNo/hEumUAy+0xomcfx6wwcRsibHyMrTMI/K3JFNk17ZUr1mtGcUeexGQR09AxpS6fJ2Uku2bCC+T19/PShrabrFw9InxKM9GygbqCBNRfAGLjOVs6VAAAWlElEQVRo+YU2ZUG33vBJJFI4etTNTKq//o1XcsNfvIrJE3kmj9WplmZYfGYb/Ut7jJ/QNzEVk9Z/6+t38/UfbGHnkSlarQ6WJRfhBmk9Oy02Kc2oQICyAnzLR0Az/T0Dq9x8fNpEECvFhMxV277pSWvnHq1Aj8W51mYy3VBjslqmHsgcrFHxUUw17wP6W9uw8Xj9Feczmi/zwFPPk3SjPPo0ObAZJRSALZo6ML6Os1mJ9IOlG2eScWFLpLj1N6jLiNu738TVl52D4wa6v3D0wAStLVkGlveYlT8R3YWNk2MF/vnTt3PPUwc4OFwip9o5g7PoCPr1sTVElhcBKdN3DXxbQJXnBLyQHsfj05sOs7g1z4d+fSa/qskoR+zjYrMyEVizxzIrT2bqVfL1EjLbfFJFRSm6c616UeKigS5e9aJzeHTbQXYdOq5H43QTKU6d5vK9GeXBkiASRxizrCtymOJoZR2rvkxyoEQ0DxL5IU9x3RuvYmnfIgYGsmx44ULdPx56foyMm2NwTa+eg4l7xTLkuHPHAb7wlTvYtm+M/SeKeNUkS9RKFrOGVrqN8xfgqCOzB4G+1Qnw8PDJ2QEvGRxlXm6au452s823sVxPs1ZmccxqExOALFvAElb6NIIG49UitaA667+UIptM0tfSTr40wStetIGVC/q5/VfbKJar2v2Y9SBSGTMhzARsU8pv8njd4IXaA8kgoYyexbzWqZ2SaTuDqgyYxyYuEmFxfz+Xrt9AKZ9h6ZkDvOkvz6BWDtj/6wo9CzLYnkv/ujZzzGizCDnSs9ue59bb7uH5w+MczZcZmaygaln61XIWsZJeBkmT1T5IwPSoR6DqYQ6q+i8+AVVCu4Hv1Akcj0DMWbynmL4GrwG2j62526BQm6ZQnyZUZgVKWybLvNYuRvKTnLtmIZdtWMF4ocbP73tWD6Zr0ujgExEokjta+MwFcP3ghbIYQc+VCGPi+oXuC8tIhzGIJoixDXS1tvKic9ZRsjewd3gBH3hHmo3rFU/cUeT8V/YyvLdMkgyDq1o1A+RqmpE0i0P7j3DXfz/Cjn2HyM+UGZuuMT5VZ7qscOstdAWDzGMxnQzQSpuO2mImDRrUov/W9X0dz6rhW3UC24AYytiH44FVx7YbWE5NA11qlBkrT5DJwcol/bSmcuzeP8yqFX1cePYi2tty3HHPDg4PT+C48VIyCUxGMxnFGevBuQyMhLRefTmnImKL/4vXyGrqRZNaciTZfcOH+d1drF77Sn4zcinZyhauuvQE5/ZdTDqXZdnGHONHpmlNZ+hZ1qInruSKykCRTJ/mJyvs2nGA53bv5tjYMaaqRR0ti9UGUzMNimUZOHKhniHtdZIJu8jQToo0Dgm99EzHXh2hA3y7YQC0G+Zm1cCugVvFcuq4GZ90C7S1JfVEmFjF6mV9DM5roz3XzjM7h7nnEWGfnLa4nqhFoCf7Im8eMS+OwJqc4gNnRwkjk9fmapYqNFWBpqJR8HpWREAMQuZ1zCdQPeSnDuLXS6xctJIXr30lf/TOTaTbQo48O01nVwsdAym8ejShqnxqFYtSwaGU95gYm+T42DDDk0fJF08wUy9Q9krUvCqVeoOZhk9VJrPqpvojIl7kTxjahMrV3zWepBB/Zct4mxuQcEMSCUU6bdHWkqQlm9b3fZ0tdLXnSCVTdLX0sf35E/z8/kciMS4sjnPf6F4kmWySoSvq0X4KcSxfN7hZkgJdC9N7rBidbkb85XEcSOStspgllN06ojF/WYATmLzUbINi6xEQRznc8Kd/xNv/9DVUaw2OPF2nZ16GXJ8pJqR/kUHtcyisqzPT5SEtjkbFpVJWzJSqFKoFCtUxpiojFKtjlGuTVBpTNLyyliW+FB30wJEyy1D12hDZ2MfWbUoZpEy5DqmESyrpkkrJfVLP/KXdDNlECx2ZPrqSA/z31l9z9+MP6aAjeW+oF5qFJt+eUzg1A/SzP811JDoK6xxPT/bFQSdi25xKYuwcBVg97hsdTBbkxKYeXRVhbtLJ8KpLr+K1L30pi+YtZmJPSFt/g7aCRfrWVpBG0PNQaw2ZOtOnuCyg2Am1NNSwaAQ2dd8y84BhnUpQoyKs9Geo+SUdUT1fxt1qKFXT8ziOFeDaPo4dkpSFNo5D0nVJuzInmKUlkyOXaqMr0Uu96POt+3/I4/sex9WDZqIpzSYVEoj0cGXUWTRBNK4GzQFROovahOOOU6TUpXqjx2IiHagXV8f74ejHkSnHx5oDYvMp0Yr1kM5ML5esvZSrNlzJ4uwS+g8kaNkF9sWhrA6DPRZqp0VtFIoJRWEgpLAgoNwN1axFLeVSSVmUM1BIw2gOjrdAPgelFDRkMxEFyQAyHnTUYMlMyLKZgO6qT9ZvkMLX60fSNYueUpYjY4f5zGO3sG9qD0kBTxqmIt4leocSzc36QLO5SFR9OQXAOBLrTEQ7wyYosfyNBGkcTHReGkmZ5pL/WPVIYeHUkpGRQRJ1Gw1Fxmpn1cA6Lhq8hAuT57C82CEr63AWKhK94rcsKIM/blGcgmJDMWUrCjnFtnMsvr8ZxtotxtsU9RYFqRDdlosbFmbpkM5qUmWbVcNw7a6AjQcCeicV8yoJWoOQu4Ye43N7bmNMjeEmApTtYdmevjeLI8UHRuelk4hodXKU8Zi/xH4wSuVi1uhx3liyyIu0HDIjbmZYMpYz0eYTuqoRvSeSKHIsvUTBky8jh3Nx7aRe8SQLZNJtLdhWJ+t61vK6TVfQWh+gNZ9jXs3RbEh2KhI9CrdFQIUgBXduCnn3mpDjehWhHDMqDshj2TBB/HQzD9XOGqZtbnrI4oa9UhSZZsfEAX6+/THuf3Y7gapCooqyGyjJZEQzOtFSDD2ifHIQ0SI6Sk1NU8mkcs0oHFeANTxxjUwDabY+0dmsXg4fA2hMWOMjwSOumIS2ruDMX9jLOeeezbLBJXRkerDJaUlSrjqUayFb9u2m7ua5ZM0SKqUEd+8dpK3az1lulsGuFvpa0rS2OuRabQoL4JtXwb6FIXlb4Yu9xkso5RtoNx2Vq/TFlAaGzdrj8PVfjLP90ef4r4d+zdCxEUJVwUn4KFvAqxnWiWaUWWsn2lNLkkkpYUWVFV0ea37eXP93CoBN3zW38KNFpJE0uiIczSGbDRhEysjFFnDNUnkB8q3Xv54/vu5aetv7TaDIAzNQKNYZGgs4MZVmzLPZmvN4KH2ChUPPs/3OMsPH58NIHcfOkm1tJ9eZJNvjM71IMXFeC2xshcEUlizhSEfr+fW6LsMOvc9KsQYjM2Sfm2Tjjw6gHt3LieoEjiOi2tO6UFFBWXWU04gyFnneZEvCNCloxBFXV73n+L74+VN04AUzoPSC67jMY0w3ZmMsqKNaerRtU5OZskVTGOgFiG9/zxt4/9+9S/syygEUHcjbElb1Qt9Cqc6hEzCSTzGMxX8thHuXKNSzR7G/cYzEtimCRIfxMXaSQMph1QJhSzvq4lbstUmyMw3SrkOyu51qa1bXFPuqJbpKDVpHfMrPHeDY7mcIvRKu6EFL9r2q650XQquKskRYG9+nMBtI6KJp5PsEwHj+Ri/jnTtmEjHRmK+uNs1Y6wfP36MUesm/ATFCby6AhnpmtbqJ6WZPrag0JKvLBxb18cO7vkBPWyelfJWWdAcUHBjXOVhUg/QpTHsMDVlMjKSYCC0e7ocfr4bRcpnEP28jswMqboJAttqrTWH7BYK2QdTGDHTYuI06mTR0ppNU3YReibnWqpPxK3gNh0VWP51TdX717I+ZmBwiZcveCAKeZCYy/1NHWZ72eUayiIaVWmNUwNUnKJIoqoFH2Zl+XZTTzQFwr7V+8IIHlFLRphOnyBPt42S1YrSjTxSptSKKSu0iviuVBn/1/jfz9r94FTd9+Bs8++QY56xZxp//4Ss5e+FqqERrcS0P36oxNukztjdB8ViOou+yrwO+uxp+065Y8UDAst0+47U6hWKRmfFRqn4Cryupt1XB9Uh1OTitDjPVEmGpRHtSsaojQUZGTTyHF3AmZyXh209/kaGje0i7UkERnyeqX/ReNI8t4MjOZLp3IL4vKhzI/gt6iHxW+80V0nFf2MJ60Fo3eMEXUSra9uR3ATRROVbRJsJJLdBJOnT1tONYCbqSC7j4ovMZPVbkiYcPkEq0UqzkOXtND9dccz6XX3oemUQLKmjgKU/vtzA5VmNyT4bq0S4qXoLhVotfLIVf9sGG3bBpGGo2lG2YseQahFRsEGOUtqQsDZuZLjF29CD5I3vJqBJnrFhIKttKGHTwWnsFy9tP8LmHP8Po6JA2Zy2UdaF2zhLdRLQaKSpd6dxaMq64L9MspMT1xjkrBCy+ZK1feOGVKgj1xjvmZ+4cQyxTjP+ThYCC/iVXbuANb3oJy5cuIJhJMLWnj/vuOMATjz6pdweypexkVykxCZmAC1/4Qt53/aW0ZtLUGx6BrHtrSA48zdSedhrDPVT9JKOtDo8PWPxoHlx8GDZPQKkNJrOK/KExDh8/zowog45OkvPmoxyXRhlOHBlhas8zZCmxcOUK6pluBuw+brSTlNxn+Ne7/oVKeQo3aYK0rJaKljcZGRQvyZCmltT+tB88eaBzbiYSL+6xbOcqvfXT7oLZ+smomEiCG5UT6TwxDY/2njbe9/G38MpXbsL2LIqFgMJMg6PPw8yOxezcfoj7ntxF1U1DWKNeGWaiuoXOtvN50YVL+dgHN+I4SQLPIvQdPbw9OlZgen8btbFuykGOiWyCp+dZ/KwPVtmKY4thuEWx6pYTzH+uStUKyXtljruK6hkDJPsGcCehcOgE1aMH6OxroWXhAjrdNl4WJrkoVWZ77WF+9uxPGT5wUJeqDEeiBpTuG4n/m12VHjfSZ3snsWlHWYkZ6ZzO9S/t1cF03cDmLyl4RzP6RrTV1Ve9xMuns7eDz33zb1i9aSlWqUaQr1PM13i2qtiZL7B4ayfVsdV8b8vTPD/yMJY/TlifwfMmyNjdtCQv4i/e1sYfv2k9oZfC8jOoeppyvcjoxAhTR3KUJ3oo1dspZLI81WHzX8ssSpsd6FRkd1U557sVUmWLBjZTyuJIeZTykhZSPfNpPWERHKtjjU8yf2ErK+wMa6XXS8hAZwnOn+GRbffy0//8IeVSSTe7NFBaf5kAoocotQIwQMU+UAeQWIQ0p3nVl4cKT79TA3jekkv76/XKfmVZMlKuN1w0++pF/a7f7kX1qa+8m6tfsZG9ymdRvkZlpEBhrMjwdIU90xXajpQpHzmPbXst7tq9h3S2lUpByuOPobxpFra/jM6WPJ+/+aUsOaMXK8hgN9oIfYtCfYSR4+NMHk9SnOxg29AUT+zZiZ90KV56CUeuWEVtMGlmfEVBmA1CTCon3bGpMoxJMbiT5EHFZUdD1lWgo110YkjH+CgtmWEWX9bDwbH9fOVfbmFkeIxExjE7AUe9Dy1fdKUpZtrJ1WcznayrkGXbsWe3vxOg1g6c/4nfbir0kRg0fVDZYKLe4KWveRH/+tV3s89u0Fqv0zE+xeTwBIWxGfJTM0xPlskXZ5ge62Ro53p+9OzDlINhav4UeHn8YJQ+60w60j1cdHE3f/u3l5FMpXHJYQU5Gl6N0YkTDB0qcOxoyP1bjzKkd9Jw6Onsx12ynr1rF7K7W/Z0kZqT3v8Zt1ymZXwSt1LG9i2Sdop+t4NzUx30uhlU0qIShGSndrDzmUdYPLiIl7/pfI5OHOffPv0NJiYnTBmsuYhVYmRc0otlXdTkj9Rb1Fr75KH81tkNGOWlsgXocCX/IHCBSdPMXIo0pb9y28e4+NINHArLLJkpMj2aZ/zYOPnJMoV8ialCmelimelCyIn9y7n9yR9RdJYTtC2Hya34ld2kVRvdzkISiTr/cvPVnL95md6oxLVTunA7dqLA7uePsWXbFIdONNC7QcveUG4C287R3zXAgRwctlxdoQnctN5KWfZtkx3krIQioaDfq3GWHTA/4bKg4pMKPSqpPMeHhxgdq/CSi1ez7MJBHtuyi6995T+NRBOVFee/ktPH6/qj/sfslKvsjsQTVtdptgCNTbnmVbdaylqghWUQ0j/Yy+0PfA63vZVGY5qO6QLjw2OMH5/UZfl8foZioUJxqsJUvkb+RC93PfmMliZVf1qvBZb1cI7y6GY5yxa18ZrXruS1Lz+XZCZFQm/yYDF8OM+2p4/wyFMzzDTMjsEVT5abmcGNjlwrA6kG07WS6cLJ+jvZT0HW5ekdOlwy6RQduRwdbVlaW1J6lC3pBnqbglq1gu95ZGyXs84ZgPYk3/qPX7Bly1N64bVxXdrzmURhbv6ru0Y6wB7LOOF5u063CW0sYmQbZFtxpwrVAikMXHT5Rr70zQ9y3K/Tmw7JzMwwMnSC8eE8k/kShYkSxakyhUKVyckak6MdPLFzD0P5g2Scbr2r30w4hheUGEgs46LzB3Vv4tqXn8/Gc5foja7ELHfvOMHjTxzjnicOct6GPsLUII/vLOEkodwISElAyLp0JmSvP5swFAfYQuiksOwUrpPQ63vTSUVLrkE6VcbRpSqYKUzpQJhKu8gIc0dbGyvWD7Dj4FH+49u348k2x/HUQtzCjACJd3cLbY5Zyr76YGHL798GOQZRgkqtUf1JveFdcN11l3LFi9fqUrvnN9i0eRX1YokTR8SESxQnS+SnykxOVpgYD5gca2H38F72DB8mm+ii6pd1RVmpBotzA6xa3UO5YrNx7Rn89TsvNn3WAO675yBPPDXGfdue4E3XnENP3xp+9tAhUk5d79xh2y5Zy6VTpJXrUPHbODxh0d82D1ulQQNpk0yGNGYO4DqTLFnYQTYH9WpZz0KX6x45KZiGaRad0YvdafOTn93D/gNDeq8FLdx0WT/apS0Kow7qiYSTuWbXabaFP7UK2pTT4hMPTo/87T/+yzvf84rXvyRXr1Z46qHHGD14hDWrllObqTIxVmQqX2YyX2ZsvMLEmMvUZIJio8jW3XvxwgoOOcrhlAZwfnoeC3oGyBcd7I5xbv23t9LRnkGFDnf+fA9PPzvB3Vsf5BVXbuSyzRfyw59vJSs7KVoOCeViWykaYRrLyeA7bezN27QnsoxmO/BbcmSnqwyoOl5xiA53mrVnttEIS9HmZGY7PatSwS+4pGXP6hUpnnzuN9x3/5MkpAcQTXg1ez6yFbxlf9bqaPv/2wp+NiuBBx64s//8zWd9dHp07A/nLepo27P1WY7sPk5XawvjI1NMTpaYnCgzNlZh5ESOalnmaFwe2vUkU2XpbrhUwmk9e9KXGCTpdnGkslsPNX7n5j9n49pFehf7X965n517J6kmJ1l1xkKmRnyOjpYJXdlcwmK8exElp41GyaXm5Ci0tDHdPQ8Cl+nVGWgPdUmr4948bctb6fRDllROsHZ6L9lgWhcMhGSSTjo1WYGVws1ajNWOc9sd9+ptooz4A5VQ02B9N20nP3E61s3F5/cycO6L5PEPb7opeeVfX32ZPVN95W8e3726NePOHx+Znj82Nt0yPlrm2HGL0RERnB7pRJpdwwfZdWSEhqoRhB5JO6Td7dV7IHgyrU+CD7ztUt7ymhfoTRcP7i/SM9jKwsEWdu8a499/uJ1j81ZTkp2Zjx5lX0cn9WxWUiJT9BUfeM4a2LASgjzcNQKLc9DdBi0J2HUQdg+zaGaUxbVJ5ucy9C5ayEAwof1jY9JjZn+dxFKrdOud9xy3bXUcpXbhOD9L9vf/n/93GP8PfbOtZaNNkVQAAAAASUVORK5CYII="},28984:function(gn){"use strict";gn.exports="data:image/png;base64,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"},63604:function(gn){"use strict";gn.exports="data:image/png;base64,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"},30045:function(gn){"use strict";gn.exports="data:image/png;base64,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"},13740:function(gn){"use strict";gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAOXUlEQVR4nO3dXWxbZx3H8b/TOG3TlyQdgdFu1O3Wsa1odaADpQMlQbsBAU0lkBhCaiYhcQHS2kuu1t5y00ziBglprUDaJCY1E7BdMNEEtlVjk5wKqUNKWZ2p3YuSLk7WZG3ezP9Xz63rnPP42D6Pc87j30c69XMyxbGd5+vzYsdLyDqYmZlJLy+3HJVEPq2r/UKhuDiRlWRrq7Qlk7NtG1v/dv+9O37V1dWV0/9ENWpoIBpG59JKy6mE5IeEQodASmksq1vbN//2sf0P/EZXqQYNC0TjSC+vJM7psFMXsqA8kKKt7e2Zbxx46Os6pCo1JBCNI6VxZHTIOCzyCwS2bN586WD6q/t0SFVoSCBT0zlsOfqFrDIFAoyketYDmZ6eGcxL4qwOybJKgQAjqY71QKamZ0b0xxzWIVkWJBBgJME1IJBcXi+oAYIGAowkGKuB6ME5zlxldEgNUE0gwEgqsxrI1NRMvyRundqlBqg2EGAkZgzEIbUEAozEHwNxSK2BACPxxkAcUk8gwEjWYiAOqTcQYCR3YyAOCSMQYCR3MBCHhBUIMJICBuKQMAMBRiIMxCVhBwLNHgkDcYiNQKCZI2EgDrEVCDRrJAzEITYDgWaMhIE4xHYg0GyRMBCHNCIQaKZIGIhDGhUINEskDMQhjQwEmiESBuKQRgcCrkfCQByyHoGAy5EwEIesVyDgaiQMxCHrGQi4GAkDcch6BwKuRcJAHBKFQMClSBiIQ6ISCLgSCQNxSJQCARciYSAOiVogEPdIGIhDohgIxDkSBuKQqAYCcY2EgTgkyoFAHCNhIA6JeiAQt0gYiEPiEAjEKRIG4pC4BAJxiYSBOCROgUAcImEgDolbIBD1SBiIQ+IYCEQ5EgbikLgGAlGNhIE4JM6BQBQjYSAOiXsgELVIGIhDXAgEohQJA3GIK4FAVCJhIA5xKRCIQiQMxCGuBQLrHQkDcYiLgcB6RsJAHOJqILBekTAQh7gcCKxHJAzEIf97/wO5eXNRR+5qdCQMxCHZKx/Jwmc3dOS2LZs3XjyYfmS/Dq1jIA65NjMnH09/oiP3bd/S/kLPYw/9TIdWMRCH3NDdq/d0N6sZtLS05Hd1f2HP3r07J3XVmoQu1jCQxrv60bTMfnpdR+7bvn3LSM/+fUd0aA0DcczKyqpMZK/I6uqqrrmtLZn8rPfg/nYdWsNAHIRdLRywN0Mkfb1pq3PY6pUzkPWDSK5+PO38ad/7v/TFlM3jkIQu1jCQ9Zebuy7XcnPOhnJPx7bjX3v0gWEdWsFAmsTi0rIsYVnWRS9d0daWfOrBPbte1KEVDITiLZ8f6O7uGhVLGAjFGwMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJgIEQGDITIgIEQGcQ5kLl3z/3gZnfPX3RIZMXGqcwPtz8y8FcdWmEtkPwpSa8kv/y7mZ+++4SuElnR9eIjb2xY+vDXieMyrquhsxII4pBlOZfftCN77an30volIivueWHveOLGJylplQEbkYQeSDEOHXZqIOMMhGz6PBDMsZyNSEINpDQOXYSBkG0lgUDokYQWSHkcwEDItrJAINRIQgnEKw5gIGSbRyAQWiR1B+IXBzAQss0nEAglkroCMcUBDIRsMwQCdUdScyCV4gAGQrZVCATqiqSmQILEAQyEbAsQCNQcSdWBBI0DGAjZFjAQqCmSqgKpJg5gIGRbFYFA1ZEEDqTaOICBkG1VBgJVRRIokFriAAZCttUQCASOpGIgtcYBDIRsqzEQCBSJMZB64gAGQrbVEQhUjMQ3kHrjAAZCttUZCBgj8QwkjDiAgZBtIQQCvpGsCST/B9ktn8qfJC9bdbUu+a27Zue++/s+HRJZsf0fvxxLXL/aocP6JOS6bJOfJ34hk7p2W0KXu+T/LP0it7YeRM1mIPETGZUSDIToDgZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwkIo60yLJkhdmcxdElnI6CCDZqd9/QAd1mBrTf9YBbnt3n97+tK6oDr1s69SBms+KLOgCH7ysj8m4DpzEQIx6z4rsGtRBmTeP6MQY0YFBd3/h+4uTqh6YkFOjIpNnCpe2tKdEdh4u3Gfc/qAWc4XbhccEt9EdDMTox3n9xwOe1cf6xejRE7o8K6HDRLxwPNxnbWwt9j0j8uCx+oNGzBdPuBIKAzGKYiBF48dELj2ngzo9qGHgttYbRjkE/M7Thcv4YiBGUQ4ELp7U5YTU7ODzIqkhsQa7Xrh9YYS8PhiIUdQDgbef1t2Z01IV7FL1nbtzAG7T0qzI3/XnLGQlhhiIURwCgVf2VDcBn8wEiwNn7HDgPZ+9+/pxMI/v3zkosmW3GNUScHQwECNbgbyU0H8qwLM8ziRhEuKsUump5nJXR0TOH9FBAEF2q7JnCrtGC1mpCLHgvqaOyho4mTAxrIPYYiBG6xlIKUzCQyP6rH1AfAXZiuw7JnLglA58zE/qgfWQ3r9RqRpuY3pYgz4styCyd4Yk5hiIUVQCAWxR+kb9I6n0bI3v/95l/7NV2J3CfQr6Iqgf3G9s9V5LiwMYiFGUAgHs9+P4wUul23TwtHjuBkFYcbiHgRhFLRB4clxDOaADD37Xi92f718WTzjLhPsS79crbGEgRlEMpJbrPTCsxx/P6MDDxZO6nBDyxECMXAkExx5bUrIGth6vpPQyJ+SJgRhFMRAcqONdtl68rtd03DLxnB7cH9MB+WAgRlEM5Ecz3mei5idFXk3JGvuO6S7WKR14GBvQ+zIq5IuBGEUtEJw+PXRWBx7wdxlv6n8vZ+N2NA8GYhSlQPA6BnaVvI4lwO8tHX67ZDj+eFmvs1q7h8T3dLGf+azuyh3Xn5mTmGEgRlEJpDOtr2M8X7j083KX9wT0CyTIffDi95hU4hdwtDEQI7/JEGRyhREI3raB3arUkBhdPKnLCfEUlUBMtzG6GIiR32QIMrlMgVQ6MC79++9K5icLb+vw2noAA6kHAzHymwxBJpcpkDBVOhPFQOrBQIz8JkOQydWIQILs1/sFAkF39UqZXpU3YSAOimogOAP19pCe2h2RikwTutLWpxZ+QTIQB0UxEPxsxLGQlUC6+3XSnhNPNl5JZyBNJCqBYIuBvxq8NFzbu24P5/R1lA4dlFnUr7+6R69fL8PCQJqIrUCwa2OC1zsweReyhclbSxSlDo3o6eLDOvAQ9sRlIE3CtGtSbyC1HBzXw3Rf4LWe+iMsYiAxhDfr4ZP+qpkEpoPbIPvuUQoE/CYuzGcLkWBrVS+/n8NAIgpv0UgNFeLArk3QSeD3NxQQ5PRq1AKptBWZzxY+GQWPUz3wfjHsIpZjIBFUjKMI+/WYBJVObZZ/X7kgnyAStUDg4Gm9X0fFFx4fbBmxta0WAsSW2isOYCARY5rk2dOFSVAeCt4xi+/D51D58XtbebkoBgJ+u0ClsBXBZMaxVqUt7u6jhccZgZgwkAjBW7Iff14qwjPm7LgOPlfplwzYTSsPy0tUA8GTAD74odInIhbhviKY0lBwHdhSBHm8ivB294lhHcSKo4HAoRH/U5u1CnJwXhTVQACfcoLHx+/TUcKE13Cw5ZgYlhhyOBA8yx0a0We5Pl0JAT476rW0DgKKciCAx+fx0+E/iZTCY/bOkF6OS0w5HEiR6XRtUDjuwNs7SnczKol6IEW4nfuOaTAdEpr5ycJWo9KZvuhrgkAA+8oHTwff7y7C7sHEcOGXXS1MvDgEAtiaIBIs9YTiThhFTRJIEULBATzOUpkmAn7ReKcsftnVbDVK4Wd5ve6AM0Nj/RJJCAW3e+dg5ccI8ASCg3gseK/YQlYc02SBlMJZGEwILBjPZwu/YAQR1j5z8bpLYTLFRentxyUeIzw+EKf7UbsmDoSoAo1jTQ9rvgAaSV4viJrJrAbSqZd38QtkRC8O60LULM5oIENSxjuQl2RQtyFndUjULAY0kFEp4xkI6FZkVPS8jC5ErjujcQyJB/9Azur+2LJkRaRDFyI35eWCJKU/cURyuraGbyCgkaQ1khEd7taFyC2FOAY1jqz4MAYCGkmnRjKsw6O6ELnipLTKsMaR07GvioEUaSgpDWVQh1igTxeiuBjTJafLqIYxomFkJYCELtZMTc30SyJxTodEduTzA93dXaNiCQOheGMgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJgIEQGDITI338nLg98p7dnVCyxGsi/zmf6H963h4GQNbEPZG/qvj+2JZP36SpRqK5fXxi/8uHHx2MdyLZtW5/ddW93vxCF7P0PPhpbmP/sRKwDWZXEyMMPfEVaWlr4EaYUmsWlpSuXsle3tUh+MO6BnNvUlnx97+5d39YvEYXiUvbKW4tLy9/SQOJ9DIJAdCjd93S93r2jg5FQ3bJXdddq4UafDsWZQKC9fdNYate9fTokqsl7k1dfv7G4dPuJ1qlAbknIle4dnVldbt9JIpPV1dXZa7m5/0x9kktJXu7TL93mXiB3zG7YsOHyxo3J2daWDXldJ7rL4uJi69LK6taVlZW0rnpq3ZDveeKbPeM6tMJqIG/8O5NeXklkdEhkRV9v2uoctnrlMHZ+nFsHsiIv+cn+3p6UWGQ/kDczI5JIHNYhUcjyZ/p6e4bEIuuB/POtzGB+NXFWh0Shsn2ADtYDgbHzmVH9UX1CFBr7Ww9oSCDnz2dSN0XGE5Lo0FWiuuixx4WOTdLf09OT01WrGhII4IzW0oqMMhKqB+JIbpAhm6d2SzUsEMhkMp1zN/B/zE0c1VWiKuXPbN8kxxqx5ShqaCBF2JosL8uQ/vS08NiEfOjWYlYn6LgOR9tETvf29mSlwf4P8IbCQbr23ycAAAAASUVORK5CYII="},58881:function(gn){"use strict";gn.exports="data:image/png;base64,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"},28982:function(gn){"use strict";gn.exports="data:image/png;base64,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"},2487:function(gn){"use strict";gn.exports="data:image/png;base64,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"},3164:function(gn){"use strict";gn.exports="data:image/png;base64,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"},88745:function(gn){"use strict";gn.exports="data:image/png;base64,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"},49321:function(gn){"use strict";gn.exports="data:image/png;base64,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"},48136:function(gn,Kt,ie){"use strict";var oe=Object.defineProperty,ke=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,he=(a,y,b)=>y in a?oe(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,xe=(a,y)=>{for(var b in y||(y={}))ye.call(y,b)&&he(a,b,y[b]);if(Ye)for(var b of Ye(y))Ee.call(y,b)&&he(a,b,y[b]);return a},we=(a,y)=>ke(a,Ce(y)),Te=a=>typeof a=="symbol"?a:a+"",qe=(a,y)=>{var b={};for(var E in a)ye.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&Ye)for(var E of Ye(a))y.indexOf(E)<0&&Ee.call(a,E)&&(b[E]=a[E]);return b};function Ie(a){return Array.isArray(a)}var Re={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 lt(){return"window"in globalThis&&"document"in globalThis}function Ue(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function We(){return typeof navigator.vibrate=="function"}function ct(){var a,y;if(!lt())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 tt(){if(!lt())return!0;if(/firefox/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/firefox\/(\d+)/i);return a?parseInt(a[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/edg\/(\d+)/i);return a?parseInt(a[1])>=79:!1}return!0}function At(){return HTMLElement.prototype.hasOwnProperty("popover")}var ut={strings:Re,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return ut._locale||(ut._locale=lt()?navigator.language.slice(0,5):"en-US"),ut._locale},set locale(a){ut._locale=a,ut._numberFormatter=void 0,ut.dirty=!0},get numberFormatter(){return ut._numberFormatter||(ut._numberFormatter=new Intl.NumberFormat(ut.locale)),ut._numberFormatter},merge(a,y){if(typeof a=="string"&&y)ut.strings[a]=xe(xe({},ut.strings[a]),y),ut.dirty=!0;else for(const b of Object.keys(a))ut.merge(b,a[b])},get dirty(){return ut._dirty},set dirty(a){ut._dirty||ut._dirty===a||(ut._dirty=!0,setTimeout(()=>{ut._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return ut._subscribers.push(a),ut._subscribers.length-1},unsubscribe(a){a<0||a>=ut._subscribers.length||(ut._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=ot(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=ot(E);ee&&b.setAttribute("aria-label",ee)}}}};function ot(a,...y){if(a===void 0)return;let b="";const E=ut.locale;ut.strings[E]&&(b=ut.strings[E][a]);const ee=E.slice(0,2);if(!b&&ut.strings[ee]&&(b=ut.strings[ee][a]),b||(b=ut.strings.en[a]),!b)return;const re=/(%@|%([0-9]+)\$@)/g;let le=re.exec(b),me=0;for(;le;){if(y[me++]){const Ae=le[2]?parseInt(le[2],10)-1:me-1;let Pe=y[Ae];typeof Pe=="number"&&(Pe=ut.numberFormatter.format(Pe)),b=b.replace(le[1],Pe)}le=re.exec(b)}return b=b.replace(/%%/g,"%"),b}var je={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},Se={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},Fe={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"},Ze={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"},xt={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"},Je={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 dt(a){var y,b,E,ee,re,le;const me=a.split("!");let ve,Ae,Pe,pt=255,Nt=255,Yt=255,rn=-1;const jn=me.length>0&&me[0].startsWith("-");jn&&(me[0]=me[0].slice(1));for(let Zr=0;Zr<me.length;Zr++){ve=pt,Ae=Nt,Pe=Yt;const Rn=(y=me[Zr].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],fr=Rn==null?void 0:Rn.toLowerCase(),qr=Rn&&(le=(re=(ee=(E=(b=Ze[fr])!=null?b:Ze[xt[Rn]])!=null?E:Se[Rn])!=null?ee:Je[Rn])!=null?re:je[Rn])!=null?le:me[Zr].trim();let Sr=qr.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(Sr!=null&&Sr[1]&&Sr[2]&&Sr[3])pt=Math.max(0,Math.min(255,Number.parseInt(Sr[1],16))),Nt=Math.max(0,Math.min(255,Number.parseInt(Sr[2],16))),Yt=Math.max(0,Math.min(255,Number.parseInt(Sr[3],16)));else if(Sr=qr.match(/^#([\da-f]{3})$/i),Sr!=null&&Sr[1]){const Ki=Number.parseInt(Sr[1][0],16),ra=Number.parseInt(Sr[1][1],16),Xi=Number.parseInt(Sr[1][2],16);pt=Math.max(0,Math.min(255,Ki*16+Ki)),Nt=Math.max(0,Math.min(255,ra*16+ra)),Yt=Math.max(0,Math.min(255,Xi*16+Xi))}else if(Sr=qr.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),Sr!=null&&Sr[1]&&Sr[2]&&Sr[3])pt=Math.max(0,Math.min(255,Number.parseInt(Sr[1]))),Nt=Math.max(0,Math.min(255,Number.parseInt(Sr[2]))),Yt=Math.max(0,Math.min(255,Number.parseInt(Sr[3])));else return;rn>=0&&(pt=(1-rn)*pt+rn*ve,Nt=(1-rn)*Nt+rn*Ae,Yt=(1-rn)*Yt+rn*Pe,rn=-1),Zr+1<me.length&&(rn=Math.max(0,Math.min(100,Number.parseInt(me[++Zr])))/100)}return rn>=0&&(pt=rn*pt+(1-rn)*ve,Nt=rn*Nt+(1-rn)*Ae,Yt=rn*Yt+(1-rn)*Pe),jn&&(pt=255-pt,Nt=255-Nt,Yt=255-Yt),"#"+("00"+Math.round(pt).toString(16)).slice(-2)+("00"+Math.round(Nt).toString(16)).slice(-2)+("00"+Math.round(Yt).toString(16)).slice(-2)}function Be(a){var y,b;return a=a.trim(),(b=(y=Fe[a.toLowerCase()])!=null?y:Fe[xt[a]])!=null?b:dt(a)}function kt(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 He(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 Tt(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*He(re,ee,y+2)),g:Math.round(255*He(re,ee,y)),b:Math.round(255*He(re,ee,y-2))}}function mt(a){return a<0?0:a>255?255:Math.round(a)}function Et(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(mt(y)<<16)+(mt(b)<<8)+mt(E)).toString(16).slice(1);return ee[0]===ee[1]&&ee[2]===ee[3]&&ee[4]===ee[5]&&ee[6]===ee[7]&&(ee=ee[0]+ee[2]+ee[4]),"#"+ee}function zt(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,ve;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 Ae=(ee+re)/2;return re===ee?ve=0:Ae<=.5?ve=le/(re+ee):ve=le/(2-re-ee),{h:me,s:ve,l:Ae}}function Bt(a){let y=kt(a);if(!y)return a;let{h:b,s:E,l:ee}=zt(y);return E+=.1,ee-=.1,Et(Tt({h:b,s:E,l:ee}))}var De={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"},ge={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},at=[{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 Ct(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 at)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(ge[re]||re)}return a}function It(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in ge)if(ge[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of at)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 Qe(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=De[ee];if(re)re.startsWith("\\")?b+=re+" ":b+=re;else{const{char:le,variant:me,style:ve}=It(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(ve){case"bold":re=`\\mathbf{${re}}`;break;case"italic":re=`\\mathit{${re}}`;break;case"bolditalic":re=`\\mathbfit{${re}}`;break}b+=re}}return b}function et(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var Lt={},dn=xe({},De),_t={},tn={},en={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}"},Jt={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}},Vt={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}},be={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:Vt},"amsmath.sty":{package:Jt,primitive:!0},"texvc.sty":{package:en,primitive:!1}},ce={" ":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},ue=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,de,pe;tt()?(de=new RegExp("\\p{Letter}","u"),pe=new RegExp("[0-9\\p{Letter}]","u")):(de=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,pe=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function se(a,y,b="mord",E){y!==void 0&&(Lt[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},dn[y]||(dn[y]=a))}function Le(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 ht(a,y){for(let b=a;b<=y;b++)se(String.fromCodePoint(b),b)}function _e(a){var y;return(y=tn[a])!=null?y:null}function Ne(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ee=[];for(const le in _t)le.startsWith(y)&&!_t[le].infix&&ee.push({match:le,frequency:(b=_t[le].frequency)!=null?b:0});for(const le in Lt)le.startsWith(y)&&ee.push({match:le,frequency:(E=Lt[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 ve,Ae;return le.frequency===me.frequency?le.match.length===me.match.length?le.match<me.match?-1:1:le.match.length-me.match.length:((ve=me.frequency)!=null?ve:0)-((Ae=le.frequency)!=null?Ae:0)}),ee.map(le=>le.match)}function St(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function gt(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:St(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...gt(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:St(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...gt(b[E]))}return y}function Xe(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 wt(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)tn[E]=b}function Xt(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:gt(y),createAtom:b};for(const re of a)tn[re]=ee}function bt(a,y,b){var E,ee;b||(b={});const re={definitionType:"function",params:gt(y),ifMode:b.ifMode,isFunction:(E=b.isFunction)!=null?E:!1,applyMode:b.applyMode,infix:(ee=b.infix)!=null?ee:!1,parse:b.parse,createAtom:b.createAtom,applyStyle:b.applyStyle,serialize:b.serialize,render:b.render};if(typeof a=="string")_t["\\"+a]=re;else for(const le of a)_t["\\"+le]=re}var $t;function on(a){return $t||($t=Oe(be)),a?Oe(xe(xe({},$t),a)):$t}function vt(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 xe({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 Oe(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]=vt(E.package[ee],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=vt(E)}return y}function yt(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=_t[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=Lt[a]:ce[a]&&(b={definitionType:"symbol",type:"mord",codepoint:ce[a]})}else if(y==="math"){if(b=Lt[a],!b&&a.length===1){const E=Zt("math",a.codePointAt(0));return E.startsWith("\\")?we(xe({},yt(E,"math")),{command:E}):null}}else ce[a]?b={definitionType:"symbol",type:"mord",codepoint:ce[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function jt(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"&&dn[y])return dn[y];if(a==="text"){const b=Object.keys(ce).find(E=>ce[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var nn=[0,.68889,0,0,.72222],Cn=[0,.68889,0,0,.66667],In=[0,.68889,0,0,.77778],Dn=[0,.68889,0,0,.61111],Kn=[.16667,.68889,0,0,.77778],Vn=[0,.68889,0,0,.55556],_n=[0,0,0,0,.25],or=[0,.825,0,0,2.33334],wr=[0,.9,0,0,2.33334],Tr=[0,.68889,0,0,.54028],Yn=[-.03598,.46402,0,0,.5],hr=[-.13313,.36687,0,0,1],kr=[.01354,.52239,0,0,1],Qn=[.01354,.52239,0,0,1.11111],Fr=[0,.54986,0,0,1],ci=[0,.69224,0,0,.5],Cr=[0,.43056,0,0,1],pi=[.08198,.58198,0,0,.77778],ai=[.19444,.69224,0,0,.41667],nr=[.1808,.675,0,0,1],yr=[.19444,.69224,0,0,.83334],Hn=[.13667,.63667,0,0,1],Gn=[-.064,.437,0,0,1.334],Or=[.08167,.58167,0,0,.77778],Rt=[0,.69224,0,0,.72222],Ke=[0,.69224,0,0,.66667],nt=[-.13313,.36687,0,0,.77778],rt=[.06062,.54986,0,0,.77778],it=[0,.69224,0,0,.77778],Dt=[.25583,.75583,0,0,.77778],Ht=[.25142,.75726,0,0,.77778],sn=[.20576,.70576,0,0,.77778],qt=[.30274,.79383,0,0,.77778],mn=[.22958,.72958,0,0,.77778],An=[.1808,.675,0,0,.77778],Tn=[.13667,.63667,0,0,.77778],Pn=[.13597,.63597,0,0,.77778],Qt=[.03517,.54986,0,0,.77778],wn=[0,.675,0,0,.77778],Xn=[.19444,.69224,0,0,.61111],Wn=[0,.54986,0,0,.76042],sr=[0,.54986,0,0,.66667],Jn=[.0391,.5391,0,0,.77778],Ar=[.03517,.54986,0,0,1.33334],Fn=[.38569,.88569,0,0,.77778],dr=[.23222,.74111,0,0,.77778],Ot=[.19444,.69224,0,0,.77778],cn=[0,.37788,0,0,.5],vn=[0,.54986,0,0,.72222],Mn=[0,.69224,0,0,.83334],yn=[.11111,.69224,0,0,.66667],Sn=[.26167,.75726,0,0,.77778],bn=[.48256,.98256,0,0,.77778],zn=[.28481,.79383,0,0,.77778],Zn=[.08167,.58167,0,0,.22222],qn=[.08167,.58167,0,0,.38889],_r=[0,.43056,.04028,0,.66667],ei=[.41951,.91951,0,0,.77778],di=[.24982,.74947,0,0,.38865],zr=[.08319,.58283,0,0,.75623],Lr=[0,.10803,0,0,.27764],mi=[0,.47534,0,0,.50181],oi=[.18906,.47534,0,0,.50181],ti=[0,.69141,0,0,.50181],Pr=[.24982,.74947,0,0,.27764],Vr=[0,.69141,0,0,.21471],En=[.25,.75,0,0,.44722],Yr=[0,.64444,0,0,.575],Li=[.08556,.58556,0,0,.89444],Yi=[0,.69444,0,0,.89444],ni=[0,.68611,0,0,.9],tr=[0,.68611,0,0,.86944],Un=[.25,.75,0,0,.575],Qr=[.25,.75,0,0,.31944],Dr=[0,.69444,0,0,.63889],fi=[0,.69444,0,0,.31944],Ni=[0,.44444,0,0,.63889],si=[0,.44444,0,0,.51111],ea=[0,.69444,0,0,.575],ki=[.13333,.63333,0,0,.89444],Da=[0,.44444,0,0,.31944],jr=[0,.69444,0,0,.86944],$r=[0,.68611,0,0,.69166],Di=[0,.68611,0,0,.83055],Ii=[0,.68611,0,0,.89444],La=[0,.69444,0,0,.60278],So=[.19444,.69444,0,0,.51111],Ga=[0,.69444,0,0,.83055],la=[-.10889,.39111,0,0,1.14999],Oa=[.19444,.69444,0,0,.575],Ma=[.19444,.69444,0,0,1.14999],vr=[.19444,.69444,0,0,.70277],br=[.05556,.75,0,0,.575],xr=[0,.68611,0,0,.95833],Gr=[.08556,.58556,0,0,.76666],ia=[-.02639,.47361,0,0,.575],wa=[0,.44444,0,0,.89444],Ea=[0,.55556,0,0,.76666],Sa=[-.10889,.39111,0,0,.89444],Aa=[.00222,.50222,0,0,.89444],_a=[.19667,.69667,0,0,.89444],mo=[.08556,.58556,0,0,1.14999],co=[0,.69444,0,0,.70277],qo=[-.02778,.47222,0,0,.575],Bo=[.25,.75,0,0,.51111],eo=[-.13889,.36111,0,0,1.14999],Bs=[.19444,.69444,0,0,1.02222],Wo=[.12963,.69444,0,0,.89444],Ro=[.19444,.69444,0,0,.44722],fo=[0,.64444,.13167,0,.59111],za=[.19444,.64444,.13167,0,.59111],Ei=[0,.68611,.17208,0,.8961],ta=[.19444,.44444,.105,0,.53222],Zi=[0,.44444,.085,0,.82666],Ci=[0,.69444,.06709,0,.59111],va=[0,.69444,.12945,0,.35555],oa=[0,.69444,0,0,.94888],to=[0,.69444,.11472,0,.59111],go=[0,.68611,.10778,0,.88555],no=[0,.69444,.07939,0,.62055],xn=[0,.69444,.12417,0,.30667],gr=[0,.64444,.13556,0,.51111],Hr=[.19444,.64444,.13556,0,.51111],Ti=[0,.68333,.16389,0,.74333],Ui=[.19444,.43056,.08847,0,.46],ji=[0,.43056,.07514,0,.71555],ba=[0,.69444,.06646,0,.51111],Co=[0,.69444,0,0,.83129],fn=[0,.69444,.1225,0,.51111],Xa=[0,.68333,.09403,0,.76666],ho=[0,.68333,.11111,0,.76666],El=[0,.69444,.06961,0,.51444],ys=[0,.69444,0,0,.27778],Oo=[.25,.75,0,0,.38889],Lo=[0,.64444,0,0,.5],As=[0,.69444,0,0,.77778],po=[0,.68333,0,0,.75],es=[0,.68333,0,0,.77778],Gs=[0,.68333,0,0,.68056],al=[0,.68333,0,0,.72222],os=[.25,.75,0,0,.5],cs=[.25,.75,0,0,.27778],lo=[0,.69444,0,0,.5],yl=[0,.69444,0,0,.55556],ln=[0,.43056,0,0,.44445],Ft=[0,.43056,0,0,.5],st=[.19444,.43056,0,0,.55556],mr=[0,.43056,0,0,.55556],bi=[.08333,.58333,0,0,.77778],Oi=[0,.43056,0,0,.27778],Qi=[0,.66786,0,0,.27778],$i=[0,.69444,0,0,.75],Jr=[0,.66786,0,0,.5],lr=[0,.68333,0,0,.625],gi=[.19444,.69444,0,0,.44445],ro=[0,.69444,0,0,.72222],Fo=[.19444,.69444,0,0,.5],ca=[.19444,.69444,0,0,1],Pa=[.011,.511,0,0,1.126],$o=[.19444,.69444,0,0,.61111],Uo=[.05556,.75,0,0,.5],bs=[0,.68333,0,0,.83334],ds=[.0391,.5391,0,0,.66667],io=[-.05555,.44445,0,0,.5],fs=[0,.43056,0,0,.77778],No=[0,.55556,0,0,.66667],Ra=[-.03625,.46375,0,0,.77778],wo=[-.01688,.48312,0,0,.77778],Os=[.0391,.5391,0,0,1],Mi=[0,.69444,0,0,.61111],Bi=[-.03472,.46528,0,0,.5],ua=[.25,.75,0,0,.44445],Ca=[-.14236,.35764,0,0,1],Ta=[.244,.744,0,0,.412],_o=[.19444,.69444,0,0,.88889],Mo=[.12963,.69444,0,0,.77778],To=[.19444,.69444,0,0,.38889],qs=[.011,.511,0,0,1.638],Ya=[.19444,.69444,0,0,0],ii=[0,.44444,0,0,.575],_s=[.19444,.44444,0,0,.575],Ml=[0,.68611,0,0,.75555],du=[0,.69444,0,0,.66759],cr=[0,.68611,0,0,.80555],da=[0,.68611,.08229,0,.98229],fu=[0,.68611,0,0,.76666],mc=[0,.44444,0,0,.58472],Cu=[.19444,.44444,0,0,.6118],hs=[.19444,.43056,0,0,.5],wu=[0,.68333,.02778,.08334,.76278],Eu=[0,.68333,.08125,.05556,.83125],Pl=[0,.43056,0,.05556,.48472],hu=[.19444,.43056,0,.08334,.51702],Rl=[.25,.75,0,0,.42778],Vo=[0,.69444,0,0,.55],ol=[0,.69444,0,0,.73334],Al=[0,.69444,0,0,.79445],tu=[0,.69444,0,0,.51945],Hl=[0,.69444,0,0,.70278],Mu=[0,.69444,0,0,.76389],Fl=[.25,.75,0,0,.34306],xs=[0,.69444,0,0,.56111],Au=[0,.69444,0,0,.25556],Ps=[.19444,.45833,0,0,.56111],ku=[0,.45833,0,0,.56111],bl=[0,.69444,0,0,.30556],Du=[0,.69444,0,0,.58056],xa=[0,.69444,0,0,.67223],Ao=[0,.69444,0,0,.85556],Ss=[0,.69444,0,0,.55834],ss=[0,.65556,.11156,0,.5],Ys=[0,.69444,.08094,0,.70834],Fu=[.17014,0,0,0,.44445],zu=[0,.69444,.0799,0,.5],oc=[0,.69444,0,0,.73752],gc=[0,.69444,.09205,0,.5],ks=[0,.69444,.09031,0,.77778],xl=[0,.69444,.07816,0,.27778],ju=[0,.69444,.00316,0,.5],$e=[.19444,.69444,0,0,.83334],Ve=[.05556,.75,0,0,.83334],Mt=[0,.75,0,0,.5],Pt=[.125,.08333,0,0,.27778],Ut=[0,.08333,0,0,.27778],Wt=[0,.65556,0,0,.5],pn=[0,.69444,0,0,.47222],hn=[0,.69444,0,0,.66667],un=[0,.69444,0,0,.59722],Nn=[0,.69444,0,0,.54167],$n=[0,.69444,0,0,.70834],On=[.25,.75,0,0,.28889],ur=[0,.69444,0,0,.51667],rr=[0,.44444,0,0,.44445],ir=[.19444,.44444,0,0,.51667],Wr=[0,.44444,0,0,.38333],Ir=[0,.44444,0,0,.51667],Ur=[0,.69444,0,0,.83334],Br=[.35001,.85,0,0,.45834],li=[.35001,.85,0,0,.57778],Pi=[.35001,.85,0,0,.41667],Hi=[.35001,.85,0,0,.58334],xi=[0,.72222,0,0,.55556],na=[1e-5,.6,0,0,.66667],ya=[1e-5,.6,0,0,.77778],hi=[.25001,.75,0,0,.94445],Ai=[.306,.805,.19445,0,.47222],vi=[.30612,.805,.19445,0,.47222],Er=[.25001,.75,0,0,.83334],Si=[.35001,.85,0,0,.47222],qi=[.25001,.75,0,0,1.11111],Gi=[.65002,1.15,0,0,.59722],Ri=[.65002,1.15,0,0,.81111],Xr=[.65002,1.15,0,0,.47222],fa=[.65002,1.15,0,0,.66667],ha=[0,.75,0,0,1],ja=[.55001,1.05,0,0,1.27778],Fa=[.862,1.36,.44445,0,.55556],ko=[.86225,1.36,.44445,0,.55556],Va=[.55001,1.05,0,0,1.11111],aa=[.65002,1.15,0,0,.52778],ao=[.65002,1.15,0,0,.61111],Ba=[.55001,1.05,0,0,1.51112],Eo=[.95003,1.45,0,0,.73611],vo=[.95003,1.45,0,0,1.04445],ts=[.95003,1.45,0,0,.52778],Ji=[.95003,1.45,0,0,.75],Wi=[0,.75,0,0,1.44445],Vi=[.95003,1.45,0,0,.58334],Fi=[1.25003,1.75,0,0,.79167],$a=[1.25003,1.75,0,0,1.27778],Ln=[1.25003,1.75,0,0,.58334],pr=[1.25003,1.75,0,0,.80556],pa=[0,.825,0,0,1.8889],ka=[1.25003,1.75,0,0,.63889],rs=[.64502,1.155,0,0,.875],Go=[1e-5,.6,0,0,.875],Zs=[-99e-5,.601,0,0,.66667],ns=[.64502,1.155,0,0,.66667],kl=[1e-5,.9,0,0,.88889],is=[.65002,1.15,0,0,.88889],Ds=[.90001,0,0,0,.88889],Wl=[-.00499,.605,0,0,1.05556],Za=[0,.12,0,0,.45],Nr=[0,.61111,0,0,.525],Qa=[.08333,.69444,0,0,.525],ls=[-.08056,.53055,0,0,.525],ps=[-.05556,.55556,0,0,.525],ma=[0,.43056,0,0,.525],uo=[.22222,.43056,0,0,.525],Is=[0,0,0,0,.525],pl={"AMS-Regular":{32:_n,65:nn,66:Cn,67:nn,68:nn,69:Cn,70:Dn,71:In,72:In,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:In,76:Cn,77:[0,.68889,0,0,.94445],78:nn,79:Kn,80:Dn,81:Kn,82:nn,83:Vn,84:Cn,85:nn,86:nn,87:[0,.68889,0,0,1],88:nn,89:nn,90:Cn,107:Vn,160:_n,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Vn,295:Tr,710:or,732:wr,770:or,771:wr,989:Or,1008:_r,8245:[0,.54986,0,0,.275],8463:Tr,8487:nn,8498:Vn,8502:Cn,8503:[0,.68889,0,0,.44445],8504:Cn,8513:[0,.68889,0,0,.63889],8592:Yn,8594:Yn,8602:hr,8603:hr,8606:kr,8608:kr,8610:Qn,8611:Qn,8619:Fr,8620:Fr,8621:[-.13313,.37788,0,0,1.38889],8622:hr,8624:ci,8625:ci,8630:Cr,8631:Cr,8634:pi,8635:pi,8638:ai,8639:ai,8642:ai,8643:ai,8644:nr,8646:nr,8647:nr,8648:yr,8649:nr,8650:yr,8651:kr,8652:kr,8653:hr,8654:hr,8655:hr,8666:Hn,8667:Hn,8669:[-.13313,.37788,0,0,1],8672:Gn,8674:Gn,8705:[0,.825,0,0,.5],8708:Vn,8709:Or,8717:[0,.43056,0,0,.42917],8722:Yn,8724:[.08198,.69224,0,0,.77778],8726:Or,8733:it,8736:Rt,8737:Rt,8738:[.03517,.52239,0,0,.72222],8739:Zn,8740:[.25142,.74111,0,0,.27778],8741:qn,8742:[.25142,.74111,0,0,.5],8756:Ke,8757:Ke,8764:nt,8765:[-.13313,.37788,0,0,.77778],8769:nt,8770:Ra,8774:qt,8776:wo,8778:Or,8782:rt,8783:rt,8785:pi,8786:pi,8787:pi,8790:it,8791:mn,8796:[.08198,.91667,0,0,.77778],8806:Dt,8807:Dt,8808:Ht,8809:Ht,8812:[.25583,.75583,0,0,.5],8814:sn,8815:sn,8816:qt,8817:qt,8818:mn,8819:mn,8822:An,8823:An,8828:Tn,8829:Tn,8830:mn,8831:mn,8832:sn,8833:sn,8840:qt,8841:qt,8842:Pn,8843:Pn,8847:Qt,8848:Qt,8858:pi,8859:pi,8861:pi,8862:wn,8863:wn,8864:wn,8865:wn,8872:[0,.69224,0,0,.61111],8873:Rt,8874:[0,.69224,0,0,.88889],8876:Dn,8877:Dn,8878:nn,8879:nn,8882:Qt,8883:Qt,8884:Tn,8885:Tn,8888:[0,.54986,0,0,1.11111],8890:st,8891:Xn,8892:Xn,8901:[0,.54986,0,0,.27778],8903:Or,8905:Or,8906:Or,8907:it,8908:it,8909:[-.03598,.46402,0,0,.77778],8910:Wn,8911:Wn,8912:Qt,8913:Qt,8914:sr,8915:sr,8916:Ke,8918:Jn,8919:Jn,8920:Ar,8921:Ar,8922:Fn,8923:Fn,8926:Tn,8927:Tn,8928:qt,8929:qt,8934:dr,8935:dr,8936:dr,8937:dr,8938:sn,8939:sn,8940:qt,8941:qt,8994:Ot,8995:Ot,9416:[.15559,.69224,0,0,.90222],9484:ci,9488:ci,9492:cn,9496:cn,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:wn,9633:wn,9650:vn,9651:vn,9654:Qt,9660:vn,9661:vn,9664:Qt,9674:yn,9733:[.19444,.69224,0,0,.94445],10003:Mn,10016:Mn,10731:yn,10846:[.19444,.75583,0,0,.61111],10877:Tn,10878:Tn,10885:Dt,10886:Dt,10887:Pn,10888:Pn,10889:Sn,10890:Sn,10891:bn,10892:bn,10901:Tn,10902:Tn,10933:Ht,10934:Ht,10935:Sn,10936:Sn,10937:Sn,10938:Sn,10949:Dt,10950:Dt,10955:zn,10956:zn,57350:Zn,57351:qn,57352:Or,57353:_r,57356:Ht,57357:Ht,57358:ei,57359:qt,57360:qt,57361:ei,57366:Ht,57367:Ht,57368:Ht,57369:Ht,57370:Pn,57371:Pn},"Caligraphic-Regular":{32:_n,65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:_n},"Fraktur-Regular":{32:_n,33:[0,.69141,0,0,.29574],34:Vr,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:di,41:di,42:[0,.62119,0,0,.27764],43:zr,44:Lr,45:zr,46:Lr,47:[.24982,.74947,0,0,.50181],48:mi,49:mi,50:mi,51:oi,52:oi,53:oi,54:ti,55:oi,56:ti,57:oi,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:Pr,93:Pr,94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:_n,8216:Vr,8217:Vr,58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:_n,33:[0,.69444,0,0,.35],34:La,35:[.19444,.69444,0,0,.95833],36:br,37:[.05556,.75,0,0,.95833],38:Yi,39:fi,40:En,41:En,42:[0,.75,0,0,.575],43:ki,44:[.19444,.15556,0,0,.31944],45:Wr,46:[0,.15556,0,0,.31944],47:Un,48:Yr,49:Yr,50:Yr,51:Yr,52:Yr,53:Yr,54:Yr,55:Yr,56:Yr,57:Yr,58:Da,59:[.19444,.44444,0,0,.31944],60:Li,61:Sa,62:Li,63:[0,.69444,0,0,.54305],64:Yi,65:tr,66:[0,.68611,0,0,.81805],67:Di,68:[0,.68611,0,0,.88194],69:Ml,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:ni,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:$r,77:[0,.68611,0,0,1.09166],78:ni,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:tr,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Qr,92:Un,93:Qr,94:ea,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Dr,99:si,100:Dr,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Dr,105:fi,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:fi,109:[0,.44444,0,0,.95833],110:Ni,111:ii,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:Ni,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:si,123:Un,124:Qr,125:Un,126:[.35,.34444,0,0,.575],160:_n,163:[0,.69444,0,0,.86853],168:ea,172:[0,.44444,0,0,.76666],176:jr,177:ki,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:ki,216:[.04861,.73472,0,0,.89444],223:un,230:[0,.44444,0,0,.83055],247:ki,248:[.09722,.54167,0,0,.575],305:Da,338:[0,.68611,0,0,1.16944],339:wa,567:[.19444,.44444,0,0,.35139],710:ea,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:ea,715:ea,728:ea,729:fi,730:jr,732:ea,733:ea,915:$r,916:xr,920:Ii,923:cr,926:fu,928:ni,931:Di,933:Ii,934:Di,936:Ii,937:Di,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:fi,8217:fi,8220:La,8221:La,8224:So,8225:So,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:du,8465:Ga,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:Ga,8501:co,8592:la,8593:Oa,8594:la,8595:Oa,8596:la,8597:Un,8598:Ma,8599:Ma,8600:Ma,8601:Ma,8636:la,8637:la,8640:la,8641:la,8656:la,8657:vr,8658:la,8659:vr,8660:la,8661:[.25,.75,0,0,.70277],8704:Dr,8706:[0,.69444,.06389,0,.62847],8707:Dr,8709:br,8711:xr,8712:Gr,8715:Gr,8722:ki,8723:ki,8725:Un,8726:Un,8727:qo,8728:ia,8729:ia,8730:[.18,.82,0,0,.95833],8733:wa,8734:[0,.44444,0,0,1.14999],8736:Rt,8739:Qr,8741:Un,8743:Ea,8744:Ea,8745:Ea,8746:Ea,8747:[.19444,.69444,.12778,0,.56875],8764:Sa,8768:[.19444,.69444,0,0,.31944],8771:Aa,8776:[.02444,.52444,0,0,.89444],8781:Aa,8801:Aa,8804:_a,8805:_a,8810:mo,8811:mo,8826:Li,8827:Li,8834:Li,8835:Li,8838:_a,8839:_a,8846:Ea,8849:_a,8850:_a,8851:Ea,8852:Ea,8853:ki,8854:ki,8855:ki,8856:ki,8857:ki,8866:co,8867:co,8868:Yi,8869:Yi,8900:ia,8901:[-.02639,.47361,0,0,.31944],8902:qo,8968:Bo,8969:Bo,8970:Bo,8971:Bo,8994:eo,8995:eo,9651:Bs,9657:qo,9661:Bs,9667:qo,9711:Ma,9824:Wo,9825:Wo,9826:Wo,9827:Wo,9837:[0,.75,0,0,.44722],9838:Ro,9839:Ro,10216:En,10217:En,10815:ni,10927:_a,10928:_a,57376:Ya},"Main-BoldItalic":{32:_n,33:[0,.69444,.11417,0,.38611],34:no,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:va,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:fo,49:fo,50:fo,51:fo,52:za,53:fo,54:fo,55:za,56:fo,57:fo,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:to,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:Ei,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:Ei,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:Ci,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:ta,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:ta,114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:_n,168:[0,.69444,.11473,0,.59111],176:oa,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:Zi,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Zi,567:[.19444,.44444,.04611,0,.385],710:Ci,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:va,730:oa,732:to,733:to,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:Ei,931:[0,.68611,.11431,0,.82666],933:go,934:[0,.68611,.05632,0,.82666],936:go,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:va,8217:va,8220:[0,.69444,.16772,0,.62055],8221:no},"Main-Italic":{32:_n,33:xn,34:El,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:xn,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:gr,49:gr,50:gr,51:gr,52:Hr,53:gr,54:gr,55:Hr,56:gr,57:gr,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:fn,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:Ti,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:Ti,79:Xa,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:Ti,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:ba,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:Ui,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:Ui,114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:_n,168:[0,.66786,.10474,0,.51111],176:Co,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:ji,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:ji,710:ba,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:Co,732:[0,.66786,.11585,0,.51111],733:fn,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Xa,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:Ti,931:[0,.68333,.12028,0,.71555],933:ho,934:[0,.68333,.05986,0,.71555],936:ho,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:xn,8217:xn,8220:[0,.69444,.1685,0,.51444],8221:El,8463:Tr},"Main-Regular":{32:_n,33:ys,34:lo,35:$e,36:Uo,37:Ve,38:As,39:ys,40:Oo,41:Oo,42:Mt,43:bi,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:os,48:Lo,49:Lo,50:Lo,51:Lo,52:Lo,53:Lo,54:Lo,55:Lo,56:Lo,57:Lo,58:Oi,59:[.19444,.43056,0,0,.27778],60:Jn,61:nt,62:Jn,63:pn,64:As,65:po,66:[0,.68333,0,0,.70834],67:al,68:[0,.68333,0,0,.76389],69:Gs,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:po,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:es,76:lr,77:[0,.68333,0,0,.91667],78:po,79:es,80:Gs,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:al,85:po,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:po,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:cs,92:os,93:cs,94:lo,95:[.31,.12056,.02778,0,.5],97:Ft,98:yl,99:ln,100:yl,101:ln,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:yl,105:Qi,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:ys,109:[0,.43056,0,0,.83334],110:mr,111:Ft,112:st,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:mr,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:ln,123:os,124:cs,125:os,126:[.35,.31786,0,0,.5],160:_n,163:[0,.69444,0,0,.76909],167:gi,168:Jr,172:[0,.43056,0,0,.66667],176:$i,177:bi,182:$o,184:Fu,198:[0,.68333,0,0,.90278],215:bi,216:[.04861,.73194,0,0,.77778],223:lo,230:[0,.43056,0,0,.72222],247:bi,248:[.09722,.52778,0,0,.5],305:Oi,338:[0,.68333,0,0,1.01389],339:fs,567:[.19444,.43056,0,0,.30556],710:lo,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:lo,715:lo,728:lo,729:Qi,730:$i,732:Jr,733:lo,915:lr,916:bs,920:es,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:po,931:al,933:es,934:al,936:es,937:al,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:ys,8217:ys,8220:lo,8221:lo,8224:gi,8225:gi,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:Tr,8465:ro,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:ro,8501:Mi,8592:hr,8593:Fo,8594:hr,8595:Fo,8596:hr,8597:os,8598:ca,8599:ca,8600:ca,8601:ca,8614:[.011,.511,0,0,1],8617:Pa,8618:Pa,8636:hr,8637:hr,8640:hr,8641:hr,8652:[.011,.671,0,0,1],8656:hr,8657:$o,8658:hr,8659:$o,8660:hr,8661:[.25,.75,0,0,.61111],8704:yl,8706:[0,.69444,.05556,.08334,.5309],8707:yl,8709:Uo,8711:bs,8712:ds,8715:ds,8722:bi,8723:bi,8725:os,8726:os,8727:Bi,8728:io,8729:io,8730:[.2,.8,0,0,.83334],8733:fs,8734:Cr,8736:Rt,8739:cs,8741:os,8743:No,8744:No,8745:No,8746:No,8747:[.19444,.69444,.11111,0,.41667],8764:nt,8768:[.19444,.69444,0,0,.27778],8771:Ra,8773:[-.022,.589,0,0,1],8776:wo,8781:Ra,8784:[-.133,.67,0,0,.778],8801:Ra,8804:Pn,8805:Pn,8810:Os,8811:Os,8826:Jn,8827:Jn,8834:Jn,8835:Jn,8838:Pn,8839:Pn,8846:No,8849:Pn,8850:Pn,8851:No,8852:No,8853:bi,8854:bi,8855:bi,8856:bi,8857:bi,8866:Mi,8867:Mi,8868:As,8869:As,8872:[.249,.75,0,0,.867],8900:io,8901:[-.05555,.44445,0,0,.27778],8902:Bi,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:ua,8969:ua,8970:ua,8971:ua,8994:Ca,8995:Ca,9136:Ta,9137:Ta,9651:_o,9657:Bi,9661:_o,9667:Bi,9711:ca,9824:Mo,9825:Mo,9826:Mo,9827:Mo,9837:[0,.75,0,0,.38889],9838:To,9839:To,10216:Oo,10217:Oo,10222:Ta,10223:Ta,10229:[.011,.511,0,0,1.609],10230:qs,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:qs,10815:po,10927:Pn,10928:Pn,57376:Ya},"Math-BoldItalic":{32:_n,48:ii,49:ii,50:ii,51:_s,52:_s,53:_s,54:Yr,55:_s,56:Yr,57:_s,65:tr,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:da,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Ml,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:du,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:mc,112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:_n,915:[0,.68611,.15972,0,.65694],916:xr,920:[0,.68611,.03194,0,.86722],923:cr,926:[0,.68611,.07458,0,.84125],928:da,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:fu,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:mc,960:[0,.44444,.03704,0,.68241],961:Cu,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:Cu,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:_n,48:Ft,49:Ft,50:Ft,51:hs,52:hs,53:hs,54:Lo,55:hs,56:Lo,57:hs,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:Eu,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:wu,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:Pl,112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:_n,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:wu,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Eu,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:Pl,960:[0,.43056,.03588,0,.57003],961:hu,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:hu,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:_n,33:[0,.69444,0,0,.36667],34:Ss,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:bl,40:Rl,41:Rl,42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:Vo,49:Vo,50:Vo,51:Vo,52:Vo,53:Vo,54:Vo,55:Vo,56:Vo,57:Vo,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:tu,64:ol,65:ol,66:ol,67:Hl,68:Al,69:[0,.69444,0,0,.64167],70:Mi,71:ol,72:Al,73:[0,.69444,0,0,.33056],74:tu,75:Mu,76:Du,77:[0,.69444,0,0,.97778],78:Al,79:Al,80:Hl,81:[.10556,.69444,0,0,.79445],82:Hl,83:Mi,84:ol,85:Mu,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:ol,89:[0,.69444,.0275,0,.73334],90:xa,91:Fl,93:Fl,94:Vo,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:xs,99:[0,.45833,0,0,.48889],100:xs,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:xs,105:Au,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Au,109:[0,.45833,0,0,.86667],110:ku,111:[0,.45833,0,0,.55],112:Ps,113:Ps,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:ku,118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:_n,168:Vo,176:ol,180:Vo,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Vo,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Vo,729:bl,730:ol,732:Vo,733:Vo,915:Du,916:[0,.69444,0,0,.91667],920:Ao,923:xa,926:ol,928:Al,931:Al,933:Ao,934:Al,936:Ao,937:Al,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:bl,8217:bl,8220:Ss,8221:Ss},"SansSerif-Italic":{32:_n,33:[0,.69444,.05733,0,.31945],34:ju,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:xl,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:Pt,45:[0,.44444,.01946,0,.33333],46:Ut,47:[.25,.75,.13164,0,.5],48:ss,49:ss,50:ss,51:ss,52:ss,53:ss,54:ss,55:ss,56:ss,57:ss,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:hn,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:Ys,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:Ys,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:zu,95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:_n,168:[0,.67937,.06385,0,.5],176:oc,184:Fu,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:zu,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:gc,715:lo,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:oc,732:[0,.67659,.08826,0,.5],733:gc,915:[0,.69444,.13372,0,.54167],916:Ur,920:[0,.69444,.07555,0,.77778],923:Mi,926:[0,.69444,.12816,0,.66667],928:Ys,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:xl,8217:xl,8220:[0,.69444,.14205,0,.5],8221:ju},"SansSerif-Regular":{32:_n,33:[0,.69444,0,0,.31945],34:lo,35:$e,36:Uo,37:Ve,38:[0,.69444,0,0,.75834],39:ys,40:Oo,41:Oo,42:Mt,43:bi,44:Pt,45:[0,.44444,0,0,.33333],46:Ut,47:os,48:Wt,49:Wt,50:Wt,51:Wt,52:Wt,53:Wt,54:Wt,55:Wt,56:Wt,57:Wt,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:pn,64:hn,65:hn,66:hn,67:Dr,68:[0,.69444,0,0,.72223],69:un,70:[0,.69444,0,0,.56945],71:hn,72:$n,73:ys,74:pn,75:[0,.69444,0,0,.69445],76:Nn,77:[0,.69444,0,0,.875],78:$n,79:[0,.69444,0,0,.73611],80:Dr,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:yl,84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:hn,89:[0,.69444,.025,0,.66667],90:Mi,91:On,93:On,94:lo,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:ur,99:rr,100:ur,101:rr,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:ur,105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:Ir,111:[0,.44444,0,0,.5],112:ir,113:ir,114:[0,.44444,.01389,0,.34167],115:Wr,116:[0,.57143,0,0,.36111],117:Ir,118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:_n,168:[0,.67937,0,0,.5],176:hn,184:Fu,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:lo,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:lo,715:lo,728:lo,729:[0,.67937,0,0,.27778],730:hn,732:[0,.67659,0,0,.5],733:lo,915:Nn,916:Ur,920:As,923:Mi,926:hn,928:$n,931:ro,933:As,934:ro,936:As,937:ro,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:ys,8217:ys,8220:lo,8221:lo},"Script-Regular":{32:_n,65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:_n},"Size1-Regular":{32:_n,40:Br,41:Br,47:li,91:Pi,92:li,93:Pi,123:Hi,125:Hi,160:_n,710:xi,732:xi,770:xi,771:xi,8214:[-99e-5,.601,0,0,.77778],8593:na,8595:na,8657:ya,8659:ya,8719:hi,8720:hi,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:vi,8748:Ai,8749:Ai,8750:vi,8896:Er,8897:Er,8898:Er,8899:Er,8968:Si,8969:Si,8970:Si,8971:Si,9168:Zs,10216:Si,10217:Si,10752:qi,10753:qi,10754:qi,10756:Er,10758:Er},"Size2-Regular":{32:_n,40:Gi,41:Gi,47:Ri,91:Xr,92:Ri,93:Xr,123:fa,125:fa,160:_n,710:ha,732:ha,770:ha,771:ha,8719:ja,8720:ja,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:ko,8748:Fa,8749:Fa,8750:ko,8896:Va,8897:Va,8898:Va,8899:Va,8968:aa,8969:aa,8970:aa,8971:aa,10216:ao,10217:ao,10752:Ba,10753:Ba,10754:Ba,10756:Va,10758:Va},"Size3-Regular":{32:_n,40:Eo,41:Eo,47:vo,91:ts,92:vo,93:ts,123:Ji,125:Ji,160:_n,710:Wi,732:Wi,770:Wi,771:Wi,8730:[.95003,1.45,0,0,1],8968:Vi,8969:Vi,8970:Vi,8971:Vi,10216:Ji,10217:Ji},"Size4-Regular":{32:_n,40:Fi,41:Fi,47:$a,91:Ln,92:$a,93:Ln,123:pr,125:pr,160:_n,710:pa,732:pa,770:pa,771:pa,8730:[1.25003,1.75,0,0,1],8968:ka,8969:ka,8970:ka,8971:ka,9115:rs,9116:Go,9117:rs,9118:rs,9119:Go,9120:rs,9121:ns,9122:Zs,9123:ns,9124:ns,9125:Zs,9126:ns,9127:kl,9128:is,9129:Ds,9130:[0,.3,0,0,.88889],9131:kl,9132:is,9133:Ds,9143:[.88502,.915,0,0,1.05556],10216:pr,10217:pr,57344:Wl,57345:Wl,57680:Za,57681:Za,57682:Za,57683:Za},"Typewriter-Regular":{32:Is,33:Nr,34:Nr,35:Nr,36:Qa,37:Qa,38:Nr,39:Nr,40:Qa,41:Qa,42:[0,.52083,0,0,.525],43:ls,44:[.13889,.125,0,0,.525],45:ls,46:[0,.125,0,0,.525],47:Qa,48:Nr,49:Nr,50:Nr,51:Nr,52:Nr,53:Nr,54:Nr,55:Nr,56:Nr,57:Nr,58:ma,59:[.13889,.43056,0,0,.525],60:ps,61:[-.19549,.41562,0,0,.525],62:ps,63:Nr,64:Nr,65:Nr,66:Nr,67:Nr,68:Nr,69:Nr,70:Nr,71:Nr,72:Nr,73:Nr,74:Nr,75:Nr,76:Nr,77:Nr,78:Nr,79:Nr,80:Nr,81:[.13889,.61111,0,0,.525],82:Nr,83:Nr,84:Nr,85:Nr,86:Nr,87:Nr,88:Nr,89:Nr,90:Nr,91:Qa,92:Qa,93:Qa,94:Nr,95:[.09514,0,0,0,.525],96:Nr,97:ma,98:Nr,99:ma,100:Nr,101:ma,102:Nr,103:uo,104:Nr,105:Nr,106:[.22222,.61111,0,0,.525],107:Nr,108:Nr,109:ma,110:ma,111:ma,112:uo,113:uo,114:ma,115:ma,116:[0,.55358,0,0,.525],117:ma,118:ma,119:ma,120:ma,121:uo,122:ma,123:Qa,124:Qa,125:Qa,126:Nr,127:Nr,160:Is,176:Nr,184:[.19445,0,0,0,.525],305:ma,567:uo,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:Nr,715:Nr,728:Nr,730:Nr,770:Nr,771:Nr,776:Nr,915:Nr,916:Nr,920:Nr,923:Nr,926:Nr,928:Nr,931:Nr,933:Nr,934:Nr,936:Nr,937:Nr,8216:Nr,8217:Nr,8242:Nr,9251:[.11111,.21944,0,0,.525]}},zl=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,el=10,Rs=.25,Nl=1.2,Fs=.431,tl={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[Fs,Fs,Fs],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:[Rs,Rs,Rs],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]},Hs=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],zo=5,jo={"\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 Qs(a,y){a===void 0&&(a=77);const b=pl[y][a];if(b)return{defaultMetrics:!1,depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]};if(a===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const E=String.fromCodePoint(a);if(E in jo)a=jo[E].codePointAt(0);else if(zl.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 Ul={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]},Sl={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]},jl={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 nu(a){if(Sl[a]){const[Ae,Pe,pt]=Sl[a],Nt=`<span class="stretchy" style="height:${pt}em"><svg width="100%" height="${pt}em" viewBox="0 0 ${Ae} ${Pe}" preserveAspectRatio="none" ><path fill="currentcolor" d="${jl[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*pt/2)/100}em;min-width:0">${Nt}</span>`}const[y,b,E,ee]=Ul[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 ve=y.map((Ae,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="${jl[Ae]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${me}em;min-width:${b}em;">${ve}</span>`}function vc(a){return Ul[a]?Ul[a][2]/1e3:Sl[a][2]}function Ha(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=ac(2,16)+re*ac(2,10)+le,b++}}y.push(E)}return y}var yo=8205,Cs=[[yo,1],[65038,2],[127995,5],[129456,4],[917536,96]],bo,ws=[127462,127487];function zs(a){var y;if(bo===void 0){bo={};for(const b of Cs)for(let E=b[0];E<=b[0]+b[1]-1;E++)bo[E]=!0}return(y=bo[a])!=null?y:!1}function sl(a){return a>=ws[0]&&a<=ws[1]}function Vl(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=Ha(a);let E=0;for(;E<b.length;){const ee=b[E++],re=b[E];if(re===yo){const le=E-1;for(E+=2;b[E]===yo;)E+=2;y.push(String.fromCodePoint(...b.slice(le,E-le+1)))}else if(zs(re)){const le=E-1;for(;zs(b[E]);)E+=b[E]===yo?2:1;y.push(String.fromCodePoint(...b.slice(le,2*E-le-1)))}else sl(ee)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ee))}return y}var Bc=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=Vl(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 pu(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 ve of me)le.push(ve==="\\"?"\\backslash":ve);else me==="<{>"?le.push("\\{"):me==="<space>"?le.push("~"):me==="<}>"&&le.push("\\}")}else if(me==="\\csname"){for(;a.peek()==="<space>";)a.next();let ve="",Ae=!1,Pe=[];do{if(Pe.length===0)if(/^#[\d?@]$/.test(a.peek())){const pt=a.get().slice(1);Pe=Gl((E=(b=y==null?void 0:y(pt))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),me=Pe[0]}else me=a.next(),Pe=me?[me]:[];Ae=Pe.length===0,!Ae&&me==="\\endcsname"&&(Ae=!0,Pe.shift()),Ae||(Ae=me==="<$>"||me==="<$$>"||me==="<{>"||me==="<}>"||typeof me=="string"&&me.length>1&&me.startsWith("\\")),Ae||(ve+=Pe.shift())}while(!Ae);ve&&le.push("\\"+ve),le.push(...Pe)}else if(me!=="\\endcsname")if(me.length>1&&me.startsWith("#")){const ve=me.slice(1);le.push(...Gl((re=(ee=y==null?void 0:y(ve))!=null?ee:y==null?void 0:y("?"))!=null?re:"\\placeholder{}",y))}else le.push(me)}return le}function Gl(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 Bc(Qe(b.join(""))),re=[];do re.push(...pu(ee,y));while(!ee.end());return re}function Ka(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 Ko(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:Ka([a,...y.map(b=>`{${b}}`)])}function $l(a){return Ka(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var Iu=class ff{constructor(y){ff._registry[y]=this}static createAtom(y,b,E){return ff._registry[y].createAtom(b,yt(b,y),E)}static serialize(y,b){var E;if(!y||y.length===0)return"";if((E=b.skipStyles)!=null&&E){const ee=[];for(const re of td(y)){const le=ff._registry[re[0].mode];ee.push(...le.serialize(re,b))}return Ka(ee)}return Ka(yc(y,b))}static getFont(y,b,E){return ff._registry[y].getFont(b,E)}};Iu._registry={};var Cl=Iu;function td(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 ms(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 Oc(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,re=[];for(const le of td(a)){const me=y.defaultMode;for(const ve of ms(le,"color")){const Ae=ve[0].computedStyle,Pe=Cl._registry[ve[0].mode].serialize(ve,we(xe({},y),{defaultMode:me==="text"?"text":"math"}));!y.skipStyles&&Ae.color&&Ae.color!=="none"&&(!E||ee!==Ae.color)?re.push(Ko("\\textcolor",(b=Ae.verbatimColor)!=null?b:Ae.color,Ka(Pe))):re.push(Ka(Pe))}}return re}function nd(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return ms(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 Ko("\\colorbox",(re=le.verbatimBackgroundColor)!=null?re:le.backgroundColor,Ka(Oc(ee,we(xe({},y),{defaultMode:"text"}))))}return Ka(Oc(ee,y))})}function yc(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 ms(a,"fontSize")){const le=re[0].computedStyle.fontSize,me=nd(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 bc(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 $u(a){if(a.length===0)return"ord";const y=bc(a[0].type),b=bc(a[a.length-1].type);return y&&y===b?y:"ord"}function Lu(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 Kr=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:Ie(y)?this.children=y.filter(Ae=>Ae!==null):y&&y instanceof Ep&&(this.children=[y]),this.children)for(const Ae of this.children)Ae.parent=this;this.type=(E=b==null?void 0:b.type)!=null?E:"ignore",this.isSelected=(b==null?void 0:b.isSelected)===!0,b!=null&&b.caret&&(this.caret=b.caret),this.classes=(ee=b==null?void 0:b.classes)!=null?ee:"",this.isTight=(re=b==null?void 0:b.isTight)!=null?re:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let ve=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(ve=(me=Cl.getFont((le=b.mode)!=null?le:"math",this,we(xe({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?me:void 0),ve||(ve="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,(b==null?void 0:b.maxFontSize)!==void 0&&(this.maxFontSize=b.maxFontSize),mu(this,ve)}set atomID(y){y===void 0||y.length===0||(this.id=y)}selected(y){if(this.isSelected!==y&&(this.isSelected=y,this.children))for(const b of this.children)b.selected(y)}setStyle(y,b,E){if(b===void 0)return;const ee=Lu(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=Lu(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"]=Lu(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"]=Lu(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"]=Lu(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=Bt(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 Yt of this.children)re+=Yt.toMarkup();let le="";if(this.svgBody)le=nu(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 Yt=(b=this.cssProperties)==null?void 0:b.padding;Yt?(le+=`top:${Yt};`,le+=`left:${Yt};`,le+=`width:calc(100% - 2 * ${Yt} );`):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 ve=this.classes.split(" ");ve.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&ve.push("ML__latex-caret"),this.isSelected&&ve.push("ML__selected");const Ae=ve.length===1?ve[0]:ve.filter((Yt,rn,jn)=>Yt.length>0&&jn.indexOf(Yt)===rn).join(" ");if(Ae.length>0&&(me+=` class="${Ae}"`),this.id&&(me+=` data-atom-id=${this.id}`),this.cssId&&(me+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(me+=" "+Object.keys(this.attributes).map(Yt=>`${Yt}="${this.attributes[Yt]}"`).join(" ")),this.htmlData){const Yt=this.htmlData.split(",");for(const rn of Yt){const jn=rn.match(/([^=]+)=(.+$)/);if(jn){const Zr=jn[1].trim().replace(/ /g,"-");Zr&&(me+=` data-${Zr}="${jn[2]}" `)}else{const Zr=rn.trim().replace(/ /g,"-");Zr&&(me+=` data-${Zr} `)}}}const Pe=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&Pe.width===void 0&&(Pe.width=`${Math.ceil(this._width*100)/100}em`);const pt=Object.keys(Pe).map(Yt=>`${Yt}:${Pe[Yt]}`);if(this.scale!==void 0&&this.scale!==1&&(re.length>0||le.length>0)&&pt.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const Yt=this.htmlStyle.split(";");let rn="";for(const jn of Yt){const Zr=jn.match(/([^=]+):(.+$)/);if(Zr){const Rn=Zr[1].trim().replace(/ /g,"-");Rn&&(rn+=`${Rn}:${Zr[2]};`)}}rn&&(me+=` style="${rn}"`)}pt.length>0&&(me+=` style="${pt.join(";")}"`);let Nt="";return me.length>0||le.length>0?Nt=`<span${me}>${re}${le}</span>`:Nt=re,this.caret==="text"?Nt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(Nt+='<span class="ML__caret"></span>'),Nt}tryCoalesceWith(y){if(this.svgBody||!this.value||y.svgBody||!y.value)return!1;const b=this.children&&this.children.length>0,E=y.children&&y.children.length>0;if(b||E)return!1;if(y.cssProperties||this.cssProperties){for(const ve of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&ve in y.cssProperties||this.cssProperties&&ve in this.cssProperties)return!1}const ee=this.cssProperties?Object.keys(this.cssProperties).length:0,re=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ee!==re)return!1;if(ee>0){for(const ve of Object.keys(this.cssProperties))if(this.cssProperties[ve]!==y.cssProperties[ve])return!1}const le=this.classes.trim().replace(/\s+/g," ").split(" "),me=y.classes.trim().replace(/\s+/g," ").split(" ");if(le.length!==me.length)return!1;le.sort(),me.sort();for(const[ve,Ae]of le.entries())if(Ae==="vertical-separator"||Ae!==me[ve])return!1;return this.value+=y.value,this.height=Math.max(this.height,y.height),this.depth=Math.max(this.depth,y.depth),this._width=this._width+y._width,this.maxFontSize=Math.max(this.maxFontSize,y.maxFontSize),this.italic=y.italic,!0}};function _c(a){if(!a||a.length===0)return[];a[0].children=_c(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=_c(a[b].children),y.push(a[b]));return y}function xc(a){return a.children&&(a.children=_c(a.children)),a}function Sc(a,y){if(!a)return new Kr(null,y);const b=new Kr(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 Kr(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 Kr(E,we(xe({},y),{type:"lift"}))}function Tl(a){const y=vc(a)/2,b=new Kr(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function mu(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=Qs(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 Ku(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],ve=-me.shift-re-me.box.depth,Ae=ve-(b.box.height+b.box.depth);re=re+ve,E.push(Ae),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 Nu(a){var y;const[b,E]=Ku(a);if(!b)return[[],0,0];const ee=new Kr(null,{classes:"pstrut"});let re=0;for(const rn of b)if(typeof rn!="number"){const jn=rn.box;re=Math.max(re,jn.maxFontSize,jn.height)}re+=2,ee.height=re,ee.setStyle("height",re,"em");const le=[];let me=E,ve=E,Ae=E,Pe=0;for(const rn of b){if(typeof rn=="number")Ae+=rn;else{const jn=rn.box,Zr=(y=rn.classes)!=null?y:[],Rn=new Kr([ee,jn],{classes:Zr.join(" "),style:rn.style});jn.setStyle("height",jn.height+jn.depth,"em"),jn.setStyle("display","inline-block"),Rn.setStyle("top",-re-Ae-jn.depth,"em"),rn.marginLeft&&Rn.setStyle("margin-left",rn.marginLeft,"em"),rn.marginRight&&Rn.setStyle("margin-right",rn.marginRight,"em"),le.push(Rn),Ae+=jn.height+jn.depth,Pe=Math.max(Pe,Rn.width)}me=Math.min(me,Ae),ve=Math.max(ve,Ae)}le.forEach(rn=>{rn.softWidth=Pe});const pt=new Kr(le,{classes:"vlist"});if(pt.softWidth=Pe,pt.height=ve,pt.setStyle("height",ve,"em"),me>=0)return[[new Kr(pt,{classes:"vlist-r"})],ve,-me];const Nt=new Kr(new Kr(null),{classes:"vlist"});Nt.height=-me,Nt.setStyle("height",-me,"em");const Yt=new Kr(8203,{classes:"vlist-s",maxFontSize:0});return Yt.softWidth=0,Yt.height=0,Yt.depth=0,[[new Kr([pt,Yt],{classes:"vlist-r"}),new Kr(Nt,{classes:"vlist-r"})],ve,-me]}var Po=class extends Kr{constructor(a,y){var b;const[E,ee,re]=Nu(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 rd(a,y){var b,E,ee,re,le;const me=a.metrics,ve=new Kr(y.base),Ae=(b=y.baseShift)!=null?b:0,Pe=(E=y.slant)!=null?E:0;let pt=0,Nt=0;y.above&&(pt=(ee=y.aboveShift)!=null?ee:Math.max(me.bigOpSpacing1,me.bigOpSpacing3-y.above.depth)),y.below&&(Nt=(re=y.belowShift)!=null?re:Math.max(me.bigOpSpacing2,me.bigOpSpacing4-y.below.height));let Yt=null;if(y.below&&y.above){const rn=me.bigOpSpacing5+y.below.height+y.below.depth+Nt+ve.depth+Ae;Yt=new Po({bottom:rn,children:[me.bigOpSpacing5,{box:y.below,marginLeft:-Pe,classes:["ML__center"]},Nt,{box:ve,classes:["ML__center"]},pt,{box:y.above,marginLeft:Pe,classes:["ML__center"]},me.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)Yt=new Po({top:ve.height-Ae,children:[me.bigOpSpacing5,{box:y.below,marginLeft:-Pe,classes:["ML__center"]},Nt,{box:ve,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const rn=ve.depth+Ae;Yt=new Po({bottom:rn,children:[{box:ve,classes:["ML__center"]},pt,{box:y.above,marginLeft:Pe,classes:["ML__center"]},me.bigOpSpacing5]}).wrap(a)}else{const rn=ve.depth+Ae;Yt=new Po({bottom:rn,children:[{box:ve},me.bigOpSpacing5]}).wrap(a)}return new Kr(Yt,{type:(le=y.type)!=null?le:"op"})}var Cc=7,Yl=6,sc=5,ru=4,iu=3,nl=2,wl=1,Ws=0,Ql=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(tl).reduce((ee,re)=>we(xe({},ee),{[re]:tl[re][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return oo[[Ws,wl,Ws,wl,nl,iu,nl,iu][this.id]]}get sub(){return oo[[Ws,Ws,Ws,Ws,nl,nl,nl,nl][this.id]]}get fracNum(){return oo[[Ws,wl,Ws,wl,nl,iu,ru,sc][this.id]]}get fracDen(){return oo[[Ws,Ws,Ws,Ws,nl,nl,ru,ru][this.id]]}get cramp(){return oo[[Ws,Ws,nl,nl,ru,ru,Yl,Yl][this.id]]}get isTight(){return this.sizeDelta<0}},Wa={7:new Ql(Cc,0,!1),6:new Ql(Yl,0,!0),5:new Ql(sc,0,!1),4:new Ql(ru,0,!0),3:new Ql(iu,-3,!1),2:new Ql(nl,-3,!0),1:new Ql(wl,-4,!1),0:new Ql(Ws,-4,!0)},oo=we(xe({},Wa),{displaystyle:Wa[Cc],textstyle:Wa[sc],scriptstyle:Wa[iu],scriptscriptstyle:Wa[wl]});function rl(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:el,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=ac(10,y);return Math.round(a.dimension/el*E*ee)/ee}return a.dimension*E}function Jl(a,y){if(a===null)return 0;const b=rl(a)/el;if(Number.isFinite(y)){const E=ac(10,y);return Math.round(b*E)/E}return b}function Xl(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function Pc(a){let y=Xl(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${Xl(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${Xl(a.shrink)}`),y}function gs(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=Pc(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 Bl(a,y){return a==null?null:"number"in a?we(xe({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?we(xe({},a),{factor:a.factor*y}):we(xe({},a),{factor:y}):"dimension"in a?we(xe({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:Bl(a.glue,y),shrink:Bl(a.shrink,y),grow:Bl(a.grow,y)}:a.shrink?{glue:Bl(a.glue,y),shrink:Bl(a.shrink,y)}:a.grow?{glue:Bl(a.glue,y),grow:Bl(a.grow,y)}:{glue:Bl(a.glue,y)}:null}var Rc={"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 gu(){return xe({},Rc)}function id(){return{registers:gu(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:ut.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:dt,backgroundColorMap:Be,getMacro:a=>jt(a,on())}}var qa=class Mp{constructor(y,b){var E,ee,re,le,me,ve,Ae,Pe,pt,Nt,Yt,rn,jn,Zr,Rn;let fr;y!=null&&y.parent?(this.parent=y.parent,fr=y.parent,this.registers={}):(fr=xe(xe({},id()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=fr.registers),fr.atomIdsSettings&&(this.atomIdsSettings=xe({},fr.atomIdsSettings)),this.renderPlaceholder=fr.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=fr.letterShapeStyle,this.minFontScale=fr.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(ve=(me=this.parent)==null?void 0:me.color)!=null?ve:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(Pe=(Ae=this.parent)==null?void 0:Ae.backgroundColor)!=null?Pe:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((pt=this.parent)==null?void 0:pt.size)?this.size=b.fontSize:this.size=(Yt=(Nt=this.parent)==null?void 0:Nt.size)!=null?Yt:zo;let qr=(jn=(rn=this.parent)==null?void 0:rn.mathstyle)!=null?jn:oo.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(fr instanceof Mp)switch(y.mathstyle){case"cramp":qr=qr.cramp;break;case"superscript":qr=qr.sup;break;case"subscript":qr=qr.sub;break;case"numerator":qr=qr.fracNum;break;case"denominator":qr=qr.fracDen;break}switch(y.mathstyle){case"textstyle":qr=oo.textstyle;break;case"displaystyle":qr=oo.displaystyle;break;case"scriptstyle":qr=oo.scriptstyle;break;case"scriptscriptstyle":qr=oo.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=qr,this.smartFence=fr.smartFence,this.placeholderSymbol=fr.placeholderSymbol,this.colorMap=(Zr=fr.colorMap)!=null?Zr:Sr=>Sr,this.backgroundColorMap=(Rn=fr.backgroundColorMap)!=null?Rn:Sr=>Sr,this.getMacro=fr.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===Cc||this.mathstyle.id===Yl}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(Hs[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 Jl(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?we(xe({},re),{dimension:E*re.dimension}):"glue"in re?we(xe({},re),{glue:we(xe({},re.glue),{dimension:E*re.glue.dimension}),shrink:re.shrink?we(xe({},re.shrink),{dimension:E*re.shrink.dimension}):void 0,grow:re.grow?we(xe({},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:rl(E,b)/el}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}},wc=["body","above","below","superscript","subscript"];function Tu(a){return typeof a=="string"&&wc.includes(a)}function Fc(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var er=class hc{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=xe({},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 ve of re){const Ae=ve[0].style,Pe=pf(y,ve,{style:{color:Ae.color,backgroundColor:Ae.backgroundColor,fontSize:Ae.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 Kr(le,{classes:me,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return Cl.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 hc({type:"mord",value:y,mode:"math"}):new hc(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=xe({},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=Nd(this.args)),this._branches)for(const b of Object.keys(this._branches))this._branches[b]&&(y[b]=this._branches[b].filter(E=>E.type!=="first").map(E=>E.toJson()));return y.type==="mord"&&Object.keys(y).length===2&&"value"in y?y.value:y}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(y){if(y){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:b}=this;for(;b;)b.parent||b._changeCounter++,"verbatimLatex"in b&&(b.verbatimLatex=void 0),b._children=void 0,b=b.parent}}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=yt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?Ka([Ko(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?Ka([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Cl.serialize(this.body,we(xe({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Cl.serialize(this.above,y)}belowToLatex(y){return Cl.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=we(xe({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=Cl.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=Cl.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(Tu(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of wc)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(Tu(y)),Tu(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 Fc(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Fc(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=xe(xe({},(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=xe(xe({},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(Tu(b)),!Tu(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 hc({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(Tu(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 wc)if(this._branches[b])for(const E of this._branches[b])y.push(...E.children),y.push(E);return this._children=y,y}render(y){if(this.type==="first"&&!y.atomIdsSettings)return null;const b=yt(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new qa({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,ve=null;const Ae=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let Pe=0;if(re){const jn=new qa({parent:y,mathstyle:"superscript"});me=hc.createBox(jn,re),Ae||(Pe=ee.height-y.metrics.supDrop*jn.scalingFactor)}let pt=0;if(le){const jn=new qa({parent:y,mathstyle:"subscript"});ve=hc.createBox(jn,le),Ae||(pt=ee.depth+y.metrics.subDrop*jn.scalingFactor)}let Nt;y.isDisplayStyle?Nt=y.metrics.sup1:y.isCramped?Nt=y.metrics.sup3:Nt=y.metrics.sup2;const Yt=.5/el/y.scalingFactor;let rn=null;if(ve&&me){Pe=Math.max(Pe,Nt,me.depth+.25*y.metrics.xHeight),pt=Math.max(pt,y.metrics.sub2);const jn=y.metrics.defaultRuleThickness;if(Pe-me.depth-(ve.height-pt)<4*jn){pt=4*jn-(Pe-me.depth)+ve.height;const Rn=.8*y.metrics.xHeight-(Pe-me.depth);Rn>0&&(Pe+=Rn,pt-=Rn)}const Zr=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;rn=new Po({individualShift:[{box:ve,shift:pt,marginLeft:Zr},{box:me,shift:-Pe}]}).wrap(y)}else ve&&!me?(pt=Math.max(pt,y.metrics.sub1,ve.height-.8*Fs),rn=new Po({shift:pt,children:[{box:ve,marginRight:Yt,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!ve&&me&&(Pe=Math.max(Pe,Nt,me.depth+.25*Fs),rn=new Po({shift:-Pe,children:[{box:me,marginRight:Yt}]}));return new Kr([ee,new Kr(rn,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?hc.createBox(new qa({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?hc.createBox(new qa({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):rd(y,we(xe({},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,ve=(ee=b==null?void 0:b.boxType)!=null?ee:bc(this.type);let Ae=(re=b==null?void 0:b.classes)!=null?re:"";this.mode==="text"&&(Ae+=" ML__text");const Pe=typeof me=="string"||me===void 0?new Kr(me!=null?me:null,{type:ve,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:we(xe({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:Ae}):(le=hc.createBox(y,me,{type:ve,classes:Ae}))!=null?le:new Kr(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 ve=new qa({parent:a},b.style),Ae=!((E=ve.atomIdsSettings)!=null&&E.groupNumbers);let Pe=[];if(y.length===1){const Nt=y[0],Yt=Nt.render(ve);Yt&&(Ae&&Nt.isSelected&&Yt.selected(!0),Pe=[Yt])}else{let Nt="",Yt=!0;for(const rn of y){(ee=ve.atomIdsSettings)!=null&&ee.groupNumbers&&Nt&&(Yt&&rn.isDigit()||!Yt&&Ld(rn))&&(ve.atomIdsSettings.overrideID=Nt);const jn=rn.render(ve);ve.atomIdsSettings&&(ve.atomIdsSettings.overrideID=void 0),jn&&((re=ve.atomIdsSettings)!=null&&re.groupNumbers&&((rn.isDigit()||Ld(rn))&&(!Nt||Yt!==rn.isDigit())&&(Yt=rn.isDigit(),Nt=(le=rn.id)!=null?le:""),Nt&&(!(rn.isDigit()||Ld(rn))||!rn.hasEmptyBranch("superscript")||!rn.hasEmptyBranch("subscript"))&&(Nt="")),Ae&&rn.isSelected&&jn.selected(!0),Pe.push(jn))}}if(Pe.length===0)return null;const pt=new Kr(Pe,we(xe({isTight:ve.isTight},b),{type:(me=b.type)!=null?me:"lift"}));return pt.isSelected=Pe.every(Nt=>Nt.isSelected),pt.wrap(ve)}function Ld(a){return a.mode==="text"}function Nd(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof er?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var Bu=class Ap extends er{constructor(y,b,E){super({type:"text",command:y,mode:"text",displayContainsHighlight:!0}),this.value=b,this.verbatimLatex=b,this.applyStyle(E)}static fromJson(y){return new Ap(y.command,y.value,y.style)}render(y){const b=this.createBox(y);return this.caret&&(b.caret=this.caret),b}_serialize(y){var b;return(b=this.verbatimLatex)!=null?b:Zt("text",this.value.codePointAt(0))}};function zc(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&i0(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function i0(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function ll(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 Zu(a){return typeof a=="number"&&!Number.isNaN(a)}function ad(a){return Array.isArray(a)&&a.length===2}function od(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function a0(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,ve=!1,Ae=!1,Pe=!1,pt=!1,Nt=!1,Yt=!1,rn=!1,jn=!1,Zr=!1,Rn=a[0],fr=0;for(;Rn!=null&&Rn.type&&/^(subsup|placeholder)$/.test(Rn.type);)fr+=1,Rn=a[fr];return b=!Rn||Rn.type==="first",Rn&&(jn=Rn.mode==="text",E=!jn&&Rn.type==="mord"&&de.test(Rn.value),ee=!jn&&Rn.type==="mord"&&/\d+$/.test(Rn.value),re=!jn&&Rn.isFunction,le=Rn.type==="genfrac",me=Rn.type==="surd",ve=Rn.type==="mbin",Ae=Rn.type==="mrel",Pe=Rn.type==="mop"||Rn.type==="operator"||Rn.type==="extensible-symbol",pt=Rn.type==="mpunct"||Rn.type==="minner",Nt=Rn.type==="array",Yt=Rn.type==="mopen",rn=Rn.type==="mclose"||Rn.type==="leftright",Zr=Rn.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")&&ve||y.after.includes("relop")&&Ae||y.after.includes("operator")&&Pe||y.after.includes("punct")&&pt||y.after.includes("array")&&Nt||y.after.includes("openfence")&&Yt||y.after.includes("closefence")&&rn||y.after.includes("text")&&jn||y.after.includes("space")&&Zr?y.value:""}function Td(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 jc(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",ml(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function ml(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=Hu(a.slice(1),{inlineShortcuts:me,noWrap:!0}),a=a[0]+"{"+le.match+"}",a+=ml(le.rest,y),re=!0),re||(le=a.match(/^(sqrt|\u221A)(.*)/),le&&(le=Hu(le[2],{inlineShortcuts:me,noWrap:!0}),a="\\sqrt{"+((E=le.match)!=null?E:"\\placeholder{}")+"}",a+=ml(le.rest,y),re=!0)),re||(le=a.match(/^(\\cbrt|\u221B)(.*)/),le&&(le=Hu(le[2],{inlineShortcuts:me,noWrap:!0}),a="\\sqrt[3]{"+((ee=le.match)!=null?ee:"\\placeholder{}")+"}",a+=ml(le.rest,y),re=!0)),re||(le=a.match(/^abs(.*)/),le&&(le=Hu(le[1],{inlineShortcuts:me,noWrap:!0}),a="\\left|"+le.match+"\\right|",a+=ml(le.rest,y),re=!0)),re||(le=a.match(/^["”“](.*?)["”“](.*)/),le&&(a="\\text{"+le[1]+"}",a+=ml(le[2],y),re=!0)),re||(le=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),le&&(a=vf(le[1],me),a+=ml(le[2],y),re=!0)),!re&&/^([fgh])[^a-zA-Z]/.test(a)&&(le=Hu(a.slice(1),{inlineShortcuts:me,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+le.match+"\\right)":a[0]+le.match,a+=ml(le.rest,y),re=!0),re||(le=a.match(/^([a-zA-Z]+)(.*)/),le&&(a=vf(le[1],me),a+=ml(le[2],y),re=!0)),!re)if(le=Hu(a,{inlineShortcuts:me,noWrap:!0}),le.match&&le.rest[0]==="/"){const ve=Hu(le.rest.slice(1),{inlineShortcuts:me,noWrap:!0});ve.match&&(a="\\frac{"+le.match+"}{"+ve.match+"}"+ml(ve.rest,y)),re=!0}else le.match&&(a=a.startsWith("(")?"\\left("+le.match+"\\right)"+ml(le.rest,y):le.match+ml(le.rest,y),re=!0);return re||(le=a.match(/^(\s+)(.*)$/),le&&(a=" "+ml(le[2],y),re=!0)),a}function Hu(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=ml(a.substring(1,me-1),y):(ee==="{"&&re==="}"&&(ee="\\{",re="\\}"),b="\\left"+ee+ml(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=Td(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=Td(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var Bd=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Wu(a){const y=a.trim();for(const b of Bd)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]=Wu(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 sd="$$",o0="$$",s0=(a,y,b)=>(Bd.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${sd} ${y} ${o0}`),y),bf=class r0{constructor(y){r0._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)?r0._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]:ll(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]:ll(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 Bu).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 ve;return(ve=me.value)!=null?ve:""}).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(ve){}if(le.length===1){const ve=le[0];(ve.type==="root"||ve.type==="group")&&(le=ve.body.filter(Ae=>Ae.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(le.map(ve=>ve.toJson())))}catch(ve){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const ve=window.MathfieldElement.computeEngine;if(ve)try{const Ae=ve.jsonSerializationOptions;ve.jsonSerializationOptions={metadata:["latex"]};const Pe=ve.parse(ee.getValue(re,"latex-unstyled"));ve.jsonSerializationOptions=Ae;const pt=JSON.stringify(Pe.json);pt&&b.clipboardData.setData("application/json",pt)}catch(Ae){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const re=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return r0._modes[re].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};bf._modes={};var Ia=bf,l0=[{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 au(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function ou(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 Uu(a){const y=ou(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function _d(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 Pd(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 Rd(a){const y=a.getBoundingClientRect(),b=parseInt(getComputedStyle(a).marginRight),E={top:y.top-1,bottom:y.bottom,left:y.left,right:y.right-1+b};if(a.children.length===0||a.tagName.toUpperCase()==="SVG")return E;for(const ee of a.children)if(ee.nodeType===1&&"atomId"in ee.dataset&&!ee.classList.contains("pstrut")){const re=Rd(ee);E.left=Math.min(E.left,re.left),E.right=Math.max(E.right,re.right),E.top=Math.min(E.top,re.top),E.bottom=Math.max(E.bottom,re.bottom)}return E}function Ec(a,y){var b,E;if(!y.id)return null;let ee=(E=(b=a.atomBoundsCache)==null?void 0:b.get(y.id))!=null?E:null;if(ee!==null)return ee;const re=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ee=re?Rd(re):null,a.atomBoundsCache&&(ee?a.atomBoundsCache.set(y.id,ee):a.atomBoundsCache.delete(y.id)),ee!=null?ee:null}function xf(a,y,b){const E=new Map;for(const ee of a.model.getAtoms(y,{includeChildren:!0})){if(b!=null&&b.excludeAtomsWithBackground&&ee.style.backgroundColor)continue;const re=a.field,le=re.offsetWidth;let ve=Math.floor(re.getBoundingClientRect().width)/le;ve=isNaN(ve)?1:ve;const Ae=Pd(a,Ec(a,ee),ve);if(Ae){const Pe=_d(ee);if(E.has(Pe)){const pt=E.get(Pe);E.set(Pe,{left:Math.min(pt.left,Ae.left),right:Math.max(pt.right,Ae.right),top:Math.min(pt.top,Ae.top),bottom:Math.max(pt.bottom,Ae.bottom)})}else E.set(Pe,Ae)}}return[...E.values()]}function Fd(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...xf(a,E,y)),[])}function zd(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function ld(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 Sf=`@keyframes ML__caret-blink {
|
|
|
0%,
|
|
|
100% {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
50% {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
}
|
|
|
.ML__container {
|
|
|
display: inline-flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
align-items: flex-end;
|
|
|
min-height: 39px;
|
|
|
/* Need some room for the virtual keyboard toggle */
|
|
|
width: 100%;
|
|
|
/* Encourage browsers to consider allocating a hardware accelerated
|
|
|
layer for this element. */
|
|
|
isolation: isolate;
|
|
|
/* Prevent the browser from trying to interpret touch gestures in the field */
|
|
|
/* "Disabling double-tap to zoom removes the need for browsers to
|
|
|
delay the generation of click events when the user taps the screen." */
|
|
|
touch-action: none;
|
|
|
--_caret-color: var(--caret-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_selection-color: var(--selection-color, #000);
|
|
|
--_selection-background-color: var(--selection-background-color, hsl(var(--_hue), 70%, 85%));
|
|
|
--_text-highlight-background-color: var(--highlight-text, hsla(var(--_hue), 40%, 50%, 0.1));
|
|
|
--_contains-highlight-background-color: var(--contains-highlight-background-color, hsl(var(--_hue), 40%, 95%));
|
|
|
--_smart-fence-color: var(--smart-fence-color, currentColor);
|
|
|
--_smart-fence-opacity: var(--smart-fence-opacity, 0.5);
|
|
|
--_latex-color: var(--latex-color, hsl(var(--_hue), 80%, 40%));
|
|
|
--_correct-color: var(--correct-color, #10a000);
|
|
|
--_incorrect-color: var(--incorrect-color, #a01b00);
|
|
|
--_composition-background-color: var(--composition-background-color, #fff1c2);
|
|
|
--_composition-text-color: var(--composition-text-color, black);
|
|
|
--_composition-underline-color: var(--composition-underline-color, transparent);
|
|
|
}
|
|
|
/* This is the actual field content (formula) */
|
|
|
.ML__content {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
align-self: center;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
padding: 2px 3px 2px 1px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle,
|
|
|
.ML__menu-toggle {
|
|
|
box-sizing: border-box;
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
flex-shrink: 0;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
width: 34px;
|
|
|
height: 34px;
|
|
|
padding: 0;
|
|
|
margin-right: 4px;
|
|
|
cursor: pointer;
|
|
|
/* Avoid some weird blinking with :hover */
|
|
|
border-radius: 8px;
|
|
|
border: 1px solid transparent;
|
|
|
transition: background 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
color: hsl(var(--_hue), 40%, 50%);
|
|
|
fill: currentColor;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:hover,
|
|
|
.ML__menu-toggle:hover {
|
|
|
background: hsla(0, 0%, 70%, 0.3);
|
|
|
color: #333;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle > span,
|
|
|
.ML__menu-toggle > span {
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
}
|
|
|
/* The invisible element used to capture keyboard events. We're just trying
|
|
|
really hard to make sure it doesn't show. */
|
|
|
.ML__keyboard-sink {
|
|
|
display: inline-block;
|
|
|
resize: none;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
/* Need these for Microsoft Edge */
|
|
|
position: fixed;
|
|
|
clip: rect(0 0 0 0);
|
|
|
/* Need this to prevent iOS Safari from auto-zooming */
|
|
|
font-size: 1em;
|
|
|
font-family: KaTeX_Main;
|
|
|
line-height: 0.5;
|
|
|
/* On Chromium, if this is 0, no keyboard events are received */
|
|
|
}
|
|
|
[part="placeholder"] {
|
|
|
color: var(--neutral-400);
|
|
|
}
|
|
|
.ML__composition {
|
|
|
background: var(--_composition-background-color);
|
|
|
color: var(--_composition-text-color);
|
|
|
text-decoration: underline var(--_composition-underline-color);
|
|
|
}
|
|
|
.ML__caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__text-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__latex-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_latex-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.019em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__focused .ML__latex-caret::after,
|
|
|
.ML__focused .ML__text-caret::after,
|
|
|
.ML__focused .ML__caret::after {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.ML__focused .ML__text {
|
|
|
background: var(--_text-highlight-background-color);
|
|
|
}
|
|
|
/* When using smartFence, the anticipated closing fence is displayed
|
|
|
with this style */
|
|
|
.ML__smart-fence__close {
|
|
|
opacity: var(--_smart-fence-opacity);
|
|
|
color: var(--_smart-fence-color);
|
|
|
}
|
|
|
.ML__selected,
|
|
|
.ML__focused .ML__selected .ML__contains-caret,
|
|
|
.ML__focused .ML__selected .ML__smart-fence__close,
|
|
|
.ML__focused .ML__selected .ML__placeholder {
|
|
|
color: var(--_selection-color);
|
|
|
opacity: 1;
|
|
|
}
|
|
|
.ML__selection {
|
|
|
box-sizing: border-box;
|
|
|
background: var(--_selection-background-color) !important;
|
|
|
}
|
|
|
.ML__contains-caret.ML__close,
|
|
|
.ML__contains-caret.ML__open,
|
|
|
.ML__contains-caret > .ML__close,
|
|
|
.ML__contains-caret > .ML__open,
|
|
|
.ML__contains-caret .ML__sqrt-sign,
|
|
|
.ML__contains-caret .ML__sqrt-line {
|
|
|
color: var(--_caret-color);
|
|
|
}
|
|
|
.ML__contains-highlight {
|
|
|
box-sizing: border-box;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__focused .ML__contains-highlight {
|
|
|
background: var(--_contains-highlight-background-color);
|
|
|
}
|
|
|
.ML__raw-latex {
|
|
|
font-family: 'Berkeley Mono', 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
font-weight: 400;
|
|
|
font-size: 0.8em;
|
|
|
letter-spacing: -0.05em;
|
|
|
color: var(--_latex-color);
|
|
|
}
|
|
|
.ML__suggestion {
|
|
|
color: var(--neutral-500);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-visible.is-pressed:hover {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:focus {
|
|
|
outline: none;
|
|
|
border-radius: 8px;
|
|
|
border: 2px solid hsl(var(--_hue), 40%, 50%);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-pressed,
|
|
|
.ML__virtual-keyboard-toggle.is-active:hover,
|
|
|
.ML__virtual-keyboard-toggle.is-active {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to automatically show a
|
|
|
tooltip over a element on hover.
|
|
|
*/
|
|
|
[data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
[data-tooltip]::after {
|
|
|
content: attr(data-tooltip);
|
|
|
position: absolute;
|
|
|
display: block;
|
|
|
z-index: 2;
|
|
|
pointer-events: none;
|
|
|
right: auto;
|
|
|
top: calc(-100% - 4px);
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
border-radius: 4px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
text-align: center;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-style: normal;
|
|
|
font-weight: 400;
|
|
|
font-size: 13px;
|
|
|
/* Phone */
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
@media only screen and (max-width: 767px) {
|
|
|
[data-tooltip]::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
}
|
|
|
menu [data-tooltip]::after {
|
|
|
left: 100%;
|
|
|
top: 0%;
|
|
|
}
|
|
|
menu .ML__base {
|
|
|
cursor: default;
|
|
|
}
|
|
|
/** Don't display if we're tracking, i.e. have the pointer down */
|
|
|
.tracking [data-tooltip]:hover::after {
|
|
|
/* Use visibility, not display. Display will remove the after from the DOM, and the override below will not work */
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
/** But do display if tracking and inside a menu */
|
|
|
.tracking menu li[data-tooltip]:hover::after,
|
|
|
[data-tooltip]:hover::after {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
transition-property: opacity, scale;
|
|
|
transition-duration: 0.15s;
|
|
|
transition-delay: 1s;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__prompt {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.ML__editablePromptBox {
|
|
|
outline: 1px solid #acacac;
|
|
|
border-radius: 2px;
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__focusedPromptBox {
|
|
|
outline: highlight auto 1px;
|
|
|
}
|
|
|
.ML__lockedPromptBox {
|
|
|
background-color: rgba(142, 142, 141, 0.4);
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__correctPromptBox {
|
|
|
outline: 1px solid var(--_correct-color);
|
|
|
box-shadow: 0 0 5px var(--_correct-color);
|
|
|
}
|
|
|
.ML__incorrectPromptBox {
|
|
|
outline: 1px solid var(--_incorrect-color);
|
|
|
box-shadow: 0 0 5px var(--_incorrect-color);
|
|
|
}
|
|
|
.variant-submenu {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
padding: 8px;
|
|
|
}
|
|
|
.variant-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
text-align: center;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.insert-matrix-submenu {
|
|
|
display: grid;
|
|
|
padding: 8px;
|
|
|
align-content: center;
|
|
|
justify-content: center;
|
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
|
}
|
|
|
.insert-matrix-submenu [part=menu-item] {
|
|
|
font-size: 21px;
|
|
|
border: none;
|
|
|
border-radius: 0;
|
|
|
line-height: 21px;
|
|
|
text-align: center;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.border-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
line-height: 1.2;
|
|
|
text-align: center;
|
|
|
}
|
|
|
.swatches-submenu {
|
|
|
--_swatch-size: 2rem;
|
|
|
--_columns: 4;
|
|
|
display: flex;
|
|
|
flex-flow: wrap;
|
|
|
padding: 8px;
|
|
|
max-width: calc(var(--_columns) * (var(--_swatch-size) + 18px) + 16px);
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.menu-swatch {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
box-sizing: border-box;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
margin: 2px;
|
|
|
padding: 0;
|
|
|
background: var(--neutral-200);
|
|
|
}
|
|
|
.menu-swatch > .label {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
.menu-swatch > .label > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
min-width: var(--_swatch-size);
|
|
|
min-height: var(--_swatch-size);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.menu-swatch.active {
|
|
|
background: var(--neutral-100);
|
|
|
scale: 1.4;
|
|
|
}
|
|
|
.menu-swatch.active > .label > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.menu-swatch .ui-checkmark,
|
|
|
.menu-swatch .ui-mixedmark {
|
|
|
position: absolute;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
color: white;
|
|
|
}
|
|
|
.menu-swatch.dark-contrast .ui-checkmark,
|
|
|
.menu-swatch.dark-contrast .ui-mixedmark {
|
|
|
color: #000;
|
|
|
}
|
|
|
`,Zo=`.ML__container {
|
|
|
min-height: auto !important;
|
|
|
--_hue: var(--hue, 212);
|
|
|
--_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_placeholder-opacity: var(--placeholder-opacity, 0.4);
|
|
|
--_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
|
|
|
}
|
|
|
.ML__sr-only {
|
|
|
position: absolute;
|
|
|
width: 1px;
|
|
|
height: 1px;
|
|
|
margin: -1px;
|
|
|
padding: 0;
|
|
|
overflow: hidden;
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
clip-path: inset(50%);
|
|
|
white-space: nowrap;
|
|
|
border: 0;
|
|
|
}
|
|
|
.ML__is-inline {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__base {
|
|
|
visibility: inherit;
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
cursor: text;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
box-sizing: content-box;
|
|
|
border: 0;
|
|
|
outline: 0;
|
|
|
vertical-align: baseline;
|
|
|
font-weight: inherit;
|
|
|
font-family: inherit;
|
|
|
font-style: inherit;
|
|
|
text-decoration: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__strut,
|
|
|
.ML__strut--bottom {
|
|
|
display: inline-block;
|
|
|
min-height: 0.5em;
|
|
|
}
|
|
|
.ML__small-delim {
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
/* Text mode */
|
|
|
.ML__text {
|
|
|
font-family: var(--_text-font-family);
|
|
|
white-space: pre;
|
|
|
}
|
|
|
/* Use cmr for 'math upright' */
|
|
|
.ML__cmr {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-style: normal;
|
|
|
}
|
|
|
.ML__mathit {
|
|
|
font-family: KaTeX_Math;
|
|
|
/* The KaTeX_Math font is italic by default, so the font-style below is only
|
|
|
useful when a fallback font is used
|
|
|
*/
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__mathbf {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
/* Lowercase greek symbols should stick to math font when \\mathbf is applied
|
|
|
to match TeX idiosyncratic behavior */
|
|
|
.lcGreek.ML__mathbf {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: normal;
|
|
|
}
|
|
|
.ML__mathbfit {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: bold;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__ams {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
/* Blackboard */
|
|
|
.ML__bb {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
.ML__cal {
|
|
|
font-family: KaTeX_Caligraphic;
|
|
|
}
|
|
|
.ML__frak {
|
|
|
font-family: KaTeX_Fraktur;
|
|
|
}
|
|
|
.ML__tt {
|
|
|
font-family: KaTeX_Typewriter;
|
|
|
}
|
|
|
.ML__script {
|
|
|
font-family: KaTeX_Script;
|
|
|
}
|
|
|
.ML__sans {
|
|
|
font-family: KaTeX_SansSerif;
|
|
|
}
|
|
|
.ML__series_ul {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_el {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_l {
|
|
|
font-weight: 200;
|
|
|
}
|
|
|
.ML__series_sl {
|
|
|
font-weight: 300;
|
|
|
}
|
|
|
.ML__series_sb {
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
.ML__bold,
|
|
|
.ML__boldsymbol {
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
.ML__series_eb {
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
.ML__series_ub {
|
|
|
font-weight: 900;
|
|
|
}
|
|
|
.ML__series_uc {
|
|
|
font-stretch: ultra-condensed;
|
|
|
}
|
|
|
.ML__series_ec {
|
|
|
font-stretch: extra-condensed;
|
|
|
}
|
|
|
.ML__series_c {
|
|
|
font-stretch: condensed;
|
|
|
}
|
|
|
.ML__series_sc {
|
|
|
font-stretch: semi-condensed;
|
|
|
}
|
|
|
.ML__series_sx {
|
|
|
font-stretch: semi-expanded;
|
|
|
}
|
|
|
.ML__series_x {
|
|
|
font-stretch: expanded;
|
|
|
}
|
|
|
.ML__series_ex {
|
|
|
font-stretch: extra-expanded;
|
|
|
}
|
|
|
.ML__series_ux {
|
|
|
font-stretch: ultra-expanded;
|
|
|
}
|
|
|
.ML__it {
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__shape_ol {
|
|
|
-webkit-text-stroke: 1px black;
|
|
|
text-stroke: 1px black;
|
|
|
color: transparent;
|
|
|
}
|
|
|
.ML__shape_sc {
|
|
|
font-variant: small-caps;
|
|
|
}
|
|
|
.ML__shape_sl {
|
|
|
font-style: oblique;
|
|
|
}
|
|
|
/* First level emphasis */
|
|
|
.ML__emph {
|
|
|
color: #bc2612;
|
|
|
}
|
|
|
/* Second level emphasis */
|
|
|
.ML__emph .ML__emph {
|
|
|
color: #0c7f99;
|
|
|
}
|
|
|
.ML__highlight {
|
|
|
color: #007cb2;
|
|
|
background: #edd1b0;
|
|
|
}
|
|
|
.ML__center {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__label_padding {
|
|
|
padding: 0 0.5em;
|
|
|
}
|
|
|
.ML__frac-line {
|
|
|
width: 100%;
|
|
|
min-height: 1px;
|
|
|
}
|
|
|
.ML__frac-line:after {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: max(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
/* There's a bug since Chrome 62 where
|
|
|
sub-pixel border lines don't draw at some zoom
|
|
|
levels (110%, 90%).
|
|
|
Setting the min-height used to work around it, but that workaround
|
|
|
broke in Chrome 84 or so.
|
|
|
Setting the background (and the min-height) seems to work for now.
|
|
|
*/
|
|
|
background: currentColor;
|
|
|
box-sizing: content-box;
|
|
|
/* Vuetify sets the box-sizing to inherit
|
|
|
causes the fraction line to not draw at all sizes (see #26) */
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__sqrt-sign {
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__sqrt-line {
|
|
|
display: inline-block;
|
|
|
height: max(1px, 0.04em);
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__sqrt-line:before {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: min(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
background: currentColor;
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt-line:after {
|
|
|
border-bottom-width: 1px;
|
|
|
content: ' ';
|
|
|
display: block;
|
|
|
margin-top: -0.1em;
|
|
|
}
|
|
|
.ML__sqrt-index {
|
|
|
margin-left: 0.27777778em;
|
|
|
margin-right: -0.55555556em;
|
|
|
}
|
|
|
.ML__delim-size1 {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-size2 {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__delim-size3 {
|
|
|
font-family: KaTeX_Size3;
|
|
|
}
|
|
|
.ML__delim-size4 {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size1 > span {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size4 > span {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__accent-body > span {
|
|
|
font-family: KaTeX_Main;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__accent-vec {
|
|
|
position: relative;
|
|
|
left: 0.24em;
|
|
|
}
|
|
|
/** The markup for a LaTeX formula, either in an editable mathfield or
|
|
|
in a static display.
|
|
|
*/
|
|
|
.ML__latex {
|
|
|
display: inline-block;
|
|
|
direction: ltr;
|
|
|
text-align: left;
|
|
|
text-indent: 0;
|
|
|
text-rendering: auto;
|
|
|
font-family: KaTeX_Main, 'Times New Roman', serif;
|
|
|
font-style: normal;
|
|
|
font-size-adjust: none;
|
|
|
font-stretch: normal;
|
|
|
font-variant-caps: normal;
|
|
|
letter-spacing: normal;
|
|
|
line-height: 1.2;
|
|
|
word-wrap: normal;
|
|
|
word-spacing: normal;
|
|
|
white-space: nowrap;
|
|
|
text-shadow: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__latex .style-wrap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .mfrac {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .left-right {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist-t {
|
|
|
display: inline-table;
|
|
|
table-layout: fixed;
|
|
|
border-collapse: collapse;
|
|
|
}
|
|
|
.ML__latex .vlist-r {
|
|
|
display: table-row;
|
|
|
}
|
|
|
.ML__latex .vlist {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span {
|
|
|
display: block;
|
|
|
height: 0;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span > span {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist > span > .pstrut {
|
|
|
overflow: hidden;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__latex .vlist-t2 {
|
|
|
margin-right: -2px;
|
|
|
}
|
|
|
.ML__latex .vlist-s {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
font-size: 1px;
|
|
|
width: 2px;
|
|
|
min-width: 2px;
|
|
|
}
|
|
|
.ML__latex .msubsup {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .negativethinspace {
|
|
|
display: inline-block;
|
|
|
margin-left: -0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thinspace {
|
|
|
display: inline-block;
|
|
|
width: 0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .mediumspace {
|
|
|
display: inline-block;
|
|
|
width: 0.22222em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thickspace {
|
|
|
display: inline-block;
|
|
|
width: 0.27778em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .enspace {
|
|
|
display: inline-block;
|
|
|
width: 0.5em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .quad {
|
|
|
display: inline-block;
|
|
|
width: 1em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .qquad {
|
|
|
display: inline-block;
|
|
|
width: 2em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .llap,
|
|
|
.ML__latex .rlap {
|
|
|
width: 0;
|
|
|
position: relative;
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner,
|
|
|
.ML__latex .rlap > .inner {
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__latex .llap > .fix,
|
|
|
.ML__latex .rlap > .fix {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner {
|
|
|
right: 0;
|
|
|
}
|
|
|
.ML__latex .rlap > .inner {
|
|
|
left: 0;
|
|
|
}
|
|
|
.ML__latex .rule {
|
|
|
display: inline-block;
|
|
|
border: solid 0;
|
|
|
position: relative;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line,
|
|
|
.ML__latex .underline .underline-line {
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:before,
|
|
|
.ML__latex .underline .underline-line:before {
|
|
|
content: '';
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:after,
|
|
|
.ML__latex .underline .underline-line:after {
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: -1px;
|
|
|
}
|
|
|
.ML__latex .stretchy {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .stretchy:before,
|
|
|
.ML__latex .stretchy:after {
|
|
|
content: '';
|
|
|
}
|
|
|
.ML__latex .stretchy svg {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: inherit;
|
|
|
fill: currentColor;
|
|
|
stroke: currentColor;
|
|
|
fill-rule: nonzero;
|
|
|
fill-opacity: 1;
|
|
|
stroke-width: 1;
|
|
|
stroke-linecap: butt;
|
|
|
stroke-linejoin: miter;
|
|
|
stroke-miterlimit: 4;
|
|
|
stroke-dasharray: none;
|
|
|
stroke-dashoffset: 0;
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 25%;
|
|
|
width: 50%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-3-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-1 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .nulldelimiter {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-group {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-symbol {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .op-symbol.small-op {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__latex .op-symbol.large-op {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__latex .mtable .vertical-separator {
|
|
|
display: inline-block;
|
|
|
min-width: 1px;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .mtable .arraycolsep {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-m > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-c > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-l > .vlist-t {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-r > .vlist-t {
|
|
|
text-align: right;
|
|
|
}
|
|
|
.ML__error {
|
|
|
display: inline-block;
|
|
|
background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);
|
|
|
background-color: hsla(341, 100%, 40%, 0.1);
|
|
|
background-repeat: repeat-x;
|
|
|
background-size: 3px 3px;
|
|
|
padding-bottom: 3px;
|
|
|
background-position: 0 100%;
|
|
|
}
|
|
|
.ML__error > .ML__error {
|
|
|
background: transparent;
|
|
|
padding: 0;
|
|
|
}
|
|
|
.ML__placeholder {
|
|
|
color: var(--_placeholder-color);
|
|
|
opacity: var(--_placeholder-opacity);
|
|
|
padding-left: 0.4ex;
|
|
|
padding-right: 0.4ex;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
}
|
|
|
.ML__notation {
|
|
|
position: absolute;
|
|
|
box-sizing: border-box;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
/* This class is used to implement the \`\\mathtip\` and \`\\texttip\` commands
|
|
|
For UI elements, see \`[data-ML__tooltip]\`
|
|
|
*/
|
|
|
.ML__tooltip-container {
|
|
|
position: relative;
|
|
|
transform: scale(0);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content {
|
|
|
position: fixed;
|
|
|
display: inline-table;
|
|
|
visibility: hidden;
|
|
|
z-index: 2;
|
|
|
width: max-content;
|
|
|
max-width: 400px;
|
|
|
padding: 12px 12px;
|
|
|
border-radius: 8px;
|
|
|
background: #616161;
|
|
|
--_selection-color: #fff;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
opacity: 0;
|
|
|
transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__text {
|
|
|
white-space: normal;
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__base {
|
|
|
display: contents;
|
|
|
}
|
|
|
.ML__tooltip-container:hover .ML__tooltip-content {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
font-size: 0.75em;
|
|
|
transform: scale(1) translate(0, 3em);
|
|
|
}
|
|
|
`,Cf=`#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);
|
|
|
}
|
|
|
`,u0=`/* 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;
|
|
|
}
|
|
|
`,Mc=`/* 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);*/
|
|
|
}
|
|
|
`,c0=`.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));
|
|
|
}
|
|
|
`,ud=`: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;
|
|
|
}
|
|
|
`,d0=`.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;
|
|
|
}
|
|
|
`,Yo;function lc(a){let y="";switch(a){case"mathfield-element":y=`
|
|
|
:host { display: inline-block; background-color: field; color: fieldtext; border-width: 1px; border-style: solid; border-color: #acacac; border-radius: 2px; padding:4px;}
|
|
|
:host([hidden]) { display: none; }
|
|
|
:host([disabled]), :host([disabled]:focus), :host([disabled]:focus-within) { outline: none; opacity: .5; }
|
|
|
:host(:focus), :host(:focus-within) {
|
|
|
outline: Highlight auto 1px; /* For Firefox */
|
|
|
outline: -webkit-focus-ring-color auto 1px;
|
|
|
}
|
|
|
:host([readonly]:focus), :host([readonly]:focus-within),
|
|
|
:host([read-only]:focus), :host([read-only]:focus-within) {
|
|
|
outline: none;
|
|
|
}
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
|
:host(:not(:focus)) :first-child { pointer-events: none !important; }
|
|
|
}`;break;case"core":y=Zo;break;case"mathfield":y=Sf;break;case"environment-popover":y=Cf;break;case"suggestion-popover":y=u0;break;case"keystroke-caption":y=Mc;break;case"virtual-keyboard":y=c0;break;case"ui":y=ud;break;case"menu":y=d0;break;default:debugger}return y}function Ac(a){return Yo||(Yo={}),Yo[a]||(Yo[a]=new CSSStyleSheet,Yo[a].replaceSync(lc(a))),Yo[a]}var Ou;function ql(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(lc(a))),window.document.head.appendChild(b);return}if(Ou||(Ou={}),((y=Ou[a])!=null?y:0)!==0)Ou[a]+=1;else{const b=Ac(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],Ou[a]=1}}function x(a){if("adoptedStyleSheets"in document&&Ou!=null&&Ou[a]&&(Ou[a]-=1,Ou[a]<=0)){const y=Yo[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class kp extends er{constructor(y){var b;super(we(xe({},y),{type:"accent",body:(b=y.body)!=null?b:void 0})),y.accentChar?this.accent=y.accentChar:this.svgAccent=y==null?void 0:y.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(y){return new kp(y)}toJson(){return we(xe({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new qa({parent:y,mathstyle:"cramp"},this.style),ee=(b=er.createBox(E,this.body))!=null?b:new Kr("\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,Fs),me;if(this.svgAccent)me=Tl(this.svgAccent),le=E.metrics.bigOpSpacing1-le;else if(this.accent){const Ae=new Kr(this.accent,{fontFamily:"Main-Regular"});Ae.italic=0;const Pe=this.accent===8407?" ML__accent-vec":"";me=new Kr(new Kr(Ae),{classes:"ML__accent-body"+Pe})}me=new Po({shift:0,children:[{box:new Kr(ee)},-le,{box:me,marginLeft:ee.left+2*re,classes:["ML__center"]}]});const ve=new Kr(me,{type:"lift"});return this.caret&&(ve.caret=this.caret),this.bind(E,ve.wrap(E)),this.attachSupsub(E,{base:ve})}},ne={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},te=Object.fromEntries(Object.entries(ne).map(([a,y])=>[y,a]));function ae(a){var y;return(y={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[a])!=null?y:a.codePointAt(0)}function fe(a,y,b,E){var ee;const le=new Kr(ae(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)*Rs),le}function Me(a,y,b,E,ee){var re,le;const me=new qa({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),ve=new Kr(ae(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&&ve.setTop((1-me.scalingFactor)*Rs),ve}function ze(a,y,b,E,ee){var re;let le,me,ve,Ae;le=ve=Ae=ae(a),me=null;let Pe="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?ve=le=Ae=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?ve=le=Ae=8741:a==="\\uparrow"?ve=Ae=9168:a==="\\Uparrow"?ve=Ae=8214:a==="\\downarrow"?le=ve=9168:a==="\\Downarrow"?le=ve=8214:a==="\\updownarrow"?(le=8593,ve=9168,Ae=8595):a==="\\Updownarrow"?(le=8657,ve=8214,Ae=8659):a==="["||a==="\\lbrack"?(le=9121,ve=9122,Ae=9123,Pe="Size4-Regular"):a==="]"||a==="\\rbrack"?(le=9124,ve=9125,Ae=9126,Pe="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(ve=le=9122,Ae=9123,Pe="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(le=9121,ve=Ae=9122,Pe="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(ve=le=9125,Ae=9126,Pe="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(le=9124,ve=Ae=9125,Pe="Size4-Regular"):a==="("||a==="\\lparen"?(le=9115,ve=9116,Ae=9117,Pe="Size4-Regular"):a===")"||a==="\\rparen"?(le=9118,ve=9119,Ae=9120,Pe="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(le=9127,me=9128,Ae=9129,ve=9130,Pe="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(le=9131,me=9132,Ae=9133,ve=9130,Pe="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(le=9127,Ae=9129,ve=9130,Pe="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(le=9131,Ae=9133,ve=9130,Pe="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(le=9127,Ae=9133,ve=9130,Pe="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(le=9131,Ae=9129,ve=9130,Pe="Size4-Regular"):a==="\\surd"?(le=57345,Ae=9143,ve=57344,Pe="Size4-Regular"):a==="\\ulcorner"?(le=9484,ve=Ae=32):a==="\\urcorner"?(le=9488,ve=Ae=32):a==="\\llcorner"?(Ae=9492,ve=le=32):a==="\\lrcorner"&&(le=9496,ve=le=32);const pt=Qs(le,Pe),Nt=pt.height+pt.depth,Yt=Qs(ve,Pe),rn=Yt.height+Yt.depth,jn=Qs(Ae,Pe),Zr=jn.height+jn.depth;let Rn=0,fr=1;if(me!==null){const fl=Qs(me,Pe);Rn=fl.height+fl.depth,fr=2}const qr=Nt+Zr+Rn,Sr=Math.max(0,Math.ceil((y-qr)/(fr*rn))),Ki=qr+Sr*fr*rn;let ra=Rs;b&&(ra=ra*E.scalingFactor);const Xi=Ki/2-ra,so=.008,Ho=[];Ho.push({box:new Kr(Ae,{fontFamily:Pe})}),Ho.push(-so);const ui=new Kr(ve,{fontFamily:Pe});if(me===null)for(let fl=0;fl<Sr;fl++)Ho.push({box:ui});else{for(let fl=0;fl<Sr;fl++)Ho.push({box:ui});Ho.push(-so),Ho.push({box:new Kr(me,{fontFamily:Pe})}),Ho.push(-so);for(let fl=0;fl<Sr;fl++)Ho.push({box:ui})}Ho.push(-so),Ho.push({box:new Kr(le,{fontFamily:Pe})});let uu="";Pe==="Size1-Regular"?uu=" delim-size1":Pe==="Size4-Regular"&&(uu=" delim-size4");const ec=new Po({bottom:Xi,children:Ho},{classes:uu});return new Kr(ec,we(xe({},ee!=null?ee:{}),{classes:((re=ee==null?void 0:ee.classes)!=null?re:"")+" ML__delim-mult"}))}var Ge=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),ft=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Gt=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),an=[0,1.2,1.8,2.4,3];function Bn(a,y,b,E){return a===void 0||a==="."?zi(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),Ge.has(a)||Gt.has(a)?Me(a,y,!1,b,E):ft.has(a)?ze(a,an[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var kn=[{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}],ar=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],Mr=[{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 ri(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function wi(a,y,b,E){const ee={"-4":0,"-3":1,0:2}[E.mathstyle.sizeDelta];for(let re=ee;re<b.length&&b[re].type!=="stack";re++){const le=Qs(a,ri(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(Hs[Math.max(1,E.size-2)],E.minFontScale):b[re].mathstyle==="scriptstyle"&&(me*=Math.max(Hs[Math.max(1,E.size-1)],E.minFontScale))),me>y)return b[re]}return b[b.length-1]}function _i(a,y,b,E,ee,re){if(!y||y.length===0||y===".")return zi(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let le;Gt.has(y)?le=kn:Ge.has(y)?le=Mr:le=ar;const me=wi(ae(y),b,le,ee),ve=new qa({parent:ee,mathstyle:me.mathstyle},re==null?void 0:re.style);return me.type==="small"?fe(y,ve,E,we(xe({},re),{type:a})):me.type==="large"?Me(y,me.size,E,ve,we(xe({},re),{type:a})):(console.assert(me.type==="stack"),ze(y,b,E,ve,we(xe({},re),{type:a})))}function yi(a,y,b,E,ee,re){if(y===".")return zi(ee,re==null?void 0:re.classes);const le=Rs*ee.scalingFactor,me=901,ve=5/el,Ae=Math.max(b-le,E+le),Pe=Math.max(Ae/500*me,2*Ae-ve);return _i(a,y,Pe,!0,ee,re)}function zi(a,y){const b=new Kr(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new qa({parent:a,mathstyle:"textstyle"}))}var sa=class Dp extends er{constructor(y){var b;super({type:"placeholder",command:"\\placeholder",mode:(b=y==null?void 0:y.mode)!=null?b:"math",style:y==null?void 0:y.style}),this.captureSelection=!0}static fromJson(y){return new Dp(y)}toJson(){return super.toJson()}render(y){let b;return this.value=y.placeholderSymbol,typeof y.renderPlaceholder=="function"?b=y.renderPlaceholder(y):b=this.createBox(y),this.caret&&(b.classes+=" ML__placeholder-selected"),b}_serialize(y){return y.skipPlaceholders?"":"\\placeholder{}"}},ga=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Ua=["cases","dcases","rcases"],Qo=["align","align*","aligned","gather","gathered","split"],il=["array","subequations","eqnarray"];function Es(a){return il.concat(Qo).concat(Ua).concat(ga).includes(a)}function Dl(a){return ga.includes(a)}function Il(a){return Ua.includes(a)}function Us(a){return Qo.includes(a)}function Ll(a,y,b){let E=0;for(const Ae of b)"align"in Ae&&(E+=1);let ee=0;const re=[];for(const Ae of y){let Pe=0;for(ee=Math.max(ee,Math.min(Ae.length,E));Pe<Ae.length;){const pt=[],Nt=Math.min(Ae.length,Pe+E);for(;Pe<Nt;){const Yt=Ae[Pe];Yt.length===0?pt.push([new er({type:"first",mode:a.mode})]):Yt[0].type!=="first"?pt.push([new er({type:"first",mode:a.mode}),...Yt]):(console.assert(!Yt.slice(1).some(rn=>rn.type==="first")),pt.push(Yt)),Pe+=1}re.push(pt)}}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 Ae of re){if(Ae.length!==ee)for(let Pe=Ae.length;Pe<ee;Pe++)Ae.push([new er({type:"first",mode:a.mode}),new sa]);le.push(Ae)}let me=0,ve=0;for(const Ae of le){ve=0;for(const Pe of Ae){for(const pt of Pe)pt.parent=a,pt.parentBranch=[me,ve];ve+=1}me+=1}return a.isDirty=!0,le}var Na=class Ip extends er{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=Ll(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 Ip(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=we(xe({},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(Fc(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return Fc(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(Tu(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 ve=new qa({parent:y,mathstyle:this.mathstyleName},this.style),Ae=ve.getRegisterAsEm("arrayrulewidth"),Pe=ve.getRegisterAsEm("arraycolsep"),pt=ve.getRegisterAsEm("doublerulesep"),Nt=(E=(b=this.arraystretch)!=null?b:ve.getRegisterAsNumber("arraystretch"))!=null?E:1;let Yt=typeof this.arraycolsep=="number"?this.arraycolsep:Pe;this.colSeparationType==="small"&&(Yt=.2778*(new qa({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const rn=Nt*Nl,jn=.7*rn,Zr=.3*rn;let Rn=0;const fr=[];let qr=0;const Sr=this.array.length;for(let Xo=0;Xo<Sr;++Xo){const Ks=this.array[Xo];qr=Math.max(qr,Ks.length);const hl=new qa({parent:ve,mathstyle:this.mathstyleName},this.style);let tc=jn/hl.scalingFactor,nc=Zr/hl.scalingFactor;const rc={cells:[],height:0,depth:0,pos:0};for(const Ru of Ks){const eh=(ee=er.createBox(hl,Ru,{type:"ignore"}))!=null?ee:new Kr(null,{type:"ignore"});nc=Math.max(nc,eh.depth),tc=Math.max(tc,eh.height),rc.cells.push(eh)}let ic=(re=Jl(this.rowGaps[Xo]))!=null?re:0;ic>0&&(ic+=Zr,nc=Math.max(nc,ic),ic=0),Xo<Sr-1&&!Dl(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(nc+=ve.getRegisterAsEm("jot")),rc.height=tc,rc.depth=nc,Rn+=tc,rc.pos=Rn,Rn+=nc+ic,fr.push(rc)}const Ki=Rn/2+Rs,ra=[];for(let Xo=0;Xo<qr;Xo++){const Ks=[];for(const hl of fr){const tc=hl.cells[Xo];tc.depth=hl.depth,tc.height=hl.height,Ks.push({box:tc,shift:hl.pos-Ki})}Ks.length>0&&ra.push(new Po({individualShift:Ks}))}const Xi=[];let so=!1,Ho=!1,ui=0,uu=!this.leftDelim;const{colFormat:ec}=this;for(const Xo of ec){if("align"in Xo&&ui>=ra.length)break;if("align"in Xo)so?Xi.push(Ms(2*Yt)):(Ho||uu)&&Xi.push(Ms(Yt)),Xi.push(new Kr(ra[ui],{classes:"col-align-"+Xo.align})),ui++,so=!0,Ho=!1,uu=!1;else if("gap"in Xo){if(typeof Xo.gap=="number")Xi.push(Ms(Xo.gap));else{const Ks=Ns(y,fr,Ki,Xo.gap);Ks&&Xi.push(Ks)}so=!1,Ho=!1,uu=!1}else if("separator"in Xo){const Ks=new Kr(null,{classes:"vertical-separator"});Ks.height=Rn,Ks.setStyle("height",Rn,"em"),Ks.setStyle("border-right",`${Ae}em ${Xo.separator} currentColor`),Ks.setStyle("vertical-align",-(Rn-Ki),"em");let hl=0;Ho?hl=pt-Ae:so&&(hl=Yt-Ae),Ks.left=hl,Xi.push(Ks),so=!1,Ho=!0,uu=!1}}so&&!this.rightDelim&&Xi.push(Ms(Yt));const xu=new Kr(Xi,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(xu.caret=this.caret),this.bind(y,xu);const fl=xu.height,cu=xu.depth,Zl=this.bind(y,new Kr([this.bind(y,yi("open",(le=this.leftDelim)!=null?le:".",fl,cu,ve,{isSelected:this.isSelected})),xu,this.bind(y,yi("close",(me=this.rightDelim)!=null?me:".",fl,cu,ve,{isSelected:this.isSelected}))],{type:"ord"}));return Zl?(Zl.setStyle("display","inline-block"),this.caret&&(Zl.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:Zl}))):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(er.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}}`),Ka(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 er({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(Ls(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(Ls(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,Ls(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,Ls(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 Ls(a){const y=new er({type:"first",mode:a.mode});y.parent=a;const b=new sa;return b.parent=a,[y,b]}function Ms(a){const y=new Kr(null,{classes:"arraycolsep"});return y.width=a,y}function Ns(a,y,b,E){if(!E)return null;const ee=[];for(const re of y){const le=er.createBox(a,E,{type:"ignore"});le&&(le.depth=re.depth,le.height=re.height,ee.push({box:le,shift:re.pos-b}))}return new Po({individualShift:ee}).wrap(a)}var js=class Lp extends er{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 we(xe({},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=er.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 ve=new qa({parent:y},this.style),Ae=ve.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),Pe=new Kr(null,{classes:"ML__box"});Pe.height=le.height+Ae,Pe.depth=le.depth+Ae,Pe.setStyle("box-sizing","border-box"),Pe.setStyle("position","absolute"),Pe.setStyle("top",-Ae+.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=ve.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&Pe.setStyle("border",`${ve.getRegisterAsEm("fboxrule",2)}em solid ${(re=ve.toColor(this.framecolor))!=null?re:"black"}`),this.border&&Pe.setStyle("border",this.border);const pt=new Kr([Pe,le],{type:"lift"});return pt.setStyle("display","inline-block"),pt.setStyle("position","relative"),pt.setStyle("line-height",0),pt.height=le.height+Ae+(me>0?me:0),pt.depth=le.depth+Ae+(me<0?-me:0),pt.setStyle("padding-left",Ae,"em"),pt.setStyle("padding-right",Ae,"em"),pt.setStyle("height",Math.floor(100*(le.height+le.depth+2*Ae+Math.abs(me)))/100,"em"),pt.setStyle("margin-top",-Ae,"em"),pt.setStyle("top",Math.floor(100*(le.depth-le.height+2*Ae-me))/100,"em"),pt.setStyle("vertical-align",Math.floor(100*(le.depth+2*Ae))/100,"em"),this.caret&&(pt.caret=this.caret),this.attachSupsub(y,{base:pt})}_serialize(y){return y.skipStyles?Ka([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},uc=class Np extends er{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 Np(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new Kr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},Ol=class Tp extends er{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Tp(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},ul=class Bp extends er{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 Bp(y.body,y.mode,y.style)}render(y){const b=er.createBox(y,this.body,{type:this.boxType});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=yt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Do=class Op extends er{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"?Ka(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?Ka(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):Ka([!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 qa({parent:y},this.style);console.assert(this.body!==void 0);const re=new qa({parent:y,mathstyle:"textstyle"},this.style),le=(b=er.createBox(ee,this.body,{type:"inner"}))!=null?b:new Kr(null,{type:"inner"}),me=le.height/re.scalingFactor,ve=le.depth/re.scalingFactor,Ae=[];if(this.leftDelim&&Ae.push(this.bind(re,yi("open",this.leftDelim,me,ve,re,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),le&&(Js(le.children,this,ee,me,ve),Ae.push(le)),this.rightDelim){let Yt=this.containsCaret?" ML__contains-caret":"",rn=this.rightDelim;rn==="?"&&(ee.smartFence?(rn=this.matchingRightDelim(),Yt+=" ML__smart-fence__close"):rn="."),Ae.push(this.bind(re,yi("close",rn,me,ve,re,{isSelected:this.isSelected,classes:Yt+" ML__close",mode:this.mode,style:this.style})))}let Pe=this.variant==="mleft...mright";const pt=this.leftSibling;pt&&(!Pe&&pt.isFunction&&(Pe=!0),!Pe&&pt.type==="subsup"&&((E=pt.leftSibling)!=null&&E.isFunction)&&(Pe=!0));const Nt=new Kr(Ae,{type:Pe?"close":"inner",classes:"left-right"});return Nt.setStyle("margin-top",`${-le.depth}em`),Nt.setStyle("height",`${le.height+le.depth}em`),this.caret&&(Nt.caret=this.caret),this.bind(ee,Nt.wrap(ee))}};function Js(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,yi("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&&Js(le.children,y,b,E,ee)}}var cd=class _p extends er{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 _p(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=er.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},_u=class Pp extends er{constructor(){super({type:"macro-argument"})}static fromJson(y){return new Pp}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},Vu=class Rp extends er{constructor(y,b,E=!1,ee,re){var le;super({type:"prompt",mode:(le=re==null?void 0:re.mode)!=null?le:"math",style:re==null?void 0:re.style,command:"\\placeholder"}),this.body=ee,this.correctness=b,this.placeholderId=y,this.locked=E,this.captureSelection=this.locked}static fromJson(y){return new Rp(y.placeholderId,y.correctness,y.locked,y.body,y)}toJson(){const y=super.toJson();return this.placeholderId&&(y.placeholderId=this.placeholderId),this.body||delete y.body,this.body&&(y.body=this.body.filter(b=>b.type!=="first").map(b=>b.toJson())),this.correctness&&(y.correctness=this.correctness),y.locked=this.locked,y}render(y){const b=new qa({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,re=E,le=er.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 Kr(le,{type:"ord"});me.setStyle("display","inline-block"),me.setStyle("height",le.height+le.depth,"em"),me.setStyle("vertical-align",-re,"em");let ve="ML__prompt ";this.locked?ve+=" ML__lockedPromptBox ":ve+=" ML__editablePromptBox ",this.correctness==="correct"?ve+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(ve+=" ML__incorrectPromptBox "),this.containsCaret&&(ve+=" ML__focusedPromptBox ");const Ae=new Kr(null,{classes:ve,attributes:{part:"prompt"}});Ae.height=me.height+re,Ae.depth=me.depth+re,Ae.width=me.width+2*ee,Ae.setStyle("box-sizing","border-box"),Ae.setStyle("position","absolute"),Ae.setStyle("height",me.height+me.depth+2*re,"em"),ee===0&&Ae.setStyle("width","100%"),ee!==0&&(Ae.setStyle("width",`calc(100% + ${2*ee}em)`),Ae.setStyle("top",E,"em"),Ae.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(Ae.width=3*ee,Ae.setStyle("width",`calc(100% + ${3*ee}em)`),Ae.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&&(Ae.svgOverlay=Pe);const pt=new Kr([Ae,me],{classes:"ML__prompt-atom"});return pt.setStyle("position","relative"),pt.setStyle("display","inline-block"),pt.setStyle("line-height",0),pt.height=me.height+re+.2,pt.depth=me.depth+re,pt.left=ee,pt.right=ee,pt.setStyle("height",me.height+re,"em"),pt.setStyle("top",me.depth-me.height,"em"),pt.setStyle("vertical-align",me.depth+re,"em"),pt.setStyle("margin-left",.5,"em"),pt.setStyle("margin-right",.5,"em"),this.caret&&(pt.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:pt}))}_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]"),Ko(ee,E)}},vu=class Fp extends er{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new Fp(y);for(const E of wc)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new qa({parent:y,isPhantom:!0}),ee=this.leftSibling,re=(b=ee.render(E))!=null?b:new Kr(null),le=new Kr(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 Vs(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var cc=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 qa&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new qa({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:xe({},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(xe({before:$l(this.tokens.slice(this.index,this.index+10)),after:$l(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 xe({},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 vu({style:this.style}),this.mathlist.push(a)),a}hasPattern(a){return a.test(this.tokens[this.index])}hasInfixCommand(){var a;const{index:y}=this;if(y<this.tokens.length&&this.tokens[y].startsWith("\\")){const b=yt(this.tokens[y],this.parseMode);return!b||b.definitionType==="symbol"||b.ifMode&&!b.ifMode.includes(this.parseMode)?!1:(a=b.infix)!=null?a:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const a=this.peek();return a!=="\\\\"&&a!=="\\cr"&&a!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var a;const y=(a=this.args)==null?void 0:a.call(this,"?");return y?cl(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new sa({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();Vs(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(Vs(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 ve=a?Number.parseInt(me,re):Number.parseFloat(me);return Number.isNaN(ve)?null:{number:E?-ve:ve,base:re===16?"hexadecimal":re===8?"octal":"decimal"}}scanRegister(){var a;const y=this.index,b=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return b;let E=!1;if(b===null)for(;;){const re=this.peek();if(re==="-")E=!E;else if(re!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const re=this.get();return re.startsWith("\\")?b?{register:re,global:!0,factor:(E?-1:1)*b.number}:E?{register:re,global:!0,factor:-1}:{register:re,global:!0}:(this.index=y,null)}let ee=this.get();return ee!=null&&ee.startsWith("\\")?(ee=ee.substring(1),this.context.registers[ee]?!E||b!==null?{register:ee,factor:(E?-1:1)*((a=b==null?void 0:b.number)!=null?a:1)}:{register:ee}:(this.index=y,null)):(this.index=y,null)}scanValue(){const a=this.scanRegister();if(a)return a;const y=this.index,b=this.scanGlueOrDimen();if(b&&("unit"in b||"glue"in b&&"unit"in b.glue))return b;this.index=y;const E=this.scanNumber();if(E)return E;if(this.end()||!Vs(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=_e(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 ve=this.scanArgument(me.type);ve||this.onError({code:"missing-argument",arg:a}),b.push(ve)}this.beginContext({tabular:y.tabular});const E=[],ee=[];let re=[],le=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),le=!0),!le&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),le=!0),!le)if(this.matchColumnSeparator())re.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){re.push(this.mathlist),this.mathlist=[];let 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=yt(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 ul(y,this.parseMode,this.style);return b.verbatimLatex=$l(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 Do("",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(!Vs(a)&&!a.startsWith("\\"))return null;this.next();const y=yt(a,"math");return y?y.definitionType==="function"&&y.ifMode&&!y.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:a}),null):y.definitionType==="symbol"&&(y.type==="mopen"||y.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(a)?a:(this.onError({code:"unexpected-delimiter",arg:a}),null):(this.onError({code:"unknown-command",arg:a}),null)}scanLeftRight(){var a;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new Ol("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Ol("\\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 Ol(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 Do(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 er({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new er({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(et(this.scanArgument("expression")),a==="_"?"subscript":"superscript"),a=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const a=this.match("\\limits"),y=!a&&this.match("\\nolimits"),b=!y&&!a&&this.match("\\displaylimits");if(!a&&!y&&!b)return!1;const E=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return E===null?!1:(E.explicitSubsupPlacement=!0,a&&(E.subsupPlacement="over-under"),y&&(E.subsupPlacement="adjacent"),b&&(E.subsupPlacement="auto"),!0)}scanArguments(a){if(!(a!=null&&a.params))return[void 0,[]];let y;const b=[];let E=a.infix?2:0;for(;E<a.params.length;){const ee=a.params[E];ee.type==="rest"?b.push(this.scan(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(Vs(a)){const b=Cl.createAtom(this.parseMode,a,xe({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=yt(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new Ol(a)];if(b.definitionType==="symbol"){const E=xe({},this.style);b.variant&&(E.variant=b.variant),y=new er({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 Ol(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"),ve=this.scanOptionalArgument("math"),Ae=er.serialize(ve,{defaultMode:"math"});let Pe=[],pt;!pt&&Ae==="correct"?pt="correct":!pt&&Ae==="incorrect"?pt="incorrect":Ae!==""&&(Pe=ve);const Nt=this.scanOptionalArgument("string")==="locked",Yt=this.scanArgument("auto");let rn;return Yt&&Array.isArray(Yt)&&Yt.length>0?rn=Yt:Yt&&typeof Yt=="object"&&"group"in Yt?rn=Yt.group:rn=Pe,me?[new Vu(me,pt,Nt,rn!=null?rn:Pe,{mode:this.parseMode,style:this.style})]:[new sa({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const me=this.index,ve=this.scanLiteralGroup()||this.next();if(!ve)return null;if(this.context.registers[ve.substring(1)]){const Ae=this.scanArgument("string");Ae!==null&&(this.context.registers[ve.substring(1)]=Ae);const Pe=Ka([a,$l(this.tokens.slice(me,this.index))]);return[new er({type:"text",value:"",verbatimLatex:Pe})]}}let ee=this.scanMacro(a);if(ee)return[ee];const re=yt(a,this.parseMode);if(!re)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(me=>new er({type:"text",value:me,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new Ol(a)]);const le=this.index;if(re.definitionType==="symbol"){const me=xe({},this.style);re.variant&&(me.variant=re.variant),ee=new er({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 ve,Ae=[];if(re.parse?Ae=re.parse(this):[ve,Ae]=this.scanArguments(re),this.parseMode=me,re.applyMode&&!re.applyStyle&&!re.createAtom)return et(Ae[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:Ae,style:this.style,mode:this.parseMode}),ve&&(ee.body=et(this.scanArgument(ve)));else if(typeof re.applyStyle=="function"){const Pe=xe(xe({},this.style),re.applyStyle(a,Ae,this.context)),pt=this.parseMode;if(re.applyMode&&(this.parseMode=re.applyMode),ve){const Nt=this.style;this.style=Pe;const Yt=this.scanArgument(ve);return this.style=Nt,this.parseMode=pt,et(Yt)}this.style=Pe}else ee=new er({type:"mord",command:(b=re.command)!=null?b:a,style:xe({},this.style),value:a,mode:(E=re.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof er&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const me=Ka([a,$l(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(Vs(a)){const y=Cl.createAtom(this.parseMode,a,xe({},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 Bu(" "," ",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 ve=this.index;this.scanExpression(),me=$l(this.tokens.slice(ve,this.index))}re[le]=me}return new cd(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:$l(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:cl(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 cl(a,y){var b,E,ee,re;const le=(b=y==null?void 0:y.args)!=null?b:void 0,me=new cc(Gl(a,le),y==null?void 0:y.context,{args:le,mathstyle:(E=y==null?void 0:y.mathstyle)!=null?E:"displaystyle",parseMode:(ee=y==null?void 0:y.parseMode)!=null?ee:"math",style:(re=y==null?void 0:y.style)!=null?re:{}}),ve=[];for(;!me.end();)ve.push(...me.scan(()=>!1));return ve}function th(a,y){var b;const E=new cc(Gl(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 nh=class zp extends er{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=vs.go(Rr.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=cl(E),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new zp(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return we(xe({},super.toJson()),{arg:this.arg})}render(y){const b=er.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}};bt(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new nh(a.command,(y=a.args[0])!=null?y:"")}});var Rr={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=Rr.stateMachines[y],ve=me.transitions[b]||me.transitions["*"];e:for(var Ae=0;Ae<ve.length;Ae++){var Pe=Rr.patterns.match_(ve[Ae].pattern,a);if(Pe){for(var pt=ve[Ae].task,Nt=0;Nt<pt.action_.length;Nt++){var Yt;if(me.actions[pt.action_[Nt].type_])Yt=me.actions[pt.action_[Nt].type_](E,Pe.match_,pt.action_[Nt].option);else if(Rr.actions[pt.action_[Nt].type_])Yt=Rr.actions[pt.action_[Nt].type_](E,Pe.match_,pt.action_[Nt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+pt.action_[Nt].type_+")"];Rr.concatArray(le,Yt)}if(b=pt.nextState||b,a.length>0){if(pt.revisit||(a=Pe.remainder),!pt.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=Rr.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 Rr.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return Rr.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return Rr.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return Rr.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return Rr.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return Rr.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return Rr.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return Rr.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return Rr.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return Rr.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return Rr.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return Rr.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return Rr.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 Rr.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return Rr.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return Rr.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return Rr.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 Rr.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return Rr.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return Rr.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return Rr.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return Rr.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return Rr.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return Rr.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return Rr.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=Rr.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,ve,Ae){var Pe=function(Rn,fr){if(typeof fr=="string")return Rn.indexOf(fr)!==0?null:fr;var qr=Rn.match(fr);return qr?qr[0]:null},pt=function(Rn,fr,qr){for(var Sr=0;fr<Rn.length;){var Ki=Rn.charAt(fr),ra=Pe(Rn.substr(fr),qr);if(ra!==null&&Sr===0)return{endMatchBegin:fr,endMatchEnd:fr+ra.length};if(Ki==="{")Sr++;else if(Ki==="}"){if(Sr===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];Sr--}fr++}return Sr>0,null},Nt=Pe(a,y);if(Nt===null||(a=a.substr(Nt.length),Nt=Pe(a,b),Nt===null))return null;var Yt=pt(a,Nt.length,E||ee);if(Yt===null)return null;var rn=a.substring(0,E?Yt.endMatchEnd:Yt.endMatchBegin);if(re||le){var jn=this.findObserveGroups(a.substr(Yt.endMatchEnd),re,le,me,ve);if(jn===null)return null;var Zr=[rn,jn.match_];return{match_:Ae?Zr.join(""):Zr,remainder:jn.remainder}}else return{match_:rn,remainder:a.substr(Yt.endMatchEnd)}},match_:function(a,y){var b=Rr.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return Rr.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 Rr.go(y,"text")},"{text}":function(a,y){var b=["{"];return Rr.concatArray(b,Rr.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return Rr.go(y,"tex-math")},"tex-math tight":function(a,y){return Rr.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 Rr.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 Rr.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 ve=y.split("|"),Ae=0;Ae<ve.length;Ae++)if(E[ee]==="*")for(var Pe in re)re[Pe].push({pattern:ve[Ae],task:le});else re[E[ee]].push({pattern:ve[Ae],task:le})}return re},stateMachines:{}};Rr.stateMachines={ce:{transitions:Rr.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 Rr.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 Rr.concatArray(b,this.output(a)),Rr.concatArray(b,Rr.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=Rr.patterns.match_("orbital",a.o||""),ee=Rr.patterns.match_("one lowercase greek letter $",a.o||""),re=Rr.patterns.match_("one lowercase latin letter $",a.o||""),le=Rr.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 ve=[];return me?(Rr.concatArray(ve,this.output(a)),ve.push({type_:"hyphen"})):(E=Rr.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(Rr.concatArray(ve,Rr.actions["d="](a,y)),Rr.concatArray(ve,this.output(a))):(Rr.concatArray(ve,this.output(a)),Rr.concatArray(ve,Rr.actions.bond(a,y,"-")))),ve},"a to o":function(a){a.o=a.a,a.a=void 0},"sb=true":function(a){a.sb=!0},"sb=false":function(a){a.sb=!1},"beginsWithBond=true":function(a){a.beginsWithBond=!0},"beginsWithBond=false":function(a){a.beginsWithBond=!1},"parenthesisLevel++":function(a){a.parenthesisLevel++},"parenthesisLevel--":function(a){a.parenthesisLevel--},"state of aggregation":function(a,y){return{type_:"state of aggregation",p1:Rr.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"&&Rr.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:Rr.go(a.a,"a"),b:Rr.go(a.b,"bd"),p:Rr.go(a.p,"pq"),o:Rr.go(a.o,"o"),q:Rr.go(a.q,"pq"),d:Rr.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ee;a.rdt==="M"?ee=Rr.go(a.rd,"tex-math"):a.rdt==="T"?ee=[{type_:"text",p1:a.rd||""}]:ee=Rr.go(a.rd);var re;a.rqt==="M"?re=Rr.go(a.rq,"tex-math"):a.rqt==="T"?re=[{type_:"text",p1:a.rq||""}]:re=Rr.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 Rr.concatArray(b,Rr.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:Rr.go(y[0]),p2:Rr.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:Rr.go(y[0]),p2:Rr.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:Rr.go(y[0]),p2:Rr.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:Rr.go(y[0]),p2:Rr.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Rr.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:Rr.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:Rr.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:Rr.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:Rr.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:Rr.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Rr.go(y[1],"pq")}}}},bd:{transitions:Rr.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:Rr.go(y[1],"bd")}}}},oxidation:{transitions:Rr.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:Rr.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:Rr.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:Rr.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Rr.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]&&(Rr.concatArray(b,Rr.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?Rr.concatArray(b,Rr.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]),Rr.concatArray(b,Rr.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=Rr.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=Rr.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:Rr.go(a.d,"pu"),q:Rr.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_:"/"}),Rr.concatArray(y,ee.q))}else y=Rr.go(a.d,"pu-2");for(var re in a)delete a[re];return y}}},"pu-2":{transitions:Rr.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=Rr.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=Rr.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:Rr.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 vs={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+=vs._go2(re),re.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&vs.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:vs._goInner(a.a),b:vs._goInner(a.b),p:vs._goInner(a.p),o:vs._goInner(a.o),q:vs._goInner(a.q),d:vs._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 "+vs._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+vs._goInner(a.p1);break;case"bond":if(y=vs._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{"+vs._goInner(a.p1)+"}{"+vs._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+vs._goInner(a.p1)+"}{"+vs._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+vs._goInner(a.p1)+"}{"+vs._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+vs._goInner(a.p1)+"}{"+vs._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+vs._goInner(a.p1)+"}_{"+vs._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+vs._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var re={rd:vs._goInner(a.rd),rq:vs._goInner(a.rq)},le=vs._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=vs._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 A1(a){}var rh=class jp extends er{constructor(y){super(we(xe({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new jp(y)}toJson(){return we(xe({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new Kr(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=yt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Ko(this.command,this.value)}},ih=class $p extends er{constructor(y){super(we(xe({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new $p(y)}toJson(){return we(xe({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=Bn(this.value,this.size,y,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return b?(b=this.bind(y,b),this.caret&&(b.caret=this.caret),b):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=yt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Ko(this.command,this.value)}},jd=class Kp extends er{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 Kp(y.command,y.body,y.notation,y)}toJson(){return we(xe({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(y){var b;if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const E=yt(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);let ee=(b=this.command)!=null?b:"";if(this.command==="\\enclose"){ee+="{"+Object.keys(this.notation).join(" ")+"}";let 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 Ko(ee,this.bodyToLatex(y))}render(y){const b=new qa({parent:y},this.style),E=er.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 Kr(null,{classes:"ML__notation"});let me=E.height+E.depth+2*re;const ve=E.width+2*re;let Ae="";if(this.notation.horizontalstrike&&(Ae+=this.line(3,50,97,50)),this.notation.verticalstrike&&(Ae+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(Ae+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(Ae+=this.line(3,3,97,97)),this.notation.updiagonalarrow){Ae+=this.line(re.toString(),(re+E.depth+E.height).toString(),(re+E.width).toString(),re.toString());const rn=.03*Math.sqrt(ve*ve+me*me)*1,jn=E.width*rn,Zr=(E.depth+E.height)*rn,Rn=re+E.width;let fr=re;fr+Zr-.4*jn<0&&(fr=.4*jn-Zr),Ae+='<polygon points="',Ae+=`${Rn},${fr} ${Rn-jn-.4*Zr},${fr+Zr-.4*jn} `,Ae+=`${Rn-.7*jn},${fr+.7*Zr} ${Rn-jn+.4*Zr},${fr+Zr+.4*jn} `,Ae+=`${Rn},${fr}`,Ae+=`" stroke='none' fill="${this.strokeColor}"`,Ae+="/>"}let Pe=0;if(this.notation.phasorangle){const Nt=ah(b),Yt=(E.height+E.depth+2*Nt+re).toString(),rn=(E.height+E.depth)/2;Ae+=this.line(re.toString(),Yt,(re+rn+E.width).toString(),Yt),Ae+=this.line(re.toString(),Yt,(re+rn).toString(),(re-Nt).toString()),me+=Nt,Pe=rn,E.left+=me/2-re}if(this.notation.longdiv){const Nt=ah(b);me+=Nt,Ae+=this.line(re.toString(),re.toString(),(re+E.width).toString(),re.toString());const Yt=.3;Pe=Yt+Nt,E.left+=Yt+Nt,E.setTop(re+Nt),Ae+='<path d="',Ae+=`M ${re} ${re} a${Yt} ${(E.depth+E.height+2*Nt)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*Nt} "`,Ae+=` stroke-width="${am(b)}" stroke="${this.strokeColor}" fill="none"`,Ae+="/>"}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),Ae){let Nt="";this.shadow==="auto"&&(Nt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(Nt+=`filter: drop-shadow(${this.shadow})`),Nt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,Nt+=' stroke-linecap="round"',this.svgStrokeStyle&&(Nt+=` stroke-dasharray="${this.svgStrokeStyle}"`),le.svgStyle=Nt,le.svgOverlay=Ae}const pt=new Kr([le,E]);return pt.setStyle("position","relative"),pt.setStyle("vertical-align",re,"em"),pt.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*re))/100}em`),pt.setStyle("display","inline-block"),pt.height=le.height,pt.depth=le.depth,pt.width=le.width-2*re,pt.left=re,pt.right=re,this.caret&&(pt.caret=this.caret),pt.wrap(b)}line(y,b,E,ee){return`<line x1="${wf(y)}" y1="${wf(b)}" x2="${wf(E)}" y2="${wf(ee)}" vector-effect="non-scaling-stroke"></line>`}};function wf(a){return typeof a=="number"?`${Math.floor(100*a)/100}%`:a}function im(a){if(!a)return"1px";const y=a.match(/([0-9][a-zA-Z\%]+)/);return y===null?"1px":y[1]}function am(a){return(Math.floor(100*a.metrics.sqrtRuleThickness/a.scalingFactor)/100/10).toString()+"em"}function ah(a){const y=a.isDisplayStyle?Fs:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var dd=class Zp extends er{constructor(y,b,E){var ee,re;super(we(xe({},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),xe(xe({},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 qa({parent:y,mathstyle:this.mathstyleName},this.style),re=ee.metrics,le=new qa({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),me=this.numerPrefix?new Kr([new Kr(this.numerPrefix),er.createBox(le,this.above)],{isTight:le.isTight,type:"ignore"}):(b=er.createBox(le,this.above,{type:"ignore"}))!=null?b:new Kr(null,{type:"ignore"}),ve=new qa({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),Ae=this.denomPrefix?new Kr([new Kr(this.denomPrefix),er.createBox(ve,this.below,{type:"ignore"})]):(E=er.createBox(ve,this.below,{type:"ignore"}))!=null?E:new Kr(null,{type:"ignore"}),Pe=this.hasBarLine?re.defaultRuleThickness:0;let pt,Nt=0,Yt;ee.isDisplayStyle?(pt=le.metrics.num1,Nt=Pe>0?3*Pe:7*Pe,Yt=ve.metrics.denom1):(Pe>0?(pt=le.metrics.num2,Nt=Pe):(pt=le.metrics.num3,Nt=3*re.defaultRuleThickness),Yt=ve.metrics.denom2);const rn=[];this.isSelected&&rn.push("ML__selected");const jn=me.depth,Zr=Ae.height;let Rn;if(Pe<=0){const Xi=pt-jn-(Zr-Yt);Xi<Nt&&(pt+=(Nt-Xi)/2,Yt+=(Nt-Xi)/2),Rn=new Po({individualShift:[{box:me,shift:-pt,classes:[...rn,"ML__center"]},{box:Ae,shift:Yt,classes:[...rn,"ML__center"]}]}).wrap(ee)}else{const Xi=new Kr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Xi.softWidth=Math.max(me.width,Ae.width),Xi.height=Pe/2,Xi.depth=Pe/2;const so=Rs+Pe/2;pt<Nt+jn+so&&(pt=Nt+jn+so);const Ho=Rs-Pe/2;Yt<Nt+Zr-Ho&&(Yt=Nt+Zr-Ho),Rn=new Po({individualShift:[{box:Ae,shift:Yt,classes:[...rn,"ML__center"]},{box:Xi,shift:-Ho,classes:rn},{box:me,shift:-pt,classes:[...rn,"ML__center"]}]}).wrap(ee)}const fr=ee.isDisplayStyle?re.delim1:re.delim2,qr=this.leftDelim?this.bind(y,_i("open",this.leftDelim,fr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):zi(ee,"open");let Sr=null;this.continuousFraction?Sr=new Kr(null,{type:"close"}):this.rightDelim?Sr=this.bind(y,_i("close",this.rightDelim,fr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):Sr=zi(ee,"close");const Ki=new Kr([qr,Rn,Sr],{isTight:ee.isTight,type:"inner",classes:"mfrac"}),ra=this.bind(y,Ki);return this.caret&&(ra.caret=this.caret),this.attachSupsub(y,{base:ra})}},gl=class Hp extends er{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 Hp(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),xe({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new Kr(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}},$d=class Wp extends er{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new gl(b)),this.skipBoundary=!1}static fromJson(y){return new Wp("")}toJson(){return super.toJson()}render(y){const b=er.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:""}},f0=class Up extends er{constructor(y,b){super(we(xe({},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 Kr(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-Rs*y.scalingFactor,le=ee.italic;ee.setTop(re);let me=ee;if(this.superscript||this.subscript){const ve=(b=this.subsupPlacement)!=null?b:"auto";me=ve==="over-under"||ve==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:re,slant:le}):this.attachSupsub(y,{base:ee})}return new Kr(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=yt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=[];return E.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&E.push("\\limits"),this.subsupPlacement==="adjacent"&&E.push("\\nolimits"),this.subsupPlacement==="auto"&&E.push("\\displaylimits")),E.push(this.supsubToLatex(y)),Ka(E)}},$c=class Vp extends er{constructor(y){const b=y.body;super(we(xe({},y),{type:"overlap",body:typeof b=="string"?[new er({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 Vp(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),xe(xe({},super.toJson()),y)}render(y){const b=er.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new Kr([b,new Kr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},yu=class Gp extends er{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 Gp(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?Tl(this.svgBody):er.createBox(y,this.body,{type:"ignore"});const E=new qa({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=Tl(this.svgAbove):this.above&&(ee=er.createBox(E,this.above,{type:"ignore"}));let re=null;this.svgBelow?re=Tl(this.svgBelow):this.below&&(re=er.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new Kr([zi(y,"open"),b,zi(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 Kr(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 Po({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 Po({top:ee.height-re,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:le},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new Po({bottom:ee.depth+re,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:le},a.metrics.bigOpSpacing5]}));return new Kr(E,{type:y.type})}var Kd=class Yp extends er{constructor(y){var b,E,ee,re;super(we(xe({},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 Yp(y)}toJson(){const y={};return this.isInvisible&&(y.isInvisible=!0),this.smashDepth&&(y.smashDepth=!0),this.smashHeight&&(y.smashHeight=!0),this.smashWidth&&(y.smashWidth=!0),xe(xe({},super.toJson()),y)}render(y){const b=new qa({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),er.createBox(b,this.body,{classes:"inner"});const E=er.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new Kr(null,{classes:"fix"});return new Kr([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 Po({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},Zd=class Qp extends er{constructor(y){var b;super(xe({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 Kr(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new Kr(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 Kr(null,{classes:ee})}return E=this.bind(y,E),this.caret&&(E.caret=this.caret),E}_serialize(y){var b;if(!y.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const E=yt(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);const ee=(b=this.command)!=null?b:"";return this.width===void 0?ee:this._braced&&!("register"in this.width)?`${ee}{${gs(this.width)}}`:`${ee}${gs(this.width)}`}},oh=class Jp extends er{constructor(y){var b;super(we(xe({},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(we(xe({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=yt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=this.command,ee=this.bodyToLatex(y);return this.above&&!this.hasEmptyBranch("above")?Ko(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:Ko(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 qa({parent:y,mathstyle:"cramp"},this.style),ee=(b=er.createBox(E,this.body,{type:"inner"}))!=null?b:new Kr(null),re=E.scalingFactor,le=E.metrics.defaultRuleThickness/re,me=y.isDisplayStyle?Fs:le,ve=new Kr(null,{classes:"ML__sqrt-line",style:this.style});ve.height=le,ve.softWidth=ee.width;let Ae=re*(le+me/4);const pt=Math.max(re*2*me,ee.height+ee.depth)+Ae+le,Nt=new qa({parent:y},this.style),Yt=this.bind(Nt,new Kr(_i("inner","\\surd",pt,!1,Nt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!Yt)return null;const rn=Yt.height+Yt.depth-le;rn>ee.height+ee.depth+Ae&&(Ae=(Ae+rn-(ee.height+ee.depth))/2),Yt.setTop(Yt.height-ee.height-Ae);const jn=this.bind(y,new Po({firstBaseline:[{box:new Kr(ee)},Ae-2*le,{box:ve},le]})),Zr=er.createBox(new qa({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Zr){const qr=new Kr([Yt,jn],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return qr.setStyle("display","inline-block"),qr.setStyle("height",qr.height+qr.depth,"em"),this.caret&&(qr.caret=this.caret),this.bind(y,qr)}const Rn=new Po({shift:-.6*(Math.max(Yt.height,jn.height)-Math.max(Yt.depth,jn.depth)),children:[{box:Zr}]}),fr=new Kr([new Kr(Rn,{classes:"ML__sqrt-index",type:"ignore"}),Yt,jn],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return fr.height=Yt.height,fr.depth=Yt.depth,this.caret&&(fr.caret=this.caret),this.bind(y,fr)}},sm=class extends Kr{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}},um={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function cm(a){Wd(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 Hd(a,y){if(!a.children)return a;const b=a.children;cm(b);const E=y.getRegisterAsEm("thinmuskip"),ee=y.getRegisterAsEm("medmuskip"),re=y.getRegisterAsEm("thickmuskip");return Wd(b,(le,me)=>{var ve,Ae,Pe;if(!le)return;const pt=le.type,Nt=me.isTight?(ve=um[pt])!=null?ve:null:(Ae=lm[pt])!=null?Ae:null,Yt=(Pe=Nt==null?void 0:Nt[me.type])!=null?Pe:null;Yt===3&&Ef(me,E),Yt===4&&Ef(me,ee),Yt===5&&Ef(me,re)}),a}function Wd(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=Wd(E.children,y,b):E.type==="ignore"?Wd(E.children,y):(y(b,E),Wd(E.children,y),b=E);return b}var h0=class Xp extends er{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new er({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new Xp(we(xe({},y),{tooltip:kc(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 we(xe({},super.toJson()),{tooltip:b})}render(y){const b=er.createBox(new qa,this.body);if(!b)return null;const E=new qa({parent:y,mathstyle:"displaystyle"},{fontSize:zo}),ee=xc(Hd(new Kr(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),re=new Kr([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(re.caret=this.caret),this.bind(y,re)}},Kc=class qp extends er{constructor(y,b){super(we(xe({},b),{type:"operator",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.variantStyle=b==null?void 0:b.variantStyle,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new qp(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.variantStyle&&(y.variantStyle=this.variantStyle),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.value&&(y.symbol=this.value),y}render(y){var b;const E=new Kr(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 Kr(this.bind(y,ee),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(y)}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=yt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&E.push("\\limits"),this.subsupPlacement==="adjacent"&&E.push("\\nolimits"),this.subsupPlacement==="auto"&&E.push("\\displaylimits")),E.push(this.supsubToLatex(y)),Ka(E)}};function kc(a){if(Ie(a))return a.map(E=>kc(E));if(typeof a=="string")return er.fromJson(a);a=xe({},a);for(const E of wc)a[E]&&(a[E]=kc(a[E]));a.args&&(a.args=dm(a.args)),a.array&&(a.array=kc(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=Na.fromJson(a)),y==="box"&&(b=js.fromJson(a)),y==="chem"&&(b=nh.fromJson(a)),y==="composition"&&(b=uc.fromJson(a)),y==="delim"&&(b=rh.fromJson(a)),y==="enclose"&&(b=jd.fromJson(a)),y==="error"&&(b=Ol.fromJson(a)),y==="extensible-symbol"&&(b=f0.fromJson(a)),y==="genfrac"&&(b=dd.fromJson(a)),y==="group"&&(b=ul.fromJson(a)),y==="latex"&&(b=gl.fromJson(a)),y==="latexgroup"&&(b=$d.fromJson(a)),y==="leftright"&&(b=Do.fromJson(a)),y==="macro"&&(b=cd.fromJson(a)),y==="macro-argument"&&(b=_u.fromJson(a)),y==="operator"&&(b=Kc.fromJson(a)),y==="overlap"&&(b=$c.fromJson(a)),y==="overunder"&&(b=yu.fromJson(a)),y==="placeholder"&&(b=sa.fromJson(a)),y==="prompt"&&(b=Vu.fromJson(a)),y==="phantom"&&(b=Kd.fromJson(a)),y==="sizeddelim"&&(b=ih.fromJson(a)),y==="spacing"&&(b=Zd.fromJson(a)),y==="subsup"&&(b=vu.fromJson(a)),y==="surd"&&(b=oh.fromJson(a)),y==="text"&&(b=Bu.fromJson(a)),y==="tooltip"&&(b=h0.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=er.fromJson(a));for(const E of wc)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=>kc(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>kc(b)):y)}var sh={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"]},p0={"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]$/},lh=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,fm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,hm=[/^[a-z]$/,/^[A-Z]$/,lh,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 Cl{constructor(){super("math")}createAtom(a,y,b){var E,ee,re,le;if(y===null)return new er({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 Ae=new er({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&&(Ae.isFunction=!0),a.startsWith("\\")&&(Ae.verbatimLatex=a),Ae}const ve=new er({type:"mord",mode:"math",command:(le=y.command)!=null?le:a,value:a,style:b});return me&&(ve.isFunction=!0),a.startsWith("\\")&&(ve.verbatimLatex=a),ve}serialize(a,y){const b=gm(a,we(xe({},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,ve)=>{var Ae;me.test(a.value)&&pm[(Ae=y.letterShapeStyle)!=null?Ae:"tex"][ve]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ee=E?b+"-"+E:b;console.assert(sh[ee]!==void 0);const[re,le]=sh[ee];return p0[b]&&!p0[b].test(a.value)?(a.value=Ct(a.value,b,E),null):(lh.test(a.value)&&(a.classes+=" lcGreek"),le&&(a.classes+=" "+le),re)}};function gm(a,y){const{parent:b}=a[0],E=uh(b);return ms(a,"variant").map(ee=>{const re=uh(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=Ka(ee.map(ve=>ve._serialize(y)));return le?Ko(le,me):me})}function uh(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 ms(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?`{${Ko("\\fontshape",ee)}${Ka(E)}}`:re?Ko(re,Ka(E)):Ka(E)})}function bm(a,y){return ms(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?`{${Ko("\\fontseries",ee)}${Ka(E)}}`:re?Ko(re,Ka(E)):Ka(E)})}function xm(a,y){return ms(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} ${Ka(re)}`:Ka(re)})}function Sm(a,y,b){return ms(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}{${Ka(le)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${Ka(le)}}`:b?`\\text{${Ka(le)}}`:Ka(le)})}var ch={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Cm=class extends Cl{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new Bu(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return Sm(a,we(xe({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ee,re,le;const{fontFamily:me}=y;if(ch[me]?a.classes+=" "+ch[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 ve=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);ve&&(a.classes+=" ",a.classes+=(ee={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[(E=ve[1])!=null?E:""])!=null?ee:"",a.classes+=" ",a.classes+=(le={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(re=ve[2])!=null?re:""])!=null?le:"")}return"Main-Regular"}};new Cm;var wm=class extends Cl{constructor(){super("latex")}createAtom(a){return new gl(a)}serialize(a,y){return a.filter(b=>b instanceof gl&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new wm;var Em={id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["x","X","\u2248","\u02DB"],KeyC:["j","J","\u2206","\xD4"],KeyD:["e","E","\xB4","\xB4"],KeyE:[".",">","\u2265","\u02D8"],KeyF:["u","U","\xA8","\xA8"],KeyG:["i","I","\u02C6","\u02C6"],KeyH:["d","D","\u2202","\xCE"],KeyI:["c","C","\xE7","\xC7"],KeyJ:["h","H","\u02D9","\xD3"],KeyK:["t","T","\u2020","\u02C7"],KeyL:["n","N","\u02DC","\u02DC"],KeyM:["m","M","\xB5","\xC2"],KeyN:["b","B","\u222B","\u0131"],KeyO:["r","R","\xAE","\u2030"],KeyP:["l","L","\xAC","\xD2"],KeyQ:["'",'"',"\xE6","\xC6"],KeyR:["p","P","\u03C0","\u220F"],KeyS:["o","O","\xF8","\xD8"],KeyT:["y","Y","\xA5","\xC1"],KeyU:["g","G","\xA9","\u02DD"],KeyV:["k","K","\u02DA","\uF8FF"],KeyW:[",","<","\u2264","\xAF"],KeyX:["q","Q","\u0153","\u0152"],KeyY:["f","F","\u0192","\xCF"],KeyZ:[";",":","\u2026","\xDA"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["[","{","\u201C","\u201D"],Equal:["]","}","\u2018","\u2019"],BracketLeft:["/","?","\xF7","\xBF"],BracketRight:["=","+","\u2260","\xB1"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:["s","S","\xDF","\xCD"],Quote:["-","_","\u2013","\u2014"],Backquote:["`","~","`","`"],Comma:["w","W","\u2211","\u201E"],Period:["v","V","\u221A","\u25CA"],Slash:["z","Z","\u03A9","\xB8"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},m0={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:["","=","","="]}},dh={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:["\\","|","",""]}},fh={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},Mm={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},Am={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},km={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},Dm={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},Im={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:[".",".",".","."]}},Nm={id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\xDF",""],KeyC:["c","C","\xA9"," "],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0192","\uFB01"],KeyG:["g","G","\uF8FF","\uFB02"],KeyH:["h","H","\u2122"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","\xB6","\xAF"],KeyK:["k","K","\xA7","\u02C7"],KeyL:["l","L"," ","\u02D8"],KeyM:["m","M","\xB5","\u02DA"],KeyN:["n","N"," ","\u02D9"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE"," "],KeyS:["s","S","\u222B"," "],KeyT:["t","T","\u2020","\u2021"],KeyU:["u","U"," "," "],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\xE6","\xC6"],KeyX:["x","X","\u2211","\u203A"],KeyY:["y","Y","\xA5"," "],KeyZ:["z","Z","\u03A9","\u2039"],Digit1:["1","!","|","\u0131"],Digit2:["2",'"',"@","\u02DD"],Digit3:["3","\xB7","#","\u2022"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","\u221E","\u2030"],Digit6:["6","&","\xAC"," "],Digit7:["7","/","\xF7","\u2044"],Digit8:["8","(","\u201C","\u2018"],Digit9:["9",")","\u201D","\u2019"],Digit0:["0","=","\u2260","\u2248"],Space:[" "," "," "," "],Minus:["'","?","\xB4","\xB8"],Equal:["\xA1","\xBF","\u201A","\u02DB"],BracketLeft:["`","^","[","\u02C6"],BracketRight:["+","*","]","\xB1"],Backslash:["\xE7","\xC7","}","\xBB"],Semicolon:["\xF1","\xD1","~","\u02DC"],Quote:["\xB4","\xA8","{","\xAB"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u201E",""],Period:[".",":","\u2026","\u2026"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["\xBA","\xAA","\\","\xB0"]}},Tm={id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","\xB7","#",""],Digit4:["4","$","~",""],Digit5:["5","%","\u20AC",""],Digit6:["6","&","\xAC",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["\xA1","\xBF","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["\xE7","\xC7","}",""],Semicolon:["\xF1","\xD1","",""],Quote:["\xB4","\xA8","{",""],Backquote:["\xBA","\xAA","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Bm={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 hh(a){const y=a.split("+"),b={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:y.pop()};return y.includes("shift")&&(b.shift=!0),y.includes("alt")&&(b.alt=!0),y.includes("ctrl")&&(b.ctrl=!0),y.includes("cmd")&&(b.cmd=!0),y.includes("win")&&(b.win=!0),y.includes("meta")&&(b.meta=!0),b}function fd(a){let y="";return a.shift&&(y+="shift+"),a.alt&&(y+="alt+"),a.ctrl&&(y+="ctrl+"),a.cmd&&(y+="cmd+"),a.win&&(y+="win+"),a.meta&&(y+="meta+"),y+a.key}var 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=[],Vd;function g0(){switch(ct()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function su(a){(!a.platform||a.platform===g0())&&Ud.push(a)}function _m(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 Pm(a){if(a.code)return a;const y=Object.entries(Gd().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,we(xe({},a),{altKey:b,shiftKey:E,code:ee}))}function Rm(a){var y,b;if(!a||a.key==="Unidentified"||a.key==="Dead")return;const E=a.shiftKey&&a.altKey?3:a.altKey?2:a.shiftKey?1:0;for(const ee of 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 Fm(a){Vd=Ud.find(y=>a.startsWith(y.locale))}function Gd(){return Vd!=null?Vd:Ud[0]}function zm(){switch(g0()){case"apple":return m0;case"windows":return dh;case"linux":return fh}return m0}switch(g0()){case"apple":su(m0),su(Mm),su(Nm),su(Dm);break;case"windows":su(dh),su(Am),su(Tm),su(Im);break;case"linux":su(fh),su(km),su(Bm),su(Lm);break}su(Em);function v0(a){var y;const b=/macos|ios/.test(ct()),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 Zc(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 jm(a,y){return!a&&y||a&&!y?!1:!a||!y?!0:a.alt===y.alt&&a.control===y.control&&a.shift===y.shift&&a.meta===y.meta}var $m=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function Af(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:$m.has(a.code)}function kf(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var Gu=class pc{static get scrim(){return pc._scrim||(pc._scrim=new pc),pc._scrim}static open(y){pc.scrim.open(y)}static close(){pc.scrim.close()}static get state(){return pc.scrim.state}static get element(){return pc.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=kf();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:"",kf()!==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 Km(a,y,b){let E=null,ee=null,re=!1,le=!1,me=!1;const ve=new AbortController,Ae=ve.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:Ae}),a.addEventListener("keypress",Pe=>{re||(E&&ee&&b.onKeystroke(E),ee=Pe)},{capture:!0,signal:Ae}),a.addEventListener("compositionstart",Pe=>{a.textContent="",re=!0,b.onCompositionStart(Pe.data)},{capture:!0,signal:Ae}),a.addEventListener("compositionupdate",Pe=>{re&&b.onCompositionUpdate(Pe.data)},{capture:!0,signal:Ae}),a.addEventListener("compositionend",Pe=>{a.textContent="",re&&(re=!1,b.onCompositionEnd(Pe.data))},{capture:!0,signal:Ae}),a.addEventListener("beforeinput",Pe=>Pe.stopImmediatePropagation(),{signal:Ae}),a.addEventListener("input",Pe=>{var pt;if(!re&&(a.textContent="",Pe.inputType!=="insertCompositionText")){if(Pe.inputType==="insertFromPaste"){Pe.preventDefault(),Pe.stopPropagation();return}b.onInput((pt=Pe.data)!=null?pt:""),Pe.preventDefault(),Pe.stopPropagation()}},{signal:Ae}),a.addEventListener("paste",Pe=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(Pe)||Pe.preventDefault(),Pe.stopImmediatePropagation()},{signal:Ae}),a.addEventListener("cut",Pe=>b.onCut(Pe),{capture:!0,signal:Ae}),a.addEventListener("copy",Pe=>b.onCopy(Pe),{capture:!0,signal:Ae}),a.addEventListener("blur",Pe=>{var pt,Nt;if(((Nt=(pt=Pe.relatedTarget)==null?void 0:pt._mathfield)==null?void 0:Nt.element)===y){a.focus({preventScroll:!0}),Pe.preventDefault(),Pe.stopPropagation();return}const Yt=Gu.state;if(Yt==="open"||Yt==="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:Ae}),a.addEventListener("focus",Pe=>{me||le||(le=!0,b.onFocus(),le=!1)},{capture:!0,signal:Ae}),{dispose:()=>ve.abort(),cancelComposition:()=>{re&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!le&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>kf()===a,setAriaLabel:Pe=>a.setAttribute("aria-label",Pe),setValue:Pe=>{var pt;a.textContent=Pe,a.style.left="-1000px",(pt=window.getSelection())==null||pt.selectAllChildren(a)},moveTo:(Pe,pt)=>{a.style.top=`${pt}px`,a.style.left=`${Pe}px`}}}function hd(a){var y;if(!a||!Af(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 ph(a){a=Pm(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(lt()){const y=ct(),b=a.startsWith("!"),E=a.endsWith(y);if(b&&!E||!b&&E)return!0}return a==="!other"?!1:a==="other"}function Hm(a,y,b){if(a.length===0)return"";const E=fd(hh(ph(b))),ee=fd({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(ct()),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 mh(a){let y=a;return Ie(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Wm(a,y){let b=[];if(typeof y=="string"){const re=Od[y];Ie(re)?b=re.slice():re&&b.push(re)}const E=mh(y),ee=new RegExp("^"+E.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const re of a)ee.test(mh(re.command))&&b.push(re.key);return b.map(v0)}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=hh(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=ct()==="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 we(xe({},a),{key:fd(b)});const ee=_m(b.key,y);if(!ee)return we(xe({},a),{key:fd(b)});if(ee.shift&&b.shift||ee.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${y0(a.command)}) is conflicting with the key combination ${fd(ee)} using the ${y.displayName} keyboard layout`);return ee.shift=ee.shift||b.shift,ee.alt=ee.alt||b.alt,ee.meta=b.meta,ee.ctrl=b.ctrl,we(xe({},a),{key:fd(ee)})}function y0(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function Vm(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} (${y0(ee.command)}) matches ${le.key} (${y0(le.command)}) with the ${y.displayName} keyboard layout`);E.push(re)}catch(re){re instanceof Error&&b.push(re.message)}return[E,b]}var Gm=class extends Ia{constructor(){super("latex")}createAtom(a){return new gl(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"}),Ts(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(ll(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const re=[];for(const ve of y)ue.test(ve)&&re.push(new gl(ve));let le=a.at(a.position);if(le instanceof $d&&(le=le.lastChild),!(le.parent instanceof $d)){const ve=new $d("");le.parent.addChildAfter(ve,le),le=ve.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 Ym(a){return a.atoms.find(y=>y.type==="latexgroup")}function Yd(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 gh(a,y){var b;let E=0,ee=!1;const re=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;E<=re&&!ee;){const ve=a.at(E);ee=ve instanceof gl&&ve.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let le=E,me=!1;for(;le<=re&&!me;){const ve=a.at(le);me=!(ve instanceof gl&&ve.isSuggestion),me||le++}return[E-1,le-1]}new Gm;function Df(a){const y=Yd(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;Df(a);for(const Pe of Yd(E))Pe.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){md(a);return}const ee=[];let re=E.at(E.position);for(;re&&re instanceof gl&&/^[a-zA-Z\*]$/.test(re.value);)re=re.leftSibling;if(re&&re instanceof gl&&re.value==="\\")for(ee.push(re),re=re.rightSibling;re&&re instanceof gl&&/^[a-zA-Z\*]$/.test(re.value);)ee.push(re),re=re.rightSibling;const le=ee.map(Pe=>Pe.value).join(""),me=Ne(a,le);if(me.length===0){if(/^\\[a-zA-Z\*]+$/.test(le))for(const Pe of ee)Pe.isError=!0;md(a);return}const ve=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=ve<0?me.length-1:ve%me.length;const Ae=me[a.suggestionIndex];if(Ae!==le){const Pe=ee[ee.length-1];Pe.parent.addChildrenAfter([...Ae.slice(le.length-Ae.length)].map(pt=>new gl(pt,{isSuggestion:!0})),Pe),Hc(a,{interactive:!0})}Jm(a,me)}function vh(a){const[y,b]=gh(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 pd(a,y="accept",b){var E,ee;md(a);const re=Ym(a.model);if(!re)return!1;if(y==="accept-suggestion"||y==="accept-all"){const Ae=Yd(a.model).filter(Pe=>Pe.isSuggestion);if(Ae.length!==0){for(const Pe of Ae)Pe.isSuggestion=!1;a.model.position=a.model.offsetOf(Ae[Ae.length-1])}if(y==="accept-suggestion")return Ae.length!==0}const me=Yd(a.model).filter(Ae=>!Ae.isSuggestion).map(Ae=>Ae.value).join(""),ve=re.leftSibling;return re.parent.removeChild(re),a.model.position=a.model.offsetOf(ve),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(Ia.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 If(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 b0(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 qa({from:a.context}),E=new er({mode:"math",type:"root",body:cl(y,{context:b})}),ee=xc(Hd(new Kr(E.render(b),{classes:"ML__base"}),b));return Sc(ee,{classes:"ML__latex"}).toMarkup()}function Jm(a,y){var b;if(y.length===0){md(a);return}let E="";for(const[re,le]of y.entries()){const me=le,ve=Qm(a,le),Ae=Wm(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">${ve}</span>`,Ae&&(E+=`<span class="ML__popover__keybinding">${Ae}</span>`),E+="</li>"}const ee=Xm(a,`<ul>${E}</ul>`);x0()&&((b=ee.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var re;ee&&!x0()&&(ee.classList.add("is-visible"),Lf(a),(re=ee.querySelector(".ML__popover__current"))==null||re.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function x0(){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||!x0())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){md(a);return}if(y!=null&&y.deferred){setTimeout(()=>Lf(a),32);return}const E=Uu(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,ve=window.mathVirtualKeyboard.boundingRect.height,Ae=document.getElementById("mathlive-suggestion-popover");E.x+Ae.offsetWidth/2>re-le?Ae.style.left=`${re-Ae.offsetWidth-le}px`:E.x-Ae.offsetWidth/2<0?Ae.style.left="0":Ae.style.left=`${E.x-Ae.offsetWidth/2}px`;const Pe=E.y-E.height;ee-me-ve-E.y<Pe?(Ae.classList.add("ML__popover--reverse-direction"),Ae.classList.remove("top-tip"),Ae.classList.add("bottom-tip"),Ae.style.top=`${E.y-E.height-Ae.offsetHeight-15}px`):(Ae.classList.remove("ML__popover--reverse-direction"),Ae.classList.add("top-tip"),Ae.classList.remove("bottom-tip"),Ae.style.top=`${E.y+15}px`)}function md(a){a.suggestionIndex=0;const y=document.getElementById("mathlive-suggestion-popover");y&&(y.classList.remove("is-visible"),y.innerHTML="")}function Xm(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=If("mathlive-suggestion-popover"),ql("suggestion-popover"),ql("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(pd(a,"reject"),Ia.insert(a.model,ee.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),a.dirty=!0,a.focus())})),b.innerHTML=window.MathfieldElement.createHTML(y),b}function qm(){document.getElementById("mathlive-suggestion-popover")&&(b0("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 Nf=null,yh,bh,S0=((bh=(yh=globalThis==null?void 0:globalThis.document)==null?void 0:yh.currentScript)==null?void 0:bh.src)||eg();function xh(a){return Tc(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(Nf===null)try{const y=yield fetch(S0,{method:"HEAD"});y.status===200&&(Nf=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${S0}")`)}return new URL(a,Nf!=null?Nf:S0).href})}function tg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var lu="not-loaded";function ng(){return Tc(this,null,function*(){return lu="not-loaded",Tf()})}function Tf(){return Tc(this,null,function*(){var a;if(lu!=="not-loaded")return;if(lu="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){lu="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))){lu="ready";return}if(!window.MathfieldElement.fontsDirectory){lu="not-loaded";return}const ee=yield xh(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),lu="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(ve){}}))).forEach(me=>document.fonts.add(me)),lu="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")}lu="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 Ts(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{au(a)&&a.dirty&&(a.atomBoundsCache=new Map,Hc(a,y),a.atomBoundsCache=void 0)})))}function ig(a,y){var b;y=y!=null?y:{};const E=new qa({from:we(xe({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rg(er.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 Sc(Hd(ee,E),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function Sh(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 Hc(a,y){if(!au(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=Sh(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 ve=a.options.contentPlaceholder;ve&&(le+=`<span part=placeholder class="ML__content-placeholder">${dl(ve)}</span>`)}E.innerHTML=window.MathfieldElement.createHTML(le),Bf(a,y.interactive),a.dirty=!1}function Bf(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)&&lu!=="error"&&lu!=="ready"&&setTimeout(()=>{lu==="ready"?Bf(a):setTimeout(()=>Bf(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 ve=Pd(a,Ec(a,me),le);if(ve){ve.left/=le,ve.right/=le,ve.top/=le,ve.bottom/=le;const Ae=document.createElement("div");Ae.classList.add("ML__contains-highlight"),Ae.style.position="absolute",Ae.style.left=`${ve.left+1}px`,Ae.style.top=`${Math.ceil(ve.top)}px`,Ae.style.width=`${Math.ceil(ve.right-ve.left)}px`,Ae.style.height=`${Math.ceil(ve.bottom-ve.top)}px`,b.insertBefore(Ae,b.childNodes[0])}}return}for(const me of ag(Fd(a,{excludeAtomsWithBackground:!0}))){me.left/=le,me.right/=le,me.top/=le,me.bottom/=le;const ve=document.createElement("div");ve.classList.add("ML__selection"),ve.style.position="absolute",ve.style.left=`${me.left}px`,ve.style.top=`${me.top}px`,ve.style.width=`${Math.ceil(me.right-me.left)}px`,ve.style.height=`${Math.ceil(me.bottom-me.top-1)}px`,b.insertBefore(ve,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 Ch=3,Yu;function eu(a,y){y=xe({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Yu||(Yu={});for(const b of Object.keys(a))console.assert(!Yu[b],"Selector already defined: ",b),Yu[b]=we(xe({},y),{fn:a[b]})}function C0(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return C0(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Yu[y]}function gd(a){var y;return(y=C0(a))==null?void 0:y.target}function og(a,y){var b;if(!y)return!1;let E,ee=[],re=!1,le=!1;Ie(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,Ae=>Ae[1].toUpperCase());const me=Yu[E],ve=me==null?void 0:me.target;if(ve==="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)||Df(a),Yu[E].fn(a.model,...ee),Qd(a),le=!0,re=!0}else if(ve==="virtual-keyboard")le=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,re=!0;else if(Yu[E]){if(!a.isSelectionEditable&&(me!=null&&me.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),le=Yu[E].fn(a,...ee),re=!0}else throw new Error(`Unknown command "${E}"`);return ve!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||me!=null&&me.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),me!=null&&me.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),le&&Ts(a),re}function sg(a,y){var b;if(!a)return!1;a.focus(),vp.keypressVibration&&We()&&navigator.vibrate(Ch);const E=C0(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}eu({performWithFeedback:(a,y)=>sg(a,y)});function lg(a){return Qd(a,{atIndex:a.suggestionIndex+1}),!1}function ug(a){return Qd(a,{atIndex:a.suggestionIndex-1}),!1}eu({complete:pd},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),eu({nextSuggestion:lg,previousSuggestion:ug},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Of="mathlive#virtual-keyboard-message";function w0(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Of}var cg=class em{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new em),this._singleton}set alphabeticLayout(y){this.sendMessage("update-setting",{alphabeticLayout:y})}set layouts(y){this.sendMessage("update-setting",{layouts:y})}get normalizedLayouts(){return[]}set editToolbar(y){this.sendMessage("update-setting",{editToolbar:y})}set actionKeycap(y){this.sendMessage("update-setting",{actionKeycap:y})}set shiftKeycap(y){this.sendMessage("update-setting",{shiftKeycap:y})}set backspaceKeycap(y){this.sendMessage("update-setting",{backspaceKeycap:y})}set tabKeycap(y){this.sendMessage("update-setting",{tabKeycap:y})}set container(y){throw new Error("Container inside an iframe cannot be changed")}show(y){this.sendMessage("show",y)}hide(y){this.sendMessage("hide",y)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(y){y?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(y){return this.sendMessage("execute-command",{command:y}),!0}updateToolbar(y){this.sendMessage("update-toolbar",y)}update(y){this.sendMessage("update-setting",y)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(w0(y)){if(!zd(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;gd(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(xe({type:Of,action:y},b),this.targetOrigin)}},wh={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]"]]}},_f={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 Eh(a,y){var b,E,ee;const re=Dc.singleton;if(!re)return;const le=vd(a),me=(E=(b=re.getKeycap(le==null?void 0:le.id))==null?void 0:b.variants)!=null?E:"";if(typeof me=="string"&&!Mh(me)||Array.isArray(me)&&me.length===0){y==null||y();return}const ve={};let Ae="";for(const jn of fg(me)){const Zr=kh(jn),Rn=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);ve[Rn]=Zr;const[fr,qr]=Pf(Zr);Ae+=`<div id=${Rn} class="item ${qr}">${fr}</div>`}const Pe=document.createElement("div");Pe.setAttribute("aria-hidden","true"),Pe.className="MLK__variant-panel",Pe.style.height="auto";const pt=Object.keys(ve).length;let Nt=5;pt===1?Nt=1:pt===2||pt===4?Nt=2:pt===3||pt===5||pt===6?Nt=3:pt>=7&&pt<14&&(Nt=4),Pe.style.width=`calc(var(--variant-keycap-length) * ${Nt} + 12px)`,Pe.innerHTML=vp.createHTML(Ae),Gu.open({root:(ee=re==null?void 0:re.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:Pe}),Jd=new AbortController;const{signal:Yt}=Jd,rn=a==null?void 0:a.getBoundingClientRect();if(rn){rn.top-Pe.clientHeight<0&&(Pe.style.width="auto",pt<=6?Pe.style.height="56px":pt<=12?Pe.style.height="108px":pt<=18?Pe.style.height="205px":Pe.classList.add("compact"));const jn=Math.max(0,Math.min(window.innerWidth-Pe.offsetWidth,(rn.left+rn.right-Pe.offsetWidth)/2)),Zr=rn.top-Pe.clientHeight+5;Pe.style.transform=`translate(${jn}px, ${Zr}px)`,Pe.classList.add("is-visible"),requestAnimationFrame(()=>{Pe.addEventListener("pointerup",Rn=>{const fr=vd(Rn.target);!(fr!=null&&fr.id)||!ve[fr.id]||(E0(ve[fr.id]),Xd(),y==null||y(),Rn.preventDefault())},{capture:!0,passive:!1,signal:Yt}),Pe.addEventListener("pointerenter",Rn=>{const fr=vd(Rn.target);!(fr!=null&&fr.id)||!ve[fr.id]||fr.classList.add("is-active")},{capture:!0,signal:Yt}),Pe.addEventListener("pointerleave",Rn=>{const fr=vd(Rn.target);!(fr!=null&&fr.id)||!ve[fr.id]||fr.classList.remove("is-active")},{capture:!0,signal:Yt}),window.addEventListener("pointercancel",()=>{Xd(),y==null||y()},{signal:Yt}),window.addEventListener("pointerup",()=>{Xd(),y==null||y()},{signal:Yt})})}}function Xd(){Jd==null||Jd.abort(),Jd=null,Gu.state==="open"&&Gu.close()}function dg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(Ze))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+Ze[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(Fe))y.push({class:"swatch-button",label:'<span style="background:'+Fe[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function Mh(a){return _f[a]!==void 0}function fg(a){var y;return typeof a!="string"?a:(_f[a]||(_f[a]=(y=dg(a))!=null?y:[]),_f[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 qd(a){if(!a)return"";const y=new qa,b=new er({mode:"math",type:"root",body:cl(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=xc(Hd(new Kr(b.render(y),{classes:"ML__base"}),y));return Sc(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=>kh(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=Gd();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"}[ut.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 ve=[];for(const Ae of me)/[a-z]/.test(Ae)?ve.push({label:Ae,class:"hide-shift",shift:{label:Ae.toUpperCase()},variants:Mh(Ae)?Ae:void 0}):Ae==="~"?E!=="dvorak"?ve.push("[backspace]"):ve.push({label:"[backspace]",width:1}):Ae==="^"?ve.push("[shift]"):Ae===" "&&ve.push("[separator-5]");le.push(ve)}return le.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:ef({rows:le})}}function Ah(a){if(a==="alphabetic")return mg();if(typeof a=="string")return console.assert(wh[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),Ah(wh[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=qe(ee,["rows"]);y=we(xe({},le),{layers:ef({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:re}=ee,le=qe(ee,["markup"]);y=we(xe({},le),{layers:ef(a.markup)})}else y=xe({},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()){yd(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,ve=[re===y?"selected":"layer-switch"];me.tooltip&&ve.push("MLK__tooltip"),me.labelClass&&ve.push(...me.labelClass.split(" ")),ee+=`<div class="${ve.join(" ")}"`,me.tooltip&&(ee+=" data-tooltip='"+((b=ot(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='${ot("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${ot("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${ot("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${ot("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${ot("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=Dc.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]=Pf(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xg(){ql("virtual-keyboard"),ql("core"),Tf()}function Sg(){x("core"),x("virtual-keyboard")}var Cg=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
|
|
|
|
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
|
|
|
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-shift" viewBox="0 0 384 512">
|
|
|
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-commit" viewBox="0 0 512 512">
|
|
|
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
|
|
|
</symbol>
|
|
|
|
|
|
|
|
|
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
|
|
|
|
|
|
<symbol id="svg-command" viewBox="0 0 640 512">
|
|
|
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-undo" viewBox="0 0 512 512">
|
|
|
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-redo" viewBox="0 0 512 512">
|
|
|
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
|
|
|
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
|
|
|
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-tab" viewBox="0 0 448 512">
|
|
|
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
|
|
|
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
|
|
|
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-trash" viewBox="0 0 448 512">
|
|
|
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
|
|
|
</svg>`;function wg(a){a.resetKeycapRegistry(),xg();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Cg+a.normalizedLayouts.map((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",Ag,{passive:!1});const ee=y.querySelectorAll(".ML__edit-toolbar");if(ee)for(const le of ee)le.addEventListener("click",me=>{var ve,Ae;let Pe=me.target,pt="";for(;Pe&&!pt;)pt=(ve=Pe==null?void 0:Pe.getAttribute("data-command"))!=null?ve:"",Pe=(Ae=Pe==null?void 0:Pe.parentElement)!=null?Ae:null;pt&&a.executeCommand(JSON.parse(pt))});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]=Pf(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 Pf(a,y={shifted:!1}){var b,E,ee,re,le,me,ve;let Ae="",Pe=(b=a.class)!=null?b:"";if(y.shifted&&yd(a)&&(Pe+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?Ae=qd(a.shift):typeof a.shift=="object"&&(Ae=a.shift.label?a.shift.label:(E=qd(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(Ae=a.label?a.label:(le=qd(a.latex||a.insert||"")||a.key)!=null?le:"",a.shift){let pt;typeof a.shift=="string"?pt=qd(a.shift):a.shift.label?pt=a.shift.label:pt=(me=qd(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?me:"",Ae+=`<span class="MLK__shift">${pt}</span>`}a.aside&&(Ae+=`<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+=(ve={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?ve:""),[Ae,Pe||"MLK__keycap"]}var Wc={"[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 kh(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!Wc[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&Wc[a.label]&&(b=we(xe(xe({},Wc[a.label]),a),{label:Wc[a.label].label})),"key"in a&&a.key&&Wc[a.key]&&(b=we(xe(xe({},Wc[a.key]),a),{key:Wc[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var tf;function Ag(a){var y;if(a.button!==0)return;const b=Dc.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=vd(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",Rf(le),{capture:!0,signal:me}),ee.addEventListener("pointerleave",Rf(le),{capture:!0,signal:me}),ee.addEventListener("pointercancel",Rf(le),{signal:me}),ee.addEventListener("pointerup",Rf(le),{signal:me}),yd(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),Eh(ee,()=>{le.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function Rf(a){return y=>{const b=vd(y.target);if(!(b!=null&&b.id))return;const E=Dc.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"),yd(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"),yd(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){tf&&clearTimeout(tf),yd(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"}]):E0(ee.shift):E0(ee),E.shiftPressCount===1&&!y.shiftKey&&(E.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function E0(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=Dc.singleton)==null||y.executeCommand(b)}function kg(a){if(a.nodeType!==1)return!1;const y=a.classList;return y.contains("MLK__keycap")||y.contains("shift")||y.contains("action")||y.contains("fnbutton")||y.contains("bigfnbutton")}function vd(a){if(!a)return;let y=a;for(;y&&!kg(y);)y=y.parentElement;return y!=null?y:void 0}function yd(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var Dc=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=Dh();le&&!le.readOnly&&le.mathVirtualKeyboardPolicy==="auto"&&Ue()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ee=>{ee.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{Dh()||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=>Ah(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]=Pf(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}),Xd(),Sg(),(b=this._element)==null||b.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(E.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var y,b;return(b=(y=this.element)==null?void 0:y.offsetHeight)!=null?b:0}buildAndAttachElement(){var y;console.assert(!this.element),this.element=wg(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&Eh(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(w0(y)){if(!zd(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=gd(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:xe({type:Of,action:y},b)}));return}if(E)E.postMessage(xe({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=gd(y);return Ie(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=gd(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,re=>re[1].toUpperCase()),ee==="virtual-keyboard"?Yu[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 Dh(){var a,y;let b=kf(),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(lt()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=Dc.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>cg.singleton,configurable:!0});function Ff(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(Ie(E))y.scriptDepth=[E[0],E[1]];else if(typeof E=="number")y.scriptDepth=[E,E];else if(typeof E=="string"){const[re,le]=E.split(",").map(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=Dc.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>re})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?ut.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=Oe(a.macros);break;default:Ie(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=xe({},a[b]):y[b]=a[b]}return y}function Uc(a,y){let b;typeof y=="string"?b=[y]:y===void 0?b=Object.keys(a):b=y;const E={};for(const ee of b)a[ee]===null?E[ee]=null:Ie(a[ee])?E[ee]=[...a[ee]]:typeof a[ee]=="object"&&!(a[ee]instanceof Element)&&ee!=="computeEngine"?E[ee]=xe({},a[ee]):E[ee]=a[ee];return typeof y=="string"?E[y]:E}function zf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:dt,backgroundColorMap:Be,letterShapeStyle:ut.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:l0,inlineShortcuts:gf,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:s0,value:""}}function Ih(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function Ic(a,y){!a||!y||(Ie(a)?a.forEach(b=>Ic(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),Ic(a.body,y),Ic(a.above,y),Ic(a.below,y),Ic(a.subscript,y),Ic(a.superscript,y)))}function M0(a,y,b,E){function ee(le,me){for(const ve of re)if(ve.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=zo),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 Dg(a,y){const b=a.at(a.position);if(b.type==="composition")b.value=y;else{const{caret:E}=b;b.caret=void 0;const ee=new uc(y,{mode:b.mode});ee.caret=E,b.parent.addChildAfter(ee,b),a.position+=1}}function Ig(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}wt(["math","displaymath"],bu),wt("center",bu),bt("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 Na("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Xt("array","{columns:colspec}",(a,y,b,E)=>new Na(a,A0(y),b,{columns:E[0],mathstyleName:"textstyle"})),Xt(["equation","equation*","subequations"],"",(a,y,b)=>new Na(a,A0(y),b,{columns:[{align:"c"}]})),Xt(["multline","multline*"],"",bu),Xt(["align","align*","aligned","eqnarray"],"",bu),Xt("split","",bu),Xt(["gather","gathered"],"",bu),Xt(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",bu),Xt(["smallmatrix","smallmatrix*"],"[columns:colspec]",bu),Xt(["cases","dcases","rcases"],"",bu);function Lg(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function A0(a,y=1){return Lg(a)?Array(y).fill([[new er({type:"first"}),new sa]]):a.map(b=>b.length===0?[[new er({type:"first"})]]:b.map(E=>E.length===0?[new er({type:"first"})]:(E[0].type!=="first"&&E.unshift(new er({type:"first"})),E)))}function bu(a,y=[[[]]],b=[],E=[]){switch(y=A0(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new Na(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new Na(a,y,b,{mathstyleName:"textstyle"});case"center":return new Na(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new Na(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Na(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Na(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Na(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Vc(E[0])});case"bmatrix":case"bmatrix*":return new Na(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Vc(E[0])});case"Bmatrix":case"Bmatrix*":return new Na(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Vc(E[0])});case"vmatrix":case"vmatrix*":return new Na(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Vc(E[0])});case"Vmatrix":case"Vmatrix*":return new Na(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Vc(E[0])});case"matrix":case"matrix*":return new Na(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Vc(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new Na(a,y,b,{mathstyleName:"scriptstyle",columns:Vc(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Na(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 Na(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Na(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 Na(a,y,b,{arraycolsep:0,columns:re,minColumns:2})}}return new Na(a,y,b,{mathstyleName:"textstyle"})}function Vc(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 Ng(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof Na);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof Na)){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=Kf()),ee.length===0&&(ee=Kf());let le;return y.endsWith("column")?(le=bu("split",[[re,ee]]),a.root=le,Gc(le,0,0)?Yc(a,le,0,0):Gc(le,0,1)?Yc(a,le,0,1):a.position=a.offsetOf(E)):(le=bu("lines",[[re],[ee]]),a.root=le,Gc(le,0,0)?Yc(a,le,0,0):Gc(le,1,0)?Yc(a,le,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof Do){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=Kf()),re.length===0&&(re=Kf());let me="pmatrix";const ve=ee.leftDelim,Ae=ee.rightDelim;ve==="("&&(Ae===")"||Ae==="?")?me="pmatrix":(ve==="["||ve==="\\lbrack")&&(Ae==="]"||Ae==="\\rbrack"||Ae==="?")?me="bmatrix":ve==="\\vert"&&Ae==="\\vert"?me="vmatrix":ve==="\\Vert"&&Ae==="\\Vert"?me="Vmatrix":(ve==="{"||ve==="\\lbrace")&&(Ae==="."||Ae==="?")&&(me="cases");const Pe=bu(me,y.endsWith("column")?[[le,re]]:[[le],[re]]);return ee.parent.addChildBefore(Pe,ee),ee.parent.removeChild(ee),Gc(Pe,0,0)?Yc(a,Pe,0,0):y.endsWith("column")?Gc(Pe,0,1)?Yc(a,Pe,0,1):a.position=a.offsetOf(b):Gc(Pe,1,0)?Yc(a,Pe,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof Na?[b.parent,b.parentBranch]:[void 0,[0,0]]}function Gc(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function Tg(a,y,b,E){const ee=y.getCell(b,E);return ee?[a.offsetOf(ee[0]),a.offsetOf(ee[ee.length-1])]:-1}function Yc(a,y,b,E){const ee=Tg(a,y,b,E);typeof ee!="number"&&a.setSelection(ee)}function jf(a,y,b,E,ee){const re=y.getCell(b,E);re&&a.setPositionHandlingPlaceholder(a.offsetOf(re[ee==="start"?0:re.length-1]))}function $f(a,y){const[b,[E,ee]]=Ng(a,y);if(b)switch(y){case"after row":b.addRowAfter(E),jf(a,b,E+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ee),jf(a,b,E,ee+1,"end");break;case"before row":b.addRowBefore(E),jf(a,b,E,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ee),jf(a,b,E,ee,"start");break}}function Lh(a){return a.contentWillChange({inputType:"insertText"})?($f(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Bg(a){return a.contentWillChange({inputType:"insertText"})?($f(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Nh(a){return a.contentWillChange({inputType:"insertText"})?($f(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Og(a){return a.contentWillChange({inputType:"insertText"})?($f(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Th(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 Bh(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof Na);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof Na){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 _g(a){return a.contentWillChange({inputType:"deleteContent"})?(Bh(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Pg(a){return a.contentWillChange({inputType:"deleteContent"})?(Bh(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}eu({addRowAfter:Lh,addColumnAfter:Nh,addRowBefore:Bg,addColumnBefore:Og,removeRow:_g,removeColumn:Pg,setEnvironment:Th},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Kf(){return[new sa]}var Oh=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}};Oh.maximumDepth=1e3;var Rg=Oh;function k0(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ee;if(pe.test(a.at(y).value)){let re=y,le;do le=a.at(re).mode==="text"&&pe.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 bd(a,y,b){var E,ee,re,le,me,ve,Ae;const Pe=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let pt=a.at(a.position);if(y==="forward"&&(pt.type==="subsup"?(pt=pt.rightSibling,pt||(pt=a.at(a.position+1))):pt=a.at(a.position+1)),!pt)return a.announce("plonk"),!1;let Nt=a.offsetOf(pt);if(pt instanceof Bu)Nt=k0(a,Nt,y);else if(pt instanceof gl)if(pt.isSuggestion)for(console.assert(y==="forward");pt&&pt instanceof gl;)pt.isSuggestion=!1,Nt=a.offsetOf(pt),pt=pt.rightSibling;else if(y==="forward"){if(pt=pt.rightSibling,!pt||!(pt instanceof gl))return a.announce("plonk"),!1;for(;pt&&pt instanceof gl&&/[a-zA-Z\*]/.test(pt.value);)Nt=a.offsetOf(pt),pt=pt.rightSibling}else{if(pt=pt.leftSibling,!pt||!(pt instanceof gl))return a.announce("plonk"),!1;for(;pt&&pt instanceof gl&&/[a-zA-Z\*]/.test(pt.value);)Nt=a.offsetOf(pt),pt=pt.leftSibling}else if(y==="forward"&&pt.type==="mopen"){let Yt=0;do pt.type==="mopen"?Yt+=1:pt.type==="mclose"&&(Yt-=1),pt=pt.rightSibling;while(!pt.isLastSibling&&Yt!==0);Nt=a.offsetOf(pt.leftSibling)}else if(y==="backward"&&pt.type==="mclose"){let Yt=0;do pt.type==="mopen"?Yt+=1:pt.type==="mclose"&&(Yt-=1),pt=pt.leftSibling;while(!pt.isFirstSibling&&Yt!==0);Nt=a.offsetOf(pt)}else if(y==="backward")if(pt.type==="first")for(;Nt>0&&pt.type==="first";)Nt-=1,pt=a.at(Nt);else{const Yt=pt.type;pt.type==="subsup"&&(Nt=a.offsetOf(a.at(Nt).leftSibling)),Nt-=1;let rn=(ee=a.at(Nt))==null?void 0:ee.type;for(;Nt>=0&&rn===Yt;)((re=a.at(Nt))==null?void 0:re.type)==="subsup"?Nt=a.offsetOf(a.at(Nt).leftSibling):Nt-=1,rn=a.at(Nt).type}else{const{type:Yt}=pt;let rn=(le=a.at(Nt))==null?void 0:le.type;const{lastOffset:jn}=a;for(;Nt<=jn&&(rn===Yt||rn==="subsup");){for(;((me=a.at(Nt).rightSibling)==null?void 0:me.type)==="subsup";)Nt=a.offsetOf(a.at(Nt).rightSibling);Nt+=1,rn=(ve=a.at(Nt))==null?void 0:ve.type}Nt-=1}if((Ae=b==null?void 0:b.extend)!=null&&Ae){if(!a.setSelection(a.anchor,Nt))return a.announce("plonk"),!1}else{if(Nt===a.position)return a.announce("plonk"),!1;a.position=Nt}return a.announce("move",Pe),a.mathfield.stopCoalescingUndo(),!0}function Qu(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[me,ve]=gh(a);me!==void 0&&ve!==void 0&&a.deleteAtoms([me,ve])}if(y==="upward")return zg(a,b);if(y==="downward")return jg(a,b);if(b.extend){let me=Zf(a,a.position,y);me<0&&(me=0),me>a.lastOffset&&(me=a.lastOffset);const ve=a.setSelection(a.anchor,me);return a.mathfield.stopCoalescingUndo(),ve}if(a.selectionIsPlaceholder){a.collapseSelection(y);const me=Qu(a,y);return a.mathfield.stopCoalescingUndo(),me}let re=a.position;const le=re;if(a.collapseSelection(y)?(re=a.position,_h(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||_h(a,y)?y:Zf(a,y,b)}function _h(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 Fg(a,y,b){let E=1/0,ee=0;for(;ee<y.length;ee++){const re=ld(a.getHTMLElement(y[ee])).right,le=Math.abs(b-re);if(le<=E)E=le;else break}return y[ee-1]}function Hf(a,y,b,E,ee){const re=a.mathfield.hasEditablePrompts,le=re?b.filter(Ae=>Ae.type==="prompt"&&!Ae.captureSelection):b,me=ld(a.mathfield.getHTMLElement(y)).right,ve=a.offsetOf(Fg(a.mathfield,le,me))-(re?1:0);if(E){const[Ae,Pe]=a.selection.ranges[0];let pt;ve<(ee==="up"?Ae:Pe)?pt={ranges:[[ve,Pe]],direction:"backward"}:pt={ranges:[[Ae,ve]],direction:"forward"},a.setSelection(pt)}else a.setPositionHandlingPlaceholder(ve);a.announce(`move ${ee}`)}function zg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("backward");const re=()=>{var ve,Ae;let Pe=!0;return a.silenceNotifications||(Pe=(Ae=(ve=a.mathfield.host)==null?void 0:ve.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Ae:!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 Na);)me=me.parent;if(Array.isArray(me==null?void 0:me.parentBranch)&&me.parent instanceof Na){const ve=me.parent;if(me.parentBranch[0]<1)return re();const Ae=me.parentBranch[0]-1,Pe=ve.array[Ae][me.parentBranch[1]];if(!Pe.some(Nt=>Nt.type==="prompt"&&!Nt.captureSelection)&&a.mathfield.hasEditablePrompts)return re();Hf(a,le,Pe,ee,"up")}else if(me){const ve=(E=me.parent.branch("above"))!=null?E:me.parent.createBranch("above");if(!ve.some(Pe=>Pe.type==="prompt"&&Pe.placeholderId)&&a.mathfield.hasEditablePrompts)return re();Hf(a,le,ve,ee,"up")}else return re();return a.mathfield.stopCoalescingUndo(),!0}function jg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("forward");const re=()=>{var ve,Ae;let Pe=!0;return a.silenceNotifications||(Pe=(Ae=(ve=a.mathfield.host)==null?void 0:ve.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Ae:!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 Na);)me=me.parent;if(Array.isArray(me==null?void 0:me.parentBranch)&&me.parent instanceof Na){const ve=me.parent;if(me.parentBranch[0]+1>ve.array.length-1)return re();const Ae=me.parentBranch[0]+1,Pe=ve.array[Ae][me.parentBranch[1]];if(!Pe.some(Nt=>Nt.type==="prompt"&&!Nt.captureSelection)&&a.mathfield.hasEditablePrompts)return re();Hf(a,le,Pe,ee,"down")}else if(me){const ve=(E=me.parent.branch("below"))!=null?E:me.parent.createBranch("below");if(!ve.some(Pe=>Pe.type==="prompt")&&a.mathfield.hasEditablePrompts)return re();Hf(a,le,ve,ee,"down")}else return re();return!0}function Ph(a){const y=a.position,b=a.at(y).parent;return b!=null&&b.parent?(a.position=a.offsetOf(b),a.mathfield.stopCoalescingUndo(),a.announce("move",y),!0):(a.announce("plonk"),!1)}function $g(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!1):E=!0,b=b.parent;return E?y:0}function Kg(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 Rh(a){var y;if(a.collapseSelection(),$g(a)>=a.mathfield.options.scriptDepth[1])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=b.rightSibling)==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new vu({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function Fh(a){var y;if(a.collapseSelection(),Kg(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 vu({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(ve){const Ae=[],Pe=[];return[...ve.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((Nt,Yt)=>{const rn=E(Nt);rn===0?Ae.push(Nt):Pe.push({documentOrder:Yt,tabIndex:rn,node:Nt})}),Pe.sort((Nt,Yt)=>Nt.tabIndex===Yt.tabIndex?Nt.documentOrder-Yt.documentOrder:Nt.tabIndex-Yt.tabIndex).map(Nt=>Nt.node).concat(Ae)}function y(ve){return!(!b(ve)||ee(ve)||E(ve)<0)}function b(ve){return!(ve.disabled||ve.type==="hidden"&&ve.tagName.toUpperCase()==="INPUT"||me(ve))}function E(ve){var Ae;const Pe=Number.parseInt((Ae=ve.getAttribute("tabindex"))!=null?Ae:"NaN",10);return Number.isNaN(Pe)?ve.contentEditable==="true"||(ve.nodeName==="AUDIO"||ve.nodeName==="VIDEO")&&ve.getAttribute("tabindex")===null?0:ve.tabIndex:Pe}function ee(ve){return ve.tagName.toUpperCase()==="INPUT"&&ve.type==="radio"&&!le(ve)}function re(ve,Ae){for(const Pe of ve)if(Pe.checked&&Pe.form===Ae)return Pe;return null}function le(ve){var Ae;if(!ve.name)return!0;const pt=((Ae=ve.form)!=null?Ae:ve.ownerDocument).querySelectorAll('input[type="radio"][name="'+ve.name+'"]'),Nt=re(pt,ve.form);return!Nt||Nt===ve}function me(ve){if(!lt()||ve===document.activeElement||ve.contains(document.activeElement))return!1;if(getComputedStyle(ve).visibility==="hidden")return!0;const Ae=ve.getBoundingClientRect();if(Ae.width===0||Ae.height===0)return!0;for(;ve;){if(getComputedStyle(ve).display==="none")return!0;ve=ve.parentElement}return!1}return lt()?a(document.body):[]}function _l(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"?_l(a,[y.leftSibling,y]):_l(a,[y,y.leftSibling])}function Pu(a,y){const b=a.position;if(typeof y=="number"&&(y=a.at(y)),y.type==="prompt")a.setSelection(a.offsetOf(y.firstChild),a.offsetOf(y.lastChild));else{const E=a.offsetOf(y);y.type==="placeholder"?a.setSelection(E-1,E):a.position=E}return a.announce("move",b),a.mathfield.stopCoalescingUndo(),!0}function Wf(a,y,b=!0){var E,ee;const re=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Qu(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 ve=D0(a,le,y);if(!ve||y==="forward"&&a.offsetOf(ve)<le||y==="backward"&&a.offsetOf(ve)>le){if(!b||!((ee=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ee))return a.announce("plonk"),!1;const Pe=Zg();if(!document.activeElement||Pe.length<=1)return a.announce("plonk"),!1;let pt=Pe.indexOf(document.activeElement)+re;return pt<0&&(pt=Pe.length-1),pt>=Pe.length&&(pt=0),Pe[pt].focus(),a.mathfield.stopCoalescingUndo(),!0}return Pu(a,ve),!0}function D0(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)}eu({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?Fh(a):Rh(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=>Ph(a),moveToNextChar:a=>Qu(a,"forward"),moveToPreviousChar:a=>Qu(a,"backward"),moveUp:a=>Qu(a,"upward"),moveDown:a=>Qu(a,"downward"),moveToNextWord:a=>bd(a,"forward"),moveToPreviousWord:a=>bd(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 Wf(a,"forward");const re=a.at(a.position);if(re.mode==="text"){if(a.selectionIsCollapsed){let Nt=re;for(;Nt&&Nt.mode==="text";)Nt=Nt.leftSibling;let Yt=re;for(;((y=Yt.rightSibling)==null?void 0:y.mode)==="text";)Yt=Yt.rightSibling;if(Nt&&Yt)return _l(a,[Nt,Yt])}if(re.rightSibling.mode==="text"){let Nt=re;for(;Nt&&Nt.mode==="text";)Nt=Nt.rightSibling;return Nt?(Pu(a,(b=Nt.leftSibling)!=null?b:Nt),a.mathfield.switchMode("math"),!0):Pu(a,a.lastOffset)}}const me=a.at(a.anchor).parentPrompt,ve=me?a.offsetOf(me)+1:Math.max(a.position+1,0),Ae=D0(a,ve,"forward");if(Ae)return Pu(a,Ae);const Pe=zh(a,re,Nt=>Nt.type==="leftright"||Nt.type==="text","forward");if(Pe){if(Pe.mode==="text"){let Nt=Pe;for(;Nt&&Nt.mode==="text";)Nt=Nt.rightSibling;return _l(a,[(E=Pe.leftSibling)!=null?E:Pe,(ee=Nt.leftSibling)!=null?ee:Nt])}return _l(a,Pe)}const pt=re.parent;if(pt){if(pt.type==="leftright"||pt.type==="surd")return _l(a,pt);if(re.parentBranch==="superscript"&&pt.subscript)return _l(a,pt.subscript);if(re.parentBranch==="above"&&pt.below)return _l(a,pt.below);if(re.parentBranch==="superscript"||re.parentBranch==="subscript")return Pu(a,pt);if(re.parentBranch==="above"||re.parentBranch==="below")return _l(a,pt)}return Pu(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Wf(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 ve=b;for(;((y=ve.rightSibling)==null?void 0:y.mode)==="text";)ve=ve.rightSibling;if(me&&ve)return _l(a,[me,ve])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?Pu(a,b):Pu(a,0)}const ee=a.at(a.anchor).parentPrompt,re=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),le=D0(a,re,"backward");if(le)return Pu(a,le);if(E==="math"){const me=zh(a,b,Ae=>Ae.type==="leftright"||Ae.type==="text","backward");if(me){if(me.mode==="text"){let Ae=me;for(;Ae&&Ae.mode==="text";)Ae=Ae.leftSibling;return _l(a,[me,Ae])}return _l(a,me)}const ve=b.parent;if(ve){if(ve.type==="leftright"||ve.type==="surd")return _l(a,ve);if(b.parentBranch==="subscript"&&ve.superscript)return _l(a,ve.superscript);if(b.parentBranch==="below"&&ve.above)return _l(a,ve.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return Pu(a,ve);if(b.parentBranch==="above"||b.parentBranch==="below")return _l(a,ve)}return Pu(a,0)}return!1},moveToMathfieldStart:a=>a.selectionIsCollapsed&&a.position===0?(a.announce("plonk"),!1):(a.position=0,a.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:a=>a.selectionIsCollapsed&&a.position===a.lastOffset?(a.announce("plonk"),!1):(a.position=a.lastOffset,a.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:Rh,moveToSubscript:Fh},{target:"model",changeSelection:!0}),eu({moveToNextPlaceholder:a=>Wf(a,"forward"),moveToPreviousPlaceholder:a=>Wf(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function zh(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 Qc(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(er.serialize([le],{defaultMode:"math"})),le.mode="math"),E-=1,y-=1}I0(a),a.contentDidChange({data:Ka(re),inputType:"insertText"})}function I0(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 Hg(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 Wg(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!Af(b))return!1;const ee=hd(b);if(!E.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ee));const re=Hg(E)+ee;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ee))return!0;if(/[\^_]/.test(ee))return/(^|\s)[a-zA-Z][^_]$/.test(re)&&Qc(E,1),!0;const le={")":"(","}":"{","]":"["}[ee],{parent:me}=E.at(E.position);if(le&&me instanceof Do&&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 Qc(E,1),!1;if(/\D\.[^\d\s]$/.test(re)){Qc(E,1);const ve=E.at(E.position);return ve.value="\u22C5",ve.style.variant="normal",ve.command="\\cdot",ve.verbatimLatex=void 0,E.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(re)||/\.\d$/.test(re)||/\([\d+\-.]$/.test(re))return Qc(E,1),!0;if(/\([a-z][,;]$/.test(re))return Qc(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return I0(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=jh(),E=a.element.getBoundingClientRect();b.style.left=`${E.left}px`,b.style.top=`${E.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(v0(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 Vg(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=jh();y.innerHTML=""}else{const y=If("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function jh(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(ql("keystroke-caption"),ql("core"),If("mathlive-keystroke-caption-panel"))}function Gg(){document.getElementById("mathlive-keystroke-caption-panel")&&(b0("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function $h(a,y){var b,E,ee;const{model:re}=a,le=ph(y);if(y.isTrusted){Rm(y);const Yt=Gd();a.keyboardLayout!==Yt.id&&(a.keyboardLayout=Yt.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,ve="",Ae;const Pe=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(re.mode==="math")if(le==="[Backspace]")Pe.pop();else if(!Af(y))a.flushInlineShortcutBuffer();else{const Yt=hd(y),rn=[...(E=(b=Pe[Pe.length-1])==null?void 0:b.keystrokes)!=null?E:[],Yt];Pe.push({state:re.getState(),keystrokes:rn,leftSiblings:Yg(a)});let jn=0,Zr="";for(;!me&&jn<rn.length;)Ae=Pe.length-(rn.length-jn),Zr=rn.slice(jn).join(""),me=Td(Pe[Ae].leftSiblings,Zr,a.options.inlineShortcuts),!me&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(Zr)&&(me=a.options.onInlineShortcut(a,Zr)),jn+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(me?a.switchMode("math"):Wg(a,le,y)&&(a.switchMode({math:"text",text:"math"}[re.mode]),ve=""))}if(!me){if(ve||(ve=Hm(a.keybindings,re.mode,y)),!ve&&(le==="[Enter]"||le==="[Return]")){let Yt=!1;return re.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(Yt=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),Yt||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),re.contentDidChange({inputType:"insertLineBreak"})),Yt}if((!ve||le==="[Space]")&&re.mode==="math"){if(le==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return Ia.insert(re,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),ve="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const Yt=re.at(re.position+1),rn=re.at(re.position-1);if((Yt==null?void 0:Yt.mode)==="text"||(rn==null?void 0:rn.mode)==="text")return Ia.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===","&&hd(y)===","&&(ve="insertDecimalSeparator")}}if(!me&&!ve){if(re.mathfield.smartFence){if(N0(re,hd(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:Yt}=re.at(re.position);if(Yt instanceof Do&&Yt.rightDelim==="?"&&re.at(re.position).isLastSibling&&/^[)}\]|]$/.test(le))return a.snapshot(),Yt.isDirty=!0,Yt.rightDelim=le,re.position+=1,re.selectionDidChange(),re.contentDidChange({data:hd(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!re.selectionIsCollapsed){const rn=hd(y);if(rn==="("||rn==="{"||rn==="["){const jn={"(":"(","{":"\\lbrace","[":"\\lbrack"}[rn],Zr={"(":")","{":"\\rbrace","[":"\\rbrack"}[rn],[Rn,fr]=ll(re.selection);return a.snapshot(),re.position=fr,Ia.insert(re,Zr,{format:"latex"}),re.position=Rn,Ia.insert(re,jn,{format:"latex"}),re.setSelection(Rn+1,fr+1),re.contentDidChange({data:rn,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const pt=re.at(Math.max(re.position,re.anchor)),{parent:Nt}=pt;if(ve==="moveAfterParent"&&(Nt==null?void 0:Nt.type)==="leftright"&&pt.isLastSibling&&a.options.smartFence&&N0(re,".",a.defaultStyle)&&(ve="",Ts(a)),a.keyboardDelegate.cancelComposition(),ve)a.executeCommand(ve);else if(me){const Yt=a.effectiveStyle;re.setState(Pe[Ae].state);const rn=Pe[Pe.length-1].keystrokes;for(const jn of rn)Ia.insert(re,jn,{silenceNotifications:!0,style:Yt});a.snapshot("insert-shortcut"),re.setState(Pe[Ae].state),re.deferNotifications({content:!0,selection:!0,data:me,type:"insertText"},()=>(Ia.insert(re,me,{format:"latex",style:Yt}),I0(a.model),me.endsWith(" ")&&(a.switchMode("text"),Ia.insert(re," ",{style:Yt,mode:"text"})),a.snapshot(),re.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,re.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function L0(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=Vl(y);const re=window.mathVirtualKeyboard;if(re!=null&&re.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(ve=>ve.toUpperCase())),b.simulateKeystroke){let ve=!0;for(const Ae of ee)$h(a,new KeyboardEvent("keypress",{key:Ae}))&&(ve=!1);if(ve)return}const le=E.at(E.position),me=xe(xe({},le.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(ll(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Df(a);for(const ve of ee)Ia.insert(E,ve);a.snapshot("insert-latex"),Qd(a)});else if(E.mode==="text"){for(const ve of ee)Ia.insert(E,ve,{style:me});a.snapshot("insert-text")}else if(E.mode==="math")for(const ve of ee)Qg(a,ve,me,le);a.dirty=!0,a.scrollIntoView()}function Yg(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),Ia.insert(ee,y,{style:b}),a.snapshot(),Ph(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=xe({},b),le.style.variant&&(b.variant=le.style.variant),le.style.variantStyle&&(b.variantStyle=le.style.variantStyle))}Ia.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function Jg(a){a.selectionIsCollapsed||(a.deleteAtoms(ll(a.selection)),a.mathfield.snapshot("delete"))}function N0(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[ve,Ae]=ll(a.selection),Pe=a.extractAtoms([ve,Ae]),pt=ee.addChildrenAfter([new Do("left...right",Pe,{leftDelim:re,rightDelim:me})],a.at(ve));return a.setSelection(a.offsetOf(pt.firstChild),a.offsetOf(pt.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(re==="|"){const ve=ee instanceof Do?ee.leftDelim+ee.rightDelim:"";if(ve==="\\lbrace\\rbrace"||ve==="\\{\\}"||ve==="\\lbrace?")return a.mathfield.snapshot(),Ia.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 Do&&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 Do)){let pt=E;for(;pt&&!(pt.type==="mclose"&&pt.value===me);)pt=pt.rightSibling;if(pt){a.mathfield.snapshot();const Nt=a.extractAtoms([a.offsetOf(E),a.offsetOf(pt)]);return Nt.pop(),ee.addChildrenAfter([new Do("left...right",Nt,{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 ve=a.offsetOf(E.lastSibling);let Ae;for(Ae=a.position;Ae<=ve;Ae++){const pt=a.at(Ae);if(pt instanceof Do&&(pt.leftDelim==="?"||pt.leftDelim===".")&&Kh(re,pt.rightDelim))break}const Pe=a.at(Ae);if(Ae<=ve&&Pe instanceof Do){Pe.leftDelim=re,a.mathfield.snapshot();let pt=a.extractAtoms([a.position,Ae-1]);return pt=pt.filter(Nt=>Nt.type!=="first"),Pe.addChildren(pt,Pe.parentBranch),a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof Do&&(ee.leftDelim==="?"||ee.leftDelim===".")&&Kh(re,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=re,a.mathfield.snapshot();const pt=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const Nt of pt)ee.parent.addChildBefore(Nt,ee);return a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof Do&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),Ia.insert(a,`\\left${re}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const pt=a.offsetOf(E.lastSibling),Nt=a.extractAtoms([a.position,pt]);a.at(a.position).body=Nt,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(le){let ve=E;for(;ve;){if(ve.type==="mopen"&&ve.value===le){a.mathfield.snapshot();const Yt=ve.leftSibling,rn=a.extractAtoms([a.offsetOf(ve.leftSibling),a.offsetOf(E)]);rn.shift();const jn=new Do("left...right",rn,{leftDelim:le,rightDelim:re});return ee.addChildrenAfter([jn],Yt),a.position=a.offsetOf(jn),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}ve=ve.leftSibling}if(ee instanceof Do&&E.isLastSibling&&T0(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 Ae=a.offsetOf(E.firstSibling);let Pe;for(Pe=a.position;Pe>=Ae;Pe--){const Yt=a.at(Pe);if(Yt instanceof Do&&(Yt.rightDelim==="?"||Yt.rightDelim===".")&&T0(Yt.leftDelim,re))break}const pt=a.at(Pe);if(Pe>=Ae&&pt instanceof Do)return a.mathfield.snapshot(),pt.rightDelim=re,pt.addChildren(a.extractAtoms([Pe,a.position]),pt.parentBranch),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof Do&&(ee.rightDelim==="?"||ee.rightDelim===".")&&T0(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 Nt=ee.parent;return Nt instanceof Do&&(Nt.rightDelim==="?"||Nt.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(Nt),N0(a,re,b)):!1}return!1}function T0(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):ne[a]===y:!0}function Kh(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):te[y]===a:!0}eu({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:Vg,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)=>(L0(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}}),eu({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"}),eu({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"}),Ts(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function Xg(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=B0(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=xe(xe({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{E.selection.ranges.forEach(ee=>M0(E,ee,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}eu({applyStyle:Xg},{target:"mathfield",canUndo:!0,changeContent:!0});function B0(a,y){var b,E,ee,re,le,me,ve,Ae,Pe,pt;const Nt={};if(typeof y.color=="string"){const rn=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";rn!==y.color&&(Nt.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),Nt.color=rn}if(typeof y.backgroundColor=="string"){const rn=(le=a.backgroundColorMap((re=y.backgroundColor)!=null?re:y.verbatimBackgroundColor))!=null?le:"none";rn!==y.backgroundColor&&(Nt.verbatimBackgroundColor=(me=y.verbatimBackgroundColor)!=null?me:y.backgroundColor),Nt.backgroundColor=rn}typeof y.fontFamily=="string"&&(Nt.fontFamily=y.fontFamily),typeof y.series=="string"&&(Nt.fontSeries=y.series),typeof y.fontSeries=="string"&&(Nt.fontSeries=y.fontSeries.toLowerCase()),Nt.fontSeries&&(Nt.fontSeries=(ve={bold:"b",medium:"m",normal:"m"}[Nt.fontSeries])!=null?ve:Nt.fontSeries),typeof y.shape=="string"&&(Nt.fontShape=y.shape),typeof y.fontShape=="string"&&(Nt.fontShape=y.fontShape.toLowerCase()),Nt.fontShape&&(Nt.fontShape=(Ae={italic:"it",up:"n",upright:"n",normal:"n"}[Nt.fontShape])!=null?Ae:Nt.fontShape),y.variant&&(Nt.variant=y.variant.toLowerCase()),y.variantStyle&&(Nt.variantStyle=y.variantStyle.toLowerCase());const Yt=(Pe=y.size)!=null?Pe:y.fontSize;return typeof Yt=="number"?Nt.fontSize=Math.max(1,Math.min(10,Yt)):typeof Yt=="string"&&(Nt.fontSize=(pt={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[Yt.toLowerCase()])!=null?pt:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[Yt]),Nt}function O0(a){let[y,b]=ll(a.selection);if(y=Zh(a,y,"backward"),b=Zh(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 Zh(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"||!pe.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 ve=(ee=a.at(y))==null?void 0:ee.style;for(;ve&&ve.variant===le.style.variant&&ve.variantStyle===le.style.variantStyle;)ve=(re=a.at(y+me))==null?void 0:re.style,y+=me;return b==="backward"?y-1:y}return y}return y}eu({selectGroup:a=>{const y=O0(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Qu(a,"forward",{extend:!0}),extendSelectionBackward:a=>Qu(a,"backward",{extend:!0}),extendToNextWord:a=>bd(a,"forward",{extend:!0}),extendToPreviousWord:a=>bd(a,"backward",{extend:!0}),extendSelectionUpward:a=>Qu(a,"upward",{extend:!0}),extendSelectionDownward:a=>Qu(a,"downward",{extend:!0}),extendToNextBoundary:a=>bd(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>bd(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 Jc=null,nf=0,Vf=class Su{static start(y,b,E,ee){var re;Su.element=y,(re=Su.controller)==null||re.abort(),Su.controller=new AbortController;const le={signal:Su.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,le),y.addEventListener("pointerup",ee,le),y.addEventListener("pointercancel",ee,le),_0(b)&&(Su.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=Su.controller)==null||y.abort(),Su.controller=void 0,typeof Su.pointerId=="number"&&(Su.element.releasePointerCapture(Su.pointerId),Su.pointerId=void 0)}};function _0(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function Hh(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const E=a;let ee,re=!1,le=!1,me="none",ve=!1,Ae=!1;const Pe=y.clientX,pt=y.clientY,Nt=Date.now(),Yt=E.field,rn=setInterval(()=>{ve?Yt.scroll({top:0,left:Yt.scrollLeft-16}):Ae&&Yt.scroll({top:0,left:Yt.scrollLeft+16})},32);function jn(){Vf.stop(),re=!1,clearInterval(rn),a.element.classList.remove("tracking"),y&&y.preventDefault()}function Zr(fr){if(!E.hasFocus()){jn();return}const qr=fr.clientX,Sr=fr.clientY,Ki=_0(fr)&&fr.pointerType==="touch"?20:5;if(Date.now()<Nt+500&&Math.abs(Pe-qr)<Ki&&Math.abs(pt-Sr)<Ki){fr.preventDefault(),fr.stopPropagation();return}const ra=Yt.getBoundingClientRect();Ae=qr>ra.right,ve=qr<ra.left;let Xi=ee;_0(fr)&&(fr.isPrimary||(Xi=rf(E,fr.clientX,fr.clientY,{bias:0})));const so=rf(E,qr,Sr,{bias:qr<=Pe?qr===Pe?0:-1:1});Xi>=0&&so>=0&&(E.model.extendSelectionTo(Xi,so),Ts(a)),le&&O0(E.model)}Jc&&Math.abs(Jc.x-Pe)<5&&Math.abs(Jc.y-pt)<5&&Date.now()<Jc.time+500?(nf+=1,Jc.time=Nt):(Jc={x:Pe,y:pt,time:Nt},nf=1);const Rn=Yt.getBoundingClientRect();if(Pe>=Rn.left&&Pe<=Rn.right&&pt>=Rn.top&&pt<=Rn.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=rf(a,Pe,pt,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const fr=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),vh(a.model)||fr?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,vh(a.model)?me="all":me="selection");a.defaultStyle={},y.detail===3||nf>2?(jn(),(y.detail===3||nf===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},me="all")):re||(re=!0,Vf.start(Yt,y,Zr,jn),(y.detail===2||nf===2)&&(le=!0,O0(a.model),me="all"))}a.hasFocus()||(me="none",a.focus({preventScroll:!0}))}else Jc=null;a.stopCoalescingUndo(),me!=="none"&&(a.model.selectionIsCollapsed&&(me="all"),Ts(a)),y.preventDefault()}function qg(a,y,b){if(a>=b.left&&a<=b.right&&y>=b.top&&y<=b.bottom)return 0;const E=a-(b.left+b.right)/2,ee=y-(b.top+b.bottom)/2;return E*E+ee*ee}function Wh(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const re=Ec(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 ve=Wh(a,y,me,E,ee);ve[0]<=le[0]&&(le=ve)}return le[1]||(le=[qg(E,ee,re),b]),y.set(b.id,le),le}function ev(a,y,b){const[,E]=Wh(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 ve=le;for(;ve;)me.unshift(ve),ve=ve.parent;for(const Pe of me)if(Pe.captureSelection){le=Pe;break}let Ae=a.model.offsetOf(le);if(Ae<0)return-1;if(le.leftSibling)if(E.bias===0&&le.type!=="placeholder"){const Pe=Ec(a,le);Pe&&y<(Pe.left+Pe.right)/2&&(Ae=a.model.offsetOf(le.leftSibling))}else E.bias<0&&(Ae=a.model.offsetOf(le.leftSibling));return Ae}var tv=class extends Ia{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=kc(re),{model:me}=a;me.selectionIsCollapsed||me.deleteAtoms(ll(me.selection));const ve=me.at(me.position);if(ve.parent instanceof Na){console.assert(ve.parentBranch!==void 0);const Ae=[];let Pe=[];le[0].type==="first"&&le.shift(),le[le.length-1].type==="first"&&le.pop();for(const rn of le)rn.type==="first"&&Pe.length>0?(Ae.push(Pe),Pe=[rn]):Pe.push(rn);Pe.length>0&&Ae.push(Pe);let pt=Number(ve.parentBranch[0]),Nt=Number(ve.parentBranch[1]);const Yt=ve.parent.maxColumns;for(;ve.parent.colCount-Nt<Ae.length&&ve.parent.colCount<Yt;)ve.parent.addColumn();ve.parent.addChildrenAfter(Ae[0],ve);for(let rn=1;rn<Ae.length;rn++)Nt++,Nt>=Yt&&(Nt=0,ve.parent.addRowAfter(pt),pt++),ve.parent.setCell(pt,Nt,Ae[rn])}else ve.parent.addChildrenAfter(le.filter(Ae=>Ae.type!=="first"),ve);return me.position=me.offsetOf(le[le.length-1]),me.contentDidChange({inputType:"insertFromPaste"}),Ts(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]=Wu(b),E==="auto"&&re&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),Ts(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 ve={"?":"\\placeholder{}","@":"\\placeholder{}"};ve[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(ll(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 Ae=-1;ve[0]?ve["@"]=ve[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(Ae=rv(a),Ae>=0&&(ve["@"]=a.getValue(Ae,a.position,"latex"))),ve[0]||(ve[0]=ve["?"]);let Pe=!1;const pt=qr=>(Pe=!0,ve[qr]);let[Nt,Yt]=Uh(a,y,pt,b);if(!Yt)return!1;const rn=Yt.length===1&&Yt[0].type==="genfrac";rn&&Ae>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(ve["@"]=ve["?"],Pe=!1,[Nt,Yt]=Uh(a,y,pt,b)):Ae>=0&&a.deleteAtoms([Ae,a.position]);const{parent:jn}=a.at(a.position),Zr=jn.hasEmptyBranch("body");if(rn&&Nt!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&jn instanceof Do&&jn.leftDelim==="("&&Zr){const qr=jn.parent,Sr=jn.parentBranch;qr.removeChild(jn),qr.setChildren(Yt,Sr)}const Rn=a.at(a.position);Rn.parent.addChildrenAfter(Yt,Rn),Nt==="latex"&&typeof y=="string"&&(jn==null?void 0:jn.type)==="root"&&Zr&&!Pe&&(jn.verbatimLatex=y),a.silenceNotifications=me;const fr=Yt[Yt.length-1];if(b.selectionMode==="placeholder"){const qr=Yt.flatMap(Sr=>[Sr,...Sr.children]).find(Sr=>Sr.type==="placeholder");if(qr){const Sr=a.offsetOf(qr);a.setSelection(Sr-1,Sr),a.announce("move")}else fr&&(a.position=a.offsetOf(fr))}else b.selectionMode==="before"||(b.selectionMode==="after"?fr&&(a.position=a.offsetOf(fr)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(fr)));return a.contentDidChange({data:re,inputType:"insertText"}),a.silenceNotifications=le,!0}};function Uh(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=cl(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([re,y]=jc(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),le=cl(y,{context:a.mathfield.context}),re!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Gf(le)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([re,y]=jc(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=Wu(y)),le=cl(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Gf(le));return Ic(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 Do&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function Gf(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof Do&&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)){Gf(y.branch(b));const E=nv(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof Na)for(const b of y.cells)Gf(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||Vh(y));)y=y.leftSibling;else{const ee=[];for(;!y.isFirstSibling&&(Vh(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 Vh(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 Ia{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"),Ts(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(ll(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(Ic(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 "),cl(a,{context:y,parseMode:"text"})}new iv;function Ju(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var as=4,Kl=20,Xs=2*(Kl+as),Yf=(a,y)=>`
|
|
|
<line x1="${a+Kl}" y1="${y+Kl}"
|
|
|
x2="${a>y?a+Kl:7*Kl+10*as}"
|
|
|
y2="${a<y?y+Kl:7*Kl+10*as}"/>
|
|
|
<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>`,Gh=(a,y)=>`
|
|
|
<line x1="${a+Kl}" y1="${y+Kl}"
|
|
|
x2="${a>y?a+Kl:7*Kl+10*as}"
|
|
|
y2="${a<y?y+Kl:7*Kl+10*as}"/>
|
|
|
<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*Kl+10*as+5} ${8*Kl+10*as+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${Xs+as}"
|
|
|
height="${3*Xs}"
|
|
|
width="${Xs}"
|
|
|
rx="${Xs/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${Xs+as}"
|
|
|
y="0"
|
|
|
height="${Xs}"
|
|
|
width="${3*Xs}"
|
|
|
rx="${Xs/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${Qf(2*(as+Xs),2*as+3*Xs,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${Qf(2*(as+Xs),2*as+Xs,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${Qf(2*as+3*Xs,2*(as+Xs),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${Qf(2*as+Xs,2*(as+Xs),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${Yf(2*as+Xs,as)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${Gh(2*as+2*Xs,as)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${Yf(2*as+3*Xs,as)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${Yf(as,2*as+Xs)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${Gh(as,2*as+2*Xs)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${Yf(as,2*as+3*Xs)}
|
|
|
</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>`,Yh=a=>`
|
|
|
<svg id="Bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","Bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,uv=a=>`
|
|
|
<svg id="bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4h-3v16h3"/>
|
|
|
<path class="cls-2" d="m22,4h3v16h-3"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,cv=a=>`
|
|
|
<svg id="vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
|
|
|
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
|
|
|
</svg>`,dv=a=>`
|
|
|
<svg id="Vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
|
|
|
data-command='["setEnvironment","Vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
|
|
|
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
|
|
|
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
|
|
|
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
|
|
|
</svg>`,fv=a=>`
|
|
|
<svg id="cases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","cases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<circle cx="13" cy="8" r="1"/>
|
|
|
<circle cx="13" cy="16" r="1"/>
|
|
|
<circle cx="21" cy="8" r="1"/>
|
|
|
<circle cx="21" cy="16" r="1"/>
|
|
|
</svg>`,hv=a=>`
|
|
|
<svg id="rcases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","rcases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
|
|
|
<circle cx="15" cy="8" r="1"/>
|
|
|
<circle cx="15" cy="16" r="1"/>
|
|
|
<circle cx="7" cy="8" r="1"/>
|
|
|
<circle cx="7" cy="16" r="1"/>
|
|
|
</svg>`,P0={matrix:sv,pmatrix:lv,bmatrix:uv,Bmatrix:Yh,vmatrix:cv,Vmatrix:dv},R0={cases:fv,rcases:hv,Bmatrix:Yh};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(rn=>{(!ee||rn.length>ee)&&(ee=rn.length)});let re=document.getElementById("mathlive-environment-popover");re||(re=If("mathlive-environment-popover"),ql("environment-popover"),ql("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 ve=[],Ae="";const Pe=a.model.parentEnvironment.environmentName;if(Dl(Pe)){const rn=gv(Pe);Ae=P0[rn]("active");const jn=P0,{[rn]:Zr}=jn,Rn=qe(jn,[Te(rn)]);ve=Object.values(Rn).map(fr=>fr("inactive"))}else if(Il(Pe)){const rn=vv(Pe);Ae=R0[rn]("active");const jn=R0,{[rn]:Zr}=jn,Rn=qe(jn,[Te(rn)]);ve=Object.values(Rn).map(fr=>fr("inactive"))}else Us(Pe)&&(Ae=P0.matrix("active"),ve=Object.values(R0).map(rn=>rn("inactive")));const pt=document.createElement("div");pt.className="MLEP__environment-delimiter-controls",pt.style.display="flex",pt.style.flexDirection="column",pt.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${Ae}
|
|
|
${ve.join("")}
|
|
|
</div>`,Ae&&le.appendChild(pt),le.querySelectorAll("[data-command]").forEach(rn=>{const jn=rn.dataset.command;let Zr=jn;try{Zr=JSON.parse(jn)}catch(Rn){}rn.addEventListener("mousedown",Rn=>Rn.preventDefault()),Zr&&rn.addEventListener("click",()=>a.executeCommand(Zr))});const Yt=(b=a.field)==null?void 0:b.getBoundingClientRect();Yt&&(re.style.top=`${window.scrollY+(Yt.top-re.clientHeight-15)}px`,re.style.left=`${Yt.left+20}px`,re.classList.add("is-visible"))}function F0(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function mv(){document.getElementById("mathlive-environment-popover")&&(b0("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&&Es(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?pv(a):F0()}function gv(a){return a.replace("*","")}function vv(a){return a==="dcases"?"cases":a}function Qh(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function Jh(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function z0(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=Qh(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 ve=Math.min(me,(E=y.height)!=null?E:le.height),Ae=z0(y.location.y,ve,y.verticalPos,re);Ae+ve>window.innerHeight-8&&(y.alternateLocation?(Ae=z0(y.alternateLocation.y,ve,y.verticalPos,re),Ae+ve>window.innerHeight-8&&(Ae=void 0)):Ae=void 0),Number.isFinite(Ae)||(Ae=Math.max(8,window.innerHeight-8-ve),8+ve>window.innerHeight-8&&(a.style.bottom="8px")),ve=Math.min(Ae+ve,window.innerHeight-8)-Ae;const Pe=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let pt=Math.min(Pe,(ee=y.width)!=null?ee:le.width),Nt=z0(y.location.x,pt,y.horizontalPos,re);Nt+pt>window.innerWidth-8&&(y.alternateLocation?(Nt=yv(y.alternateLocation.x,pt,y.verticalPos,re),Nt+pt>window.innerWidth-8&&(Nt=void 0)):Nt=void 0),Number.isFinite(Nt)||(Nt=Math.max(8,window.innerWidth-8-pt),8+pt>window.innerWidth-8&&(a.style.right="8px")),pt=Math.min(Nt+pt,window.innerWidth-8)-Nt,re==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-Nt-pt).toString()}px`:a.style.left=`${Math.ceil(Nt).toString()}px`,a.style.top=`${Math.ceil(Ae).toString()}px`,ve!==le.height&&(a.style.height=`${Math.ceil(ve).toString()}px`),pt!==le.width&&(a.style.width=`${Math.ceil(pt).toString()}px`)}function xv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function xd(a){return"submenu"in a}function Xu(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function j0(a){return"type"in a&&a.type==="divider"}function $0(a){return"type"in a&&a.type==="heading"}var Xh={};function K0(a){let y=Xh[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,Xh[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 qh=80,ep=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,xd(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=Xu(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(j0(ee)){this.enabled=!1,this.checked=!1;return}$0(ee)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Xu(ee)&&(this.checked=Xu(ee)&&((y=Sd(ee.checked,a))!=null?y:!1)),(Xu(ee)||xd(ee))&&(this.enabled=(b=Sd(ee.enabled,a))!=null?b:!0,this.visible=(E=Sd(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Xu(ee)||$0(ee)||xd(ee))&&(this.label=Sd(ee.label,a),this.tooltip=Sd(ee.tooltip,a),this.ariaLabel=Sd(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(K0("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(K0("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),Xu(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=v0(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(K0("trailing-chevron"))}get element(){if(this._element)return this._element;if(j0(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,(Xu(this._declaration)||$0(this._declaration)||xd(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(!Xu(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()},qh)},qh)}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=Qh(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:Jh(b,"trailing",E),y:b.top-4},alternateLocation:{x:Jh(b,"leading",E),y:b.top-4}})}movingTowardSubmenu(a){if(!this.element||this.type!=="submenu")return!1;const y=this.rootMenu.lastMoveEvent;if(!y)return!1;const b=a.timeStamp-y.timeStamp;if(b>500)return!1;const E=a.clientX-y.clientX;if(Sv(E,y.clientY-a.clientY,b)<=.2)return!1;let 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 Sv(a,y,b){return Math.hypot(a,y)/b}function Sd(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 Id{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(Ae=>Ae.updateState(y));const re=this.hasCheck;this.hasCheck=this._menuItems.some(Ae=>Ae.visible&&Ae.hasCheck),this.hasCheck!==re&&this._menuItems.forEach(Ae=>Ae.updateState(y));let le,me=0;for(const Ae of this._menuItems)Ae.type==="heading"?(le&&me===0&&(le.visible=!1),le=Ae,me=0):Ae.type==="divider"&&le?(le.visible=me>0,le=void 0,me=0):le&&Ae.visible&&(me+=1);le&&(le.visible=me>0);let ve=!0;for(const Ae of this._menuItems)Ae.type==="divider"?(Ae.visible=!ve,ve=!0):Ae.visible&&(ve=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((E=this.activeMenuItem)!=null&&E.enabled)&&((ee=this.activeMenuItem)==null?void 0:ee.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible&&y.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible)}set dirty(y){console.assert(y===!0),this._dirty!==y&&y&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var y;if(this._element){this._element.textContent="";for(const{element:b,visible:E}of this._menuItems)b&&E&&this._element.append(b);(y=this._element.querySelector("li:first-of-type"))==null||y.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const y=document.createElement("menu");y.setAttribute("role","menu"),y.setAttribute("tabindex","-1"),y.setAttribute("aria-orientation","vertical"),y.setAttribute("part","ui-menu-container"),this._submenuClass&&y.classList.add(this._submenuClass),y.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const b=this._abortController.signal;return y.addEventListener("focus",this,{signal:b}),y.addEventListener("wheel",this,{passive:!0,signal:b}),this._element=y,this.updateElement(),y}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(y){var b,E,ee,re;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const le=this.activeMenuItem;le.active=!1,(b=le.submenu)==null||b.hide()}if(!((E=y==null?void 0:y.visible)==null||E)){this._activeMenuItem=null;return}this._activeMenuItem=y,y&&(y.active=!0)}y?(ee=y.element)==null||ee.focus({preventScroll:!0}):(re=this._element)==null||re.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const E=this._menuItems;for(;!b&&y<=E.length-1;){const ee=E[y];b=ee.type!=="divider"&&ee.visible&&ee.enabled,y+=1}return b?E[y-1]:null}get lastMenuItem(){this.updateIfDirty();const y=this._menuItems;let b=y.length-1,E=!1;for(;!E&&b>=0;){const ee=y[b];E=ee.type!=="divider"&&ee.visible&&ee.enabled,b-=1}return E?y[b+1]:null}nextMenuItem(y){if(y===0)return this._activeMenuItem;if(!this._activeMenuItem)return y>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const b=this._menuItems.indexOf(this.firstMenuItem),E=this._menuItems.indexOf(this.lastMenuItem);let ee=this._menuItems.indexOf(this._activeMenuItem),re=1;for(;ee>=b&&ee<=E;){ee+=y>0?1:-1;const le=this._menuItems[ee];if(!le)break;if(le.visible&&le.enabled){if(re===Math.abs(y))return this._menuItems[ee];re+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const E=this._menuItems.filter(ee=>ee.visible&&ee.enabled).indexOf(y);return E<0?-1:E%this.columnCount}static get collator(){return Id._collator||(Id._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Id._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=>Id.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),At()&&(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),At()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(E=(b=this.parentMenu)==null?void 0:b.element)==null||E.focus(),(re=(ee=this._element)==null?void 0:ee.parentNode)==null||re.removeChild(this._element)}set openSubmenu(y){var b,E,ee,re;const le=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",le.toString())),(re=(ee=this.activeMenuItem)==null?void 0:ee.element)==null||re.classList.toggle("is-submenu-open",le),this.isSubmenuOpen=le}},np=class rm extends tp{constructor(y,b){var E;super(y),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(E=b==null?void 0:b.host)!=null?E:null,this.isDynamic=y.some(rp),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){jm(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=Zc(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ee;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Zc(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(Zc(y));break;case"ArrowRight":if((me==null?void 0:me.type)==="submenu")me.select(Zc(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!me)le.activeMenuItem=le.firstMenuItem;else{const ve=(b=le.getMenuItemColumn(me))!=null?b:-1;if(ve>=0&&ve<((E=le.columnCount)!=null?E:1)-1){const Ae=le.nextMenuItem(1);Ae&&(le.activeMenuItem=Ae)}}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 Ae=le.parentMenu.activeMenuItem;if(Ae){const{element:Pe}=Ae;Pe==null||Pe.focus(),Pe==null||Pe.classList.remove("is-submenu-open")}}else{const Ae=le.nextMenuItem(-1);Ae&&(le.activeMenuItem=Ae)}break;case"ArrowDown":le.activeMenuItem=le.nextMenuItem(le.columnCount);break;case"ArrowUp":le.activeMenuItem=le.nextMenuItem(-le.columnCount);break;case"Home":case"PageUp":le.activeMenuItem=le.firstMenuItem;break;case"End":case"PageDown":le.activeMenuItem=le.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const ve=le.findMenuItem(this.typingBuffer);ve&&(le.activeMenuItem=ve),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Af(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const ve=le.findMenuItem(this.typingBuffer);ve&&(le.activeMenuItem=ve),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else re=!1}re&&(y.preventDefault(),y.stopPropagation())}handleEvent(y){if(y.type==="keydown")this.handleKeydownEvent(y);else if(y.type==="keyup")this.handleKeyupEvent(y);else if(y.type==="pointermove")this.lastMoveEvent=y;else if(y.type==="pointerup"&&y.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(y.type==="contextmenu"){y.preventDefault(),y.stopPropagation();return}super.handleEvent(y)}dispatchEvent(y){return this._host?this._host.dispatchEvent(y):!0}get scrim(){return Gu.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),Gu.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),Gu.state==="open"&&Gu.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(we(xe({},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,Gu.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(y){this.cancelDelayedOperation();const b=rm.SUBMENU_DELAY;if(b<=0){y();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,y()},b)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};np.SUBMENU_DELAY=120;var Cv=np;function rp(a){return j0(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Xu(a)||xd(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Xu(a)&&typeof a.checked=="function"?!0:xd(a)?a.submenu.some(rp):!1}var Xf=class{};Xf.DELAY=300,Xf.MAX_DISTANCE=10;function wv(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)<Xf.MAX_DISTANCE)},Xf.DELAY),le=new AbortController,me=le.signal;for(const ve of["pointermove","pointerup","pointercancel"])window.addEventListener(ve,Ae=>{if(Ae.type==="pointerup"||Ae.type==="pointercancel")clearTimeout(re),le.abort(),y(!1);else if(Ae.type==="pointermove"){const Pe=Mf(Ae);Pe&&(ee=Pe)}},{passive:!0,signal:me})})}function ip(a,y,b){return Tc(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:Mf(E),modifiers:Zc(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:Zc(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 wv(a))return b.state!=="closed"?!1:(b.show({target:y,location:ee}),!0)}return!1})}var ap={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};bt(Object.keys(ap),"{body:auto}",{createAtom:a=>new z(we(xe({},a),{body:et(a.args[0]),accentChar:ap[a.command.slice(1)]}))}),bt(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=Xe(et(a.args[0]));return new z(we(xe({},a),{body:et(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),bt(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(we(xe({},a),{body:et(a.args[0]),svgAccent:"overarc"}))}),bt(["underarc","underparen"],"{body:auto}",{createAtom:a=>new yu(we(xe({},a),{body:et(a.args[0]),svgBelow:"underarc"}))}),bt("utilde","{body:auto}",{createAtom:a=>{const y=et(a.args[0]),b=Xe(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new yu(we(xe({},a),{body:y,svgBelow:E,boxType:$u(y)}))}}),bt("^","{:string}",{createAtom:a=>{var y;return new er(we(xe({},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:"^"}))}}),bt("`","{:string}",{createAtom:a=>{var y;return new er(we(xe({},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:"`"}))}}),bt("'","{:string}",{createAtom:a=>{var y;return new er(we(xe({},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:"'"}))}}),bt('"',"{:string}",{createAtom:a=>{var y,b;return new er(we(xe({},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]:'"'}))}}),bt(".","{:string}",{createAtom:a=>{var y,b;return new er(we(xe({},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]:"."}))}}),bt("=","{:string}",{createAtom:a=>{var y,b;return new er(we(xe({},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]:"="}))}}),bt("~","{:string}",{createAtom:a=>{var y;return new er(we(xe({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"}))}}),bt("c","{:string}",{createAtom:a=>{var y;return new er(we(xe({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),bt("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 ve=me.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(ve)ee.strokeWidth=ve[1],ee.strokeStyle=ve[2],ee.strokeColor=ve[3];else{const Ae=me.match(/\s*([a-z]*)\s*=\s*"(.*)"/);Ae&&(Ae[1]==="mathbackground"?ee.backgroundcolor=Ae[2]:Ae[1]==="mathcolor"?ee.strokeColor=Ae[2]:Ae[1]==="padding"?ee.padding=Ae[2]:Ae[1]==="shadow"&&(ee.shadow=Ae[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 jd(a.command,et(E[2]),re,ee)}}),bt("cancel","{body:auto}",{createAtom:a=>{var y;return new jd(a.command,et(a.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),bt("bcancel","{body:auto}",{createAtom:a=>{var y;return new jd(a.command,et(a.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),bt("xcancel","{body:auto}",{createAtom:a=>{var y;return new jd(a.command,et(a.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),bt(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new yu(we(xe({},a),{body:et((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),bt("overbrace","{:auto}",{createAtom:a=>new yu(we(xe({},a),{body:et(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),bt(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new yu(we(xe({},a),{body:et(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),bt(["underbrace"],"{:auto}",{createAtom:a=>new yu(we(xe({},a),{body:et(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),bt(["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 yu(we(xe({},a),{svgBody:a.command.slice(1),above:((b=et((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:et((E=a.args)==null?void 0:E[1]),below:(re=et((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)}`}),bt(["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 Kc(a.command.slice(1),we(xe({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),bt(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new Kc({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],we(xe({},a),{limits:"over-under",variant:"main"}))}),bt(["lim","mod"],"",{ifMode:"math",createAtom:a=>new Kc(a.command.slice(1),we(xe({},a),{limits:"over-under",variant:"main"}))}),bt(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new Kc(a.command.slice(1),we(xe({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),bt(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new er(we(xe({},a),{body:et(a.args[0])})),serialize:(a,y)=>`\\ang{${a.bodyToLatex(y)}}`,render:(a,y)=>{const b=a.createBox(y),E=b.caret;b.caret=void 0;const ee=new Kr("\xB0",{style:we(xe({},a.style),{variant:"normal",variantStyle:"up"})});return new Kr([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),bt("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new oh(we(xe({},a),{body:et(a.args[1]),index:a.args[0]?et(a.args[0]):void 0}))}),bt(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=xe({},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 dd(E[0]?et(E[0]):[new sa],E[1]?et(E[1]):[new sa],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}`:Ko(a.command,b,E)}}),bt(["brace","brack"],"",{infix:!0,createAtom:a=>new dd(et(a.args[0]),et(a.args[1]),we(xe({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>Ka([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),bt(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new dd(et(E[0]),et(E[1]),we(xe({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>Ka([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),bt(["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 dd(et(E[0]),et(E[1]),we(xe({},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)}`}),bt("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new dd(et(a.args[0]),et(a.args[1]),we(xe({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),bt(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new f0({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)],we(xe({},a),{limits:"auto",variant:"main"}))}),bt("smallint","",{ifMode:"math",createAtom:a=>new Kc("\u222B",we(xe({},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"};bt(Object.keys(op),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=op[y.slice(1)];return new f0(b,we(xe({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),bt(["Re","Im"],"",{ifMode:"math",createAtom:a=>new Kc({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],we(xe({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),bt("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new rh(we(xe({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),bt("the","{:value}",{createAtom:a=>new er(we(xe({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new qa({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const re=E.evaluate(a.args[0]);return new Kr(((b=gs(re))!=null?b:"").split("").map(le=>new Kr(le,{type:"ord",classes:ee,mode:a.mode,isSelected:a.isSelected,style:xe({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=gs(a.args[0]))!=null?y:"\\relax"}`}}),bt("mathtip","{:auto}{:math}",{createAtom:a=>new h0(we(xe({},a),{body:et(a.args[0]),tooltip:et(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${er.serialize([a.tooltip],we(xe({},y),{defaultMode:"math"}))}}`}),bt("texttip","{:auto}{:text}",{createAtom:a=>new h0(we(xe({},a),{body:et(a.args[0]),tooltip:et(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${er.serialize([a.tooltip],we(xe({},y),{defaultMode:"text"}))}}`}),bt("error","{:math}",{createAtom:a=>new er(we(xe({},a),{body:et(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),bt("ensuremath","{:math}",{createAtom:a=>new er(we(xe({},a),{body:et(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(we(xe({},y),{defaultMode:"math"}))}}`}),bt("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=gs(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),bt("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=gs(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),bt("boxed","{content:math}",{createAtom:a=>new js(we(xe({},a),{body:et(a.args[0]),framecolor:{string:"black"}}))}),bt("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=gs(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),bt("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new js(we(xe({},a),{body:et(a.args[2]),framecolor:(y=a.args[0])!=null?y:{string:"blue"},backgroundcolor:(b=a.args[1])!=null?b:{string:"yellow"}}))},serialize:(a,y)=>{var b,E;return y.skipStyles?a.bodyToLatex(we(xe({},y),{defaultMode:"text"})):Ko(a.command,(b=gs(a.framecolor))!=null?b:"",(E=gs(a.backgroundcolor))!=null?E:"",a.bodyToLatex(we(xe({},y),{defaultMode:"text"})))}}),bt("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=et(a.args[1]);return b?new js(we(xe({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new js(we(xe({},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=gs(a.padding))!=null?b:""),a.border&&re.push(`border: ${a.border}`),a.backgroundcolor&&re.push((E=gs(a.backgroundcolor))!=null?E:""),ee+=`[${re.join(",")}]`}return Ko(ee,a.bodyToLatex(y))}}),bt(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new er(we(xe({},a),{body:et(a.args[0])})),render:(a,y)=>{const b=new qa({parent:y,mathstyle:a.command.slice(1)},a.style),E=er.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):`{${Ka([a.command,a.bodyToLatex(y)])}}`}),bt(["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]})}),bt("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),bt("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),bt("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),bt("selectfont","",{ifMode:"text",applyStyle:()=>({})}),bt("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),bt(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new er(we(xe({},a),{body:et(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),bt("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),bt("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),bt("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),bt("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),bt("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),bt("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),bt("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),bt("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),bt("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),bt("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),bt("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),bt("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),bt("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),bt("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),bt("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),bt("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),bt("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),bt("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),bt("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),bt("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),bt("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),bt("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),bt("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),bt("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),bt("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),bt("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),bt("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),bt(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),bt(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),bt("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),bt("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),bt("mbox","{:text}",{ifMode:"math",createAtom:a=>new er(we(xe({},a),{type:"mord",body:et(a.args[0]),mode:"math"})),serialize:(a,y)=>Ko("\\mbox",a.bodyToLatex(we(xe({},y),{defaultMode:"text"})))}),bt("text","{:text}",{ifMode:"math",applyMode:"text"}),bt(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new er(we(xe({},a),{body:et(a.args[1])})),serialize:(a,y)=>!a.args[0]||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`,render:(a,y)=>{var b;return a.createBox(y,{classes:(b=a.args[0])!=null?b:""})}}),bt(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new er(we(xe({},a),{body:et(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.cssId=(b=a.args[0])!=null?b:"",E}}),bt("htmlData","{data:string}{content:auto}",{createAtom:a=>new er(we(xe({},a),{body:et(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`\\htmlData{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.htmlData=(b=a.args[0])!=null?b:"",E}}),bt(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new er(we(xe({},a),{body:et(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.htmlStyle=(b=a.args[0])!=null?b:"",E}}),bt("em","{:rest}",{createAtom:a=>new er(we(xe({},a),{body:et(a.args[0])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{\\em ${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})}),bt("emph","{:auto}",{createAtom:a=>new er(we(xe({},a),{body:et(a.args[1])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\emph{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})});var 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}};bt(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new ih(we(xe({},a),{delim:(y=a.args[0])!=null?y:".",size:sp[a.command].size,delimType:sp[a.command].mclass}))}}),bt(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new Zd(we(xe({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),bt(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new Zd(we(xe({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),bt("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new er(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===sc||E===ru)&&(b=1),(E===iu||E===nl)&&(b=2),(E===wl||E===Ws)&&(b=3);const ee=et(a.args[b]);return er.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${er.serialize(a.args[0],y)}}{${er.serialize(a.args[1],y)}}{${er.serialize(a.args[2],y)}}{${er.serialize(a.args[3],y)}}`}),bt("mathop","{:auto}",{createAtom:a=>new er(we(xe({},a),{type:"mop",body:et(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=er.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 Kr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Ko(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)),Ka(b)}}),bt(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new er(we(xe({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:et(a.args[0])}))}),bt(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=et(a.args[0]).map(b=>{var E;return b.type!=="first"&&(b.type="mord",b.value=(E={"\u2217":"*","\u2212":"-"}[b.value])!=null?E:b.value,b.isFunction=!1,!b.style.variant&&!b.style.variantStyle&&(b.style.variant="main",b.style.variantStyle="up")),b});return new er(we(xe({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=er.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 Kr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Ko(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)),Ka(b)}}),bt(["char","unicode"],"{charcode:value}",{createAtom:a=>new er(we(xe({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${gs((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)}}),bt("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new er(a),render:(a,y)=>{var b,E,ee;const re=new qa({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}),ve=re.toEm((ee=a.args[2])!=null?ee:{dimension:10}),Ae=new Kr(null,{classes:"rule",type:"ord"});return Ae.width=me,Ae.height=ve+le,Ae.depth=-le,Ae.setStyle("border-right-width",me,"em"),Ae.setStyle("border-top-width",ve,"em"),Ae.setStyle("border-color",a.style.color),Ae.setStyle("vertical-align",le,"em"),a.isSelected&&Ae.setStyle("opacity","50%"),a.bind(re,Ae),a.caret&&(Ae.caret=a.caret),Ae.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${gs(a.args[0])}]`:""}{${gs(a.args[1])}}{${gs(a.args[2])}}`}),bt(["overline","underline"],"{:auto}",{createAtom:a=>new er(we(xe({},a),{body:et(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new qa({parent:y,mathstyle:"cramp"},a.style),ee=er.createBox(E,a.body);if(!ee)return null;const re=E.metrics.defaultRuleThickness/E.scalingFactor,le=new Kr(null,{classes:b+"-line"});le.height=re,le.maxFontSize=re*1.125*E.scalingFactor;let me;return b==="overline"?me=new Po({shift:0,children:[{box:ee},3*re,{box:le},re]}):me=new Po({top:ee.height,children:[re,{box:le},3*re,{box:ee}]}),a.caret&&(me.caret=a.caret),new Kr(me,{classes:b,type:"ignore"})}}),bt("overset","{:auto}{base:auto}",{createAtom:a=>{const y=et(a.args[1]);return new yu(we(xe({},a),{above:et(a.args[0]),body:y,skipBoundary:!1,boxType:$u(y)}))},serialize:(a,y)=>Ko(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),bt("underset","{:auto}{base:auto}",{createAtom:a=>{const y=et(a.args[1]);return new yu(we(xe({},a),{below:et(a.args[0]),body:y,skipBoundary:!1,boxType:$u(y)}))},serialize:(a,y)=>Ko(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),bt("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=et(a.args[2]);return new yu(we(xe({},a),{above:et(a.args[0]),below:et(a.args[1]),body:y,skipBoundary:!1,boxType:$u(y)}))},serialize:(a,y)=>Ko(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),bt(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new yu(we(xe({},a),{body:et(a.args[2]),above:et(a.args[1]),below:et(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>Ko(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),bt("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new Kd(we(xe({},a),{body:et(a.args[1]),smashHeight:(b=(y=a.args[0])==null?void 0:y.includes("t"))!=null?b:!0,smashDepth:(ee=(E=a.args[0])==null?void 0:E.includes("b"))!=null?ee:!0}))}}),bt(["vphantom"],"{:auto}",{createAtom:a=>new Kd(we(xe({},a),{body:et(a.args[0]),isInvisible:!0,smashWidth:!0}))}),bt(["hphantom"],"{:auto}",{createAtom:a=>new Kd(we(xe({},a),{body:et(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),bt(["phantom"],"{:auto}",{createAtom:a=>new Kd(we(xe({},a),{body:et(a.args[0]),isInvisible:!0}))}),bt("not","{:math}",{createAtom:a=>{const y=et(a.args[0]);return y.length===0?new er(we(xe({},a),{type:"mrel",value:"\uE020"})):new er(we(xe({},a),{body:[new $c(we(xe({},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{${er.serialize(b.group,y)}}`:`\\not${er.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":$u(et(a.args[0])),ee=er.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),bt(["ne","neq"],"",{createAtom:a=>new er(we(xe({},a),{type:"mrel",body:[new $c(we(xe({},a),{body:"\uE020",align:"right",boxType:"rel"})),new er(we(xe({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),bt("rlap","{:auto}",{createAtom:a=>new $c(we(xe({},a),{body:et(a.args[0]),align:"right"}))}),bt("llap","{:auto}",{createAtom:a=>new $c(we(xe({},a),{body:et(a.args[0]),align:"left"}))}),bt("mathrlap","{:math}",{createAtom:a=>new $c(we(xe({},a),{body:et(a.args[0]),align:"left"}))}),bt("mathllap","{:math}",{createAtom:a=>new $c(we(xe({},a),{body:et(a.args[0]),align:"left"}))}),bt("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new js(we(xe({},a),{body:et(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Ko("\\raisebox",(b=gs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),bt("raise","{:value}{:auto}",{createAtom:a=>{var y;return new js(we(xe({},a),{body:et(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Ko("\\raise",(b=gs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),bt("lower","{:value}{:auto}",{createAtom:a=>{var y;return new js(we(xe({},a),{body:et(a.args[1]),padding:{dimension:0},offset:(y=Bl(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return Ko("\\lower",(E=gs(Bl((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),Le("0123456789/@.?!"),ht(65,90),ht(97,122),Le([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Le([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Le([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),Le([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),Le([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),Le([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),Le([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),Le([["+",43],["-",8722],["\u2212",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),Le([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),Le([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),Le([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),Le([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Le([["\\wp",8472],["\\aleph",8501]]),Le([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),Le([["\\ ",160],["~",160]],"space"),bt(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new Zd(a)}),bt("space","",{createAtom:a=>new Zd(a)}),Le([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Le([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Le([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var lp="<mo>⁡</mo>",qf="<mo>⁢</mo>";function e0(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Jo(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Ev(a,y,b){var E,ee,re,le,me,ve,Ae,Pe,pt,Nt,Yt;let rn=!1;y=y!=null?y:a.atoms.length;let jn="",Zr="",Rn=a.atoms[a.index];const fr=(ee=(E=Rn.style)==null?void 0:E.variant)!=null?ee:"",qr=(le=(re=Rn.style)==null?void 0:re.variantStyle)!=null?le:"";let Sr="";if(fr||qr){const ra=Ct(Rn.value,(me=Rn.style)==null?void 0:me.variant,(ve=Rn.style)==null?void 0:ve.variantStyle);if(ra!==Rn.value)return a.index+=1,jn=`<mi${Jo(Rn.id,b)}>${ra}</mi>`,dc(jn,a,b)||(a.mathML+=jn,a.lastType="mi"),!0;Sr=(Ae={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"}[qr+fr])!=null?Ae:"",Sr=` mathvariant="${Sr}"`}const Ki={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Rn.command==="!")return a.index+=1,jn="<mo>!</mo>",dc(jn,a,b)||(a.mathML+=jn,a.lastType="mo"),!0;if(Ki[Rn.command]){a.index+=1;let ra=`<mi${Jo(Rn.id,b)}${Sr}>${Ki[Rn.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(ra=qf+ra),dc(ra,a,b)||(a.mathML+=ra,a.lastType="mi"),!0}if(Rn.command==="\\operatorname")Zr=Cd(Rn.body),a.index+=1;else if(fr||qr)for(;a.index<y&&(Rn.type==="mord"||Rn.type==="macro")&&!Rn.isDigit()&&fr===((pt=(Pe=Rn.style)==null?void 0:Pe.variant)!=null?pt:"")&&qr===((Yt=(Nt=Rn.style)==null?void 0:Nt.variantStyle)!=null?Yt:"");)Zr+=Cd([Rn]),a.index+=1,Rn=a.atoms[a.index];else(Rn.type==="mord"||Rn.type==="macro")&&!Rn.isDigit()&&(Zr+=Cd([Rn]),a.index+=1);if(Zr.length>0){rn=!0,jn=`<mi${Sr}>${Zr}</mi>`;const ra=a.lastType;jn.endsWith(">f</mi>")||jn.endsWith(">g</mi>")?(jn+=lp,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(jn)?"mo":"mi",dc(jn,a,b)||((ra==="mi"||ra==="mn"||ra==="mtext"||ra==="fence")&&(jn=qf+jn),a.mathML+=jn)}return rn}function Mv(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function Av(a){let y=-1,b=a.index,E=!1,ee=!1;for(;b<a.atoms.length&&!E&&!ee;){const re=a.atoms[b];E=!re.isDigit(),ee=!E&&re.superscript!==void 0,b++}return ee&&(y=b-1),y}function dc(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=Io(ee.superscript,b);y.lastType="";const me=Io(ee.subscript,b);if(y.lastType=re,!le&&!me)return!1;let ve="";return le&&me?ve=`<msubsup>${a}${me}${le}</msubsup>`:le?ve=`<msup>${a}${le}</msup>`:me&&(ve=`<msub>${a}${me}</msub>`),y.mathML+=ve,y.lastType="",!0}function kv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="";for(;a.index<y&&a.atoms[a.index].mode==="text";)ee+=a.atoms[a.index].value?a.atoms[a.index].value:" ",a.index+=1;return ee.length>0?(a.mathML+=`<mtext ${Jo(a.atoms[E].id,b)}>${ee}</mtext>`,a.lastType="mtext",!0):!1}function Dv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="",re=Av(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"+Jo(a.atoms[E].id,b)+">"+ee+"</mn>",re<0&&Mv(a)&&(re=a.index,a.index+=1),dc(ee,a,b)||(a.mathML+=ee,a.lastType="mn"),!0)}function Iv(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 ve=a.index;let Ae=-1,Pe=ve+1;for(;Pe<y&&!le;)a.atoms[Pe].type==="mopen"?me+=1:a.atoms[Pe].type==="mclose"&&(me-=1),me===-1&&(le=!0,Ae=Pe),Pe+=1;le&&(ee="<mrow>",ee+=Xc(a.atoms[ve],b),ee+=Io(a.atoms,b,ve+1,Ae),ee+=Xc(a.atoms[Ae],b),ee+="</mrow>",a.index=Ae+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=qf),dc(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 ve=`<mo${Jo(le.id,b)}>${me[le.command]}</mo>`;return dc(ve,a,b)||(a.mathML+=ve,a.lastType="mo"),!0}if(a.index<y&&(le.type==="mbin"||le.type==="mrel"))ee+=Z0(a.atoms[a.index],b),a.index+=1,re="mo";else if(a.index<y&&(le.type==="mop"||le.type==="operator"||le.type==="extensible-symbol")){if(le.subsupPlacement==="over-under"&&(le.superscript||le.subscript)){const ve=Xc(le,b);return le.superscript&&le.subscript?(ee+="<munderover>"+ve,ee+=Io(le.subscript,b),ee+=Io(le.superscript,b),ee+="</munderover>"):le.superscript?(ee+="<mover>"+ve,ee+=Io(le.superscript,b),ee+="</mover>"):le.subscript&&(ee+="<munder>"+ve,ee+=Io(le.subscript,b),ee+="</munder>"),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const ve=a.atoms[a.index],Ae=ve.value==="\\operatorname",Pe=Ae?'<mi class="MathML-Unit"'+Jo(ve.id,b)+">"+Cd(ve.value)+"</mi>":Xc(ve,b);ee+=Pe,!Ae&&!/^<mo>(.*)<\/mo>$/.test(Pe)?(ee+=lp,re="applyfunction"):re=Ae?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ee)&&(ee=qf+ee),a.index+=1}return ee.length>0&&(E=!0,dc(ee,a,b)||(a.mathML+=ee,a.lastType=re)),E}function Io(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 er)ee.mathML=Z0(a,y);else if(Array.isArray(a)){ee.atoms=a;let re=0;for(E=E||(a?a.length:0);ee.index<E;)if(kv(ee,E,y)||Dv(ee,E,y)||Ev(ee,E,y)||Lv(ee,E,y)||Iv(ee,E,y))re+=1;else if(ee.index<E){let le=Z0(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,dc(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 Xc(a,y){let b="";const E=Cd(a.value);return E&&(b="<mo"+Jo(a.id,y)+">"+E+"</mo>"),b}function Cd(a){if(!a)return"";if(typeof a=="string")return e0(a);if(!Array.isArray(a)&&typeof a.body=="string")return e0(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return e0(y)}function Z0(a,y){var b,E,ee,re,le,me,ve,Ae,Pe,pt,Nt,Yt,rn,jn,Zr,Rn,fr,qr,Sr,Ki,ra,Xi;if(a.mode==="text")return`<mi${Jo(a.id,y)}>${a.value}</mi>`;const so={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"},Ho={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let ui="",uu="",ec,xu,fl,cu,Zl,Xo;const{command:Ks}=a;if(a.command==="\\error")return`<merror${Jo(a.id,y)}>${Io(a.body,y)}</merror>`;const hl={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},tc={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":ui=Io(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(ui+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(ui+="<mo>"+(hl[a.leftDelim]||a.leftDelim)+"</mo>")),ui+="<mtable",a.colFormat){for(ui+=' columnalign="',fl=0;fl<a.colFormat.length;fl++)a.colFormat[fl].align&&(ui+={l:"left",c:"center",r:"right"}[a.colFormat[fl].align]+" ");ui+='"'}for(ui+=">",xu=0;xu<a.array.length;xu++){for(ui+="<mtr>",ec=0;ec<a.array[xu].length;ec++)ui+="<mtd>"+Io(a.array[xu][ec],y)+"</mtd>";ui+="</mtr>"}ui+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(ui+="<mo>"+(hl[a.leftDelim]||a.rightDelim)+"</mo>"),ui+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(ui+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(ui+="<mo"+Jo(a.id,y)+">"+(hl[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(ui+="<mfrac>",ui+=Io(a.above,y)||"<mi> </mi>",ui+=Io(a.below,y)||"<mi> </mi>",ui+="</mfrac>"):(ui+="<mtable"+Jo(a.id,y)+">",ui+="<mtr>"+Io(a.above,y)+"</mtr>",ui+="<mtr>"+Io(a.below,y)+"</mtr>",ui+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(ui+="<mo"+Jo(a.id,y)+">"+(hl[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(ui+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(ui+="<msqrt"+Jo(a.id,y)+">",ui+=Io(a.body,y),ui+="</msqrt>"):(ui+="<mroot"+Jo(a.id,y)+">",ui+=Io(a.body,y),ui+=Io(a.above,y),ui+="</mroot>");break;case"leftright":const nc=a,rc=nc.leftDelim;ui="<mrow>",rc&&rc!=="."&&(ui+=`<mo${Jo(a.id,y)}>${(b=hl[rc])!=null?b:rc}</mo>`),a.body&&(ui+=Io(a.body,y));const ic=nc.matchingRightDelim();ic&&ic!=="."&&(ui+=`<mo${Jo(a.id,y)}>${(E=hl[ic])!=null?E:ic}</mo>`),ui+="</mrow>";break;case"sizeddelim":case"delim":ui+=`<mo${Jo(a.id,y)}>${hl[a.value]||a.value}</mo>`;break;case"accent":ui+='<mover accent="true"'+Jo(a.id,y)+">",ui+=Io(a.body,y),ui+="<mo>"+(tc[Ks]||a.accent)+"</mo>",ui+="</mover>";break;case"line":case"overlap":break;case"overunder":Zl=a.above,cu=a.below,(a.svgAbove||Zl)&&(a.svgBelow||cu)?Xo=a.body:Zl&&Zl.length>0?(Xo=a.body,(re=(ee=a.body)==null?void 0:ee[0])!=null&&re.below?(cu=a.body[0].below,Xo=a.body[0].body):((me=(le=a.body)==null?void 0:le[0])==null?void 0:me.type)==="first"&&((Ae=(ve=a.body)==null?void 0:ve[1])!=null&&Ae.below)&&(cu=a.body[1].below,Xo=a.body[1].body)):cu&&cu.length>0&&(Xo=a.body,(pt=(Pe=a.body)==null?void 0:Pe[0])!=null&&pt.above?(Zl=a.body[0].above,Xo=a.body[0].body):((Yt=(Nt=a.body)==null?void 0:Nt[0])==null?void 0:Yt.type)==="first"&&((jn=(rn=a.body)==null?void 0:rn[1])!=null&&jn.above)&&(Zl=a.body[1].overscript,Xo=a.body[1].body)),(a.svgAbove||Zl)&&(a.svgBelow||cu)?(ui+=`<munderover ${Jo(a.id,y)}>`,ui+=(Zr=so[a.svgBody])!=null?Zr:Io(Xo,y),ui+=(Rn=so[a.svgBelow])!=null?Rn:Io(cu,y),ui+=(fr=so[a.svgAbove])!=null?fr:Io(Zl,y),ui+="</munderover>"):a.svgAbove||Zl?(ui+=`<mover ${Jo(a.id,y)}>`+((qr=so[a.svgBody])!=null?qr:Io(Xo,y)),ui+=(Sr=so[a.svgAbove])!=null?Sr:Io(Zl,y),ui+="</mover>"):(a.svgBelow||cu)&&(ui+=`<munder ${Jo(a.id,y)}>`+((Ki=so[a.svgBody])!=null?Ki:Io(Xo,y)),ui+=(ra=so[a.svgBelow])!=null?ra:Io(cu,y),ui+="</munder>");break;case"placeholder":ui+="?";break;case"mord":{ui=typeof a.value=="string"?a.value:Ks,Ks==="\\char"?ui="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":ui.length>0&&ui.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?ui="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?ui=a.value.charAt(0):(console.error("Did not expect this"),ui=""));const Ru=/\d/.test(ui)?"mn":"mi";ui=`<${Ru}${Jo(a.id,y)}>${e0(ui)}</${Ru}>`;break}case"mbin":case"mrel":case"minner":ui=Xc(a,y);break;case"mpunct":ui='<mo separator="true"'+Jo(a.id,y)+">"+Ks+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(ui="<mo"+Jo(a.id,y)+">",ui+=Ks==="\\operatorname"?a.body:Ks||a.body,ui+="</mo>");break;case"box":ui='<menclose notation="box"',a.backgroundcolor&&(ui+=' mathbackground="'+a.backgroundcolor+'"'),ui+=Jo(a.id,y)+">"+Io(a.body,y)+"</menclose>";break;case"spacing":ui+='<mspace width="'+((Xi=Ho[Ks])!=null?Xi:0)+'em"/>';break;case"enclose":ui='<menclose notation="';for(const Ru in a.notation)Object.prototype.hasOwnProperty.call(a.notation,Ru)&&a.notation[Ru]&&(ui+=uu+Ru,uu=" ");ui+=Jo(a.id,y)+'">'+Io(a.body,y)+"</menclose>";break;case"prompt":ui='<menclose notation="roundexbox""">'+Io(a.body,y)+"</menclose>";break;case"space":ui+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":ui+=Xc(a,y);break;case"mclose":ui+=Xc(a,y);break;case"macro":{const Ru=a.command+Cd(a.macroArgs);Ru&&(ui+=`<mo ${Jo(a.id,y)}>${Ru}</mo>`)}break;case"latexgroup":ui+=Io(a.body,y);break;case"latex":ui+="<mtext"+Jo(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":ui+=Io(a.body,y);break;case"text":ui+=`<mtext ${Jo(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${Jo(a.id,y)} displaystyle="true">${Io(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${Jo(a.id,y)} displaystyle="false">${Io(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return ui}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"},H0={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 Nv(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function af(a){let y=0;if(Ie(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Tv(a){if(Ie(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function up(a){let y="";if(Ie(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Bv(a){return a?a.map(y=>y.value).join(""):""}function Ja(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 ve(Pe){return"<emphasis>"+Pe+"</emphasis>"}if(!y)return"";let Ae="";if(Ie(y)){let Pe=!1,pt=!1;for(let Nt=0;Nt<y.length;Nt++)y[Nt].type!=="first"&&(y[Nt].mode!=="text"&&(pt=!1),Nt<y.length-2&&y[Nt].type==="mopen"&&y[Nt+2].type==="mclose"&&y[Nt+1].type==="mord"?(Ae+=" of ",Ae+=ve(Ja(a,y[Nt+1])),Nt+=2):y[Nt].mode==="text"?pt?Ae+=(b=y[Nt].value)!=null?b:" ":(pt=!0,Ae+=Ja("text",y[Nt])):y[Nt].isDigit()?Pe?Ae+=y[Nt].asDigit():(Pe=!0,Ae+=Ja(a,y[Nt])):(Pe=!1,Ae+=Ja(a,y[Nt])))}else if(y.mode==="text")y.id&&a==="math"&&(Ae+='<mark name="'+y.id.toString()+'"/>'),Ae+=y.value;else{y.id&&a==="math"&&(Ae+='<mark name="'+y.id.toString()+'"/>');let Pe="",pt="",Nt="",Yt=!1;const{command:rn}=y;switch(rn){case"\\vec":return"vector "+Ja(a,y.body);case"\\acute":return Ja(a,y.body)+" acute";case"\\grave":return Ja(a,y.body)+" grave";case"\\dot":return"dot over"+Ja(a,y.body);case"\\ddot":return"double dot over"+Ja(a,y.body);case"\\mathring":return"ring over"+Ja(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Ja(a,y.body);case"\\bar":return Ja(a,y.body)+" bar";case"\\breve":return Ja(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Ja(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Ja(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Ja(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Ja(a,y.body)}switch(y.type){case"prompt":const jn=y.body.length>1?'start input . <break time="500ms"/> '+Ja(a,y.body)+'. <break time="500ms"/> end input':"blank";Ae+=' <break time="300ms"/> '+jn+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const Zr=y.array,Rn=y.environmentName;if(Object.keys(H0).includes(Rn)){Ae+=` begin ${H0[Rn]} `;for(let Sr=0;Sr<Zr.length;Sr++){Sr>0&&(Ae+=","),Ae+=` row ${Sr+1} `;for(let Ki=0;Ki<Zr[Sr].length;Ki++)Ki>0&&(Ae+=","),Ae+=` column ${Ki+1}: `,Ae+=Ja("math",Zr[Sr][Ki])}Ae+=` end ${H0[Rn]} `}break;case"group":rn==="\\ne"?Ae+=" not equal ":(rn==="\\not"&&(Ae+=" not "),Ae+=Ja("math",y.body));break;case"root":Ae+=Ja("math",y.body);break;case"genfrac":if(Pe=Ja("math",y.above),pt=Ja("math",y.below),af(y.above)&&af(y.below)){const Ki={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[up(y.above)+"/"+up(y.below)];Ki?Ae=Ki:Ae+=Pe+" over "+pt}else Ae+=' the fraction <break time="150ms"/>'+Pe+' over <break time="150ms"/>'+pt+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(Nt=Ja("math",y.body),y.hasEmptyBranch("above"))Ae+=af(y.body)?" the square root of "+Nt+" , ":' the square root of <break time="200ms"/>'+Nt+'. <break time="200ms"/> End square root';else{let Sr=Ja("math",y.above);Sr=Sr.trim();const Ki=Sr.replace(/<mark([^/]*)\/>/g,"");Ki==="3"?Ae+=' the cube root of <break time="200ms"/>'+Nt+'. <break time="200ms"/> End cube root':Ki==="n"?Ae+=' the nth root of <break time="200ms"/>'+Nt+'. <break time="200ms"/> End root':Ae+=' the root with index: <break time="200ms"/>'+Sr+', of <break time="200ms"/>'+Nt+'. <break time="200ms"/> End root'}break;case"leftright":{const Sr=y;Ae+=(ee=Sr.leftDelim?wd[Sr.leftDelim]:void 0)!=null?ee:Sr.leftDelim,Ae+=Ja("math",y.body),Ae+=(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 fr=rn.replace(/^\\/g,""),qr=on()[fr];qr&&(qr!=null&&qr.expand?Ae+=Ja("math",y.body):Ae+=`${fr} `);break;case"placeholder":Ae+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(rn==="\\mathbin"||rn==="\\mathrel"||rn==="\\mathopen"||rn==="\\mathclose"||rn==="\\mathpunct"||rn==="\\mathord"||rn==="\\mathinner"){Ae=Ja(a,y.body);break}let Sr=y.isDigit()?y.asDigit():y.value,Ki=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(Ki=y.value,Sr=Ki),a==="text")Ae+=Sr;else{if(y.type==="mbin"&&(Ae+='<break time="150ms"/>'),Sr){const ra=wd[Sr]||(Ki?wd[Ki.trim()]:"");if(ra)Ae+=" "+ra;else{const Xi=Ki?Nv(Ki.trim()):"";Ae+=Xi||me(Sr)}}else Ae+=Ja("math",y.body);y.type==="mbin"&&(Ae+='<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 Ki=Ja("math",y.superscript);Ki=Ki.trim();let ra=Ja("math",y.subscript);ra=ra.trim(),Ae+=' the summation from <break time="200ms"/>'+ra+'<break time="200ms"/> to <break time="200ms"/>'+Ki+'<break time="200ms"/> of <break time="150ms"/>',Yt=!0}else if(y.hasEmptyBranch("subscript"))Ae+=" the summation of";else{let Ki=Ja("math",y.subscript);Ki=Ki.trim(),Ae+=' the summation from <break time="200ms"/>'+Ki+'<break time="200ms"/> of <break time="150ms"/>',Yt=!0}else if(Sr==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Ki=Ja("math",y.superscript);Ki=Ki.trim();let ra=Ja("math",y.subscript);ra=ra.trim(),Ae+=' the product from <break time="200ms"/>'+ra+'<break time="200ms"/> to <break time="200ms"/>'+Ki+'<break time="200ms"/> of <break time="150ms"/>',Yt=!0}else if(y.hasEmptyBranch("subscript"))Ae+=" the product of ";else{let Ki=Ja("math",y.subscript);Ki=Ki.trim(),Ae+=' the product from <break time="200ms"/>'+Ki+'<break time="200ms"/> of <break time="150ms"/>',Yt=!0}else if(Sr==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Ki=Ja("math",y.superscript);Ki=Ki.trim();let ra=Ja("math",y.subscript);ra=ra.trim(),Ae+=' the integral from <break time="200ms"/>'+ve(ra)+'<break time="200ms"/> to <break time="200ms"/>'+ve(Ki)+' <break time="200ms"/> of ',Yt=!0}else Ae+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const Ki=(le=wd[y.value])!=null?le:y.command?wd[y.command]:void 0;Ae+=Ki||" "+y.value}else y.command&&(y.command==="\\mathop"?Ae+=Ja("math",y.body):y.command==="\\operatorname"?Ae+=Bv(y.body):Ae+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":Nt=Ja("math",y.body),Ae+=" crossed out "+Nt+". End crossed out.";break;case"space":case"spacing":break}if(!Yt&&!y.hasEmptyBranch("superscript")){let jn=Ja(a,y.superscript);jn=jn.trim();const Zr=jn.replace(/<[^>]*>/g,"");if(af(y.superscript)){if(a==="math"){const Rn=Tv(y.superscript);Rn&&(Ae+='<mark name="'+Rn+'"/>')}Zr==="\u2032"?Ae+=" prime ":Zr==="2"?Ae+=" squared ":Zr==="3"?Ae+=" cubed ":Number.isNaN(Number.parseInt(Zr))?Ae+=" to the "+jn+"; ":Ae+=' to the <say-as interpret-as="ordinal">'+Zr+"</say-as> power; "}else Number.isNaN(Number.parseInt(Zr))?Ae+=" raised to the "+jn+"; ":Ae+=' raised to the <say-as interpret-as="ordinal">'+Zr+"</say-as> power; "}if(!Yt&&!y.hasEmptyBranch("subscript")){let jn=Ja("math",y.subscript);jn=jn.trim(),Ae+=af(y.subscript)?" sub "+jn:" subscript "+jn+". End subscript. "}}return Ae}function Ed(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=Io(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=we(xe({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=we(xe({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=we(xe({},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=Ja("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"&&ct()==="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 $s(a){var y,b,E,ee,re,le,me,ve,Ae,Pe,pt,Nt,Yt;if(!a)return"";if(Ie(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map($s).join("");if(a[0].mode==="text"){let qr=0,Sr="";for(;((y=a[qr])==null?void 0:y.mode)==="text";)Sr+=a[qr].body?$s(a[qr].body):a[qr].value,qr++;return`"${Sr}" ${$s(a.slice(qr))}`}let Rn=0;const fr=[];for(;a[Rn]&&a[Rn].mode==="math";){let qr="";for(;a[Rn]&&a[Rn].type==="mord"&&/\d/.test(a[Rn].value);)qr+=a[Rn++].value;qr?fr.push(qr):fr.push($s(a[Rn++]))}return fr.push($s(a.slice(Rn))),Ov(fr)}if(a.mode==="text")return`"${a.value}"`;let rn="";const{command:jn}=a;let Zr;if(jn==="\\placeholder")return`(${$s(a.body)})`;switch(a.type){case"accent":const Rn={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[jn];rn=`${Rn!=null?Rn:""} ${$s(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(Xi=>Xi.value).join("");case"group":case"root":rn=(b=of[jn])!=null?b:$s(a.body);break;case"genfrac":{const Xi=a;(Xi.leftDelim||Xi.rightDelim)&&(rn=Xi.leftDelim==="."||!Xi.leftDelim?"{:":Xi.leftDelim),Xi.hasBarLine?(rn+="(",rn+=$s(Xi.above),rn+=")/(",rn+=$s(Xi.below),rn+=")"):(rn+="("+$s(Xi.above)+"),",rn+="("+$s(Xi.below)+")"),(Xi.leftDelim||Xi.rightDelim)&&(rn+=Xi.rightDelim==="."||!Xi.rightDelim?"{:":Xi.rightDelim)}break;case"surd":rn+=a.hasEmptyBranch("above")?"sqrt("+$s(a.body)+")":"root("+$s(a.above)+")("+$s(a.body)+")";break;case"latex":rn=a.value;break;case"leftright":{const Xi=a,so=Xi.leftDelim;rn+=so==="."||!so?"{:":so,rn+=$s(Xi.body);const Ho=Xi.matchingRightDelim();rn+=Ho==="."||!Ho?":}":Ho}break;case"sizeddelim":case"delim":rn=a.value;break;case"overlap":break;case"overunder":break;case"mord":rn=(ee=(E=of[jn])!=null?E:jn)!=null?ee:typeof a.value=="string"?a.value:"",rn.startsWith("\\")&&(rn+=" "),Zr=jn?jn.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Zr?rn=String.fromCodePoint(Number.parseInt("0x"+Zr[1])):rn.length>0&&rn.startsWith("\\")&&(rn=typeof a.value=="string"?a.value.charAt(0):a.command),rn=_v(rn,a.style);break;case"mbin":case"mrel":case"minner":rn=(le=(re=of[jn])!=null?re:sf[jn])!=null?le:a.value;break;case"mopen":case"mclose":rn=a.value;break;case"mpunct":rn=(me=sf[jn])!=null?me:jn;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(sf[jn]?rn=sf[jn]:rn=jn==="\\operatorname"?$s(a.body):(ve=a.value)!=null?ve:jn,rn+=" ");break;case"array":const fr=a.array,qr=a.environmentName,Sr=(Ae={bmatrix:["[","]"],"bmatrix*":["[","]"]}[qr])!=null?Ae:["(",")"],Ki=[];for(const Xi of fr){const so=[];for(const Ho of Xi)so.push(Sr[0]+$s(Ho)+Sr[1]);Ki.push(so.join(","))}const ra=(Pe={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[qr])!=null?Pe:["(",")"];rn=ra[0]+Ki.join(",")+ra[1];break;case"box":break;case"spacing":rn=(pt=of[jn])!=null?pt:" ";break;case"enclose":rn="("+$s(a.body)+")";break;case"space":rn=" ";break;case"subsup":rn="";break;case"macro":rn=(Yt=(Nt=of[jn])!=null?Nt:sf[jn])!=null?Yt:$s(a.body);break}if(!a.hasEmptyBranch("subscript")){rn+="_";const Rn=$s(a.subscript);rn+=Rn.length!==1?`(${Rn})`:Rn}if(!a.hasEmptyBranch("superscript")){rn+="^";const Rn=$s(a.superscript);rn+=Rn.length!==1?`(${Rn})`:Rn}return rn}function _v(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 dl(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new qa({from:we(xe({},id()),{renderPlaceholder:()=>new Kr(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),le=new er({mode:"math",type:"root",body:cl(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return le?(xc(Hd(le,ee)),Sc(le,{classes:"ML__latex"}).toMarkup()):""}function k1(a){return th(a,{context:id()})}function Pv(a,y={}){return Io(cl(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Rv(a){const y=cl(a,{parseMode:"math",mathstyle:"displaystyle"});return Ed(y)}var t0;function Fv(a){var y,b;if(!t0){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?t0=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=t0==null?void 0:t0.box(a).latex)!=null?b:""}function D1(a,y="math"){return $s(new er({type:"root",body:cl(a,{parseMode:y})}))}function I1(a){return jc(a,{format:"ascii-math"})[1]}function W0(a){if(typeof a=="string"){const y=zv(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?$v(a):"a"in a?cp(a):a}function Md(a){return a<0?0:a>255?255:Math.round(a)}function zv(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&typeof y.a=="undefined"&&(y.a=1),y}function U0(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 jv(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 V0(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,ve=-1.2684380040921763*ee+2.6097574006633715*re-.3413193963102197*le,Ae=-.004196086541837188*ee-.7034186144594493*re+1.7076147009309444*le,Pe=pt=>{const Nt=Math.abs(pt);return Nt<=.0031308?pt*12.92:(Math.sign(pt)||1)*(1.055*Math.pow(Nt,1/2.4)-.055)};return[Pe(me),Pe(ve),Pe(Ae)]}function G0(a){const[y,b,E]=a;return y>=0&&y<=1&&b>=0&&b<=1&&E>=0&&E<=1}function Y0(a,y){let[b,E,ee]=a;return b=Md(b*255),E=Md(E*255),ee=Md(ee*255),y!==void 0?{r:b,g:E,b:ee,alpha:y}:{r:b,g:E,b:ee}}function cp(a){let[y,b,E]=V0(a);if(G0([y,b,E]))return Y0([y,b,E],a.alpha);const ee=jv(a);if(ee.C=0,[y,b,E]=V0(U0(ee)),!G0([y,b,E]))return Y0([y,b,E],a.alpha);let re=0,le=a.L,me=(re+le)/2;ee.C=me;const ve=.36/Math.pow(2,12);for(;le-re>ve;)me=(re+le)/2,ee.C=me,[y,b,E]=V0(U0(ee)),G0([y,b,E])?re=me:le=me;return Y0([y,b,E],a.alpha)}function $v(a){return cp(U0(a))}function dp(a,y){const b=W0(a),E=W0(y),ee=.56,re=.57,le=.62,me=.65,ve=.022,Ae=1.414,Pe=.1,pt=5e-4,Nt=1.14,Yt=.027,rn=1.14,jn=.027;function Zr(Xi){return Xi>=ve?Xi:Xi+ac(ve-Xi,Ae)}function Rn(Xi){return(Xi<0?-1:1)*Math.pow(Math.abs(Xi),2.4)}const fr=Zr(Rn(E.r/255)*.2126729+Rn(E.g/255)*.7151522+Rn(E.b/255)*.072175),qr=Zr(Rn(b.r/255)*.2126729+Rn(b.g/255)*.7151522+Rn(b.b/255)*.072175);let Sr,Ki,ra;return Math.abs(qr-fr)<pt?Ki=0:qr>fr?(Sr=ac(qr,ee)-ac(fr,re),Ki=Sr*Nt):(Sr=ac(qr,me)-ac(fr,le),Ki=Sr*rn),Math.abs(Ki)<Pe?ra=0:Ki>0?ra=Ki-jn:ra=Ki+Yt,ra*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 Kv(a){const y=W0(a);let b=((1<<24)+(Md(y.r)<<16)+(Md(y.g)<<8)+Md(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 us(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=p0[y];return E?!!E.test(b[0].value):!1}function Hv(a,y){return us(a).length>0}function Wv(a){return[Q0(a,"double-struck","mathbb","tooltip.blackboard"),Q0(a,"fraktur","mathfrak","tooltip.fraktur"),Q0(a,"calligraphic","mathcal","tooltip.caligraphic"),J0(a,"up","mathrm","tooltip.roman-upright"),J0(a,"bold","mathbf","tooltip.bold"),J0(a,"italic","mathit","tooltip.italic")]}function Uv(a){return[{label:()=>dl(`\\vec{${us(a)}}`),visible:()=>us(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overrightarrow{${us(a)}}`),visible:()=>us(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overleftarrow{${us(a)}}`),visible:()=>us(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>dl(`\\dot{${us(a)}}`),visible:()=>us(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>dl(`\\ddot{${us(a)}}`),visible:()=>us(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>dl(`\\bar{${us(a)}}`),visible:()=>us(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overline{${us(a)}}`),visible:()=>us(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overgroup{${us(a)}}`),visible:()=>us(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overbrace{${us(a)}}`),visible:()=>us(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>dl(`\\underline{${us(a)}}`),visible:()=>us(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>dl(`\\undergroup{${us(a)}}`),visible:()=>us(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>dl(`\\underbrace{${us(a)}}`),visible:()=>us(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Vv(a){return[{label:()=>dl(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>dl(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>dl(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Gv(a){const y=[];for(const b of Object.keys(Fe))y.push({class:(Kv(fp(Fe[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Fe[b]} "></span>`,ariaLabel:()=>{var E;return(E=ot(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 Yv(a){const y=[];for(const b of Object.keys(Ze))y.push({class:(fp(Ze[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ze[b]} "></span>`,ariaLabel:()=>{var E;return(E=ot(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:()=>ot("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 Xv(a){return[{label:()=>ot("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>qc(a)},{label:()=>ot("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>qc(a)},{label:()=>ot("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>qc(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=e1(a);return b<y.maxColumns}},{label:()=>ot("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>qc(a)},{type:"divider"},{label:()=>ot("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>qc(a)},{label:()=>ot("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>qc(a)},{type:"divider"},{label:()=>ot("menu.borders"),visible:()=>(qv(a)||qc(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:()=>ot("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Jv(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>ot("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>ot("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{pd(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>ot("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{pd(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>ot("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>ot("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Wv(a),submenuClass:"variant-submenu"},{label:()=>ot("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Yv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>ot("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Gv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>ot("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Uv(a),submenuClass:"variant-submenu"},{label:()=>ot("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&us(a).length>0,submenu:Vv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>ot("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:()=>ot("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?ot("menu.solve-for",dl(b)):ot("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:()=>ot("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>ot("menu.copy"),id:"copy",submenu:[{label:()=>ot("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Ia.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>ot("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Ia.copyToClipboard(a,"ascii-math")},{label:()=>ot("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Ia.copyToClipboard(a,"math-ml")}]},{label:()=>ot("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>ot("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function qc(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function qv(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){Df(a),a.flushInlineShortcutBuffer(),Th(a.model,y),Ts(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 Q0(a,y,b,E){return{label:()=>dl(`\\${b}{${us(a)}}`),tooltip:()=>{var ee;return(ee=ot(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 J0(a,y,b,E){return{label:()=>dl(`\\${b}{${us(a)}}`),tooltip:()=>{var ee;return(ee=ot(E))!=null?ee:E},visible:()=>Hv(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 Ad(a,y){return a+Ed(y)}eu({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 pt=null;switch(Pe){case"all":pt=re.root;break;case"selection":pt=re.getAtoms(re.selection);break;case"left":{pt=re.getAtoms(re.offsetOf(re.at(re.position).leftSibling),re.position);break}case"right":{pt=re.getAtoms(re.position,re.offsetOf(re.at(re.position).rightSibling));break}case"group":pt=re.getAtoms(re.getSiblingsRange(re.position));break;case"parent":{const{parent:Nt}=re.at(re.position);Nt!=null&&Nt.parent?pt=Nt:pt=re.root;break}default:pt=re.root}return pt}function me(Pe){let pt="";switch(Pe){case"all":console.log("Internal failure: speak all failed");break;case"selection":pt="no selection";break;case"left":pt="at start";break;case"right":pt="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":pt="no parent";break;default:console.log('unknown speak_ param value: "'+Pe+'"');break}return pt}const ve=le(y);if(ve===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 Ae=Ed(ve);return lt()&&b.withHighlighting?(Nc().readAloudMathfield=a,Hc(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,Ae)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(Ae),!1}function r1(a){var y,b;if(!lt()){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),ve=new Blob([me.buffer],{type:"audio/mpeg"}),Ae=URL.createObjectURL(ve);new Audio(Ae).play().catch(pt=>console.log(pt))}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=Ad("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=Ad("",a.model.at(a.model.position));else if(y==="line"){const re=Ad("",a.model.root);a.keyboardDelegate.setAriaLabel(re)}else ee=E?Ad(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 Ad("",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+=Ad("",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=kc(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=ll(re);re.direction==="backward"?[this._position,this._anchor]=le:[this._anchor,this._position]=le;const me=this.at(le[0]+1),ve=this.at(le[1]),Ae=er.commonAncestor(me,ve);(Ae==null?void 0:Ae.type)==="array"&&me.parent===Ae&&ve.parent===Ae?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 gl&&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(od(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((Ae,Pe)=>[...Ae,...this.getAtoms(Pe,E)],[]);a=a.ranges[0]}let ee,re;if(Zu(a)){if(ee=a,!Zu(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 ve=[];for(let Ae=le;Ae<=me;Ae++){const Pe=this.atoms[Ae];mp(this,Pe,le,me)&&ve.push(Pe)}return E.includeChildren||(ve=ve.filter(Ae=>{let Pe=!1,{parent:pt}=Ae;for(;pt&&!Pe;)Pe=mp(this,pt,le,me),pt=pt.parent;return!Pe})),ve}getAllAtoms(a=0){const y=[],b=this.lastOffset;for(let E=a;E<=b;E++)y.push(this.atoms[E]);for(let E=0;E<a;E++)y.push(this.atoms[E]);return y}findAtom(a,y=0,b="forward"){let E;const ee=this.lastOffset;if(b==="forward"){for(let re=y;re<=ee;re++)if(E=this.atoms[re],a(E))return E;for(let re=0;re<y;re++)if(E=this.atoms[re],a(E))return E;return}for(let re=y;re>=0;re--)if(E=this.atoms[re],a(E))return E;for(let re=ee;re>y;re--)if(E=this.atoms[re],a(E))return E}extractAtoms(a){let y=this.getAtoms(a);if(y.length===1&&!y[0].parent)if(y[0].type==="root")y=[...y[0].body],y.shift();else return y=this.root.cells.flat(),this.root=new er({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 er.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 Io(a);if(b==="spoken")return Ed(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=Ed(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=Ed(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?$s(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(Zu(a)&&Zu(y)?(E=[this.normalizeRange([a,y])],ee=b):ad(a)?(E=[this.normalizeRange(a)],ee=y):od(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 Ka(E.map(le=>er.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&&X0(this,re,[E,ee]);)ee=this.offsetOf(re),re=re.parent;for(re=this.at(E).parent;re!==this.root&&X0(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&&X0(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,ve=E!==this._anchor||ee!==this._position||zc(this._selection,b)==="different";return this.silenceNotifications=re,a.content&&me&&this.contentDidChange({inputType:a.type}),a.selection&&ve&&this.selectionDidChange(),me||ve}normalizeOffset(a){return a>0?a=Math.min(a,this.lastOffset):a<0&&(a=this.lastOffset+a+1),a}normalizeRange(a){let[y,b]=a;return y=this.normalizeOffset(y),b=this.normalizeOffset(b),y<b?[y,b]:[b,y]}normalizeSelection(a,y){var b;let E;if(Zu(a)){const ee=this.normalizeOffset(a);if(Zu(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(ad(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 od(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(Ju(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",we(xe({},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(Ju(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 X0(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[E,ee]=b,re=a.offsetOf(y.firstChild),le=a.offsetOf(y.lastChild);return re>=E&&re<=ee&&le>=re&&le<=ee}function uf(a,y,b,E){var ee,re,le,me,ve,Ae;const Pe=b.parent;if(Pe&&b instanceof Do){const pt=!E&&y==="forward"||E==="body"&&y==="backward";let Nt=pt?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return pt?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(Pe.addChildrenAfter(b.removeBranch("body"),b),Pe.removeChild(b),Nt--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(Pe.addChildrenAfter(b.removeBranch("body"),b),Pe.removeChild(b),Nt--),a.position=Nt,!0}if(Pe&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const pt=b.leftSibling;b.hasChildren&&Pe.addChildrenAfter(b.removeBranch("body"),b),Pe.removeChild(b),a.position=a.offsetOf(pt)}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 pt=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return Pe.addChildrenAfter(b.removeBranch("body"),b),Pe.removeChild(b),a.position=a.offsetOf(pt),!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 pt=cf.fractionNavigationOrder==="numerator-denominator"?"above":"below",Nt=pt==="above"?"below":"above";if(Pe&&(y==="forward"&&E===pt||y==="backward"&&E===Nt)){const Yt=b.removeBranch(pt),rn=b.removeBranch(Nt);return Pe.addChildrenAfter([...Yt,...rn],b),Pe.removeChild(b),a.position=a.offsetOf(Yt.length>0?Yt[Yt.length-1]:rn[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 pt=y==="forward"?(le=(ee=b.superscript)==null?void 0:ee[0])!=null?le:(re=b.subscript)==null?void 0:re[0]:(Ae=(me=b.subscript)==null?void 0:me[0].lastSibling)!=null?Ae:(ve=b.superscript)==null?void 0:ve[0].lastSibling;return pt&&(a.position=a.offsetOf(pt)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const pt=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=pt,!0}if(E==="superscript")if(y==="backward"){const pt=a.offsetOf(b.firstChild)-1;console.assert(pt>=0),a.position=pt}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 pt=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=pt}return!0}if((Pe==null?void 0:Pe.type)==="genfrac"&&!E&&b.type!=="first"){let pt=a.offsetOf(b.leftSibling);return Pe.removeChild(b),Pe.hasEmptyBranch("above")&&Pe.hasEmptyBranch("below")?(pt=a.offsetOf(Pe.leftSibling),Pe.parent.removeChild(Pe),a.announce("delete",void 0,[Pe]),a.position=pt,!0):(a.announce("delete",void 0,[b]),a.position=pt,!0)}if(y==="backward"&&((Pe==null?void 0:Pe.command)==="\\ln"||(Pe==null?void 0:Pe.command)==="\\log")&&b.parentBranch!=="body"){const pt=a.offsetOf(Pe.leftSibling);return Pe.parent.removeChild(Pe),a.announce("delete",void 0,[Pe]),a.position=pt,!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&&uf(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(uf(a,"backward",y.parent,y.parentBranch))return;y=null}if(!y){a.announce("plonk");return}a.position=a.offsetOf(y.leftSibling),y.parent.removeChild(y),a.announce("delete",void 0,[y])}}):qu(a,ll(a.selection),"deleteContentBackward")}function u1(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentForward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var y,b;let E=a.at(a.position).rightSibling;if(E&&uf(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&uf(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&uf(a,"forward",E.parent,E.parentBranch))return;E=void 0}if(a.position===a.lastOffset||!E){a.announce("plonk");return}E.parent.removeChild(E);let ee=(y=a.at(a.position))==null?void 0:y.rightSibling;for(;(ee==null?void 0:ee.type)==="subsup";)ee.parent.removeChild(ee),ee=(b=a.at(a.position))==null?void 0:b.rightSibling;a.announce("delete",void 0,[E])}):qu(a,ll(a.selection),"deleteContentForward")}function qu(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 ve=E[0].parent;ve.parent&&ve.type!=="prompt"&&(y=[a.offsetOf(ve.leftSibling),a.offsetOf(ve)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const ve=E[0].parent,Ae=E[0].parentBranch==="below"?"above":"below",Pe=a.offsetOf(ve.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var pt,Nt;const Yt=ve.removeBranch(Ae);if(Yt.length===1&&Yt[0].type==="placeholder")(Nt=ve.parent)==null||Nt.removeChild(ve),a.position=Math.max(0,Pe);else{const rn=ve.parent.addChildrenAfter(Yt,ve);(pt=ve.parent)==null||pt.removeChild(ve),a.position=a.offsetOf(rn)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}eu({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&qu(a,[0,-1],"deleteContent"),deleteForward:a=>u1(a),deleteBackward:a=>l1(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&qu(a,[a.anchor,k0(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&qu(a,[a.anchor,k0(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&qu(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&qu(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&qu(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&qu(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var c1=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${ot("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="${ot("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=xe(we(xe({},zf()),{macros:on(),registers:gu()}),Ff(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=Ih(this.options),ve=new er({type:"root",mode:me,body:cl(le,{context:this.context})});this.model=new s1(this,me,ve),this.undoManager=new Rg(this.model);const Ae=[];if(Ae.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>"),Ae.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),Ae.push("<span part=content class=ML__content>"),Ae.push(Sh(this)),Ae.push("</span>"),window.mathVirtualKeyboard&&(Ae.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">`),Ae.push(c1),Ae.push("</div>")),Ae.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),Ae.push(d1),Ae.push("</div>"),Ae.push("</span>"),Ae.push("<span class=ML__sr-only>"),Ae.push("<span role=status aria-live=assertive aria-atomic=true></span>"),Ae.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(Ae.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=ut.subscribe(()=>ut.update(this.element)),ut.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",pt=>pt.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(Ju(this)))},{signal:re}),this._menu=new Cv(Xv(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:re});const Pe=this.element.querySelector("[part=menu-toggle]");Pe==null||Pe.addEventListener("pointerdown",pt=>{if(pt.currentTarget!==Pe||this._menu.state!=="closed")return;this.element.classList.add("tracking");const Nt=Pe.getBoundingClientRect();this._menu.modifiers=Zc(pt),this._menu.show({target:Pe,location:{x:Nt.left,y:Nt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),pt.preventDefault(),pt.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=Km(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(()=>Ts(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:re}),Vd&&!ut.locale.startsWith(Vd.locale)&&Fm(ut.locale),lu!=="ready"&&document.fonts.ready.then(()=>Bf(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(Ju(this)),Jf(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,F0())}showMenu(a){var y,b;const E=(b=(y=a==null?void 0:a.location)!=null?y:Uu(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:dt(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:Be(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=er.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=xe({},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=B0(this,a);"verbatimColor"in y&&delete y.verbatimColor,"verbatimBackgroundColor"in y&&delete y.verbatimBackgroundColor;const b=Object.keys(y).length;if(b===0)return"all";if(b>1){for(const ve of Object.keys(y)){const Ae=this.queryStyle({[ve]:y[ve]});if(Ae==="none")return"none";if(Ae==="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 ve of re){if(ve.type==="first"){le-=1;continue}ve.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]=Vm(this.options.keybindings,(a=Gd())!=null?a:zm());return((y=Gd())==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=xe(xe({},this.options),Ff(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=er.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&Ia.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)&&Ts(this)}getOptions(a){return Uc(this.options,a)}getOption(a){return Uc(this.options,a)}handleEvent(a){return Tc(this,null,function*(){var y;if(au(this)){if(w0(a)){if(!zd(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(gd(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"&&Hh(this,a);break;case"pointerdown":this.userSelect!=="none"&&(Hh(this,a),a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&Vf.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&Vf.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&Jf(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>au(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>au(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!au(this))return;ut.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,Gg(),qm(),mv()}flushInlineShortcutBuffer(a){if(a!=null||(a={defer:!1}),!a.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(a){return gd(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Ju(this))),!1):og(this,a)}get errors(){return th(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=a0(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();Ia.insert(this.model,a,y)&&(Ts(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&&Hc(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=Uu(this.field);else{const E=Fd(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&&We()&&navigator.vibrate(Ch),window.MathfieldElement.playSound("keypress")),a==="\\\\"?Lh(this.model):a==="&"?Nh(this.model):this.model.selectionIsCollapsed?Ia.insert(this.model,a,xe({style:this.model.at(this.model.position).computedStyle},y)):Ia.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Ts(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 ve=cl(y,{context:this.context,parseMode:a});le.collapseSelection("forward");const Ae=le.at(le.position);le.position=le.offsetOf(Ae.parent.addChildrenAfter(ve,Ae)),me=!0}if(this.model.mode=a,a==="latex"){let ve=le.selectionIsCollapsed;pd(this,"accept");let Ae,Pe=le.at(le.position);if(ve)Ae="\\";else{const Nt=ll(le.selection);Ae=this.model.getValue(Nt,"latex");const Yt=this.model.extractAtoms(Nt);Yt.length===1&&Yt[0].type==="placeholder"&&(Ae=y,ve=!0),Pe=le.at(Nt[0])}const pt=new $d(Ae);Pe.parent.addChildAfter(pt,Pe),ve?le.position=le.offsetOf(pt.lastChild):le.setSelection(le.offsetOf(pt.firstChild),le.offsetOf(pt.lastChild))}else Yd(le).forEach(ve=>{ve.isError=!1});if(b){const ve=cl(b,{context:this.context,parseMode:re});le.collapseSelection("forward");const Ae=le.at(le.position);le.position=le.offsetOf(Ae.parent.addChildrenAfter(ve,Ae)),me=!0}return Ts(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),me}),this.model.mode=a,window.mathVirtualKeyboard.update(Ju(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};ad(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const re=B0(this,a),le=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(le==="set"){this.defaultStyle=xe(xe({},this.defaultStyle),re);return}const me=xe({},this.defaultStyle);for(const ve of Object.keys(re))me[ve]===re[ve]?(ve==="color"&&delete me.verbatimColor,ve==="backgroundColor"&&delete me.verbatimBackgroundColor,delete me[ve]):me[ve]=re[ve];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)M0(this.model,me,re,{operation:le});else M0(this.model,ee.range,re,{operation:le})}),Ts(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=Uu(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),Ts(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,we(xe({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Ts(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),Ts(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(Ju(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(Ju(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(Ju(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:Ih(this.options);this.model.mode!==ee&&(this.model.mode==="latex"?(pd(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(Ju(this)),Jf(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",we(xe({},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(),Hc(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="",md(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})),Ts(this),this.focusBlurInProgress=!1,F0();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{au(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){L0(this,a)}onKeystroke(a){return $h(this,a)}onCompositionStart(a){this.model.deleteAtoms(ll(this.model.selection));const y=Uu(this.field);y&&requestAnimationFrame(()=>{Hc(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Dg(this.model,a),Ts(this)}onCompositionEnd(a){Ig(this.model),L0(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Ia.onCopy(this,a),qu(this.model,ll(this.model.selection),"deleteByCut"),this.snapshot("cut"),Ts(this))}onCopy(a){Ia.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=Ia.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=>jt(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 q0(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&&q0(E)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&q0(E,y)})))}function h1(a,y){var b;if(!lt())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"]};Nc().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));Nc().readAloudMarks=me.split(`
|
|
|
`).map(ve=>ve?JSON.parse(ve):{}),Nc().readAloudTokens=[];for(const ve of Nc().readAloudMarks)ve.value&&Nc().readAloudTokens.push(ve.value);Nc().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(ve,Ae)=>{if(ve){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${ve}`);return}if(!(Ae!=null&&Ae.AudioStream))return;const Pe=new Uint8Array(Ae.AudioStream),pt=new Blob([Pe.buffer],{type:"audio/mpeg"}),Nt=URL.createObjectURL(pt),Yt=Nc();Yt.readAloudAudio?Yt.readAloudAudio.pause():(Yt.readAloudAudio=new Audio,Yt.readAloudAudio.addEventListener("ended",()=>{const rn=Yt.readAloudMathfield;Yt.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),rn?(Hc(rn),Yt.readAloudElement=null,Yt.readAloudMathfield=null,Yt.readAloudTokens=[],Yt.readAloudMarks=[],Yt.readAloudCurrentMark=""):gp(Yt.readAloudElement)}),Yt.readAloudAudio.addEventListener("timeupdate",()=>{let rn="";const jn=Yt.readAloudAudio.currentTime*1e3+100;for(const Zr of Yt.readAloudMarks)Zr.time<jn&&(rn=Zr.value);Yt.readAloudCurrentMark!==rn&&(Yt.readAloudCurrentToken=rn,rn&&rn===Yt.readAloudFinalToken?Yt.readAloudAudio.pause():(Yt.readAloudCurrentMark=rn,q0(Yt.readAloudElement,Yt.readAloudCurrentMark)))})),Yt.readAloudAudio.src=Nt,Yt.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Yt.readAloudAudio.play()})})}lt()||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 xo=new WeakMap,p1=.5,Lc={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 = ..."},vl=class ed extends HTMLElement{static get formAssociated(){return kd()}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 ut.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),ut.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 ut.strings}static set strings(y){ut.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 Tc(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 xh(`${E}/${b}`))).arrayBuffer(),le=yield this.audioContext.decodeAudioData(re);this.audioBuffers[y]=le}catch(ee){}})}static playSound(y){return Tc(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(Lc[E])if(Lc[E].startsWith("mf."))if(Lc[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${Lc[E]}`);else{const ee=Lc[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 ${Lc[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(kd()&&(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=[Ac("core"),Ac("mathfield"),Ac("mathfield-element"),Ac("ui"),Ac("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>"+lc("core")+lc("mathfield")+lc("mathfield-element")+lc("ui")+lc("menu")+'</style><span></span><slot style="display:none"></slot>';y&&this._setOptions(y),this.shadowRoot.addEventListener("slotchange",()=>{var b;const E=this.shadowRoot.querySelector("slot:not([name])");this.value=(b=E==null?void 0:E.assignedNodes().map(ee=>ee.nodeType===3?ee.textContent:"").join("").trim())!=null?b:""})}showMenu(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.showMenu(y))!=null?E:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",y=>{var b;y.target===this&&!((b=this._mathfield)!=null&&b.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:y.altKey,button:y.button,buttons:y.buttons,clientX:y.clientX,clientY:y.clientY,ctrlKey:y.ctrlKey,metaKey:y.metaKey,movementX:y.movementX,movementY:y.movementY,relatedTarget:y.relatedTarget,screenX:y.screenX,screenY:y.screenY,shiftKey:y.shiftKey}))},{once:!0})}getPromptValue(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.getPromptValue(y,b))!=null?ee:""}setPromptValue(y,b,E){var ee;(ee=this._mathfield)==null||ee.setPromptValue(y,b,E)}getPromptRange(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptRange(y))!=null?E:null}getPrompts(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPrompts(y))!=null?E:[]}get form(){var y;return(y=this._internals)==null?void 0:y.form}get name(){var y;return(y=this.getAttribute("name"))!=null?y:""}get type(){return this.localName}get mode(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.mode)!=null?b:this.defaultMode==="text"?"text":"math"}set mode(y){var b;(b=this._mathfield)==null||b.switchMode(y)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(y){var b,E;if(!this._mathfield)return;const ee=(E=(b=ed.computeEngine)==null?void 0:b.box(y).latex)!=null?E:null;ee!==null&&this._mathfield.setValue(ee),window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}get errors(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.errors)!=null?b:[]}_getOptions(y){return this._mathfield?Uc(this._mathfield.options,y):xo.has(this)?xe({},Uc(xe(xe({},zf()),Ff(xo.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?Uc(this._mathfield.options,y):xo.has(this)?Uc(xe(xe({},zf()),Ff(xo.get(this).options)),y):null}reflectAttributes(){const y=zf(),b=this._getOptions();Object.keys(ed.optionsAttributes).forEach(E=>{const ee=fc(E);ed.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(ed.optionsAttributes[E]==="boolean"?b[ee]?this.setAttribute(E,""):this.removeAttribute(E):(typeof b[ee]=="string"||typeof b[ee]=="number")&&this.setAttribute(E,b[ee].toString()))})}getOption(y){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([y])[y]}_getOption(y){return this._getOptions([y])[y]}_setOptions(y){if(this._mathfield)this._mathfield.setOptions(y);else if(xo.has(this)){const b=xe(xe({},xo.get(this).options),y);xo.set(this,we(xe({},xo.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else xo.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))Lc[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${Lc[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(xo.has(this)){let le,me,ve;if(od(y)?([le,me]=y.ranges[0],ve=b):ad(y)?([le,me]=y,ve=b):Zu(y)&&Zu(b)?(le=y,me=b,ve=E):(le=0,me=-1,ve=y),(ve===void 0||ve==="latex")&&le===0&&me===-1)return(re=(ee=xo.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(xo.has(this)){const ee=xo.get(this).options;xo.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=df(this);xo.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=Ec(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;Gu.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),kd()||(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 ve=le.querySelector("slot:not([name])");if(ve)try{this._style=ve.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 Ae="";if(this.hasAttribute("value")?Ae=this.getAttribute("value"):Ae=(y=ve==null?void 0:ve.assignedNodes().map(Pe=>Pe.nodeType===3?Pe.textContent:"").join("").trim())!=null?y:"",this._mathfield=new f1(le.querySelector(":host > span"),we(xe({},(E=(b=xo.get(this))==null?void 0:b.options)!=null?E:df(this)),{eventSink:this,value:Ae})),!xo.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Pe of Object.keys(ed.optionsAttributes))this.upgradeProperty(fc(Pe))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if(xo.has(this)){const Pe=this._mathfield,pt=xo.get(this),Nt=pt.menuItems;Pe.model.deferNotifications({content:!1,selection:!1},()=>{const Yt=pt.value;Yt!==void 0&&Pe.setValue(Yt),Pe.model.selection=pt.selection,xo.delete(this)}),Nt&&(this.menuItems=Nt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),Tf()}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=Uc(this._mathfield.options,Object.keys(ed.optionsAttributes).map(ee=>fc(ee)));xo.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":Ts(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",""),kd()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(kd()?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"),kd()?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:we(xe({},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=xo.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}xo.has(this)?xo.set(this,we(xe({},xo.get(this)),{menuItems:y})):xo.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:xo.has(this)?xo.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,Ts(this._mathfield);return}if(xo.has(this)){xo.set(this,we(xe({},xo.get(this)),{selection:y}));return}xo.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:xo.has(this)?xo.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Ts(this._mathfield)),xo.has(this)){xo.set(this,we(xe({},xo.get(this)),{selection:{ranges:[[y,y]]}}));return}xo.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}};vl.version="0.98.5",vl._fontsDirectory="./fonts",vl._soundsDirectory="./sounds",vl.keypressVibration=!0,vl._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},vl._plonkSound="plonk.wav",vl.audioBuffers={},vl.createHTML=a=>a,vl._speechEngineRate="100%",vl._speechEngineVoice="Joanna",vl._textToSpeechMarkup="",vl._textToSpeechRules="mathlive",vl._textToSpeechRulesOptions={},vl.speakHook=r1,vl.readAloudHook=h1,vl._decimalSeparator=".",vl.fractionNavigationOrder="numerator-denominator",vl._isFunction=a=>{var y,b;const E=window.MathfieldElement.computeEngine;return(b=(y=E==null?void 0:E.parse(a).domain)==null?void 0:y.isFunction)!=null?b:!1};var cf=vl;function fc(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function df(a){const y={readOnly:!1},b=cf.optionsAttributes;return Object.keys(b).forEach(E=>{if(a.hasAttribute(E)){const ee=a.getAttribute(E);E==="placeholder"?y.contentPlaceholder=ee!=null?ee:"":b[E]==="boolean"?y[fc(E)]=!0:b[E]==="on/off"?ee==="on"?y[fc(E)]=!0:ee==="off"?y[fc(E)]=!1:y[fc(E)]=void 0:b[E]==="number"?y[fc(E)]=Number.parseFloat(ee!=null?ee:"0"):y[fc(E)]=ee}}),y}function kd(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var vp=cf,yp,bp,xp,Sp;if(lt()&&!((yp=window.customElements)!=null&&yp.get("math-field"))){(xp=window[bp=Symbol.for("io.cortexjs.mathlive")])!=null||(window[bp]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=cf,(Sp=window.customElements)==null||Sp.define("math-field",cf)}function m1(a,y,b){let E=b,ee=0;const re=a.length;for(;E<y.length;){const le=y[E];if(ee<=0&&y.slice(E,E+re)===a)return E;le==="\\"?E++:le==="{"?ee++:le==="}"&&ee--,E++}return-1}function n0(a,y,b,E,ee="latex"){const re=[];for(const le of a)if(le.type==="text"){const me=le.data;let ve=!0,Ae=0,Pe;Pe=me.indexOf(y),Pe!==-1&&(Ae=Pe,Ae>0&&re.push({type:"text",data:me.slice(0,Ae)}),ve=!1);let pt=!1;for(;!pt;){if(ve){if(Pe=me.indexOf(y,Ae),Pe===-1){pt=!0;break}Ae!==Pe&&re.push({type:"text",data:me.slice(Ae,Pe)}),Ae=Pe}else{if(Pe=m1(b,me,Ae+y.length),Pe===-1){pt=!0;break}let Nt=me.slice(Ae+y.length,Pe);ee==="ascii-math"&&([,Nt]=jc(Nt,{format:"ascii-math"})),re.push({type:"math",data:Nt,rawData:me.slice(Ae,Pe+b.length),mathstyle:E}),Ae=Pe+b.length}ve=!ve}Ae<me.length&&re.push({type:"text",data:me.slice(Ae)})}else re.push(le);return re}function Cp(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ee,re])=>{E=n0(E,ee,re,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,re])=>{E=n0(E,ee,re,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,re])=>{E=n0(E,ee,re,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,re])=>{E=n0(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 Dd(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 ve=document.createElement("span");ve.setAttribute("translate","no");const Ae=b.renderToSpeakableText(a);ve.innerHTML=window.MathfieldElement.createHTML(Ae),ve.className="ML__sr-only",me.append(ve)}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=Dd(a,"",y,!0);le&&re.appendChild(le)}else{if(!a.trim())return null;const le=Cp(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 ve=Dd(me.data,me.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);ve&&re.appendChild(ve)}}return re}function wp(a,y){var b,E,ee,re,le,me,ve,Ae,Pe,pt,Nt,Yt,rn,jn,Zr,Rn;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const fr=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(fr)){a.textContent="";const Sr=Dd(fr,"",y,!0);Sr&&a.append(Sr);return}const qr=Cp(fr,(ee=y.TeX)==null?void 0:ee.delimiters,(re=y.asciiMath)==null?void 0:re.delimiters);if(qr.length===1&&qr[0].type==="math"){a.textContent="";const Sr=Dd(qr[0].data,qr[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);Sr&&a.append(Sr);return}if(qr.length===1&&qr[0].type==="text")return}for(let fr=a.childNodes.length-1;fr>=0;fr--){const qr=a.childNodes[fr];if(qr.nodeType===3){const Sr=y1((le=qr.textContent)!=null?le:"",y);Sr&&(fr+=Sr.childNodes.length-1,qr.replaceWith(Sr))}else if(qr.nodeType===1){const Sr=qr,Ki=qr.nodeName.toLowerCase();if(Ki==="script"){const ra=qr;let Xi;if((me=y.processScriptTypePattern)!=null&&me.test(ra.type))Xi=(ve=ra.textContent)!=null?ve:"";else if((Ae=y.processMathJSONScriptTypePattern)!=null&&Ae.test(ra.type))try{Xi=(pt=y.serializeToLatex)==null?void 0:pt.call(y,JSON.parse((Pe=ra.textContent)!=null?Pe:""))}catch(so){console.error(so)}if(Xi){let so="textstyle";for(const ui of ra.type.split(";")){const[uu,ec]=ui.toLowerCase().split("=");uu.trim()==="mode"&&(so=ec.trim()==="display"?"displaystyle":"textstyle")}const Ho=Dd(Xi,so,y,!0);Ho&&ra.parentNode.replaceChild(Ho,ra)}}else if(((Yt=(Nt=y.processClassPattern)==null?void 0:Nt.test(Sr.className))!=null?Yt:!1)||!((jn=(rn=y.skipTags)==null?void 0:rn.includes(Ki))!=null&&jn||(Rn=(Zr=y.ignoreClassPattern)==null?void 0:Zr.test(Sr.className))!=null&&Rn))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Xi=a.textContent;a.textContent="";const so=Dd(Xi!=null?Xi:"","displaystyle",y,!0);so&&a.append(so)}else wp(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=xe(xe({},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:""),Tf(),ql("core"),wp(a,le)}catch(le){le instanceof Error?console.error("renderMathInElement(): "+le.message):console.error("renderMathInElement(): Could not render math for element",a)}}function S1(a,y){const b=Dc.singleton;return b?(b.show(),Xd(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function C1(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}eu({switchKeyboardLayer:S1,toggleVirtualKeyboard:C1,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function Nc(){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 N1(a){E1(document.body,a)}function w1(a){if(typeof a=="string"){const y=document.getElementById(a);if(y===null)throw new Error(`The element with ID "${a}" could not be found.`);return y}return typeof a=="string"?null:a}function E1(a,y){var b,E,ee,re;const le=w1(a);if(!le)return;const me=y!=null?y:{};(b=me.renderToMarkup)!=null||(me.renderToMarkup=dl),(E=me.renderToMathML)!=null||(me.renderToMathML=Pv),(ee=me.renderToSpeakableText)!=null||(me.renderToSpeakableText=Rv),(re=me.serializeToLatex)!=null||(me.serializeToLatex=Fv),x1(le,me)}var T1={mathlive:"0.98.5"}},16722:function(gn,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xe}});const oe=we=>typeof we=="object"&&we!=null&&we.nodeType===1,ke=(we,Te)=>(!Te||we!=="hidden")&&we!=="visible"&&we!=="clip",Ce=(we,Te)=>{if(we.clientHeight<we.scrollHeight||we.clientWidth<we.scrollWidth){const qe=getComputedStyle(we,null);return ke(qe.overflowY,Te)||ke(qe.overflowX,Te)||(Ie=>{const Re=(lt=>{if(!lt.ownerDocument||!lt.ownerDocument.defaultView)return null;try{return lt.ownerDocument.defaultView.frameElement}catch(Ue){return null}})(Ie);return!!Re&&(Re.clientHeight<Ie.scrollHeight||Re.clientWidth<Ie.scrollWidth)})(we)}return!1},Ye=(we,Te,qe,Ie,Re,lt,Ue,We)=>lt<we&&Ue>Te||lt>we&&Ue<Te?0:lt<=we&&We<=qe||Ue>=Te&&We>=qe?lt-we-Ie:Ue>Te&&We<qe||lt<we&&We>qe?Ue-Te+Re:0,ye=we=>{const Te=we.parentElement;return Te==null?we.getRootNode().host||null:Te},Ee=(we,Te)=>{var qe,Ie,Re,lt;if(typeof document=="undefined")return[];const{scrollMode:Ue,block:We,inline:ct,boundary:tt,skipOverflowHiddenElements:At}=Te,ut=typeof tt=="function"?tt:It=>It!==tt;if(!oe(we))throw new TypeError("Invalid target");const ot=document.scrollingElement||document.documentElement,je=[];let Se=we;for(;oe(Se)&&ut(Se);){if(Se=ye(Se),Se===ot){je.push(Se);break}Se!=null&&Se===document.body&&Ce(Se)&&!Ce(document.documentElement)||Se!=null&&Ce(Se,At)&&je.push(Se)}const Fe=(Ie=(qe=window.visualViewport)==null?void 0:qe.width)!=null?Ie:innerWidth,Ze=(lt=(Re=window.visualViewport)==null?void 0:Re.height)!=null?lt:innerHeight,{scrollX:xt,scrollY:Je}=window,{height:dt,width:Be,top:kt,right:He,bottom:Tt,left:mt}=we.getBoundingClientRect(),{top:Et,right:zt,bottom:Bt,left:De}=(It=>{const Qe=window.getComputedStyle(It);return{top:parseFloat(Qe.scrollMarginTop)||0,right:parseFloat(Qe.scrollMarginRight)||0,bottom:parseFloat(Qe.scrollMarginBottom)||0,left:parseFloat(Qe.scrollMarginLeft)||0}})(we);let ge=We==="start"||We==="nearest"?kt-Et:We==="end"?Tt+Bt:kt+dt/2-Et+Bt,at=ct==="center"?mt+Be/2-De+zt:ct==="end"?He+zt:mt-De;const Ct=[];for(let It=0;It<je.length;It++){const Qe=je[It],{height:et,width:Lt,top:dn,right:_t,bottom:tn,left:en}=Qe.getBoundingClientRect();if(Ue==="if-needed"&&kt>=0&&mt>=0&&Tt<=Ze&&He<=Fe&&(Qe===ot&&!Ce(Qe)||kt>=dn&&Tt<=tn&&mt>=en&&He<=_t))return Ct;const Jt=getComputedStyle(Qe),Vt=parseInt(Jt.borderLeftWidth,10),be=parseInt(Jt.borderTopWidth,10),ce=parseInt(Jt.borderRightWidth,10),ue=parseInt(Jt.borderBottomWidth,10);let de=0,pe=0;const se="offsetWidth"in Qe?Qe.offsetWidth-Qe.clientWidth-Vt-ce:0,Le="offsetHeight"in Qe?Qe.offsetHeight-Qe.clientHeight-be-ue:0,ht="offsetWidth"in Qe?Qe.offsetWidth===0?0:Lt/Qe.offsetWidth:0,_e="offsetHeight"in Qe?Qe.offsetHeight===0?0:et/Qe.offsetHeight:0;if(ot===Qe)de=We==="start"?ge:We==="end"?ge-Ze:We==="nearest"?Ye(Je,Je+Ze,Ze,be,ue,Je+ge,Je+ge+dt,dt):ge-Ze/2,pe=ct==="start"?at:ct==="center"?at-Fe/2:ct==="end"?at-Fe:Ye(xt,xt+Fe,Fe,Vt,ce,xt+at,xt+at+Be,Be),de=Math.max(0,de+Je),pe=Math.max(0,pe+xt);else{de=We==="start"?ge-dn-be:We==="end"?ge-tn+ue+Le:We==="nearest"?Ye(dn,tn,et,be,ue+Le,ge,ge+dt,dt):ge-(dn+et/2)+Le/2,pe=ct==="start"?at-en-Vt:ct==="center"?at-(en+Lt/2)+se/2:ct==="end"?at-_t+ce+se:Ye(en,_t,Lt,Vt,ce+se,at,at+Be,Be);const{scrollLeft:Ne,scrollTop:St}=Qe;de=_e===0?0:Math.max(0,Math.min(St+de/_e,Qe.scrollHeight-et/_e+Le)),pe=ht===0?0:Math.max(0,Math.min(Ne+pe/ht,Qe.scrollWidth-Lt/ht+se)),ge+=St-de,at+=Ne-pe}Ct.push({el:Qe,top:de,left:pe})}return Ct},he=we=>we===!1?{block:"end",inline:"nearest"}:(Te=>Te===Object(Te)&&Object.keys(Te).length!==0)(we)?we:{block:"start",inline:"nearest"};function xe(we,Te){if(!we.isConnected||!(Re=>{let lt=Re;for(;lt&<.parentNode;){if(lt.parentNode===document)return!0;lt=lt.parentNode instanceof ShadowRoot?lt.parentNode.host:lt.parentNode}return!1})(we))return;const qe=(Re=>{const lt=window.getComputedStyle(Re);return{top:parseFloat(lt.scrollMarginTop)||0,right:parseFloat(lt.scrollMarginRight)||0,bottom:parseFloat(lt.scrollMarginBottom)||0,left:parseFloat(lt.scrollMarginLeft)||0}})(we);if((Re=>typeof Re=="object"&&typeof Re.behavior=="function")(Te))return Te.behavior(Ee(we,Te));const Ie=typeof Te=="boolean"||Te==null?void 0:Te.behavior;for(const{el:Re,top:lt,left:Ue}of Ee(we,he(Te))){const We=lt-qe.top+qe.bottom,ct=Ue-qe.left+qe.right;Re.scroll({top:We,left:ct,behavior:Ie})}}}}]);
|
|
|
}()); |