|
|
!(function(){var td=Math.pow;var Fd=(An,tn,ne)=>new Promise((E,ye)=>{var Ee=Se=>{try{Ce(ne.next(Se))}catch(pe){ye(pe)}},Ye=Se=>{try{Ce(ne.throw(Se))}catch(pe){ye(pe)}},Ce=Se=>Se.done?E(Se.value):Promise.resolve(Se.value).then(Ee,Ye);Ce((ne=ne.apply(An,tn)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[75816],{89489:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},59477:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},40001:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},49198:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},84105:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},18785:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},87169:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ye=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},73331:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},15277:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},52671:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},8657:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},56082:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},33853:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},12893:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"minus-circle",theme:"outlined"},Ye=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},15075:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},32134:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-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 8h152v152c0 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-8z"}},{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"}}]},name:"plus-circle",theme:"outlined"},Ye=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},62772:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},43531:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},61485:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},38819:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},47472:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},87395:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Pe,et){return ye.createElement(Ce.Z,(0,E.Z)({},Pe,{ref:et,icon:Ye}))},pe=ye.forwardRef(Se),be=pe},22054:function(){"use strict"},68305:function(){"use strict"},2375:function(An,tn){"use strict";tn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},44267:function(An,tn){"use strict";tn.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},90048:function(An,tn,ne){"use strict";var E=ne(59301),ye=Object.defineProperty,Ee=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Se=(De,Pe,et)=>Pe in De?ye(De,Pe,{enumerable:!0,configurable:!0,writable:!0,value:et}):De[Pe]=et,pe=(De,Pe)=>{for(var et in Pe||(Pe={}))Ye.call(Pe,et)&&Se(De,et,Pe[et]);if(Ee)for(var et of Ee(Pe))Ce.call(Pe,et)&&Se(De,et,Pe[et]);return De};const be=De=>React.createElement("svg",pe({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},De),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));tn.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},75354:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var An={},tn="5.0",ne={},E=null,ye=!1,Ee=!1,Ye=null,Ce=!1,Se=null,pe=null,be=0;be<arguments.length;be++){var De=arguments[be];if(De!==null)switch(typeof De){case"number":tn=De.toFixed(1);break;case"string":De.match(new RegExp("^[0-9]\\.[0-9]+$"))?tn=De:Ye=De;break;case"object":typeof De.is3D!="undefined"?E=De:ne=De;break;case"boolean":ye=De,Ee=!0;break}}E===null&&(E={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ne.material_id!==void 0&&!Ee&&(ye=!0)),Ye!==null&&ne.id===void 0&&(ne.id=Ye);var Pe="",et="",Fe=!1,Ie=null,tt=null,ze=null,We=!1,lt=null,Xe=null,Dt=null,dt=null,Qe=null;ne.height!==void 0&&(ne.height=Math.round(ne.height)),ne.width!==void 0&&(ne.width=Math.round(ne.width));var Ze=function(ct){return parseFloat(ct)>4?parseFloat(ct):5};An.setHTML5Codebase=function(ct,Ct){pe=ct,st(ct,Ct)},An.setJavaCodebase=An.setJavaCodebaseVersion=An.isCompiledInstalled=An.setPreCompiledScriptPath=An.setPreCompiledResourcePath=function(){},An.setHTML5CodebaseVersion=function(ct,Ct){var Zt=parseFloat(ct);if(Zt!==NaN&&Zt<5){console.log("The GeoGebra HTML5 codebase version "+Zt+" is deprecated. Using version latest instead.");return}Se=ct,Me(ct,Ct)},An.getHTML5CodebaseVersion=function(){return tt},An.getParameters=function(){return ne},An.setFontsCSSURL=function(ct){dt=ct},An.setGiacJSURL=function(ct){},An.setJNLPFile=function(ct){Pe=ct},An.setJNLPBaseDir=function(ct){},An.inject=function(){function ct(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ct="auto",Zt=ne.id,gn,$t=!1,Wt=0;Wt<arguments.length;Wt++){var on=arguments[Wt];typeof on=="string"?(on=on.toLowerCase(),on.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ct=on:Zt=arguments[Wt]):typeof on=="boolean"?$t=on:on instanceof HTMLElement&&(gn=on)}dn();function dn(){if(!Ce){setTimeout(dn,200);return}Ct=at(Ct);var ln=gn||document.getElementById(Zt);if(!ln){console.log("possibly bug on ajax loading? ");return}if(An.removeExistingApplet(ln,!1),ne.width===void 0&&ln.clientWidth&&(ne.width=ln.clientWidth),ne.height===void 0&&ln.clientHeight&&(ne.height=ln.clientHeight),!(ne.width&&ne.height)&&Ct==="html5"&&(delete ne.width,delete ne.height),Ie=Ct,Ct==="screenshot")Ve(ln,ne);else{var xe=!1;ne.hasOwnProperty("playButton")&&ne.playButton||ne.hasOwnProperty("clickToLoad")&&ne.clickToLoad?xe=!0:ne.hasOwnProperty("playButtonAutoDecide")&&ne.playButtonAutoDecide&&(xe=(!Ae()||ct())&&Je()),xe?(Ie="screenshot",nt(ln,ne,$t,Ct)):xt(ln,ne,$t)}}};function Ae(){try{return window.self!==window.top}catch(ct){return!0}}function Je(){return ne.hasOwnProperty("screenshotGenerator")&&ne.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}An.getViews=function(){return E},An.isJavaInstalled=function(){return!1};var Re=function(ct){var Ct=function(Wt){var on=JSON.parse(Wt),dn=function(fe){return fe.type=="G"||fe.type=="E"},ln=on.elements?on.elements.filter(dn)[0]:on;if(!ln||!ln.url){Zt();return}ne.fileName=ln.url,vt(ln.settings||{}),E.is3D=!0;var xe="https://www.geogebra.org/images/";An.setPreviewImage(lt||ln.previewUrl,xe+"GeoGebra_loading.png",xe+"applet_play.png"),ct()},Zt=function(){ne.onError&&ne.onError(),Ht("Error: Fetching material (id "+ne.material_id+") failed.",ne)},gn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",$t="/materials/"+ne.material_id+"?scope=basic";$e("https://"+gn+"/api/proxy.php?path="+encodeURIComponent($t),Ct,Zt)};function vt(ct){var Ct=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Zt){ct[Zt]=!!ct[Zt]}),Ct.forEach(function(Zt){ne[Zt]===void 0&&ct[Zt]!==void 0&&(ne[Zt]=ct[Zt])}),ne.showToolBarHelp===void 0&&(ne.showToolBarHelp=ne.showToolBar)}function $e(ct,Ct,Zt){var gn=new XMLHttpRequest;gn.open("GET",ct),gn.onload=function(){Ct(gn.responseText)},gn.onerror=Zt,gn.send()}An.isHTML5Installed=function(){return!0},An.getLoadedAppletType=function(){return Ie},An.setPreviewImage=function(ct,Ct,Zt){lt=ct,Xe=Ct,Dt=Zt},An.removeExistingApplet=function(ct,Ct){var Zt;typeof ct=="string"&&(ct=document.getElementById(ct)),Ie=null;var gn=null;for(Zt=0;Zt<ct.childNodes.length;Zt++){var $t=ct.childNodes[Zt],Wt=$t.className;Wt==="applet_screenshot"?Ct?($t.style.display="block",Ie="screenshot"):$t.style.display="none":Wt!=="applet_scaler prerender"&&(ct.removeChild($t),gn=Wt&&Wt.indexOf("appletParameters")!=-1?$t.id:null,Zt--)}var on=ne.id!==void 0?ne.id:gn,dn=window[on];dn&&typeof dn.getBase64=="function"&&(dn.remove(),window[on]=null)},An.refreshHitPoints=function(){if(Ze(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ct=An.getAppletObject();return ct&&typeof ct.recalculateEnvironments=="function"?(ct.recalculateEnvironments(),!0):!1},An.startAnimation=function(){var ct=An.getAppletObject();return ct&&typeof ct.startAnimation=="function"?(ct.startAnimation(),!0):!1},An.stopAnimation=function(){var ct=An.getAppletObject();return ct&&typeof ct.stopAnimation=="function"?(ct.stopAnimation(),!0):!1},An.getAppletObject=function(){var ct=ne.id!==void 0?ne.id:"ggbApplet";return window[ct]},An.resize=function(){};var mt=function(ct,Ct,Zt){var gn=document.createElement("param");gn.setAttribute("name",Ct),gn.setAttribute("value",Zt),ct.appendChild(gn)},Be=function(ct){return ct&&ct!=="false"},xt=function(ct,Ct,Zt){Ze(tt)<=4.2&&(Zt=!0);var gn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==tt||ggbHTML5LoadedCodebaseIsWebSimple&&!We)&&(gn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var $t=document.createElement("div");$t.classList.add("appletParameters","notranslate");var Wt=Ct.width,on=Ct.height;if(Ct.disableAutoScale=Ct.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ct.disableAutoScale,Ct.width!==void 0)if(Ze(tt)<=4.4)Be(Ct.showToolBar)&&(Ct.height-=7),Be(Ct.showAlgebraInput)&&(Ct.height-=37),Ct.width<605&&Be(Ct.showToolBar)&&(Ct.width=605,Wt=605);else{var dn=100;(Be(Ct.showToolBar)||Be(Ct.showMenuBar))&&(Ct.hasOwnProperty("customToolBar")&&(Ct.customToolbar=Ct.customToolBar),dn=Be(Ct.showMenuBar)?245:155),Wt<dn&&(Ct.width=dn,Wt=dn)}$t.style.border="none",$t.style.display="inline-block";for(var ln in Ct)Ct.hasOwnProperty(ln)&&ln!=="appletOnLoad"&&$t.setAttribute("data-param-"+ln,Ct[ln]);dt&&$t.setAttribute("data-param-fontscssurl",dt),An.resize=function(){GGBAppletUtils.responsiveResize(ct,Ct)},window.addEventListener("resize",function(ht){An.resize()});var xe=typeof Ct.appletOnLoad=="function"?Ct.appletOnLoad:function(){};if(!Zt&&Ct.width!==void 0){Ct.hasOwnProperty("showSplash")||$t.setAttribute("data-param-showSplash","false");var fe=ct.querySelector(".applet_scaler.prerender"),ue=fe!==null;if(ue)var he=fe.querySelector(".ggb_preview");else{var he=Mt(Wt,on,Ct.borderColor,!1);fe=document.createElement("div"),fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.style.width=Wt+"px",fe.style.height=on+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(fe,"66%"),Ze(tt)>=5?(Ct.appletOnLoad=function(ht){var Kt=ct.querySelector(".ggb_preview");Kt&&Kt.parentNode.removeChild(Kt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(fe),window.GGBT_wsf_view&&$(window).trigger("resize"),xe(ht)},ue||fe.appendChild(he)):$t.appendChild(he),fe.appendChild($t),ue||ct.appendChild(fe),setTimeout(function(){An.resize()},1)}else{var me=document.createElement("div");me.className="applet_scaler",me.style.position="relative",me.style.display="block",me.appendChild($t),ct.appendChild(me),Ct.appletOnLoad=function(ht){An.resize(),xe(ht)}}function oe(ht,Kt){Kt&&typeof Kt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ht,Kt.appletOnLoad):renderGGBElement(ht),Ht("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Kt)}function Ne(ht,Kt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ht,params:Kt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(vn){oe(vn.article,vn.params)}),html5AppletsToProcess=null)},Ze(tt)<5&&(ht.className+=" geogebraweb")):oe(ht,Kt)}if(gn){scriptLoadStarted=!0;for(var At=0;At<$t.childNodes.length;At++){var Ge=$t.childNodes[At].tagName;Ge==="TABLE"&&($t.removeChild($t.childNodes[At]),At--)}if(ggbHTML5LoadedScript!==null){var je=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');je!=null&&je.parentNode.removeChild(je)}var Pt=document.createElement("script"),Et=function(){Ne($t,Ct)};Pt.src=et+ze,ggbHTML5LoadedCodebaseIsWebSimple=We,ggbHTML5LoadedCodebaseVersion=tt,ggbHTML5LoadedScript=Pt.src,Ht("GeoGebra HTML5 codebase loaded: '"+et+"'.",Ct),!pe&&(!Se||Se=="5.0")?(We?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Et()):et.requirejs?__webpack_require__.e(49111).then(function(){var ht=[__webpack_require__(49111)];Et.apply(null,ht)}.bind(this)).catch(__webpack_require__.oe):(Pt.onload=Et,ct.appendChild(Pt))}else Ne($t,Ct);Ct.height=on,Ct.width=Wt},Ve=function(ct,Ct,Zt){var gn=Mt(Ct.width,Ct.height,Ct.borderColor,Zt),$t=document.createElement("div");$t.style.position="relative",$t.style.display="block",$t.style.width=Ct.width+"px",$t.style.height=Ct.height+"px",$t.className="applet_screenshot applet_scaler"+(Zt?" applet_screenshot_play":""),$t.appendChild(gn);var Wt=GGBAppletUtils.getScale(Ct,ct,Zt);Zt?(ct.appendChild(wt()),window.GGBT_wsf_view||(ct.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner($t,"66%"),ct.appendChild($t),Wt!==1&&!isNaN(Wt)&&(GGBAppletUtils.scaleElement($t,Wt),$t.style.width=Ct.width+"px",$t.style.height=Ct.height+"px",$t.parentNode.style.width=Ct.width*Wt+"px",$t.parentNode.style.height=Ct.height*Wt+"px"),An.resize=function(){Ot(ct,gn,$t,Zt)},window.addEventListener("resize",function(on){An.resize()}),An.resize()};function Ot(ct,Ct,Zt,gn){if(ct.contains(Ct)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ct.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ct)}var $t=GGBAppletUtils.getScale(ne,ct,gn);Zt.parentNode!==null&&(!isNaN($t)&&$t!==1?(GGBAppletUtils.scaleElement(Zt,$t),Zt.parentNode.style.width=ne.width*$t+"px",Zt.parentNode.style.height=ne.height*$t+"px"):(GGBAppletUtils.scaleElement(Zt,1),Zt.parentNode.style.width=ne.width+"px",Zt.parentNode.style.height=ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ct),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}An.onExitFullscreen=function(ct,Ct){Ct.appendChild(ct)};var nt=function(ct,Ct,Zt,gn){Ve(ct,Ct,!0);for(var $t=function(){var dn=[];for(on=0;on<ct.childNodes.length;on++)dn.push(ct.childNodes[on]);if(window.GGBT_wsf_view){var ln=window.GGBT_wsf_view.renderFullScreen(ct,Ct.id),xe=document.getElementById("fullscreencontainer"),fe=jQuery(ct).find(".fullscreencontent");fe.length>0?(ln.remove(),fe.attr("id","fullscreencontent").show(),jQuery(xe).append(fe),window.dispatchEvent(new Event("resize"))):xt(ln,Ct,!1),window.GGBT_wsf_view.launchFullScreen(xe)}else Ie=gn,xt(ct,Ct,!1);if(!window.GGBT_wsf_view)for(on=0;on<dn.length;on++)ct.removeChild(dn[on])},Wt=ct.getElementsByClassName("ggb_preview_play"),on=0;on<Wt.length;on++)Wt[on].addEventListener("click",$t,!1),Wt[on].addEventListener("ontouchstart",$t,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ct),Je()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},wt=function(){var ct=document.createElement("div");if(ct.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ct='.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");}',Zt=document.createElement("style");Zt.styleSheet?Zt.styleSheet.cssText=Ct:Zt.appendChild(document.createTextNode(Ct)),document.getElementsByTagName("head")[0].appendChild(Zt)}return ct},Mt=function(ct,Ct,Zt,gn){var $t=document.createElement("div");$t.className="ggb_preview",$t.style.position="absolute",$t.style.zIndex="90",$t.style.width=ct-2+"px",$t.style.height=Ct-2+"px",$t.style.top="0px",$t.style.left="0px",$t.style.overflow="hidden",$t.style.backgroundColor="white";var Wt="lightgrey";Zt!==void 0&&(Zt==="none"?Wt="transparent":Wt=Zt),$t.style.border="1px solid "+Wt;var on=document.createElement("img");if(on.style.position="relative",on.style.zIndex="1000",on.style.top="-1px",on.style.left="-1px",lt!==null&&on.setAttribute("src",lt),on.style.opacity=.7,Xe!==null){var dn,ln,xe;if(!gn){dn=document.createElement("img"),dn.style.position="absolute",dn.style.zIndex="1001",dn.style.opacity=1,on.style.opacity=.3,ln=360,ln>ct/4*3&&(ln=ct/4*3),xe=ln/5.8,dn.setAttribute("src",Xe),dn.setAttribute("width",ln),dn.setAttribute("height",xe);var fe=(ct-ln)/2,ue=(Ct-xe)/2;dn.style.left=fe+"px",dn.style.top=ue+"px",$t.appendChild(dn)}}return $t.appendChild(on),$t},at=function(ct){return ct=ct.toLowerCase(),ct==="html5"||ct==="screenshot"?ct:"html5"},Le=["web","webSimple","web3d","tablet","tablet3d","phone"],Me=function(ct,Ct){if(tt=ct,Ct){st(tt,!0);return}var Zt=!ye;if(Zt){var gn=Ze(tt);!isNaN(gn)&&gn<4.4&&(Zt=!1)}var $t,Wt;window.location.protocol.substr(0,4)==="http"?$t=window.location.protocol:$t="http:";var on=tt.indexOf("//");on>0?Wt=tt:on===0?Wt=$t+tt:Wt="https://www.geogebra.org/apps/5.2.814.0/";for(var dn in Le)if(tt.slice(Le[dn].length*-1)===Le[dn]||tt.slice((Le[dn].length+1)*-1)===Le[dn]+"/"){st(Wt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Zt&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!Be(ne.showToolBar)&&!Be(ne.showMenuBar)&&!Be(ne.showAlgebraInput)&&!Be(ne.enableRightClick)&&(!ne.appName||ne.appName=="classic")?Wt+="webSimple/":Wt+="web3d/",st(Wt,!1)},st=function(ct,Ct){if(ct.requirejs){et=ct;return}ct.slice(-1)!=="/"&&(ct+="/"),et=ct,Ct===null&&(Ct=ct.indexOf("http")===-1),Fe=Ct,ze="web.nocache.js",We=!1;var Zt=et.split("/");Zt.length>1&&(!Ct&&Zt[Zt.length-2]==="webSimple"?(ze="webSimple.nocache.js",We=!0):Le.indexOf(Zt[Zt.length-2])>=0&&(ze=Zt[Zt.length-2]+".nocache.js")),Zt=ct.split("/"),tt=Zt[Zt.length-3],tt.substr(0,4)==="test"?tt=tt.substr(4,1)+"."+tt.substr(5,1):(tt.substr(0,3)==="war"||tt.substr(0,4)==="beta")&&(tt="5.0");var gn=parseFloat(tt);gn!==NaN&&gn<5&&ct.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+gn+" is deprecated. Using version latest instead."),Me("5.0",Ct))},Ht=function(ct,Ct){window.console&&window.console.log&&(!Ct||typeof Ct.showLogging=="undefined"||Ct.showLogging&&Ct.showLogging!=="false")&&console.log(ct)};ne.material_id!==void 0?Re(Tt):Tt();function Tt(){var ct=tn;Se!==null?ct=Se:parseFloat(ct)<5&&(ct="5.0"),Me(ct,!1),pe!==null&&st(pe,Fe),Ce=!0}return An},GGBAppletUtils=function(){"use strict";function An(){return window.GGBT_wsf_edit!==void 0}function tn(Ce,Se){Se!=1?(Ce.style.transformOrigin="0% 0% 0px",Ce.style.webkitTransformOrigin="0% 0% 0px",Ce.style.transform="scale("+Se+","+Se+")",Ce.style.webkitTransform="scale("+Se+","+Se+")",Ce.style.maxWidth="initial",Ce.querySelector(".ggb_preview")!==null&&(Ce.querySelector(".ggb_preview").style.maxWidth="initial"),Ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ce.style.transform="none",Ce.style.webkitTransform="none")}function ne(Ce,Se,pe,be,De,Pe){var et=null;if(Pe!=null&&Pe!="")for(var Fe=Ce.parentNode;Fe!=null;)if((" "+Fe.className+" ").indexOf(" "+Pe+" ")>-1){et=Fe;break}else Fe=Fe.parentNode;var Ie=0,tt=0,ze=0,We=0,lt=0,Xe=0,Dt=0;if(et)Ie=et.offsetWidth,tt=Math.max(be?et.offsetWidth:0,et.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),tt=Math.min(window.innerHeight,document.documentElement.clientHeight),ze=Ie):(Ie=window.innerWidth,tt=window.innerHeight,ze=window.innerWidth),Ce){var dt=Ce.getBoundingClientRect();dt.left>0&&dt.left<=Ie&&(De===void 0||!De)&&(document.dir==="rtl"?(lt=Ie-dt.width-dt.left,Xe=ze<=480?10:30):(Xe=dt.left,lt=ze<=480?10:30),We=Xe+lt)}if(Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Qe=Ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(We=40,Dt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(We=0,Dt=40)}}return Ce&&((pe===void 0||!pe)&&Se>0&&Se+We<Ie?Ie=Se:Ie-=We,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(pe===void 0||!pe)&&(tt-=Dt)),{width:Ie,height:tt}}function E(Ce,Se,pe,be,De){if(Ce.isScreenshoGenerator)return 1;var Pe=be!==void 0&&be,et=Ce.noScaleMargin!=null&&Ce.noScaleMargin,Fe=function(Qe){return Qe&&Qe!=="false"},Ie=Fe(Ce.autoHeight),tt=ne(Se,Ce.width,pe,Ie,Pe&&window.GGBT_wsf_view||et,De),ze=parseInt(tt.width),We=Ce.width,lt=Ce.height;if(We===void 0){var Xe=Se.querySelector(".appletParameters");Xe&&(We=Xe.offsetWidth,lt=Xe.offsetHeight)}var Dt=ze/We,dt=Pe?1:tt.height/lt;return pe!==void 0&&!pe&&(Dt=Math.min(1,Dt),dt=Math.min(1,dt)),Math.min(Dt,dt)}function ye(Ce,Se,pe){var be=1,De,Pe=!1;if(Ce.hasOwnProperty("allowUpscale")&&(Pe=Ce.allowUpscale),Ce.hasOwnProperty("scale")&&(be=parseFloat(Ce.scale),(isNaN(be)||be===null||be===0)&&(be=1),be>1&&(Pe=!0)),Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Pe=!0),!(Ce.hasOwnProperty("disableAutoScale")&&Ce.disableAutoScale))De=E(Ce,Se,Pe,pe,Ce.scaleContainerClass);else return be;return Pe&&(!Ce.hasOwnProperty("scale")||be===1)?De:Math.min(be,De)}function Ee(Ce){var Se=Math.min(window.innerWidth,document.documentElement.clientWidth),pe=Math.min(window.innerHeight,document.documentElement.clientHeight),be=Ce.getBoundingClientRect(),De=(Se-be.width)/2,Pe=(pe-be.height)/2;Pe<0&&(Pe=0),Ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(De<40?Ce.style.left="40px":Ce.style.left=De+"px",Ce.style.top=Pe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Pe<40?Ce.style.top="40px":Ce.style.top=Pe+"px",Ce.style.left=De+"px")}function Ye(Ce,Se){var pe=Ce.querySelector(".appletParameters");if(pe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Se.id!==pe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ce)}if(pe.parentElement&&/fullscreen/.test(pe.parentElement.className))return;var be=ye(Se,Ce);An()&&pe.setAttribute("data-param-scale",be);for(var De=null,Pe=0;Pe<Ce.childNodes.length;Pe++)if(Ce.childNodes[Pe].className!==void 0&&Ce.childNodes[Pe].className.match(/^applet_scaler/)){De=Ce.childNodes[Pe];break}if(De!==null&&De.querySelector(".noscale")!==null)return;var et=Se.id!==void 0?Se.id:"ggbApplet",Fe=window[et];(Fe==null||!Fe.recalculateEnvironments)&&De!==null&&!De.className.match(/fullscreen/)&&(De.parentNode.style.transform="",!isNaN(be)&&be!==1?(De.parentNode.style.width=Se.width*be+"px",De.parentNode.style.height=Se.height*be+"px",tn(De,be)):(tn(De,1),De.parentNode.style.width=Se.width+"px",De.parentNode.style.height=Se.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ee(Ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(pe).parents(".content-added-content"))}}return{responsiveResize:Ye,isFlexibleWorksheetEditor:An,positionCenter:Ee,getScale:ye,scaleElement:tn}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var An=n.location.search;return An.indexOf(J)!=-1||An.indexOf(K)!=-1}function q(An,tn){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(An){var tn=s[L].bindings;s[L].bindings=function(){for(var ne=tn?tn():{},E=An[webModule.__softPermutationId],ye=O;ye<E.length;ye++){var Ee=E[ye];ne[Ee[O]]=Ee[P]}return ne}};var t;function u(){return v(),t}function v(){if(!t){var An=o.createElement(Q);if(An.id=L,An.style.cssText=R+S,An.tabIndex=-1,o.body.appendChild(An),t=An.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var tn=document.compatMode==U?V:W;t.write(tn+X),t.close()}}}function w(An){function tn(E){function ye(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ee=ye();if(Ee){E();return}function Ye(){if(!Ee){if(!ye())return;Ee=!0,E(),o.removeEventListener&&o.removeEventListener(Z,Ye,!1),Ce&&clearInterval(Ce)}}o.addEventListener&&o.addEventListener(Z,Ye,!1);var Ce=setInterval(function(){Ye()},$)}function ne(E){var ye=u(),Ee=ye.body,Ye=ye.createElement(_);Ye.language=ab,Ye.crossOrigin=W,Ye.src=E,webModule.__errFn&&(Ye.onerror=function(){webModule.__errFn(L,new Error(bb+E))}),Ee.appendChild(Ye)}tn(function(){ne(An)})}webModule.__startLoadingFragment=function(An){return C(An)},webModule.__installRunAsyncCode=function(An){var tn=u(),ne=tn.body,E=tn.createElement(_);E.language=ab,E.text=An,ne.appendChild(E),ne.removeChild(E)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(An){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(An){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(An){var tn=c[An];return tn==null?null:tn},r=d,webModule.__errFn=e}function B(){function An(Ce){var Se=Ce.lastIndexOf(rb);Se==-1&&(Se=Ce.length);var pe=Ce.indexOf(sb);pe==-1&&(pe=Ce.length);var be=Ce.lastIndexOf(tb,Math.min(pe,Se));return be>=O?Ce.substring(O,be+P):W}function tn(Ce){if(!Ce.match(/^\w+:\/\//)){var Se=o.createElement(ub);Se.src=Ce+vb,Ce=An(Se.src)}return Ce}function ne(){var Ce=__gwt_getMetaProperty(wb);return Ce!=null?Ce:W}function E(){for(var Ce=o.getElementsByTagName(_),Se=O;Se<Ce.length;++Se)if(Ce[Se].src.indexOf(xb)!=-1)return An(Ce[Se].src);return W}function ye(){var Ce=o.getElementsByTagName(yb);return Ce.length>O?Ce[Ce.length-P].href:W}function Ee(){var Ce=o.location;return Ce.href==Ce.protocol+zb+Ce.host+Ce.pathname+Ce.search+Ce.hash}var Ye=ne();return Ye==W&&(Ye=E()),Ye==W&&(Ye=ye()),Ye==W&&Ee()&&(Ye=An(o.location.href)),Ye=tn(Ye),Ye}function C(An){return An.match(/^\//)||An.match(/^[a-zA-Z]+:\/\//)?An:webModule.__moduleBase+An}function D(){var An=[],tn=O,ne=[],E=[];function ye(Ce){var Se=E[Ce](),pe=ne[Ce];if(Se in pe)return Se;var be=[];for(var De in pe)be[pe[De]]=De;throw r&&r(Ce,be,Se),null}if(__gwt_isKnownPropertyValue=function(Ce,Se){return Se in ne[Ce]},webModule.__getPropMap=function(){var Ce={};for(var Se in ne)ne.hasOwnProperty(Se)&&(Ce[Se]=ye(Se));return Ce},webModule.__computePropValue=ye,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ee;try{Ee=Cb;var Ye=Ee.indexOf(Db);Ye!=-1&&(tn=parseInt(Ee.substring(Ye+P),$),Ee=Ee.substring(O,Ye))}catch(Ce){}return webModule.__softPermutationId=tn,C(Ee+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})()},32546:function(An,tn,ne){"use strict";ne.d(tn,{Ax:function(){return Ye},Ds:function(){return Ce},KI:function(){return pe},SI:function(){return Ee},f1:function(){return ye}});var E=ne(42684);function ye(be){let De=!0;if(be.length>0){for(let Pe=0;Pe<be.length;Pe++)if(be[Pe].compile_success==0||!be[Pe].compile_success){De=!1;break}}else De=!1;return De}function Ee(be,De=""){let Pe=[];for(let et=0;et<be.length;et++){let Fe=be[et],Ie=De?`${De}/${Fe.name}`:`${Fe.name}`;Pe.push({title:Fe.name,type:Fe.type,isLeaf:Fe.type!=="tree",key:Ie})}return Pe}function Ye(be,De,Pe){for(let et=0;et<be.length;et++){let Fe=be[et];if(Fe.key===De){Fe.children=Pe;break}Fe.children&&Ye(Fe.children,De,Pe)}return be}function Ce(be,De,Pe){let et;return function(){let Fe=this,Ie=arguments,tt=function(){et=null,Pe||be.apply(Fe,Ie)},ze=Pe&&!et;clearTimeout(et),et=setTimeout(tt,De),ze&&be.apply(Fe,Ie)}}const Se=!0,pe=E.Z.API_SERVER},27612:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return tt}});var E=ne(3113),ye=ne(59301),Ee=Object.defineProperty,Ye=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,De=(ze,We,lt)=>We in ze?Ee(ze,We,{enumerable:!0,configurable:!0,writable:!0,value:lt}):ze[We]=lt,Pe=(ze,We)=>{for(var lt in We||(We={}))pe.call(We,lt)&&De(ze,lt,We[lt]);if(Se)for(var lt of Se(We))be.call(We,lt)&&De(ze,lt,We[lt]);return ze},et=(ze,We)=>Ye(ze,Ce(We)),Fe=(ze,We)=>{var lt={};for(var Xe in ze)pe.call(ze,Xe)&&We.indexOf(Xe)<0&&(lt[Xe]=ze[Xe]);if(ze!=null&&Se)for(var Xe of Se(ze))We.indexOf(Xe)<0&&be.call(ze,Xe)&&(lt[Xe]=ze[Xe]);return lt},Ie=(ze,We,lt)=>new Promise((Xe,Dt)=>{var dt=Ae=>{try{Ze(lt.next(Ae))}catch(Je){Dt(Je)}},Qe=Ae=>{try{Ze(lt.throw(Ae))}catch(Je){Dt(Je)}},Ze=Ae=>Ae.done?Xe(Ae.value):Promise.resolve(Ae.value).then(dt,Qe);Ze((lt=lt.apply(ze,We)).next())});const tt=ze=>{var We=ze,{children:lt}=We,Xe=Fe(We,["children"]);const[Dt,dt]=(0,ye.useState)(!1);return ye.createElement(E.ZP,et(Pe({},Xe),{loading:Dt,onClick:Qe=>Ie(void 0,null,function*(){try{dt(!0),yield Xe.onClick(Qe),dt(!1)}catch(Ze){console.error(Ze),dt(!1)}})}),lt)}},68682:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Ie}});var E=ne(59301),ye=ne(8591),Ee=ne(92832),Ye={codeBox:"codeBox___WpkVl"},Ce=ne(92310),Se=ne.n(Ce),pe=Object.defineProperty,be=(tt,ze,We)=>ze in tt?pe(tt,ze,{enumerable:!0,configurable:!0,writable:!0,value:We}):tt[ze]=We,De=(tt,ze,We)=>be(tt,typeof ze!="symbol"?ze+"":ze,We),Pe=(tt,ze,We)=>new Promise((lt,Xe)=>{var Dt=Ze=>{try{Qe(We.next(Ze))}catch(Ae){Xe(Ae)}},dt=Ze=>{try{Qe(We.throw(Ze))}catch(Ae){Xe(Ae)}},Qe=Ze=>Ze.done?lt(Ze.value):Promise.resolve(Ze.value).then(Dt,dt);Qe((We=We.apply(tt,ze)).next())});class et extends E.Component{constructor(ze){super(ze),De(this,"canvas"),De(this,"randomNum",(We,lt)=>Math.floor(Math.random()*(lt-We)+We)),De(this,"drawPic",()=>{this.randomCode()}),De(this,"reloadPic",()=>{this.drawPic()}),De(this,"changeCode",We=>{console.log(We.target.value,222),this.setState({value:We.target.value,showError:!1})}),De(this,"onVerify",()=>{let We;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(We=!0,ye.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(We=!0,ye.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(We=!1),this.setState({showError:We}),We}),this.canvas=E.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(ze,We){const lt=this.randomNum(ze,We),Xe=this.randomNum(ze,We),Dt=this.randomNum(ze,We);return`rgb(${lt}, ${Xe}, ${Dt})`}drawText(ze,We,lt){ze.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Xe=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);ze.font=Xe+"px SimHei";const Dt=10,dt=(this.state.contentWidth-40)/(this.state.code.length-1);let Qe=Dt;lt>0&&(Qe=Dt+lt*dt);let Ze=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Xe>40&&(Ze=40);const Ae=this.randomNum(-10,10);ze.translate(Qe,Ze),ze.rotate(Ae*Math.PI/180),ze.fillText(We,0,0),ze.rotate(-Ae*Math.PI/180),ze.translate(-Qe,-Ze)}drawLine(ze){for(let We=0;We<1;We++)ze.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),ze.beginPath(),ze.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),ze.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),ze.stroke()}drawDot(ze){for(let We=0;We<100;We++)ze.fillStyle=this.randomColor(0,255),ze.beginPath(),ze.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),ze.fill()}randomCode(){let ze="";const We="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let lt=0;lt<this.state.codeLength;lt++){const Xe=Math.floor(Math.random()*57);ze+=We[Xe]}this.setState({code:ze},()=>{const Xe=this.canvas.current.getContext("2d");Xe.textBaseline="bottom",Xe.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Xe.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let Dt=0;Dt<this.state.code.length;Dt++)this.drawText(Xe,this.state.code[Dt],Dt);this.drawLine(Xe),this.drawDot(Xe)})}render(){const{className:ze,width:We=300}=this.props;return E.createElement("div",{className:Se()(Ye.codeBox,ze),style:{width:We}},E.createElement("aside",null,E.createElement(Ee.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),E.createElement("div",null,E.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),E.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const Fe=(tt,ze)=>{let We;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,ze),React.createElement(et,{ref:lt=>We=lt})),onOk:()=>Pe(void 0,null,function*(){if(We.onVerify())return Promise.reject();tt()})})};var Ie=et},79691:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return De}});var E=ne(59301),ye=ne(92832),Ee=ne(12563),Ye=ne(8591),Ce={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Se=ne(62772);const{TextArea:pe}=ye.default;class be extends E.Component{constructor(et){super(et),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:et,onAnswerChange:Fe,addChildAnswer:Ie,exerciseIsPublish:tt,answers:ze,activeOptionErrorIndex:We,flex:lt="0 0 1000px"}=this.props;console.log("----",ze);let{inputVisible:Xe,EditInputIndex:Dt}=this.state;return E.createElement("div",{className:Ce.flex},E.createElement("div",{className:`${Ce.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",et+1,"):"),E.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},ze==null?void 0:ze.map((dt,Qe)=>E.createElement(E.Fragment,null,Dt!==Qe?(dt==null?void 0:dt.length)>0?E.createElement(Ee.Z,{className:"edit-tag",key:dt,closable:!(et===0&&Qe===0),onClose:Ze=>{Ze.preventDefault(),(ze==null?void 0:ze.length)===1&&Qe===0?this.props.deleteChildAnswermain(et,Qe):this.props.deleteChildAnswer(et,Qe)}},E.createElement("span",{onDoubleClick:Ze=>{this.setState({EditInputIndex:Qe}),Ze.preventDefault()}},dt)):E.createElement(ye.default,{defaultValue:dt,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Ze=>{if(Ze.target.value.replaceAll(" ","").length<=0){Ye.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Fe(et,Qe,Ze.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):E.createElement(ye.default,{defaultValue:dt,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Ze=>{if(Ze.target.value.replaceAll(" ","").length<=0){Ye.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Fe(et,Qe,Ze.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!Xe&&E.createElement(Ee.Z,{className:"site-tag-plus",onClick:()=>{Ie(et),this.setState({inputVisible:!0})}},E.createElement(Se.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var De=be},58416:function(An,tn,ne){"use strict";ne.d(tn,{d4:function(){return Ie},VP:function(){return De}});var E=ne(59301),ye={digitalLabel:"digitalLabel___hkWuZ",active:"active___jawU1",titleEditor:"titleEditor___wX1lW",title:"title___SuT2h",editIcon:"editIcon___XrTIi",paperTab:"paperTab___GUxeB",tabItem:"tabItem___or0fY",dottedLine:"dottedLine___Ln0Xr"};const Ee=({number:tt,active:ze,className:We})=>E.createElement("div",{className:`${ye.digitalLabel} ${ze?ye.active:""} ${We}`},tt);var Ye=ne(6848),Ce=ne(92832),Se=ne(8591),pe=ne(59301),be=(tt,ze,We)=>new Promise((lt,Xe)=>{var Dt=Ze=>{try{Qe(We.next(Ze))}catch(Ae){Xe(Ae)}},dt=Ze=>{try{Qe(We.throw(Ze))}catch(Ae){Xe(Ae)}},Qe=Ze=>Ze.done?lt(Ze.value):Promise.resolve(Ze.value).then(Dt,dt);Qe((We=We.apply(tt,ze)).next())});const De=({defaultValue:tt,onFinish:ze})=>{const[We,lt]=(0,E.useState)(!1),[Xe,Dt]=(0,E.useState)(tt);return(0,E.useEffect)(()=>{Dt(tt)},[tt]),pe.createElement("div",{className:ye.titleEditor},We?pe.createElement(Ce.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Xe,onChange:dt=>{Dt(dt.target.value)},onBlur:()=>be(void 0,null,function*(){var dt;if(((dt=Xe==null?void 0:Xe.replaceAll(" ",""))==null?void 0:dt.length)<=0){Se.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield ze(Xe))&<(!1)}),onPressEnter:()=>be(void 0,null,function*(){var dt;if(((dt=Xe==null?void 0:Xe.replaceAll(" ",""))==null?void 0:dt.length)<=0){Se.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield ze(Xe))&<(!1)})}):pe.createElement("div",{className:ye.title,onDoubleClick:()=>lt(!0)},Xe,pe.createElement(Ye.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},pe.createElement("i",{className:`${ye.editIcon} iconfont icon-bianji_Hover`,onClick:()=>lt(!0)}))))};var Pe=ne(95237),et=ne(43604),Fe=(tt,ze,We)=>new Promise((lt,Xe)=>{var Dt=Ze=>{try{Qe(We.next(Ze))}catch(Ae){Xe(Ae)}},dt=Ze=>{try{Qe(We.throw(Ze))}catch(Ae){Xe(Ae)}},Qe=Ze=>Ze.done?lt(Ze.value):Promise.resolve(Ze.value).then(Dt,dt);Qe((We=We.apply(tt,ze)).next())});const Ie=({onChange:tt=()=>Fe(void 0,null,function*(){}),tabs:ze,activeKey:We,defaultActiveKey:lt,className:Xe=""})=>{var Dt,dt,Qe,Ze,Ae,Je,Re;const[vt,$e]=(0,E.useState)(lt===void 0?(Dt=ze[0])==null?void 0:Dt.key:lt);return(0,E.useEffect)(()=>{We!==void 0&&$e(We)},[We]),E.createElement(Pe.Z,{justify:"center",align:"middle",className:`${ye.paperTab} ${Xe}`},E.createElement(et.Z,{className:`${ye.tabItem} ${vt===((dt=ze[0])==null?void 0:dt.key)?ye.active:""}`,onClick:()=>Fe(void 0,null,function*(){var mt;yield tt(ze[0].key),$e((mt=ze[0])==null?void 0:mt.key)})},E.createElement(Ee,{number:1,active:vt===((Qe=ze[0])==null?void 0:Qe.key),className:"mr10"}),E.createElement("span",null,(Ze=ze[0])==null?void 0:Ze.label)),E.createElement(et.Z,{flex:"188px",className:`${ye.dottedLine} ml30 mr30`}),E.createElement(et.Z,{className:`${ye.tabItem} ${vt===((Ae=ze[1])==null?void 0:Ae.key)?ye.active:""}`,onClick:()=>Fe(void 0,null,function*(){var mt,Be;yield tt((mt=ze[1])==null?void 0:mt.key),$e((Be=ze[1])==null?void 0:Be.key)})},E.createElement(Ee,{number:2,active:vt===((Je=ze[1])==null?void 0:Je.key),className:"mr10"}),E.createElement("span",null,(Re=ze[1])==null?void 0:Re.label)))}},78170:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Se}});var E=ne(60324),ye={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Ee=ne(32637),Ye=ne(59301),Se=({type:pe,style:be})=>{const De=Ye.createElement("div",{className:ye.wrap,onClick:Pe=>{Pe.preventDefault(),Pe.stopPropagation()}},Ye.createElement("p",null,pe==="shixun"||pe==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Ye.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",pe==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Ye.createElement("div",{className:ye.contact},Ye.createElement("div",{className:ye.img},Ye.createElement("img",{src:Ee,width:"124px",height:"124px"})),Ye.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Ye.createElement(E.Z,{content:De},Ye.createElement("span",{className:ye.text,style:be},"\u9AD8\u6D88\u8017"))}},18997:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return et}});var E=ne(59301),ye={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ee=ne(92310),Ye=ne.n(Ee),Ce=ne(71418),Se=ne(2859),pe=ne(58661),be=ne(85333),De=(Fe,Ie,tt)=>new Promise((ze,We)=>{var lt=dt=>{try{Dt(tt.next(dt))}catch(Qe){We(Qe)}},Xe=dt=>{try{Dt(tt.throw(dt))}catch(Qe){We(Qe)}},Dt=dt=>dt.done?ze(dt.value):Promise.resolve(dt.value).then(lt,Xe);Dt((tt=tt.apply(Fe,Ie)).next())}),et=({data:Fe,className:Ie,fullWidth:tt,style:ze={},onClose:We,onOk:lt,showFullTools:Xe,noAssociationId:Dt})=>{const dt=(0,E.useRef)(null),Qe=(0,E.useRef)(null),Ze=(0,E.useRef)(null),Ae=(0,E.useRef)(null),[Je,Re]=(0,E.useState)(!1),[vt,$e]=(0,E.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,E.useEffect)(()=>{Ze.current||(Ze.current=document.createElement("style"),document.head.appendChild(Ze.current)),Fe!=null&&Fe.visible?(document.body.setAttribute("data-custom","y-hidden"),Ze.current.innerHTML=" html { overflow-y: hidden; }",Fe!=null&&Fe.src&&mt()):(document.body.removeAttribute("data-custom"),Ze.current&&(document.head.removeChild(Ze.current),Ze.current=null))},[Fe==null?void 0:Fe.visible]);const mt=()=>De(void 0,null,function*(){Re(!0),$e("\u6B63\u5728\u52A0\u8F7D\u4E2D");const nt=yield(0,be.ZJ)(Fe==null?void 0:Fe.src);dt.current.src="",dt.current.src=nt,dt.current.onload=function(){Ot()},Re(!1),$e("")}),Be=()=>{document.body.removeAttribute("data-custom"),Ze.current.innerHTML=" ",We()},xt=nt=>De(void 0,null,function*(){Re(!0),$e("\u6B63\u5728\u4FDD\u5B58\u4E2D");const wt=yield(0,pe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Fe.title,file:nt.dataUrl}});wt!=null&&wt.id&&!Dt?(yield(0,pe.ZP)(`/api/attachments/${Fe.id}/add_subitem.json`,{method:"post",body:{subitem_id:wt==null?void 0:wt.id,settings:JSON.stringify(nt.state)}})).status===0&<():wt!=null&&wt.id&<(wt),document.body.removeAttribute("data-custom"),Ze.current.innerHTML=" ",Re(!1),$e("")}),Ve=()=>{const nt=document.querySelector('a[href="https://markerjs.com/"]');nt&&nt.parentNode&&(nt.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(Mt=>{const at=document.querySelector(Mt.name);at&&at.setAttribute("title",Mt.title)})},Ot=()=>{Qe.current=new Se.hP(dt.current),Qe.current.targetRoot=Ae.current,Qe.current.addEventListener("render",xt),Qe.current.addEventListener("beforeclose",Be),Xe&&(Qe.current.availableMarkerTypes=Qe.current.ALL_MARKER_TYPES,Qe.current.uiStyleSettings.redoButtonVisible=!0,Qe.current.uiStyleSettings.notesButtonVisible=!0,Qe.current.uiStyleSettings.zoomButtonVisible=!0,Qe.current.uiStyleSettings.zoomOutButtonVisible=!0,Qe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Qe.current.uiStyleSettings,Qe.current.show(),Fe!=null&&Fe.snapshotData&&Qe.current.restoreState(Fe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ve()},300)};return E.createElement(E.Fragment,null,(Fe==null?void 0:Fe.visible)&&E.createElement(Ce.Z,{spinning:Je,tip:vt,style:{position:"absolute"}},E.createElement("div",{ref:Ae,className:Ye()(ye.imageDimensions,Ie,tt?ye.fullWidth:""),style:ze},E.createElement("img",{className:ye.img,ref:dt}))))}},47506:function(An,tn,ne){"use strict";var E=ne(59301),ye=ne(2375),Ee=ne(48136),Ye=ne(80802),Ce=ne(43418),Se=ne(59301);const pe=(0,E.forwardRef)(({callback:be,width:De,onChange:Pe,disabled:et,readOnly:Fe,type:Ie="",value:tt="",style:ze={}},We)=>{const lt=(0,E.useRef)(),Xe=(0,E.useRef)(),[Dt,dt]=(0,E.useState)(0),[Qe,Ze]=(0,E.useState)(0),[Ae,Je]=(0,E.useState)(!1),Re=()=>{var Be=document.createElement("div");Be.innerHTML=lt.current.getValue();var xt=Be.innerText;return be&&be(xt),xt};(0,E.useImperativeHandle)(We,()=>({getData:Re}));const vt=Be=>{Be.preventDefault();const xt=Be.clientX-Dt,Ve=Be.clientY-Qe;document.body.onmousemove=Ot=>{let nt=Ot.clientX-xt,wt=Ot.clientY-Ve;const Mt=document.getElementsByClassName("markdown-popup-form")[0],at=window.innerWidth-Mt.offsetWidth,Le=window.innerHeight-Mt.offsetHeight;nt=Math.max(0,Math.min(nt,at)),wt=Math.max(0,Math.min(wt,Le)),$e(Ot.clientX,Ot.clientY,xt,Ve)&&(dt(nt),Ze(wt))},document.body.onmouseup=function(){document.body.onmousemove=null}},$e=(Be,xt,Ve,Ot)=>{const nt=document.body.clientHeight,wt=document.body.clientWidth;return Be<20&&Ve>Be||Be>wt-20&&Ve<Be||xt<20&&Ot>xt||xt>nt-20&&Ot<xt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,E.useEffect)(()=>{Ae&&setTimeout(()=>{const Be=document.getElementsByClassName("markdown-popup-form")[0],xt=window.innerWidth/2-Be.offsetWidth/2,Ve=window.innerHeight/2-Be.offsetHeight/2;dt(xt),Ze(Ve)},0)},[Ae]);const mt=()=>{et||Fe||Je(!0)};return Se.createElement("div",{style:ze},Se.createElement("div",{style:{width:De||"100%",position:"relative"},className:`${ye.Z.mathFillWrap} ${et||Fe?"cursorDefault":""}`,onClick:()=>mt()},Se.createElement("math-field",{disabled:et,locale:"zh_cn",class:`${ye.Z.mathField} ${Ie}`,readOnly:Fe,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:lt,style:{width:"100%",fontSize:tt?18:14},value:tt||""})),Se.createElement(Ce.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:Dt,top:Qe},title:Se.createElement("div",{style:{cursor:"move"},onMouseDown:vt},"\u8F93\u5165\u516C\u5F0F"),open:Ae,onOk:()=>{const Be=Xe.current.getData();lt.current.setValue(Be),Pe(Be),Je(!1)},onCancel:()=>{Je(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Se.createElement(Ye.Z,{value:tt,ref:Xe,onChange:Pe,showSaveButton:!1})))});tn.Z=pe},80802:function(An,tn,ne){"use strict";var E=ne(59301),ye=ne(95237),Ee=ne(43604),Ye=ne(99313),Ce=ne(3113),Se=ne(58997),pe=ne(2375),be=ne(48136),De=ne(59301);const Pe=(0,E.forwardRef)(({callback:et,showSaveButton:Fe,value:Ie=""},tt)=>{const ze=(0,E.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 "}]}]}],lt=[{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}`}]}]}],Xe=Qe=>{ze.current.setValue(ze.current.getValue()+" "+Qe.value+" ")},Dt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:De.createElement(ye.Z,{className:pe.Z.lists,gutter:[10,10]},We.map((Qe,Ze)=>De.createElement(Ee.Z,{flex:"110px",className:pe.Z.item},De.createElement("div",null,De.createElement(Se.Z,{value:`$$${Qe.value}$$`}),Qe.name),De.createElement("div",{className:pe.Z.children},Qe.children.map((Ae,Je)=>De.createElement("div",{key:Je},De.createElement("h1",null,Ae.name),De.createElement(ye.Z,{gutter:[10,10]},Ae.data.map((Re,vt)=>De.createElement(Ee.Z,{key:vt,onClick:()=>Xe(Re),className:pe.Z.diamond},De.createElement(Se.Z,{value:"`$$"+Re.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:De.createElement(ye.Z,{className:pe.Z.lists,gutter:[10,10]},lt.map((Qe,Ze)=>De.createElement(Ee.Z,{flex:"110px",className:pe.Z.item},De.createElement("div",null,De.createElement(Se.Z,{value:"`$$"+Qe.value+"$$`"}),Qe.name),De.createElement("div",{className:pe.Z.children},Qe.children.map((Ae,Je)=>De.createElement("div",{key:Je},Ae.name&&De.createElement("h1",null,Ae.name),De.createElement(ye.Z,{gutter:[10,10]},Ae.data.map((Re,vt)=>De.createElement(Ee.Z,{key:vt,onClick:()=>Xe(Re),className:pe.Z.diamond},De.createElement(Se.Z,{value:"`$$"+Re.value+"$$`"}))))))))))}],dt=()=>{var Qe=document.createElement("div");Qe.innerHTML=ze.current.getValue();var Ze=Qe.innerText;return et&&et(Ze),Ze};return(0,E.useImperativeHandle)(tt,()=>({getData:dt})),De.createElement("div",{className:pe.Z.mathWrap},De.createElement(Ye.default,{defaultActiveKey:"1",items:Dt}),De.createElement("math-field",{locale:"zh_cn",className:pe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ze,style:{width:800,marginTop:30,fontSize:18}},Ie||""),Fe&&De.createElement("div",{className:pe.Z.button},De.createElement(Ce.ZP,{size:"large",onClick:dt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});tn.Z=Pe},28864:function(An,tn,ne){"use strict";ne.d(tn,{t:function(){return ue}});var E=ne(59301),ye=ne(92832),Ee=ne(78241),Ye=ne(43418),Ce=ne(95237),Se=ne(43604),pe=ne(5871),be=ne(57809),De=ne(5112),Pe=ne(34051),et=ne(44225),Fe=ne(44267),Ie=ne(8591),tt=ne(3113),ze=ne(71418),We=ne(24334),lt={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},Xe=ne(58661),Dt=ne(10035),dt=ne(74972),Qe=ne(56102),Ze=ne(8882),Ae=ne(59301),Je=Object.defineProperty,Re=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,xt=(he,me,oe)=>me in he?Je(he,me,{enumerable:!0,configurable:!0,writable:!0,value:oe}):he[me]=oe,Ve=(he,me)=>{for(var oe in me||(me={}))mt.call(me,oe)&&xt(he,oe,me[oe]);if($e)for(var oe of $e(me))Be.call(me,oe)&&xt(he,oe,me[oe]);return he},Ot=(he,me)=>Re(he,vt(me)),nt=(he,me,oe)=>new Promise((Ne,At)=>{var Ge=Et=>{try{Pt(oe.next(Et))}catch(ht){At(ht)}},je=Et=>{try{Pt(oe.throw(Et))}catch(ht){At(ht)}},Pt=Et=>Et.done?Ne(Et.value):Promise.resolve(Et.value).then(Ge,je);Pt((oe=oe.apply(he,me)).next())}),Mt=({buttonProps:he,buttonText:me,form:oe,hackIdentifier:Ne="",answerKey:At,data:Ge})=>{const[je,Pt]=(0,E.useState)(!1),[Et,ht]=(0,E.useState)(!1),[Kt,vn]=(0,E.useState)(!1),[kt,Ut]=(0,E.useState)({}),[yn,Bt]=(0,E.useState)(""),[Ke,gt]=(0,E.useState)(""),Vt=(0,E.useRef)(Ne),Nt=(0,E.useRef)(""),Xt=(0,E.useRef)(!1);(0,E.useEffect)(()=>{Kt&&ur()},[Kt]),(0,E.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Mn=()=>new Date().getTime(),Tn=Ge==null?void 0:Ge.code,Rn=()=>{var mn,zn;let jn=Tn?Ge==null?void 0:Ge.code:(mn=oe.getFieldValue("hack_codes"))==null?void 0:mn.code,Xn=Tn?Ge==null?void 0:Ge.answer_content:oe.getFieldValue(At),Sr=Tn?Ge==null?void 0:Ge.input:(zn=oe.getFieldValue("hack_sets"))==null?void 0:zn.input;Xn==null||Xn.forEach(Kr=>{const ar=Kr.value||Kr.answer_text||"";jn=jn.replace(/(@▁@|@▁▁@)/,ar)}),gt(Sr),Bt(jn),Ut({}),vn(!0)},ur=()=>nt(void 0,null,function*(){var mn,zn,jn,Xn;const Sr=Mn(),Kr=Tn?Ge==null?void 0:Ge.time_limit:(mn=oe.getFieldsValue())==null?void 0:mn.hack.time_limit,ar=Tn?(zn=Ge==null?void 0:Ge.answer_content)==null?void 0:zn.length:(Xn=(jn=oe.getFieldsValue())==null?void 0:jn.standard_answers)==null?void 0:Xn.length;Pt(!0),yield(0,Dt.bM)(Nt.current,{test_hack_code:yn,test_input:Ke});function Zn(){return nt(this,null,function*(){const{status:Wr,data:Gt}=yield(0,Dt.rX)(Nt.current,"submit"),er=Mn()-Sr>(Kr+3)*1e3*ar;if(Xt.current){if(er){Ie.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),Pt(!1);return}if(Wr===0){Pt(!1),Ut(Ot(Ve({},Gt),{showText:!0}));return}setTimeout(Zn,1e3)}})}Zn()}),vr=()=>nt(void 0,null,function*(){var mn,zn,jn,Xn,Sr,Kr,ar;if(!Ge){try{yield oe.validateFields()}catch(or){(jn=(zn=(mn=or==null?void 0:or.errorFields)==null?void 0:mn[0])==null?void 0:zn.name)!=null&&jn.includes("standard_answers")?Ie.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ie.ZP.error(or.errorFields[0].errors[0]),oe.scrollToField(or.errorFields[0].name,{behavior:"smooth",block:"center"});return}ht(!0);let Wr="";const Gt=oe.getFieldsValue();Vt.current?Wr=yield(0,Xe.ZP)(`/api/problems/${Vt.current}.json`,{method:"put",body:Ot(Ve({},Gt),{hack:Ot(Ve({},Gt==null?void 0:Gt.hack),{sub_discipline_id:(ar=(Kr=Gt==null?void 0:Gt.hack)==null?void 0:Kr.sub_discipline_id)==null?void 0:ar[1],difficult:Gt.difficulty,item_banks_group_id:Gt.item_banks_group_id}),hack_codes:Ot(Ve({},Gt.hack_codes),{code:We.Base64.encode(Gt.hack_codes.code)}),update_hack_sets:[Ve({},Gt.hack_sets)],is_blank:!0})}):(Wr=yield(0,Xe.ZP)("/api/problems.json",{method:"post",body:Ot(Ve({},Gt),{hack:Ot(Ve({},Gt==null?void 0:Gt.hack),{sub_discipline_id:(Sr=(Xn=Gt==null?void 0:Gt.hack)==null?void 0:Xn.sub_discipline_id)==null?void 0:Sr[1],difficult:Gt.difficulty,item_banks_group_id:Gt.item_banks_group_id}),hack_codes:Ot(Ve({},Gt.hack_codes),{code:We.Base64.encode(Gt.hack_codes.code)}),hack_sets:[Ve({},Gt.hack_sets)],is_blank:!0})}),Vt.current=Wr==null?void 0:Wr.identifier,sessionStorage.projectFill=Wr==null?void 0:Wr.identifier)}const Zn=yield(0,Xe.ZP)(`/api/problems/${Vt.current}/start.json`,{method:"get"});if((Zn==null?void 0:Zn.status)===0){Nt.current=Zn==null?void 0:Zn.identifier,Xt.current=!0,ht(!1),Rn();return}ht(!1)}),dr=mn=>{const{status:zn,error_msg:jn,execute_time:Xn,output:Sr,input:Kr,expected_output:ar}=mn;let Zn=null;switch(zn){case Ze.h.OK:Zn=Ae.createElement(Ae.Fragment,null,Ae.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Xn/1e3,"\u79D2"),Ae.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Ze.h.NOMATCH:Zn=Ae.createElement(Ae.Fragment,null,Ae.createElement("div",null,"\u8F93\u5165\uFF1A"),Ae.createElement("pre",{style:{fontFamily:"initial"}},Kr),Ae.createElement("div",null,"\u8F93\u51FA\uFF1A"),Ae.createElement("pre",{style:{fontFamily:"initial"}},Sr&&We.Base64.decode(Sr)),Ae.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),Ae.createElement("pre",{style:{fontFamily:"initial"}},ar&&We.Base64.decode(ar)));break;case Ze.h.EXECUTEFAILURE:Zn=Ae.createElement(Ae.Fragment,null,Ae.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Ae.createElement("pre",null,Kr)),Ae.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Ae.createElement("pre",{className:"error"},We.Base64.decode(jn)));break;case Ze.h.COMPILEFAILURE:Zn=Ae.createElement(Ae.Fragment,null,Ae.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Ae.createElement("pre",null,Kr)),Ae.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Ae.createElement("pre",{className:"error"},We.Base64.decode(jn)));break;case Ze.h.PODFAILURE:Zn=Ae.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Ze.h.TIMEOUT:Zn=Ae.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return Ae.createElement(Ae.Fragment,null," ",Zn," ")};return Ae.createElement("div",null,Ae.createElement(tt.ZP,Ot(Ve({loading:Et},he),{onClick:vr}),me),Ae.createElement(Ye.default,{open:Kt,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:je,cancelButtonProps:{style:{display:"none"}},onOk:()=>ur(),onCancel:()=>{Xt.current=!1,vn(!1)}},Ae.createElement("div",{className:lt.result},Ae.createElement("div",{className:lt.left},Ae.createElement("div",{className:"mb20"},Ae.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Ge&&Ae.createElement(Qe.CopyToClipboard,{text:yn,onCopy:()=>Ie.ZP.success("\u590D\u5236\u6210\u529F")},Ae.createElement("span",{style:{float:"right"},className:"current c-light-primary"},Ae.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),Ae.createElement(dt.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:yn,onChange:mn=>Bt(mn)})),Ae.createElement("div",{className:lt.right},Ae.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),Ae.createElement("div",{className:lt.box},Ae.createElement("div",{className:lt.li},Ae.createElement(ye.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Ke,onChange:mn=>gt(mn.target.value),bordered:!1,style:{height:180}}))),Ae.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),Ae.createElement("div",{className:lt.box},Ae.createElement(ze.Z,{spinning:je,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},Ae.createElement("div",{className:lt.li,style:{height:196,overflow:"auto",padding:10}},dr(kt))))))))},at=ne(87169),Le=ne(59301),Me=Object.defineProperty,st=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Zt=(he,me,oe)=>me in he?Me(he,me,{enumerable:!0,configurable:!0,writable:!0,value:oe}):he[me]=oe,gn=(he,me)=>{for(var oe in me||(me={}))ct.call(me,oe)&&Zt(he,oe,me[oe]);if(Tt)for(var oe of Tt(me))Ct.call(me,oe)&&Zt(he,oe,me[oe]);return he},$t=(he,me)=>st(he,Ht(me)),Wt=(he,me)=>{var oe={};for(var Ne in he)ct.call(he,Ne)&&me.indexOf(Ne)<0&&(oe[Ne]=he[Ne]);if(he!=null&&Tt)for(var Ne of Tt(he))me.indexOf(Ne)<0&&Ct.call(he,Ne)&&(oe[Ne]=he[Ne]);return oe};const{TextArea:on}=ye.default,dn=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],ln=({value:he,onChange:me})=>Le.createElement(Switch,{checked:he,onChange:oe=>{me(oe)}}),xe="@\u2581@",fe="@\u2581\u2581@",ue=({questionTitlePlaceholder:he,form:me,scoreByBlank:oe=!1,hackidentifier:Ne,answerKey:At})=>{const[Ge,je]=(0,E.useState)(!1),[Pt,Et]=(0,E.useState)(!1),Kt=(0,et.useParams)().type==="edit",vn=(Nt,Xt)=>{const Mn=Xt.line;let Tn=0;for(let ur=0;ur<Mn;ur++)Tn+=Nt.getLine(ur).split(xe).length-1;for(let ur=0;ur<Mn;ur++)Tn+=Nt.getLine(ur).split(fe).length-1;const Rn=Nt.getLine(Mn).substring(0,Xt.ch);return Tn+=Rn.split(xe).length-1,Tn+=Rn.split(fe).length-1,Tn},kt=(Nt,Xt,Mn,Tn)=>{const Rn=Nt.getRange(Xt.from,Xt.to);let ur=0;if(Xt.text.forEach(vr=>{ur+=vr.split(xe).length-1}),Xt.text.forEach(vr=>{ur+=vr.split(fe).length-1}),Xt.origin!=="setValue"){if(Rn&&(Rn.indexOf(xe)!==-1||Rn.indexOf(fe)!==-1)){const vr=Rn.split(xe).length-1+Rn.split(fe).length-1,dr=vn(Nt,Xt.from);if(console.log(`\u5220\u9664${vr}\u4E2A\uFF0C \u524D\u9762\u6709${dr}\u4E2A\uFF0C\u65B0\u589E${ur}\u4E2A`),vr>1){const mn=Array.from({length:vr},(zn,jn)=>dr+jn);Tn(mn)}else Tn(dr)}else if(ur>0){const vr=vn(Nt,Xt.from);console.log(`\u65B0\u589E${ur}\u4E2A\uFF0C\u4E4B\u524D\u6709${vr}\u4E2A`),Mn(ur,vr)}}},Ut=()=>{const Nt=me.getFieldValue(At);me.setFieldsValue({[At]:Nt==null?void 0:Nt.map((Xt,Mn)=>$t(gn({},Xt),{position:Mn+1}))})},yn=(0,E.useRef)(),Bt=(Nt,Xt)=>{for(let Mn=0;Mn<Nt;Mn++)yn.current({position:null,answer_text:""},Xt+Mn);Ut()},Ke=(0,E.useRef)(),gt=Nt=>{Ke.current(Nt),Ut()},Vt=Ee.default.useWatch(At,me);return Le.createElement("div",{className:Fe.Z.wrap},Le.createElement(Ee.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},Le.createElement(Pe.h,{scrollId:"name",watch:!0,height:140})),Le.createElement("div",{className:Fe.Z.questionTitleEditorWrap},Le.createElement(Ee.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},Le.createElement(Pe.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(Nt,Xt)=>{const Mn=me.getFieldValue(At);console.log("--preAnswerData",Mn,Xt),me.setFieldsValue({[At]:Mn==null?void 0:Mn.map((Tn,Rn)=>{var ur;return $t(gn({},Tn),{position:Rn+1,multi_line:(ur=Xt==null?void 0:Xt[Rn])==null?void 0:ur.multiLine})})})},placeholder:he,onCMBeforeChange:(Nt,Xt)=>{kt(Nt,Xt,Bt,gt)}}))),Le.createElement(Ee.default.List,{name:At,rules:[{validator(Nt,Xt){if(!(Xt!=null&&Xt.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Mn of Xt){const{answer_text:Tn}=Mn||{};if((Tn==null?void 0:Tn.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Nt,{add:Xt,remove:Mn},{errors:Tn})=>(yn.current=Xt,Ke.current=Mn,Le.createElement(Le.Fragment,null,Le.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},Le.createElement(Ee.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),Le.createElement("div",{onClick:()=>{Ye.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:Le.createElement("div",null,Le.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",Le.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),Le.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},Le.createElement(at.Z,{style:{marginRight:3,color:"#3061D0"}}),Le.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Nt.map((Rn,ur)=>{var vr=Rn,{key:dr,name:mn}=vr,zn=Wt(vr,["key","name"]),jn,Xn;return Le.createElement(Ce.Z,{className:"mb20",key:dr,align:"middle",wrap:!1},Le.createElement(Se.Z,{flex:"0 0 auto",className:`${Fe.Z.blankIndex}`},"\u586B\u7A7A\u9879",ur+1),Le.createElement(Se.Z,{flex:1},Le.createElement(Ce.Z,{align:"top",justify:"space-between",wrap:!1},Le.createElement(Se.Z,null,Le.createElement(Ee.default.Item,$t(gn({},zn),{name:[mn,"answer_text"],noStyle:!0}),(jn=Vt==null?void 0:Vt[mn])!=null&&jn.multi_line||(Xn=Vt==null?void 0:Vt[mn])!=null&&Xn.multiLine?Le.createElement(on,{spellCheck:!1,style:{marginLeft:10,width:550}}):Le.createElement(ye.default,{style:{marginLeft:10,width:550},className:Fe.Z.blankInput,size:"large",maxLength:1e3,onBlur:Sr=>{}}))),oe&&Le.createElement(Se.Z,{flex:"224px"},Le.createElement(Ee.default.Item,$t(gn({},zn),{name:[mn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Le.createElement(pe.Z,{size:"large",className:Fe.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),Le.createElement("div",{onClick:()=>je(!0)},Le.createElement(Ee.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Le.createElement(Pe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ge}))),Le.createElement(Ee.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},Le.createElement(be.default,{size:"large"},dn.map(Nt=>Le.createElement(be.default.Option,{key:Nt.title,value:Nt.key}," ",Nt.title)))),Le.createElement(Ee.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},Le.createElement(Ee.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},Le.createElement(pe.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),Le.createElement("span",{className:"ml10 font14"},"\u79D2")),Le.createElement(Ee.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},Le.createElement(De.ZP.Group,{style:{marginTop:-10}},Le.createElement(De.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Le.createElement(De.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Le.createElement(De.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),Le.createElement(Ee.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),Le.createElement("div",{style:{background:"#F6F7F9",padding:15}},Le.createElement(Ee.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},Le.createElement(on,{rows:4})),Le.createElement(Ee.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Le.createElement(on,{rows:4}))),Le.createElement(Mt,{form:me,answerKey:At,hackIdentifier:Ne,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:Le.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},51562:function(An,tn,ne){"use strict";ne.d(tn,{u:function(){return Ae}});var E=ne(59301),ye=ne(95237),Ee=ne(43604),Ye=ne(6848),Ce=ne(78241),Se=ne(44267),pe=ne(32134),be=ne(12893),De=ne(34051),Pe=ne(59301),et=Object.defineProperty,Fe=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,lt=(Je,Re,vt)=>Re in Je?et(Je,Re,{enumerable:!0,configurable:!0,writable:!0,value:vt}):Je[Re]=vt,Xe=(Je,Re)=>{for(var vt in Re||(Re={}))ze.call(Re,vt)&<(Je,vt,Re[vt]);if(tt)for(var vt of tt(Re))We.call(Re,vt)&<(Je,vt,Re[vt]);return Je},Dt=(Je,Re)=>Fe(Je,Ie(Re)),dt=(Je,Re)=>{var vt={};for(var $e in Je)ze.call(Je,$e)&&Re.indexOf($e)<0&&(vt[$e]=Je[$e]);if(Je!=null&&tt)for(var $e of tt(Je))Re.indexOf($e)<0&&We.call(Je,$e)&&(vt[$e]=Je[$e]);return vt};const Qe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ze=({value:Je,onChange:Re,choiceTextKey:vt,answerKey:$e,index:mt,isEdit:Be,setInputActive:xt,form:Ve,choiceOptionsPath:Ot,allowChangeMode:nt,showAddIcon:wt,addItem:Mt,deleteItem:at})=>{console.log(Je,"value");const Le=(Je==null?void 0:Je[$e])===1,Me=()=>{const Ht=Ve.getFieldValue(Ot);Ve.setFieldValue(Ot,Ht.map(Tt=>Dt(Xe({},Tt),{[$e]:0})))},st=()=>{Le?Re(Dt(Xe({},Je),{[$e]:0})):(nt||Me(),Re(Dt(Xe({},Je),{[$e]:1})))};return Pe.createElement(ye.Z,{className:Se.Z.choiceWrap,align:"middle",wrap:!1},Pe.createElement(Ee.Z,{onClick:st,className:`${Se.Z.choiceIndex} ${Le?Se.Z.activeAnswer:""}`},Qe[mt]),Pe.createElement(Ee.Z,{flex:1,className:`${Se.Z.editorWrap} ml15`,onClick:xt},Pe.createElement(De.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Be,value:Je==null?void 0:Je[vt],onChange:Ht=>{Re(Dt(Xe({},Je),{[vt]:Ht}))}})),Pe.createElement(Ee.Z,{flex:"0 0 auto",className:"ml15"},Pe.createElement("div",{onClick:st,className:`${Se.Z.setAnswerBtn} ${Le?Se.Z.activeAnswer:""}`},Le?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Pe.createElement(Ee.Z,{className:Se.Z.actionWrapper},Pe.createElement(Ye.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Pe.createElement(pe.Z,{className:Se.Z.addIcon,onClick:Mt,style:{visibility:wt?"visible":"hidden"}})),Pe.createElement(Ye.Z,{title:"\u5220\u9664"},Pe.createElement(be.Z,{className:Se.Z.deleteIcon,onClick:at,style:{visibility:mt>1?"visible":"hidden"}}))))},Ae=({questionTitlePlaceholder:Je,titleKey:Re,choiceKey:vt,analysisKey:$e,choiceTextKey:mt,answerKey:Be,choiceOptionsPath:xt,allowChangeMode:Ve=!0,form:Ot,showAnalysis:nt=!0})=>{const[wt,Mt]=(0,E.useState)(),[at,Le]=(0,E.useState)(!1);return Pe.createElement("div",{className:Se.Z.wrap},Pe.createElement("div",{className:Se.Z.questionTitleEditorWrap},Pe.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:Re,labelCol:{span:24},rules:[{required:!0}]},Pe.createElement(De.h,{scrollId:Array.isArray(Re)?Re.join("_"):`${Re}`,watch:!0,height:140,placeholder:Je}))),Pe.createElement(Ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Pe.createElement(Ce.default.List,{name:vt,rules:[{validator(Me,st){const Ht=st.some(ct=>ct[Be]===1),Tt=st.findIndex(ct=>{var Ct;return((Ct=ct[mt])==null?void 0:Ct.length)<=0});return Tt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Qe[Tt]}\u9009\u9879\u7684\u5185\u5BB9`)):Ht?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Me,{add:st,remove:Ht})=>Pe.createElement("div",{id:Array.isArray(xt)?xt.join("_"):`${xt}`},Me.map((Tt,ct)=>{var Ct=Tt,{key:Zt,name:gn}=Ct,$t=dt(Ct,["key","name"]);const Wt=wt===Zt,on=()=>{Mt(Zt)},dn=ct<7&&ct===Me.length-1,ln=()=>st({[mt]:"",[Be]:0}),xe=()=>Ht(gn);return Pe.createElement(Ce.default.Item,Dt(Xe({},$t),{key:Zt,name:gn,className:Se.Z.choiceListWrap,rules:[{validator(fe,ue){return ue!=null&&ue.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Qe[ct]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),Pe.createElement(Ze,{choiceTextKey:mt,answerKey:Be,index:ct,isEdit:Wt,setInputActive:on,form:Ot,choiceOptionsPath:xt,allowChangeMode:Ve,showAddIcon:dn,addItem:ln,deleteItem:xe}))}),Me.length<8&&Pe.createElement("div",{className:`${Se.Z.addBtn} mb30`,onClick:()=>st({[mt]:"",[Be]:0})},"\u6DFB\u52A0\u9009\u9879"))),nt&&Pe.createElement("div",{onClick:()=>Le(!0)},Pe.createElement(Ce.default.Item,{name:$e,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Pe.createElement(De.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:at}))))}},36234:function(An,tn,ne){"use strict";ne.d(tn,{u:function(){return Ot}});var E=ne(59301),ye=ne(43418),Ee=ne(95237),Ye=ne(43604),Ce=ne(92832),Se=ne(6848),pe=ne(78673),be=ne(78241),De=ne(5112),Pe=ne(5871),et=ne(3113),Fe=ne(34051),Ie=ne(12893),tt=ne(32134),ze=ne(61485),We=ne(44267),lt=ne(47506),Xe=ne(59301),Dt=Object.defineProperty,dt=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Re=(nt,wt,Mt)=>wt in nt?Dt(nt,wt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):nt[wt]=Mt,vt=(nt,wt)=>{for(var Mt in wt||(wt={}))Ae.call(wt,Mt)&&Re(nt,Mt,wt[Mt]);if(Ze)for(var Mt of Ze(wt))Je.call(wt,Mt)&&Re(nt,Mt,wt[Mt]);return nt},$e=(nt,wt)=>dt(nt,Qe(wt)),mt=(nt,wt)=>{var Mt={};for(var at in nt)Ae.call(nt,at)&&wt.indexOf(at)<0&&(Mt[at]=nt[at]);if(nt!=null&&Ze)for(var at of Ze(nt))wt.indexOf(at)<0&&Je.call(nt,at)&&(Mt[at]=nt[at]);return Mt};const Be=({value:nt,onChange:wt,position:Mt,removeBlank:at})=>{const Le=st=>{ye.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:We.Z.modal,onOk:()=>{const Ht=[...nt];Ht.splice(st,1),Ht.length===0?at(Mt-1):wt(Ht)}})},Me=()=>{const st=[...nt];st.push(""),wt(st)};return Xe.createElement(Ee.Z,{className:"ml20"},Xe.createElement(Ye.Z,{flex:1},nt==null?void 0:nt.map((st,Ht)=>Xe.createElement(Ee.Z,{key:`${st}_${Ht}`,className:"mb20"},Xe.createElement(Ce.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:st,autoSize:{maxRows:3},maxLength:1e3,onBlur:Tt=>{const ct=[...nt],Ct=Tt.target.value.trim();ct[Ht]=Ct,wt(ct)}}),Xe.createElement(Se.Z,{title:"\u5220\u9664"},Xe.createElement(Ie.Z,{className:We.Z.deleteIcon,style:{marginLeft:15,visibility:Mt===1&&Ht===0?"hidden":"visible"},onClick:()=>Le(Ht)})),Xe.createElement(Se.Z,{title:"\u65B0\u589E\u7B54\u6848"},Xe.createElement(tt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Ht===0?"visible":"hidden"},onClick:()=>{Me()}}))))))},xt=({value:nt,onChange:wt,position:Mt,removeBlank:at})=>{const Le=st=>{ye.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:We.Z.modal,onOk:()=>{const Ht=[...nt];Ht.splice(st,1),Ht.length===0?at(Mt-1):wt(Ht)}})},Me=()=>{const st=[...nt];st.push(""),wt(st)};return Xe.createElement(Ee.Z,{className:"ml20"},Xe.createElement(Ye.Z,{flex:1},nt==null?void 0:nt.map((st,Ht)=>Xe.createElement(Ee.Z,{key:`${st}_${Ht}`,align:"middle",className:"mb20"},Xe.createElement(lt.Z,{value:st,style:{flex:1},onChange:Tt=>{const ct=[...nt];ct[Ht]=Tt,wt(ct)}}),Xe.createElement(Se.Z,{title:"\u5220\u9664"},Xe.createElement(Ie.Z,{className:We.Z.deleteIcon,style:{marginLeft:15,visibility:Mt===1&&Ht===0?"hidden":"visible"},onClick:()=>Le(Ht)})),Xe.createElement(Se.Z,{title:"\u65B0\u589E\u7B54\u6848"},Xe.createElement(tt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Ht===0?"visible":"hidden"},onClick:()=>{Me()}}))))))},Ve=({value:nt=!0,onChange:wt})=>Xe.createElement(pe.Z,{checked:!nt,onChange:Mt=>{wt(!Mt)}}),Ot=({questionTitlePlaceholder:nt,form:wt,scoreByBlank:Mt=!1,answerKey:at})=>{const[Le,Me]=(0,E.useState)(!1),st=()=>{const gn=wt.getFieldValue(at);wt.setFieldsValue({[at]:gn.map(($t,Wt)=>$e(vt({},$t),{position:Wt+1}))})},Ht=(0,E.useRef)(),Tt=(gn,$t)=>{for(let Wt=0;Wt<gn;Wt++)Ht.current({position:null,answer_text:[""],model:1},$t+Wt);st()},ct=(0,E.useRef)(),Ct=gn=>{ct.current(gn),st()},Zt=be.default.useWatch(at,wt);return Xe.createElement("div",{className:We.Z.wrap},Xe.createElement("div",{className:We.Z.questionTitleEditorWrap},Xe.createElement(be.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Xe.createElement(Fe.h,{scrollId:"name",watch:!0,height:140,placeholder:nt,showNullButton:!0,onAddBlank:()=>{const gn=wt.getFieldValue(at);Tt(1,gn==null?void 0:gn.length)}}))),Xe.createElement(be.default.List,{name:at,rules:[{validator(gn,$t){if(!($t!=null&&$t.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Wt of $t){const{answer_text:on}=Wt||{};if(on!=null&&on.some(dn=>(dn==null?void 0:dn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(gn,{add:$t,remove:Wt},{errors:on})=>(Ht.current=$t,ct.current=Wt,Xe.createElement(Xe.Fragment,null,Xe.createElement(be.default.Item,{label:Xe.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),gn.map((dn,ln)=>{var xe=dn,{key:fe,name:ue}=xe,he=mt(xe,["key","name"]),me,oe;return Xe.createElement("div",{style:{marginBottom:10},key:fe},Xe.createElement(Ee.Z,{className:"mb20",align:"middle",wrap:!1},Xe.createElement(Ye.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${We.Z.blankIndex}`},"\u586B\u7A7A\u9879",ln+1),Xe.createElement(be.default.Item,$e(vt({},he),{name:[ue,"model"],noStyle:!0}),Xe.createElement(De.ZP.Group,{onChange:()=>{const Ne=wt.getFieldValue(at);wt.setFieldsValue({[at]:Ne.map((At,Ge)=>$e(vt({},At),{answer_text:ue===Ge?[""]:At.answer_text}))})}},Xe.createElement(De.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",Xe.createElement(Se.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},Xe.createElement(ze.Z,null))),Xe.createElement(De.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",Xe.createElement(Se.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},Xe.createElement(ze.Z,null)))))),Xe.createElement(Ee.Z,{style:{marginLeft:20},align:"middle",wrap:!1},Xe.createElement(Ye.Z,{flex:1},Xe.createElement(Ee.Z,{align:"top",justify:"space-between",wrap:!1},Xe.createElement(Ye.Z,{flex:1},Xe.createElement(be.default.Item,$e(vt({},he),{name:[ue,"answer_text"],noStyle:!0}),((oe=(me=wt.getFieldValue(at))==null?void 0:me[ue])==null?void 0:oe.model)===1?Xe.createElement(Be,{removeBlank:Ct,position:ln+1}):Xe.createElement(xt,{removeBlank:Ct,position:ln+1}))),Mt&&Xe.createElement(Ye.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},Xe.createElement(be.default.Item,$e(vt({},he),{name:[ue,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:We.Z.blankInputNumberWrapper}),Xe.createElement(Pe.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Xe.createElement(be.default.Item,$e(vt({},he),{name:[ue,"position"],noStyle:!0}),Xe.createElement(Ce.default,{type:"hidden"})))))})))),Xe.createElement(et.ZP,{className:"mb20",onClick:()=>Tt(1,Zt==null?void 0:Zt.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Xe.createElement(Ee.Z,{align:"middle"},Xe.createElement(be.default.Item,{name:"downcase",valuePropName:"checked"},Xe.createElement(pe.Z,null)),Xe.createElement(Ye.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Xe.createElement(Ee.Z,{align:"middle"},Xe.createElement(be.default.Item,{name:"no_space",valuePropName:"checked"},Xe.createElement(pe.Z,null)),Xe.createElement(Ye.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Zt==null?void 0:Zt.length)>1&&Xe.createElement(Ee.Z,{align:"middle",className:(Zt==null?void 0:Zt.length)>1?"mb30":`${We.Z.hide}`},Xe.createElement(be.default.Item,{name:"is_ordered"},Xe.createElement(Ve,null)),Xe.createElement(Ye.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Xe.createElement("div",{onClick:()=>Me(!0)},Xe.createElement(be.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Xe.createElement(Fe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Le}))))}},98887:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return dt}});var E=ne(59301),ye=ne(95237),Ee=ne(43604),Ye=ne(78241),Ce=ne(44267),Se=ne(34051),pe=ne(59301),be=Object.defineProperty,De=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,tt=(Qe,Ze,Ae)=>Ze in Qe?be(Qe,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Qe[Ze]=Ae,ze=(Qe,Ze)=>{for(var Ae in Ze||(Ze={}))Fe.call(Ze,Ae)&&tt(Qe,Ae,Ze[Ae]);if(et)for(var Ae of et(Ze))Ie.call(Ze,Ae)&&tt(Qe,Ae,Ze[Ae]);return Qe},We=(Qe,Ze)=>De(Qe,Pe(Ze)),lt=(Qe,Ze)=>{var Ae={};for(var Je in Qe)Fe.call(Qe,Je)&&Ze.indexOf(Je)<0&&(Ae[Je]=Qe[Je]);if(Qe!=null&&et)for(var Je of et(Qe))Ze.indexOf(Je)<0&&Ie.call(Qe,Je)&&(Ae[Je]=Qe[Je]);return Ae};const Xe={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Dt=({value:Qe,onChange:Ze,form:Ae})=>{const Je=(Qe==null?void 0:Qe.is_answer)===1,Re=Qe==null?void 0:Qe.choice_text,vt=()=>{const $e=Ae.getFieldsValue().choices.map(mt=>({choice_text:mt.choice_text,is_answer:0}));Ae.setFieldsValue({choices:$e}),Ze(We(ze({},Qe),{is_answer:1}))};return pe.createElement(ye.Z,{className:Ce.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},pe.createElement(Ee.Z,{onClick:vt,className:`${Ce.Z.choiceIndex} ${Ce.Z.judgementIndex} ${Je?Ce.Z.activeAnswer:""}`},Xe[Re]),pe.createElement(Ee.Z,{flex:1,className:`${Ce.Z.editorWrap} ml15`},pe.createElement("div",{className:`${Ce.Z.inputBorder} ${Ce.Z.placeholder} ${Je?Ce.Z.activeJudgementAnswer:""}`},Re)),pe.createElement(Ee.Z,{flex:"0 0 auto",className:"ml15"},pe.createElement("div",{onClick:vt,className:`${Ce.Z.setAnswerBtn} ${Je?Ce.Z.activeAnswer:""}`},Je?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},dt=({questionTitlePlaceholder:Qe,choiceKey:Ze,form:Ae})=>{const[Je,Re]=(0,E.useState)(!1);return pe.createElement("div",{className:Ce.Z.wrap},pe.createElement("div",{className:Ce.Z.questionTitleEditorWrap},pe.createElement(Ye.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},pe.createElement(Se.h,{scrollId:"name",watch:!0,height:140,placeholder:Qe}))),pe.createElement(Ye.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},pe.createElement(Ye.default.List,{name:"choices",rules:[{validator(vt,$e){return $e.some(Be=>(Be==null?void 0:Be.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},vt=>pe.createElement("div",{id:"choices"},vt.map($e=>{var mt=$e,{key:Be,name:xt}=mt,Ve=lt(mt,["key","name"]);return pe.createElement(Ye.default.Item,We(ze({},Ve),{key:Be,name:xt,noStyle:!0}),pe.createElement(Dt,{form:Ae}))})))),pe.createElement("div",{onClick:()=>Re(!0)},pe.createElement(Ye.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},pe.createElement(Se.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Je}))))}},34051:function(An,tn,ne){"use strict";ne.d(tn,{h:function(){return ze},x:function(){return We}});var E=ne(74972),ye=ne(44267),Ee=ne(58997),Ye=ne(59301),Ce=Object.defineProperty,Se=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,et=(lt,Xe,Dt)=>Xe in lt?Ce(lt,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):lt[Xe]=Dt,Fe=(lt,Xe)=>{for(var Dt in Xe||(Xe={}))De.call(Xe,Dt)&&et(lt,Dt,Xe[Dt]);if(be)for(var Dt of be(Xe))Pe.call(Xe,Dt)&&et(lt,Dt,Xe[Dt]);return lt},Ie=(lt,Xe)=>Se(lt,pe(Xe)),tt=(lt,Xe)=>{var Dt={};for(var dt in lt)De.call(lt,dt)&&Xe.indexOf(dt)<0&&(Dt[dt]=lt[dt]);if(lt!=null&&be)for(var dt of be(lt))Xe.indexOf(dt)<0&&Pe.call(lt,dt)&&(Dt[dt]=lt[dt]);return Dt};const ze=lt=>{var Xe=lt,{value:Dt,onChange:dt,scrollId:Qe}=Xe,Ze=tt(Xe,["value","onChange","scrollId"]);return Ye.createElement("div",{id:Qe||""},Ye.createElement(E.Z,Ie(Fe({},Ze),{defaultValue:Dt,onChange:(Ae,Je)=>{Je!=null&&Je.length?dt(Ae,Je):dt(Ae)}})))},We=({value:lt,onChange:Xe,placeholder:Dt,height:dt=140,isEdit:Qe,miniToolbar:Ze,watch:Ae=!0})=>Qe?Ye.createElement(E.Z,{watch:Ae,isFocus:!0,height:dt||void 0,placeholder:Dt,defaultValue:lt,onChange:Xe,miniToolbar:Ze}):Ye.createElement("div",{style:{cursor:"pointer"}},lt?Ye.createElement(Ee.Z,{className:ye.Z.inputBorder,value:lt}):Ye.createElement("div",{className:`${ye.Z.inputBorder} ${ye.Z.placeholder} inputBorderError`},Dt))},88792:function(An,tn,ne){"use strict";ne.d(tn,{W:function(){return mt}});var E=ne(59301),ye=ne(8591),Ee=ne(12563),Ye=ne(78241),Ce=ne(78673),Se=ne(95237),pe=ne(43604),be=ne(6848),De=ne(92832),Pe=ne(5871),et=ne(44267),Fe=ne(34051),Ie=ne(74972),tt=ne(61485),ze=Object.defineProperty,We=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Qe=(Be,xt,Ve)=>xt in Be?ze(Be,xt,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Be[xt]=Ve,Ze=(Be,xt)=>{for(var Ve in xt||(xt={}))Dt.call(xt,Ve)&&Qe(Be,Ve,xt[Ve]);if(Xe)for(var Ve of Xe(xt))dt.call(xt,Ve)&&Qe(Be,Ve,xt[Ve]);return Be},Ae=(Be,xt)=>We(Be,lt(xt)),Je=(Be,xt)=>{var Ve={};for(var Ot in Be)Dt.call(Be,Ot)&&xt.indexOf(Ot)<0&&(Ve[Ot]=Be[Ot]);if(Be!=null&&Xe)for(var Ot of Xe(Be))xt.indexOf(Ot)<0&&dt.call(Be,Ot)&&(Ve[Ot]=Be[Ot]);return Ve};const Re=Be=>{var xt=Be,{value:Ve,onChange:Ot}=xt,nt=Je(xt,["value","onChange"]);const wt=Mt=>{Ot([Mt])};return E.createElement(Ie.Z,Ae(Ze({},nt),{defaultValue:Ve==null?void 0:Ve[0],onChange:wt}))},vt=Be=>{if(!Be)return!1;if(/^s*$/.test(Be)||Be.trim()===""){ye.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let xt=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Be==="|"?(ye.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},$e=({value:Be=[],onClose:xt})=>E.createElement(Ee.Z,{closable:!0,onClose:xt,className:et.Z.keywordTag},E.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Be.join(" \u6216 "))),mt=({questionTitlePlaceholder:Be,form:xt,showKeywords:Ve,isMustKeyWords:Ot=Ve})=>{const[nt,wt]=(0,E.useState)(!1),[Mt,at]=(0,E.useState)(""),Le=Ye.default.useWatch("use_keywords",xt),Me=Ye.default.useWatch("question_score",xt);return E.createElement("div",{className:et.Z.wrap},E.createElement("div",{className:et.Z.questionTitleEditorWrap},E.createElement(Ye.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},E.createElement(Fe.h,{scrollId:"name",watch:!0,height:140,placeholder:Be}))),E.createElement(Ye.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},E.createElement(Re,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ve&&!Ot&&E.createElement(Ye.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},E.createElement(Ce.Z,{defaultChecked:!0})),Ve&&Ot&&E.createElement(Se.Z,{align:"middle",className:"mb30"},E.createElement(Ye.default.Item,{name:"use_keywords",valuePropName:"checked"},E.createElement(Ce.Z,null)),E.createElement(pe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),E.createElement(pe.Z,null,E.createElement(be.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},E.createElement(tt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Le||!Ot)&&E.createElement(Ye.default.List,{name:"keywords",rules:[{validator(st,Ht){return Ot?Ht!=null&&Ht.length?(Ht==null?void 0:Ht.reduce((ct,Ct)=>ct+Ct.score,0))>parseFloat(Me)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(st,{add:Ht,remove:Tt})=>E.createElement(E.Fragment,null,E.createElement("div",{className:`${et.Z.title} mb10`},Ot?"\u5173\u952E\u8BCD":E.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),E.createElement(Se.Z,{align:"middle",className:"font14 mb30"},E.createElement(pe.Z,{flex:1},E.createElement(De.default,{value:Mt,onChange:ct=>{at(ct.target.value)},maxLength:50,allowClear:!0,onPressEnter:ct=>{var Ct,Zt,gn,$t;const Wt=`${(Ct=ct.target)==null?void 0:Ct.value}`,on=(gn=(Zt=Wt==null?void 0:Wt.split("|"))==null?void 0:Zt.filter(xe=>!!xe))==null?void 0:gn.map(xe=>xe==null?void 0:xe.trim()),dn=xt.getFieldValue("keywords"),ln=(($t=dn==null?void 0:dn.map(xe=>xe==null?void 0:xe.keyword))==null?void 0:$t.flat())||[];for(const xe of on)if(ln.includes(xe)){ye.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}vt(Wt)&&(Ht({keyword:on,score:1}),at(""))},className:et.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),E.createElement(pe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),st.map(ct=>{var Ct=ct,{key:Zt,name:gn}=Ct,$t=Je(Ct,["key","name"]);return E.createElement(Se.Z,{key:Zt,className:"mb20",style:{marginRight:148}},E.createElement(pe.Z,{flex:1},E.createElement(Se.Z,{align:"middle",justify:"space-between"},E.createElement(Ye.default.Item,Ae(Ze({},$t),{name:[gn,"keyword"]}),E.createElement($e,{onClose:()=>Tt(gn)})),Ot&&E.createElement(Ye.default.Item,Ae(Ze({},$t),{name:[gn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:et.Z.blankInputNumberWrapper}),E.createElement(Pe.Z,{className:et.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),E.createElement("div",{onClick:()=>wt(!0)},E.createElement(Ye.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Fe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:nt}))))}},32268:function(An,tn,ne){"use strict";ne.d(tn,{tc:function(){return dr.t},uh:function(){return E.u},rL:function(){return vr},u8:function(){return Ee.u},ZZ:function(){return ye.Z},Wk:function(){return Ye.W}});var E=ne(51562),ye=ne(98887),Ee=ne(36234),Ye=ne(88792),Ce=ne(59301),Se=ne(36381),pe=ne(78241),be=ne(95237),De=ne(43604),Pe=ne(5871),et=ne(6848),Fe=ne(38854),Ie=ne(44267),tt=ne(12893),ze=ne(34051),We=ne(43418),lt=ne(92832),Xe=ne(78673),Dt=ne(3113),dt=ne(32134),Qe=ne(59301),Ze=Object.defineProperty,Ae=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,mt=(mn,zn,jn)=>zn in mn?Ze(mn,zn,{enumerable:!0,configurable:!0,writable:!0,value:jn}):mn[zn]=jn,Be=(mn,zn)=>{for(var jn in zn||(zn={}))vt.call(zn,jn)&&mt(mn,jn,zn[jn]);if(Re)for(var jn of Re(zn))$e.call(zn,jn)&&mt(mn,jn,zn[jn]);return mn},xt=(mn,zn)=>Ae(mn,Je(zn)),Ve=(mn,zn)=>{var jn={};for(var Xn in mn)vt.call(mn,Xn)&&zn.indexOf(Xn)<0&&(jn[Xn]=mn[Xn]);if(mn!=null&&Re)for(var Xn of Re(mn))zn.indexOf(Xn)<0&&$e.call(mn,Xn)&&(jn[Xn]=mn[Xn]);return jn};const Ot=({value:mn,onChange:zn,position:jn,removeBlank:Xn})=>{const Sr=ar=>{We.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Ie.Z.modal,onOk:()=>{const Zn=[...mn];Zn.splice(ar,1),Zn.length===0?Xn(jn-1):zn(Zn)}})},Kr=()=>{const ar=[...mn];ar.push(""),zn(ar)};return Qe.createElement(be.Z,{className:"ml20"},Qe.createElement(De.Z,{flex:1},mn==null?void 0:mn.map((ar,Zn)=>Qe.createElement(be.Z,{key:`${ar}_${Zn}`,className:"mb20"},Qe.createElement(lt.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:ar,autoSize:{maxRows:3},maxLength:1e3,onBlur:Wr=>{const Gt=[...mn],or=Wr.target.value.trim();Gt[Zn]=or,zn(Gt)}}),Qe.createElement(et.Z,{title:"\u5220\u9664"},Qe.createElement(tt.Z,{className:Ie.Z.deleteIcon,style:{marginLeft:15,visibility:jn===1&&Zn===0?"hidden":"visible"},onClick:()=>Sr(Zn)})),Qe.createElement(et.Z,{title:"\u65B0\u589E\u7B54\u6848"},Qe.createElement(dt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Zn===0?"visible":"hidden"},onClick:()=>{Kr()}}))))))},nt=({value:mn=!0,onChange:zn})=>Qe.createElement(Xe.Z,{checked:!mn,onChange:jn=>{zn(!jn)}}),wt=({questionTitlePlaceholder:mn,form:zn,name:jn,scoreByBlank:Xn=!1,answerKey:Sr,titleKey:Kr="name",analysisKey:ar="analysis",isOrdered:Zn="is_ordered"})=>{var Wr,Gt;const[or,er]=(0,Ce.useState)(!1),Kn=()=>{const Ue=zn.getFieldValue(["sub_item_banks",...Sr]);zn.setFieldValue(["sub_item_banks",...Sr],Ue==null?void 0:Ue.map((yt,ut)=>xt(Be({},yt),{position:ut+1})))},En=(0,Ce.useRef)(),nr=(Ue,yt)=>{for(let ut=0;ut<Ue;ut++)En.current({position:null,answer_text:[""]},yt+ut);Kn()},lr=(0,Ce.useRef)(),xr=Ue=>{lr.current(Ue),Kn()},jt=(Gt=(Wr=zn.getFieldValue("sub_item_banks"))==null?void 0:Wr[Sr==null?void 0:Sr[0]])==null?void 0:Gt[Sr==null?void 0:Sr[1]];return Qe.createElement("div",{className:Ie.Z.wrap},Qe.createElement("div",{className:Ie.Z.questionTitleEditorWrap},Qe.createElement(pe.default.Item,{label:"\u9898\u5E72",name:Kr,labelCol:{span:24},rules:[{required:!0}]},Qe.createElement(ze.h,{scrollId:"name",watch:!0,height:140,placeholder:mn,showNullButton:!0,onAddBlank:()=>{const Ue=zn.getFieldValue(["sub_item_banks",...Sr]);nr(1,Ue==null?void 0:Ue.length)}}))),Qe.createElement(pe.default.List,{name:Sr,rules:[{validator(Ue,yt){if((yt==null?void 0:yt.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const ut of yt){const{answer_text:rt}=ut||{};if(rt!=null&&rt.some(_t=>(_t==null?void 0:_t.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Ue,{add:yt,remove:ut},{errors:rt})=>(En.current=yt,lr.current=ut,Qe.createElement(Qe.Fragment,null,Qe.createElement(pe.default.Item,{label:Qe.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Ue.map((_t,Qt)=>{var pn=_t,{key:sn,name:Bn}=pn,Yn=Ve(pn,["key","name"]);return Qe.createElement(be.Z,{align:"top",key:sn},Qe.createElement(De.Z,{className:`${Ie.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",Qt+1),Qe.createElement(De.Z,{flex:1},Qe.createElement(be.Z,{align:"top",justify:"space-between"},Qe.createElement(De.Z,{flex:1},Qe.createElement(pe.default.Item,xt(Be({},Yn),{name:[Bn,"answer_text"],noStyle:!0}),Qe.createElement(Ot,{removeBlank:xr,position:Qt+1}))),Xn&&Qe.createElement(De.Z,{flex:"224px"},Qe.createElement(pe.default.Item,xt(Be({},Yn),{name:[Bn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ie.Z.blankInputNumberWrapper}),Qe.createElement(Pe.Z,{className:Ie.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Qe.createElement(pe.default.Item,xt(Be({},Yn),{name:[Bn,"position"],noStyle:!0}),Qe.createElement(lt.default,{type:"hidden"}))))})))),Qe.createElement(Dt.ZP,{className:"mb20",onClick:()=>nr(1,jt==null?void 0:jt.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Qe.createElement(be.Z,{align:"middle"},Qe.createElement(pe.default.Item,{name:[jn,"downcase"],valuePropName:"checked"},Qe.createElement(Xe.Z,null)),Qe.createElement(De.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Qe.createElement(be.Z,{align:"middle"},Qe.createElement(pe.default.Item,{name:[jn,"no_space"],valuePropName:"checked"},Qe.createElement(Xe.Z,null)),Qe.createElement(De.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(jt==null?void 0:jt.length)>1&&Qe.createElement(be.Z,{align:"middle",className:(jt==null?void 0:jt.length)>1?"mb30":`${Ie.Z.hide}`},Qe.createElement(pe.default.Item,{name:Zn},Qe.createElement(nt,null)),Qe.createElement(De.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Qe.createElement("div",{className:"mt30",onClick:()=>er(!0)},Qe.createElement(pe.default.Item,{name:ar,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Qe.createElement(ze.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:or}))))};var Mt=ne(59301),at=Object.defineProperty,Le=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,ct=(mn,zn,jn)=>zn in mn?at(mn,zn,{enumerable:!0,configurable:!0,writable:!0,value:jn}):mn[zn]=jn,Ct=(mn,zn)=>{for(var jn in zn||(zn={}))Ht.call(zn,jn)&&ct(mn,jn,zn[jn]);if(st)for(var jn of st(zn))Tt.call(zn,jn)&&ct(mn,jn,zn[jn]);return mn},Zt=(mn,zn)=>Le(mn,Me(zn)),gn=(mn,zn)=>{var jn={};for(var Xn in mn)Ht.call(mn,Xn)&&zn.indexOf(Xn)<0&&(jn[Xn]=mn[Xn]);if(mn!=null&&st)for(var Xn of st(mn))zn.indexOf(Xn)<0&&Tt.call(mn,Xn)&&(jn[Xn]=mn[Xn]);return jn};const $t={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Wt=({value:mn,onChange:zn,form:jn,choiceKey:Xn})=>{const Sr=(mn==null?void 0:mn.is_answer)===1,Kr=mn==null?void 0:mn.choice_text,ar=()=>{var Zn;const Wr=(Zn=jn==null?void 0:jn.getFieldValue(["sub_item_banks",...Xn]))==null?void 0:Zn.map(Gt=>({choice_text:Gt.choice_text,is_answer:0}));jn==null||jn.setFieldValue(["sub_item_banks",...Xn],Wr),zn(Zt(Ct({},mn),{is_answer:1}))};return Mt.createElement(be.Z,{className:Ie.Z.choiceWrap,align:"middle",wrap:!1},Mt.createElement(De.Z,{onClick:ar,className:`${Ie.Z.choiceIndex} ${Ie.Z.judgementIndex} ${Sr?Ie.Z.activeAnswer:""}`},$t[Kr]),Mt.createElement(De.Z,{flex:1,className:`${Ie.Z.editorWrap} ml15`},Mt.createElement("div",{className:`${Ie.Z.inputBorder} ${Ie.Z.placeholder} ${Sr?Ie.Z.activeJudgementAnswer:""}`},Kr)),Mt.createElement(De.Z,{flex:"0 0 auto",className:"ml15"},Mt.createElement("div",{onClick:ar,className:`${Ie.Z.setAnswerBtn} ${Sr?Ie.Z.activeAnswer:""}`},Sr?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},on=({questionTitlePlaceholder:mn,choiceKey:zn="choices",form:jn,titleKey:Xn="name",analysisKey:Sr="analysis"})=>{const[Kr,ar]=(0,Ce.useState)(!1);return Mt.createElement("div",{className:Ie.Z.wrap},Mt.createElement("div",{className:Ie.Z.questionTitleEditorWrap},Mt.createElement(pe.default.Item,{label:"\u9898\u5E72",name:Xn,labelCol:{span:24},rules:[{required:!0}]},Mt.createElement(ze.h,{scrollId:"name",watch:!0,height:140,placeholder:mn}))),Mt.createElement(pe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Mt.createElement(pe.default.List,{name:zn,rules:[{validator(Zn,Wr){return Wr.some(or=>(or==null?void 0:or.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Zn=>Mt.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},Zn.map(Wr=>{var Gt=Wr,{key:or,name:er}=Gt,Kn=gn(Gt,["key","name"]);return Mt.createElement(pe.default.Item,Zt(Ct({},Kn),{key:or,name:er,noStyle:!0}),Mt.createElement(Wt,{form:jn,choiceKey:zn}))})))),Mt.createElement("div",{className:"mt30",onClick:()=>ar(!0)},Mt.createElement(pe.default.Item,{name:Sr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Mt.createElement(ze.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Kr}))))};var dn=ne(8591),ln=ne(12563),xe=ne(74972),fe=ne(61485),ue=Object.defineProperty,he=Object.defineProperties,me=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Ge=(mn,zn,jn)=>zn in mn?ue(mn,zn,{enumerable:!0,configurable:!0,writable:!0,value:jn}):mn[zn]=jn,je=(mn,zn)=>{for(var jn in zn||(zn={}))Ne.call(zn,jn)&&Ge(mn,jn,zn[jn]);if(oe)for(var jn of oe(zn))At.call(zn,jn)&&Ge(mn,jn,zn[jn]);return mn},Pt=(mn,zn)=>he(mn,me(zn)),Et=(mn,zn)=>{var jn={};for(var Xn in mn)Ne.call(mn,Xn)&&zn.indexOf(Xn)<0&&(jn[Xn]=mn[Xn]);if(mn!=null&&oe)for(var Xn of oe(mn))zn.indexOf(Xn)<0&&At.call(mn,Xn)&&(jn[Xn]=mn[Xn]);return jn};const ht=mn=>{var zn=mn,{value:jn,onChange:Xn}=zn,Sr=Et(zn,["value","onChange"]);const Kr=ar=>{Xn([ar])};return Ce.createElement(xe.Z,Pt(je({},Sr),{defaultValue:jn==null?void 0:jn[0],onChange:Kr}))},Kt=mn=>{if(!mn)return!1;let zn=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return mn==="|"?(dn.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},vn=({value:mn=[],onClose:zn})=>Ce.createElement(ln.Z,{closable:!0,onClose:zn,className:Ie.Z.keywordTag},Ce.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},mn.join(" \u6216 "))),kt=({questionTitlePlaceholder:mn,form:zn,showKeywords:jn,isMustKeyWords:Xn=jn,titleKey:Sr="name",analysisKey:Kr="analysis",answerTexts:ar="answer_texts",keywords:Zn="keywords",useKeywords:Wr="use_keywords",indexs:Gt})=>{const[or,er]=(0,Ce.useState)(!1),[Kn,En]=(0,Ce.useState)(""),[nr,lr]=(0,Ce.useState)(!1),xr=pe.default.useWatch("question_score",zn);return Ce.createElement("div",{className:Ie.Z.wrap},Ce.createElement("div",{className:Ie.Z.questionTitleEditorWrap},Ce.createElement(pe.default.Item,{label:"\u9898\u5E72",name:Sr,labelCol:{span:24},rules:[{required:!0}]},Ce.createElement(ze.h,{scrollId:"name",watch:!0,height:140,placeholder:mn}))),Ce.createElement(pe.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:ar,labelCol:{span:24}},Ce.createElement(ht,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),jn&&!Xn&&Ce.createElement(pe.default.Item,{hidden:!0,name:Wr,valuePropName:"checked"},Ce.createElement(Xe.Z,{defaultChecked:!0})),jn&&Xn&&Ce.createElement(be.Z,{align:"middle",className:"mb30"},Ce.createElement(pe.default.Item,{name:Wr,valuePropName:"checked"},Ce.createElement(Xe.Z,{onChange:()=>{var jt,Ue,yt,ut,rt,_t;console.log(zn.getFieldsValue()),lr((yt=(Ue=(jt=zn.getFieldsValue())==null?void 0:jt.sub_item_banks)==null?void 0:Ue[Gt])==null?void 0:yt.use_keywords),console.log((_t=(rt=(ut=zn.getFieldsValue())==null?void 0:ut.sub_item_banks)==null?void 0:rt[Gt])==null?void 0:_t.use_keywords),console.log(nr)}})),Ce.createElement(De.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Ce.createElement(De.Z,null,Ce.createElement(et.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},Ce.createElement(fe.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(nr||!Xn)&&Ce.createElement(pe.default.List,{name:Zn,rules:[{validator(jt,Ue){return Xn?Ue!=null&&Ue.length?(Ue==null?void 0:Ue.reduce((ut,rt)=>ut+rt.score,0))>parseFloat(xr)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(jt,{add:Ue,remove:yt})=>Ce.createElement(Ce.Fragment,null,Ce.createElement("div",{className:`${Ie.Z.title} mb10`},Xn?"\u5173\u952E\u8BCD":Ce.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),Ce.createElement(be.Z,{align:"middle",className:"font14 mb30"},Ce.createElement(De.Z,{flex:1},Ce.createElement(lt.default,{value:Kn,onChange:ut=>{En(ut.target.value)},maxLength:50,allowClear:!0,onPressEnter:ut=>{var rt,_t,Qt,pn;const sn=`${(rt=ut.target)==null?void 0:rt.value}`,Bn=(Qt=(_t=sn==null?void 0:sn.split("|"))==null?void 0:_t.filter($n=>!!$n))==null?void 0:Qt.map($n=>$n==null?void 0:$n.trim()),Yn=zn.getFieldValue(["sub_item_banks",...Zn]),cr=((pn=Yn==null?void 0:Yn.map($n=>$n==null?void 0:$n.keyword))==null?void 0:pn.flat())||[];for(const $n of Bn)if(cr.includes($n)){dn.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Kt(sn)&&(Ue({keyword:Bn,score:1}),En(""))},className:Ie.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),Ce.createElement(De.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),jt.map(ut=>{var rt=ut,{key:_t,name:Qt}=rt,pn=Et(rt,["key","name"]);return Ce.createElement(be.Z,{key:_t,className:"mb20",style:{marginRight:148}},Ce.createElement(De.Z,{flex:1},Ce.createElement(be.Z,{align:"middle",justify:"space-between"},Ce.createElement(pe.default.Item,Pt(je({},pn),{name:[Qt,"keyword"]}),Ce.createElement(vn,{onClose:()=>yt(Qt)})),Xn&&Ce.createElement(pe.default.Item,Pt(je({},pn),{name:[Qt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ie.Z.blankInputNumberWrapper}),Ce.createElement(Pe.Z,{className:Ie.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),Ce.createElement("div",{onClick:()=>er(!0)},Ce.createElement(pe.default.Item,{name:Kr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ce.createElement(ze.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:or}))))};var Ut=ne(59301),yn=Object.defineProperty,Bt=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Xt=(mn,zn,jn)=>zn in mn?yn(mn,zn,{enumerable:!0,configurable:!0,writable:!0,value:jn}):mn[zn]=jn,Mn=(mn,zn)=>{for(var jn in zn||(zn={}))Vt.call(zn,jn)&&Xt(mn,jn,zn[jn]);if(gt)for(var jn of gt(zn))Nt.call(zn,jn)&&Xt(mn,jn,zn[jn]);return mn},Tn=(mn,zn)=>Bt(mn,Ke(zn)),Rn=(mn,zn)=>{var jn={};for(var Xn in mn)Vt.call(mn,Xn)&&zn.indexOf(Xn)<0&&(jn[Xn]=mn[Xn]);if(mn!=null&>)for(var Xn of gt(mn))zn.indexOf(Xn)<0&&Nt.call(mn,Xn)&&(jn[Xn]=mn[Xn]);return jn};const{Panel:ur}=Se.default,vr=({questionTitlePlaceholder:mn,choiceKey:zn,form:jn,withScore:Xn})=>{const[Sr,Kr]=(0,Ce.useState)([]),ar=Zn=>{Kr(Zn)};return Ut.createElement("div",{className:Ie.Z.wrap},Ut.createElement("div",{className:Ie.Z.questionTitleEditorWrap},Ut.createElement(pe.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Ut.createElement(ze.h,{scrollId:"name",watch:!0,height:140,placeholder:mn}))),Ut.createElement(pe.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Ut.createElement(pe.default.List,{name:"sub_item_banks",rules:[{validator(Zn,Wr){return Wr?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Zn,{add:Wr,remove:Gt,move:or})=>{const er=jn.getFieldValue("sub_item_banks");return Ut.createElement(Ut.Fragment,null,Ut.createElement(Se.default,{className:Zn.length>0?Ie.Z.collapseWrapper:"",bordered:!1,activeKey:Sr,onChange:ar,expandIcon:({isActive:Kn})=>Ut.createElement("i",{className:`iconfont icon-weizhankai ${Kn?Ie.Z.open:Ie.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Zn.map((Kn,En)=>{var nr=Kn,{key:lr,name:xr}=nr,jt=Rn(nr,["key","name"]),Ue,yt,ut,rt,_t,Qt,pn,sn,Bn,Yn;return Ut.createElement(ur,{className:Ie.Z.panel,forceRender:!0,header:Ut.createElement("div",{className:Ie.Z.panelHeader},"\u7B2C",En+1,"\u5C0F\u9898",Ut.createElement("span",null,"\uFF08",((Ue=er==null?void 0:er[xr])==null?void 0:Ue.item_type)=="SINGLE"?"\u5355\u9009\u9898":((yt=er==null?void 0:er[xr])==null?void 0:yt.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((ut=er==null?void 0:er[xr])==null?void 0:ut.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((rt=er==null?void 0:er[xr])==null?void 0:rt.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:xr,extra:Ut.createElement(be.Z,{align:"middle",onClick:cr=>cr.stopPropagation()},Xn&&Ut.createElement(De.Z,null,Ut.createElement(pe.default.Item,Tn(Mn({},jt),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[xr,"question_score"],className:Ie.Z.blankInputNumberWrapper}),Ut.createElement(Pe.Z,{className:Ie.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),Ut.createElement(De.Z,null,Ut.createElement(be.Z,{align:"middle",className:"pl40",justify:"end"},En!==0&&Ut.createElement("div",{onClick:()=>{var cr;or(En,En-1);const $n=(cr=jn.getFieldValue("sub_item_banks"))==null?void 0:cr.map((en,rn)=>(Zn.map((Or,kr)=>{rn===kr&&(en.q_position=Number(Or.name)+1)}),en));jn.setFieldValue("sub_item_banks",$n)}},Ut.createElement(et.Z,{title:"\u4E0A\u79FB"},Ut.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),En<Zn.length-1&&Ut.createElement("div",{onClick:()=>{var cr;or(En,En+1);const $n=(cr=jn.getFieldValue("sub_item_banks"))==null?void 0:cr.map((en,rn)=>(Zn.map((Or,kr)=>{rn===kr&&(en.q_position=Number(Or.name)+1)}),en));jn.setFieldValue("sub_item_banks",$n)},className:En===0?"":"ml15"},Ut.createElement(et.Z,{title:"\u4E0B\u79FB"},Ut.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),Ut.createElement(De.Z,null,Ut.createElement(et.Z,{title:"\u5220\u9664"},Ut.createElement(tt.Z,{className:`${Ie.Z.deleteIcon} ml15`,onClick:()=>Gt(xr)}))))},Ut.createElement(pe.default.Item,Tn(Mn({},jt),{name:xr}),(((_t=er==null?void 0:er[xr])==null?void 0:_t.item_type)=="SINGLE"||((Qt=er==null?void 0:er[xr])==null?void 0:Qt.item_type)=="MULTIPLE")&&Ut.createElement(E.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((pn=er==null?void 0:er[xr])==null?void 0:pn.item_type)=="MULTIPLE",form:jn,choiceKey:[xr,"choices"],titleKey:[xr,"name"],analysisKey:[xr,"analysis"],choiceOptionsPath:["sub_item_banks",xr,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((sn=er==null?void 0:er[xr])==null?void 0:sn.item_type)=="COMPLETION"&&Ut.createElement(wt,{form:jn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:!1,name:xr,titleKey:[xr,"name"],analysisKey:[xr,"analysis"],isOrdered:[xr,"is_ordered"],answerKey:[xr,"standard_answers"]}),((Bn=er==null?void 0:er[xr])==null?void 0:Bn.item_type)=="JUDGMENT"&&Ut.createElement(on,{form:jn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[xr,"name"],analysisKey:[xr,"analysis"],choiceKey:[xr,"choices"]}),((Yn=er==null?void 0:er[xr])==null?void 0:Yn.item_type)=="SUBJECTIVE"&&Ut.createElement(kt,{showKeywords:!0,isMustKeyWords:!1,form:jn,titleKey:[xr,"name"],analysisKey:[xr,"analysis"],answerTexts:[xr,"answer_texts"],useKeywords:[xr,"use_keywords"],keywords:[xr,"keywords"],indexs:xr,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),Zn.length<20&&Ut.createElement(Fe.Z,{menu:{items:[{label:Ut.createElement("div",{onClick:()=>{Wr({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),Kr([Zn==null?void 0:Zn.length,...Sr])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Ut.createElement("div",{onClick:()=>{Wr({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),Kr([Zn==null?void 0:Zn.length,...Sr])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Ut.createElement("div",{onClick:()=>{Wr({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),Kr([Zn==null?void 0:Zn.length,...Sr])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Ut.createElement("div",{onClick:()=>{Wr({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],item_type:"COMPLETION",downcase:!0,no_space:!0}),Kr([Zn==null?void 0:Zn.length,...Sr])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Ut.createElement("div",{onClick:()=>{Wr({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),Kr([Zn==null?void 0:Zn.length,...Sr])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Kn=>Kn.show).map(Kn=>({label:Kn.label,key:Kn.key}))}},Ut.createElement("div",{className:`${Ie.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var dr=ne(28864)},49034:function(An,tn,ne){"use strict";ne.d(tn,{C:function(){return nt}});var E=ne(59301),ye={recalculation:"recalculation____i9AE",tips:"tips___GoMu8",filter:"filter___Vx7VO",input:"input___OEMMv",operating:"operating___TS9iA",operatingItem:"operatingItem___AT84q"},Ee=ne(92310),Ye=ne.n(Ee),Ce=ne(24905),Se=ne(95237),pe=ne(8591),be=ne(6848),De=ne(3113),Pe=ne(43418),et=ne(1710),Fe=ne(5871),Ie=ne(78241),tt=ne(71418),ze=ne(85333),We=ne(58661),lt=ne(36466),Xe=ne(68682),Dt=ne(93351),dt=Object.defineProperty,Qe=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,vt=(wt,Mt,at)=>Mt in wt?dt(wt,Mt,{enumerable:!0,configurable:!0,writable:!0,value:at}):wt[Mt]=at,$e=(wt,Mt)=>{for(var at in Mt||(Mt={}))Je.call(Mt,at)&&vt(wt,at,Mt[at]);if(Ae)for(var at of Ae(Mt))Re.call(Mt,at)&&vt(wt,at,Mt[at]);return wt},mt=(wt,Mt)=>Qe(wt,Ze(Mt)),Be=(wt,Mt,at)=>new Promise((Le,Me)=>{var st=ct=>{try{Tt(at.next(ct))}catch(Ct){Me(Ct)}},Ht=ct=>{try{Tt(at.throw(ct))}catch(Ct){Me(Ct)}},Tt=ct=>ct.done?Le(ct.value):Promise.resolve(ct.value).then(st,Ht);Tt((at=at.apply(wt,Mt)).next())});const xt=Ce.default.Group,Ve=({className:wt,title:Mt,items:at=[],value:Le,onChange:Me})=>{const st=(at==null?void 0:at.length)===(Le==null?void 0:Le.length),Ht=(Le==null?void 0:Le.length)>0&&(Le==null?void 0:Le.length)<(at==null?void 0:at.length),Tt=ct=>{const Ct=at.map(Zt=>Zt.id);Me(ct.target.checked?Ct:[])};return E.createElement(Se.Z,{align:"middle",className:wt},!!Mt&&E.createElement("div",{className:"mr20",style:{color:"#5F6368"}},Mt),E.createElement(Ce.default,{indeterminate:Ht,onChange:Tt,checked:st},"\u5168\u90E8"),E.createElement(xt,{value:Le,onChange:Me},at.map(ct=>E.createElement(Ce.default,{className:"ml30 c-black",key:ct.id,value:ct.id},ct.name,E.createElement("span",null,`(${ct.count})`)))))};var nt=({className:wt,style:Mt,dataSource:at})=>{var Le,Me,st,Ht,Tt,ct,Ct;const[Zt,gn]=(0,E.useState)({}),[$t,Wt]=(0,E.useState)(!0),[on,dn]=(0,E.useState)(!1),[ln,xe]=(0,E.useState)(!1),[fe,ue]=(0,E.useState)(null),[he,me]=(0,E.useState)(0),[oe,Ne]=(0,E.useState)({}),[At,Ge]=(0,E.useState)(!0),[je,Pt]=(0,E.useState)(0),[Et,ht]=(0,E.useState)(0),[Kt,vn]=(0,E.useState)(!1),kt=(0,E.useRef)(null),[Ut,yn]=(0,E.useState)(!1),[Bt,Ke]=(0,E.useState)(!0),[gt,Vt]=(0,E.useState)([]),Nt={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[Xt,Mn]=(0,E.useState)($e({},Nt));(0,E.useEffect)(()=>{at!=null&&at.question_id&&gn(at)},[at==null?void 0:at.question_id]),(0,E.useEffect)(()=>{var Zn;if(((Zn=Zt==null?void 0:Zt.exercise_question_resubmit)==null?void 0:Zn.status)==="running"){const Wr=setInterval(()=>{ur()},3e3);return()=>clearInterval(Wr)}},[(Le=Zt==null?void 0:Zt.exercise_question_resubmit)==null?void 0:Le.status]),(0,E.useEffect)(()=>{var Zn;ln&&(ln===1&&(Xt.question_status=vr.map(Wr=>Wr.value),Xt.review=dr.map(Wr=>Wr.value)),ln===2&&(Xt.exercise_question_resubmit_id=(Zn=Zt==null?void 0:Zt.exercise_question_resubmit)==null?void 0:Zn.id,fe===1&&(Xt.success_status=[1]),fe===2&&(Xt.success_status=[0])),Mn($e({},Xt)),Tn(Xt),ht(Zt!=null&&Zt.is_mirror?3:10),Pt(Zt!=null&&Zt.is_mirror?1:5))},[ln]),(0,E.useEffect)(()=>{Ut&&Rn()},[Ut]);const Tn=Zn=>Be(void 0,null,function*(){Wt(!0);const Wr=yield(0,We.ZP)(`/api/exercise_questions/${Zt==null?void 0:Zt.question_id}/resubmit_student_list.json`,{method:"get",params:Zn});(Wr==null?void 0:Wr.status)==0&&(Ne(Wr||[]),me(Wr==null?void 0:Wr.count)),Wt(!1)}),Rn=()=>Be(void 0,null,function*(){Ke(!0);const Zn=yield(0,We.ZP)(`/api/exercise_questions/${Zt==null?void 0:Zt.question_id}/resubmit_history.json`,{method:"get"});(Zn==null?void 0:Zn.status)==0&&Vt((Zn==null?void 0:Zn.data)||[]),Ke(!1)}),ur=()=>Be(void 0,null,function*(){const Zn=yield(0,We.ZP)(`/api/exercise_questions/${Zt==null?void 0:Zt.question_id}/resubmit_status.json`,{method:"get"});(Zn==null?void 0:Zn.status)==0&&gn(mt($e({},Zt),{show_resubmit_history:!0,exercise_question_resubmit:(Zn==null?void 0:Zn.data)||{}}))}),vr=[{label:"\u672A\u8BC4\u6D4B",value:2,color:"#9096A3"},{label:"\u672A\u901A\u5173",value:0,color:"#E30000"},{label:"\u5DF2\u901A\u5173",value:1,color:"#00B187"}],dr=[{label:"\u672A\u8BC4\u9605",value:0,color:"#9096A3"},{label:"\u8BC4\u9605\u4E2D",value:2,color:"#FF9D18"},{label:"\u5DF2\u8BC4\u9605",value:1,color:"#3061D0"}],mn=[{label:"\u6210\u529F",value:1,color:"#00B187"},{label:"\u5931\u8D25",value:0,color:"#E30000"}],zn=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(Zn,Wr,Gt)=>E.createElement("span",{className:"c-black"},Gt+1+(Xt.page-1)*Xt.per_page)},{title:"\u59D3\u540D",dataIndex:"user_name",render:Zn=>E.createElement("span",{className:"c-black"},Zn)},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,render:Zn=>E.createElement("span",{className:"c-grey-666"},Zn||"--")},{title:"\u5206\u73ED",dataIndex:"group_name",render:Zn=>E.createElement("span",{className:"c-black"},Zn)},{title:"\u9898\u76EE\u72B6\u6001",dataIndex:"question_status",render:Zn=>{const{label:Wr,color:Gt}=vr.find(or=>or.value===Zn)||{};return E.createElement("span",{style:{color:Gt}},Wr)}},{title:"\u9898\u76EE\u5F97\u5206",dataIndex:"question_score",sorter:!0,render:Zn=>E.createElement("span",{className:"c-black"},Zn)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:Zn=>E.createElement("span",{className:"c-black"},Zn)},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"review",render:Zn=>{const{label:Wr,color:Gt}=dr.find(or=>or.value===Zn)||{};return E.createElement("span",{style:{color:Gt}},Wr)}},ln===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:Zn=>{const{label:Wr,color:Gt}=mn.find(or=>or.value===Zn)||{};return E.createElement("span",{style:{color:Gt}},Wr)}}].filter(Boolean),jn=(Zn,Wr,Gt)=>{Xt.page=Zn==null?void 0:Zn.current,Xt.per_page=Zn==null?void 0:Zn.pageSize,Gt!=null&&Gt.order?(Xt.sort_by=Gt==null?void 0:Gt.field,Xt.direction=(Gt==null?void 0:Gt.order)==="ascend"?"asc":"desc"):(Xt.sort_by=null,Xt.direction=null),Mn($e({},Xt)),Tn(Xt)},Xn=()=>{if(!je){pe.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}vn(!0)},Sr=()=>Be(void 0,null,function*(){var Zn,Wr;if((Zn=kt.current)!=null&&Zn.onVerify())return;dn(!0);const Gt=yield(0,We.ZP)(`/api/exercise_questions/${Zt==null?void 0:Zt.question_id}/resubmit.json`,{method:"post",body:{keyword:Xt.keyword,question_status:Xt.question_status,review:Xt.review_status,success_status:Xt.success_status,use_max_score:At,permits:je,exercise_question_resubmit_id:ln===1?null:(Wr=Zt==null?void 0:Zt.exercise_question_resubmit)==null?void 0:Wr.id}});(Gt==null?void 0:Gt.status)==0&&(yield ur(),pe.ZP.success("\u64CD\u4F5C\u6210\u529F"),vn(!1),xe(!1)),dn(!1)}),Kr=(Zn,Wr)=>{Xt.page=1,Xt[Wr]=Zn,Mn($e({},Xt)),Tn(Xt)},ar=["","\u5F53\u524D\u9898\u76EE\u7684\u5B9E\u9A8C\u8D44\u6E90\u4E3A\u4E13\u6709\u4E91\uFF0C\u4E0D\u652F\u6301\u91CD\u65B0\u8BC4\u6D4B~","\u8BE5\u529F\u80FD\u4EC5\u8BFE\u5802\u7BA1\u7406\u5458\u548C\u8003\u8BD5\u7684\u521B\u5EFA\u8005\u53EF\u4EE5\u64CD\u4F5C~"];return E.createElement(E.Fragment,null,E.createElement("div",{className:Ye()(ye.recalculation,wt),style:Mt},E.createElement(be.Z,{title:ar[(Zt==null?void 0:Zt.disable_resubmit_reason)||0]},E.createElement(De.ZP,{disabled:(Zt==null?void 0:Zt.disable_resubmit)||((Me=Zt==null?void 0:Zt.exercise_question_resubmit)==null?void 0:Me.status)==="running",onClick:()=>xe(1),icon:E.createElement("i",{className:"iconfont icon-zhongxinpingce font14"}),type:"primary",ghost:!0},"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206")),(Zt==null?void 0:Zt.show_resubmit_history)&&E.createElement(E.Fragment,null,((st=Zt==null?void 0:Zt.exercise_question_resubmit)==null?void 0:st.status)==="running"?E.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",E.createElement("span",{className:"c-light-primary ml3"},(Ht=Zt==null?void 0:Zt.exercise_question_resubmit)==null?void 0:Ht.rate)):E.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",E.createElement("span",{onClick:()=>{xe(2),ue(1)},className:"current",style:{color:"#3061D0",textDecoration:"underline",margin:"0 3px"}},(Tt=Zt==null?void 0:Zt.exercise_question_resubmit)==null?void 0:Tt.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",E.createElement("span",{onClick:()=>{xe(2),ue(2)},className:"current",style:{color:"#E30000",textDecoration:"underline",margin:"0 3px"}},(ct=Zt==null?void 0:Zt.exercise_question_resubmit)==null?void 0:ct.fail_count),"\u4EBA"),E.createElement(be.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},E.createElement("i",{onClick:()=>yn(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),E.createElement(Pe.default,{centered:!0,open:!!ln,title:`\u91CD\u65B0\u8BC4\u6D4B${ln===1?"\u7B97\u5206":"\u7ED3\u679C"}`,width:870,okText:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",onCancel:()=>xe(!1),onOk:Xn,afterClose:()=>{Ge(!0),ue(null),Mn($e({},Nt))}},E.createElement("div",{className:ye.filter},ln===1&&E.createElement(E.Fragment,null,E.createElement("div",{className:ye.tips},E.createElement("div",{className:"mb5",style:{color:"#FF9D18"}},E.createElement("i",{className:"iconfont icon-tishi9 mr10 font14"}),"\u6E29\u99A8\u63D0\u793A"),E.createElement("div",null,"1.\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206\u6D41\u7A0B\uFF1A \u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6\u5B66\u751F\u5728\u8003\u8BD5\u9875\u9762\u4FDD\u5B58\u7684\u6700\u65B0\u4EE3\u7801\uFF0C\u5E76\u8FDB\u884C\u91CD\u65B0\u8BC4\u6D4B\uFF0C\u4ECE\u800C\u7CBE\u51C6\u8BA1\u7B97\u51FA\u5B66\u751F\u7684\u6700\u7EC8\u5F97\u5206\uFF1B"),E.createElement("div",{style:{margin:"2px 0"}},"2.\u91CD\u65B0\u8BC4\u6D4B\u6761\u4EF6\uFF1A \u8003\u8BD5\u7ED3\u675F\u540E\uFF0C\u4EC5\u5BF9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u4E14\u5DF2\u4F5C\u7B54\u8BE5\u9898\u76EE\u7684\u5B66\u751F\u8FDB\u884C\u91CD\u65B0\u8BC4\u6D4B\u4E0E\u7B97\u5206\uFF1B"),E.createElement("div",null,"3.\u91CD\u65B0\u8BC4\u6D4B\u65F6\uFF0C\u8BF7\u786E\u4FDD\u5B9E\u9A8C\u73AF\u5883\u80FD\u6B63\u5E38\u542F\u52A8\u5E76\u53EF\u8FD0\u884C\u8BC4\u6D4B\u3002")),E.createElement(Ve,{className:"mt10",title:"\u9898\u76EE\u72B6\u6001",items:(oe==null?void 0:oe.question_status)||[],value:Xt.question_status,onChange:Zn=>Kr(Zn,"question_status")}),E.createElement(Ve,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(oe==null?void 0:oe.review_status)||[],value:Xt.review,onChange:Zn=>Kr(Zn,"review")})),ln===2&&E.createElement(E.Fragment,null,E.createElement(Ve,{className:"mt10",title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",items:(oe==null?void 0:oe.success_status)||[],value:Xt.success_status,onChange:Zn=>Kr(Zn,"success_status")})),E.createElement(Dt.t7,{className:ye.input,style:{bottom:ln===1?10:-5},value:Xt.keyword,onChange:Zn=>Kr(Zn,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),E.createElement(et.default,{className:"mt20",columns:zn,scroll:((Ct=oe==null?void 0:oe.data)==null?void 0:Ct.length)>7?{y:300}:{},dataSource:(oe==null?void 0:oe.data)||[],loading:$t,onChange:jn,pagination:{total:he,pageSize:Xt.per_page,current:Xt.page,hideOnSinglePage:!he,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:ze.rU}}),E.createElement(Se.Z,{justify:"space-between",align:"middle",className:"mt10"},E.createElement(Ce.default,{className:"c-black",checked:At,onChange:Zn=>Ge(Zn.target.checked)},"\u91CD\u65B0\u8BC4\u6D4B\u540E\u7684\u5206\u6570\u5927\u4E8E\u539F\u6765\u7684\u5206\u6570\u624D\u66F4\u65B0\u6210\u7EE9"),(0,lt.Ny)()&&E.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570",E.createElement(Fe.Z,{className:"ml10 mr10",value:je,max:Et,min:1,precision:0,onChange:Zn=>Pt(Zn)}),"\u4EBA",E.createElement(be.Z,{overlayStyle:{maxWidth:450},title:"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u7684\u6700\u5927\u5E76\u53D1\u4EBA\u6570\u4E3A20\u4EBA\uFF08\u81EA\u5B9A\u4E49\u955C\u50CF\u7684\u6700\u5927\u5E76\u53D1\u4EBA\u6570\u4E3A3\u4EBA\uFF09\u3002"},E.createElement("i",{style:{color:"#9096A3"},className:"iconfont icon-tishi5 font13 ml10"}))))),E.createElement(Pe.default,{centered:!0,title:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",open:Kt,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:on,destroyOnClose:!0,onOk:Sr,onCancel:()=>vn(!1)},E.createElement(Ie.default.Item,{className:"mb0",colon:!1,label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},E.createElement(Xe.Z,{ref:Zn=>kt.current=Zn}))),E.createElement(Pe.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:Ut,width:710,onCancel:()=>yn(!1),footer:null},E.createElement(tt.Z,{spinning:Bt},E.createElement("div",{className:ye.operating},gt.map((Zn,Wr)=>E.createElement("div",{key:Wr,className:ye.operatingItem},E.createElement("div",{style:{flex:"0 0 180px"},className:"c-grey-666"},Zn==null?void 0:Zn.created_at),E.createElement("div",{className:"c-black"},Zn==null?void 0:Zn.user_name,"\u64CD\u4F5C\u4E86\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206"),(Zn==null?void 0:Zn.status)==="running"?E.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",E.createElement("span",{className:"c-light-primary ml3"},Zn==null?void 0:Zn.rate)):E.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",E.createElement("span",{style:{color:"#3061D0",margin:"0 3px"}},Zn==null?void 0:Zn.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",E.createElement("span",{style:{color:"#E30000",margin:"0 3px"}},Zn==null?void 0:Zn.fail_count),"\u4EBA")))),E.createElement("div",{style:{height:20}}))))}},47572:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(59301),ye={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},Ee=ne(43418),Ye="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Se=(De,Pe,et)=>new Promise((Fe,Ie)=>{var tt=lt=>{try{We(et.next(lt))}catch(Xe){Ie(Xe)}},ze=lt=>{try{We(et.throw(lt))}catch(Xe){Ie(Xe)}},We=lt=>lt.done?Fe(lt.value):Promise.resolve(lt.value).then(tt,ze);We((et=et.apply(De,Pe)).next())}),be=({type:De,resdata:Pe,onok:et,oktext:Fe,okloading:Ie})=>{const[tt,ze]=(0,E.useState)(!1),{can_copy_list:We,can_copy_num:lt,challenge_type:Xe,course_data_list:Dt,no_copy_list:dt,no_copy_num:Qe,no_use_list:Ze,no_use_num:Ae,repeat_shixun_num:Je,student_count:Re,total_num:vt,use_num:$e}=Pe;let mt=lt>0||De==="exercise";(0,E.useEffect)(()=>{(Pe==null?void 0:Pe.student_count)>0&&ze(!0)},[Pe]),console.log("---11",Ie),(0,E.useEffect)(()=>{Ie||ze(!1)},[Ie]);const Be=()=>{if(De==="exercise"&&Xe===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ye.orangeColor},Re),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ye.orangeColor},$e),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ye.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(De==="exercise"&&Xe===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ye.orangeColor},Re),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ye.orangeColor},$e),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ye.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(De==="shixun"&&Xe===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ye.orangeColor},Re),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ye.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(De==="shixun"&&Xe===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ye.orangeColor},Re),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ye.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(De==="subject"&&Xe===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ye.orangeColor},Re),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ye.orangeColor},$e),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ye.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(De==="subject"&&Xe===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",E.createElement("span",{className:ye.orangeColor},Re)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",E.createElement("span",{className:ye.orangeColor},$e)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ye.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(De==="exercisepush")return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ye.orangeColor},Re),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",E.createElement("span",{className:ye.orangeColor},$e),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",E.createElement("span",{className:ye.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(De==="shixunpush"&&Xe===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ye.orangeColor},Re),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ye.orangeColor},$e),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ye.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(De==="shixunpush"&&Xe===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ye.orangeColor},Re),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",E.createElement("span",{className:ye.orangeColor},$e),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ye.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},xt=()=>{if(De==="exercise"||De==="subject"||De==="exercisepush"||De==="shixunpush")return E.createElement("div",{style:{marginTop:20}},Qe>0&&E.createElement("div",null,E.createElement("span",{className:ye.flex},E.createElement("img",{src:Ce,style:{width:14}}),E.createElement("span",{className:ye.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),E.createElement("div",{className:ye.statusbody},De==="exercise"&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ye.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(De==="subject"||De==="exercisepush")&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",mt&&E.createElement("span",{className:ye.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),De==="shixunpush"&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",mt&&E.createElement("span",{className:ye.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),E.createElement("div",null,dt==null?void 0:dt.map((Ve,Ot)=>E.createElement("a",{href:`/shixuns/${Ve.identifier}/challenges`,target:"_blank"},"\u300A",Ve==null?void 0:Ve.name,"\u300B",Ot+1!==Qe&&"\u3001"))))),lt>0&&E.createElement("div",{style:{marginTop:20}},E.createElement("span",{className:ye.flex},E.createElement("img",{src:Ye,style:{width:14}}),E.createElement("span",{className:ye.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),E.createElement("div",{className:ye.statusbody},De==="exercise"&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(De==="subject"||De==="exercisepush")&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),De==="shixunpush"&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),E.createElement("div",null,We==null?void 0:We.map((Ve,Ot)=>E.createElement("a",{href:`/shixuns/${Ve.identifier}/challenges`,target:"_blank"},"\u300A",Ve==null?void 0:Ve.name,"\u300B",Ot+1!==lt&&"\u3001"))))));if(De==="shixun")return E.createElement("div",{style:{marginTop:20}},lt>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return E.createElement(Ee.default,{open:tt,onCancel:()=>{ze(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!mt&&"none"}},zIndex:1003,confirmLoading:Ie,okText:mt?Fe:"\u6211\u77E5\u9053\u4E86",onOk:()=>Se(void 0,null,function*(){mt?yield et([...We,...Ze]):ze(!1)})},E.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Be(),xt()))}},99957:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Se}});var E=ne(59301),ye={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},Ee=ne(92310),Ye=ne.n(Ee),Se=({className:pe,style:be,state:De,onClick:Pe})=>{var et,Fe;return E.createElement("div",{onClick:Pe,className:Ye()(De?(et=ye)==null?void 0:et.redBtn:(Fe=ye)==null?void 0:Fe.btn,pe),style:be},De?E.createElement(E.Fragment,null,E.createElement("i",{className:"iconfont icon-biaoji1"}),E.createElement("span",null,"\u53D6\u6D88\u6807\u8BB0\u9519\u9898")):E.createElement(E.Fragment,null,E.createElement("i",{className:"iconfont icon-biaojigaiti"}),E.createElement("span",null,"\u6807\u8BB0\u9519\u9898")))}},67824:function(An,tn,ne){"use strict";ne.d(tn,{h:function(){return Qe}});var E=ne(59301),ye=ne(57809),Ee=ne(78241),Ye=ne(3113),Ce=ne(89780),Se=ne.n(Ce),pe=ne(22054),be=ne(68305),De=Object.defineProperty,Pe=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,ze=(Ze,Ae,Je)=>Ae in Ze?De(Ze,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Ze[Ae]=Je,We=(Ze,Ae)=>{for(var Je in Ae||(Ae={}))Ie.call(Ae,Je)&&ze(Ze,Je,Ae[Je]);if(Fe)for(var Je of Fe(Ae))tt.call(Ae,Je)&&ze(Ze,Je,Ae[Je]);return Ze},lt=(Ze,Ae)=>Pe(Ze,et(Ae));const Xe=ye.default.Option,Dt={labelCol:{span:4},wrapperCol:{span:20}},dt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};tn.Z=({callback:Ze,onCancel:Ae})=>{const[Je,Re]=(0,E.useState)("python");function vt(mt){Re(dt[mt][1])}function $e(mt){Ze(mt)}return E.createElement(Ee.default,lt(We({},Dt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:$e,style:{width:500}}),E.createElement(Ee.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(ye.default,{getPopupContainer:mt=>mt.parentNode,onChange:vt},Object.keys(dt).map(mt=>E.createElement(Xe,{key:mt,value:mt},dt[mt][0])))),E.createElement(Ee.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},E.createElement(Qe,{mode:Je})),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Ye.ZP,{type:"ghost",onClick:Ae},"\u53D6\u6D88")))};function Qe({value:Ze,onChange:Ae,mode:Je,options:Re={}}){const vt=(0,E.useRef)(),[$e,mt]=(0,E.useState)();return(0,E.useEffect)(()=>{if($e){let Be=function(xt){const Ve=xt.getValue();Ae&&Ae(Ve)};return $e.on("change",Be),()=>{$e.off("change",Be)}}},[$e,Ae]),(0,E.useEffect)(()=>{$e&&$e.setOption("mode",Je)},[$e,Je]),(0,E.useEffect)(()=>{$e&&(Ze!==$e.getValue()||Ze==="")&&setTimeout(()=>{$e.setValue(Ze||"")},300)},[$e,Ze]),(0,E.useEffect)(()=>{if(vt.current&&!$e){const Be=Se().fromTextArea(vt.current,We({mode:Je,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Re));mt(Be)}},[vt.current,$e]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:vt}))}},74972:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return er}});var E=ne(59301),ye=ne(89780),Ee=ne.n(ye),Ye=ne(76374),Ce=ne(22054),Se=ne(6313),pe=ne(25717),be=ne(99498),De=ne(25419),Pe=ne(67549),et=ne(58997),Fe=({value:Kn="",className:En,showTextOnly:nr,showLines:lr,style:xr={}})=>{const jt=(0,E.useMemo)(()=>"",[Kn]);return E.createElement(E.Fragment,null,E.createElement("div",{dangerouslySetInnerHTML:{__html:jt}}))},Ie=ne(59301),tt=Object.defineProperty,ze=Object.defineProperties,We=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,dt=(Kn,En,nr)=>En in Kn?tt(Kn,En,{enumerable:!0,configurable:!0,writable:!0,value:nr}):Kn[En]=nr,Qe=(Kn,En)=>{for(var nr in En||(En={}))Xe.call(En,nr)&&dt(Kn,nr,En[nr]);if(lt)for(var nr of lt(En))Dt.call(En,nr)&&dt(Kn,nr,En[nr]);return Kn},Ze=(Kn,En)=>ze(Kn,We(En));let Ae=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Je({onActionCallback:Kn,title:En,icon:nr,actionName:lr,className:xr="",children:jt}){function Ue(){Kn(lr)}return Ie.createElement("a",{title:En,className:xr,onClick:Ue},Ie.createElement("i",{className:`${nr}`}),jt)}var Re=({watch:Kn,showNullButton:En,showNullProgramButton:nr,onActionCallback:lr,fullScreen:xr,insertTemp:jt,hidetoolBar:Ue,extraUse:yt})=>{const ut=[...Ae,{title:`${Kn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Kn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ie.createElement("ul",{className:"markdown-toolbar-container"},!Ue&&ut.map((rt,_t)=>Ie.createElement("li",{key:_t},rt.actionName?Ie.createElement(Je,Ze(Qe({},rt),{onActionCallback:lr})):Ie.createElement("span",{className:"v-line"}))),En?Ie.createElement("li",null,Ie.createElement(Je,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:lr},Ie.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,nr?Ie.createElement(Ie.Fragment,null,Ie.createElement("li",null,Ie.createElement(Je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:lr},Ie.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ie.createElement("li",null,Ie.createElement(Je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:lr},Ie.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,jt&&Ie.createElement("li",null,Ie.createElement(Je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${jt}`,onActionCallback:lr},Ie.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),yt&&Ie.createElement("li",null,yt),Ie.createElement("li",{className:"btn-full-screen"},Ie.createElement(Je,{icon:`${xr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:xr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:lr})))},vt=ne(62488),$e=ne(78241),mt=ne(92832),Be=ne(3113),xt=Object.defineProperty,Ve=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,at=(Kn,En,nr)=>En in Kn?xt(Kn,En,{enumerable:!0,configurable:!0,writable:!0,value:nr}):Kn[En]=nr,Le=(Kn,En)=>{for(var nr in En||(En={}))wt.call(En,nr)&&at(Kn,nr,En[nr]);if(nt)for(var nr of nt(En))Mt.call(En,nr)&&at(Kn,nr,En[nr]);return Kn},Me=(Kn,En)=>Ve(Kn,Ot(En));const st={labelCol:{span:4},wrapperCol:{span:20}};var Ht=({callback:Kn,onCancel:En})=>{function nr(lr){Kn(lr)}return E.createElement($e.default,Me(Le({},st),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:nr,style:{width:500}}),E.createElement($e.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},E.createElement(mt.default,null)),E.createElement($e.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},E.createElement(mt.default,null)),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Be.ZP,{type:"ghost",onClick:En},"\u53D6\u6D88")))},Tt=ne(67824),ct=ne(22477),Ct=ne(43418),Zt=ne(95237),gn=ne(18997),$t=ne(59301),Wt=({callback:Kn,onCancel:En})=>{const nr=document.createElement("canvas"),lr=nr.getContext("2d");nr.width=1e3,nr.height=800,lr.fillStyle="#ffffff",lr.fillRect(0,0,nr.width,nr.height);const xr=nr.toDataURL("image/png");return $t.createElement(Ct.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},$t.createElement(Zt.Z,{style:{height:"100vh"}},$t.createElement(gn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:xr,visible:!0,title:String(Date.now())},onOk:jt=>{Kn({src:jt.url})},onClose:En})))},on=ne(43428),dn=ne(43604),ln=ne(8591),xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},fe=ne(59301),he=(0,E.forwardRef)(({onCancel:Kn,editImgId:En,callback:nr},lr)=>{let xr=(0,E.useRef)(),jt=(0,E.useRef)(),Ue=(0,E.useRef)(),yt=(0,E.useRef)(!1);const ut=(0,E.useRef)(!1);console.log("ref:",lr);const[rt,_t]=(0,E.useState)(0),[Qt,pn]=(0,E.useState)("100vh");return(0,E.useEffect)(()=>{_t(1);try{indexedDB.databases().then(sn=>{sn.forEach(Bn=>indexedDB.deleteDatabase(Bn.name))})}catch(sn){}},[]),(0,E.useImperativeHandle)(lr,()=>({setHeight:pn})),fe.createElement("div",{ref:ut,className:"body-overflow-initial"},fe.createElement(on.Z,{width:"100vw",height:Qt,footer:null,closable:!0,placement:"bottom",open:!!rt,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${xe.drawerWrap}`,onClose:()=>{window.saveDrawData(sn=>{nr({src:`/api/attachments/${sn}`,id:sn})})},title:fe.createElement(Zt.Z,{align:"middle"},fe.createElement(dn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),fe.createElement(dn.Z,{onClick:()=>{pn(Qt==="60px"?"100vh":"60px")}},fe.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),fe.createElement(dn.Z,{onClick:()=>{window.saveDrawData(sn=>{if(sn===null){ln.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}ln.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),nr({src:`/api/attachments/${sn}`,id:sn,disabledClose:!0})})}},fe.createElement(Be.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},fe.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${En||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:jt})))}),me=ne(42684),oe=ne(5112),Ne=ne(5871);const At=oe.ZP.Group,Ge={margin:"0 8px"};var je=({callback:Kn,onCancel:En})=>{function nr(lr){Kn(lr)}return E.createElement($e.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:nr},E.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},E.createElement("span",{style:Ge},"\u5355\u5143\u683C\u6570\uFF1A"),E.createElement("span",{style:Ge},"\u884C\u6570"),E.createElement($e.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},E.createElement(Ne.Z,null)),E.createElement("span",{style:Ge},"\u5217\u6570"),E.createElement($e.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},E.createElement(Ne.Z,null))),E.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},E.createElement("span",{style:Ge},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),E.createElement($e.default.Item,{name:"align"},E.createElement(At,null,E.createElement(oe.ZP,{value:"default"},E.createElement("i",{className:"fa fa-align-justify"})),E.createElement(oe.ZP,{value:"left"},E.createElement("i",{className:"fa fa-align-left"})),E.createElement(oe.ZP,{value:"center"},E.createElement("i",{className:"fa fa-align-center"})),E.createElement(oe.ZP,{value:"right"},E.createElement("i",{className:"fa fa-align-right"}))))),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Be.ZP,{type:"ghost",onClick:En},"\u53D6\u6D88")))},Pt=ne(78673),Et=ne(75354),ht=ne.n(Et),vn=(0,E.forwardRef)(({use3d:Kn,width:En,height:nr,callback:lr,showSaveButton:xr},jt)=>{const Ue=(0,E.useRef)(),yt=(0,E.useRef)(),[ut,rt]=(0,E.useState)(!1),_t=(0,E.useRef)({id:Ue,appName:"graphing",width:En||1e3,height:nr||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,E.useEffect)(()=>{yt.current=new(ht())(_t.current,!0),window.onload=function(){yt.current.inject("applet_container")}},[]);const Qt=()=>{var pn=window.ggbApplet.getPNGBase64(1,!0,72);return lr&&lr(pn),pn};return(0,E.useEffect)(()=>{_t.current.appName=ut?"3D":"graphing",yt.current.inject("applet_container")},[ut]),(0,E.useEffect)(()=>{rt(Kn)},[Kn]),(0,E.useImperativeHandle)(jt,()=>({getImgData:Qt})),E.createElement(E.Fragment,null,E.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ue}),E.createElement(Zt.Z,{align:"middle"},E.createElement(dn.Z,{flex:1},E.createElement(Pt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ut,onChange:pn=>rt(pn)})),E.createElement(dn.Z,null,E.createElement(Be.ZP,{size:"large",onClick:Qt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),kt=ne(80802),Ut=ne(1012);const yn="link",Bt="upload-image",Ke="add-flowchart",gt="draw-image",Vt="add-flowchart",Nt="code-block",Xt="add-table",Mn="------------",Tn={default:Mn,left:`:${Mn}`,center:`:${Mn}:`,right:`${Mn}:`};var Rn=ne(8204),ur=(Kn,En,nr)=>new Promise((lr,xr)=>{var jt=ut=>{try{yt(nr.next(ut))}catch(rt){xr(rt)}},Ue=ut=>{try{yt(nr.throw(ut))}catch(rt){xr(rt)}},yt=ut=>ut.done?lr(ut.value):Promise.resolve(ut.value).then(jt,Ue);yt((nr=nr.apply(Kn,En)).next())});function vr(){}let dr=0;const mn=1e4,zn="\u2581",jn="@\u2581\u2581@",Xn="@\u2581@",Sr=`
|
|
|
**\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 ar(Kn){return/^\d+$/.test(Kn)?`${Kn}px`:Kn}const Wr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Gt={[Wr+"-B"]:"bold",[Wr+"-I"]:"italic"},or={[yn]:"\u6DFB\u52A0\u94FE\u63A5",[Nt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Bt]:"\u6DFB\u52A0\u56FE\u7247",[gt]:"\u6DFB\u52A0\u753B\u56FE",[Ke]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Xt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var er=({defaultValue:Kn="",onChange:En,width:nr="100%",height:lr=400,miniToolbar:xr=!1,isFocus:jt=!1,watch:Ue,insertTemp:yt,mode:ut="markdown",id:rt="markdown-editor-id",showResizeBar:_t=!1,noStorage:Qt=!1,showNullButton:pn=!1,showNullProgramButton:sn=!1,hidetoolBar:Bn=!1,fullScreen:Yn=!1,onBlur:cr,onCMBeforeChange:$n,onFullScreen:en,className:rn="",disablePaste:Or=!1,disabled:kr=!1,disabledFill:Cr=!1,placeholder:Dr="",values:qr="",extraUse:br,onAddBlank:fi})=>{const[Jt,On]=(0,E.useState)(null),[Hn,qn]=(0,E.useState)(Kn),[kn,Vn]=(0,E.useState)(Ue),[Pn,fr]=(0,E.useState)(Yn),[Pr,Gr]=(0,E.useState)(""),[pi,gi]=(0,E.useState)(0),[Ri,Si]=(0,E.useState)(lr),[wi,Zi]=(0,E.useState)(!1),ji=(0,E.useRef)((0,Ut.Z)()),Gi=(0,E.useRef)(!1),Bi=(0,E.useRef)(),[Di,zr]=(0,E.useState)(0),[li,Ii]=(0,E.useState)(0),ya=(0,E.useRef)(),vi=(0,E.useRef)(),jr=(0,E.useRef)(),Ir=(0,E.useRef)(),Vi=(0,E.useRef)(),xi=(0,E.useRef)(),na=()=>ur(void 0,null,function*(){var Qr;const Ei=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ji.current}});(Qr=Ei==null?void 0:Ei.attachments)!=null&&Qr.length&&(console.log("cm:",Jt,ya),Ei.attachments.map(ri=>{ri.content_type.indexOf("image")>-1?Jt.replaceSelection(``):ri.content_type.indexOf("video")>-1?Jt.replaceSelection(`<video width="100%" controls src="${me.Z.API_SERVER}/api/attachments/${data.id}"></video>`):ri.content_type.indexOf("pdf")>-1?Jt.replaceSelection(`<a href="${me.Z.API_SERVER}/api/attachments/${ri.id}?type=${ri.content_type}&disposition=inline" target="_blank">${ri.name}</a>`):Jt.replaceSelection(`[${ri.name}](${me.Z.API_SERVER}/api/attachments/${ri.id}?type=${ri.content_type})`)}))});(0,E.useEffect)(()=>{const Qr=window.scrollY||window.pageYOffset;qn(qr),Jt==null||Jt.setValue(qr),window.scrollTo(0,Qr)},[qr]),(0,E.useEffect)(()=>{en==null||en(Pn)},[Pn]),(0,E.useEffect)(()=>{if(ya.current){let Qr=function(ri,hi){var Ta;if(Or){hi.preventDefault();return}const vo=hi.clipboardData;if(vo){const go=vo.types.toString(),So=vo.items;if(go==="Files"||vo.types.indexOf("Files")>-1){if(hi.preventDefault(),ut=="stex")return;try{let yo=So[1];((Ta=So[0])==null?void 0:Ta.kind)==="file"&&(yo=So[0]);const Lo=yo.getAsFile(),nl=Lo.name.split(".").pop();(0,ct.I)(Lo,ea=>{var gl,ol,pl;ea.id?((gl=Lo==null?void 0:Lo.type)==null?void 0:gl.indexOf("image"))>-1?Ei.replaceSelection(`<img width="100%" src="/api/attachments/${ea.id}?type=${ea.content_type})" alt="" />`):((ol=Lo==null?void 0:Lo.type)==null?void 0:ol.indexOf("video"))>-1?Ei.replaceSelection(`<video width="100%" controls src="/api/attachments/${ea.id}"></video>`):((pl=Lo==null?void 0:Lo.type)==null?void 0:pl.indexOf("pdf"))>-1?Ei.replaceSelection(`<a href="/api/attachments/${ea.id}?type=${Lo.type}&disposition=inline" target="_blank">${Lo.name}</a>`):Kr.includes(nl)?Ei.replaceSelection(`<a href="/api/attachments/${ea.id}?type=office&disposition=inline" target="_blank">${Lo.name}</a>`):Ei.replaceSelection(`[${Lo.name}](/api/attachments/${ea.id}?type=${ea.content_type})`):(ea==null?void 0:ea.status)===401&&(ln.ZP.warning((ea==null?void 0:ea.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(yo){ln.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ei=Ee().fromTextArea(ya.current,{mode:ut,lineNumbers:!xr,lineWrapping:!0,value:Kn,autoCloseTags:!sn,autoCloseBrackets:!0});return Ei.on("keyup",function(ri,hi){hi.keyCode===8&&(ri.getValue()==""?Ei.setOption("placeholder",Dr):Ei.setOption("placeholder",null))}),Ei.on("keydown",function(ri,hi){if(hi.keyCode===8){var Ta=oa(ri);Ta&&hi.preventDefault()}}),jt&&Ei.focus(),Ei.on("paste",Qr),Ei.on("dragleave",function(ri,hi){vi.current.classList.remove("mouse-hover-md")}),kr&&Ei.on("beforeChange",function(ri,hi){(hi.origin==="paste"||hi.origin==="+input")&&hi.cancel()}),On(Ei),()=>{Ei.off("paste",Qr)}}},[]);const ba=(0,E.useCallback)(()=>{if(vi.current)try{}catch(Qr){console.log(Qr,"---- to set md editor body height")}},[Ri,vi,Pn]);(0,E.useEffect)(()=>{function Qr(){let Ei=new Ye.Z(ri=>{for(let hi of ri)(hi.target.offsetHeight>0||hi.target.offsetWidth>0)&&(ba(),Jt.setSize("100%","100%"),Jt.refresh())});return Ei.observe(ya.current.parentElement),Ei}if(Jt){const Ei=Qr();return()=>{var ri,hi;(ri=ya.current)!=null&&ri.parentElement&&Ei.unobserve((hi=ya.current)==null?void 0:hi.parentElement)}}},[Jt,ba]),(0,E.useEffect)(()=>{if(Jt){let Qr=[];for(const[Ei,ri]of Object.entries(Gt)){let hi={[Ei]:()=>{xa(ri)}};Qr.push(hi),Jt.addKeyMap(hi)}return Bi.current=setInterval(()=>{Gi.current&&na()},4e3),()=>{clearInterval(Bi.current);for(let Ei of Qr)Jt.removeKeyMap(Ei)}}},[Jt]),(0,E.useEffect)(()=>{Yn!==Pn&&fr(Yn)},[Yn]),(0,Rn.Z)(()=>{if(!Qt&&pi>0){let Qr=new Date().getTime(),Ei=window.sessionStorage.getItem(rt);Qr>=pi+mn&&(!Ei||Ei!==Hn)&&(window.sessionStorage.setItem(rt,Hn),Zi(!0))}},mn),(0,E.useEffect)(()=>{Vn(Ue)},[Jt,Ue]),(0,E.useEffect)(()=>{Jt&&jt&&Jt.focus()},[Jt,jt]),(0,E.useEffect)(()=>{if(kn&&Jt){let Qr=function(ri){let hi=ri.target;if(Ir.current){let Ta=hi.scrollTop/hi.scrollHeight;Ir.current.scrollTop=Ir.current.scrollHeight*Ta}};const Ei=Jt.getScrollerElement();return Ei.addEventListener("scroll",Qr),()=>{Ei.removeEventListener("scroll",Qr)}}},[Jt,kn]),(0,E.useEffect)(()=>{if(Jt&&$n){let Qr=function(Ei,ri){$n(Ei,ri)};return Jt.on("beforeChange",Qr),()=>{Jt.off("beforeChange",Qr)}}},[Jt,$n]),(0,E.useEffect)(()=>{if(Jt&&cr){let Qr=function(){cr(Jt.getValue())};return Jt.on("blur",Qr),()=>{Jt.off("blur",Qr)}}},[Jt,cr]);function oa(Qr,Ei){var ri=Qr.getDoc(),hi=ri.getCursor(),Ta=ri.getLine(hi.line),vo=Ta.charAt(hi.ch-1),go=Ta.lastIndexOf("@\u2581@",hi.ch),So=Ta.lastIndexOf("@\u2581\u2581@",hi.ch),yo=go>So?go:So,Lo=go>So?3:4;if(jn.indexOf(vo)===-1)return null;if(console.log("change1:",Ei,Qr,Ta,hi,yo,go,So,vo),yo>=0&&hi.ch-yo<5){var nl=yo+Lo;return ri.replaceRange("",{line:hi.line,ch:yo},{line:hi.line,ch:nl}),{line:hi.line,ch:nl}}return null}(0,E.useEffect)(()=>{if(Jt){let Qr=function(Ei,ri){const hi=Ei.getValue();qn(hi),gi(new Date().getTime()),Ei.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),En&&(sn?En(hi,hl(hi)):En(hi))};return Jt.on("change",Qr),()=>{Jt.off("change",Qr)}}},[Jt,En]),(0,E.useEffect)(()=>{if(Jt)if(Kn==null)Jt.setValue(""),qn("");else{const Qr=window.scrollY||window.pageYOffset;Kn!==Jt.getValue()&&(Jt.setValue(Kn),qn(Kn),Jt.setCursor(kr?1:Jt.lineCount(),0),window.scrollTo(0,Qr))}},[Jt,Kn]);const xa=(0,E.useCallback)(Qr=>{const Ei=Jt.getCursor(),ri=Jt.getSelection();let hi=ri.split(`
|
|
|
`);switch(Qr){case"bold":return Jt.replaceSelection("**"+ri+"**"),ri===""&&Jt.setCursor(Ei.line,Ei.ch+2),Jt.focus();case"italic":return Jt.replaceSelection("*"+ri+"*"),ri===""&&Jt.setCursor(Ei.line,Ei.ch+1),Jt.focus();case"code":return Jt.replaceSelection("`"+ri+"`"),ri===""&&Jt.setCursor(Ei.line,Ei.ch+1),Jt.focus();case"inline-latex":return Gr("inline-latex"),Jt.focus();case"latex":return Jt.replaceSelection("```latex\n"+ri+"\n```"),Jt.setCursor(Ei.line+1,ri.length+1),Jt.focus();case"line-break":return Jt.replaceSelection(`<br/>
|
|
|
`),Jt.focus();case"list-ul":return ri===""?Jt.replaceSelection("- "+ri):Jt.replaceSelection(hi.map(Ta=>Ta===""?"":`- ${Ta}`).join(`
|
|
|
`)),Jt.focus();case"list-ol":return ri===""?Jt.replaceSelection("1. "+ri):Jt.replaceSelection(hi.map((Ta,vo)=>Ta===""?"":`${vo+1}. ${Ta}`).join(`
|
|
|
`)),Jt.focus();case"add-null-ch":fi==null||fi();return;case"add-signal":return ri===""&&Jt.setCursor(Ei.line,Ei.ch),Jt.replaceSelection(Xn),Jt.focus();case"add-multiple":return ri===""&&Jt.setCursor(Ei.line,Ei.ch),Jt.replaceSelection(jn),Jt.focus();case"inster-template-1":return ri===""&&Jt.setCursor(Ei.line,Ei.ch),Jt.replaceSelection(Sr),Jt.focus();case"eraser":return Jt.setValue(""),Jt.focus();case"trigger-watch":return Vn(!kn),Jt.focus();case"trigger-full-screen":return fr(!Pn),Jt.focus();case yn:Gr(yn);return;case Nt:Gr(Nt);return;case Bt:Gr(Bt);return;case gt:Gr(gt);return;case"maths-latex":Gr("maths-latex");return;case Ke:Vi.current="",sessionStorage.removeItem("file_id"),Gr(Ke);return;case Xt:Gr(Xt);return;default:throw new Error}},[Jt,kn,Pn]),Na=(0,E.useCallback)((Qr,Ei)=>{var ri,hi,Ta,vo,go,So;Gr("");const{src:yo,alt:Lo,id:nl}=Qr||{};switch(Pr){case yn:const{title:Xl,link:hr}=Qr;return Jt.replaceSelection(`[${Xl}](${hr})`),Jt.focus();case Nt:const{language:Gn,content:gr}=Qr;return Jt.replaceSelection(["```"+Gn,gr,"```"].join(`
|
|
|
`)),Jt.focus();case"maths-latex":for(var ea=atob(Qr),gl=new Uint8Array(ea.length),ol=0;ol<ea.length;ol++)gl[ol]=ea.charCodeAt(ol);var pl=new Blob([gl],{type:"image/png"});(0,ct.I)(pl,Oi=>{Oi.id?Jt.replaceSelection(``):(Oi==null?void 0:Oi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Jt.replaceSelection("`$$"+Qr+"$$`");break;case Vt:if(!nl)return;Jt.focus(),Jt.getValue().indexOf(yo)===-1?Jt.replaceSelection(`<center><img id="${nl}" width="80%" src="${yo}" class="draw-flowchart" alt="${Lo||""}" /></center>`):document.getElementById(nl).src=me.Z.API_SERVER+yo+"?t="+Date.now();try{setTimeout(()=>{cr(Jt.getValue())},100)}catch(Oi){}break;case Bt:case gt:const Vr=Ei,Xr=(Ta=(hi=(ri=Vr==null?void 0:Vr.name)==null?void 0:ri.split("."))==null?void 0:hi.pop)==null?void 0:Ta.call(hi);return((vo=Vr==null?void 0:Vr.type)==null?void 0:vo.indexOf("image"))>-1||!(Vr!=null&&Vr.type)?Vr!=null&&Vr.align||Vr!=null&&Vr.width?Jt.replaceSelection(`<p style="text-align:${Vr.align||"initial"}"><img width="${Vr.width?Vr.width+"%":"initial"}" src="${yo}" alt="${Lo||""}" /></p>`):Jt.replaceSelection(`<img width="100%" src="${yo}" alt="${Lo||""}" />`):((go=Vr==null?void 0:Vr.type)==null?void 0:go.indexOf("video"))>-1?Jt.replaceSelection(`<video width="100%" controls src="${yo}"></video>`):((So=Vr==null?void 0:Vr.type)==null?void 0:So.indexOf("pdf"))>-1?Jt.replaceSelection(`<a href="${yo}?type=${Vr.type}&disposition=inline" target="_blank">${Vr.name}</a>`):Kr.includes(Xr)?Jt.replaceSelection(`<a href="${yo}?type=office&disposition=inline" target="_blank">${Vr.name}</a>`):Jt.replaceSelection(`[${Vr.name}](${yo})`),Jt.focus();case Xt:const{row:si,col:pr,align:Jr}=Qr;let Li=`
|
|
|
`;for(let Oi=0;Oi<si;Oi++){let la=[],mi=[];for(let Pa=0;Pa<pr;Pa++)Oi===1&&mi.push(Tn[Jr]),la.push(" ");Oi===1&&(Li+=`| ${mi.join(" | ")} |
|
|
|
`),Li+=`| ${la.join(pr===1?"":" | ")} |
|
|
|
`}return Jt.replaceSelection(Li+`
|
|
|
`),Jt.focus();default:throw new Error}},[Jt,Pr]),Po=(0,E.useMemo)(()=>{switch(Pr){case yn:return E.createElement(Ht,{callback:Na,onCancel:ki});case Nt:return E.createElement(Tt.Z,{callback:Na,onCancel:ki});case Bt:return E.createElement(ct.Z,{callback:Na,onCancel:ki});case Ke:return E.createElement(he,{editImgId:Vi.current,callback:Na,onCancel:ki});case Xt:return E.createElement(je,{callback:Na,onCancel:ki});case"maths-latex":return E.createElement(vn,{showSaveButton:!0,callback:Na});case"inline-latex":return E.createElement(kt.Z,{showSaveButton:!0,callback:Na});default:return null}},[Pr]);function ki(){Gr("")}(0,E.useEffect)(()=>{if(jr.current){let Qr=function(go){Ta=!0,vo=go.pageY},Ei=function(){Ta=!1},ri=function(go){if(Ta){let So=go.pageY-vo;So<0&&(So=0),So>300&&(So=300);let yo=lr+So+"px";Si(yo)}},hi=jr.current,Ta=!1,vo=0;return hi.addEventListener("mousedown",Qr),document.addEventListener("mousemove",ri),document.addEventListener("mouseup",Ei),()=>{hi.removeEventListener("mousedown",Qr),document.removeEventListener("mousemove",ri),document.removeEventListener("mouseup",Ei)}}},[Jt,jr]),(0,E.useEffect)(()=>{Si(lr)},[lr]);const Hi=ar(nr),Aa=ar(Ri),Ma={width:Hi,height:Aa},lo=(0,E.useMemo)(()=>{if(pi){let Qr=new Date(pi),Ei=Qr.getHours(),ri=Qr.getMinutes(),hi=Qr.getSeconds();return Ei=Ei<10?"0"+Ei:Ei,ri=ri<10?"0"+ri:ri,hi=hi<10?"0"+hi:hi,`${Ei}:${ri}:${hi}`}return 0},[pi]),hl=Qr=>{const Ei=[];if(sn){let ri=-1;Qr=Qr.replace(/(@▁▁@|@▁@)/g,function(hi,Ta,vo){Ei.push({multiLine:hi!==Xn})})}return Ei};function qo(){window.sessionStorage.removeItem(rt),Zi(!1),gi(0)}function co(){Zi(!1),gi(0),Jt.setValue(window.sessionStorage.getItem(rt))}(0,E.useEffect)(()=>{or[Pr]&&Pr!==gt&&Pr!==Ke&&setTimeout(()=>{const Qr=document.getElementsByClassName("markdown-popup-form")[0],Ei=window.innerWidth/2-Qr.offsetWidth/2,ri=window.innerHeight/2-Qr.offsetHeight/2;zr(Ei),Ii(ri)},0)},[Pr]);const Ho=Qr=>{Qr.preventDefault();const Ei=Qr.clientX-Di,ri=Qr.clientY-li;document.body.onmousemove=hi=>{let Ta=hi.clientX-Ei,vo=hi.clientY-ri;const go=document.getElementsByClassName("markdown-popup-form")[0],So=window.innerWidth-go.offsetWidth,yo=window.innerHeight-go.offsetHeight;Ta=Math.max(0,Math.min(Ta,So)),vo=Math.max(0,Math.min(vo,yo)),Vo(hi.clientX,hi.clientY,Ei,ri)&&(zr(Ta),Ii(vo))},document.body.onmouseup=function(){document.body.onmousemove=null}},Vo=(Qr,Ei,ri,hi)=>{const Ta=document.body.clientHeight,vo=document.body.clientWidth;return Qr<20&&ri>Qr||Qr>vo-20&&ri<Qr||Ei<20&&hi>Ei||Ei>Ta-20&&hi<Ei?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return E.createElement(E.Fragment,null,E.createElement("div",{className:"markdown-editor-wrapper",ref:vi},E.createElement("div",{className:`markdown-editor-container ${rn} ${kn?"on-preview":""} ${xr?"mini":""} ${Pn?"full-screen":""}`,style:Ma},E.createElement(Re,{insertTemp:yt,watch:kn,fullScreen:Pn,showNullButton:pn,showNullProgramButton:sn,onActionCallback:xa,hidetoolBar:Bn,extraUse:br}),E.createElement("div",{className:"markdown-editor-body"},E.createElement("div",{className:"codemirror-container"},E.createElement("textarea",{ref:ya,placeholder:Dr})),kn?E.createElement("div",{ref:Ir,className:"preview-container"},ut==="stex"&&E.createElement(Fe,{value:Hn}),ut!=="stex"&&E.createElement(et.Z,{edit:!0,disabledFill:Cr,showProgramFill:sn,value:Hn,openEditor:Qr=>{var Ei;Vi.current=Qr,(Ei=xi.current)==null||Ei.setHeight("100vh"),setTimeout(()=>{Gr("add-flowchart")},150)}})):null))),_t?E.createElement("a",{ref:jr,className:"editor-resize"}):null,Pr===gt&&E.createElement(Wt,{callback:Na,onCancel:ki}),Pr===Ke&&E.createElement(he,{ref:xi,editImgId:Vi.current,callback:Na,onCancel:ki}),E.createElement(vt.Z,null,or[Pr]&&Pr!==gt&&Pr!==Ke?E.createElement(Ct.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Di,top:li},title:E.createElement("div",{style:{cursor:"move"},onMouseDown:Ho},or[Pr]),open:!0,onCancel:ki,footer:null,destroyOnClose:!0,width:Pr===Ke?"1200px":null,height:Pr===Ke?"80vh":null,className:"markdown-popup-form"},Po):null))}},22477:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Je},I:function(){return vt}});var E=ne(78241),ye=ne(8591),Ee=ne(92832),Ye=ne(81327),Ce=ne(5871),Se=ne(5112),pe=ne(3113),be=ne(32546),De=ne(59301),Pe=ne(36466),et=ne(59301),Fe=Object.defineProperty,Ie=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,Xe=($e,mt,Be)=>mt in $e?Fe($e,mt,{enumerable:!0,configurable:!0,writable:!0,value:Be}):$e[mt]=Be,Dt=($e,mt)=>{for(var Be in mt||(mt={}))We.call(mt,Be)&&Xe($e,Be,mt[Be]);if(ze)for(var Be of ze(mt))lt.call(mt,Be)&&Xe($e,Be,mt[Be]);return $e},dt=($e,mt)=>Ie($e,tt(mt));const{useForm:Qe}=E.default,Ze={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}};var Je=({callback:$e,onCancel:mt})=>{const[Be]=Qe();let xt=(0,De.useRef)();function Ve(wt){xt.current.width=Be.getFieldValue("width"),xt.current.align=Be.getFieldValue("align"),$e(wt,xt.current)}function Ot(wt,Mt){if(wt.status===-1){ye.ZP.error(wt.message);return}Be.setFieldsValue({src:`/api/attachments/${wt.id}`,type:Mt.type})}function nt(wt){let Mt=wt.target.files[0];xt.current=Mt,vt(Mt,Ot)}return et.createElement(E.default,dt(Dt({form:Be},Ae),{className:"upload-image-panel",onFinish:Ve,style:{width:470,overflow:"hidden"}}),et.createElement(E.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},et.createElement("div",{className:"flex-container"},et.createElement(E.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},et.createElement(Ee.default,{style:Ze})),et.createElement(Re,{onFileChange:nt}))),et.createElement(E.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},et.createElement(Ee.default,{style:{width:264}})),et.createElement(E.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},et.createElement(Ye.Z,null,et.createElement(E.default.Item,{name:"width",style:{margin:0}},et.createElement(Ce.Z,{style:{width:264}})),et.createElement("span",{className:"ml8"},"%"))),et.createElement(E.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},et.createElement(Se.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"}]})),et.createElement("aside",null,et.createElement(E.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},et.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),et.createElement(pe.ZP,{type:"default",onClick:mt},"\u53D6\u6D88"))))};function Re({onFileChange:$e}){return et.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",et.createElement("input",{type:"file",onChange:$e}))}function vt($e,mt){if(!$e)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Pe.bg)())throw ye.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",$e),Be.append("file_param_name","editormd-image-file"),Be.append("byxhr","true");var xt=new window.XMLHttpRequest;xt.withCredentials=!0,xt.addEventListener("load",function(Ve){mt(JSON.parse(Ve.target.responseText),$e)},!1),xt.addEventListener("error",function(Ve){console.error(Ve)},!1),xt.open("POST",`${be.KI}/api/attachments.json`),xt.send(Be)}},62488:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Ee}});var E=ne(59301),ye=ne(4676);class Ee extends E.Component{constructor(Ce){super(Ce);const Se=window.document;this.node=Se.createElement("div"),Se.body.appendChild(this.node)}render(){const{children:Ce}=this.props;return(0,ye.createPortal)(Ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},88276:function(An,tn,ne){"use strict";ne.d(tn,{i:function(){return Ae},Z:function(){return Re}});var E={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},ye=ne(71418),Ee=ne(6848),Ye=ne(93948),Ce=ne(92310),Se=ne.n(Ce),pe=ne(85333),be=ne(61648),De=ne(36466),Pe=ne(79005),et=ne(20345),Fe=ne(47027),Ie=ne(31081),tt=ne(75309),ze=ne(71979),We=ne(47558),lt=ne(42922),Xe=ne(66832),Dt=ne(96593),dt=ne(19664),Qe=ne(91833),Ze=ne(59301);const Ae=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Pe,swimg:et},{name:"101\u8BA1\u5212",ptimg:Fe,swimg:Ie},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:tt,swimg:ze},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:We,swimg:lt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Xe,swimg:Dt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:dt,swimg:Qe}];var Re=({className:vt,dataSource:$e=[],col:mt=4,right:Be,bottom:xt=23,precision:Ve=0,wrapWidth:Ot=1200,trackEventItems:nt,loading:wt,onRemove:Mt=()=>{},isCurrent:at=!0,showAlias:Le=!1,showProgress:Me=!1})=>{const st=Math.floor((Ot-(mt-1)*Be)/mt),Ht=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Tt=>(window.ENV==="build"&&(Tt.ptimg=`/react/build${Tt.ptimg}`,Tt.swimg=`/react/build${Tt.swimg}`),Tt));return Ze.createElement(ye.Z,{spinning:wt},Ze.createElement("div",{className:Se()(E.list,vt)},!!($e!=null&&$e.length)&&($e==null?void 0:$e.map((Tt,ct)=>{var Ct,Zt,gn,$t,Wt,on;const{name:dn,id:ln,identifier:xe,featured:fe,school_name:ue,image_url:he,excellent:me,is_plan:oe}=Tt;return Ze.createElement("div",{key:ln,className:at&&Me?E.wrapisCurrent:E.wrap,style:{width:st,marginRight:(1+ct)%mt===0?0:Be+Ve,marginBottom:xt}},Ze.createElement("a",{className:E.li,onClick:Ne=>{Ne.preventDefault(),Ne.stopPropagation(),nt&&(0,pe.L9)([nt]),(0,pe.xg)(`/paths/${xe}`)}},Ze.createElement("div",{className:E.img},Ze.createElement("img",{className:E.cover,src:`${he}`}),at&&(0,De.bg)()&&(Tt==null?void 0:Tt.studying)&&Ze.createElement("div",{className:`${E.movebq} user-path-items`,onClick:Ne=>{Ne.stopPropagation(),Mt(Tt)}},Ze.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ze.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Ct=Tt==null?void 0:Tt.subject_tags)==null?void 0:Ct.map((Ne,At)=>{var Ge,je;if(At===0){const Et=(Ge=Ht.find(ht=>ht.name==Ne))==null?void 0:Ge.swimg;return Ze.createElement("img",{className:E.sign,src:Et,style:{left:"-4px"}})}const Pt=(je=Ht.find(Et=>Et.name==Ne))==null?void 0:je.ptimg;return Ze.createElement("img",{className:E.sign,src:Pt,style:{left:`${48+52*(At-1)+2*At}px`}})}),Ze.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Tt==null?void 0:Tt.excellent)&&Ze.createElement("div",{className:E.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ze.createElement("div",{className:E.name},Ze.createElement(Ee.Z,{title:Le&&(Tt!=null&&Tt.excellent_alias_name)?Ze.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${dn}`,Ze.createElement("br",null),Ze.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Tt==null?void 0:Tt.excellent_alias_name}`)):dn},Ze.createElement("span",{className:E.e},Le&&(Tt==null?void 0:Tt.excellent_alias_name)||dn))),at&&Me&&((Zt=Tt==null?void 0:Tt.progress)==null?void 0:Zt.all_score)!=0&&Ze.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ze.createElement(Ye.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((gn=Tt==null?void 0:Tt.progress)==null?void 0:gn.my_score)/(($t=Tt==null?void 0:Tt.progress)==null?void 0:$t.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Wt=Tt==null?void 0:Tt.progress)==null?void 0:Wt.my_score,"/",(on=Tt==null?void 0:Tt.progress)==null?void 0:on.all_score),(!at||!Me)&&Ze.createElement("div",{className:E.tags},Ze.createElement("div",null,Ze.createElement(Ee.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ze.createElement("span",null,Ze.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ze.createElement("span",null,Tt.stages_count))),Ze.createElement(Ee.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ze.createElement("span",null,Ze.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ze.createElement("span",null,Tt.members_count)))))))})),!$e.length&&Ze.createElement(be.Z,null)))}},92090:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Se}});var E=ne(59301),ye={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Ee=ne(92310),Ye=ne.n(Ee),Se=({dataSource:pe=[],value:be,onChange:De,className:Pe,style:et={}})=>E.createElement("div",{style:et,className:Ye()(ye.tabs,Pe)},pe.map(Fe=>E.createElement("span",{onClick:()=>De(Fe.id),className:be===Fe.id?ye.active:"",key:Fe.id},Fe.name)))},93351:function(An,tn,ne){"use strict";ne.d(tn,{jL:function(){return Ce},w9:function(){return Wr},vv:function(){return xr},dN:function(){return Kn},QD:function(){return Bi},cQ:function(){return oe.Z},vg:function(){return Xn},Oz:function(){return ur},op:function(){return Ri},O5:function(){return Ma},_b:function(){return vi},t7:function(){return mt},tT:function(){return Ve},Gi:function(){return cr},YG:function(){return ut},Ed:function(){return Bn},kT:function(){return Qt},qp:function(){return lt},Um:function(){return Ae},K3:function(){return dt},vr:function(){return li},qE:function(){return Zi},Je:function(){return wt},wb:function(){return $t},rC:function(){return me},lB:function(){return dn},cq:function(){return Cr},kO:function(){return fi},tp:function(){return Je.Z},Si:function(){return qo},k8:function(){return Xl},Du:function(){return Ta}});var E=ne(59301),ye={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBD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erExtraContent:si})=>E.createElement("div",{className:ye.banner},E.createElement("div",{className:ye.content},E.createElement("aside",null,E.createElement("p",null,E.createElement("b",null,Vr),E.createElement("span",null,Xr)),hr.length>0&&E.createElement("div",{className:ye.btns},hr.map((pr,Jr)=>E.createElement("div",{key:Jr,onClick:pr.click},pr.name,pr.sign?E.createElement("img",{src:Ee,width:39}):null))),si),Gn&&E.createElement("img",{style:{marginTop:33,marginRight:38},src:Gn,width:gr}))),Se={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},pe=ne(92310),be=ne.n(pe),De=ne(78267),Pe=Object.defineProperty,et=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,tt=(hr,Gn,gr)=>Gn in hr?Pe(hr,Gn,{enumerable:!0,configurable:!0,writable:!0,value:gr}):hr[Gn]=gr,ze=(hr,Gn)=>{for(var gr in Gn||(Gn={}))Fe.call(Gn,gr)&&tt(hr,gr,Gn[gr]);if(et)for(var gr of et(Gn))Ie.call(Gn,gr)&&tt(hr,gr,Gn[gr]);return hr},lt=({dataSource:hr=[],value:Gn,onChange:gr,onTitleChange:Vr,className:Xr,title:si,titleWidth:pr=41,style:Jr={},fontColor:Li="#6A7283",showCount:Oi,classNameActive:la,styleItem:mi={}})=>{const[Pa,qa]=(0,E.useState)(0),[Ka,Yi]=(0,E.useState)(!1),pa=(0,E.useRef)(null),eo=(0,E.useRef)(null);return(0,E.useEffect)(()=>{var ro;hr.length!==0&&(((ro=pa==null?void 0:pa.current)==null?void 0:ro.clientHeight)>97?qa(1):qa(0)),hr.length===0&&qa(0),Yi(!1)},[hr]),E.createElement("div",{className:be()(Se.row,Xr),style:Jr},E.createElement("div",{onClick:(0,De.throttle)(()=>Vr==null?void 0:Vr(),2e3),style:{width:pr,marginTop:Ka?12:4},className:`${Se.title} ${Vr?"current":""}`},si),E.createElement("div",{className:Ka?`${Se.tagsWrap} ${Se.tagsBorderWrap}`:Se.tagsWrap},E.createElement("div",{className:Se.bar,ref:eo,style:Pa>0?{height:Pa===1?97:"auto",overflow:Pa===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},E.createElement("div",{className:Se.tag,ref:pa},hr==null?void 0:hr.map(ro=>E.createElement("span",{onClick:()=>gr(ro.id),key:ro.id,style:ze(ze({color:Li},mi),(ro==null?void 0:ro.style)||{}),className:Gn===ro.id?be()(la||Se.active,ro.classNameActive):""},E.createElement("span",{title:ro.name,className:Se.name},ro.name),!!Oi&&E.createElement("span",{className:Se.num},ro.count))))),!!Pa&&E.createElement(E.Fragment,null,Pa===1?E.createElement("div",{onClick:()=>{var ro;qa(2),((ro=pa==null?void 0:pa.current)==null?void 0:ro.clientHeight)>245?Yi(!0):Yi(!1)},className:Se.action},"\u5C55\u5F00",E.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):E.createElement("div",{onClick:()=>{eo.current.scrollTop=0,qa(1),Yi(!1)},className:Se.action},"\u6536\u8D77",E.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Xe={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},dt=({dataSource:hr=[],value:Gn,onChange:gr,onTitleChange:Vr,className:Xr,title:si,titleWidth:pr=41,style:Jr={},fontColor:Li="#6A7283",showCount:Oi,expand:la=!0})=>{const[mi,Pa]=(0,E.useState)(0),[qa,Ka]=(0,E.useState)(!1),Yi=(0,E.useRef)(null),pa=(0,E.useRef)(null),[eo,ro]=(0,E.useState)(la);return E.createElement("div",{className:be()(Xe.row,Xr),style:Jr},E.createElement("div",{className:"flex item-center justify-between"},E.createElement("div",{onClick:(0,De.throttle)(()=>Vr==null?void 0:Vr(),2e3),style:{width:pr,marginTop:qa?12:4},className:`${Xe.title} ${Vr?"current":""}`},si),E.createElement("i",{className:`iconfont ${eo?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:eo?8:10},onClick:()=>ro(!eo)})),eo&&E.createElement("div",{className:qa?`${Xe.tagsWrap} ${Xe.tagsBorderWrap}`:Xe.tagsWrap},E.createElement("div",{className:Xe.fenge}),E.createElement("div",{className:Xe.bar,ref:pa},E.createElement("div",{className:Xe.tag,ref:Yi},hr==null?void 0:hr.map(xo=>E.createElement("span",{onClick:()=>gr(xo.id),key:xo.id,style:{color:Li},className:Gn===xo.id?Xe.active:""},E.createElement("span",{title:xo.name,className:Xe.name},xo.name),!!Oi&&E.createElement("span",{className:Xe.num},xo.count)))))))},Qe={flex_box_center:"flex_box_center___kXy2O",flex_space_between:"flex_space_between___EKVqf",flex_box_vertical_center:"flex_box_vertical_center___KJzcw",flex_box_center_end:"flex_box_center_end___V4Nm9",flex_box_column:"flex_box_column___g6Cee",row:"row___pqtGl",title:"title___eewYd",tagsWrap:"tagsWrap___AWV66",action:"action___Toj3O",bar:"bar___NZVtB",tag:"tag___z872k",name:"name___m2dAl",num:"num___EhDNX",active:"active___GSjsu",tagsBorderWrap:"tagsBorderWrap___VoQL3"},Ae=({dataSource:hr=[],value:Gn,onChange:gr,onTitleChange:Vr,className:Xr,title:si,titleWidth:pr=41,style:Jr={},fontColor:Li="#fff",showCount:Oi,expand:la=!0})=>{const[mi,Pa]=(0,E.useState)(0),[qa,Ka]=(0,E.useState)(!1),Yi=(0,E.useRef)(null),pa=(0,E.useRef)(null),[eo,ro]=(0,E.useState)(la);return E.createElement("div",{className:be()(Qe.row,Xr),style:Jr},E.createElement("div",{className:"flex item-center justify-between"},E.createElement("div",{onClick:(0,De.throttle)(()=>Vr==null?void 0:Vr(),2e3),style:{width:pr},className:`${Qe.title} ${Vr?"current":""}`},si),E.createElement("i",{className:`iconfont ${eo?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:eo?"#00DDC7":"#037F74",fontSize:eo?10:12},onClick:()=>ro(!eo)})),eo&&E.createElement("div",{className:qa?`${Qe.tagsWrap} ${Qe.tagsBorderWrap}`:Qe.tagsWrap},E.createElement("div",{className:Qe.bar,ref:pa},E.createElement("div",{className:Qe.tag,ref:Yi},hr==null?void 0:hr.map(xo=>E.createElement("span",{onClick:()=>gr(xo.id),key:xo.id,style:{color:Li},className:Gn===xo.id?Qe.active:""},E.createElement("span",{title:xo.name,className:Qe.name},xo.name),!!Oi&&E.createElement("span",{className:Qe.num},xo.count)))))))},Je=ne(92090),Re={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},vt=ne(92832),mt=({dataSource:hr=[],value:Gn="",onChange:gr,onInputChange:Vr=()=>{},className:Xr,style:si={},placeholder:pr,allowClear:Jr=!1})=>{var Li;const[Oi,la]=(0,E.useState)(""),[mi,Pa]=(0,E.useState)("");(0,E.useEffect)(()=>{var Yi;let pa=Gn;(Yi=JSON.stringify(Gn))!=null&&Yi.includes("{")&&(la(Gn.id),pa=Gn.value||"");try{Pa(decodeURIComponent(pa||""))}catch(eo){Pa(decodeURIComponent(pa||""))}},[Gn]);const qa=()=>{gr(encodeURIComponent(mi),Oi||null)},Ka=Yi=>{Yi!==Oi&&(la(Yi),gr(encodeURIComponent(mi),Yi))};return E.createElement("div",{className:be()(Re.input,Xr),style:si},!!hr.length&&E.createElement("div",{className:Re.dropdown},E.createElement("div",{className:Re.text},(Li=hr.find(Yi=>Yi.id===Oi))==null?void 0:Li.name,E.createElement("i",{className:"iconfont icon-zhankai4"}),E.createElement("b",{className:Re.b1}),E.createElement("b",{className:Re.b2})),E.createElement("div",{className:Re.menu},hr.map((Yi,pa)=>E.createElement("div",{key:pa,onClick:()=>Ka(Yi.id)},Yi.name)))),E.createElement(vt.default,{onPressEnter:qa,value:mi,onChange:Yi=>{Pa(Yi.target.value),Vr(encodeURIComponent(Yi.target.value),Oi||null)},bordered:!1,placeholder:pr}),E.createElement("i",{onClick:qa,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Be={flex_box_center:"flex_box_center___pVsOk",flex_space_between:"flex_space_between___bQwBe",flex_box_vertical_center:"flex_box_vertical_center___gdKht",flex_box_center_end:"flex_box_center_end___wJuEm",flex_box_column:"flex_box_column___F50s0",input:"input___f7GZE",dropdown:"dropdown___oJkxW",menu:"menu___RplGU",text:"text___EgRKl"},Ve=({dataSource:hr=[],value:Gn="",onChange:gr,onInputChange:Vr=()=>{},className:Xr,style:si={},placeholder:pr,allowClear:Jr=!1})=>{var Li;const[Oi,la]=(0,E.useState)(""),[mi,Pa]=(0,E.useState)("");(0,E.useEffect)(()=>{var Yi;let pa=Gn;(Yi=JSON.stringify(Gn))!=null&&Yi.includes("{")&&(la(Gn.id),pa=Gn.value||"");try{Pa(decodeURIComponent(pa||""))}catch(eo){Pa(decodeURIComponent(pa||""))}},[Gn]);const qa=()=>{gr(encodeURIComponent(mi),Oi||null)},Ka=Yi=>{Yi!==Oi&&(la(Yi),gr(encodeURIComponent(mi),Yi))};return E.createElement("div",{className:be()(Be.input,Xr),style:si},!!hr.length&&E.createElement("div",{className:Be.dropdown},E.createElement("div",{className:Be.text},(Li=hr.find(Yi=>Yi.id===Oi))==null?void 0:Li.name,E.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),E.createElement("div",{className:Be.menu},hr.map((Yi,pa)=>E.createElement("div",{key:pa,onClick:()=>Ka(Yi.id)},Yi.name)))),E.createElement(vt.default,{onPressEnter:qa,value:mi,onChange:Yi=>{Pa(Yi.target.value),Vr(encodeURIComponent(Yi.target.value),Oi||null)},bordered:!1,placeholder:pr}),E.createElement("i",{onClick:qa,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Ot={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},wt=({value:hr,onChange:Gn,className:gr,total:Vr,pageSize:Xr,style:si={}})=>{const pr=hr<2,Jr=hr>=Math.ceil(Vr/Xr);return Vr<=Xr?E.createElement(E.Fragment,null):E.createElement("div",{className:be()(Ot.quickPager,gr),style:si},E.createElement("div",{onClick:()=>{pr||Gn(hr-1,"prev")},className:pr?Ot.disabled:""},"\u4E0A\u4E00\u9875"),E.createElement("div",{onClick:()=>{Jr||Gn(hr+1,"next")},className:Jr?Ot.disabled:""},"\u4E0B\u4E00\u9875"))},Mt={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},at=ne(71418),Le=ne(6848),Me=ne(13570),st=ne(42684),Ht=ne(85333),Tt=ne(96908),ct=ne(57177),Ct=ne(81378),Zt=ne(61648),$t=({className:hr,dataSource:Gn=[],col:gr=4,right:Vr,bottom:Xr=23,precision:si=0,wrapWidth:pr=1200,trackEventItems:Jr,loading:Li})=>{const Oi=Math.floor((pr-(gr-1)*Vr)/gr);return E.createElement(at.Z,{spinning:Li},E.createElement("div",{className:be()(Mt.list,hr)},!!Gn.length&&Gn.map((la,mi)=>{const{name:Pa,id:qa,identifier:Ka,power:Yi,cover_image_id:pa,pic:eo}=la;return E.createElement("div",{className:Mt.wrap,key:qa,style:{width:Oi,marginRight:(1+mi)%gr===0?0:Vr+si,marginBottom:Xr}},E.createElement("a",{target:"_blank",href:`/shixuns/${Ka}/challenges`,className:Mt.li,onClick:ro=>{ro.preventDefault(),Jr&&(0,Ht.L9)([Jr]),Yi&&(0,Ht.xg)(`/shixuns/${Ka}/challenges`)}},E.createElement("div",{className:Mt.img},E.createElement("img",{className:Mt.cover,src:`${eo}`}),la.is_jupyter&&E.createElement("img",{className:Mt.sign,src:Tt}),la.is_jupyter_lab&&E.createElement("img",{className:Mt.sign,src:ct}),la.is_unity_3d&&E.createElement("img",{className:Mt.sign,src:Ct})),E.createElement("div",{className:Mt.name},E.createElement(Le.Z,{title:Pa||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},E.createElement("span",{className:Mt.e},Pa||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),E.createElement("div",{className:Mt.tags},E.createElement(Le.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),E.createElement("span",null,la.challenges_count))),!!la.myshixuns_count&&E.createElement(Le.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),E.createElement("span",null,la.myshixuns_count))),E.createElement(Le.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},E.createElement("span",null,E.createElement("span",null,la.level))),E.createElement("div",{className:Mt.rate},E.createElement(Me.Z,{allowHalf:!0,disabled:!0,defaultValue:la.score_info}),E.createElement("span",null,"\xA0",la.score_info?`${la.score_info}\u5206`:"5\u5206")))),!Yi&&E.createElement("div",{className:Mt.lockWrap},E.createElement("img",{src:`${st.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Gn.length&&E.createElement(Zt.Z,null)))},Wt={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},dn=({className:hr,dataSource:Gn=[],col:gr=4,right:Vr,bottom:Xr=23,precision:si=0,wrapWidth:pr=1200,wrapClassName:Jr,trackEventItems:Li,loading:Oi})=>{const la=Math.floor((pr-(gr-1)*Vr)/gr);return E.createElement(at.Z,{spinning:Oi},E.createElement("div",{className:be()(Wt.list,hr)},!!Gn.length&&Gn.map((mi,Pa)=>{const{name:qa,id:Ka,identifier:Yi,power:pa,cover_image_id:eo,pic:ro}=mi;return E.createElement("div",{className:be()(Wt.wrap,Jr),key:Ka,style:{width:la,marginRight:(1+Pa)%gr===0?0:Vr+si,marginBottom:Xr}},E.createElement("a",{target:"_blank",href:`/shixuns/${Yi}/challenges`,className:Wt.li,onClick:xo=>{xo.preventDefault(),Li&&(0,Ht.L9)([Li]),pa&&(0,Ht.xg)(`/shixuns/${Yi}/challenges`)}},E.createElement("img",{src:ne(47621),className:Wt.titleBg}),E.createElement("div",{className:Wt.name},E.createElement(Le.Z,{title:qa||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},E.createElement("span",{className:Wt.e},qa||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),E.createElement("div",{style:{padding:"14px",paddingBottom:0}},E.createElement("div",{className:Wt.img},E.createElement("img",{className:Wt.cover,src:eo?`${st.Z.API_SERVER}/api/attachments/${eo}`:`${st.Z.IMG_SERVER+ro}`}),mi.is_jupyter&&E.createElement("div",{className:Wt.bq},"Jupyter"),mi.is_jupyter_lab&&E.createElement("div",{className:Wt.bq},"JupyterLab"),mi.is_unity_3d&&E.createElement("div",{className:Wt.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),E.createElement("div",{className:"mt20 flex item-center justify-between"},E.createElement("div",null,E.createElement("span",{className:Wt.text},"\u5B66\u4E60\u4EBA\u6570"),E.createElement("span",{className:Wt.value},mi.myshixuns_count)),E.createElement("div",null,E.createElement("span",{className:Wt.text},"\u56F0\u96BE\u7B49\u7EA7"),E.createElement("span",{className:Wt.value},mi.level))),E.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},E.createElement("div",null,E.createElement("span",{className:Wt.text},"\u5173\u5361\u6570"),E.createElement("span",{className:Wt.value},mi.challenges_count)),E.createElement("div",{className:Wt.rate},E.createElement(Me.Z,{allowHalf:!0,disabled:!0,defaultValue:mi.score_info}),E.createElement("span",{className:Wt.value,style:{color:"#FF9C00"}},"\xA0",mi.score_info?`${mi.score_info}\u5206`:"5\u5206"))))),!pa&&E.createElement("div",{className:Wt.lockWrap},E.createElement("img",{src:`${st.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Gn.length&&E.createElement(Zt.Z,null)))},ln={flex_box_center:"flex_box_center___MoMqv",flex_space_between:"flex_space_between___G_1Pa",flex_box_vertical_center:"flex_box_vertical_center___vHNpc",flex_box_center_end:"flex_box_center_end___dt_Dx",flex_box_column:"flex_box_column___gK3h_",list:"list___GYKT6",wrap:"wrap___uLNQf",lockWrap:"lockWrap___lZQo7",li:"li___X7Rkc",img:"img___bih4x",cover:"cover___UiMEf",sign:"sign___WPSew",name:"name___ZLjiX",e:"e___tB29O",tags:"tags___a3FKn",rate:"rate___dh30H"},xe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/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2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",me=({className:hr,dataSource:Gn=[],col:gr=4,right:Vr,bottom:Xr=23,precision:si=0,wrapWidth:pr=1200,trackEventItems:Jr,loading:Li,wrapClassName:Oi,imgClassName:la})=>{const mi=Math.floor((pr-(gr-1)*Vr)/gr);return E.createElement(at.Z,{spinning:Li},E.createElement("div",{className:be()(ln.list,hr)},!!Gn.length&&Gn.map((Pa,qa)=>{const{name:Ka,id:Yi,identifier:pa,power:eo,cover_image_id:ro,pic:xo}=Pa;return E.createElement("div",{className:be()(ln.wrap,Oi),key:Yi,style:{width:mi,marginRight:(1+qa)%gr===0?0:Vr+si,marginBottom:Xr}},E.createElement("a",{target:"_blank",href:`/shixuns/${pa}/challenges`,className:ln.li,onClick:Wl=>{Wl.preventDefault(),Jr&&(0,Ht.L9)([Jr]),eo&&(0,Ht.xg)(`/shixuns/${pa}/challenges`)}},E.createElement("div",{className:be()(ln.img,la)},E.createElement("img",{className:ln.cover,src:ro?`${st.Z.API_SERVER}/api/attachments/${ro}`:`${st.Z.IMG_SERVER+xo}`}),Pa.is_jupyter&&E.createElement("img",{className:ln.sign,src:xe}),Pa.is_jupyter_lab&&E.createElement("img",{className:ln.sign,src:fe}),Pa.is_unity_3d&&E.createElement("img",{className:ln.sign,src:ue})),E.createElement("div",{className:ln.name},E.createElement(Le.Z,{title:Ka||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},E.createElement("span",{className:ln.e},Ka||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),E.createElement("div",{className:ln.tags},E.createElement(Le.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),E.createElement("span",null,Pa.challenges_count))),!!Pa.myshixuns_count&&E.createElement(Le.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),E.createElement("span",null,Pa.myshixuns_count))),E.createElement(Le.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},E.createElement("span",null,E.createElement("span",null,Pa.level))),E.createElement("div",{className:ln.rate},E.createElement(Me.Z,{allowHalf:!0,disabled:!0,defaultValue:Pa.score_info}),E.createElement("span",null,"\xA0",Pa.score_info?`${Pa.score_info}\u5206`:"5\u5206")))),!eo&&E.createElement("div",{className:ln.lockWrap},E.createElement("img",{src:`${st.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Gn.length&&E.createElement(Zt.Z,null)))},oe=ne(88276),Ne={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},At=ne(79005),Ge=ne(20345),je=ne(47027),Pt=ne(31081),Et=ne(75309),ht=ne(71979),Kt=ne(47558),vn=ne(42922),kt=ne(66832),Ut=ne(96593),yn=ne(19664),Bt=ne(91833),Ke=Object.defineProperty,gt=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Xt=(hr,Gn,gr)=>Gn in hr?Ke(hr,Gn,{enumerable:!0,configurable:!0,writable:!0,value:gr}):hr[Gn]=gr,Mn=(hr,Gn)=>{for(var gr in Gn||(Gn={}))Vt.call(Gn,gr)&&Xt(hr,gr,Gn[gr]);if(gt)for(var gr of gt(Gn))Nt.call(Gn,gr)&&Xt(hr,gr,Gn[gr]);return hr};const Tn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:At,swimg:Ge},{name:"101\u8BA1\u5212",ptimg:je,swimg:Pt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Et,swimg:ht},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Kt,swimg:vn},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:kt,swimg:Ut},{name:"\u519B\u961F\u4E00\u6D41",ptimg:yn,swimg:Bt}];var ur=({className:hr,dataSource:Gn=[],col:gr=4,right:Vr,bottom:Xr=23,precision:si=0,wrapWidth:pr=1200,trackEventItems:Jr,loading:Li,wrapClassName:Oi,imgClassName:la,isArrow:mi=!1,imgStyle:Pa={}})=>{const qa=Math.floor((pr-(gr-1)*Vr)/gr),[Ka,Yi]=(0,E.useState)(),[pa,eo]=(0,E.useState)(),ro=Wl=>Yi(Wl),xo=()=>Yi(-1);return E.createElement(at.Z,{spinning:Li},E.createElement("div",{className:be()(Ne.list,hr)},!!(Gn!=null&&Gn.length)&&(Gn==null?void 0:Gn.map((Wl,Qo)=>{var Cn;const{name:wn,id:tr,identifier:Zr,featured:_r,school_name:Ar,image_url:Mr,excellent:Qn,is_plan:Er}=Wl;return E.createElement("div",{key:tr,className:be()(Ne.wrap,Oi),style:{width:qa,marginRight:(1+Qo)%gr===0?0:Vr+si,marginBottom:Xr}},E.createElement("a",{target:"_blank",href:`/paths/${Zr}`,className:Ne.li,onClick:Yr=>{Yr.preventDefault(),Jr&&(0,Ht.L9)([Jr]),(0,Ht.xg)(`/paths/${Zr}`)}},E.createElement("img",{src:ne(39057),className:Ne.titleBg}),E.createElement("div",{className:Ne.name},E.createElement(Le.Z,{title:wn},E.createElement("span",{className:Ne.e,style:{color:mi&&Ka===Qo?"#145DFF":"#000000"},onMouseEnter:()=>{ro(Qo)},onMouseLeave:xo},wn))),E.createElement("div",{style:{padding:"14px",paddingBottom:0}},E.createElement("div",{className:be()(Ne.img,la)},E.createElement("img",{className:Ne.cover,style:Mn({},Pa),src:`${st.Z.IMG_SERVER+Mr}`}),(Cn=Wl==null?void 0:Wl.subject_tags)==null?void 0:Cn.map((Yr,yi)=>{var ma,Za;if(yi===0){const to=(ma=Tn.find(Ia=>Ia.name==Yr))==null?void 0:ma.swimg;return E.createElement("img",{className:Ne.sign,src:to,style:{left:"-4px"}})}const Ya=(Za=Tn.find(to=>to.name==Yr))==null?void 0:Za.ptimg;return E.createElement("img",{className:Ne.sign,src:Ya,style:{left:`${48+52*(yi-1)+2*yi}px`}})}),E.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(Wl==null?void 0:Wl.excellent)&&E.createElement("div",{className:Ne.bq},"\u5F00\u653E\u8BFE\u7A0B"))),E.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},E.createElement("div",null,E.createElement("span",{className:Ne.text},"\u7AE0\u8282\u6570"),E.createElement("span",{className:Ne.value},Wl.stages_count)),E.createElement("div",null,E.createElement("span",{className:Ne.text},"\u5B66\u4E60\u4EBA\u6570"),E.createElement("span",{className:Ne.value},Wl.members_count))))))})),!Gn.length&&E.createElement(Zt.Z,null)))},vr={flex_box_center:"flex_box_center___o6B0Z",flex_space_between:"flex_space_between___Uz22Q",flex_box_vertical_center:"flex_box_vertical_center___nWLOj",flex_box_center_end:"flex_box_center_end___eqMdD",flex_box_column:"flex_box_column___ypdJv",list:"list___qA19p",wrap:"wrap___YaRtD",lockWrap:"lockWrap___Cle7R",li:"li___Hpfsl",img:"img___li1Ky",cover:"cover___iuyl5",bq:"bq___BpHtR",sign:"sign___ajRAC",titleBg:"titleBg___h8Qq7",name:"name___mAV5m",e:"e___YPSD7",text:"text___nDpTk",value:"value___guywy",unit:"unit___aTzYz",tags:"tags___X1lul",tag1:"tag1___AHRAc",tag2:"tag2___Pska6"},dr=ne(36466),mn=ne(59301);const zn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:At,swimg:Ge},{name:"101\u8BA1\u5212",ptimg:je,swimg:Pt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Et,swimg:ht},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Kt,swimg:vn},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:kt,swimg:Ut},{name:"\u519B\u961F\u4E00\u6D41",ptimg:yn,swimg:Bt}];var Xn=({className:hr,dataSource:Gn=[],col:gr=4,right:Vr,bottom:Xr=23,precision:si=0,wrapWidth:pr=1200,trackEventItems:Jr,loading:Li,onRemove:Oi=()=>{},isCurrent:la=!0,showAlias:mi=!1,wrapClassName:Pa,imgClassName:qa})=>{const Ka=Math.floor((pr-(gr-1)*Vr)/gr),Yi=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(pa=>(window.ENV==="build"&&(pa.ptimg=`/react/build${pa.ptimg}`,pa.swimg=`/react/build${pa.swimg}`),pa));return mn.createElement(at.Z,{spinning:Li},mn.createElement("div",{className:be()(vr.list,hr)},!!(Gn!=null&&Gn.length)&&(Gn==null?void 0:Gn.map((pa,eo)=>{var ro;const{name:xo,id:Wl,identifier:Qo,featured:Cn,school_name:wn,image_url:tr,excellent:Zr,is_plan:_r}=pa;return mn.createElement("div",{key:Wl,className:be()(vr.wrap,Pa),style:{width:Ka,marginRight:(1+eo)%gr===0?0:Vr+si,marginBottom:Xr}},mn.createElement("a",{className:vr.li,onClick:Ar=>{Ar.preventDefault(),Ar.stopPropagation(),Jr&&(0,Ht.L9)([Jr]),(0,Ht.xg)(`/paths/${Qo}`)}},mn.createElement("div",{className:be()(vr.img,qa)},mn.createElement("img",{className:vr.cover,src:`${st.Z.IMG_SERVER+tr}`}),la&&(0,dr.bg)()&&(pa==null?void 0:pa.studying)&&mn.createElement("div",{className:`${vr.movebq} user-path-items`,onClick:Ar=>{Ar.stopPropagation(),Oi(pa)}},mn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),mn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ro=pa==null?void 0:pa.subject_tags)==null?void 0:ro.map((Ar,Mr)=>{var Qn,Er;if(Mr===0){const yi=(Qn=Yi.find(ma=>ma.name==Ar))==null?void 0:Qn.swimg;return mn.createElement("img",{className:vr.sign,src:yi,style:{left:"-4px"}})}const Yr=(Er=Yi.find(yi=>yi.name==Ar))==null?void 0:Er.ptimg;return mn.createElement("img",{className:vr.sign,src:Yr,style:{left:`${48+52*(Mr-1)+2*Mr}px`}})}),mn.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(pa==null?void 0:pa.excellent)&&mn.createElement("div",{className:vr.bq},"\u5F00\u653E\u8BFE\u7A0B"))),mn.createElement("div",{className:vr.name},mn.createElement(Le.Z,{title:mi&&(pa!=null&&pa.excellent_alias_name)?mn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${xo}`,mn.createElement("br",null),mn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${pa==null?void 0:pa.excellent_alias_name}`)):xo},mn.createElement("span",{className:vr.e},mi&&(pa==null?void 0:pa.excellent_alias_name)||xo))),mn.createElement("div",{className:vr.tags},mn.createElement("div",null,mn.createElement(Le.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},mn.createElement("span",null,mn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),mn.createElement("span",null,pa.stages_count))),mn.createElement(Le.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},mn.createElement("span",null,mn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),mn.createElement("span",null,pa.members_count)))))))})),!Gn.length&&mn.createElement(Zt.Z,null)))},Sr={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom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WjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",ar=ne(59301),Wr=({className:hr,dataSource:Gn=[],col:gr=4,right:Vr,bottom:Xr=23,precision:si=0,wrapWidth:pr=1200,trackEventItems:Jr,loading:Li})=>{const Oi=Math.floor((pr-(gr-1)*Vr)/gr);return ar.createElement(at.Z,{spinning:Li},ar.createElement("div",{className:be()(Sr.list,hr)},!!Gn.length&&Gn.map((la,mi)=>{const{subject_identifier:Pa,id:qa,identifier:Ka,power:Yi}=la,pa=la.is_public!=0&&la.is_public;return ar.createElement("div",{className:Sr.wrap,key:qa,style:{width:Oi,marginRight:(1+mi)%gr===0?0:Vr+si,marginBottom:Xr}},ar.createElement("a",{className:Sr.li,onClick:eo=>{eo.preventDefault(),Jr&&(0,Ht.L9)([Jr]),(0,Ht.xg)(la.first_category_url)}},ar.createElement("div",{className:Sr.top},ar.createElement(Le.Z,{title:la.name},ar.createElement("div",{className:Sr.name},la.name)),ar.createElement("img",{className:Sr.img,src:st.Z.IMG_SERVER+"/images/"+la.avatar_url}),ar.createElement("div",{className:Sr.text,title:la.creator},la.creator),Pa&&ar.createElement("div",{className:Sr.btns},ar.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ar.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),pa&&ar.createElement("div",{className:Sr.sign},"\u516C\u5F00")),ar.createElement("div",{className:Sr.bottom},la.visits>0&&ar.createElement(Le.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ar.createElement("span",null,ar.createElement("i",{className:"iconfont icon-liulanyan"}),ar.createElement("span",null,la.visits))),la.course_members_count>0&&ar.createElement(Le.Z,{title:"\u6210\u5458",placement:"bottom"},ar.createElement("span",null,ar.createElement("i",{className:"iconfont icon-chengyuan"}),la.course_members_count)),la.tasks_count>0&&ar.createElement(Le.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ar.createElement("span",null,ar.createElement("i",{className:"iconfont icon-zuoye"}),la.tasks_count)),la.is_end?ar.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):ar.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!la.is_accessible&&ar.createElement("div",{className:Sr.lockWrap},ar.createElement("img",{src:`${st.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ar.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Gn.length&&ar.createElement(Zt.Z,null)))},Gt={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},or="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK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QmCC",Kn=({className:hr,dataSource:Gn=[],col:gr=4,right:Vr,bottom:Xr=23,precision:si=0,wrapWidth:pr=1200,wrapClassName:Jr,trackEventItems:Li,loading:Oi})=>{const la=Math.floor((pr-(gr-1)*Vr)/gr);return E.createElement(at.Z,{spinning:Oi},E.createElement("div",{className:be()(Gt.list,hr)},!!Gn.length&&Gn.map((mi,Pa)=>{const{subject_identifier:qa,id:Ka,identifier:Yi,power:pa}=mi,eo=mi.is_public!=0&&mi.is_public;return E.createElement("div",{className:be()(`${Gt.wrap} ${mi.is_accessible?"":Gt.warpStyle}`,Jr),key:Ka,style:{width:la,marginRight:(1+Pa)%gr===0?0:Vr+si,marginBottom:Xr}},E.createElement("a",{className:Gt.li,onClick:ro=>{ro.preventDefault(),Li&&(0,Ht.L9)([Li]),(0,Ht.xg)(mi.first_category_url)}},E.createElement("div",{className:Gt.creator},E.createElement("img",{className:Gt.img,src:st.Z.IMG_SERVER+"/images/"+mi.avatar_url}),E.createElement("div",{className:Gt.text,title:mi.creator},mi.creator)),E.createElement("div",{className:Gt.top},E.createElement(Le.Z,{title:mi.name},E.createElement("div",{className:Gt.name},mi.name)),eo&&E.createElement("div",{className:Gt.sign},"\u516C\u5F00")),E.createElement("div",{className:Gt.middle},E.createElement("div",{className:Gt.row,style:{marginBottom:6}},E.createElement("div",null,E.createElement("span",{className:Gt.text},"\u8BBF\u95EE\u91CF"),E.createElement("span",{className:Gt.value},(mi==null?void 0:mi.visits)||0)),E.createElement("div",null,E.createElement("span",{className:Gt.text},"\u6210\u5458"),E.createElement("span",{className:Gt.value},(mi==null?void 0:mi.course_members_count)||0))),E.createElement("div",{className:Gt.row},E.createElement("div",null,E.createElement("span",{className:Gt.text,style:{width:42}},"\u4F5C",E.createElement("span",{style:{marginLeft:14}},"\u4E1A")),E.createElement("span",{className:Gt.value},(mi==null?void 0:mi.tasks_count)||0)),E.createElement("div",null,E.createElement("span",{className:Gt.text},"\u72B6\u6001"),mi.is_end?E.createElement("span",{className:Gt.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):E.createElement("span",{className:Gt.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),qa&&E.createElement("div",{className:Gt.btns},E.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),E.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!mi.is_accessible&&E.createElement("div",{className:Gt.lockWrap},E.createElement("img",{src:`${st.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Gn.length&&E.createElement(Zt.Z,null)))},En={flex_box_center:"flex_box_center___eJQtn",flex_space_between:"flex_space_between___lzV1x",flex_box_vertical_center:"flex_box_vertical_center___IYfoZ",flex_box_center_end:"flex_box_center_end___lcJOu",flex_box_column:"flex_box_column____ShCG",list:"list___YXSRr",wrap:"wrap___ZGdF6",lockWrap:"lockWrap___VKZgR",creator:"creator___tLnuI",img:"img___P8alm",text:"text___ijpmj",top:"top___md6mc",sign:"sign___ydolt",name:"name___OEush",middle:"middle___WFQ2R",row:"row___MFUrm",value:"value___rEYMy",btns:"btns___Y5S2B",bottom:"bottom___RsfJC",warpStyle:"warpStyle___R8xtx"},nr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA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n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",xr=({className:hr,dataSource:Gn=[],col:gr=4,right:Vr,bottom:Xr=23,precision:si=0,wrapWidth:pr=1200,wrapClassName:Jr,trackEventItems:Li,loading:Oi})=>{const la=Math.floor((pr-(gr-1)*Vr)/gr);return E.createElement(at.Z,{spinning:Oi},E.createElement("div",{className:be()(En.list,hr)},!!Gn.length&&Gn.map((mi,Pa)=>{const{subject_identifier:qa,id:Ka,identifier:Yi,power:pa}=mi,eo=mi.is_public!=0&&mi.is_public;return E.createElement("div",{className:be()(`${En.wrap} ${mi.is_accessible?"":En.warpStyle}`,Jr),key:Ka,style:{width:la,marginRight:(1+Pa)%gr===0?0:Vr+si,marginBottom:Xr}},E.createElement("a",{className:En.li,onClick:ro=>{ro.preventDefault(),Li&&(0,Ht.L9)([Li]),(0,Ht.xg)(mi.first_category_url)}},E.createElement("div",{className:En.creator},E.createElement("img",{className:En.img,src:st.Z.IMG_SERVER+"/images/"+mi.avatar_url}),E.createElement("div",{className:En.text,title:mi.creator},mi.creator)),E.createElement("div",{className:En.top},E.createElement(Le.Z,{title:mi.name},E.createElement("div",{className:En.name},mi.name)),eo&&E.createElement("div",{className:En.sign})),E.createElement("div",{className:En.middle},E.createElement("div",{className:En.row,style:{marginBottom:6}},E.createElement("div",null,E.createElement("span",{className:En.text},"\u8BBF\u95EE\u91CF"),E.createElement("span",{className:En.value},(mi==null?void 0:mi.visits)||0)),E.createElement("div",null,E.createElement("span",{className:En.text},"\u6210\u5458"),E.createElement("span",{className:En.value},(mi==null?void 0:mi.course_members_count)||0))),E.createElement("div",{className:En.row},E.createElement("div",null,E.createElement("span",{className:En.text,style:{width:42}},"\u4F5C",E.createElement("span",{style:{marginLeft:14}},"\u4E1A")),E.createElement("span",{className:En.value},(mi==null?void 0:mi.tasks_count)||0)),E.createElement("div",null,E.createElement("span",{className:En.text},"\u72B6\u6001"),mi.is_end?E.createElement("span",{className:En.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):E.createElement("span",{className:En.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),qa&&E.createElement("div",{className:En.btns},E.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),E.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!mi.is_accessible&&E.createElement("div",{className:En.lockWrap},E.createElement("img",{src:`${st.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Gn.length&&E.createElement(Zt.Z,null)))},jt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Ue=ne(44225),ut=({dataSource:hr=[],value:Gn,onChange:gr,className:Vr,style:Xr={},tabBarExtraContent:si})=>E.createElement("div",{className:be()(jt.tabs,Vr),style:Xr},E.createElement("div",{className:jt.tabsWrap},hr.map((pr,Jr)=>E.createElement("aside",{className:jt.tab,onClick:()=>{gr(pr.id),pr.link&&Ue.history.push(pr.link)},key:Jr},E.createElement("div",{className:Gn===pr.id?jt.active:""},pr.name),(pr==null?void 0:pr.resetCount)==null&&(pr==null?void 0:pr.total)!==void 0&&E.createElement("span",null,"\uFF08",pr==null?void 0:pr.total,"\uFF09"),(pr==null?void 0:pr.resetCount)!==void 0&&(pr==null?void 0:pr.total)!==void 0&&E.createElement(Le.Z,{title:(pr==null?void 0:pr.tip)!=null?pr==null?void 0:pr.tip:""},E.createElement("span",{style:{color:"#9096A3"}},"\uFF08",E.createElement("span",{style:{color:"#000"}},pr==null?void 0:pr.resetCount),"/",E.createElement("span",null,pr==null?void 0:pr.total),"\uFF09"))))),E.createElement("div",{className:jt.tabBar},si)),rt={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},Qt=({dataSource:hr=[],value:Gn,onChange:gr,className:Vr,style:Xr={},tabBarExtraContent:si})=>E.createElement("div",{className:be()(rt.tabs,Vr),style:Xr},E.createElement("div",{className:rt.tabsWrap},hr.map((pr,Jr)=>E.createElement("aside",{className:rt.tab,onClick:()=>{gr(pr.id),pr.link&&Ue.history.push(pr.link)},key:Jr},E.createElement("div",{className:Gn===pr.id?rt.active:""},pr.name),(pr==null?void 0:pr.resetCount)==null&&(pr==null?void 0:pr.total)!==void 0&&E.createElement("span",null,"\uFF08",pr==null?void 0:pr.total,"\uFF09"),(pr==null?void 0:pr.resetCount)!==void 0&&(pr==null?void 0:pr.total)!==void 0&&E.createElement(Le.Z,{title:(pr==null?void 0:pr.tip)!=null?pr==null?void 0:pr.tip:""},E.createElement("span",{style:{color:"#9096A3"}},"\uFF08",E.createElement("span",{style:{color:"#000"}},pr==null?void 0:pr.resetCount),"/",E.createElement("span",null,pr==null?void 0:pr.total),"\uFF09"))))),E.createElement("div",{className:rt.tabBar},si)),pn={flex_box_center:"flex_box_center___uWCU1",flex_space_between:"flex_space_between___pKZJo",flex_box_vertical_center:"flex_box_vertical_center___NKr7Z",flex_box_center_end:"flex_box_center_end___ycaEu",flex_box_column:"flex_box_column___dDKjA",tabs:"tabs___cNVh5",tabsWrap:"tabsWrap___IJpOg",tab:"tab___fitSZ",active:"active___LBYdH"},Bn=({dataSource:hr=[],value:Gn,onChange:gr,className:Vr,style:Xr={},tabBarExtraContent:si})=>E.createElement("div",{className:be()(pn.tabs,Vr),style:Xr},E.createElement("div",{className:pn.tabsWrap},hr.map((pr,Jr)=>E.createElement("aside",{className:`${pn.tab} ${Gn===pr.id?pn.active:""}`,onClick:()=>{gr(pr.id),pr.link&&Ue.history.push(pr.link)},key:Jr},E.createElement("div",null,pr.name),(pr==null?void 0:pr.resetCount)==null&&(pr==null?void 0:pr.total)!==void 0&&E.createElement("span",null,"\uFF08",pr==null?void 0:pr.total,"\uFF09"),(pr==null?void 0:pr.resetCount)!==void 0&&(pr==null?void 0:pr.total)!==void 0&&E.createElement(Le.Z,{title:(pr==null?void 0:pr.tip)!=null?pr==null?void 0:pr.tip:""},E.createElement("span",{style:{color:"#9096A3"}},"\uFF08",E.createElement("span",{style:{color:"#000"}},pr==null?void 0:pr.resetCount),"/",E.createElement("span",null,pr==null?void 0:pr.total),"\uFF09"))))),E.createElement("div",{className:pn.tabBar},si)),cr=({className:hr,style:Gn={},children:gr})=>E.createElement("div",{className:be()(hr),style:Gn},gr),$n={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},en=ne(38854),rn=ne(20834);const Or=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Cr=({sortValue:hr,dropValue:Gn,className:gr,onSort:Vr,onDrop:Xr,dataSource:si=Or})=>{var pr;return E.createElement("div",{className:be()($n.orderWrap,gr)},E.createElement(en.Z,{dropdownRender:()=>E.createElement(rn.default,null,si.map((Jr,Li)=>E.createElement(rn.default.Item,{key:Li,onClick:()=>Xr(Jr.id)},Jr.name)))},E.createElement("span",{className:$n.orderTextWrap},(pr=si.find(Jr=>Gn===Jr.id))==null?void 0:pr.name)),E.createElement("span",{className:$n.orderIconWrap},E.createElement("span",{className:$n.orderAsc},E.createElement("i",{className:hr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${$n.cursorPointer} ${$n.active}`:`iconfont icon-sanjiaoxing-up font12 ${$n.cursorPointer}`,onClick:()=>Vr(hr==="asc"?"desc":"asc")})),E.createElement("span",{className:$n.orderDesc},E.createElement("i",{className:hr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${$n.cursorPointer} ${$n.active}`:`iconfont icon-sanjiaoxing-down font12 ${$n.cursorPointer}`,onClick:()=>Vr(hr==="asc"?"desc":"asc")}))))},Dr={flex_box_center:"flex_box_center___JJ9sS",flex_space_between:"flex_space_between___t8Vfh",flex_box_vertical_center:"flex_box_vertical_center___NXwpW",flex_box_center_end:"flex_box_center_end___d7nF9",flex_box_column:"flex_box_column___RWkXa",orderWrap:"orderWrap___Z6UhI",orderIconWrap:"orderIconWrap___vT5et",orderAsc:"orderAsc___Xrpfj",orderDesc:"orderDesc___FgOA0",active:"active___ryj8i",cursorPointer:"cursorPointer___Gg3bB",orderTextWrap:"orderTextWrap___BAYWJ"};const qr=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var fi=({sortValue:hr,dropValue:Gn,className:gr,onSort:Vr,onDrop:Xr,dataSource:si=qr})=>{var pr;return E.createElement("div",{className:be()(Dr.orderWrap,gr)},E.createElement(en.Z,{dropdownRender:()=>E.createElement(rn.default,null,si.map((Jr,Li)=>E.createElement(rn.default.Item,{key:Li,onClick:()=>Xr(Jr.id)},Jr.name)))},E.createElement("span",{className:Dr.orderTextWrap},(pr=si.find(Jr=>Gn===Jr.id))==null?void 0:pr.name)),E.createElement("span",{className:Dr.orderIconWrap},E.createElement("span",{className:Dr.orderAsc},E.createElement("i",{className:hr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Dr.cursorPointer} ${Dr.active}`:`iconfont icon-sanjiaoxing-up font12 ${Dr.cursorPointer}`,onClick:()=>Vr(hr==="asc"?"desc":"asc")})),E.createElement("span",{className:Dr.orderDesc},E.createElement("i",{className:hr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Dr.cursorPointer} ${Dr.active}`:`iconfont icon-sanjiaoxing-down font12 ${Dr.cursorPointer}`,onClick:()=>Vr(hr==="asc"?"desc":"asc")}))))},Jt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v",ThemeOne:"ThemeOne___iCQio"},On=ne(3113),Hn=ne(66911),qn=Object.defineProperty,kn=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,fr=(hr,Gn,gr)=>Gn in hr?qn(hr,Gn,{enumerable:!0,configurable:!0,writable:!0,value:gr}):hr[Gn]=gr,Pr=(hr,Gn)=>{for(var gr in Gn||(Gn={}))Vn.call(Gn,gr)&&fr(hr,gr,Gn[gr]);if(kn)for(var gr of kn(Gn))Pn.call(Gn,gr)&&fr(hr,gr,Gn[gr]);return hr},Gr=(hr,Gn)=>{var gr={};for(var Vr in hr)Vn.call(hr,Vr)&&Gn.indexOf(Vr)<0&&(gr[Vr]=hr[Vr]);if(hr!=null&&kn)for(var Vr of kn(hr))Gn.indexOf(Vr)<0&&Pn.call(hr,Vr)&&(gr[Vr]=hr[Vr]);return gr},pi=(hr,Gn,gr)=>new Promise((Vr,Xr)=>{var si=Li=>{try{Jr(gr.next(Li))}catch(Oi){Xr(Oi)}},pr=Li=>{try{Jr(gr.throw(Li))}catch(Oi){Xr(Oi)}},Jr=Li=>Li.done?Vr(Li.value):Promise.resolve(Li.value).then(si,pr);Jr((gr=gr.apply(hr,Gn)).next())}),Ri=hr=>{var Gn=hr,{className:gr,style:Vr,children:Xr,loading:si=!1,openLoading:pr,onClick:Jr=()=>{},size:Li="middle",shape:Oi="round",theme:la}=Gn,mi=Gr(Gn,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Pa,qa]=(0,E.useState)(!1),Ka=(0,E.useMemo)(()=>{switch(la){case Hn.Fy.THEMEONE:return Jt.ThemeOne;case Hn.Fy.DEFAULT:default:return Jt.btn}},[la]);return E.createElement(On.ZP,Pr({onClick:(0,De.throttle)(Yi=>pi(void 0,null,function*(){pr&&qa(!0);try{yield Jr(Yi)}catch(pa){console.log("error",pa)}pr&&qa(!1)}),2e3,{leading:!0,trailing:!1}),className:be()(Ka,Jt[`${Li}-${Oi}`],gr),style:Vr,size:Li,shape:Oi,loading:Pa||si},mi),Xr)},Si={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Zi=({className:hr,style:Gn,children:gr=null,onClick:Vr,title:Xr})=>E.createElement("div",{className:be()(Si.head,hr),style:Gn},E.createElement("span",{className:"primary-hover",onClick:Vr},E.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),E.createElement("b",{title:Xr},Xr),E.createElement("div",{className:Si.node},gr)),ji={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Bi=({confirmShow:hr=!0,confirmTitle:Gn,confirmClick:gr,cancelShow:Vr=!0,cancelTitle:Xr,cancelClick:si,className:pr,style:Jr,confirmLoading:Li=!1})=>E.createElement("div",{className:be()(ji.btns,pr),style:Jr},hr&&E.createElement(On.ZP,{loading:Li,onClick:gr,type:"primary",className:ji.confirm},Gn),Vr&&E.createElement(On.ZP,{onClick:si,className:ji.cancel},Xr)),Di={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},li=({className:hr,style:Gn={},LeftContent:gr,children:Vr,RightContent:Xr})=>E.createElement("div",{className:be()(Di.fixedBottom,hr),style:Gn},E.createElement("div",{className:Di.wrap},E.createElement("div",{className:Di.left},gr),E.createElement("div",{className:Di.center},Vr),E.createElement("div",{className:Di.right},Xr))),Ii={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},vi=({className:hr,style:Gn={},dataSource:gr=[]})=>E.createElement("div",{className:be()(Ii.crumbs,hr),style:Gn},gr.map((Vr,Xr)=>Xr<gr.length-1?E.createElement(E.Fragment,{key:Xr},Vr.path||Vr.onClick?E.createElement("span",{className:Ii.hover,onClick:Vr!=null&&Vr.onClick?Vr.onClick:()=>Ue.history.push(Vr.path)},Vr.name):E.createElement("span",null,Vr.name),E.createElement("span",null,"\xA0",">","\xA0")):E.createElement("span",{key:Xr,style:{color:"#5F6368"}},Vr.name))),jr=ne(31797),Ir=Object.defineProperty,Vi=Object.defineProperties,xi=Object.getOwnPropertyDescriptors,na=Object.getOwnPropertySymbols,ba=Object.prototype.hasOwnProperty,oa=Object.prototype.propertyIsEnumerable,xa=(hr,Gn,gr)=>Gn in hr?Ir(hr,Gn,{enumerable:!0,configurable:!0,writable:!0,value:gr}):hr[Gn]=gr,Na=(hr,Gn)=>{for(var gr in Gn||(Gn={}))ba.call(Gn,gr)&&xa(hr,gr,Gn[gr]);if(na)for(var gr of na(Gn))oa.call(Gn,gr)&&xa(hr,gr,Gn[gr]);return hr},Po=(hr,Gn)=>Vi(hr,xi(Gn)),ki=(hr,Gn)=>{var gr={};for(var Vr in hr)ba.call(hr,Vr)&&Gn.indexOf(Vr)<0&&(gr[Vr]=hr[Vr]);if(hr!=null&&na)for(var Vr of na(hr))Gn.indexOf(Vr)<0&&oa.call(hr,Vr)&&(gr[Vr]=hr[Vr]);return gr};const{Countdown:Hi}=jr.default;var Ma=hr=>{var Gn=hr,{onChange:gr}=Gn,Vr=ki(Gn,["onChange"]);const[Xr,si]=(0,E.useState)(null);(0,E.useEffect)(()=>{typeof Xr=="number"&&Xr>=0&&gr(Xr)},[Xr]);const pr=Jr=>{const Li=Math.floor(Jr/1e3);si(Li)};return E.createElement(Hi,Po(Na({},Vr),{onChange:pr}))},lo={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},qo=({DataProps:hr,className:Gn,style:gr={}})=>{var Vr;return E.createElement("div",{className:be()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",lo.ClassRoomItem,Gn),style:gr,onClick:()=>{(0,Ht.xg)(hr==null?void 0:hr.first_category_url)}},E.createElement("div",{className:"flex flex-col item-center"},E.createElement("img",{src:`${(Vr=st.Z)==null?void 0:Vr.IMG_SERVER}/images/${hr==null?void 0:hr.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(hr==null?void 0:hr.subject_identifier)&&E.createElement("div",{className:"mt-40px"},E.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),E.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),E.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},E.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(hr!=null&&hr.is_public)&&E.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),E.createElement("span",{className:be()("text-16px font-medium",lo.TitleDom)},hr==null?void 0:hr.name)),E.createElement("div",{className:"c-grey-333 font-medium"},hr==null?void 0:hr.creator),E.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",hr==null?void 0:hr.course_members_count),E.createElement("div",{className:"c-grey-333 flex item-center justify-between"},E.createElement("div",null,"\u4F5C\u4E1A\uFF1A",hr==null?void 0:hr.tasks_count),hr!=null&&hr.is_end?E.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):E.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},co=Object.defineProperty,Ho=Object.getOwnPropertySymbols,Vo=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable,Ei=(hr,Gn,gr)=>Gn in hr?co(hr,Gn,{enumerable:!0,configurable:!0,writable:!0,value:gr}):hr[Gn]=gr,ri=(hr,Gn)=>{for(var gr in Gn||(Gn={}))Vo.call(Gn,gr)&&Ei(hr,gr,Gn[gr]);if(Ho)for(var gr of Ho(Gn))Qr.call(Gn,gr)&&Ei(hr,gr,Gn[gr]);return hr},Ta=({DataProps:hr=[],selectValue:Gn,onChange:gr,className:Vr,style:Xr={},extra:si,classNameItem:pr,styleItem:Jr={},barHidden:Li})=>{const[Oi,la]=(0,E.useState)();return(0,E.useEffect)(()=>{la(Array.isArray(Gn)?Gn:[Gn])},[Gn]),E.createElement("div",{className:be()("flex px-20px py-10px gap-40px",Vr),style:ri({borderBottom:"1px solid #D3F0FF"},Xr)},hr==null?void 0:hr.map(mi=>E.createElement("div",{key:mi==null?void 0:mi.id,className:be()("flex item-center justify-center current c-grey-333 text-16 relative",pr,mi==null?void 0:mi.className),style:ri(ri({color:Oi!=null&&Oi.includes(mi==null?void 0:mi.id)?"#1890FF":"",minWidth:88},Jr),(mi==null?void 0:mi.style)||{}),onClick:Pa=>{gr==null||gr({domEvent:Pa,item:mi}),mi!=null&&mi.link&&Ue.history.push(mi==null?void 0:mi.link)}},mi==null?void 0:mi.name,!Li&&(Oi==null?void 0:Oi.includes(mi==null?void 0:mi.id))&&E.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),E.createElement("div",{className:"ml-auto"},si))},vo=Object.defineProperty,go=Object.defineProperties,So=Object.getOwnPropertyDescriptors,yo=Object.getOwnPropertySymbols,Lo=Object.prototype.hasOwnProperty,nl=Object.prototype.propertyIsEnumerable,ea=(hr,Gn,gr)=>Gn in hr?vo(hr,Gn,{enumerable:!0,configurable:!0,writable:!0,value:gr}):hr[Gn]=gr,gl=(hr,Gn)=>{for(var gr in Gn||(Gn={}))Lo.call(Gn,gr)&&ea(hr,gr,Gn[gr]);if(yo)for(var gr of yo(Gn))nl.call(Gn,gr)&&ea(hr,gr,Gn[gr]);return hr},ol=(hr,Gn)=>go(hr,So(Gn)),Xl=({value:hr,onChange:Gn,onInputChange:gr,className:Vr,style:Xr={},InputProps:si})=>{const[pr,Jr]=(0,E.useState)(hr);return E.createElement("div",{className:be()("flex item-center rounded-full px-10px py-2px",Vr),style:gl({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Xr)},E.createElement(vt.default,ol(gl({bordered:!1},si),{onChange:Li=>{Jr(Li.target.value),gr==null||gr(encodeURIComponent(Li.target.value))},onPressEnter:Li=>{Gn==null||Gn({domEvent:Li,item:{value:pr}})}})),E.createElement("img",{className:"h-22px current",src:ne(25365),height:22,onClick:Li=>{Gn==null||Gn({domEvent:Li,item:{value:pr}})}}))}},8204:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return ye}});var E=ne(59301);function ye(Ee,Ye){const Ce=(0,E.useRef)();(0,E.useEffect)(()=>{Ce.current=Ee}),(0,E.useEffect)(()=>{function Se(){Ce.current()}if(Ye!==null){let pe=setInterval(Se,Ye);return()=>clearInterval(pe)}},[Ye])}},8882:function(An,tn,ne){"use strict";ne.d(tn,{h:function(){return E}});var E=(ye=>(ye[ye.NOMATCH=-1]="NOMATCH",ye[ye.OK=0]="OK",ye[ye.TIMEOUT=2]="TIMEOUT",ye[ye.PODFAILURE=3]="PODFAILURE",ye[ye.COMPILEFAILURE=4]="COMPILEFAILURE",ye[ye.EXECUTEFAILURE=5]="EXECUTEFAILURE",ye[ye.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ye))(E||{})},10035:function(An,tn,ne){"use strict";ne.d(tn,{H7:function(){return ze},MK:function(){return tt},MU:function(){return Pe},X6:function(){return Fe},bM:function(){return De},fi:function(){return We},fu:function(){return be},n4:function(){return lt},rX:function(){return Ie},vl:function(){return Xe},zO:function(){return et}});var E=ne(58661),ye=Object.defineProperty,Ee=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Se=(Dt,dt,Qe)=>dt in Dt?ye(Dt,dt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Dt[dt]=Qe,pe=(Dt,dt)=>{for(var Qe in dt||(dt={}))Ye.call(dt,Qe)&&Se(Dt,Qe,dt[Qe]);if(Ee)for(var Qe of Ee(dt))Ce.call(dt,Qe)&&Se(Dt,Qe,dt[Qe]);return Dt};function be(Dt,dt){return(0,E.U2)(`myproblems/${Dt}.json`,pe({hidePopLogin:!0},dt||{}))}function De(Dt,dt){return(0,E.v_)(`myproblems/${Dt}/code_submit.json`,dt)}function Pe(Dt,dt){return(0,E.v_)(`myproblems/${Dt}/code_debug.json`,dt)}function et(Dt,dt){return dt.language&&(dt.language=encodeURIComponent(dt.language)),(0,E.U2)(`myproblems/${Dt}/submit_records.json`,dt)}function Fe(Dt){return(0,E.U2)("myproblems/record_detail.json",{id:Dt})}function Ie(Dt,dt){return(0,E.U2)(`myproblems/${Dt}/result.json`,{mode:dt})}function tt(Dt,dt){return(0,E.v_)(`myproblems/${Dt}/add_notes.json`,dt)}function ze(Dt,dt){return(0,E.v_)(`myproblems/${Dt}/restore_initial_code.json`,dt)}function We(Dt){return(0,E.v_)(`myproblems/${Dt}/sync_code.json`)}function lt(Dt,dt){return(0,E.v_)(`myproblems/${Dt}/update_code.json`,dt)}function Xe(Dt,dt){return(0,E.v_)(`discusses/${Dt}/plus.json`,dt)}},94066:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return zl}});var E=ne(59301),ye={flex_box_center:"flex_box_center___bZaL5",flex_space_between:"flex_space_between___oaJSq",flex_box_vertical_center:"flex_box_vertical_center____hsuP",flex_box_center_end:"flex_box_center_end___ZYbPQ",flex_box_column:"flex_box_column___nE_62",wrap:"wrap___ulhwR",left:"left___kyWln",title:"title___jsO1D",total:"total___GEhiU",list:"list___u9dBZ",name:"name___Wxggs",b:"b___Y15YO",r:"r___mKQoe",l:"l___uelFD",tag:"tag___Mpkbg",right:"right___mQ3dU",examName:"examName___Na1r8",t:"t___IgCWK",num:"num___CXI8j",topWarp:"topWarp___Kicpu",head:"head___jx3W8",so:"so___qYW7F",btn:"btn___EMJDz",content:"content___sHGsV",titleWrap:"titleWrap___I__GR",single:"single___K5iv9",analysis:"analysis___NoAuR",text:"text___xESW2",modalColumn:"modalColumn___I_tK_",modalRow:"modalRow___lyw_U",sup:"sup___HSz3Z",popover:"popover___kE8aI"},Ee=ne(78241),Ye=ne(6848),Ce=ne(3113),Se=ne(43418),pe=ne(5871),be=ne(8591),De=ne(92832),Pe=ne(28103),et=ne(24905),Fe=ne(95237),Ie=ne(43604),tt=ne(58421),ze=ne(60324),We=Object.defineProperty,lt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,dt=(Yt,hn,bn)=>hn in Yt?We(Yt,hn,{enumerable:!0,configurable:!0,writable:!0,value:bn}):Yt[hn]=bn,Qe=(Yt,hn)=>{for(var bn in hn||(hn={}))Xe.call(hn,bn)&&dt(Yt,bn,hn[bn]);if(lt)for(var bn of lt(hn))Dt.call(hn,bn)&&dt(Yt,bn,hn[bn]);return Yt};const Ze=Yt=>React.createElement("svg",Qe({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Yt),React.createElement("title",null,"\u7F16\u7EC4 6"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E4E6FD",width:34,height:34,rx:10}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M13.808 11.448a.558.558 0 0 1 0 .788l-1.564 1.565a.558.558 0 1 1-.789-.79l1.564-1.563a.558.558 0 0 1 .79 0Zm9.882 2.462a.558.558 0 0 1-.789 0l-1.564-1.563a.558.558 0 1 1 .789-.789l1.564 1.564a.556.556 0 0 1 0 .788Z",fill:"#6678EB"}),React.createElement("path",{d:"M21.753 21.707a5.937 5.937 0 1 0-8.58.015l-.937.936a.558.558 0 1 0 .789.788l.995-.994a5.91 5.91 0 0 0 3.436 1.095c1.287 0 2.48-.41 3.452-1.106l.992.992a.558.558 0 1 0 .789-.789l-.936-.937Z",fill:"#6678EB"}),React.createElement("path",{d:"m20.858 18.95-3.024-1.745v-2.054a.558.558 0 1 0-1.117 0v2.351c0 .064.011.126.031.184a.551.551 0 0 0 .258.33l3.293 1.9a.557.557 0 0 0 .559-.966Z",fill:"#FFF"}))));var Ae="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",Je=ne(58997),Re=ne(44225),vt=ne(85333),$e=ne(58661),mt=Object.defineProperty,Be=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ot=(Yt,hn,bn)=>hn in Yt?mt(Yt,hn,{enumerable:!0,configurable:!0,writable:!0,value:bn}):Yt[hn]=bn,nt=(Yt,hn)=>{for(var bn in hn||(hn={}))xt.call(hn,bn)&&Ot(Yt,bn,hn[bn]);if(Be)for(var bn of Be(hn))Ve.call(hn,bn)&&Ot(Yt,bn,hn[bn]);return Yt};const wt=Yt=>React.createElement("svg",nt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Yt),React.createElement("title",null,"\u7F16\u7EC4 12"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{width:34,height:34,rx:10,fill:"#EAF3F4"}),React.createElement("path",{d:"M25.905 15.37a.775.775 0 0 0-.626-.529l-4.814-.7-2.152-4.362a.776.776 0 0 0-1.392 0l-2.153 4.363-4.814.699a.775.775 0 0 0-.43 1.323l3.484 3.396-.823 4.794a.777.777 0 0 0 1.126.818l4.306-2.264 4.305 2.264a.778.778 0 0 0 .817-.059.777.777 0 0 0 .31-.759l-.823-4.794 3.483-3.396a.777.777 0 0 0 .196-.795Z",fill:"#21C0A6",fillRule:"nonzero"})));var Mt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",at=Object.defineProperty,Le=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,Ht=(Yt,hn,bn)=>hn in Yt?at(Yt,hn,{enumerable:!0,configurable:!0,writable:!0,value:bn}):Yt[hn]=bn,Tt=(Yt,hn)=>{for(var bn in hn||(hn={}))Me.call(hn,bn)&&Ht(Yt,bn,hn[bn]);if(Le)for(var bn of Le(hn))st.call(hn,bn)&&Ht(Yt,bn,hn[bn]);return Yt};const ct=Yt=>React.createElement("svg",Tt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Yt),React.createElement("title",null,"\u9898\u76EE"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E7F3FF",width:34,height:34,rx:10}),React.createElement("g",{fill:"#4C6FFF",fillRule:"nonzero"},React.createElement("path",{d:"m23.719 13.325-4.098-3.94c-.097-.13-.225-.162-.355-.162-.129 0-.258.064-.387.161l-7.55 7.753c-.065.065-.098.162-.13.227l-1.032 5.427c-.033.194.032.323.16.484.13.13.227.162.389.162h.096l4.776-1.099c.097-.032.194-.064.258-.161l7.841-8.108c.194-.162.194-.517.033-.744h-.001Zm-8.1 8.044a.534.534 0 0 1-.386.162.56.56 0 0 1-.388-.162l-3-2.81c-.226-.194-.226-.517-.033-.743.194-.227.517-.227.743-.033l3 2.811c.259.226.291.55.065.776ZM17 22.92h6.844v1.055H17z"}))));var Ct="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",Zt=ne(90048),gn=ne(74972),$t=ne(79691),Wt={wrap:"wrap___OIoOI",modal:"modal___Z3hfU",titleWrap:"titleWrap___aK3oG",required:"required___NHoO7",title:"title___uxb1R",colorGray:"colorGray___O8YPg",choiceWrap:"choiceWrap___t51sb",answer:"answer___vsBnh",activeAnswer:"activeAnswer___AJN4p",deleteIcon:"deleteIcon___WvOJZ",addIcon:"addIcon___UyeIs",editorWrap:"editorWrap___uqcFU",htmlWrap:"htmlWrap___GcBNL",radio:"radio___e8qQ5",color333:"color333___PLzVK",color999:"color999___v3EY0",fold:"fold___OfvPe",head:"head___EejYX",collapseWrapper:"collapseWrapper___sQyVD",panelHeader:"panelHeader___Ivicf",open:"open___aEOQE",close:"close___z4P5H",inputBorder:"inputBorder___ix67O",keywordTag:"keywordTag___iGx08",scoreByBlankRadio:"scoreByBlankRadio___Kwu7q"},on=ne(59301),dn=Object.defineProperty,ln=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,me=(Yt,hn,bn)=>hn in Yt?dn(Yt,hn,{enumerable:!0,configurable:!0,writable:!0,value:bn}):Yt[hn]=bn,oe=(Yt,hn)=>{for(var bn in hn||(hn={}))ue.call(hn,bn)&&me(Yt,bn,hn[bn]);if(fe)for(var bn of fe(hn))he.call(hn,bn)&&me(Yt,bn,hn[bn]);return Yt},Ne=(Yt,hn)=>ln(Yt,xe(hn)),At=(Yt,hn)=>{var bn={};for(var rr in Yt)ue.call(Yt,rr)&&hn.indexOf(rr)<0&&(bn[rr]=Yt[rr]);if(Yt!=null&&fe)for(var rr of fe(Yt))hn.indexOf(rr)<0&&he.call(Yt,rr)&&(bn[rr]=Yt[rr]);return bn};const Ge=null,je=(Yt,hn)=>{var bn=Yt,{globalSetting:rr,loading:Ki,dispatch:Br,isEdit:ai,editData:ei}=bn,ui=At(bn,["globalSetting","loading","dispatch","isEdit","editData"]);const[Ai,ir]=(0,E.useState)(""),[ti,Mi]=(0,E.useState)(""),[va,ii]=(0,E.useState)([]),[ca,Fi]=(0,E.useState)(""),[Hr,Ur]=(0,E.useState)(),[ga,Ga]=(0,E.useState)(!1),[Ci,wa]=(0,E.useState)({}),[Qi,Ea]=(0,E.useState)([]);(0,E.useEffect)(()=>{!ei||!ai||(ir(ei==null?void 0:ei.name),Mi(ei==null?void 0:ei.analysis),Ur(ei==null?void 0:ei.is_ordered),wa(ei),Ga(!0))},[ei]),(0,E.useEffect)(()=>{if(!ga)return;const No=ei==null?void 0:ei.standard_answer.map(ml=>ml==null?void 0:ml.answer_text);ii(No);const yl=ei==null?void 0:ei.standard_answer.map(ml=>ml==null?void 0:ml.score);Ea(yl),Ga(!1)},[ga]),(0,E.useImperativeHandle)(hn,()=>({onSave:dl,Clear:Dl}));const dl=()=>{let No=[],yl=!1;return Ai?(va.forEach((ml,Ko)=>{No.push({position:Ko+1,answer_text:[],score:Qi[Ko]}),ml==null||ml.forEach((_l,js)=>{No[Ko].answer_text.push(_l),(!_l||!(0,vt.eR)(_l,1e4))&&(Fi(`${Ko}-${js}`),be.ZP.info(_l?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),yl=!0)})}),yl?!1:(No==null?void 0:No.length)>20?(be.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:Ai,analysis:ti,standard_answers:No,is_ordered:Hr,downcase:Ci==null?void 0:Ci.downcase,no_space:Ci==null?void 0:Ci.no_space,use_blank_score:Ci==null?void 0:Ci.use_blank_score}):(be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},Dl=()=>{ir(""),Mi(""),ii([]),Ur(!1)},Zl=(No,yl,ml)=>{const Ko=va.slice();if(yl&&Ko.splice(No,yl),ml)for(let _l=0;_l<ml;_l++)Ko.splice(No+_l,0,[""]);ii(Ko)},rs=(No,yl,ml)=>{Fi("");let Ko=va.slice();Ko[No][yl]=ml,ii(Ko)},ho=No=>{let yl=va.slice();yl[No]=[...yl[No],""],ii(yl)},Bs=(No,yl)=>{let ml=va.slice();if(!ml[No][yl]){ml[No]=ml[No].filter((Ko,_l)=>_l!==yl),ii(ml);return}Se.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Wt.modal,onOk:()=>{ml[No]=ml[No].filter((Ko,_l)=>_l!==yl),ii(ml)}})},xs=No=>{Se.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Wt.modal,onOk:()=>{let yl=va.slice();yl=va.filter((ml,Ko)=>No!==Ko),ii(yl)}})};return on.createElement("section",{className:Wt.wrap},on.createElement("p",{className:Wt.titleWrap},on.createElement("span",{className:Wt.required},"*"),on.createElement("span",{className:Wt.title},"\u9898\u5E72\uFF1A")),on.createElement("div",null,on.createElement(gn.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",height:155,defaultValue:Ai,onChange:No=>ir(No),showNullButton:!0,onAddBlank:()=>ii(No=>[...No,[""]])})),on.createElement("div",{className:"mt20 flex flex-col gap-10px"},va.map((No,yl)=>on.createElement("div",{style:{display:"flex"}},on.createElement("div",{style:{flex:1}},on.createElement($t.Z,{key:yl,answers:No,index:yl,flex:1,is_md:!0,activeOptionErrorIndex:ca,onAnswerChange:rs,addChildAnswer:ho,deleteChildAnswer:Bs,deleteChildAnswermain:xs})),Ci.use_blank_score&&on.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},on.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",on.createElement(pe.Z,{style:{width:"100px"},size:"large",defaultValue:Qi[yl],onBlur:ml=>{Qi[yl]=ml.target.value,Ea([...Qi])}}))))),on.createElement(Ce.ZP,{className:"mt20",onClick:()=>ii(No=>[...No,[""]]),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),on.createElement("div",null,on.createElement(et.default,{className:`${Wt.color333} font14 mt20`,checked:Ci.use_blank_score,onChange:No=>wa(Ne(oe({},Ci),{use_blank_score:No.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),on.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u9700\u8981\u8BBE\u7F6E\u6BCF\u7A7A\u5206\u503C\uFF0C\u5B66\u751F\u7B54\u6848\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206\uFF09")),on.createElement("div",null,on.createElement(et.default,{className:`${Wt.color333} font14 mt20`,checked:Ci.downcase,onChange:No=>wa(Ne(oe({},Ci),{downcase:No.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),on.createElement("div",null,on.createElement(et.default,{className:`${Wt.color333} font14 mt20`,checked:Ci.no_space,onChange:No=>wa(Ne(oe({},Ci),{no_space:No.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),on.createElement("div",{className:"mt20"},(va==null?void 0:va.length)>1&&on.createElement("span",null,on.createElement(et.default,{checked:Hr,onChange:No=>Ur(No.target.checked),className:`${Wt.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),on.createElement("span",{className:`${Wt.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),on.createElement("p",{className:Wt.titleWrap},on.createElement("span",{className:Wt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),on.createElement(gn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ti,onChange:No=>Mi(No)}))};var Pt=(0,Re.connect)(({loading:Yt,globalSetting:hn})=>({globalSetting:hn,loading:Yt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(je)),Et=ne(5112),ht=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,kt=(Yt,hn)=>{var bn={};for(var rr in Yt)Kt.call(Yt,rr)&&hn.indexOf(rr)<0&&(bn[rr]=Yt[rr]);if(Yt!=null&&ht)for(var rr of ht(Yt))hn.indexOf(rr)<0&&vn.call(Yt,rr)&&(bn[rr]=Yt[rr]);return bn};const Ut=null,yn=(Yt,hn)=>{var bn=Yt,{globalSetting:rr,loading:Ki,editData:Br,dispatch:ai,onRef:ei=()=>{},isEdit:ui}=bn,Ai=kt(bn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[ir,ti]=(0,E.useState)(),[Mi,va]=(0,E.useState)(""),[ii,ca]=(0,E.useState)("");(0,E.useEffect)(()=>{if(!Br||!ui)return;va(Br==null?void 0:Br.name),ca(Br==null?void 0:Br.analysis);const Ur=Br==null?void 0:Br.choices.find(ga=>ga.is_answer);ti(Ur.choice_text==="\u6B63\u786E"?"0":"1")},[Br]),(0,E.useImperativeHandle)(hn,()=>({onSave:Fi,Clear:Hr}));const Fi=()=>Mi?ir?{name:Mi,choices:[{choice_text:"\u6B63\u786E",is_answer:ir==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:ir==="1"?1:0}],analysis:ii}:(be.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),Hr=()=>{va(""),ca(""),ti("")};return E.createElement("section",{className:Wt.wrap},E.createElement("p",{className:Wt.titleWrap},E.createElement("span",{className:Wt.required},"*"),E.createElement("span",{className:Wt.title},"\u9898\u5E72\uFF1A")),E.createElement(gn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Mi,onChange:Ur=>va(Ur)}),E.createElement("p",{className:Wt.titleWrap},E.createElement("span",{className:Wt.required},"*"),E.createElement("span",{className:Wt.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:Wt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),E.createElement(Et.ZP.Group,{buttonStyle:"solid",value:ir,onChange:Ur=>ti(Ur.target.value)},E.createElement(Et.ZP.Button,{value:"0",className:`${Wt.radio} mr40`},"\u6B63\u786E"),E.createElement(Et.ZP.Button,{value:"1",className:Wt.radio},"\u9519\u8BEF")),E.createElement("p",{className:Wt.titleWrap},E.createElement("span",{className:Wt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),E.createElement(gn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ii,onChange:Ur=>ca(Ur)}))};var Bt=(0,Re.connect)(({loading:Yt,globalSetting:hn})=>({globalSetting:hn,loading:Yt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(yn)),Ke=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Nt=(Yt,hn)=>{var bn={};for(var rr in Yt)gt.call(Yt,rr)&&hn.indexOf(rr)<0&&(bn[rr]=Yt[rr]);if(Yt!=null&&Ke)for(var rr of Ke(Yt))hn.indexOf(rr)<0&&Vt.call(Yt,rr)&&(bn[rr]=Yt[rr]);return bn};const Xt=null,Mn=(Yt,hn)=>{var bn=Yt,{globalSetting:rr,loading:Ki,editData:Br,dispatch:ai,onRef:ei=()=>{},isEdit:ui}=bn,Ai=Nt(bn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[ir,ti]=(0,E.useState)([]);(0,E.useEffect)(()=>{var ca;if(!Br||!ui)return;const Fi=(ca=Br==null?void 0:Br.shixun)==null?void 0:ca.challenges.map(Hr=>({id:Hr==null?void 0:Hr.id,score:Hr.score}));ti(Fi)},[Br]),(0,E.useImperativeHandle)(hn,()=>({onSave:Mi,Clear:va}));const Mi=()=>({challenges:[...ir]}),va=()=>{ti([])};console.log("editData--",Br);const ii=ca=>{var Fi,Hr;return E.createElement("div",null,(Hr=(Fi=ca==null?void 0:ca.shixun)==null?void 0:Fi.challenges)==null?void 0:Hr.map((Ur,ga)=>{var Ga;return E.createElement("div",{className:"c-grey-666 font14 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"15px"}},E.createElement("div",null,E.createElement("span",{className:"mr5"},"\u7B2C",ga+1,"\u5173"),E.createElement(Ye.Z,{key:ga,title:Ur==null?void 0:Ur.challenge_name},E.createElement("span",null,(0,vt.Pq)(Ur==null?void 0:Ur.challenge_name,44)))),E.createElement("p",{style:{marginBottom:0}},E.createElement("span",{className:Wt.required},"*"),E.createElement("span",{className:Wt.title},"\u5206\u503C\uFF1A"),E.createElement(pe.Z,{precision:1,min:1,max:100,className:Wt.baseFormItem,style:{width:176},value:(Ga=ir.find(Ci=>Ci.id===Ur.id))==null?void 0:Ga.score,onChange:Ci=>{ir.find(wa=>wa.id===Ur.id).score=Ci,ti([...ir])}})))}),E.createElement("div",{style:{clear:"both"}}))};return E.createElement("section",{className:Wt.wrap},E.createElement(Je.Z,{style:{paddingRight:10},className:Wt.titleHtml,value:`${Br==null?void 0:Br.position}\u3001${Br==null?void 0:Br.name}`}),E.createElement("p",{style:{marginBottom:"10px",marginTop:"25px"}},E.createElement("span",{className:Wt.required},"*"),E.createElement("span",{className:Wt.title},"\u5173\u5361")),ii(Br))};var Tn=(0,Re.connect)(({loading:Yt,globalSetting:hn})=>({globalSetting:hn,loading:Yt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Mn)),Rn=Object.getOwnPropertySymbols,ur=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,dr=(Yt,hn)=>{var bn={};for(var rr in Yt)ur.call(Yt,rr)&&hn.indexOf(rr)<0&&(bn[rr]=Yt[rr]);if(Yt!=null&&Rn)for(var rr of Rn(Yt))hn.indexOf(rr)<0&&vr.call(Yt,rr)&&(bn[rr]=Yt[rr]);return bn};const mn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],zn=(Yt,hn)=>{var bn=Yt,{editData:rr,globalSetting:Ki,loading:Br,dispatch:ai,onRef:ei=()=>{},isEdit:ui}=bn,Ai=dr(bn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ir,ti]=(0,E.useState)([]),[Mi,va]=(0,E.useState)(),[ii,ca]=(0,E.useState)([]),[Fi,Hr]=(0,E.useState)(""),[Ur,ga]=(0,E.useState)("");(0,E.useEffect)(()=>{ti(["","","",""])},[]),(0,E.useEffect)(()=>{if(!rr||!ui)return;Hr(rr==null?void 0:rr.name),ga(rr==null?void 0:rr.analysis),ti(rr==null?void 0:rr.choices.map(Qi=>Qi.choice_text));const wa=[];rr==null||rr.choices.map((Qi,Ea)=>{Qi.is_answer&&wa.push(Ea)}),ca(wa)},[rr]),(0,E.useImperativeHandle)(hn,()=>({onSave:Ga,Clear:Ci}));const Ga=()=>{if(!Fi)return be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const wa=ir.findIndex(Ea=>!Ea);if(wa>-1)return be.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${mn[wa]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!ii.length)return be.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(ii.length<2)return be.ZP.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;const Qi=ir.map((Ea,dl)=>({choice_text:Ea,is_answer:ii.includes(dl)?1:0}));return{name:Fi,choices:Qi,analysis:Ur}},Ci=()=>{ti(["","","",""]),Hr(""),ga(""),ca("")};return E.createElement("section",{className:Wt.wrap},E.createElement("p",{className:Wt.titleWrap},E.createElement("span",{className:Wt.required},"*"),E.createElement("span",{className:Wt.title},"\u9898\u5E72\uFF1A")),E.createElement(gn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Fi,onChange:wa=>Hr(wa)}),E.createElement("p",{className:Wt.titleWrap},E.createElement("span",{className:Wt.required},"*"),E.createElement("span",{className:Wt.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:Wt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ir.map((wa,Qi)=>E.createElement("div",{className:Wt.choiceWrap,key:Qi},E.createElement(Ye.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},E.createElement("div",{className:`${Wt.answer} ${ii.includes(Qi)?Wt.activeAnswer:""}`,onClick:()=>{ii.includes(Qi)?ca(ii.filter(Ea=>Ea!==Qi)):ca([...ii,Qi])}},mn[Qi])),E.createElement("div",{className:Wt.editorWrap},Mi===Qi?E.createElement(gn.Z,{id:`single-question-option-${Qi}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:wa,onChange:Ea=>{ir[Qi]=Ea,ti(ir)}}):E.createElement("div",{className:Wt.htmlWrap,onClick:()=>va(Qi)},E.createElement(Je.Z,{value:wa}))),Qi>1&&E.createElement(Ye.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${Wt.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{ti(ir.filter((Ea,dl)=>dl!==Qi)),ii.includes(Qi)?ca(ii.filter(Ea=>Ea!==Qi)):ca([...ii,Qi])}})),Qi<7&&Qi===ir.length-1&&E.createElement(Ye.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},E.createElement("i",{className:`${Wt.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>ti([...ir,""])})))),E.createElement("p",{className:Wt.titleWrap},E.createElement("span",{className:Wt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),E.createElement(gn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Ur,onChange:wa=>ga(wa)}))};var jn=(0,Re.connect)(({loading:Yt,globalSetting:hn})=>({globalSetting:hn,loading:Yt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(zn)),Xn=Object.getOwnPropertySymbols,Sr=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable,ar=(Yt,hn)=>{var bn={};for(var rr in Yt)Sr.call(Yt,rr)&&hn.indexOf(rr)<0&&(bn[rr]=Yt[rr]);if(Yt!=null&&Xn)for(var rr of Xn(Yt))hn.indexOf(rr)<0&&Kr.call(Yt,rr)&&(bn[rr]=Yt[rr]);return bn};const Zn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Wr=(Yt,hn)=>{var bn=Yt,{editData:rr,globalSetting:Ki,loading:Br,dispatch:ai,onRef:ei=()=>{},isEdit:ui}=bn,Ai=ar(bn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ir,ti]=(0,E.useState)([]),[Mi,va]=(0,E.useState)(),[ii,ca]=(0,E.useState)(),[Fi,Hr]=(0,E.useState)(""),[Ur,ga]=(0,E.useState)("");(0,E.useEffect)(()=>{ti(["","","",""])},[]),(0,E.useEffect)(()=>{if(!rr||!ui)return;const wa=[],Qi=[];rr==null||rr.choices.forEach((Ea,dl)=>{wa.push(Ea.choice_text),Ea.is_answer&&Qi.push(dl)}),Hr(rr==null?void 0:rr.name),ga(rr==null?void 0:rr.analysis),ti(wa),ca(Qi)},[rr]),(0,E.useImperativeHandle)(hn,()=>({onSave:Ga,Clear:Ci}));const Ga=()=>{if(!Fi)return be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const wa=ir.findIndex(Ea=>!Ea);if(wa>-1)return be.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Zn[wa]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray(ii))return be.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;const Qi=ir.map((Ea,dl)=>({choice_text:Ea,is_answer:ii.includes(dl)?1:0}));return{name:Fi,choices:Qi,analysis:Ur}},Ci=()=>{ti(["","","",""]),Hr(""),ga(""),ca("")};return E.createElement("section",{className:Wt.wrap},E.createElement("p",{className:Wt.titleWrap},E.createElement("span",{className:Wt.required},"*"),E.createElement("span",{className:Wt.title},"\u9898\u5E72\uFF1A")),E.createElement(gn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Fi,onChange:wa=>Hr(wa)}),E.createElement("p",{className:Wt.titleWrap},E.createElement("span",{className:Wt.required},"*"),E.createElement("span",{className:Wt.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:Wt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ir.map((wa,Qi)=>E.createElement("div",{className:Wt.choiceWrap,key:Qi},E.createElement(Ye.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},E.createElement("div",{className:`${Wt.answer} ${ii!=null&&ii.includes(Qi)?Wt.activeAnswer:""}`,onClick:()=>ca([Qi])},Zn[Qi])),E.createElement("div",{className:Wt.editorWrap},Mi===Qi?E.createElement(gn.Z,{id:`single-question-option-${Qi}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:wa,onChange:Ea=>{ir[Qi]=Ea,ti(ir)}}):E.createElement("div",{className:Wt.htmlWrap,onClick:()=>va(Qi)},E.createElement(Je.Z,{value:wa}))),Qi>1&&E.createElement(Ye.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${Wt.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{ti(ir.filter((Ea,dl)=>dl!==Qi)),Qi===ii&&ca(null)}})),Qi<7&&Qi===ir.length-1&&E.createElement(Ye.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},E.createElement("i",{className:`${Wt.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>ti([...ir,""])})))),E.createElement("p",{className:Wt.titleWrap},E.createElement("span",{className:Wt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),E.createElement(gn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Ur,onChange:wa=>ga(wa)}))};var Gt=(0,Re.connect)(({loading:Yt,globalSetting:hn})=>({globalSetting:hn,loading:Yt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Wr)),or=ne(12563),er=ne(78673),Kn=ne(61485),En=ne(59301),nr=Object.defineProperty,lr=Object.defineProperties,xr=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,ut=(Yt,hn,bn)=>hn in Yt?nr(Yt,hn,{enumerable:!0,configurable:!0,writable:!0,value:bn}):Yt[hn]=bn,rt=(Yt,hn)=>{for(var bn in hn||(hn={}))Ue.call(hn,bn)&&ut(Yt,bn,hn[bn]);if(jt)for(var bn of jt(hn))yt.call(hn,bn)&&ut(Yt,bn,hn[bn]);return Yt},_t=(Yt,hn)=>lr(Yt,xr(hn)),Qt=(Yt,hn)=>{var bn={};for(var rr in Yt)Ue.call(Yt,rr)&&hn.indexOf(rr)<0&&(bn[rr]=Yt[rr]);if(Yt!=null&&jt)for(var rr of jt(Yt))hn.indexOf(rr)<0&&yt.call(Yt,rr)&&(bn[rr]=Yt[rr]);return bn},pn=(Yt,hn,bn)=>new Promise((rr,Ki)=>{var Br=ui=>{try{ei(bn.next(ui))}catch(Ai){Ki(Ai)}},ai=ui=>{try{ei(bn.throw(ui))}catch(Ai){Ki(Ai)}},ei=ui=>ui.done?rr(ui.value):Promise.resolve(ui.value).then(Br,ai);ei((bn=bn.apply(Yt,hn)).next())});const sn=Yt=>{if(!Yt)return!1;if(/^s*$/.test(Yt)||Yt.trim()===""){be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let hn=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Yt==="|"?(be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Bn=({value:Yt=[],onClose:hn})=>En.createElement(or.Z,{closable:!0,onClose:hn,className:Wt.keywordTag},En.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Yt.join(" \u6216 "))),Yn=(Yt,hn)=>{var bn=Yt,{editData:rr,globalSetting:Ki,loading:Br,dispatch:ai,onRef:ei=()=>{},isEdit:ui}=bn,Ai=Qt(bn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ir,ti]=(0,E.useState)(""),[Mi,va]=(0,E.useState)(""),[ii,ca]=(0,E.useState)(""),[Fi,Hr]=(0,E.useState)(""),[Ur]=Ee.default.useForm(),ga=Ee.default.useWatch("use_keywords",Ur);(0,E.useEffect)(()=>{var Qi;!rr||!ui||(ti(rr==null?void 0:rr.name),va(rr==null?void 0:rr.analysis),ca((Qi=rr==null?void 0:rr.answer_texts)==null?void 0:Qi[0]),Ur.setFieldsValue(rt({},rr)))},[rr]),(0,E.useImperativeHandle)(hn,()=>({onSave:Ga,Clear:Ci}));const Ga=()=>pn(void 0,null,function*(){if(!ir)return be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield Ur.validateFields()}catch(Ea){be.ZP.error(Ea.errorFields[0].errors[0]);return}const Qi=Ur.getFieldsValue();return console.log(Qi,"values"),rt({name:ir,answer_texts:[ii],analysis:Mi},Qi)}),Ci=()=>{ti(""),va(""),ca(""),Ur.resetFields()},wa=rr==null?void 0:rr.score;return En.createElement("section",{className:Wt.wrap},En.createElement("p",{className:Wt.titleWrap},En.createElement("span",{className:Wt.required},"*"),En.createElement("span",{className:Wt.title},"\u9898\u5E72\uFF1A")),En.createElement(gn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ir,onChange:Qi=>ti(Qi)}),En.createElement("p",{className:Wt.titleWrap},En.createElement("span",{className:Wt.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),En.createElement(gn.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:ii,onChange:Qi=>ca(Qi)}),En.createElement("p",{className:Wt.titleWrap},En.createElement("span",{className:Wt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),En.createElement(gn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Mi,onChange:Qi=>va(Qi)}),En.createElement(Ee.default,{form:Ur,size:"large",onFinishFailed:Qi=>pn(void 0,null,function*(){var Ea,dl;be.ZP.error(Qi.errorFields[0].errors[0]),Ur.scrollToField((dl=(Ea=Qi==null?void 0:Qi.errorFields)==null?void 0:Ea[0])==null?void 0:dl.name,{behavior:"smooth",block:"center"})})},En.createElement(Fe.Z,{align:"middle",className:"mb30 mt20"},En.createElement(Ee.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},En.createElement(er.Z,null)),En.createElement(Ie.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),En.createElement(Ie.Z,null,En.createElement(Ye.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},En.createElement(Kn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),ga&&En.createElement(Ee.default.List,{name:"keywords",rules:[{validator(Qi,Ea){return Ea!=null&&Ea.length?(Ea==null?void 0:Ea.reduce((Dl,Zl)=>Dl+Zl.score,0))>parseFloat(wa)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD"))}}]},(Qi,{add:Ea,remove:dl})=>En.createElement(En.Fragment,null,En.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),En.createElement(Fe.Z,{align:"middle",className:"font14 mb30"},En.createElement(Ie.Z,{flex:1},En.createElement(De.default,{value:Fi,onChange:Dl=>{Hr(Dl.target.value)},maxLength:50,allowClear:!0,onPressEnter:Dl=>{var Zl,rs,ho,Bs;const xs=`${(Zl=Dl.target)==null?void 0:Zl.value}`,No=(ho=(rs=xs==null?void 0:xs.split("|"))==null?void 0:rs.filter(Ko=>!!Ko))==null?void 0:ho.map(Ko=>Ko==null?void 0:Ko.trim()),yl=Ur.getFieldValue("keywords"),ml=((Bs=yl==null?void 0:yl.map(Ko=>Ko==null?void 0:Ko.keyword))==null?void 0:Bs.flat())||[];for(const Ko of No)if(ml.includes(Ko)){be.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}sn(xs)&&(Ea({keyword:No,score:1}),Hr(""))},className:Wt.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),En.createElement(Ie.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Qi.map(Dl=>{var Zl=Dl,{key:rs,name:ho}=Zl,Bs=Qt(Zl,["key","name"]);return En.createElement(Fe.Z,{key:rs,style:{marginRight:148}},En.createElement(Ie.Z,{flex:1},En.createElement(Fe.Z,{align:"middle",justify:"space-between"},En.createElement(Ee.default.Item,_t(rt({},Bs),{name:[ho,"keyword"]}),En.createElement(Bn,{onClose:()=>dl(ho)})),En.createElement(Ee.default.Item,_t(rt({},Bs),{name:[ho,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),En.createElement(pe.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var cr=(0,Re.connect)(({loading:Yt,globalSetting:hn})=>({globalSetting:hn,loading:Yt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Yn)),$n=ne(36381),en={wrap:"wrap___Cc0gS",deleteIcon:"deleteIcon___ebwMv",keywordTag:"keywordTag___lUfL5",questionTitleEditorWrap:"questionTitleEditorWrap___u9UgK",choiceWrap:"choiceWrap___VHsr3",choiceIndex:"choiceIndex___rsj9r",judgementIndex:"judgementIndex___fMm6E",setAnswerBtn:"setAnswerBtn___krVC9",activeAnswer:"activeAnswer___WiYo2",activeJudgementAnswer:"activeJudgementAnswer___M6iww",actionWrapper:"actionWrapper___oKI8_",addIcon:"addIcon___eMbGP",inputBorder:"inputBorder___ob_6x",placeholder:"placeholder___Vkwr4",blankWrapper:"blankWrapper____MZQ5",blankInput:"blankInput___ephwY",blankInputNumberWrapper:"blankInputNumberWrapper___C1UJS",addBtn:"addBtn___qRBpJ",blankIndex:"blankIndex___QsKgf",baseInputWrapper:"baseInputWrapper___juqCB",collapseWrapper:"collapseWrapper___kAXJ0",panelHeader:"panelHeader___hLTSe",open:"open___wWDjf",close:"close___XPTJ0",hide:"hide___VytUy"},rn=ne(32134),Or=ne(12893),kr=Object.defineProperty,Cr=Object.defineProperties,Dr=Object.getOwnPropertyDescriptors,qr=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,Jt=(Yt,hn,bn)=>hn in Yt?kr(Yt,hn,{enumerable:!0,configurable:!0,writable:!0,value:bn}):Yt[hn]=bn,On=(Yt,hn)=>{for(var bn in hn||(hn={}))br.call(hn,bn)&&Jt(Yt,bn,hn[bn]);if(qr)for(var bn of qr(hn))fi.call(hn,bn)&&Jt(Yt,bn,hn[bn]);return Yt},Hn=(Yt,hn)=>Cr(Yt,Dr(hn)),qn=(Yt,hn)=>{var bn={};for(var rr in Yt)br.call(Yt,rr)&&hn.indexOf(rr)<0&&(bn[rr]=Yt[rr]);if(Yt!=null&&qr)for(var rr of qr(Yt))hn.indexOf(rr)<0&&fi.call(Yt,rr)&&(bn[rr]=Yt[rr]);return bn};const kn=Yt=>{var hn=Yt,{value:bn,onChange:rr,scrollId:Ki}=hn,Br=qn(hn,["value","onChange","scrollId"]);return E.createElement("div",{id:Ki||""},E.createElement(gn.Z,Hn(On({},Br),{defaultValue:bn,onChange:(ai,ei)=>{ei!=null&&ei.length?rr(ai,ei):rr(ai)}})))},Vn=({value:Yt,onChange:hn,placeholder:bn,height:rr=140,isEdit:Ki})=>Ki?E.createElement(gn.Z,{watch:!0,isFocus:!0,height:rr,placeholder:bn,defaultValue:Yt,onChange:hn}):E.createElement("div",{style:{cursor:"pointer"}},Yt?E.createElement(Je.Z,{className:en.inputBorder,value:Yt}):E.createElement("div",{className:`${en.inputBorder} ${en.placeholder}`},bn));var Pn=ne(59301),fr=Object.defineProperty,Pr=Object.defineProperties,Gr=Object.getOwnPropertyDescriptors,pi=Object.getOwnPropertySymbols,gi=Object.prototype.hasOwnProperty,Ri=Object.prototype.propertyIsEnumerable,Si=(Yt,hn,bn)=>hn in Yt?fr(Yt,hn,{enumerable:!0,configurable:!0,writable:!0,value:bn}):Yt[hn]=bn,wi=(Yt,hn)=>{for(var bn in hn||(hn={}))gi.call(hn,bn)&&Si(Yt,bn,hn[bn]);if(pi)for(var bn of pi(hn))Ri.call(hn,bn)&&Si(Yt,bn,hn[bn]);return Yt},Zi=(Yt,hn)=>Pr(Yt,Gr(hn)),ji=(Yt,hn)=>{var bn={};for(var rr in Yt)gi.call(Yt,rr)&&hn.indexOf(rr)<0&&(bn[rr]=Yt[rr]);if(Yt!=null&&pi)for(var rr of pi(Yt))hn.indexOf(rr)<0&&Ri.call(Yt,rr)&&(bn[rr]=Yt[rr]);return bn};const Gi=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Bi=({value:Yt,onChange:hn,choiceTextKey:bn,answerKey:rr,index:Ki,isEdit:Br,setInputActive:ai,form:ei,choiceOptionsPath:ui,allowChangeMode:Ai,showAddIcon:ir,addItem:ti,deleteItem:Mi})=>{const va=(Yt==null?void 0:Yt[rr])===!0,ii=()=>{const Fi=ei.getFieldValue(ui);ei.setFieldValue(ui,Fi.map(Hr=>Zi(wi({},Hr),{[rr]:!1})))},ca=()=>{va?hn(Zi(wi({},Yt),{[rr]:!1})):(Ai||ii(),hn(Zi(wi({},Yt),{[rr]:!0})))};return Pn.createElement(Fe.Z,{className:en.choiceWrap,align:"middle",wrap:!1},Pn.createElement(Ie.Z,{onClick:ca,className:`${en.choiceIndex} ${va?en.activeAnswer:""}`},Gi[Ki]),Pn.createElement(Ie.Z,{flex:1,className:`${en.editorWrap} ml15`,onClick:ai},Pn.createElement(Vn,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Br,value:Yt==null?void 0:Yt[bn],onChange:Fi=>{hn(Zi(wi({},Yt),{[bn]:Fi}))}})),Pn.createElement(Ie.Z,{flex:"0 0 auto",className:"ml15"},Pn.createElement("div",{onClick:ca,className:`${en.setAnswerBtn} ${va?en.activeAnswer:""}`},va?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Pn.createElement(Ie.Z,{className:en.actionWrapper},Pn.createElement(Ye.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Pn.createElement(rn.Z,{className:en.addIcon,onClick:ti,style:{visibility:ir?"visible":"hidden"}})),Pn.createElement(Ye.Z,{title:"\u5220\u9664"},Pn.createElement(Or.Z,{className:en.deleteIcon,onClick:Mi,style:{visibility:Ki>1?"visible":"hidden"}}))))},Di=({questionTitlePlaceholder:Yt,titleKey:hn,choiceKey:bn,analysisKey:rr,choiceTextKey:Ki,answerKey:Br,choiceOptionsPath:ai,allowChangeMode:ei=!0,form:ui,showAnalysis:Ai=!0})=>{const[ir,ti]=(0,E.useState)(),[Mi,va]=(0,E.useState)(!1);return Pn.createElement("div",{className:en.wrap},Pn.createElement("div",{className:en.questionTitleEditorWrap},Pn.createElement(Ee.default.Item,{label:"\u9898\u5E72",name:hn,labelCol:{span:24},rules:[{required:!0}]},Pn.createElement(kn,{scrollId:Array.isArray(hn)?hn.join("_"):`${hn}`,watch:!0,height:140,placeholder:Yt}))),Pn.createElement(Ee.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Pn.createElement(Ee.default.List,{name:bn,rules:[{validator(ii,ca){const Fi=ca.some(Ur=>Ur[Br]),Hr=ca.findIndex(Ur=>{var ga;return((ga=Ur[Ki])==null?void 0:ga.length)<=0});return Hr!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Gi[Hr]}\u9009\u9879\u7684\u5185\u5BB9`)):Fi?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ii,{add:ca,remove:Fi})=>Pn.createElement("div",{id:Array.isArray(ai)?ai.join("_"):`${ai}`},ii.map((Hr,Ur)=>{var ga=Hr,{key:Ga,name:Ci}=ga,wa=ji(ga,["key","name"]);const Qi=ir===Ga,Ea=()=>{ti(Ga)},dl=Ur<7&&Ur===ii.length-1,Dl=()=>ca({[Ki]:"",[Br]:0}),Zl=()=>Fi(Ci);return Pn.createElement(Ee.default.Item,Zi(wi({},wa),{key:Ga,name:Ci,noStyle:!0}),Pn.createElement(Bi,{choiceTextKey:Ki,answerKey:Br,index:Ur,isEdit:Qi,setInputActive:Ea,form:ui,choiceOptionsPath:ai,allowChangeMode:ei,showAddIcon:dl,addItem:Dl,deleteItem:Zl}))}),ii.length<8&&Pn.createElement("div",{className:`${en.addBtn} mb30`,onClick:()=>ca({[Ki]:"",[Br]:0})},"\u6DFB\u52A0\u9009\u9879"))),Ai&&Pn.createElement("div",{onClick:()=>va(!0)},Pn.createElement(Ee.default.Item,{name:rr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Pn.createElement(Vn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Mi}))))};var zr=ne(59301),li=Object.defineProperty,Ii=Object.defineProperties,ya=Object.getOwnPropertyDescriptors,vi=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,Vi=(Yt,hn,bn)=>hn in Yt?li(Yt,hn,{enumerable:!0,configurable:!0,writable:!0,value:bn}):Yt[hn]=bn,xi=(Yt,hn)=>{for(var bn in hn||(hn={}))jr.call(hn,bn)&&Vi(Yt,bn,hn[bn]);if(vi)for(var bn of vi(hn))Ir.call(hn,bn)&&Vi(Yt,bn,hn[bn]);return Yt},na=(Yt,hn)=>Ii(Yt,ya(hn)),ba=(Yt,hn)=>{var bn={};for(var rr in Yt)jr.call(Yt,rr)&&hn.indexOf(rr)<0&&(bn[rr]=Yt[rr]);if(Yt!=null&&vi)for(var rr of vi(Yt))hn.indexOf(rr)<0&&Ir.call(Yt,rr)&&(bn[rr]=Yt[rr]);return bn};const oa=({value:Yt,onChange:hn,position:bn,removeBlank:rr})=>{const Ki=ai=>{Se.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:en.modal,onOk:()=>{const ei=[...Yt];ei.splice(ai,1),ei.length===0?rr(bn-1):hn(ei)}})},Br=()=>{const ai=[...Yt];ai.push(""),hn(ai)};return zr.createElement(Fe.Z,{className:"ml20"},zr.createElement(Ie.Z,{flex:1},Yt==null?void 0:Yt.map((ai,ei)=>zr.createElement(Fe.Z,{key:`${ai}_${ei}`,className:"mb20"},zr.createElement(De.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:ai,autoSize:{maxRows:3},maxLength:1e3,onBlur:ui=>{const Ai=[...Yt],ir=ui.target.value.trim();Ai[ei]=ir,hn(Ai)}}),zr.createElement(Ye.Z,{title:"\u5220\u9664"},zr.createElement(Or.Z,{className:en.deleteIcon,style:{marginLeft:15,visibility:bn===1&&ei===0?"hidden":"visible"},onClick:()=>Ki(ei)})),zr.createElement(Ye.Z,{title:"\u65B0\u589E\u7B54\u6848"},zr.createElement(rn.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:ei===0?"visible":"hidden"},onClick:()=>{Br()}}))))))},xa=({value:Yt=!0,onChange:hn})=>zr.createElement(er.Z,{checked:!Yt,onChange:bn=>{hn(!bn)}}),Na="\u2581",Po=({questionTitlePlaceholder:Yt,form:hn,name:bn,scoreByBlank:rr="use_blank_score",answerKey:Ki,titleKey:Br="name",analysisKey:ai="analysis",isOrdered:ei="is_ordered"})=>{var ui,Ai;const[ir,ti]=(0,E.useState)(!1),Mi=()=>{const Ur=hn.getFieldValue(["sub_item_banks",...Ki]);hn.setFieldValue(["sub_item_banks",...Ki],Ur==null?void 0:Ur.map((ga,Ga)=>na(xi({},ga),{position:Ga+1})))},va=(0,E.useRef)(),ii=(Ur,ga)=>{for(let Ga=0;Ga<Ur;Ga++)va.current({position:null,answer_text:[""]},ga+Ga);Mi()},ca=(0,E.useRef)(),Fi=Ur=>{ca.current(Ur),Mi()},Hr=(Ai=(ui=hn.getFieldValue("sub_item_banks"))==null?void 0:ui[Ki==null?void 0:Ki[0]])==null?void 0:Ai[Ki==null?void 0:Ki[1]];return zr.createElement("div",{className:en.wrap},zr.createElement("div",{className:en.questionTitleEditorWrap},zr.createElement(Ee.default.Item,{label:"\u9898\u5E72",name:Br,labelCol:{span:24},rules:[{required:!0}]},zr.createElement(kn,{scrollId:"name",watch:!0,height:140,placeholder:Yt,showNullButton:!0,onAddBlank:()=>{const Ur=hn.getFieldValue(["sub_item_banks",...Ki]);ii(1,Ur==null?void 0:Ur.length)}}))),zr.createElement(Ee.default.List,{name:Ki,rules:[{validator(Ur,ga){if((ga==null?void 0:ga.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Ga of ga){const{answer_text:Ci}=Ga||{};if(Ci!=null&&Ci.some(wa=>(wa==null?void 0:wa.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Ur,{add:ga,remove:Ga},{errors:Ci})=>(va.current=ga,ca.current=Ga,zr.createElement(zr.Fragment,null,zr.createElement(Ee.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Ur.map((wa,Qi)=>{var Ea=wa,{key:dl,name:Dl}=Ea,Zl=ba(Ea,["key","name"]);return zr.createElement(Fe.Z,{key:dl,align:"top",wrap:!1},zr.createElement(Ie.Z,{flex:"0 0 auto",className:`${en.blankIndex} pt5`},"\u586B\u7A7A\u9879",Qi+1),zr.createElement(Ie.Z,{flex:1},zr.createElement(Fe.Z,{align:"top",justify:"space-between",wrap:!1},zr.createElement(Ie.Z,{flex:1},zr.createElement(Ee.default.Item,na(xi({},Zl),{name:[Dl,"answer_text"],noStyle:!0}),zr.createElement(oa,{removeBlank:Fi,position:Qi+1}))),(hn==null?void 0:hn.getFieldValue(["sub_item_banks",...rr]))&&zr.createElement(Ie.Z,{flex:"224px",style:{margin:"-2px 0px 0px 20px"}},zr.createElement(Ee.default.Item,na(xi({},Zl),{name:[Dl,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:en.blankInputNumberWrapper}),zr.createElement(pe.Z,{className:en.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),zr.createElement(Ee.default.Item,na(xi({},Zl),{name:[Dl,"position"],noStyle:!0}),zr.createElement(De.default,{type:"hidden"}))))})))),zr.createElement(Ce.ZP,{className:"mb20",onClick:()=>ii(1,Hr==null?void 0:Hr.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),zr.createElement(Fe.Z,{align:"middle"},zr.createElement(Ee.default.Item,{name:[bn,"downcase"],valuePropName:"checked"},zr.createElement(er.Z,null)),zr.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),zr.createElement(Fe.Z,{align:"middle"},zr.createElement(Ee.default.Item,{name:[bn,"no_space"],valuePropName:"checked"},zr.createElement(er.Z,null)),zr.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Hr==null?void 0:Hr.length)>1&&zr.createElement(Fe.Z,{align:"middle",className:(Hr==null?void 0:Hr.length)>1?"mb30":`${en.hide}`},zr.createElement(Ee.default.Item,{name:ei},zr.createElement(xa,null)),zr.createElement(Ie.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),zr.createElement("div",{onClick:()=>ti(!0)},zr.createElement(Ee.default.Item,{name:ai,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},zr.createElement(Vn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ir}))))};var ki=Object.defineProperty,Hi=Object.defineProperties,Aa=Object.getOwnPropertyDescriptors,Ma=Object.getOwnPropertySymbols,lo=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable,qo=(Yt,hn,bn)=>hn in Yt?ki(Yt,hn,{enumerable:!0,configurable:!0,writable:!0,value:bn}):Yt[hn]=bn,co=(Yt,hn)=>{for(var bn in hn||(hn={}))lo.call(hn,bn)&&qo(Yt,bn,hn[bn]);if(Ma)for(var bn of Ma(hn))hl.call(hn,bn)&&qo(Yt,bn,hn[bn]);return Yt},Ho=(Yt,hn)=>Hi(Yt,Aa(hn)),Vo=(Yt,hn)=>{var bn={};for(var rr in Yt)lo.call(Yt,rr)&&hn.indexOf(rr)<0&&(bn[rr]=Yt[rr]);if(Yt!=null&&Ma)for(var rr of Ma(Yt))hn.indexOf(rr)<0&&hl.call(Yt,rr)&&(bn[rr]=Yt[rr]);return bn};const Qr={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Ei=({value:Yt,onChange:hn,form:bn,choiceKey:rr})=>{const Ki=(Yt==null?void 0:Yt.is_answer)===!0,Br=Yt==null?void 0:Yt.choice_text,ai=()=>{var ei;const ui=(ei=bn==null?void 0:bn.getFieldValue(["sub_item_banks",...rr]))==null?void 0:ei.map(Ai=>({choice_text:Ai==null?void 0:Ai.choice_text,is_answer:!1}));bn==null||bn.setFieldValue(["sub_item_banks",...rr],ui),hn(Ho(co({},Yt),{is_answer:!0}))};return E.createElement(Fe.Z,{className:en.choiceWrap,align:"middle",wrap:!1},E.createElement(Ie.Z,{onClick:ai,className:`${en.choiceIndex} ${en.judgementIndex} ${Ki?en.activeAnswer:""}`},Qr[Br]),E.createElement(Ie.Z,{flex:1,className:`${en.editorWrap} ml15`},E.createElement("div",{className:`${en.inputBorder} ${en.placeholder} ${Ki?en.activeJudgementAnswer:""}`},Br)),E.createElement(Ie.Z,{flex:"0 0 auto",className:"ml15"},E.createElement("div",{onClick:ai,className:`${en.setAnswerBtn} ${Ki?en.activeAnswer:""}`},Ki?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ri=({questionTitlePlaceholder:Yt,choiceKey:hn="choices",form:bn,titleKey:rr="name",analysisKey:Ki="analysis"})=>{const[Br,ai]=(0,E.useState)(!1);return E.createElement("div",{className:en.wrap},E.createElement("div",{className:en.questionTitleEditorWrap},E.createElement(Ee.default.Item,{label:"\u9898\u5E72",name:rr,labelCol:{span:24},rules:[{required:!0}]},E.createElement(kn,{scrollId:"name",watch:!0,height:140,placeholder:Yt}))),E.createElement(Ee.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},E.createElement(Ee.default.List,{name:hn,rules:[{validator(ei,ui){return ui.some(ir=>(ir==null?void 0:ir.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},ei=>E.createElement("div",{id:"choices"},ei.map(ui=>{var Ai=ui,{key:ir,name:ti}=Ai,Mi=Vo(Ai,["key","name"]);return E.createElement(Ee.default.Item,Ho(co({},Mi),{key:ir,name:ti,noStyle:!0}),E.createElement(Ei,{form:bn,choiceKey:hn}))})))),E.createElement("div",{onClick:()=>ai(!0)},E.createElement(Ee.default.Item,{name:Ki,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Vn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Br}))))};var hi=Object.defineProperty,Ta=Object.defineProperties,vo=Object.getOwnPropertyDescriptors,go=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable,Lo=(Yt,hn,bn)=>hn in Yt?hi(Yt,hn,{enumerable:!0,configurable:!0,writable:!0,value:bn}):Yt[hn]=bn,nl=(Yt,hn)=>{for(var bn in hn||(hn={}))So.call(hn,bn)&&Lo(Yt,bn,hn[bn]);if(go)for(var bn of go(hn))yo.call(hn,bn)&&Lo(Yt,bn,hn[bn]);return Yt},ea=(Yt,hn)=>Ta(Yt,vo(hn)),gl=(Yt,hn)=>{var bn={};for(var rr in Yt)So.call(Yt,rr)&&hn.indexOf(rr)<0&&(bn[rr]=Yt[rr]);if(Yt!=null&&go)for(var rr of go(Yt))hn.indexOf(rr)<0&&yo.call(Yt,rr)&&(bn[rr]=Yt[rr]);return bn};const ol=Yt=>{var hn=Yt,{value:bn,onChange:rr}=hn,Ki=gl(hn,["value","onChange"]);const Br=ai=>{rr([ai])};return E.createElement(gn.Z,ea(nl({},Ki),{defaultValue:bn==null?void 0:bn[0],onChange:Br}))},pl=Yt=>{if(!Yt)return!1;let hn=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Yt==="|"?(be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Xl=({value:Yt=[],onClose:hn})=>E.createElement(or.Z,{closable:!0,onClose:hn,className:en.keywordTag},Yt==null?void 0:Yt.join(" \u6216 ")),hr=({questionTitlePlaceholder:Yt,form:hn,showKeywords:bn,isMustKeyWords:rr=bn,titleKey:Ki="name",analysisKey:Br="analysis",answerTexts:ai="answer_texts",keywords:ei="keywords",useKeywords:ui="use_keywords",indexs:Ai})=>{const[ir,ti]=(0,E.useState)(!1),[Mi,va]=(0,E.useState)(""),ii=Ee.default.useWatch("sub_item_banks",hn),{use_keywords:ca,score:Fi}=(ii==null?void 0:ii[Ai])||{};return console.log(ca,Fi,"itemValues"),E.createElement("div",{className:en.wrap},E.createElement("div",{className:en.questionTitleEditorWrap},E.createElement(Ee.default.Item,{label:"\u9898\u5E72",name:Ki,labelCol:{span:24},rules:[{required:!0}]},E.createElement(kn,{scrollId:"name",watch:!0,height:140,placeholder:Yt}))),E.createElement(Ee.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:ai,labelCol:{span:24}},E.createElement(ol,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),bn&&!rr&&E.createElement(Ee.default.Item,{hidden:!0,name:ui,valuePropName:"checked"},E.createElement(er.Z,{defaultChecked:!0})),bn&&rr&&E.createElement(Fe.Z,{align:"middle",className:"mb30"},E.createElement(Ee.default.Item,{name:ui,valuePropName:"checked"},E.createElement(er.Z,null)),E.createElement(Ie.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),E.createElement(Ie.Z,null,E.createElement(Ye.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},E.createElement(Kn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(ca||!rr)&&E.createElement(Ee.default.List,{name:ei,rules:[{validator(Hr,Ur){return rr?Ur!=null&&Ur.length?(Ur==null?void 0:Ur.reduce((Ga,Ci)=>Ga+Ci.score,0))>parseFloat(Fi)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Hr,{add:Ur,remove:ga})=>E.createElement(E.Fragment,null,E.createElement("div",{className:`${en.title} mb10`},rr?"\u5173\u952E\u8BCD":E.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),E.createElement(Fe.Z,{align:"middle",className:"font14 mb30"},E.createElement(Ie.Z,{flex:1},E.createElement(De.default,{value:Mi,onChange:Ga=>{va(Ga.target.value)},maxLength:50,allowClear:!0,onPressEnter:Ga=>{var Ci,wa,Qi,Ea;const dl=`${(Ci=Ga.target)==null?void 0:Ci.value}`,Dl=(Qi=(wa=dl==null?void 0:dl.split("|"))==null?void 0:wa.filter(ho=>!!ho))==null?void 0:Qi.map(ho=>ho==null?void 0:ho.trim()),Zl=hn.getFieldValue(["sub_item_banks",...ei]),rs=((Ea=Zl==null?void 0:Zl.map(ho=>ho==null?void 0:ho.keyword))==null?void 0:Ea.flat())||[];for(const ho of Dl)if(rs.includes(ho)){be.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}pl(dl)&&(Ur({keyword:Dl,score:1}),va(""))},className:en.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),E.createElement(Ie.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Hr.map(Ga=>{var Ci=Ga,{key:wa,name:Qi}=Ci,Ea=gl(Ci,["key","name"]);return E.createElement(Fe.Z,{key:wa,className:"mb20",style:{marginRight:148}},E.createElement(Ie.Z,{flex:1},E.createElement(Fe.Z,{align:"middle",justify:"space-between"},E.createElement(Ee.default.Item,ea(nl({},Ea),{name:[Qi,"keyword"]}),E.createElement(Xl,{onClose:()=>ga(Qi)})),rr&&E.createElement(Ee.default.Item,ea(nl({},Ea),{name:[Qi,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:en.blankInputNumberWrapper}),E.createElement(pe.Z,{className:en.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),E.createElement("div",{onClick:()=>ti(!0)},E.createElement(Ee.default.Item,{name:Br,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Vn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ir}))))};var Gn=ne(59301),gr=Object.defineProperty,Vr=Object.defineProperties,Xr=Object.getOwnPropertyDescriptors,si=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable,Li=(Yt,hn,bn)=>hn in Yt?gr(Yt,hn,{enumerable:!0,configurable:!0,writable:!0,value:bn}):Yt[hn]=bn,Oi=(Yt,hn)=>{for(var bn in hn||(hn={}))pr.call(hn,bn)&&Li(Yt,bn,hn[bn]);if(si)for(var bn of si(hn))Jr.call(hn,bn)&&Li(Yt,bn,hn[bn]);return Yt},la=(Yt,hn)=>Vr(Yt,Xr(hn)),mi=(Yt,hn)=>{var bn={};for(var rr in Yt)pr.call(Yt,rr)&&hn.indexOf(rr)<0&&(bn[rr]=Yt[rr]);if(Yt!=null&&si)for(var rr of si(Yt))hn.indexOf(rr)<0&&Jr.call(Yt,rr)&&(bn[rr]=Yt[rr]);return bn},Pa=(Yt,hn,bn)=>new Promise((rr,Ki)=>{var Br=ui=>{try{ei(bn.next(ui))}catch(Ai){Ki(Ai)}},ai=ui=>{try{ei(bn.throw(ui))}catch(Ai){Ki(Ai)}},ei=ui=>ui.done?rr(ui.value):Promise.resolve(ui.value).then(Br,ai);ei((bn=bn.apply(Yt,hn)).next())});const{Panel:qa}=$n.default,Ka=null,Yi=(Yt,hn)=>{var bn=Yt,{globalSetting:rr,loading:Ki,dispatch:Br,editData:ai,onRef:ei=()=>{},isEdit:ui}=bn,Ai=mi(bn,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[ir,ti]=(0,E.useState)(""),[Mi,va]=(0,E.useState)([]),[ii]=Ee.default.useForm();(0,E.useEffect)(()=>{!ai||!ui||(ti(ai==null?void 0:ai.name),va(ai==null?void 0:ai.sub_item_banks),ii.setFieldsValue(Oi({},ai)))},[ai]),(0,E.useEffect)(()=>{va(ii.getFieldValue("sub_item_banks"))},[Ee.default.useWatch("sub_item_banks",ii)]),(0,E.useImperativeHandle)(hn,()=>({onSave:ca,Clear:Fi}));const ca=()=>Pa(void 0,null,function*(){if(!ir)return be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield ii.validateFields()}catch(wa){return console.log(wa,"errInfo"),be.ZP.error(wa.errorFields[0].errors[0]),!1}const Ci=Mi.map(wa=>Oi({id:wa.id>1?wa.id:null},wa));return{name:ir,sub_item_banks:Ci}}),Fi=()=>{ti(""),va([])},Hr={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},Ur=({value:Ci})=>Gn.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},Ci),[ga,Ga]=(0,E.useState)();return Gn.createElement("section",{className:Wt.wrap},Gn.createElement("p",{className:Wt.titleWrap},Gn.createElement("span",{className:Wt.required},"*"),Gn.createElement("span",{className:Wt.title},"\u9898\u5E72\uFF1A")),Gn.createElement(gn.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ir,onChange:Ci=>ti(Ci)}),Gn.createElement(Ee.default,{form:ii,autoComplete:"off"},Gn.createElement(Ee.default.List,{name:"sub_item_banks",rules:[{validator(Ci,wa){return wa?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Ci,{add:wa,remove:Qi})=>{const Ea=ii.getFieldValue("sub_item_banks");return Gn.createElement(Gn.Fragment,null,Gn.createElement($n.default,{className:Ci.length>0?Wt.collapseWrapper:"",bordered:!1,expandIcon:({isActive:dl})=>Gn.createElement("i",{className:`iconfont icon-weizhankai ${dl?Wt.open:Wt.close}`,style:{fontSize:14,transition:"all .2s"}})},Ci.map((dl,Dl)=>{var Zl=dl,{key:rs,name:ho}=Zl,Bs=mi(Zl,["key","name"]),xs,No,yl,ml,Ko,_l,js,Vu,Au,_u,xu,du;return Gn.createElement(qa,{className:Wt.panel,forceRender:!0,header:Gn.createElement("div",{className:Wt.panelHeader},"\u7B2C",Dl+1,"\u5C0F\u9898",Gn.createElement("span",null,"\uFF08",Hr[(xs=Ea==null?void 0:Ea[ho])==null?void 0:xs.item_type],"\uFF09")),extra:Gn.createElement(Fe.Z,{align:"middle",onClick:Uu=>Uu.stopPropagation(),style:{display:"flex",alignItems:"center"}},((No=Ea==null?void 0:Ea[ho])==null?void 0:No.item_type)=="completion"&&Gn.createElement(Ee.default.Item,la(Oi({},Bs),{name:[ho,"score"],className:Wt.blankInputNumberWrapper,style:{marginBottom:0}}),((yl=Ea==null?void 0:Ea[ho])==null?void 0:yl.item_type)=="completion"&&Gn.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",Gn.createElement(Ur,{value:(ml=Ea==null?void 0:Ea[ho])==null?void 0:ml.score}),"\u5206")),((Ko=Ea==null?void 0:Ea[ho])==null?void 0:Ko.item_type)=="completion"&&Gn.createElement(Gn.Fragment,null,Gn.createElement(Et.ZP.Group,{defaultValue:(_l=Ea==null?void 0:Ea[ho])==null?void 0:_l.use_blank_score,className:Wt.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Uu=>{var fu;console.log(ii.getFieldsValue()),ii==null||ii.setFieldValue(["sub_item_banks",ho,"use_blank_score"],(fu=Uu==null?void 0:Uu.target)==null?void 0:fu.value),Ga(new Date)}}),Gn.createElement(Ye.Z,{overlayInnerStyle:{width:460},title:Gn.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Gn.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Gn.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:rs},Gn.createElement(Ee.default.Item,la(Oi({},Bs),{name:ho}),(((js=Ea==null?void 0:Ea[ho])==null?void 0:js.item_type)=="single"||((Vu=Ea==null?void 0:Ea[ho])==null?void 0:Vu.item_type)=="multiple")&&Gn.createElement(Di,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((Au=Ea==null?void 0:Ea[ho])==null?void 0:Au.item_type)!="single",form:ii,choiceKey:[ho,"choices"],titleKey:[ho,"name"],analysisKey:[ho,"analysis"],choiceOptionsPath:["sub_item_banks",ho,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((_u=Ea==null?void 0:Ea[ho])==null?void 0:_u.item_type)=="completion"&&Gn.createElement(Po,{form:ii,name:ho,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:[ho,"use_blank_score"],titleKey:[ho,"name"],analysisKey:[ho,"analysis"],isOrdered:[ho,"is_ordered"],answerKey:[ho,"standard_answer"],key:ga}),((xu=Ea==null?void 0:Ea[ho])==null?void 0:xu.item_type)=="judgement"&&Gn.createElement(ri,{form:ii,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[ho,"name"],analysisKey:[ho,"analysis"],choiceKey:[ho,"choices"]}),((du=Ea==null?void 0:Ea[ho])==null?void 0:du.item_type)=="subjective"&&Gn.createElement(hr,{showKeywords:!0,form:ii,titleKey:[ho,"name"],analysisKey:[ho,"analysis"],answerTexts:[ho,"answer_texts"],useKeywords:[ho,"use_keywords"],keywords:[ho,"keywords"],indexs:ho,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})))})))};var pa=(0,Re.connect)(({loading:Yt,globalSetting:hn})=>({globalSetting:hn,loading:Yt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Yi)),eo=ne(27612),ro=ne(19842),xo=ne(57809),Wl=ne(1710),Qo={flex_box_center:"flex_box_center___xDdtW",flex_space_between:"flex_space_between___J4mFI",flex_box_vertical_center:"flex_box_vertical_center___hDYn6",flex_box_center_end:"flex_box_center_end___H7l1j",flex_box_column:"flex_box_column___TPd2T",questionInfo:"questionInfo___ABq66",label:"label___VQOr7",content:"content____HZ6z",leftPart:"leftPart___YB0y5",rightPart:"rightPart___UVMmS",dragItem:"dragItem___Hbx8k",blackText:"blackText___U4u33",greyText:"greyText___rWIL_",iconWrapper:"iconWrapper___I0kek",contentArea:"contentArea___hGC13",dragging:"dragging___z7VVY",hidden:"hidden___nWAxb",dragIcon:"dragIcon___j91TC",deleteIcon:"deleteIcon___cmCqc",disabled:"disabled___ZlKMj",challengeNameWrapper:"challengeNameWrapper___SpiRb",challengeName:"challengeName___lmQe2",shixunPreviewFooter:"shixunPreviewFooter___u0CzD",shixunInfoWrapper:"shixunInfoWrapper___HzLHD",shixunInfo:"shixunInfo___qaQlF",btnToDetail:"btnToDetail___scXqr",fixedBottom:"fixedBottom___wTBAR",cancelBtn:"cancelBtn___Km4Gi",confirmBtn:"confirmBtn___WrECz",previewBtn:"previewBtn____oGPS",setScoreModalTable:"setScoreModalTable___CjDlp",title:"title___cQWdZ",tipcontent:"tipcontent___A8tZ5",name:"name___CvfT9",tip:"tip___EvoCF",info:"info___y_ayi",img:"img___X9CNn"},Cn=ne(93351),wn=ne(15496),tr=ne(30450),Zr=ne(78162),_r=ne(61648),Ar=ne(78170),Qn=({open:Yt,onCancel:hn,onOk:bn})=>{const rr=(0,wn.g)(),[Ki,Br,ai,ei]=(0,Zr.U)(tr.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[ui,Ai]=(0,E.useState)(!1);(0,E.useEffect)(()=>{Yt&&ai({page:1,limit:10,type:0},!0).then(ii=>{(ii==null?void 0:ii.shixuns_count)===0&&Ai(!0)})},[Yt]);const[ir,ti]=(0,E.useState)([]),[Mi,va]=(0,E.useState)([]);return E.createElement(Se.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:Yt,width:948,centered:!0,closable:!0,onCancel:hn,onOk:()=>bn(Mi),destroyOnClose:!0},E.createElement(Fe.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},E.createElement(Ie.Z,null,E.createElement(ro.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:rr,onChange:ii=>{ai({page:1,discipline_id:ii==null?void 0:ii[0],sub_discipline_id:ii==null?void 0:ii[1]})}}),E.createElement(xo.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u521D\u7EA7",value:1},{label:"\u4E2D\u7EA7",value:2},{label:"\u4E2D\u9AD8\u7EA7",value:3},{label:"\u9AD8\u7EA7",value:4}],onChange:ii=>ai({page:1,diff:ii})}),E.createElement(xo.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:ii=>ai({page:1,shixun_publish_status:ii})})),E.createElement(Cn.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:ii=>{ai({keyword:ii,page:1})}})),ui?E.createElement("div",null,E.createElement(_r.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,vt.xg)("/shixuns")})):E.createElement(Wl.default,{loading:Br,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(ii,ca)=>E.createElement("div",{style:{display:"flex",alignItems:"center"}},E.createElement("div",{className:ca!=null&&ca.high_resources_consume?Qo.title:"",title:ii||"--"},E.createElement(Je.Z,{key:1,showLines:1,showTextOnly:!0,value:ii||"--"})),(ca==null?void 0:ca.high_resources_consume)&&E.createElement(Ar.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(ii,ca,Fi)=>E.createElement("span",null,ii||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:E.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",E.createElement(Ye.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},E.createElement(Kn.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(ii,ca,Fi)=>E.createElement("span",null,ii||"- -")},{title:"\u64CD\u4F5C",render(ii,ca){const{title:Fi,challenge_names:Hr,author_name:Ur,identifier:ga,author_school_name:Ga,study_count:Ci}=ca||{};return E.createElement("div",null,E.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{Se.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:E.createElement("div",null,E.createElement(Je.Z,{value:Fi,style:{marginBottom:18}}),E.createElement("div",{className:Qo.challengeNameWrapper},Hr.map((wa,Qi)=>E.createElement("div",{className:Qo.challengeName,key:Qi},"\u7B2C",(0,vt.EM)(Qi+1),"\u9898\xA0",wa))),E.createElement(Fe.Z,{className:Qo.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},E.createElement(Ie.Z,{className:Qo.shixunInfoWrapper},E.createElement("span",null,"\u521B\u5EFA\u8005"),E.createElement("span",{className:Qo.shixunInfo},Ur.split("\u3001")[0]),E.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),E.createElement("span",{className:Qo.shixunInfo},Ga),E.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),E.createElement("span",{className:Qo.shixunInfo},Ci)),E.createElement(Ce.ZP,{type:"primary",className:Qo.btnToDetail,onClick:()=>(0,vt.xg)(`/shixuns/${ga}/challenges?exercise=true`)},E.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(ca==null?void 0:ca.shixun_tag_num)===1&&E.createElement("a",{target:"_blank",href:`/shixuns/${ca==null?void 0:ca.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:ei==null?void 0:ei.items,rowSelection:{type:"radio",selectedRowKeys:ir,preserveSelectedRowKeys:!0,getCheckboxProps:ii=>({disabled:ii.shixun_tag_num===1}),onChange(ii,ca){var Fi,Hr,Ur;console.log(ii),ti(ii);const ga=[];for(const Ci of Mi)ii.includes(Ci.id)&&ga.push(Ci);const Ga=ga.map(Ci=>Ci.id);for(const Ci of ca)Ci&&ii.includes(Ci.id)&&!Ga.includes(Ci.id)&&ga.push({id:Ci.id,difficulty:Ci.level,identifier:Ci.identifier,name:Ci.name,real_name:(Fi=Ci==null?void 0:Ci.author_name)==null?void 0:Fi.split("\u3001")[0],school_name:Ci.author_school_name,challenge_names:Ci.challenge_names,challenges:(Hr=Ci.challenge_names)==null?void 0:Hr.map((wa,Qi)=>({subject:wa,id:Qi,score:5})),score:((Ur=Ci.challenge_names)==null?void 0:Ur.length)*5,study_count:Ci.study_count,challenges_count:Ci.challenges_count});va(ga)}},pagination:{current:Ki.page,pageSize:Ki.limit,total:ei==null?void 0:ei.items_count,showTotal:ii=>E.createElement("span",null,"\u5171\xA0",E.createElement("span",{style:{color:"#165DFF"}},ii),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(ii,ca){ai({page:ii,limit:ca})},size:"default"},scroll:{y:400}}))},Er=ne(47572),Yr=ne(25754),yi=(Yt,hn,bn)=>new Promise((rr,Ki)=>{var Br=ui=>{try{ei(bn.next(ui))}catch(Ai){Ki(Ai)}},ai=ui=>{try{ei(bn.throw(ui))}catch(Ai){Ki(Ai)}},ei=ui=>ui.done?rr(ui.value):Promise.resolve(ui.value).then(Br,ai);ei((bn=bn.apply(Yt,hn)).next())}),Za=({visible:Yt,getdata:hn,onCancel:bn,onRandomExchange:rr,selectFromProblemSet:Ki,questionParams:Br})=>{const[ai,ei]=(0,E.useState)(!1),[ui,Ai]=(0,E.useState)(!1),[ir,ti]=(0,E.useState)({}),Mi=(0,Re.useParams)(),[va,ii]=(0,E.useState)(),ca=(Fi,Hr)=>yi(void 0,null,function*(){Ai(!0);const Ur=yield(0,$e.ZP)(`/api/exercises/${Mi.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:Br.id,item_bank_id:Fi,shixuns_info:[{id:Fi,is_copy:Hr!=1,is_use:Hr!=1}]}});Ai(!1),Ur!=null&&Ur.status||(be.ZP.info("\u6362\u9898\u6210\u529F"),bn(),hn())});return E.createElement(Se.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:Yt,onCancel:bn,centered:!0,maskClosable:!0,footer:null},E.createElement(Fe.Z,{justify:"center",className:"pb20"},E.createElement(eo.Z,{onClick:rr},"\u968F\u673A\u66F4\u6362"),(Br==null?void 0:Br.type)!=="PRACTICAL"&&E.createElement(Ce.ZP,{style:{marginLeft:24},onClick:Ki},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(Br==null?void 0:Br.type)==="PRACTICAL"&&E.createElement(Ce.ZP,{style:{marginLeft:24},onClick:()=>{ei(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),E.createElement(Qn,{open:ai,onCancel:()=>ei(!1),onOk:Fi=>yi(void 0,null,function*(){if(console.log("----selectedRows",Fi,Mi),(Fi==null?void 0:Fi.length)<=0){be.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let Hr=Fi==null?void 0:Fi.map(ga=>ga==null?void 0:ga.id),Ur=yield(0,Yr.Tr)({id:[...Hr],course_id:Mi.coursesId,type:"shixun"});(Ur==null?void 0:Ur.student_count)===0?ca(Hr==null?void 0:Hr[0],1):(ii(Hr),ti(Ur)),ei(!1)})}),E.createElement(Er.Z,{resdata:ir,type:"shixun",okloading:ui,oktext:(ir==null?void 0:ir.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Fi=>yi(void 0,null,function*(){ca(va==null?void 0:va[0],2)})}))},Ya=ne(32268),to=ne(24334),Ia=ne(99957),Xi=ne(49034),Lr=ne(66911),aa=Object.defineProperty,Ba=Object.defineProperties,fo=Object.getOwnPropertyDescriptors,no=Object.getOwnPropertySymbols,ja=Object.prototype.hasOwnProperty,Ao=Object.prototype.propertyIsEnumerable,Ua=(Yt,hn,bn)=>hn in Yt?aa(Yt,hn,{enumerable:!0,configurable:!0,writable:!0,value:bn}):Yt[hn]=bn,Ni=(Yt,hn)=>{for(var bn in hn||(hn={}))ja.call(hn,bn)&&Ua(Yt,bn,hn[bn]);if(no)for(var bn of no(hn))Ao.call(hn,bn)&&Ua(Yt,bn,hn[bn]);return Yt},Bo=(Yt,hn)=>Ba(Yt,fo(hn)),bo=(Yt,hn,bn)=>new Promise((rr,Ki)=>{var Br=ui=>{try{ei(bn.next(ui))}catch(Ai){Ki(Ai)}},ai=ui=>{try{ei(bn.throw(ui))}catch(Ai){Ki(Ai)}},ei=ui=>ui.done?rr(ui.value):Promise.resolve(ui.value).then(Br,ai);ei((bn=bn.apply(Yt,hn)).next())}),zl=({data:Yt,submit:hn,goBack:bn,loading:rr,onTypeScore:Ki,editPreview:Br=!1,onSkipExamination:ai,selectValue:ei,onExchange:ui,getdata:Ai,handleMarkWrongQuestion:ir})=>{var ti,Mi,va,ii,ca,Fi,Hr,Ur,ga,Ga,Ci;const wa=(0,E.useRef)(),[Qi,Ea]=(0,E.useState)(null),[dl,Dl]=(0,E.useState)(!1),[Zl,rs]=(0,E.useState)(!1),ho=(0,E.useRef)(),[Bs]=Ee.default.useForm(),xs=(0,Re.useParams)(),[No,yl]=(0,E.useState)(!1);(0,E.useEffect)(()=>{Dl(!0)},[]),(0,E.useEffect)(()=>{Br||(0,vt.Dk)("\u8BD5\u5377\u9884\u89C8")},[Br]);const ml=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Ko={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",JUDGMENT:"\u5224\u65AD\u9898",COMPLETION:"\u586B\u7A7A\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898"},_l={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},js=sr=>{var Ui;const Co=[];return E.createElement(E.Fragment,null,E.createElement("aside",{className:ye.single},(Ui=sr==null?void 0:sr.choices)==null?void 0:Ui.map((Wa,Te)=>(Wa.is_answer&&Co.push(Lr.k4[Te]),E.createElement("ul",{key:Te},E.createElement("li",null,Lr.k4[Te],"\u3001"),E.createElement("li",null,E.createElement(Je.Z,{value:Wa.choice_text})))))),E.createElement("div",{className:ye.analysis},E.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Co.join(""),E.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",ml[sr.difficulty])),E.createElement("aside",null,E.createElement("span",{className:ye.text},"\u89E3\u6790:"),E.createElement(Je.Z,{value:sr.analysis?sr.analysis:"\u6682\u65E0\u89E3\u6790"})),E.createElement("ul",null,E.createElement("li",null,E.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(sr==null?void 0:sr.discipline_name)||"--"}/${sr==null?void 0:sr.sub_discipline_name}`),E.createElement(Ye.Z,{title:sr==null?void 0:sr.tag_discipline_name},E.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},E.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),sr==null?void 0:sr.tag_discipline_name)))))},Vu=(sr,Ui)=>{var Co;const Wa=(Co=sr==null?void 0:sr.standard_answer)==null?void 0:Co.map((Te,ot)=>{var Rt;return E.createElement("div",{key:ot},`\u7B54\u6848\uFF08\u586B\u7A7A${Te==null?void 0:Te.position}\uFF09\uFF1A${(Rt=Te==null?void 0:Te.answer_text)==null?void 0:Rt.join("\u3001")}`)});return E.createElement(E.Fragment,null,E.createElement("div",{className:ye.analysis},E.createElement("div",{style:{display:"flex"}},E.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),E.createElement("div",null,Wa)),E.createElement("aside",null,E.createElement("span",{className:ye.text},"\u89E3\u6790:"),E.createElement(Je.Z,{value:sr.analysis?sr.analysis:"\u6682\u65E0\u89E3\u6790"})),E.createElement("ul",null,E.createElement("li",null,E.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),Ui?`${(Ui==null?void 0:Ui.discipline_name)||"--"}/${Ui==null?void 0:Ui.sub_discipline_name}`:`${(sr==null?void 0:sr.discipline_name)||"--"}/${sr==null?void 0:sr.sub_discipline_name}`),E.createElement(Ye.Z,{title:Ui?Ui==null?void 0:Ui.tag_discipline_name:sr==null?void 0:sr.tag_discipline_name},E.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},E.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Ui?Ui==null?void 0:Ui.tag_discipline_name:sr==null?void 0:sr.tag_discipline_name)))))},Au=sr=>{var Ui;const Co=(Ui=sr==null?void 0:sr.standard_answer)==null?void 0:Ui.map((Wa,Te)=>E.createElement("div",{key:Te},`\u7B54\u6848\uFF08\u586B\u7A7A${(Wa==null?void 0:Wa.position)||(Wa==null?void 0:Wa.exercise_choice_id)}\uFF09\uFF1A${Wa==null?void 0:Wa.answer_text}`));return E.createElement(E.Fragment,null,E.createElement("div",{className:ye.analysis},E.createElement("div",{style:{display:"flex"}},E.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),E.createElement("div",null,Co)),E.createElement("aside",null,E.createElement("span",{className:ye.text},"\u89E3\u6790:"),E.createElement(Je.Z,{value:sr.analysis?sr.analysis:"\u6682\u65E0\u89E3\u6790"})),E.createElement("ul",null,E.createElement("li",null,E.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(sr==null?void 0:sr.discipline_name)||"--"}/${sr==null?void 0:sr.sub_discipline_name}`),E.createElement(Ye.Z,{title:sr==null?void 0:sr.tag_discipline_name},E.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},E.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),sr==null?void 0:sr.tag_discipline_name)))))},_u=(sr,Ui)=>{var Co;return E.createElement("div",{className:ye.analysis},E.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(Co=sr==null?void 0:sr.answer_texts)==null?void 0:Co[0]),E.createElement("aside",null,E.createElement("span",{className:ye.text},"\u89E3\u6790:"),E.createElement(Je.Z,{value:sr.analysis?sr.analysis:"\u6682\u65E0\u89E3\u6790"})),E.createElement("ul",null,E.createElement("li",null,E.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),Ui?`${(Ui==null?void 0:Ui.discipline_name)||"--"}/${Ui==null?void 0:Ui.sub_discipline_name}`:`${(sr==null?void 0:sr.discipline_name)||"--"}/${sr==null?void 0:sr.sub_discipline_name}`),E.createElement(Ye.Z,{title:Ui?Ui==null?void 0:Ui.tag_discipline_name:sr==null?void 0:sr.tag_discipline_name},E.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},E.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Ui?Ui==null?void 0:Ui.tag_discipline_name:sr==null?void 0:sr.tag_discipline_name))))},xu=sr=>{var Ui,Co;return E.createElement("div",{className:ye.analysis},E.createElement("aside",null,E.createElement("span",{className:ye.text},"\u9884\u671F\u8F93\u51FA:"),E.createElement(Je.Z,{value:(Ui=sr==null?void 0:sr.program_attr)==null?void 0:Ui.description})),E.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((Co=sr==null?void 0:sr.program_attr)==null?void 0:Co.answer_text)||"--"),E.createElement("aside",null,E.createElement("span",{className:ye.text},"\u89E3\u6790:"),E.createElement(Je.Z,{value:sr.analysis?sr.analysis:"\u6682\u65E0\u89E3\u6790"})),E.createElement("ul",null,E.createElement("li",null,E.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(sr==null?void 0:sr.discipline_name)||"--"}/${sr==null?void 0:sr.sub_discipline_name}`),E.createElement(Ye.Z,{title:sr==null?void 0:sr.tag_discipline_name},E.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},E.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),sr==null?void 0:sr.tag_discipline_name))))},du=(sr,Ui)=>{var Co;return E.createElement("div",null,(Co=sr==null?void 0:sr.sub_item_banks)==null?void 0:Co.map((Wa,Te)=>{var ot,Rt;const qt=[];return E.createElement(E.Fragment,null,E.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},Ui+1+"."+(Te+1),"\uFF08",Ko[Wa.item_type]||_l[Wa.item_type],"\uFF09",Wa.name),(Wa.item_type=="SINGLE"||Wa.item_type=="MULTIPLE"||Wa.item_type=="JUDGMENT"||Wa.item_type=="single"||Wa.item_type=="multiple"||Wa.item_type=="judgement")&&E.createElement(E.Fragment,null,E.createElement("aside",{className:ye.single},(ot=Wa==null?void 0:Wa.choices)==null?void 0:ot.map((an,cn)=>(an.is_answer&&qt.push(Lr.k4[cn]),E.createElement("ul",{key:cn},E.createElement("li",null,Lr.k4[cn],"\u3001"),E.createElement("li",null,E.createElement(Je.Z,{value:an.choice_text})))))),E.createElement("div",{className:ye.analysis},E.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",qt.join(""),E.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",ml[Wa.difficulty])),E.createElement("aside",null,E.createElement("span",{className:ye.text},"\u89E3\u6790:"),E.createElement(Je.Z,{value:Wa.analysis?Wa.analysis:"\u6682\u65E0\u89E3\u6790"})),E.createElement("ul",null,E.createElement("li",null,E.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(sr==null?void 0:sr.discipline_name)||"--"}/${sr==null?void 0:sr.sub_discipline_name}`),E.createElement(Ye.Z,{title:sr==null?void 0:sr.tag_discipline_name},E.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},E.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),sr==null?void 0:sr.tag_discipline_name))))),(Wa.item_type=="COMPLETION"||Wa.item_type=="completion")&&Vu(Wa,sr),(Wa.item_type=="SUBJECTIVE"||Wa.item_type=="subjective")&&_u(Wa,sr),((Rt=Yt==null?void 0:Yt.exam)==null?void 0:Rt.exercise_status)===3&&E.createElement("div",{className:"flex gap-20px mt20"},E.createElement(Ia.Z,{state:Wa==null?void 0:Wa.is_wrong,onClick:()=>{ir==null||ir({value:Bo(Ni({},Wa),{question_id:Wa==null?void 0:Wa.id,question_score:Wa==null?void 0:Wa.score})})}}),Wa.item_type=="single"&&E.createElement(Ce.ZP,{style:{color:"#3061D0"},onClick:()=>{ic({value:Wa})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},Uu=sr=>{var Ui,Co,Wa;return E.createElement("div",{style:{marginTop:"12px"}},(Co=(Ui=sr==null?void 0:sr.shixun)==null?void 0:Ui.challenges)==null?void 0:Co.map((Te,ot)=>E.createElement("div",{className:"c-grey-666 font14 mb10 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},E.createElement("div",null,E.createElement("span",{className:"mr5"},"\u7B2C",ot+1,"\u5173"),E.createElement(Ye.Z,{key:ot,title:Te==null?void 0:Te.challenge_name},E.createElement("span",null,(0,vt.Pq)(Te==null?void 0:Te.challenge_name,44)))),Br&&E.createElement("div",null,"\u5206\u503C\uFF1A",Te.score,"\u5206"))),E.createElement(Re.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(Wa=sr==null?void 0:sr.shixun)==null?void 0:Wa.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),E.createElement("div",{style:{clear:"both"}}))},fu=sr=>{let Ui=sr.questions_score/sr.questions_count;Se.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:E.createElement("div",{className:ye.modalColumn},E.createElement("div",{className:ye.modalRow,style:{justifyContent:"flex-start"}},E.createElement("sup",{className:ye.sup},"*"),E.createElement("span",null,sr==null?void 0:sr.name,"\uFF1A"),E.createElement(pe.Z,{min:0,precision:1,defaultValue:Ui,onChange:Co=>{Ui=Co}}),E.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>bo(void 0,null,function*(){var Co;if(!Ui)return be.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const Wa={type:sr==null?void 0:sr.type,score:Ui,scoreTotal:Number((Co=Ui*sr.questions_count)==null?void 0:Co.toFixed(1))};Ki(Wa)})})},Gu=()=>{let sr="";Se.default.confirm({icon:null,centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:E.createElement("div",{className:ye.modalColumn},E.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},E.createElement("img",{style:{marginRight:5},src:Zt.Z}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),E.createElement("div",{className:ye.modalRow,style:{marginTop:20}},E.createElement("sup",{className:ye.sup},"*"),E.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),E.createElement(De.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:sr,onChange:Ui=>{sr=Ui.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>bo(void 0,null,function*(){var Ui;if(!sr)return be.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Co=[],Wa=[],Te=[],ot=[];(Ui=Yt==null?void 0:Yt.questionList)==null||Ui.forEach(qt=>{var an;(an=qt.questions)==null||an.forEach(cn=>{let Fn=qt.questions_score/qt.questions_count;Fn=Fn&&Fn.toFixed(1),qt.type==="COMBINATION"&&Te.push({id:cn.id,sub_item_bank_ids:cn.sub_item_banks.map(Un=>Un.id)}),qt.type==="PRACTICAL"?ot.push(cn.id):(Co.push(cn.id),Wa.push(Fn))})}),console.log("-----",Te),yield hn({item_bank_ids:Co,item_bank_scores:Wa,name:sr,combination_item_banks:Te,shixun_ids:ot})})})},hu=(sr,Ui,Co,Wa)=>{var Te;const ot=`${location.pathname}${location.search}`,Rt=(Te=Wa.questions)==null?void 0:Te.map(qt=>qt==null?void 0:qt.id);if(ot.includes("exercise"))ho.current={id:sr,ids:Rt,type:Ui,index:Co},rs(!0);else{let qt=Se.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u8981\u66F4\u6362\u8BE5\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!0,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>bo(void 0,null,function*(){qt.update({cancelButtonProps:{disabled:!0}}),yield ui({single_question_id:sr,seleted_item_bank_ids:Rt},{type:Ui,index:Co}),qt.update({cancelButtonProps:{disabled:!1}}),be.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},Bu=sr=>{var Ui;const Co=(Ui=sr.questions)==null?void 0:Ui.map(ot=>ot==null?void 0:ot.id),Wa=sr.name;let Te=Se.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${Wa}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>bo(void 0,null,function*(){Te.update({cancelButtonProps:{disabled:!0}}),yield ui({seleted_item_bank_ids:Co},{type:sr.type}),Te.update({cancelButtonProps:{disabled:!1}}),be.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${Wa}\u8BD5\u9898`)})})},Vs=()=>{let sr=Se.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362\u9884\u89C8\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>bo(void 0,null,function*(){sr.update({cancelButtonProps:{disabled:!0}}),yield ui(),sr.update({cancelButtonProps:{disabled:!1}}),be.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},pu=sr=>{console.log(sr,"key"),ai(sr-1)},eu=(sr,Ui)=>{var Co,Wa;if(Ui==="SINGLE")return E.createElement(E.Fragment,null,E.createElement(Gt,{ref:wa,editData:sr,isEdit:!0}),E.createElement(Pe.Z,null));if(Ui==="MULTIPLE")return E.createElement(E.Fragment,null,E.createElement(jn,{ref:wa,editData:sr,isEdit:!0}),E.createElement(Pe.Z,null));if(Ui==="JUDGMENT")return E.createElement(E.Fragment,null,E.createElement(Bt,{ref:wa,editData:sr,isEdit:!0}),E.createElement(Pe.Z,null));if(Ui==="COMPLETION")return E.createElement(E.Fragment,null,E.createElement(Pt,{ref:wa,editData:sr,isEdit:!0}),E.createElement(Pe.Z,null));if(Ui==="SUBJECTIVE")return E.createElement(E.Fragment,null,E.createElement(cr,{ref:wa,editData:sr,isEdit:!0}),E.createElement(Pe.Z,null));if(Ui==="COMBINATION")return E.createElement(E.Fragment,null,E.createElement(pa,{ref:wa,editData:sr,isEdit:!0}),E.createElement(Pe.Z,null));if(Ui==="BPROGRAM")return E.createElement(E.Fragment,null,E.createElement(Ee.default,{form:Bs,style:{marginTop:20},onFinishFailed:Te=>{var ot,Rt;Te.errorFields[0].name.includes("standard_answers")?be.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):be.ZP.error(Te.errorFields[0].errors[0]),Bs.scrollToField((Rt=(ot=Te==null?void 0:Te.errorFields)==null?void 0:ot[0])==null?void 0:Rt.name,{behavior:"smooth",block:"center"})},onFinish:Te=>bo(void 0,null,function*(){var ot;let Rt=Bo(Ni({question_score:sr.score},Te),{question_type:8,hack:Bo(Ni({},Te.hack),{difficult:sr.program_attr.difficult}),hack_codes:Bo(Ni({},Te.hack_codes),{code:to.Base64.encode((ot=Te.hack_codes)==null?void 0:ot.code)})});No&&(Rt.is_cover=1);const qt=yield(0,$e.ZP)(`/api/exercise_questions/${sr.id}.json`,{method:"put",body:Rt});(qt==null?void 0:qt.status)===0&&(be.ZP.success("\u7F16\u8F91\u6210\u529F"),pu(ei+1)),Ea(null)})},E.createElement(Ya.tc,{form:Bs,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(Co=sr==null?void 0:sr.program_attr)==null?void 0:Co.identifier,answerKey:"standard_answers"}),E.createElement(Pe.Z,null)));if(Ui==="PROGRAM"&&Re.history.push(`/problems/${(Wa=sr==null?void 0:sr.program_attr)==null?void 0:Wa.identifier}/edit?type=exercises&express_id=${xs.categoryId}&question_id=${sr==null?void 0:sr.id}&score=${sr==null?void 0:sr.score}&callback_url=${location.pathname}&select=${ei}&exercise=true`),Ui==="PRACTICAL")return E.createElement(E.Fragment,null,E.createElement(Tn,{ref:wa,editData:sr,isEdit:!0}),E.createElement(Pe.Z,null))},ks=(sr,Ui)=>bo(void 0,null,function*(){var Co,Wa,Te,ot,Rt,qt;const an=yield(Co=wa.current)==null?void 0:Co.onSave();if(!an)return;const cn=_n=>{const Fr=_n.map($r=>$r.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(Fr).size!==Fr.length},Fn={question_score:Ui.score,analysis:an.analysis};if(sr==="SINGLE"||sr==="MULTIPLE"||sr==="JUDGMENT"){if(sr!=="JUDGMENT"&&cn(an==null?void 0:an.choices)){be.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}const _n=[],Fr=[];Fn.question_type=sr==="JUDGMENT"?2:1,Fn.question_title=an==null?void 0:an.name,(Wa=an==null?void 0:an.choices)==null||Wa.forEach((yr,$r)=>{_n.push(yr.choice_text),yr!=null&&yr.is_answer&&Fr.push($r+1)}),Fn.question_choices=_n,Fn.standard_answers=Fr}if(sr==="COMPLETION"){let _n=(Te=an==null?void 0:an.standard_answers)==null?void 0:Te.map(($r,ni)=>Number($r==null?void 0:$r.score)?null:ni+1).filter($r=>$r!==null);if((_n==null?void 0:_n.length)>0)return be.ZP.warning(`\u7B2C${_n.join("\u3001")}\u9879\u7684\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A`),!1;let Fr=(ot=an==null?void 0:an.standard_answers)==null?void 0:ot.reduce(($r,ni)=>$r+(Number(ni==null?void 0:ni.score)||0),0);if(console.log(parseFloat(Fr.toFixed(2)),Fn==null?void 0:Fn.question_score,222),parseFloat(Fr.toFixed(2))!=(Fn==null?void 0:Fn.question_score))return be.ZP.warning("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01"),!1;Fn.is_ordered=an.is_ordered,Fn.question_title=an==null?void 0:an.name,Fn.use_blank_score=an==null?void 0:an.use_blank_score,Fn.question_type=3;const yr=[];(Rt=an==null?void 0:an.standard_answers)==null||Rt.forEach(($r,ni)=>{yr.push({choice_id:$r.position,answer_text:$r.answer_text,score:$r.score})}),Fn.standard_answers=yr,Fn.downcase=an==null?void 0:an.downcase,Fn.no_space=an==null?void 0:an.no_space}if(sr==="SUBJECTIVE"&&(console.log("editorData"),console.log(an),Fn.question_title=an==null?void 0:an.name,Fn.question_type=4,Fn.answer_texts=an==null?void 0:an.answer_texts,Fn.use_keywords=an==null?void 0:an.use_keywords,Fn.keywords=an==null?void 0:an.keywords),sr==="COMBINATION"){Fn.question_title=an==null?void 0:an.name,Fn.question_type=7;try{Fn.sub_questions=(qt=an==null?void 0:an.sub_item_banks)==null?void 0:qt.map((_n,Fr)=>{var yr,$r,ni;if((_n==null?void 0:_n.item_type)=="single"||(_n==null?void 0:_n.item_type)=="multiple"){if(cn(_n==null?void 0:_n.choices))throw new Error(`\u7B2C${Fr+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const ci=[],Ji=[];return(yr=_n==null?void 0:_n.choices)==null||yr.forEach((Pi,$i)=>{ci.push(Pi.choice_text),Pi!=null&&Pi.is_answer&&Ji.push($i+1)}),{id:_n.id,question_id:_n.id,question_title:_n.name,difficulty:_n.difficulty,question_type:(_n==null?void 0:_n.item_type)=="single"?0:(_n==null?void 0:_n.item_type)=="multiple"?1:2,question_choices:ci,standard_answers:Ji,analysis:_n.analysis,question_score:_n==null?void 0:_n.score}}else if((_n==null?void 0:_n.item_type)=="completion"){let ci=($r=_n==null?void 0:_n.standard_answer)==null?void 0:$r.reduce((Pi,$i)=>Pi+(Number($i==null?void 0:$i.score)||0),0);if(parseFloat(ci.toFixed(2))!=(_n==null?void 0:_n.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const Ji=[];return(ni=_n==null?void 0:_n.standard_answer)==null||ni.forEach((Pi,$i)=>{Ji.push({choice_id:Pi.position,answer_text:Pi.answer_text,score:Pi.score})}),{id:_n.id,question_id:_n.id,is_ordered:_n.is_ordered,question_title:_n.name,difficulty:_n.difficulty,question_type:3,standard_answers:Ji,use_blank_score:_n.use_blank_score,analysis:_n.analysis,downcase:_n==null?void 0:_n.downcase,no_space:_n==null?void 0:_n.no_space,question_score:_n==null?void 0:_n.score}}else if((_n==null?void 0:_n.item_type)=="subjective")return{id:_n.id,question_id:_n.id,question_title:_n.name,question_type:4,difficulty:_n.difficulty,answer_texts:_n==null?void 0:_n.answer_texts,analysis:_n.analysis,question_score:_n==null?void 0:_n.score,use_keywords:_n.use_keywords,keywords:_n==null?void 0:_n.keywords}})}catch(_n){be.ZP.warning(_n.message);return}delete Fn.analysis}let Un=!1;(Ui==null?void 0:Ui.is_my)===1&&(Un=yield new Promise((Fr,yr)=>{Se.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>{Fr(!0)},onCancel:()=>{Fr(!1)}})})),Un&&(Fn.is_cover=1);const Wn=sr!=="PRACTICAL"?yield(0,$e.ZP)(`/api/exercise_questions/${Ui.id}.json`,{method:"put",body:Fn}):yield(0,$e.ZP)(`/api/exercise_questions/${Ui.id}/update_shixun_score.json`,{method:"post",body:Ni({},an)});(Wn==null?void 0:Wn.status)===0&&(be.ZP.success("\u7F16\u8F91\u6210\u529F"),pu(ei+1),Ea(null))}),Eu=()=>bo(void 0,null,function*(){(0,Re.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u66F4\u65B0\u8BD5\u5377\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,$e.ZP)(`/api/exercises/${xs.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield ai(ei),be.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,Re.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),ic=({value:sr}={})=>{var Ui;const Co=[];let Wa=[];const Te=(Ui=sr==null?void 0:sr.choices)==null?void 0:Ui.map((Rt,qt)=>{var an;const cn=qt+1;return Rt!=null&&Rt.is_answer&&(Co.push(cn),Wa.push(cn)),{value:cn,label:E.createElement(Je.Z,{className:"c-black font14",value:`${(an=Lr.k4)==null?void 0:an[qt]}. ${Rt==null?void 0:Rt.choice_text}`}),disabled:Rt==null?void 0:Rt.origin_standard_answer}}),ot=Se.default.confirm({centered:!0,icon:null,title:"\u589E\u8BBE\u6B63\u786E\u7B54\u6848",width:800,content:E.createElement(E.Fragment,null,"\u5F53\u524D\u8BD5\u9898\u7684\u6B63\u786E\u7B54\u6848\u4E3A ",Co==null?void 0:Co.map(Rt=>{var qt;return(qt=Lr.k4)==null?void 0:qt[Rt-1]}),"\uFF0C\u8BF7\u9009\u62E9\u9700\u8981\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u7684\u9009\u9879\u3002",E.createElement("br",null),"\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u9009\u4E2D\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u4EFB\u4E00\u9009\u9879\u7684\u5B66\u751F\u4E5F\u4F1A\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u4F46\u4E0D\u4F1A\u4FEE\u6539\u5F53\u524D\u8BD5\u9898\u7684\u9898\u578B\u3002\u53D6\u6D88\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u4E5F\u4F1A\u91CD\u65B0\u8BA1\u7B97\u5BF9\u5E94\u5B66\u751F\u7684\u5F97\u5206\u3002",E.createElement("br",null),E.createElement(et.default.Group,{className:"flex-col mt20",options:Te,defaultValue:Wa,onChange:Rt=>{Wa=Rt}})),onOk:()=>bo(void 0,null,function*(){const Rt=yield(0,$e.ZP)(`/api/exercises/${xs.categoryId}/questions/${sr==null?void 0:sr.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:Wa}});(Rt==null?void 0:Rt.status)===0&&(be.ZP.success("\u4FEE\u6539\u6210\u529F"),pu(ei+1))})})},Tu=(ti=Yt==null?void 0:Yt.questionList)==null?void 0:ti.reduce((sr,Ui)=>sr+Number(Ui.questions_score),0),vc=Br&&((Mi=Yt==null?void 0:Yt.exam)==null?void 0:Mi.exercise_status)!==1;return E.createElement("section",{className:ye.wrap},E.createElement("div",{id:"id_left_preview",className:ye.left,onMouseEnter:sr=>{const Ui=document.getElementById("id_left_preview");Ui.style.overflowY="auto"},onMouseLeave:sr=>{const Ui=document.getElementById("id_left_preview");Ui.style.overflowY="hidden"}},E.createElement("div",{className:ye.title},E.createElement("div",{className:"body-overflow-initial"},E.createElement("b",null),E.createElement("span",null,"\u7B54\u9898\u5361"))),E.createElement("div",{className:ye.total},E.createElement("div",null,E.createElement("img",{src:Mt}),E.createElement("span",null,"\u9898\u6570(\u9053)"),E.createElement("aside",null,Yt==null?void 0:Yt.all_questions_count)),E.createElement("div",{className:"mr30 ml30"},E.createElement("img",{src:Ct}),E.createElement("span",null,"\u603B\u5206(\u5206)"),E.createElement("aside",null,Tu&&Tu.toFixed(1))),E.createElement("div",null,E.createElement("img",{src:Ae}),E.createElement("span",null,"\u65F6\u957F(\u5206)"),E.createElement("aside",null,((va=Yt==null?void 0:Yt.exam)==null?void 0:va.time)===-1||((ii=Yt==null?void 0:Yt.exam)==null?void 0:ii.time)===null?"\u4E0D\u9650":(ca=Yt==null?void 0:Yt.exam)==null?void 0:ca.time))),(Fi=Yt==null?void 0:Yt.questionList)==null?void 0:Fi.map((sr,Ui)=>{var Co;return E.createElement("div",{className:ye.list,key:Ui},E.createElement("div",{className:ye.name},E.createElement("b",null),E.createElement("span",null,sr.name)),E.createElement("aside",null,E.createElement("div",null,"\u5171",E.createElement("span",{className:ye.b},sr.questions_count),"\u9898 ",E.createElement("span",{className:ye.l},"|"),"\u5171",E.createElement("span",{className:ye.r},sr.questions_score),"\u5206"),E.createElement("div",{className:ye.answerSheet},(Co=sr==null?void 0:sr.questions)==null?void 0:Co.map((Wa,Te)=>E.createElement("div",{onClick:()=>{const ot=`Anchor_${Wa==null?void 0:Wa.id}`;let Rt=document.getElementById(ot);Rt&&setTimeout(()=>Rt.scrollIntoView({block:"center",behavior:"smooth"}))},key:Wa==null?void 0:Wa.id,className:ye.tag},Te+1)))))})),E.createElement("div",{className:ye.right},E.createElement("div",{className:ye.examName,id:"examName"},E.createElement("div",{className:ye.name},E.createElement(Ye.Z,{title:(Hr=Yt==null?void 0:Yt.exam)==null?void 0:Hr.name,getPopupContainer:sr=>sr.parentNode},E.createElement("span",{className:ye.t},(Ur=Yt==null?void 0:Yt.exam)==null?void 0:Ur.name))),Br&&((ga=Yt==null?void 0:Yt.exam)==null?void 0:ga.exercise_status)===1&&E.createElement(Cn.op,{openLoading:!0,shape:"default",onClick:()=>{Se.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u6839\u636E\u6700\u65B0\u7684\u968F\u673A\u7EC4\u5377\u62BD\u9898\u89C4\u5219\u91CD\u65B0\u751F\u6210\u8BD5\u5377\u5417\uFF1F",onOk:()=>{Eu()}})},type:"primary"},"\u66F4\u65B0\u8BD5\u5377"),!Br&&E.createElement(Ce.ZP,{onClick:Vs,type:"primary"},"\u968F\u673A\u66F4\u6362")),E.createElement("div",{className:ye.topWarp},(Ga=Yt==null?void 0:Yt.questionList)==null?void 0:Ga.map((sr,Ui)=>{var Co,Wa;return E.createElement(E.Fragment,{key:Ui},E.createElement("div",{className:ye.head,style:Ui===0?{border:0,marginTop:-16}:{}},E.createElement("div",{className:ye.name},E.createElement("b",null),E.createElement("span",null,sr.name)),E.createElement("div",{className:ye.so},"\u5171",E.createElement("span",{className:ye.b},sr.questions_count," "),"\u9898 ",sr.type==="COMBINATION"&&`\uFF08\u5305\u542B${(Co=sr==null?void 0:sr.questions)==null?void 0:Co.map(Te=>{var ot;return(ot=Te==null?void 0:Te.sub_item_banks)==null?void 0:ot.length}).reduce((Te,ot)=>Te+ot)}\u5C0F\u9898\uFF09`,E.createElement("span",{className:ye.l},"|"),"\u5171",E.createElement("span",{className:ye.r},sr.questions_score),"\u5206"),!Br&&E.createElement("div",{className:ye.btn},E.createElement(Ce.ZP,{onClick:()=>{fu(sr)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),E.createElement(Ce.ZP,{onClick:()=>Bu(sr),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(Wa=sr==null?void 0:sr.questions)==null?void 0:Wa.map((Te,ot)=>{var Rt,qt,an,cn;return Qi===(Te==null?void 0:Te.id)?E.createElement("div",{id:`Anchor_${Te==null?void 0:Te.id}`,className:ye.content,style:{padding:0,marginTop:24},key:Te==null?void 0:Te.id},E.createElement("div",{style:{float:"right",marginTop:`${(sr==null?void 0:sr.type)==="PRACTICAL"?"-2px":"-6px"}`}},E.createElement(Ce.ZP,{onClick:()=>Ea(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),E.createElement(Ce.ZP,{onClick:()=>{ks(sr==null?void 0:sr.type,Te)},type:"primary"},"\u4FDD\u5B58")),eu(Te,sr.type)):E.createElement("div",{id:`Anchor_${Te==null?void 0:Te.id}`,className:ye.content,key:Te==null?void 0:Te.id},E.createElement("div",{className:ye.titleWrap},(Te==null?void 0:Te.item_type)==="bprogram"?E.createElement(Je.Z,{style:{paddingRight:10},value:ot+1+"\u3001"+((Rt=Te==null?void 0:Te.program_attr)==null?void 0:Rt.description)}):E.createElement(Je.Z,{style:{paddingRight:10},className:ye.titleHtml,value:ot+1+`\u3001${(Te==null?void 0:Te.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(Te==null?void 0:Te.name)}),Br&&E.createElement(Ce.ZP,{onClick:()=>{var Fn,Un,Wn;if(Qi){be.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}Bs.setFieldsValue({standard_answers:Te==null?void 0:Te.standard_answer,hack:Ni(Ni({},Te),Te==null?void 0:Te.program_attr),hack_codes:Bo(Ni({},Te==null?void 0:Te.program_attr),{code:to.Base64.decode(((Fn=Te==null?void 0:Te.program_attr)==null?void 0:Fn.code)||"")}),hack_sets:Ni({},(Un=Te==null?void 0:Te.hack_sets)==null?void 0:Un[0])}),(Te==null?void 0:Te.item_type)=="program"?Re.history.push(`/problems/newedit/${(Wn=Te==null?void 0:Te.program_attr)==null?void 0:Wn.identifier}?type=exercises&express_id=${xs.categoryId}&question_id=${Te==null?void 0:Te.id}&score=${Te==null?void 0:Te.score}&exercise=true&callback_url=/classrooms/${xs.coursesId}/exercise/${xs.categoryId}/detail?random=true`):Ea(Te==null?void 0:Te.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!vc&&E.createElement(Ce.ZP,{disabled:vc,className:"ml20",onClick:()=>hu(Te==null?void 0:Te.id,sr.type,ot,sr),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Te==null?void 0:Te.item_type)==="bprogram"&&E.createElement(Je.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:ye.titleHtml,value:to.Base64.decode(((qt=Te==null?void 0:Te.program_attr)==null?void 0:qt.code)||"")}),(sr.type==="SINGLE"||sr.type==="JUDGMENT"||sr.type==="MULTIPLE")&&js(Te),sr.type==="COMPLETION"&&Vu(Te),sr.type==="SUBJECTIVE"&&_u(Te),sr.type==="PROGRAM"&&xu(Te),sr.type==="BPROGRAM"&&Au(Te),sr.type==="COMBINATION"&&du(Te,ot),sr.type==="PRACTICAL"&&Uu(Te),E.createElement(Fe.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((an=Yt==null?void 0:Yt.exam)==null?void 0:an.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(sr.type)&&E.createElement(Ie.Z,null,E.createElement(Ia.Z,{state:Te==null?void 0:Te.is_wrong,onClick:()=>{ir==null||ir({value:Bo(Ni({},Te),{question_id:Te==null?void 0:Te.id,question_score:Te==null?void 0:Te.score})})}})),["PROGRAM","BPROGRAM","PRACTICAL"].includes(sr.type)&&(Te==null?void 0:Te.show_resubmit)&&E.createElement(Ie.Z,null,E.createElement(Xi.C,{dataSource:Bo(Ni({},Te),{question_id:Te==null?void 0:Te.id})})),((cn=Yt==null?void 0:Yt.exam)==null?void 0:cn.exercise_status)===3&&["SINGLE"].includes(sr.type)&&E.createElement(Ie.Z,null,E.createElement(Ce.ZP,{style:{color:"#3061D0"},onClick:()=>{ic({value:Te})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),Br?E.createElement(Cn.vr,null,E.createElement(tt.Z,{showTotal:vt.rU,total:(Ci=Yt==null?void 0:Yt.exam)==null?void 0:Ci.total_num,pageSize:1,current:ei+1,showSizeChanger:!1,onChange:pu,showQuickJumper:!1,hideOnSinglePage:!1})):E.createElement(Cn.vr,{LeftContent:E.createElement(Cn.op,{onClick:bn,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:E.createElement(Fe.Z,{align:"middle"},E.createElement(ze.Z,{color:"#55575D",overlayClassName:ye.popover,open:dl,getPopupContainer:sr=>sr==null?void 0:sr.parentNode,content:"\u5982\u60A8\u5BF9\u6B64\u4EFD\u8BD5\u9898\u6EE1\u610F\uFF0C\u53EF\u5C06\u6B64\u4EFD\u8BD5\u9898\u4FDD\u5B58\u4E3A\u56FA\u5B9A\u8BD5\u5377"},E.createElement(Cn.op,{onMouseEnter:()=>Dl(!0),onMouseLeave:()=>Dl(!1),onClick:()=>bo(void 0,null,function*(){const sr=Number(Tu);[100,120,150].includes(sr)||(yield new Promise((Ui,Co)=>{Se.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:E.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",E.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},sr),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>bo(void 0,null,function*(){Ui("")}),onCancel:()=>{Co()}})})),Gu()}),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),E.createElement(Cn.op,{shape:"default",type:"primary",onClick:()=>bo(void 0,null,function*(){const sr=Number(Tu);[100,120,150].includes(sr)||(yield new Promise((Ui,Co)=>{Se.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:E.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",E.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},sr),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>bo(void 0,null,function*(){Ui("")}),onCancel:()=>{Co()}})})),hn()}),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),E.createElement(Za,{visible:Zl,questionParams:ho.current,getdata:Ai,onRandomExchange:()=>bo(void 0,null,function*(){const sr=ho.current;yield ui({single_question_id:sr.id,seleted_item_bank_ids:sr.ids},{type:sr.type,index:sr.index}),rs(!1)}),selectFromProblemSet:()=>{const sr=ho.current,Ui=`${location.pathname}${location.search}`;Ui.includes("exercise")&&Re.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${sr.id}&qtype=${sr.type}&exerciseid=${xs.categoryId}&from=${Ui}`)},onCancel:()=>{rs(!1)}}))}},35002:function(An,tn,ne){"use strict";ne.r(tn),ne.d(tn,{default:function(){return Qo}});var E=ne(59301),ye={wrapper:"wrapper___KtBVT",breadCrumbWrapper:"breadCrumbWrapper___k9tSB",baseInfo:"baseInfo____j5EY",radioBtnWrapper:"radioBtnWrapper___k9OCh",baseLineHeight:"baseLineHeight___O_QXK",radiogroup:"radiogroup___e2fW6",easy:"easy___WcUAp",medium:"medium___U_o3j",hard:"hard___dAXLS",formWrap:"formWrap___wt5tC",baseFormItem:"baseFormItem___zV64d",cascaderPopup:"cascaderPopup___qm63f",fixedBottom:"fixedBottom___liDZ4",cancelBtn:"cancelBtn___ZV9Mi",confirmBtn:"confirmBtn___DwH6m",previewBtn:"previewBtn___aLYCy",concat:"concat___ZuLMo"},Ee=ne(8591),Ye=ne(78241),Ce=ne(66104),Se=ne(44225),pe=ne(58416),be=ne(71418),De=ne(92832),Pe=ne(19842),et=ne(5112),Fe=ne(95237),Ie=ne(5871),tt=ne(3113),ze=ne(58661),We=Object.defineProperty,lt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,dt=(Cn,wn,tr)=>wn in Cn?We(Cn,wn,{enumerable:!0,configurable:!0,writable:!0,value:tr}):Cn[wn]=tr,Qe=(Cn,wn)=>{for(var tr in wn||(wn={}))Xe.call(wn,tr)&&dt(Cn,tr,wn[tr]);if(lt)for(var tr of lt(wn))Dt.call(wn,tr)&&dt(Cn,tr,wn[tr]);return Cn},Ze=(Cn,wn,tr)=>new Promise((Zr,_r)=>{var Ar=Er=>{try{Qn(tr.next(Er))}catch(Yr){_r(Yr)}},Mr=Er=>{try{Qn(tr.throw(Er))}catch(Yr){_r(Yr)}},Qn=Er=>Er.done?Zr(Er.value):Promise.resolve(Er.value).then(Ar,Mr);Qn((tr=tr.apply(Cn,wn)).next())});function Ae(Cn){return Ze(this,null,function*(){return(0,ze.ZP)(`/api/examination_banks/${Cn}/edit_random_exam_new.json`,{method:"get"})})}function Je(Cn,wn){return Ze(this,null,function*(){return(0,ze.ZP)(`/api/examination_banks/${Cn}/update_random_exam.json`,{method:"post",body:wn})})}function Re(Cn){return Ze(this,null,function*(){return(0,ze.ZP)("/api/examination_banks/create_random_exam.json",{method:"post",body:Cn})})}function vt(Cn){return Ze(this,null,function*(){return(0,ze.ZP)("/api/disciplines.json",{method:"get",params:Cn})})}function $e(Cn){return Ze(this,null,function*(){return(0,ze.ZP)("/api/item_banks/item_difficulty_count.json",{method:"get",params:Cn})})}function mt(Cn,wn){return Ze(this,null,function*(){return(0,ze.ZP)(`/api/examination_banks/${Cn}/set_item_type_score.json`,{method:"post",body:wn})})}function Be(Cn,wn){return Ze(this,null,function*(){return(0,ze.ZP)(`/api/exercises/${Cn}/set_item_type_score.json`,{method:"post",body:wn})})}function xt(Cn,wn){return Ze(this,null,function*(){return(0,ze.ZP)(`/api/examination_banks/${Cn}/delete_item_type.json`,{method:"post",body:wn})})}function Ve(Cn,wn){return Ze(this,null,function*(){return(0,ze.ZP)(`/api/exercises/${Cn}/delete_item_type.json`,{method:"post",body:wn})})}function Ot(Cn){return Ze(this,null,function*(){return(0,ze.ZP)("/api/examination_banks/preview_random_questions.json",{method:"post",body:Cn})})}function nt(Cn){return Ze(this,null,function*(){return(0,ze.ZP)("/api/examination_banks/toggle_random_questions.json",{method:"post",body:Cn})})}function wt(Cn){return Ze(this,null,function*(){return(0,ze.ZP)("/api/examination_banks/save_question_list.json",{method:"post",body:Cn})})}function Mt(Cn){return Ze(this,null,function*(){return(0,ze.ZP)(`/api/exercises/${Cn.categoryId}/edit.json`,{method:"get",params:Qe({},Cn)})})}var at=(Cn=>(Cn.OnlyFileFolder="1",Cn.OnlyKnowledge="2",Cn.OnlyDifficulty="3",Cn.FileFolderAndDiff="4",Cn.FileFolderAndKnowledge="5",Cn.KnowledgeAndDiff="6",Cn.All="7",Cn.Shixun="8",Cn))(at||{}),Le=ne(78267),Me=Object.defineProperty,st=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Zt=(Cn,wn,tr)=>wn in Cn?Me(Cn,wn,{enumerable:!0,configurable:!0,writable:!0,value:tr}):Cn[wn]=tr,gn=(Cn,wn)=>{for(var tr in wn||(wn={}))ct.call(wn,tr)&&Zt(Cn,tr,wn[tr]);if(Tt)for(var tr of Tt(wn))Ct.call(wn,tr)&&Zt(Cn,tr,wn[tr]);return Cn},$t=(Cn,wn)=>st(Cn,Ht(wn)),Wt=(Cn=>(Cn[Cn.FileFolder=1]="FileFolder",Cn[Cn.Difficulty=2]="Difficulty",Cn[Cn.Knowledge=3]="Knowledge",Cn))(Wt||{});const on=(0,E.createContext)(null),dn={[at.OnlyFileFolder]:[1],[at.OnlyKnowledge]:[3],[at.OnlyDifficulty]:[2],[at.FileFolderAndDiff]:[1,2],[at.FileFolderAndKnowledge]:[1,3],[at.KnowledgeAndDiff]:[3,2],[at.All]:[3,2,1]},ln=(Cn,wn)=>{if(Cn.length!==wn.length)return!1;for(const tr of wn)if(!Cn.includes(tr))return!1;return!0},xe=Cn=>{for(const[wn,tr]of Object.entries(dn))if(ln(Cn,tr))return wn},fe={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",COMPLETION:"\u586B\u7A7A\u9898",JUDGMENT:"\u5224\u65AD\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898"},ue={1:{label:"\u7B80\u5355",color:"#46B70E"},2:{label:"\u9002\u4E2D",color:"#165DFF"},3:{label:"\u56F0\u96BE",color:"#EE6F1A"}},he=Cn=>Cn&&parseFloat(Cn.toFixed(1)),me=(Cn,wn)=>{var tr,Zr,_r;switch(wn.type){case"init":return wn.payload;case"updateBaseInfo":return $t(gn({},Cn),{examination_bank:wn.payload});case"deleteQuestionType":{const{item_types:Ar}=Cn,Mr=Ar.filter(Qn=>Qn.item_type!==wn.payload);return Cn.examination_bank.question_count=he(Mr.reduce((Qn,Er)=>Qn+Er.item_bank_count,0)),Cn.examination_bank.total_score=he(Mr.reduce((Qn,Er)=>Qn+Er.total_score,0)),$t(gn({},Cn),{item_types:Mr})}case"setQuestionType":{const{item_types:Ar=[]}=Cn,Mr=Ar.map(Er=>Er.item_type),Qn=Ar.filter(Er=>wn.payload.includes(Er.item_type));for(const Er of wn.payload)Mr.includes(Er)||(Er==="PRACTICAL"?Qn.push({item_type:Er,contents:[],item_banks:[],item_bank_count:0,item_bank_num:0,item_type_text:fe[Er],random_rule_type:at.Shixun,score:0,total_score:0}):Qn.push({item_type:Er,contents:[],item_bank_count:0,item_type_text:fe[Er],score:0,total_score:0}));return $t(gn({},Cn),{item_types:Qn})}case"updateItemTypes":return $t(gn({},Cn),{item_types:wn.payload});case"deleteRule":{const Ar=(0,Le.cloneDeep)(Cn),Mr=Ar.item_types.find(Er=>Er.item_type===wn.payload.itemType),Qn=Mr.contents.find(Er=>Er.id===wn.payload.id&&Er.is_share==wn.payload.is_share);return Mr.contents=Mr.contents.filter(Er=>Er!==Qn),((tr=Mr.contents)==null?void 0:tr.length)===0&&(Mr.random_rule_type=[]),Mr.item_bank_count-=Qn==null?void 0:Qn.quanlity,Ar.examination_bank.question_count-=Qn==null?void 0:Qn.quanlity,Mr.total_score-=(Qn==null?void 0:Qn.quanlity)*Mr.score,Ar.examination_bank.total_score-=(Qn==null?void 0:Qn.quanlity)*Mr.score,Mr.total_score=he(Mr.total_score),Ar.examination_bank.total_score=he(Ar.examination_bank.total_score),Ar.contents=Mr.contents,Ar}case"changeQuestionNum":{const Ar=(0,Le.cloneDeep)(Cn),Mr=Ar.item_types.find(ma=>ma.item_type===wn.payload.itemType),Qn=(Zr=Mr==null?void 0:Mr.contents)==null?void 0:Zr.find(ma=>ma.id===wn.payload.id);if(wn.payload.itemType==="PRACTICAL")return wn.payload.num&&(Ar.examination_bank.question_count=Ar.examination_bank.question_count-Mr.item_bank_count+wn.payload.num,Ar.examination_bank.total_score=he(Ar.examination_bank.total_score-Mr.total_score+wn.payload.num*Mr.score)),wn.payload.score&&(Ar.examination_bank.total_score=he(Ar.examination_bank.total_score-Mr.total_score+wn.payload.num*Mr.score)),Mr.item_bank_count=wn.payload.num,Mr.total_score=he(Mr.item_bank_count*Mr.score),Ar;Ar.examination_bank.question_count=Ar.examination_bank.question_count-(Qn==null?void 0:Qn.quanlity)+wn.payload.num;const Er=Mr.contents.find(ma=>ma.id===wn.payload.id&&ma.teacher_group_id===wn.payload.teacher_group_id);Er.quanlity=wn.payload.num;let Yr=0,yi=0;for(const ma of Mr.contents)Yr+=ma==null?void 0:ma.quanlity,yi+=(ma==null?void 0:ma.quanlity)*Mr.score;return Ar.examination_bank.total_score=he(Ar.examination_bank.total_score-Mr.total_score+yi),Mr.item_bank_count=Yr,Mr.total_score=he(yi),Ar}case"changeQuestionScore":{const Ar=(0,Le.cloneDeep)(Cn),Mr=Ar.item_types.find(Qn=>Qn.item_type===wn.payload.itemType);return Mr.score=wn.payload.score,Mr.total_score=he(Mr.item_bank_count*Mr.score),Ar.examination_bank.total_score=he(Ar.item_types.reduce((Qn,Er)=>Qn+Er.total_score,0)),Ar}case"editRule":{const Ar=(0,Le.cloneDeep)(Cn),Mr=Ar.item_types.find(Qn=>Qn.item_type===wn.payload.itemType);return Mr.contents=wn.payload.tableData.map(Qn=>$t(gn({},Qn),{item_type:wn.payload.itemType,random_rule_type:wn.payload.randomRuleType})),Mr.random_rule_type=wn.payload.randomRuleType,Mr.item_bank_count=Mr.contents.reduce((Qn,Er)=>Qn+(Er==null?void 0:Er.quanlity),0),Mr.score=Mr.score||1,Mr.total_score=he(Mr.item_bank_count*Mr.score),Ar.examination_bank.question_count=Ar.item_types.reduce((Qn,Er)=>Qn+Er.item_bank_count,0),Ar.examination_bank.total_score=he(Ar.item_types.reduce((Qn,Er)=>Qn+Er.total_score,0)),Ar}case"addShixun":{const Ar=(0,Le.cloneDeep)(Cn),Mr=Ar.item_types.find(Qn=>Qn.item_type==="PRACTICAL");return Mr.item_banks=wn.payload.shixunList,Ar.examination_bank.question_count=Ar.examination_bank.question_count+1,Mr.item_bank_num=Mr.item_banks.length,Mr.item_bank_count=Mr.item_bank_count||1,Mr.score=Mr.score||1,Mr.total_score=Mr.total_score||Mr.score*Mr.item_bank_count,Ar.examination_bank.total_score=(_r=Ar==null?void 0:Ar.item_types)==null?void 0:_r.map(Qn=>Qn.total_score).reduce((Qn,Er)=>Qn+Er),Ar}case"deleteShixunQuestion":{const Ar=(0,Le.cloneDeep)(Cn),Mr=Ar.item_types.find(Qn=>Qn.item_type==="PRACTICAL");return Mr.item_banks=Mr.item_banks.filter(Qn=>Qn.id!==wn.payload.shixunId),Mr.item_bank_num-=1,Mr.item_bank_count>Mr.item_bank_num&&(Mr.item_bank_count-=1,Mr.total_score-=Mr.score,Mr.total_score=he(Mr.total_score)),Ar}}};var oe=ne(45876),Ne=Object.defineProperty,At=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,ht=(Cn,wn,tr)=>wn in Cn?Ne(Cn,wn,{enumerable:!0,configurable:!0,writable:!0,value:tr}):Cn[wn]=tr,Kt=(Cn,wn)=>{for(var tr in wn||(wn={}))Pt.call(wn,tr)&&ht(Cn,tr,wn[tr]);if(je)for(var tr of je(wn))Et.call(wn,tr)&&ht(Cn,tr,wn[tr]);return Cn},vn=(Cn,wn)=>At(Cn,Ge(wn)),kt=(Cn,wn,tr)=>new Promise((Zr,_r)=>{var Ar=Er=>{try{Qn(tr.next(Er))}catch(Yr){_r(Yr)}},Mr=Er=>{try{Qn(tr.throw(Er))}catch(Yr){_r(Yr)}},Qn=Er=>Er.done?Zr(Er.value):Promise.resolve(Er.value).then(Ar,Mr);Qn((tr=tr.apply(Cn,wn)).next())}),yn=({courseOptions:Cn,setCurrentKey:wn,loading:tr,form:Zr})=>{const{data:_r,disabled:Ar,dispatch:Mr}=(0,E.useContext)(on),Qn=(0,Se.useParams)(),Er=(0,E.useRef)(!0),[Yr,yi]=(0,E.useState)(!1),ma=(0,E.useMemo)(()=>{var Za,Ya,to,Ia,Xi;if(!Cn.length||!_r)return;const Lr=(Za=_r==null?void 0:_r.examination_bank)==null?void 0:Za.sub_discipline_id,aa=((Ya=_r==null?void 0:_r.examination_bank)==null?void 0:Ya.time)===-1?void 0:Er.current?Qn.id?(to=_r==null?void 0:_r.examination_bank)==null?void 0:to.time:((Ia=_r==null?void 0:_r.examination_bank)==null?void 0:Ia.time)||60:(Xi=_r==null?void 0:_r.examination_bank)==null?void 0:Xi.time;Er.current=!1;let Ba=[];for(const fo of Cn)for(const no of fo.children)no.value===Lr&&(Ba=[fo.value,no.value]);return vn(Kt({},_r.examination_bank),{time:aa,course:Ba})},[_r,Cn]);return(0,E.useEffect)(()=>{Zr.setFieldsValue(Kt({},ma))},[ma]),E.createElement(be.Z,{spinning:tr,size:"large",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},E.createElement("div",{className:ye.formWrap},E.createElement(Ye.default,{form:Zr,autoComplete:"off",colon:!1,labelCol:{span:4},wrapperCol:{span:20},initialValues:ma||{difficulty:2,time:60},onValuesChange:(Za,Ya)=>{const{course:to=[]}=Ya,Ia=vn(Kt({},Ya),{sub_discipline_id:to[1]||0});Mr({type:"updateBaseInfo",payload:Ia})}},E.createElement(Ye.default.Item,{name:"name",label:"\u8BD5\u5377\u540D\u79F0",className:ye.baseLineHeight,rules:[{required:!0,validator:(Za,Ya)=>{var to;return((to=Ya==null?void 0:Ya.replaceAll(" ",""))==null?void 0:to.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},E.createElement(De.default,{maxLength:60,className:ye.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),E.createElement(Ye.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"course",className:ye.baseLineHeight},E.createElement(Pe.Z,{className:ye.baseFormItem,disabled:Ar,size:"large",allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Cn,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14}})),E.createElement("div",{className:ye.concat},"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",E.createElement("span",{onClick:()=>yi(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406")),E.createElement(Ye.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:ye.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},E.createElement(et.ZP.Group,{disabled:Ar,className:ye.radiogroup},E.createElement(et.ZP.Button,{className:ye.easy,value:1},"\u7B80\u5355"),E.createElement(et.ZP.Button,{className:ye.medium,value:2},"\u9002\u4E2D"),E.createElement(et.ZP.Button,{className:ye.hard,value:3},"\u56F0\u96BE"))),E.createElement(Ye.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:ye.baseLineHeight},E.createElement(Fe.Z,{align:"middle"},E.createElement(Ye.default.Item,{name:"time",noStyle:!0},E.createElement(Ie.Z,{className:ye.baseFormItem,min:1,disabled:Ar,size:"large",max:9999,style:{width:220},placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),E.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),E.createElement(Ye.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exam_notes"},E.createElement(De.default.TextArea,{rows:6,disabled:Ar,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"})))),E.createElement("div",{className:ye.fixedBottom},E.createElement(tt.ZP,{className:`${ye.cancelBtn} mr5`,onClick:()=>{Qn.id||window.location.href.indexOf("randompaper")>-1?Se.history.push("/paperlibrary"):Se.history.push(`/classrooms/${Qn.coursesId}/exercise`)}},"\u53D6\u6D88"),E.createElement(tt.ZP,{className:`${ye.confirmBtn} ml15`,type:"primary",size:"large",onClick:()=>kt(void 0,null,function*(){if(yield Zr.validateFields(),!Qn.id&&!Qn.coursesId){const Za=yield Re(_r);Za.status===0&&(Se.history.replace(`/randompaper/edit/${Za==null?void 0:Za.examination_bank_id}?type=settings`),wn("settings"))}else wn("settings")})},"\u4E0B\u4E00\u6B65")),E.createElement(oe.Z,{open:Yr,onCancel:()=>{yi(!1)}}))},Bt=ne(43418),Ke=ne(43604),gt={flex_box_center:"flex_box_center___NXYwj",flex_space_between:"flex_space_between___Oy2UZ",flex_box_vertical_center:"flex_box_vertical_center___ybBar",flex_box_center_end:"flex_box_center_end___yyQPf",flex_box_column:"flex_box_column____kuXY",questionInfo:"questionInfo___U9mnu",label:"label___PP7Ng",content:"content___PUXFl",leftPart:"leftPart___uoQeo",rightPart:"rightPart___mCG7H",dragItem:"dragItem___djmPG",blackText:"blackText___KqEaU",greyText:"greyText___VamKm",iconWrapper:"iconWrapper___o1C0y",contentArea:"contentArea___Fj7D0",dragging:"dragging___mX3Il",hidden:"hidden___KWDLK",dragIcon:"dragIcon___yPuB3",deleteIcon:"deleteIcon___go29y",disabled:"disabled___uSK9k",challengeNameWrapper:"challengeNameWrapper___DFjRy",challengeName:"challengeName___m7v0x",shixunPreviewFooter:"shixunPreviewFooter___iaciG",shixunInfoWrapper:"shixunInfoWrapper___aSihg",shixunInfo:"shixunInfo___WYBm1",btnToDetail:"btnToDetail___WVmtj",fixedBottom:"fixedBottom___oeMSX",cancelBtn:"cancelBtn___ac73V",confirmBtn:"confirmBtn___sYh2O",previewBtn:"previewBtn___c2uQz",setScoreModalTable:"setScoreModalTable___kPddX",title:"title___lP1E2",tipcontent:"tipcontent___tV6uE",name:"name___YLyPW",tip:"tip___FYIzt",info:"info___rSdr9",img:"img___ft7eS"},Vt=ne(61648),Nt=ne(93351),Xt=ne(24905);const Mn=[{label:"\u5355\u9009\u9898",value:"SINGLE"},{label:"\u591A\u9009\u9898",value:"MULTIPLE"},{label:"\u586B\u7A7A\u9898",value:"COMPLETION"},{label:"\u5224\u65AD\u9898",value:"JUDGMENT"},{label:"\u7B80\u7B54\u9898",value:"SUBJECTIVE"},{label:"\u7F16\u7A0B\u9898",value:"PROGRAM"},{label:"\u7EC4\u5408\u9898",value:"COMBINATION"},{label:"\u5B9E\u8BAD\u9898",value:"PRACTICAL"},{label:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM"}];var Rn=({open:Cn,onCancel:wn,onOk:tr})=>{const{data:Zr,dispatch:_r}=(0,E.useContext)(on);(0,E.useEffect)(()=>{if(Cn){const{item_types:Qn}=Zr||{};Mr(Qn==null?void 0:Qn.map(Er=>Er.item_type))}},[Cn,Zr]);const[Ar,Mr]=(0,E.useState)([]);return E.createElement(Bt.default,{title:E.createElement("div",null,"\u9898\u578B\u8BBE\u7F6E",E.createElement("span",{className:"c-grey-333",style:{fontSize:14,fontWeight:400}},"\uFF08\u901A\u8FC7\u52FE\u9009\u53EF\u5BF9\u9898\u578B\u8FDB\u884C\u6DFB\u52A0/\u5220\u9664\uFF09")),closable:!0,centered:!0,open:Cn,onCancel:wn,onOk:()=>tr(Ar)},E.createElement(Xt.default.Group,{value:Ar,onChange:Qn=>Mr(Qn)},E.createElement(Fe.Z,{gutter:[0,20]},Mn.map(Qn=>E.createElement(Ke.Z,{key:Qn.value,span:6},E.createElement(Xt.default,{value:Qn.value},Qn.label))))))},ur=ne(1710),vr=Object.defineProperty,dr=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable,jn=(Cn,wn,tr)=>wn in Cn?vr(Cn,wn,{enumerable:!0,configurable:!0,writable:!0,value:tr}):Cn[wn]=tr,Xn=(Cn,wn)=>{for(var tr in wn||(wn={}))mn.call(wn,tr)&&jn(Cn,tr,wn[tr]);if(dr)for(var tr of dr(wn))zn.call(wn,tr)&&jn(Cn,tr,wn[tr]);return Cn},Kr=({open:Cn,onCancel:wn,onOk:tr})=>{const{data:Zr}=(0,E.useContext)(on),[_r,Ar]=(0,E.useState)();console.log("--xxx-",_r),(0,E.useEffect)(()=>{Cn&&Ar((0,Le.cloneDeep)(Zr))},[Cn,Zr]);const Mr=(0,E.useMemo)(()=>{var Qn;let Er;return Er=(Qn=_r==null?void 0:_r.item_types)==null?void 0:Qn.map(Yr=>Yr.total_score).reduce((Yr,yi)=>parseFloat(Yr)+parseFloat(yi)),Er==null?void 0:Er.toFixed(1)},[_r]);return Cn?E.createElement(Bt.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:Cn,width:640,centered:!0,closable:!0,onCancel:wn,onOk:()=>{tr(_r)}},E.createElement("div",{className:"c-black mb20"},"\u603B\u5206",E.createElement("span",{className:"ml10 c-light-primary"},Mr)),E.createElement(ur.default,{columns:[{title:"\u9898\u578B\u540D\u79F0",dataIndex:"item_type_text",width:130},{title:"\u5C0F\u9898\u603B\u6570",dataIndex:"item_bank_count",width:130},{title:"\u9898\u578B\u603B\u5206",dataIndex:"total_score",width:130},{title:"\u64CD\u4F5C",render(Qn,Er){const{score:Yr,item_type:yi}=Er;return E.createElement("div",{style:{color:"#9096A3"}},"\u6BCF",((Er==null?void 0:Er.item_type)==="PRACTICAL","\u9898"),E.createElement(Ie.Z,{precision:1,size:"large",className:"ml10 mr10",min:.1,disabled:(Er==null?void 0:Er.item_bank_count)===0,max:100,onChange:ma=>{const Za=_r,Ya=Za.item_types.find(Ia=>Ia.item_type===yi);Ya.score=Number(ma);const to=ma*Ya.item_bank_count;Ya.total_score=to&&Number(to.toFixed(1)),Za.examination_bank.total_score=Za.item_types.reduce((Ia,Xi)=>Number(Ia)+Number(Xi.total_score),0),Ar(Xn({},Za))}}),"\u5206")}}],className:gt.setScoreModalTable,dataSource:_r==null?void 0:_r.item_types,rowKey:"item_type",pagination:!1})):null},ar=ne(99313),Zn=ne(57809),Wr=ne(17574),Gt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAtFJREFUWEftWL9rU1EYPffFpCCKEEEJVUQHB10qAUHFHwguDg4ORRDq4uDg4CBIJ6GD0D/B3UEFJ5cugjbQChIqokWKClVrFDGIg2B8yZX3Xl/z/O5LzvfyKhTJXV7g/jrfOfc797sx1toCNnAzQ4A51RkymJNA/CcMvpoYhf0xDWtPwqICWEKM+QSYGgojt3Hw3mweFjmD9YlR+N8WAJSdjYwBrAWCb1oL+jzvMbzSFKoPBgLKAc6dugPbuRDtHzAXgGEMxmjjsXEAYr4MMOw2DcA8wcjWG6g+XOEAZ8c+wNpKtCXZMI+WMn6DJrbsOMQBPtrr9ySM4ZX9LEApkOfd5QBntvvhuhqFswKOz2/wDQWSZ9o0FADLfji5fBTYPwmUduYVMmV+IrLWF2DpFtCcizDTu3hmFeCBKaC4LR2cJpvjMZrwfn8HFm8qATan/bWslWckq6SuTyWcIfi5allrkmsY/DoZSZzanCwQo0REAwTIJf583e9txNIWic9p5E2OCQilZ7BxzY/8L60RSqRkcgnHqKXERgFw5eq/80EagIbB91cSPigilMabNWmYD6okXr7cZdABIAE7Gv6dpfIuZxJDI/G7S32ymJx6CoDP50ny5mIXIJPQ2Y8kEVVEw+DSeCKLWbkldlQA6JZwaZe9BuDr8xkAZjU6Pp5LvHiu9xmkWej6Wt8KXOK1VuGDL89272IaMLv6yAID3cUvzvS5SZyQyZOAZZl7hrnEz0/rjZoxzAhOyUEOcOFEH6MWhDGCWAApPs8B1o/p68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03zE7tgGhRMf1tx2xPHt6wlNI2a0b/g/k/BV9hgiUXOq8HS5ei43iPSQJ8r6xiVocv4JBwJ79K5WtEOx0Tny0XdD8QfXPT0f0+dmWvKWAHfbqoe8b1MafGpKN0xiLn2r2z+X0GS6JyeW5o5VmPhfIW2b2y5xduDh44CABFqhUBa9nP1xGWw1dqoRUcy8M6JD6CF7mVLbDqOW1uF5vjpeK+YfEYQkCWYYZc4HQyxU+6Veqeme1Jpuc4t4CNFqdcY9g1yzbX2/WL+QCM9QLhzstl90/S1fUdg2FgWQT6EVLbNHpThjNhaa8Hz6e7DgcFVbPTxwNcrk9JgqH9bBkCWYDZPh7uNmWanuhVfhIVaIwOjUzeNfLZ141XPdbcpNX4F/ikyqlsA/6bwAAAABJRU5ErkJggg==",En={ruleCheckBox:"ruleCheckBox___Onj2f",folderAreaWrapper:"folderAreaWrapper___ut2mr",folderAreaHeader:"folderAreaHeader___fOIDA",folderWrapper:"folderWrapper___IpJ50",folderIcon:"folderIcon___zBoRM",shareFolderIcon:"shareFolderIcon____5s3p",treeNodeItem:"treeNodeItem___quqla",treeNodeDifficulty:"treeNodeDifficulty___en0gk"},nr=ne(29496),lr=Object.defineProperty,xr=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,rt=(Cn,wn,tr)=>wn in Cn?lr(Cn,wn,{enumerable:!0,configurable:!0,writable:!0,value:tr}):Cn[wn]=tr,_t=(Cn,wn)=>{for(var tr in wn||(wn={}))yt.call(wn,tr)&&rt(Cn,tr,wn[tr]);if(Ue)for(var tr of Ue(wn))ut.call(wn,tr)&&rt(Cn,tr,wn[tr]);return Cn},Qt=(Cn,wn)=>xr(Cn,jt(wn)),pn=(Cn,wn,tr)=>new Promise((Zr,_r)=>{var Ar=Er=>{try{Qn(tr.next(Er))}catch(Yr){_r(Yr)}},Mr=Er=>{try{Qn(tr.throw(Er))}catch(Yr){_r(Yr)}},Qn=Er=>Er.done?Zr(Er.value):Promise.resolve(Er.value).then(Ar,Mr);Qn((tr=tr.apply(Cn,wn)).next())});const sn=(Cn,wn,tr)=>Cn.map(Zr=>Zr.key===wn?_t(_t({},Zr),tr):Zr.children?Qt(_t({},Zr),{children:sn(Zr.children,wn,tr)}):Zr),Bn={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3},Yn=(Cn,wn,tr)=>Cn.map(Zr=>{var _r;const Ar=Zr==null?void 0:Zr.tag_disciplines.map(Qn=>{const Er=Qn==null?void 0:Qn.difficulty_count.map(Yr=>({label:Yr==null?void 0:Yr.name,value:Bn[Yr.name]}));return{title:xe(wn)===at.All&&Er.length>0?E.createElement(Fe.Z,{justify:"space-between"},E.createElement(Ke.Z,null,`${Qn.name}\uFF08${Qn.child_count}\uFF09`),E.createElement(Ke.Z,null,E.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Ye.default.Item,{noStyle:!0,name:[`${Zr.id}_${Qn.id}`,"diffValue"]},E.createElement(Xt.default.Group,{style:{columnGap:12},options:Er})),E.createElement(Ye.default.Item,{noStyle:!0,name:[`${Zr.id}_${Qn.id}`,"diffNum"],initialValue:Qn==null?void 0:Qn.difficulty_count},E.createElement("input",{type:"hidden"})),E.createElement(Ye.default.Item,{noStyle:!0,name:[`${Zr.id}_${Qn.id}`,"extra"],initialValue:Qt(_t({},Zr),{type:tr})},E.createElement("input",{type:"hidden"})))):`${Qn.name}\uFF08${Qn.child_count}\uFF09`,key:`${Zr.id}_${Qn.id}`,name:Qn.name,parentName:Zr.name,item_banks_count:Qn.child_count,icon:null,isLeaf:!0,checkable:xe(wn)===at.FileFolderAndKnowledge,disableCheckbox:Qn.child_count===0}}),Mr=Zr==null?void 0:Zr.difficulty_count.map(Qn=>({label:Qn==null?void 0:Qn.name,value:Bn[Qn.name]}));return{title:xe(wn)===at.FileFolderAndDiff&&Mr.length>0?E.createElement(Fe.Z,{justify:"space-between"},E.createElement(Ke.Z,null,`${Zr.name}\uFF08${Zr.item_banks_count}\uFF09`),E.createElement(Ke.Z,null,E.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Ye.default.Item,{noStyle:!0,name:[`${Zr.id}`,"diffValue"]},E.createElement(Xt.default.Group,{style:{columnGap:12},options:Mr})),E.createElement(Ye.default.Item,{noStyle:!0,name:[`${Zr.id}`,"diffNum"],initialValue:Zr==null?void 0:Zr.difficulty_count},E.createElement("input",{type:"hidden"})),E.createElement(Ye.default.Item,{noStyle:!0,name:[`${Zr.id}`,"extra"],initialValue:Qt(_t({},Zr),{type:tr})},E.createElement("input",{type:"hidden"})))):`${Zr.name}\uFF08${Zr.item_banks_count}\uFF09`,key:`${Zr.id}`,name:Zr.name,item_banks_count:Zr.item_banks_count,icon:Qn=>Qn.expanded?tr==="0"?E.createElement("img",{src:or,className:En.folderIcon}):E.createElement("img",{src:er,className:En.shareFolderIcon}):tr==="0"?E.createElement("img",{src:Gt,className:En.folderIcon}):E.createElement("img",{src:Kn,className:En.shareFolderIcon}),isLeaf:!Zr.have_child&&!((_r=Zr.tag_disciplines)!=null&&_r.length),checkable:xe(wn)===at.OnlyFileFolder,disableCheckbox:Zr.item_banks_count===0,children:Zr.children.length?xe(wn)===at.All||xe(wn)===at.FileFolderAndKnowledge?[...Yn(Zr.children,wn,tr),...Ar]:Yn(Zr.children,wn,tr):[]}}),cr=(Cn,wn,tr)=>Cn.map(Zr=>{var _r;const Ar=Zr==null?void 0:Zr.tag_disciplines.map(Qn=>{console.log("tagItem:",Qn);const Er=Qn==null?void 0:Qn.difficulty_count.map(Yr=>({label:Yr==null?void 0:Yr.name,value:Bn[Yr.name]}));return{title:xe(wn)===at.All&&Er.length>0?E.createElement(Fe.Z,{justify:"space-between"},E.createElement(Ke.Z,null,`${Qn.name}\uFF08${Qn.child_count}\uFF09`),E.createElement(Ke.Z,null,E.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Ye.default.Item,{noStyle:!0,name:[`${Zr.id}_${Qn.id}`,"diffValue"]},E.createElement(Xt.default.Group,{style:{columnGap:12},options:Er})),E.createElement(Ye.default.Item,{noStyle:!0,name:[`${Zr.id}_${Qn.id}`,"diffNum"],initialValue:Qn==null?void 0:Qn.difficulty_count},E.createElement("input",{type:"hidden"})),E.createElement(Ye.default.Item,{noStyle:!0,name:[`${Zr.id}_${Qn.id}`,"extra"],initialValue:Qt(_t({},Zr),{type:tr})},E.createElement("input",{type:"hidden"})))):`${Qn.name}\uFF08${Qn.child_count}\uFF09`,key:`${Zr.id}_${Qn.id}`,name:Qn.name,parentName:Zr.name,item_banks_count:Qn.child_count,icon:null,isLeaf:!0,checkable:xe(wn)===at.FileFolderAndKnowledge,disableCheckbox:Qn.child_count===0}}),Mr=Zr==null?void 0:Zr.difficulty_count.map(Qn=>({label:Qn==null?void 0:Qn.name,value:Bn[Qn.name]}));return{title:xe(wn)===at.FileFolderAndDiff&&Mr.length>0?E.createElement(Fe.Z,{justify:"space-between"},E.createElement(Ke.Z,null,`${Zr.name}\uFF08${Zr.item_banks_count}\uFF09`),E.createElement(Ke.Z,null,E.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Ye.default.Item,{noStyle:!0,name:[`${Zr.id}`,"diffValue"]},E.createElement(Xt.default.Group,{style:{columnGap:12},options:Mr})),E.createElement(Ye.default.Item,{noStyle:!0,name:[`${Zr.id}`,"diffNum"],initialValue:Zr==null?void 0:Zr.difficulty_count},E.createElement("input",{type:"hidden"})),E.createElement(Ye.default.Item,{noStyle:!0,name:[`${Zr.id}`,"extra"],initialValue:Qt(_t({},Zr),{type:tr})},E.createElement("input",{type:"hidden"})))):`${Zr.name}\uFF08${Zr.item_banks_count}\uFF09`,key:`${Zr.id}`,name:Zr.name,item_banks_count:Zr.item_banks_count,icon:Qn=>Qn.expanded?tr==="0"?E.createElement("img",{src:or,className:En.folderIcon}):E.createElement("img",{src:er,className:En.shareFolderIcon}):tr==="0"?E.createElement("img",{src:Gt,className:En.folderIcon}):E.createElement("img",{src:Kn,className:En.shareFolderIcon}),isLeaf:!Zr.have_child&&!((_r=Zr.tag_disciplines)!=null&&_r.length),checkable:xe(wn)===at.OnlyFileFolder,disableCheckbox:Zr.item_banks_count===0,children:[...cr(Zr.children,wn,tr),...Ar]}});var en=({ruleValue:Cn,defaultData:wn,setSelectData:tr,currentItemType:Zr,selectData:_r})=>{const[Ar,Mr]=(0,E.useState)("1"),[Qn,Er]=(0,E.useState)(!0),[Yr]=Ye.default.useForm(),[yi,ma]=(0,E.useState)([]),[Za,Ya]=(0,E.useState)("all"),to=(Br,ai,ei)=>{const{checkedNodes:ui}=ai;console.log("type:",ei,ui,_r),ei==="0"?(Xi(Br),xe(Cn)===at.OnlyFileFolder?(tr(Ai=>Qt(_t({},Ai),{my:ui.map(ir=>({id:ir.key,group_id:ir.key,group_name:ir.name,item_bank_num:ir.item_banks_count,folderType:"0",quanlity:1}))})),Ki(ui.reduce((Ai,ir)=>Ai+ir.item_banks_count,0))):(console.log(ui),tr(Ai=>Qt(_t({},Ai),{my:ui.map(ir=>{const[ti,Mi]=ir.key.split("_");return{id:ir.key,tag_discipline_name:ir.name,group_id:ti,tag_discipline_id:Mi,folderType:"0",group_name:ir.parentName,item_bank_num:ir.item_banks_count,quanlity:1}})})),Ki(ui.reduce((Ai,ir)=>Ai+ir.item_banks_count,0)))):(aa(Br),xe(Cn)===at.OnlyFileFolder?tr(Ai=>(console.log("pre:",Ai),Qt(_t({},Ai),{public:ui.map(ir=>({id:ir.key==="0"?"00":ir.key,teacher_group_name:ir.name,teacher_group_id:ir.key,folderType:"3",item_bank_num:ir.item_banks_count,quanlity:1}))}))):tr(Ai=>Qt(_t({},Ai),{public:ui.map(ir=>{const[ti,Mi]=ir.key.split("_");return{id:ir.key==="0"?"00":ir.key,tag_discipline_name:ir.name,teacher_group_id:ti,tag_discipline_id:Mi,folderType:"3",teacher_group_name:ir.parentName,item_bank_num:ir.item_banks_count,quanlity:1}})})),Ki(ui.reduce((Ai,ir)=>Ai+ir.item_banks_count,0)))},[Ia,Xi]=(0,E.useState)([]),[Lr,aa]=(0,E.useState)([]),[Ba,fo]=(0,E.useState)([]),[no,ja]=(0,E.useState)([]),[Ao,Ua]=(0,E.useState)([]),[Ni,Bo]=(0,E.useState)([]),[bo,ll]=(0,E.useState)(!1),[zl,Yt]=(0,E.useState)(!1);function hn(){return pn(this,null,function*(){let Br=yield(0,ze.ZP)("/api/teach_group_shares.json",{method:"get"});Br&&ma(Br==null?void 0:Br.groups)})}(0,E.useEffect)(()=>{hn()},[]);const bn=Br=>pn(void 0,null,function*(){var ai,ei,ui,Ai,ir,ti,Mi,va,ii,ca,Fi,Hr;Br.type==="0"?ll(!0):Yt(!0);const Ur=yield(0,nr.ex)(Br);Br.type==="0"?ll(!1):Yt(!1),Br.type==="0"?Ua(Ur):Bo(Ur);const ga=(ai=Ur.navigation[0])==null?void 0:ai.difficulty_count.map(Ci=>({label:Ci==null?void 0:Ci.name,value:Bn[Ci.name]})),Ga=(ei=Ur.navigation[0])==null?void 0:ei.tag_disciplines.map(Ci=>{const wa=Ci==null?void 0:Ci.difficulty_count.map(Qi=>({label:Qi==null?void 0:Qi.name,value:Bn[Qi.name]}));return{title:xe(Cn)===at.All&&wa.length>0?E.createElement(Fe.Z,{justify:"space-between",style:{color:"#232B40"}},E.createElement(Ke.Z,null,`${Ci.name}\uFF08${Ci.child_count}\uFF09`),E.createElement(Ke.Z,null,E.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Ye.default.Item,{noStyle:!0,name:[`0_${Ci.id}`,"diffValue"]},E.createElement(Xt.default.Group,{style:{columnGap:12},options:wa})),E.createElement(Ye.default.Item,{noStyle:!0,name:[`0_${Ci.id}`,"diffNum"],initialValue:Ci==null?void 0:Ci.difficulty_count},E.createElement("input",{type:"hidden"})),E.createElement(Ye.default.Item,{noStyle:!0,name:[`0_${Ci.id}`,"extra"],initialValue:{tag_discipline_name:Ci.name,name:"\u6839\u76EE\u5F55",type:Br.type}},E.createElement("input",{type:"hidden"})))):E.createElement("span",{style:{color:"#232B40"}},Ci.name,"\uFF08",Ci.child_count,"\uFF09"),key:`0_${Ci.id}`,name:Ci.name,parentName:"\u6839\u76EE\u5F55",item_banks_count:Ci.child_count,icon:null,isLeaf:!0,checkable:xe(Cn)===at.FileFolderAndKnowledge,disableCheckbox:Ci.child_count===0}});if(Br.type==="0"){const Ci=Yn(Ur.data,Cn,"0"),wa=cr(Ur.data,Cn,"0");console.log("normalChildren2:",wa),fo([{title:xe(Cn)===at.FileFolderAndDiff?E.createElement(Fe.Z,{justify:"space-between",style:{color:"#232B40"}},E.createElement(Ke.Z,null,`\u6839\u76EE\u5F55\uFF08${(ui=Ur.navigation[0])==null?void 0:ui.child_count}\uFF09`),E.createElement(Ke.Z,null,E.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Ye.default.Item,{noStyle:!0,name:["0","diffValue"],initialValue:[]},E.createElement(Xt.default.Group,{style:{columnGap:12},options:ga})),E.createElement(Ye.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(Ai=Ur.navigation[0])==null?void 0:Ai.difficulty_count},E.createElement("input",{type:"hidden"})),E.createElement(Ye.default.Item,{noStyle:!0,name:["0","extra"],initialValue:{type:"0",group_id:"0",name:"\u6839\u76EE\u5F55"}},E.createElement("input",{type:"hidden"})))):E.createElement("span",{style:{color:"#232B40"}},`\u6839\u76EE\u5F55\uFF08${(ir=Ur.navigation[0])==null?void 0:ir.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(ti=Ur.navigation[0])==null?void 0:ti.child_count,disabled:!(((Mi=Ur.navigation[0])==null?void 0:Mi.child_count)>0),checkable:xe(Cn)===at.OnlyFileFolder,icon:Qi=>Qi.expanded?E.createElement("img",{src:or,className:En.folderIcon}):E.createElement("img",{src:Gt,className:En.folderIcon}),isLeaf:!1,children:xe(Cn)===at.OnlyFileFolder||xe(Cn)===at.FileFolderAndDiff?Ci:[...wa,...Ga]}])}else{const Ci=Yn(Ur.data,Cn,"3");ja([{title:xe(Cn)===at.FileFolderAndDiff?E.createElement(Fe.Z,{justify:"space-between"},E.createElement(Ke.Z,null,`\u6839\u76EE\u5F55\uFF08${(va=Ur.navigation[0])==null?void 0:va.child_count}\uFF09`),E.createElement(Ke.Z,null,E.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Ye.default.Item,{noStyle:!0,name:["0","diffValue"]},E.createElement(Xt.default.Group,{style:{columnGap:12},options:ga})),E.createElement(Ye.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(ii=Ur.navigation[0])==null?void 0:ii.difficulty_count},E.createElement("input",{type:"hidden"})),E.createElement(Ye.default.Item,{noStyle:!0,name:["0","extra"],initialValue:{type:"3",group_id:"0",name:"\u6839\u76EE\u5F55"}},E.createElement("input",{type:"hidden"})))):E.createElement("span",{style:{color:"#232B40"}},`\u6839\u76EE\u5F55\uFF08${(ca=Ur.navigation[0])==null?void 0:ca.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(Fi=Ur.navigation[0])==null?void 0:Fi.child_count,checkable:xe(Cn)===at.OnlyFileFolder,icon:wa=>wa.expanded?E.createElement("img",{src:er,className:En.shareFolderIcon}):E.createElement("img",{src:Kn,className:En.shareFolderIcon}),isLeaf:!1,disabled:!(((Hr=Ur.navigation[0])==null?void 0:Hr.child_count)>0),children:xe(Cn)===at.OnlyFileFolder||xe(Cn)===at.FileFolderAndDiff?Ci:[...Ci,...Ga]}])}});(0,E.useEffect)(()=>{Ar==="1"?bn({type:"0",group_id:0,item_type:Zr,show_children:!0}):Ar==="2"&&bn({type:"3",except_mine:!0,item_type:Zr,show_children:!0,teach_group_id:Za==="all"?"":Za})},[Cn,Ar,Za]),(0,E.useEffect)(()=>{var Br,ai,ei,ui,Ai,ir,ti,Mi,va,ii,ca,Fi;console.log("selectData-active:",_r,wn,Ar),Ar==="1"?(Xi((Br=_r==null?void 0:_r.my)==null?void 0:Br.map(Hr=>Hr.id)),Ki(((ei=(ai=_r==null?void 0:_r.my)==null?void 0:ai.reduce)==null?void 0:ei.call(ai,(Hr,Ur)=>Hr+Ur.item_bank_num,0))||0)):Ar==="2"&&(aa((ui=_r==null?void 0:_r.public)==null?void 0:ui.map(Hr=>Hr.id)),Ki(((ir=(Ai=_r==null?void 0:_r.public)==null?void 0:Ai.reduce)==null?void 0:ir.call(Ai,(Hr,Ur)=>Hr+Ur.item_bank_num,0))||0)),xe(Cn)===at.All&&(Ar==="1"?(Xi((ti=_r==null?void 0:_r.my)==null?void 0:ti.map(Hr=>Hr.id)),Ki((_r==null?void 0:_r.filter(Hr=>!Hr.is_share).reduce((Hr,Ur)=>Hr+Ur.item_bank_num,0))||0),(Mi=_r==null?void 0:_r.filter(Hr=>!Hr.is_share))==null||Mi.forEach(Hr=>{const Ur=Yr.getFieldValue([`${Hr.group_id||0}_${Hr.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",Ur),Ur!=null&&Ur.includes[Hr.difficulty]||Yr.setFieldValue([`${Hr.group_id||0}_${Hr.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Ur,Hr.difficulty])))})):Ar==="2"&&(aa((va=_r==null?void 0:_r.public)==null?void 0:va.map(Hr=>Hr.id)),Ki((_r==null?void 0:_r.filter(Hr=>!!Hr.is_share).reduce((Hr,Ur)=>Hr+Ur.item_bank_num,0))||0),(ii=_r==null?void 0:_r.filter(Hr=>!!Hr.is_share))==null||ii.forEach(Hr=>{const Ur=Yr.getFieldValue([`${Hr.teacher_group_id||0}_${Hr.tag_discipline_id}`,"diffValue"])||[];Ur!=null&&Ur.includes[Hr.difficulty]||Yr.setFieldValue([`${Hr.teacher_group_id||0}_${Hr.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Ur,Hr.difficulty])))}))),xe(Cn)===at.FileFolderAndDiff&&(Yr.resetFields(),setTimeout(()=>{tr(_r)},300),Ar==="1"?(Ki((_r==null?void 0:_r.filter(Hr=>!Hr.is_share).reduce((Hr,Ur)=>Hr+Ur.item_bank_num,0))||0),(ca=_r==null?void 0:_r.filter(Hr=>!Hr.is_share))==null||ca.forEach(Hr=>{const Ur=Yr.getFieldValue([`${Hr.group_id}`,"diffValue"])||[];console.log("prev:",Ur),Ur!=null&&Ur.includes[Hr.difficulty]||Yr.setFieldValue([`${Hr.group_id}`,"diffValue"],Array.from(new Set([...Ur,Hr.difficulty])))})):(Ki((_r==null?void 0:_r.filter(Hr=>!!Hr.is_share).reduce((Hr,Ur)=>Hr+Ur.item_bank_num,0))||0),(Fi=_r==null?void 0:_r.filter(Hr=>!!Hr.is_share))==null||Fi.forEach(Hr=>{const Ur=Yr.getFieldValue([`${Hr.teacher_group_id}`,"diffValue"])||[];Ur!=null&&Ur.includes[Hr.difficulty]||Yr.setFieldValue([`${Hr.teacher_group_id}`,"diffValue"],Array.from(new Set([...Ur,Hr.difficulty])))})))},[Ar]),console.log("1111111111:",Ia,Lr),(0,E.useEffect)(()=>{setTimeout(()=>{var Br,ai,ei,ui,Ai;switch(xe(Cn)){case at.OnlyFileFolder:{const ir=[],ti=[];for(const Mi of _r.my||[])ir.push(Mi);for(const Mi of _r.public||[])ti.push(Mi);Xi(ir.map(Mi=>`${Mi.group_id}`)),aa(ti.map(Mi=>`${Mi.teacher_group_id}`)),Ki(Ar==="1"?ir.reduce((Mi,va)=>Mi+va.item_bank_num,0):ti.reduce((Mi,va)=>Mi+va.item_bank_num,0));break}case at.FileFolderAndKnowledge:{const ir=[],ti=[];for(const Mi of(_r==null?void 0:_r.my)||[])ir.push(Mi);for(const Mi of(_r==null?void 0:_r.public)||[])ti.push(Mi);Ki((Br=Ar==="1"?ir:ti)==null?void 0:Br.reduce((Mi,va)=>Mi+va.item_bank_num,0)),Xi(ir.map(Mi=>`${Mi.group_id}_${Mi.tag_discipline_id}`)),aa(ti.map(Mi=>`${Mi.teacher_group_id}_${Mi.tag_discipline_id}`));break}case at.All:{Ar==="1"?(Ki((_r==null?void 0:_r.filter(ir=>!ir.is_share).reduce((ir,ti)=>ir+ti.item_bank_num,0))||0),(ai=_r==null?void 0:_r.filter(ir=>!ir.is_share))==null||ai.forEach(ir=>{const ti=Yr.getFieldValue([`${ir.group_id||0}_${ir.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",ti,ir.difficulty,ir),ti!=null&&ti.includes[ir.difficulty]||Yr.setFieldValue([`${ir.group_id||0}_${ir.tag_discipline_id}`,"diffValue"],Array.from(new Set([...ti,ir.difficulty])))})):(Ki((_r==null?void 0:_r.filter(ir=>!!ir.is_share).reduce((ir,ti)=>ir+ti.item_bank_num,0))||0),(ei=_r==null?void 0:_r.filter(ir=>!!ir.is_share))==null||ei.forEach(ir=>{const ti=Yr.getFieldValue([`${ir.group_id||0}_${ir.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",ti,ir.difficulty,ir),ti!=null&&ti.includes[ir.difficulty]||Yr.setFieldValue([`${ir.group_id||0}_${ir.tag_discipline_id}`,"diffValue"],Array.from(new Set([...ti,ir.difficulty])))}));break}case at.FileFolderAndDiff:{Ar==="1"?(Ki((_r==null?void 0:_r.filter(ir=>!ir.is_share).reduce((ir,ti)=>ir+ti.item_bank_num,0))||0),(ui=_r==null?void 0:_r.filter(ir=>!ir.is_share))==null||ui.forEach(ir=>{const ti=Yr.getFieldValue([`${ir.group_id}`,"diffValue"])||[];console.log("prev:",ti,ir.difficulty),ti!=null&&ti.includes[ir.difficulty]||Yr.setFieldValue([`${ir.group_id}`,"diffValue"],Array.from(new Set([...ti,ir.difficulty])))})):(Ki((_r==null?void 0:_r.filter(ir=>!!ir.is_share).reduce((ir,ti)=>ir+ti.item_bank_num,0))||0),(Ai=_r==null?void 0:_r.filter(ir=>!!ir.is_share))==null||Ai.forEach(ir=>{const ti=Yr.getFieldValue([`${ir.group_id}`,"diffValue"])||[];ti!=null&&ti.includes[ir.difficulty]||Yr.setFieldValue([`${ir.group_id}`,"diffValue"],Array.from(new Set([...ti,ir.difficulty])))}));break}}},800)},[wn,Cn,Ba,no]);const[rr,Ki]=(0,E.useState)(0);return E.createElement(Ye.default,{form:Yr,onValuesChange:(Br,ai)=>pn(void 0,null,function*(){var ei,ui,Ai,ir;console.log("onValuesChange:",ai,Br);let ti=0;if(xe(Cn)===at.FileFolderAndDiff){const Mi=yield Yr.getFieldValue(),va=[],ii=[];for(const Fi of Object.keys(Mi))if((ui=(ei=Mi[Fi])==null?void 0:ei.diffValue)!=null&&ui.length&&Fi!=="null"&&Fi!==null){const Hr=Mi[Fi];va.push(_t({id:Fi},Hr))}const ca={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"};va.map(Fi=>{var Hr,Ur,ga,Ga,Ci;Fi.id==0&&(Fi.diffNum=Ar==="1"?(Ur=(Hr=Ao==null?void 0:Ao.navigation)==null?void 0:Hr[0])==null?void 0:Ur.difficulty_count:(Ga=(ga=Ni==null?void 0:Ni.navigation)==null?void 0:ga[0])==null?void 0:Ga.difficulty_count),(Ci=Fi==null?void 0:Fi.diffValue)==null||Ci.map(wa=>{var Qi,Ea,dl,Dl,Zl;const rs={group_name:((Qi=Fi.extra)==null?void 0:Qi.name)||"",teacher_group_name:"",id:`${Fi.id}_${wa}`,group_id:Fi.id,difficulty:wa,item_bank_num:(Dl=(dl=(Ea=Fi.diffNum)==null?void 0:Ea.filter(ho=>ho.name===ca[wa]))==null?void 0:dl[0])==null?void 0:Dl.value};Ar==="2"&&(rs.is_share=!0,rs.teacher_group_id=Fi.id,rs.teacher_group_name=(Zl=Fi.extra)==null?void 0:Zl.name),ii.push(rs)})}),ti=ii.reduce((Fi,Hr)=>Fi+Hr.item_bank_num,0),tr([...ii,..._r==null?void 0:_r.filter(Fi=>Ar==="1"?Fi.is_share:!Fi.is_share)])}else if(xe(Cn)===at.All){const Mi=[];for(const va of Object.keys(ai)){const{diffNum:ii=[],diffValue:ca=[],extra:Fi={}}=ai[va];console.log("---",Fi);const[Hr,Ur]=va.split("_");let ga=(ir=(Ai=Fi.tag_disciplines)==null?void 0:Ai.filter(Ga=>parseInt(Ga.id)===parseInt(Ur)))==null?void 0:ir[0];ca.forEach(Ga=>{var Ci;const wa={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Qi=(Ci=ii==null?void 0:ii.find(dl=>dl.name===wa[Ga]))==null?void 0:Ci.value,Ea={group_name:"",teacher_group_name:"",tag_discipline_name:(ga==null?void 0:ga.name)||Fi.tag_discipline_name,id:`${va}_${Ga}`,group_id:Hr,is_share:!!(ga!=null&&ga.is_share||(Fi==null?void 0:Fi.type)==="3"),tag_discipline_id:Ur,difficulty:Ga,item_bank_num:Qi};ti+=Qi,Fi.type==="0"?Ea.group_name=Fi.name:Ea.teacher_group_name=Fi.name,Ar==="2"&&(Ea.is_share=!0,Ea.teacher_group_id=Fi.id||0,Ea.teacher_group_name=Fi.name),Qi>0&&Mi.push(Ea)})}tr([...Mi,..._r==null?void 0:_r.filter(va=>Ar==="1"?va.is_share:!va.is_share)])}Ki(ti)})},E.createElement(ar.default,{destroyInactiveTabPane:!0,activeKey:Ar,onChange:Br=>Mr(Br),style:{minHeight:260},tabBarExtraContent:{right:Ar==="2"&&(yi==null?void 0:yi.length)>0&&E.createElement(Zn.default,{onChange:Br=>{Ya(Br)},value:Za,style:{width:120}},E.createElement(Zn.default.Option,{key:"all",value:"all"},"\u5168\u90E8"),yi==null?void 0:yi.map(Br=>E.createElement(Zn.default.Option,{key:Br==null?void 0:Br.group_id,value:Br==null?void 0:Br.group_id},Br==null?void 0:Br.name)))},items:[{key:"1",label:"\u6211\u521B\u5EFA\u7684",children:(Ba==null?void 0:Ba.length)===0?E.createElement(be.Z,{spinning:bo},E.createElement(Vt.Z,{ButtonTwo:E.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):E.createElement("div",{className:En.folderAreaWrapper},E.createElement(Fe.Z,{justify:"space-between",align:"middle",className:En.folderAreaHeader},E.createElement("span",null,"\u6587\u4EF6\u5939"),E.createElement("span",{className:"mr20"},"\u5DF2\u9009",E.createElement("span",{style:{color:"#3061D0"}}," ",rr," "),"\u9898")),E.createElement(be.Z,{spinning:bo},E.createElement("div",{style:{minHeight:200}},Ba.length>0&&E.createElement(Wr.default,{checkable:!0,className:En.folderWrapper,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},selectable:!1,onCheck:(Br,ai)=>to(Br,ai,"0"),checkedKeys:Ia,checkStrictly:!0,treeData:Ba,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))},{key:"2",label:"\u56E2\u961F\u5171\u4EAB",children:(no==null?void 0:no.length)===0?E.createElement(be.Z,{spinning:zl},E.createElement(Vt.Z,{ButtonTwo:E.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):E.createElement("div",{className:En.folderAreaWrapper},E.createElement(Fe.Z,{justify:"space-between",align:"middle",className:En.folderAreaHeader},E.createElement("span",null,"\u6587\u4EF6\u5939"),E.createElement("span",{className:"mr20"},"\u5DF2\u9009",E.createElement("span",{style:{color:"#3061D0"}}," ",rr||0," "),"\u9898")),E.createElement(be.Z,{spinning:zl},E.createElement("div",{style:{minHeight:200}},(no==null?void 0:no.length)>0&&E.createElement(Wr.default,{checkable:!0,className:En.folderWrapper,selectable:!1,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},onCheck:(Br,ai)=>to(Br,ai,"3"),checkedKeys:Lr,checkStrictly:!0,treeData:no,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))}]}))},rn=ne(10358),Or=ne(78162),kr=Object.defineProperty,Cr=Object.defineProperties,Dr=Object.getOwnPropertyDescriptors,qr=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,Jt=(Cn,wn,tr)=>wn in Cn?kr(Cn,wn,{enumerable:!0,configurable:!0,writable:!0,value:tr}):Cn[wn]=tr,On=(Cn,wn)=>{for(var tr in wn||(wn={}))br.call(wn,tr)&&Jt(Cn,tr,wn[tr]);if(qr)for(var tr of qr(wn))fi.call(wn,tr)&&Jt(Cn,tr,wn[tr]);return Cn},Hn=(Cn,wn)=>Cr(Cn,Dr(wn)),qn=(Cn,wn,tr)=>new Promise((Zr,_r)=>{var Ar=Er=>{try{Qn(tr.next(Er))}catch(Yr){_r(Yr)}},Mr=Er=>{try{Qn(tr.throw(Er))}catch(Yr){_r(Yr)}},Qn=Er=>Er.done?Zr(Er.value):Promise.resolve(Er.value).then(Ar,Mr);Qn((tr=tr.apply(Cn,wn)).next())});const kn={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var Pn=({ruleValue:Cn,setSelectData:wn,currentItemType:tr,defaultData:Zr,isFirst:_r})=>{const[Ar,Mr]=(0,E.useState)([]),[Qn,Er,Yr,yi]=(0,Or.U)(vt,{source:"question",page:1,per_page:10,group_id:0,keyword:"",group_type:0,clazz:"ItemBanksGroup",sub_discipline_id:void 0,item_type:tr,show_children:!0});(0,E.useEffect)(()=>{qn(void 0,null,function*(){const Lr=yield Yr({},!0);Mr((0,rn.L)(Lr.disciplines))})},[]),console.log(Zr),(0,E.useEffect)(()=>{if(_r)switch(xe(Cn)){case at.OnlyKnowledge:{Ia(Zr.map(Lr=>Lr.tag_discipline_id));break}case at.KnowledgeAndDiff:{const Lr=new Map;Zr.forEach(aa=>{aa&&(Lr.has(aa.tag_discipline_id)?Lr.set(aa.tag_discipline_id,[...Lr.get(aa.tag_discipline_id),aa.difficulty]):Lr.set(aa.tag_discipline_id,[aa.difficulty]))});for(const[aa,Ba]of Lr.entries())ma.setFieldValue([aa,"diff"],Ba);break}}},[Zr,Cn,_r]);const[ma]=Ye.default.useForm(),Za=(0,E.useMemo)(()=>{const Lr=[];let aa="",Ba="";const fo={};for(const no of(yi==null?void 0:yi.disciplines)||[]){aa=no.name;for(const ja of no.sub_disciplines){Ba=ja.name;for(const Ao of ja.tag_disciplines){const Ua={sub_discipline_name:`${aa}&${Ba}`,sub_discipline_id:ja.id,tag_discipline_name:Ao.name,id:Ao.id,item_bank_num:Ao.total_count,difficulty_count:Ao.difficulty_count,tag_discipline_id:Ao.id};Lr.push(Ua)}}}return Lr},[yi,Zr]),Ya=[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",show:!0,render:(Lr,aa)=>{const{item_bank_num:Ba}=aa;return E.createElement("div",null,Lr,`(${Ba})`)}},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"sub_discipline_name",ellipsis:!0,show:!0},{title:"\u96BE\u5EA6",width:"35%",show:Cn.includes(Wt.Difficulty),render:(Lr,aa)=>{const{id:Ba,difficulty_count:fo,total_count:no,sub_discipline_name:ja,tag_discipline_name:Ao}=aa;return E.createElement(E.Fragment,null,E.createElement(Ye.default.Item,{name:[Ba,"diff"],noStyle:!0},E.createElement(Xt.default.Group,{style:{columnGap:12},options:fo.map(Ua=>({label:Ua.name,value:kn[Ua.name]}))})),E.createElement(Ye.default.Item,{name:[Ba,"extra"],initialValue:{difficulty_count:fo,total_count:no,sub_discipline_name:ja,tag_discipline_name:Ao},noStyle:!0},E.createElement("input",{type:"hidden"})))}}].filter(Lr=>Lr.show),[to,Ia]=(0,E.useState)([]),Xi=(0,E.useRef)(new Map);return E.createElement("div",{style:{marginTop:12}},E.createElement(Fe.Z,{className:"mb20",align:"middle",gutter:20},E.createElement(Ke.Z,null,E.createElement(Pe.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",size:"large",style:{width:240},options:Ar,onChange:Lr=>{Yr({sub_discipline_id:Lr==null?void 0:Lr[1]})}})),E.createElement(Ke.Z,null,E.createElement(Nt.t7,{style:{width:300},placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:Qn.keyword,onChange:Lr=>Yr({keyword:Lr})}))),E.createElement(Ye.default,{form:ma,onValuesChange:(Lr,aa)=>{var Ba;console.log(aa),Xi.current.clear();for(const fo of Object.keys(aa)){const no={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},ja=aa[fo],{difficulty_count:Ao,total_count:Ua}=ja.extra||{};(Ba=ja==null?void 0:ja.diff)==null||Ba.forEach(Ni=>{var Bo;const bo=(Bo=Ao==null?void 0:Ao.find(zl=>zl.name===no[Ni]))==null?void 0:Bo.value,ll=Hn(On({},ja.extra),{id:`${fo}_${Ni}`,difficulty:Ni,item_bank_num:bo,tag_discipline_id:fo});bo>0&&Xi.current.set(`${fo}_${Ni}`,ll)})}wn([...Xi.current.values()])}},(Za==null?void 0:Za.length)===0?E.createElement(Vt.Z,{ButtonTwo:E.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")}):E.createElement(ur.default,{rowSelection:xe(Cn)===at.OnlyKnowledge?{preserveSelectedRowKeys:!0,type:"checkbox",onChange(Lr,aa){console.log("table-selectedRowKeys:",Lr,aa),Ia(Lr),wn(aa)},getCheckboxProps:Lr=>({disabled:Lr.item_bank_num===0}),selectedRowKeys:to}:void 0,columns:Ya,dataSource:Za,loading:Er,scroll:{y:480},rowKey:"id",pagination:!1})))},fr=Object.defineProperty,Pr=Object.defineProperties,Gr=Object.getOwnPropertyDescriptors,pi=Object.getOwnPropertySymbols,gi=Object.prototype.hasOwnProperty,Ri=Object.prototype.propertyIsEnumerable,Si=(Cn,wn,tr)=>wn in Cn?fr(Cn,wn,{enumerable:!0,configurable:!0,writable:!0,value:tr}):Cn[wn]=tr,wi=(Cn,wn)=>{for(var tr in wn||(wn={}))gi.call(wn,tr)&&Si(Cn,tr,wn[tr]);if(pi)for(var tr of pi(wn))Ri.call(wn,tr)&&Si(Cn,tr,wn[tr]);return Cn},Zi=(Cn,wn)=>Pr(Cn,Gr(wn)),ji=(Cn,wn,tr)=>new Promise((Zr,_r)=>{var Ar=Er=>{try{Qn(tr.next(Er))}catch(Yr){_r(Yr)}},Mr=Er=>{try{Qn(tr.throw(Er))}catch(Yr){_r(Yr)}},Qn=Er=>Er.done?Zr(Er.value):Promise.resolve(Er.value).then(Ar,Mr);Qn((tr=tr.apply(Cn,wn)).next())});const Gi={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var Di=({open:Cn,onCancel:wn,setVisibleModalType:tr,currentItemType:Zr})=>{var _r;const{data:Ar,dispatch:Mr}=(0,E.useContext)(on),[Qn,Er]=(0,E.useState)([]),[Yr,yi]=(0,E.useState)(),ma=(_r=Ar==null?void 0:Ar.item_types)==null?void 0:_r.find(Ba=>Ba.item_type===Zr);(0,E.useEffect)(()=>{var Ba,fo,no;if(Cn){const ja=(Ba=Ar==null?void 0:Ar.item_types)==null?void 0:Ba.find(Ao=>Ao.item_type===Zr);if((ja==null?void 0:ja.random_rule_type)!==at.Shixun){const Ao=dn[ja==null?void 0:ja.random_rule_type]||[];Er(Ao);const Ua=(no=(fo=Ar==null?void 0:Ar.item_types)==null?void 0:fo.find(Ni=>Ni.item_type===Zr))==null?void 0:no.contents;switch(console.log("----xxx",xe(Ao)),xe(Ao)){case at.OnlyDifficulty:{Ia(Ua.map(Ni=>Ni.difficulty));break}case at.OnlyFileFolder:{Ia({my:Ua==null?void 0:Ua.filter(Ni=>parseInt(Ni.teacher_group_id)!=="NaN"&&!Ni.teacher_group_id&&Ni.teacher_group_id!==0),public:Ua==null?void 0:Ua.filter(Ni=>parseInt(Ni.teacher_group_id)>=0)}),yi({my:Ua==null?void 0:Ua.filter(Ni=>parseInt(Ni.teacher_group_id)!=="NaN"&&!Ni.teacher_group_id&&Ni.teacher_group_id!==0),public:Ua==null?void 0:Ua.filter(Ni=>parseInt(Ni.teacher_group_id)>=0)});break}case at.FileFolderAndKnowledge:{Ia({my:Ua==null?void 0:Ua.filter(Ni=>parseInt(Ni.teacher_group_id)!=="NaN"&&!Ni.teacher_group_id&&Ni.teacher_group_id!==0),public:Ua==null?void 0:Ua.filter(Ni=>parseInt(Ni.teacher_group_id)>=0)}),yi({my:Ua==null?void 0:Ua.filter(Ni=>parseInt(Ni.teacher_group_id)!=="NaN"&&!Ni.teacher_group_id&&Ni.teacher_group_id!==0),public:Ua==null?void 0:Ua.filter(Ni=>parseInt(Ni.teacher_group_id)>=0)});break}case at.FileFolderAndDiff:{Ia(Ua),yi(Ua);break}case at.All:{Ia(Ua),yi(Ua);break}default:Ia(Ua)}}}},[Cn]);const[Za,Ya]=(0,E.useState)([]);(0,E.useEffect)(()=>{Cn&&$e({item_type:Zr}).then(Ba=>{Ba.status===0&&Ya(Ba.data)})},[Cn]),(0,E.useEffect)(()=>{console.log("selectData",Yr)},[Yr]);const[to,Ia]=(0,E.useState)(),[Xi,Lr]=(0,E.useState)(!0);console.log("isFirst:",Xi);const aa=Ba=>{Er(Ba),yi([]),Ia([]),Lr(!1)};return E.createElement(Bt.default,{title:"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219",width:948,closable:!0,centered:!0,open:Cn,onCancel:wn,destroyOnClose:!0,onOk:()=>ji(void 0,null,function*(){var Ba,fo,no,ja,Ao,Ua,Ni;if(Yr===void 0){tr("");return}if(Object.prototype.toString.call(Yr)==="[object Object]"&&!((Ba=Yr.my)!=null&&Ba.length)&&!((fo=Yr.public)!=null&&fo.length)){Ee.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(!Object.keys(Yr).length&&!(Yr!=null&&Yr.length)){Ee.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}const Bo=xe(Qn);switch(Bo){case at.OnlyFileFolder:{Mr({type:"editRule",payload:{itemType:Zr,tableData:[...Yr.my||[],...Yr.public||[]],randomRuleType:Bo}});break}case at.OnlyDifficulty:{const bo=(ja=(no=Ar==null?void 0:Ar.item_types)==null?void 0:no.find(zl=>zl.item_type===Zr))==null?void 0:ja.contents;let ll=[{},{value:(Ao=Za.find(zl=>zl.name==="\u7B80\u5355"))==null?void 0:Ao.value},{value:(Ua=Za.find(zl=>zl.name==="\u9002\u4E2D"))==null?void 0:Ua.value},{value:(Ni=Za.find(zl=>zl.name==="\u56F0\u96BE"))==null?void 0:Ni.value}];Mr({type:"editRule",payload:{itemType:Zr,tableData:Yr.map((zl,Yt)=>{var hn,bn,rr,Ki;return{difficulty:zl,id:Yt,quanlity:((bn=(hn=bo==null?void 0:bo.filter(Br=>Br.id===Yt))==null?void 0:hn[0])==null?void 0:bn.quanlity)||1,item_bank_num:(Za==null?void 0:Za.length)===1?(rr=Za[0])==null?void 0:rr.value:(Ki=ll==null?void 0:ll[zl])==null?void 0:Ki.value}}),randomRuleType:Bo}});break}case at.OnlyKnowledge:{Mr({type:"editRule",payload:{itemType:Zr,tableData:Yr.map(bo=>Zi(wi({},bo),{quanlity:bo.quanlity||1})),randomRuleType:Bo}});break}case at.KnowledgeAndDiff:{Mr({type:"editRule",payload:{itemType:Zr,tableData:Yr.map(bo=>Zi(wi({},bo),{quanlity:bo.quanlity||1})),randomRuleType:Bo}});break}case at.FileFolderAndDiff:{Mr({type:"editRule",payload:{itemType:Zr,tableData:Yr.map(bo=>Zi(wi({},bo),{quanlity:bo.quanlity||1})),randomRuleType:Bo}});break}case at.FileFolderAndKnowledge:{Mr({type:"editRule",payload:{itemType:Zr,tableData:[...Yr.my||[],...Yr.public||[]],randomRuleType:Bo}});break}case at.All:{Mr({type:"editRule",payload:{itemType:Zr,tableData:Yr.map(bo=>Zi(wi({},bo),{quanlity:bo.quanlity||1})),randomRuleType:Bo}});break}}tr("")})},E.createElement(Xt.default.Group,{className:`${En.ruleCheckBox}`,style:{marginBottom:8},value:Qn,onChange:Ba=>{var fo;Qn!=null&&Qn.length&&((fo=ma==null?void 0:ma.contents)==null?void 0:fo.length)>0?Bt.default.confirm({title:"\u63D0\u793A",content:"\u5207\u6362\u89C4\u5219\u540E\uFF0C\u4E4B\u524D\u7684\u62BD\u9898\u914D\u7F6E\u5C06\u88AB\u6E05\u7A7A\uFF01",okText:"\u7ACB\u5373\u5207\u6362",cancelText:"\u6682\u4E0D\u5207\u6362",onOk:()=>aa(Ba)}):aa(Ba)},options:[{label:"\u6307\u5B9A\u6587\u4EF6\u5939\u62BD\u9898",value:Wt.FileFolder},{label:"\u6307\u5B9A\u96BE\u5EA6\u62BD\u9898",value:Wt.Difficulty},{label:"\u6307\u5B9A\u77E5\u8BC6\u70B9\u62BD\u9898",value:Wt.Knowledge}]}),Qn.includes(Wt.FileFolder)?E.createElement(en,{defaultData:to,selectData:Yr,ruleValue:Qn,setSelectData:yi,currentItemType:Zr}):Qn.includes(Wt.Knowledge)?E.createElement(Pn,{defaultData:to,isFirst:Xi,ruleValue:Qn,setSelectData:yi,currentItemType:Zr}):Qn.includes(Wt.Difficulty)?E.createElement("div",{style:{marginTop:12}},E.createElement("span",{className:"mr20",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Xt.default.Group,{style:{columnGap:12},options:Za.map(Ba=>({label:Ba.name,value:Gi[Ba.name]})),value:Yr||to,onChange:Ba=>yi(Ba)})):null)},li=({open:Cn,onCancel:wn,setVisibleModalType:tr,currentItemType:Zr})=>Cn?E.createElement(Di,{open:Cn,onCancel:wn,setVisibleModalType:tr,currentItemType:Zr}):null,Ii=ne(6848),ya=ne(15496),vi=ne(30450),jr=ne(58997),Ir=ne(85333),Vi=ne(61485),xi=ne(78170),ba=({open:Cn,onCancel:wn,onOk:tr})=>{const{data:Zr}=(0,E.useContext)(on),_r=(0,ya.g)(),[Ar,Mr,Qn,Er]=(0,Or.U)(vi.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[Yr,yi]=(0,E.useState)(!1);(0,E.useEffect)(()=>{if(Cn){Qn({page:1,limit:10,type:0},!0).then(Xi=>{(Xi==null?void 0:Xi.shixuns_count)===0&&yi(!0)});const Ia=Zr.item_types.find(Xi=>Xi.item_type==="PRACTICAL");Za(Ia.item_banks.map(Xi=>Xi.id)),to(Ia.item_banks)}},[Cn,Zr]);const[ma,Za]=(0,E.useState)([]),[Ya,to]=(0,E.useState)([]);return E.createElement(Bt.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:Cn,width:948,centered:!0,closable:!0,onCancel:wn,onOk:()=>tr(Ya),destroyOnClose:!0},E.createElement(Fe.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},E.createElement(Ke.Z,null,E.createElement(Pe.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:_r,onChange:Ia=>{Qn({page:1,discipline_id:Ia==null?void 0:Ia[0],sub_discipline_id:Ia==null?void 0:Ia[1]})}}),E.createElement(Zn.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u521D\u7EA7",value:1},{label:"\u4E2D\u7EA7",value:2},{label:"\u4E2D\u9AD8\u7EA7",value:3},{label:"\u9AD8\u7EA7",value:4}],onChange:Ia=>Qn({page:1,diff:Ia})}),E.createElement(Zn.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:Ia=>Qn({page:1,shixun_publish_status:Ia})})),E.createElement(Nt.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:Ia=>{Qn({keyword:Ia,page:1})}})),Yr?E.createElement("div",null,E.createElement(Vt.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,Ir.xg)("/shixuns")})):E.createElement(ur.default,{loading:Mr,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(Ia,Xi)=>E.createElement("div",{style:{display:"flex",alignItems:"center"}},E.createElement("div",{className:Xi!=null&&Xi.high_resources_consume?gt.title:"",title:Ia||"--"},E.createElement(jr.Z,{key:1,showLines:1,showTextOnly:!0,value:Ia||"--"})),(Xi==null?void 0:Xi.high_resources_consume)&&E.createElement(xi.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Ia,Xi,Lr)=>E.createElement("span",null,Ia||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:E.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",E.createElement(Ii.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},E.createElement(Vi.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(Ia,Xi,Lr)=>E.createElement("span",null,Ia||"- -")},{title:"\u64CD\u4F5C",render(Ia,Xi){const{title:Lr,challenge_names:aa,author_name:Ba,identifier:fo,author_school_name:no,study_count:ja}=Xi||{};return E.createElement("div",null,E.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{Bt.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:E.createElement("div",null,E.createElement(jr.Z,{value:Lr,style:{marginBottom:18}}),E.createElement("div",{className:gt.challengeNameWrapper},aa.map((Ao,Ua)=>E.createElement("div",{className:gt.challengeName,key:Ua},"\u7B2C",(0,Ir.EM)(Ua+1),"\u9898\xA0",Ao))),E.createElement(Fe.Z,{className:gt.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},E.createElement(Ke.Z,{className:gt.shixunInfoWrapper},E.createElement("span",null,"\u521B\u5EFA\u8005"),E.createElement("span",{className:gt.shixunInfo},Ba.split("\u3001")[0]),E.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),E.createElement("span",{className:gt.shixunInfo},no),E.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),E.createElement("span",{className:gt.shixunInfo},ja)),E.createElement(tt.ZP,{type:"primary",className:gt.btnToDetail,onClick:()=>(0,Ir.xg)(`/shixuns/${fo}/challenges?exercise=true`)},E.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Xi==null?void 0:Xi.shixun_tag_num)===1&&E.createElement("a",{target:"_blank",href:`/shixuns/${Xi==null?void 0:Xi.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:Er==null?void 0:Er.items,rowSelection:{selectedRowKeys:ma,preserveSelectedRowKeys:!0,getCheckboxProps:Ia=>({disabled:Ia.shixun_tag_num===1}),onChange(Ia,Xi){var Lr,aa,Ba;console.log(Ia),Za(Ia);const fo=[];for(const ja of Ya)Ia.includes(ja.id)&&fo.push(ja);const no=fo.map(ja=>ja.id);for(const ja of Xi)ja&&Ia.includes(ja.id)&&!no.includes(ja.id)&&fo.push({id:ja.id,difficulty:ja.level,identifier:ja.identifier,name:ja.name,real_name:(Lr=ja==null?void 0:ja.author_name)==null?void 0:Lr.split("\u3001")[0],school_name:ja.author_school_name,challenge_names:ja.challenge_names,challenges:(aa=ja.challenge_names)==null?void 0:aa.map((Ao,Ua)=>({subject:Ao,id:Ua,score:5})),score:((Ba=ja.challenge_names)==null?void 0:Ba.length)*5,study_count:ja.study_count,challenges_count:ja.challenges_count});to(fo)}},pagination:{current:Ar.page,pageSize:Ar.limit,total:Er==null?void 0:Er.items_count,showTotal:Ia=>E.createElement("span",null,"\u5171\xA0",E.createElement("span",{style:{color:"#165DFF"}},Ia),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(Ia,Xi){Qn({page:Ia,limit:Xi})},size:"default"},scroll:{y:400}}))},oa=ne(22061),xa=ne(59301),Na=Object.defineProperty,Po=Object.defineProperties,ki=Object.getOwnPropertyDescriptors,Hi=Object.getOwnPropertySymbols,Aa=Object.prototype.hasOwnProperty,Ma=Object.prototype.propertyIsEnumerable,lo=(Cn,wn,tr)=>wn in Cn?Na(Cn,wn,{enumerable:!0,configurable:!0,writable:!0,value:tr}):Cn[wn]=tr,hl=(Cn,wn)=>{for(var tr in wn||(wn={}))Aa.call(wn,tr)&&lo(Cn,tr,wn[tr]);if(Hi)for(var tr of Hi(wn))Ma.call(wn,tr)&&lo(Cn,tr,wn[tr]);return Cn},qo=(Cn,wn)=>Po(Cn,ki(wn)),Ho=({onDelete:Cn,list:wn,onSelect:tr})=>{const[Zr,_r]=(0,E.useState)(!1),{dispatch:Ar,disabled:Mr}=(0,E.useContext)(on),Qn=(Za,Ya,to)=>{const Ia=Array.from(Za),[Xi]=Ia.splice(Ya,1);return Ia.splice(to,0,Xi),Ia},[Er,Yr]=(0,E.useState)(null),[yi,ma]=(0,E.useState)(!1);return xa.createElement(oa.Z5,{onDragStart:()=>{ma(!0)},onDragEnd:Za=>{if(ma(!1),!Za.destination)return;const Ya=Qn(wn,Za.source.index,Za.destination.index);Ar({type:"updateItemTypes",payload:Ya})}},xa.createElement(oa.bK,{droppableId:"droppable"},(Za,Ya)=>xa.createElement("div",qo(hl({},Za.droppableProps),{ref:Za.innerRef}),xa.createElement(be.Z,{spinning:Zr},wn.map((to,Ia)=>xa.createElement(oa._l,{key:Ia,draggableId:Ia.toString(),index:Ia,isDragDisabled:Er!==to.item_type},(Xi,Lr)=>xa.createElement(Fe.Z,qo(hl(hl({align:"middle",wrap:!1,ref:Xi.innerRef},Xi.draggableProps),Xi.dragHandleProps),{className:`${gt.dragItem} ${yi?gt.dragging:""}`}),xa.createElement(Ke.Z,{className:gt.contentArea,onClick:()=>{tr(to.item_type),(0,Ir.k3)()}},xa.createElement("span",{className:gt.blackText},(0,Ir.EM)(Ia+1),"\u3001\u3010",to.item_type_text,"\u3011"),xa.createElement(Ii.Z,{title:`\uFF08${to.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(to.total_score).toFixed(1)}\u5206\uFF09`},xa.createElement("span",{className:gt.greyText},`\uFF08${to.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(to.total_score).toFixed(1)}\u5206\uFF09`))),!Mr&&xa.createElement(xa.Fragment,null,xa.createElement(Ii.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F",open:Er===to.item_type&&!yi},xa.createElement("div",{style:{cursor:"grab"},className:`${gt.iconWrapper} ${yi?gt.hidden:""}`,onMouseEnter:()=>{Yr(to.item_type)},onMouseLeave:()=>Yr(null)},xa.createElement("i",{className:`iconfont icon-tuodong1 ${gt.dragIcon}`}))),xa.createElement(Ii.Z,{title:"\u5220\u9664"},xa.createElement("div",{className:`${gt.iconWrapper} ${yi?gt.hidden:""}`,style:{cursor:"pointer"},onClick:()=>Cn(to.item_type)},xa.createElement("i",{className:`iconfont icon-shanchu12 ${gt.deleteIcon}`})))))))),Za.placeholder)))},Vo=ne(10777),Qr={flex_box_center:"flex_box_center___ppkzA",flex_space_between:"flex_space_between___Z1syx",flex_box_vertical_center:"flex_box_vertical_center___twJ9S",flex_box_center_end:"flex_box_center_end___uI0uW",flex_box_column:"flex_box_column___JRp7D",timelineWrapper:"timelineWrapper___LP9aM",title:"title___KUHj_",desc:"desc___ubc8E",titles:"titles___njkjf",questionDetailWrapper:"questionDetailWrapper___p4SFM",questionTitle:"questionTitle___JC9X6",questionScoreInfo:"questionScoreInfo___NgOJI",deleteIcon:"deleteIcon___oMVTN",deleteBtn:"deleteBtn___JUPEl",normalText:"normalText___FW9Y_",folderIcon:"folderIcon___gvacQ",challengeNameWrapper:"challengeNameWrapper___fG7Vv",challengeName:"challengeName___Ia1Xs",shixunPreviewFooter:"shixunPreviewFooter___rKsnN",shixunInfoWrapper:"shixunInfoWrapper___FEnDb",shixunInfo:"shixunInfo___TbrA2",btnToDetail:"btnToDetail___dqLQP",q_title:"q_title___qnv4p"},Ei=ne(73631),ri=ne(31328);const hi=(Cn,wn,tr,Zr)=>{const _r={[at.OnlyDifficulty]:[{title:"\u96BE\u5EA6",key:"difficulty",render(Ar,Mr){const{difficulty:Qn}=Mr;return E.createElement("span",{style:{color:ue[Qn].color}},ue[Qn].label)}}],[at.OnlyKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"sub_discipline_name",width:180,ellipsis:{showTitle:!0},render(Ar,Mr){return`${Ar}`}}],[at.OnlyFileFolder]:[{title:"\u6587\u4EF6\u5939",render(Ar,Mr,Qn){const{group_name:Er,teacher_group_name:Yr}=Mr,yi=Er||Yr,ma=Yr?ri:Ei;return E.createElement("div",{style:{display:"flex"}},E.createElement("img",{src:ma,className:Qr.folderIcon})," ",E.createElement(Ii.Z,{title:yi},E.createElement("span",{className:Qr.titles},yi)))}},{title:"\u7C7B\u578B",render(Ar,Mr){const{teacher_group_name:Qn}=Mr;return E.createElement("span",null,Qn?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[at.KnowledgeAndDiff]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:{showTitle:!0}},{title:"\u65B9\u5411&\u8BFE\u7A0B",width:180,dataIndex:"sub_discipline_name",ellipsis:{showTitle:!0}},{title:"\u96BE\u5EA6",key:"difficulty",render(Ar,Mr){const{difficulty:Qn}=Mr;return E.createElement("span",{style:{color:ue[Qn].color}},ue[Qn].label)}}],[at.FileFolderAndKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(Ar,Mr){const{group_name:Qn,teacher_group_name:Er}=Mr,Yr=Qn||Er,yi=Er?ri:Ei;return E.createElement("div",{style:{display:"flex"}},E.createElement("img",{src:yi,className:Qr.folderIcon})," ",E.createElement(Ii.Z,{title:Yr},E.createElement("span",{className:Qr.titles},Yr)))}},{title:"\u7C7B\u578B",render(Ar,Mr){const{teacher_group_name:Qn}=Mr;return E.createElement("span",null,Qn?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[at.FileFolderAndDiff]:[{title:"\u6587\u4EF6\u5939",render(Ar,Mr){const{group_name:Qn,teacher_group_name:Er}=Mr,Yr=Qn||Er,yi=Er?ri:Ei;return E.createElement("div",{style:{display:"flex"}},E.createElement("img",{src:yi,className:Qr.folderIcon})," ",E.createElement(Ii.Z,{title:Yr},E.createElement("span",{className:Qr.titles},Yr)))}},{title:"\u7C7B\u578B",render(Ar,Mr){const{teacher_group_name:Qn}=Mr;return E.createElement("span",null,Qn?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(Ar,Mr){const{difficulty:Qn}=Mr;return E.createElement("span",{style:{color:ue[Qn].color}},ue[Qn].label)}}],[at.All]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(Ar,Mr){const{group_name:Qn,teacher_group_name:Er,teacher_group_id:Yr}=Mr,yi=Qn||Er,ma=Yr||Yr===0?ri:Ei;return E.createElement("div",{style:{display:"flex"}},E.createElement("img",{src:ma,className:Qr.folderIcon})," ",E.createElement(Ii.Z,{title:yi},E.createElement("span",{className:Qr.titles},yi)))}},{title:"\u7C7B\u578B",render(Ar,Mr){const{teacher_group_id:Qn}=Mr;return E.createElement("span",null,Qn||Qn===0?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(Ar,Mr){const{difficulty:Qn}=Mr;return E.createElement("span",{style:{color:ue[Qn].color}},ue[Qn].label)}}],[at.Shixun]:[]};for(const Ar of Object.values(_r))Ar.push({title:"\u62BD\u9898\u6570\u91CF",key:"quanlity",render(Mr,Qn){const{item_bank_num:Er,quanlity:Yr,id:yi,teacher_group_id:ma}=Qn||{};return E.createElement(Fe.Z,{align:"middle"},E.createElement(Ie.Z,{disabled:Zr,min:1,max:Er,size:"large",precision:0,value:Yr,onChange:Za=>{wn({type:"changeQuestionNum",payload:{itemType:tr,id:yi,num:Za,teacher_group_id:ma}})}}),E.createElement("span",{className:"ml10 font14",style:{color:"#333333"}},"/",Er))}},{title:"\u64CD\u4F5C",key:"action",align:"right",render(Mr,Qn){const{id:Er,is_share:Yr}=Qn;return Zr?E.createElement("span",{className:"cursorNotAllowed c-grey-999"},"\u5220\u9664"):E.createElement("span",{className:Qr.deleteBtn,onClick:()=>{wn({type:"deleteRule",payload:{itemType:tr,id:Er,is_share:Yr}})}},"\u5220\u9664")}});return _r[Cn]},Ta=({setVisibleModalType:Cn})=>{var wn,tr,Zr,_r;const{data:Ar,dispatch:Mr,disabled:Qn}=(0,E.useContext)(on),Er=(wn=Ar==null?void 0:Ar.item_types)==null?void 0:wn.find(Yr=>Yr.item_type==="PRACTICAL");return E.createElement(Vo.Z,{className:Qr.timelineWrapper,items:[{children:E.createElement("div",{style:{transform:"translateY(-4px)"}},E.createElement(Fe.Z,{className:"mb20",align:"middle",justify:"space-between"},E.createElement(Ke.Z,null,E.createElement("span",{className:Qr.title},"\u9898\u5E93\u9009\u9898"),E.createElement("span",{className:Qr.desc},"\uFF08\u9700\u8981\u5148\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9\u5B9E\u8BAD\u9898\uFF0C\u518D\u8BBE\u7F6E\u4ECE\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898\u7684\u6570\u91CF\uFF09")),!Qn&&E.createElement(Nt.op,{style:{width:102},onClick:()=>Cn("selectShixun")},"\u4ECE\u9898\u5E93\u9009\u62E9")),((tr=Er==null?void 0:Er.item_banks)==null?void 0:tr.length)===0?E.createElement(Vt.Z,{customText:"\u6682\u65E0\u5F85\u62BD\u8BD5\u9898\uFF0C\u8BF7\u5148\u4ECE\u9898\u5E93\u8FDB\u884C\u9009\u62E9\uFF5E"}):E.createElement(ur.default,{rowKey:"id",className:"mb10",columns:[{title:"\u5E8F\u53F7",width:60,render(Yr,yi,ma){return E.createElement("span",null,ma+1)}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"40%",ellipsis:{showTitle:!0},render:(Yr,yi)=>E.createElement("div",{style:{display:"flex",alignItems:"center"}},E.createElement("div",{className:yi!=null&&yi.high_resources_consume?Qr.q_title:"",title:Yr||"--"},E.createElement(jr.Z,{key:1,showLines:1,showTextOnly:!0,value:Yr})),(yi==null?void 0:yi.high_resources_consume)&&E.createElement(xi.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Yr,yi,ma)=>E.createElement("span",null,Yr||"- -")},{title:"\u96BE\u5EA6",dataIndex:"difficulty"},{title:"\u64CD\u4F5C",align:"right",width:180,render(Yr,yi,ma){const{id:Za,identifier:Ya,name:to,challenge_names:Ia=[],real_name:Xi,school_name:Lr,study_count:aa,challenges:Ba=[]}=yi||{};return E.createElement("div",null,E.createElement("span",{style:{color:"#165DFF",cursor:"pointer",marginLeft:20},onClick:()=>{Bt.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:E.createElement("div",null,E.createElement(jr.Z,{value:to,style:{marginBottom:18}}),E.createElement("div",{className:Qr.challengeNameWrapper},Ba==null?void 0:Ba.map((fo,no)=>E.createElement("div",{className:Qr.challengeName,key:no},"\u7B2C",(0,Ir.EM)(no+1),"\u9898\xA0",fo==null?void 0:fo.subject))),E.createElement(Fe.Z,{className:Qr.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},E.createElement(Ke.Z,{className:Qr.shixunInfoWrapper},E.createElement("span",null,"\u521B\u5EFA\u8005"),E.createElement("span",{className:Qr.shixunInfo},Xi),E.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),E.createElement("span",{className:Qr.shixunInfo},Lr),E.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),E.createElement("span",{className:Qr.shixunInfo},aa)),E.createElement(tt.ZP,{type:"primary",className:Qr.btnToDetail,onClick:()=>(0,Ir.xg)(`/shixuns/${Ya}/challenges?exercise=true`)},E.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),!Qn&&E.createElement("span",{onClick:()=>{Mr({type:"deleteShixunQuestion",payload:{shixunId:Za}})},className:`ml20 ${Qr.deleteBtn}`},"\u5220\u9664"))}}],dataSource:(Er==null?void 0:Er.item_banks)||[],pagination:!1}))},{children:E.createElement(Fe.Z,{style:{transform:(Zr=Er==null?void 0:Er.item_banks)!=null&&Zr.length?"translateY(-8px)":"none"},align:"middle",justify:"space-between"},E.createElement("span",{className:Qr.title},"\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898"),!!((_r=Er==null?void 0:Er.item_banks)!=null&&_r.length)&&E.createElement(Ke.Z,null,E.createElement(Fe.Z,{align:"middle"},E.createElement("span",{className:Qr.normalText},"\u62BD\u9898\u6570\u91CF"),E.createElement(Ie.Z,{min:0,disabled:Qn,max:Er==null?void 0:Er.item_bank_num,size:"large",precision:0,className:"ml10 mr10",value:(Er==null?void 0:Er.item_bank_count)||1,onChange:Yr=>Mr({type:"changeQuestionNum",payload:{num:Yr||1,itemType:"PRACTICAL"}})}),E.createElement("span",{className:`${Qr.normalText} mr30`},"/",Er==null?void 0:Er.item_bank_num),E.createElement("span",{className:Qr.normalText},"\u6BCF\u9898\u5206\u503C"),E.createElement(Ie.Z,{disabled:Qn,min:0,max:100,precision:1,size:"large",precision:1,className:"ml10 mr10",value:Er==null?void 0:Er.score,onChange:Yr=>Mr({type:"changeQuestionScore",payload:{score:Yr,itemType:"PRACTICAL"}})}),E.createElement("span",{className:Qr.normalText},"\u5206"))))}]})};var go=({setVisibleModalType:Cn,currentItemType:wn,onDelete:tr})=>{var Zr,_r;const Ar=(0,Se.useParams)(),{data:Mr,dispatch:Qn,disabled:Er}=(0,E.useContext)(on),Yr=((Zr=Mr==null?void 0:Mr.item_types)==null?void 0:Zr.findIndex(ma=>ma.item_type===wn))+1,yi=(_r=Mr==null?void 0:Mr.item_types)==null?void 0:_r.find(ma=>ma.item_type===wn);return E.createElement("div",{className:Qr.questionDetailWrapper},E.createElement(Fe.Z,{justify:"space-between",align:"middle",className:"mb30"},E.createElement(Ke.Z,null,E.createElement("span",{className:Qr.questionTitle},`${(0,Ir.EM)(Yr)}\u3001${yi==null?void 0:yi.item_type_text}`),E.createElement("span",{className:Qr.questionScoreInfo},"\uFF08",E.createElement("span",{style:{color:"#3061D0"}},yi==null?void 0:yi.item_bank_count),"\u5C0F\u9898 ",E.createElement("span",null,"\uFF0C\u5171",E.createElement("span",{style:{color:"#3061D0"}},yi==null?void 0:yi.total_score),"\u5206"),"\uFF09")),!Er&&E.createElement("i",{className:`iconfont icon-shanchutimu ${Qr.deleteIcon}`,onClick:()=>tr(wn)})),wn==="PRACTICAL"?E.createElement(Ta,{setVisibleModalType:Cn}):E.createElement(E.Fragment,null,(yi==null?void 0:yi.contents.length)===0?E.createElement(Vt.Z,{styles:{margin:"70px auto 100px auto"},customText:E.createElement("span",null,"\u6682\u65E0\u62BD\u9898\u89C4\u5219\uFF0C\u652F\u6301",E.createElement("span",{style:{color:"#EA9741"}},"\u6307\u5B9A\u6587\u4EF6\u5939\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9"),"\u8FDB\u884C\u62BD\u9898\uFF5E"),ButtonTwo:(Ar==null?void 0:Ar.id)&&E.createElement(Fe.Z,{justify:"center",className:"mt30"},E.createElement(Nt.op,{style:{width:136,marginTop:-10},onClick:()=>Cn("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219"))}):E.createElement(E.Fragment,null,E.createElement(Fe.Z,{justify:"space-between",align:"middle",className:"mb20"},E.createElement(Ke.Z,null,E.createElement(Fe.Z,{align:"middle"},E.createElement("span",{className:`${Qr.normalText}`},"\u6BCF\u9898\u5206\u503C"),E.createElement(Ie.Z,{disabled:Er,size:"large",className:"ml10 mr10",min:.1,max:100,value:yi==null?void 0:yi.score,precision:1,onChange:ma=>Qn({type:"changeQuestionScore",payload:{score:ma,itemType:wn}})}),E.createElement("span",{className:Qr.normalText},"\u5206"))),(Ar==null?void 0:Ar.id)&&E.createElement(Nt.op,{onClick:()=>Cn("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219")),E.createElement(ur.default,{columns:hi(yi==null?void 0:yi.random_rule_type,Qn,wn,Er),dataSource:yi==null?void 0:yi.contents,pagination:!1,rowKey:"id"}))))},So=ne(27612),yo=ne(51190),Lo=ne(36466),nl=ne(32637),ea=ne(59301),gl=Object.defineProperty,ol=Object.defineProperties,pl=Object.getOwnPropertyDescriptors,Xl=Object.getOwnPropertySymbols,hr=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable,gr=(Cn,wn,tr)=>wn in Cn?gl(Cn,wn,{enumerable:!0,configurable:!0,writable:!0,value:tr}):Cn[wn]=tr,Vr=(Cn,wn)=>{for(var tr in wn||(wn={}))hr.call(wn,tr)&&gr(Cn,tr,wn[tr]);if(Xl)for(var tr of Xl(wn))Gn.call(wn,tr)&&gr(Cn,tr,wn[tr]);return Cn},Xr=(Cn,wn)=>ol(Cn,pl(wn)),si=(Cn,wn,tr)=>new Promise((Zr,_r)=>{var Ar=Er=>{try{Qn(tr.next(Er))}catch(Yr){_r(Yr)}},Mr=Er=>{try{Qn(tr.throw(Er))}catch(Yr){_r(Yr)}},Qn=Er=>Er.done?Zr(Er.value):Promise.resolve(Er.value).then(Ar,Mr);Qn((tr=tr.apply(Cn,wn)).next())}),Jr=({})=>{var Cn,wn,tr,Zr,_r,Ar,Mr,Qn,Er,Yr,yi,ma,Za,Ya,to;const[Ia]=(0,Se.useSearchParams)(),Xi=(0,Se.useParams)(),{data:Lr,dispatch:aa,setPreview:Ba,getData:fo,handlePreview:no,disabled:ja}=(0,E.useContext)(on),[Ao,Ua]=(0,E.useState)(""),[Ni,Bo]=(0,E.useState)((wn=(Cn=Lr==null?void 0:Lr.item_types)==null?void 0:Cn[0])==null?void 0:wn.item_type),[bo,ll]=(0,E.useState)(!0),[zl,Yt]=(0,E.useState)(!1),hn=(Br,ai)=>si(void 0,null,function*(){var ei,ui,Ai,ir,ti,Mi,va;const ii=Lr.item_types.map(ga=>ga.item_type_text),ca=(ei=Lr==null?void 0:Lr.item_types)==null?void 0:ei.filter(ga=>{var Ga,Ci;return((Ga=ga.contents)==null?void 0:Ga.length)>0||((Ci=ga==null?void 0:ga.item_banks)==null?void 0:Ci.length)>0});if(Lr.sort_by_item_type=ii,!((ui=Lr.item_types)!=null&&ui.length)){Ee.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if((ca==null?void 0:ca.length)===0){Ee.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(!Br){const ga=Number((Ai=Lr==null?void 0:Lr.examination_bank)==null?void 0:Ai.total_score);[100,120,150].includes(ga)||(yield new Promise((Ga,Ci)=>{Bt.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ea.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",ea.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},ga),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>si(void 0,null,function*(){Ga("")}),onCancel:()=>{Ci()}})}))}let Fi=()=>si(void 0,null,function*(){const ga=(0,Le.cloneDeep)(Lr),{item_types:Ga}=ga||{};ga.item_types=Ga.filter(wa=>wa.item_type===Ni),(yield Je(Xi.id||Xi.categoryId,ga)).status===0&&(Bo(ai),Ee.ZP.success("\u4FDD\u5B58\u6210\u529F"),Br||Se.history.push("/paperlibrary"))}),Hr=(ti=(ir=Lr==null?void 0:Lr.item_types)==null?void 0:ir.filter(ga=>ga.item_type_text==="\u5B9E\u8BAD\u9898")[0])==null?void 0:ti.item_banks,Ur=0;Hr==null||Hr.map(ga=>{ga.high_resources_consume&&(Ur=Ur+1)}),console.log(Ur),Ur>0?Bt.default.info({centered:!0,icon:null,width:600,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",content:ea.createElement("div",null,ea.createElement("div",{className:gt.tipcontent},ea.createElement("div",null,ea.createElement("div",{className:gt.name},"\u60A8\u597D\uFF01",(Mi=(0,Lo.eY)())==null?void 0:Mi.username,"\uFF08",(va=(0,Lo.eY)())==null?void 0:va.login,"\uFF09\uFF1A"),ea.createElement("div",{className:gt.tip},"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",ea.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002\u53D1\u5E03\u8003\u8BD5\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),ea.createElement("div",{className:gt.info},ea.createElement("i",{className:"iconfont icon-xunifangzhenti1 mr10 font26"}),ea.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u9AD8\u6D88\u8017\u5B9E\u9A8C"),ea.createElement("span",{style:{color:"#232B40"}},`${Ur}\u4E2A`))),ea.createElement("div",null,ea.createElement("div",{className:gt.img},ea.createElement("img",{src:nl,width:"124px",height:"124px"})),ea.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")))),onOk:()=>{Fi()}}):Fi()}),bn=(Br,ai,ei,ui=!1)=>si(void 0,null,function*(){console.log(Lr);const Ai=Xr(Vr(Vr({},Lr.exercise),Xi),{exerciseId:Xi.categoryId,sort_by_item_type:Lr.sort_by_item_type,difficulty:Lr.examination_bank.difficulty,exam_notes:Lr.examination_bank.exam_notes,exercise_name:Lr.examination_bank.name,time:Lr.examination_bank.time,changed_item_type:Ni,item_types:Lr.item_types,changed_item_type:Ni,sub_discipline_id:Lr.examination_bank.sub_discipline_id});(!Br||ai===1)&&(Ai.is_reset=1);const ir=yield(0,yo.wy)(Ai);return ir.status===0&&(ui||Ee.ZP.success("\u4FEE\u6539\u6210\u529F "),Bo(ei),Br||Se.history.push(`/classrooms/${Xi.coursesId}/exercise/${Xi.categoryId}/detail?random=true`)),ir}),rr=Br=>{Bt.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,closable:!0,content:ea.createElement("div",null,"\u786E\u8BA4\u5220\u9664\u8BE5\u9898\u578B\uFF1F"),onOk:()=>si(void 0,null,function*(){var ai,ei,ui,Ai;if(Xi.id){if((yield xt(Xi.id,{item_type:[Br]})).status!==0)return}else{const ir=yield Ve(Xi.categoryId,{item_type:[Br]});if(fo(),ir.status!==0)return}if(aa({type:"deleteQuestionType",payload:Br}),Br===Ni){const ir=me(Lr,{type:"deleteQuestionType",payload:Br});Bo(ir.item_types.length?ir.item_types[0].item_type:(ei=(ai=Lr==null?void 0:Lr.item_types)==null?void 0:ai[0])==null?void 0:ei.item_type)}else Bo((Ai=(ui=Lr==null?void 0:Lr.item_types)==null?void 0:ui[0])==null?void 0:Ai.item_type)})})};(0,E.useEffect)(()=>{var Br;(Br=Lr==null?void 0:Lr.examination_bank)!=null&&Br.name&&ll(!1),(0,Ir.Dk)("\u968F\u673A\u7EC4\u5377")},[(tr=Lr==null?void 0:Lr.examination_bank)==null?void 0:tr.name]);const Ki=()=>si(void 0,null,function*(){var Br;let ai=yield bn(!0,1,Ni,!0);if((ai==null?void 0:ai.status)===0){const ei=yield(0,ze.ZP)(`/api/exercises/${Xi==null?void 0:Xi.categoryId}/simulate_start_answer.json`,{method:"get",params:{coursesId:Xi==null?void 0:Xi.coursesId,categoryId:Xi==null?void 0:Xi.categoryId}});(ei==null?void 0:ei.status)!=-1&&window.open(`/classrooms/${Xi.coursesId}/exercise/${Xi.categoryId}/${(Br=(0,Lo.eY)())==null?void 0:Br.login}/initate_answer`)}});return ea.createElement("div",{className:gt.questionInfo},ea.createElement("div",{className:"tc mb20"},ea.createElement(pe.VP,{defaultValue:(Zr=Lr==null?void 0:Lr.examination_bank)==null?void 0:Zr.name,onFinish:Br=>si(void 0,null,function*(){return aa({type:"updateBaseInfo",payload:Xr(Vr({},Lr.examination_bank),{name:Br})}),(0,yo.wy)({exercise_name:Br,exerciseId:Xi==null?void 0:Xi.categoryId}),!0})})),ea.createElement(Fe.Z,{justify:"center",className:"mb20"},ea.createElement(Ke.Z,{className:"mr30"},ea.createElement("span",{className:gt.label},"\u7B54\u9898\u65F6\u957F"),ea.createElement("span",null,((_r=Lr==null?void 0:Lr.examination_bank)==null?void 0:_r.time)===-1?"\u4E0D\u9650":((Ar=Lr==null?void 0:Lr.examination_bank)==null?void 0:Ar.time)||"\u4E0D\u9650")),ea.createElement(Ke.Z,{className:"mr30"},ea.createElement("span",{className:gt.label},"\u96BE\u5EA6"),ea.createElement("span",null,(Qn=ue[`${(Mr=Lr==null?void 0:Lr.examination_bank)==null?void 0:Mr.difficulty}`])==null?void 0:Qn.label)),ea.createElement(Ke.Z,{className:"mr30"},ea.createElement("span",{className:gt.label},"\u8BD5\u9898\u603B\u6570"),ea.createElement("span",null,((Er=Lr==null?void 0:Lr.examination_bank)==null?void 0:Er.question_count)||0)),ea.createElement(Ke.Z,null,ea.createElement("span",{className:gt.label},"\u603B\u5206"),ea.createElement("span",null,((yi=(Yr=Lr==null?void 0:Lr.examination_bank)==null?void 0:Yr.total_score)==null?void 0:yi.toFixed(1))||0))),ea.createElement("div",{className:gt.content,style:{border:((ma=Lr==null?void 0:Lr.item_types)==null?void 0:ma.length)<=0&&"none"}},((Za=Lr==null?void 0:Lr.item_types)==null?void 0:Za.length)>0?ea.createElement(Fe.Z,{wrap:!1},ea.createElement(Ke.Z,{flex:"260px",className:gt.leftPart},!ja&&ea.createElement(Fe.Z,{className:"mb20"},ea.createElement(Nt.op,{style:{margin:"0 15px",borderRadius:2},onClick:()=>Ua("setScore")},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C"),(Xi==null?void 0:Xi.id)&&ea.createElement(Nt.op,{shape:"default",onClick:()=>Ua("questionType")},"\u6DFB\u52A0\u9898\u578B")),ea.createElement(Ho,{list:Lr.item_types,onSelect:Br=>si(void 0,null,function*(){if(Br===Ni)return;ll(!0);const ai=Lr.item_types.find(ei=>ei.item_type===Ni);if(Ni!=="PRACTICAL"&&ai.contents.length>0&&(Xi!=null&&Xi.id)){const ei=(0,Le.cloneDeep)(Lr),{item_types:ui}=ei||{};ei.item_types=ui.filter(Ai=>Ai.item_type===Ni);try{(yield Je(Xi.id||Xi.categoryId,ei)).status===0&&Bo(Br)}catch(Ai){}}else Xi.categoryId?bn(!0,2,Br):hn(!0,Br);ll(!1)}),onDelete:rr})),ea.createElement(Ke.Z,{flex:1,className:gt.rightPart},ea.createElement(be.Z,{spinning:bo},ea.createElement(go,{setVisibleModalType:Ua,currentItemType:Ni,onDelete:rr})))):ea.createElement(Vt.Z,{customText:"\u8BF7\u5148\u8BBE\u7F6E\u8BD5\u5377\u9898\u578B",styles:{margin:"70px auto"},ButtonTwo:ea.createElement(Fe.Z,{justify:"center",className:"mt20"},(Xi==null?void 0:Xi.id)&&ea.createElement(Nt.op,{style:{width:88},onClick:()=>Ua("questionType")},"\u6DFB\u52A0\u9898\u578B"))})),!!(Xi!=null&&Xi.id)&&ea.createElement("div",{className:gt.fixedBottom},ea.createElement(So.Z,{className:`${gt.previewBtn} mr20`,onClick:()=>si(void 0,null,function*(){var Br,ai;const ei=(Br=Lr==null?void 0:Lr.item_types)==null?void 0:Br.filter(ui=>{var Ai,ir;return((Ai=ui.contents)==null?void 0:Ai.length)>0||((ir=ui==null?void 0:ui.item_banks)==null?void 0:ir.length)>0});if(!((ai=Lr.item_types)!=null&&ai.length)){Ee.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if((ei==null?void 0:ei.length)===0){Ee.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}yield hn(!0,Ni),no()})},"\u8BD5\u5377\u9884\u89C8"),ea.createElement(So.Z,{type:"primary",className:gt.confirmBtn,onClick:()=>hn()},ea.createElement("i",{className:"iconfont icon-baocun1 mr5"}),"\u4FDD\u5B58\u8BD5\u5377")),!!(Xi!=null&&Xi.categoryId)&&ea.createElement("div",{className:gt.fixedBottom,style:{justifyContent:((Ya=Lr==null?void 0:Lr.exercise)==null?void 0:Ya.exercise_status)!==1?"end":"center"}},ea.createElement(So.Z,{className:`${gt.previewBtn} mr20`,onClick:()=>si(void 0,null,function*(){var Br,ai;document.body.scrollIntoView(),Se.history.push(`/classrooms/${Xi.coursesId}/exercise/${(Br=Lr==null?void 0:Lr.exercise)==null?void 0:Br.id}/detail?random=${(ai=Lr==null?void 0:Lr.exercise)==null?void 0:ai.is_random}`)})},"\u8FD4\u56DE"),((to=Lr==null?void 0:Lr.exercise)==null?void 0:to.exercise_status)===1&&ea.createElement(So.Z,{className:`${gt.previewBtn} mr20`,onClick:Ki},"\u6A21\u62DF\u8003\u8BD5"),(Lr==null?void 0:Lr.exercise.exercise_status)===1&&ea.createElement(So.Z,{type:"primary",className:gt.confirmBtn,onClick:()=>si(void 0,null,function*(){var Br;const ai=Number((Br=Lr==null?void 0:Lr.examination_bank)==null?void 0:Br.total_score);[100,120,150].includes(ai)||(yield new Promise((ei,ui)=>{Bt.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ea.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",ea.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},ai),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>si(void 0,null,function*(){ei("")}),onCancel:()=>{ui()}})})),bn()})},"\u63D0\u4EA4")),ea.createElement(Rn,{open:Ao==="questionType",onCancel:()=>Ua(""),onOk:Br=>si(void 0,null,function*(){var ai,ei;const ui=[],Ai=me(Lr,{type:"setQuestionType",payload:Br}),ir=((ai=Ai==null?void 0:Ai.item_types)==null?void 0:ai.map(ti=>ti.item_type))||[];for(const ti of((ei=Lr==null?void 0:Lr.item_types)==null?void 0:ei.map(Mi=>Mi.item_type))||[])ir.includes(ti)||ui.push(ti);Xi.id&&ui.length>0&&(yield xt(Xi.id,{item_type:ui})).status!==0||(aa({type:"setQuestionType",payload:Br}),Bo(Ni||Ai.item_types[0].item_type),Ua(""))})}),ea.createElement(Kr,{open:Ao==="setScore",onCancel:()=>{Ua("")},onOk:Br=>si(void 0,null,function*(){console.log("---newData",Br);const ai=Br.item_types.map(ei=>({item_type:ei.item_type,score:ei.score}));Xi.id?(yield mt(Xi.id,{score_settings:ai})).status===0&&aa({type:"init",payload:Br}):(yield Be(Xi.categoryId,{score_settings:ai})).status===0&&aa({type:"init",payload:Br}),Ua("")})}),ea.createElement(li,{open:Ao==="rule",onCancel:()=>Ua(""),currentItemType:Ni,setVisibleModalType:Ua}),Ia.get("type")==="settings"&&ea.createElement(ba,{open:Ao==="selectShixun",onCancel:()=>Ua(""),onOk:Br=>{if(console.log(Br),(Br==null?void 0:Br.length)<=0){Ee.ZP.info("\u5B9E\u8BAD\u6570\u4E0D\u80FD\u4E3A0");return}aa({type:"addShixun",payload:{shixunList:[...Br]}}),Ua("")}}))},Li=ne(94066),Oi=ne(59301),la=Object.defineProperty,mi=Object.defineProperties,Pa=Object.getOwnPropertyDescriptors,qa=Object.getOwnPropertySymbols,Ka=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,pa=(Cn,wn,tr)=>wn in Cn?la(Cn,wn,{enumerable:!0,configurable:!0,writable:!0,value:tr}):Cn[wn]=tr,eo=(Cn,wn)=>{for(var tr in wn||(wn={}))Ka.call(wn,tr)&&pa(Cn,tr,wn[tr]);if(qa)for(var tr of qa(wn))Yi.call(wn,tr)&&pa(Cn,tr,wn[tr]);return Cn},ro=(Cn,wn)=>mi(Cn,Pa(wn)),xo=(Cn,wn,tr)=>new Promise((Zr,_r)=>{var Ar=Er=>{try{Qn(tr.next(Er))}catch(Yr){_r(Yr)}},Mr=Er=>{try{Qn(tr.throw(Er))}catch(Yr){_r(Yr)}},Qn=Er=>Er.done?Zr(Er.value):Promise.resolve(Er.value).then(Ar,Mr);Qn((tr=tr.apply(Cn,wn)).next())}),Qo=()=>{var Cn,wn,tr,Zr;const[_r,Ar]=(0,E.useState)("baseInfo"),Mr=(0,Se.useDispatch)();(0,E.useEffect)(()=>{Mr({type:"globalSetting/footerToggle",payload:!1})},[]);const Qn=(0,Se.useParams)(),Er=!!(Qn.id||Qn.categoryId),[Yr]=(0,Se.useSearchParams)();(0,E.useEffect)(()=>{Yr.get("type")==="settings"&&Ar("settings")},[]);const[yi,ma]=(0,E.useReducer)(me,null),[Za,Ya]=(0,E.useState)(!1),to=()=>xo(void 0,null,function*(){Ya(!0);let Ni;Qn.categoryId?Ni=yield Mt(Qn):Ni=yield Ae(Qn.id),Ya(!1),Ni.status===0&&ma({type:"init",payload:Ni})});(0,E.useEffect)(()=>{Er?to():ma({type:"init",payload:{examination_bank:{difficulty:2}}})},[Qn]);const[Ia,Xi]=(0,E.useState)(""),Lr=(Ni,Bo)=>xo(void 0,null,function*(){var bo,ll,zl,Yt;const hn=(bo=yi==null?void 0:yi.item_types)==null?void 0:bo.filter(Ki=>{var Br;return((Br=Ki==null?void 0:Ki.item_type)==null?void 0:Br.toUpperCase())===(Bo==null?void 0:Bo.type)}),bn={sort_by_item_type:yi.sort_by_item_type,difficulty:yi.examination_bank.difficulty,exam_notes:yi.examination_bank.exam_notes,name:yi.examination_bank.name,time:yi.examination_bank.time,item_types:yi.item_types};if(Ni!==void 0&&!(Ni!=null&&Ni.single_question_id)){bn.seleted_item_bank_ids=Ni==null?void 0:Ni.seleted_item_bank_ids,bn.item_types=hn;const Ki=yield nt(bn);if((Ki==null?void 0:Ki.status)===0){let Br=(0,Le.cloneDeep)(ja.data);Br.questionList=(ll=Br==null?void 0:Br.questionList)==null?void 0:ll.map(ai=>{var ei;return ai.type===Bo.type?ro(eo({},ai),{questions:((ei=Ki==null?void 0:Ki.questions)==null?void 0:ei.questions)||[]}):ai}),Ao({show:!0,data:Br})}return}if(Ni!==void 0&&(Ni!=null&&Ni.single_question_id)){bn.seleted_item_bank_ids=Ni==null?void 0:Ni.seleted_item_bank_ids,bn.single_question_id=Ni==null?void 0:Ni.single_question_id,bn.item_types=hn;const Ki=yield nt(bn);if((Ki==null?void 0:Ki.status)===0){let Br=(0,Le.cloneDeep)(ja.data);Br.questionList=(zl=Br==null?void 0:Br.questionList)==null?void 0:zl.map(ai=>{var ei,ui;if(ai.type===Bo.type){const Ai=(0,Le.cloneDeep)(ai==null?void 0:ai.questions);return Ai.splice(Bo.index,1,(ui=(ei=Ki==null?void 0:Ki.questions)==null?void 0:ei.questions)==null?void 0:ui[0]),console.log(ai==null?void 0:ai.questions,Ai,Bo.index,"new_questions"),ro(eo({},ai),{questions:Ai})}return ai}),Ao({show:!0,data:Br})}return}const rr=yield Ot(bn);if((rr==null?void 0:rr.status)===0){const Ki=(0,Ir.ad)(rr);let Br=[];(Yt=yi==null?void 0:yi.item_types)==null||Yt.forEach(ai=>{var ei;const ui=(ei=Ki==null?void 0:Ki.questionList)==null?void 0:ei.find(Ai=>ai.item_type===Ai.type);Br.push(ui)}),console.log(yi,"sortList"),Br=(0,Le.compact)(Br),Ki.questionList=Br,Ao({show:!0,data:Ki}),Xi(new Date)}}),aa=Ni=>{var Bo;let bo=(0,Le.cloneDeep)(ja.data);bo.questionList=(Bo=bo==null?void 0:bo.questionList)==null?void 0:Bo.map(ll=>ll.type===Ni.type?ro(eo({},ll),{questions_score:Ni.scoreTotal}):ll),ma({type:"changeQuestionScore",payload:{score:Ni.score,itemType:Ni.type}}),Ao({show:!0,data:bo})},Ba=Ni=>xo(void 0,null,function*(){const Bo={sort_by_item_type:yi.sort_by_item_type,difficulty:yi.examination_bank.difficulty,exam_notes:yi.examination_bank.exam_notes,name:yi.examination_bank.name,time:yi.examination_bank.time,item_types:yi.item_types,sub_discipline_id:yi.examination_bank.sub_discipline_id};if(Ni){(yield wt(eo(eo({},Bo),Ni))).status===0&&Ee.ZP.success("\u4FDD\u5B58\u6210\u529F");return}(yield Je(Qn.id,Bo)).status===0&&(Ee.ZP.success("\u63D0\u4EA4\u6210\u529F"),Se.history.push("/paperlibrary?defaultActiveKey=0"))}),fo=(0,ya.g)(),[no]=Ye.default.useForm(),[ja,Ao]=(0,E.useState)({show:!1,data:{}}),Ua=!!((Cn=yi==null?void 0:yi.exercise)!=null&&Cn.exercise_status)&&((wn=yi==null?void 0:yi.exercise)==null?void 0:wn.exercise_status)!==1;return Oi.createElement(on.Provider,{value:{data:yi,disabled:Ua,dispatch:ma,setPreview:Ao,getData:to,handlePreview:Lr}},ja.show?Oi.createElement(Li.Z,{key:Ia,data:ja.data,onExchange:Lr,onTypeScore:aa,submit:Ba,goBack:()=>Ao({show:!1,data:{}})}):Oi.createElement("div",{className:ye.wrapper},Oi.createElement("div",{className:"edu-container"},Oi.createElement(Ce.Z,{className:ye.breadCrumbWrapper,separator:">",items:Qn!=null&&Qn.categoryId?[{title:Oi.createElement(Se.Link,{to:`/classrooms/${Qn.coursesId}/exercise`},(Zr=(tr=(0,Lo.eY)())==null?void 0:tr.course)==null?void 0:Zr.course_name)},{title:Oi.createElement(Se.Link,{to:`/classrooms/${Qn.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")},{title:"\u7F16\u8F91\u8BD5\u5377"}]:[{title:Oi.createElement(Se.Link,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")},{title:"\u968F\u673A\u7EC4\u5377"}]}),Oi.createElement(pe.d4,{activeKey:_r,tabs:[{key:"baseInfo",label:"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F"},{key:"settings",label:"\u7EC4\u5377\u914D\u7F6E"}],onChange:Ni=>xo(void 0,null,function*(){if(Ni==="settings"&&(yield no.validateFields(),!Er)){const Bo=yield Re(yi);Bo.status===0&&Se.history.replace(`/randompaper/edit/${Bo==null?void 0:Bo.examination_bank_id}?type=settings`)}Ar(Ni)})}),_r==="baseInfo"&&Oi.createElement(yn,{courseOptions:fo,setCurrentKey:Ar,loading:Za,form:no}),Oi.createElement("div",{style:{display:_r==="settings"?"block":"none"}},yi&&Oi.createElement(Jr,null)))))}},45876:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Pe}});var E=ne(43418),ye={ul:"ul___TdfYY"},Ee=ne(32637),Ye=ne(59301),Ce=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,be=(et,Fe)=>{var Ie={};for(var tt in et)Se.call(et,tt)&&Fe.indexOf(tt)<0&&(Ie[tt]=et[tt]);if(et!=null&&Ce)for(var tt of Ce(et))Fe.indexOf(tt)<0&&pe.call(et,tt)&&(Ie[tt]=et[tt]);return Ie},Pe=et=>{var Fe=et,{open:Ie,onCancel:tt}=Fe,ze=be(Fe,["open","onCancel"]);return Ye.createElement(E.default,{centered:!0,open:Ie,title:Ye.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:tt,footer:null},Ye.createElement("div",null,Ye.createElement("div",{className:"tc"},Ye.createElement("img",{className:"mt10",src:Ee,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Ye.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Ye.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Ye.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Ye.createElement("ul",{className:ye.ul},Ye.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),Ye.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),Ye.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},15496:function(An,tn,ne){"use strict";ne.d(tn,{g:function(){return Ce}});var E=ne(59301),ye=ne(22373),Ee=ne(10358),Ye=(Se,pe,be)=>new Promise((De,Pe)=>{var et=tt=>{try{Ie(be.next(tt))}catch(ze){Pe(ze)}},Fe=tt=>{try{Ie(be.throw(tt))}catch(ze){Pe(ze)}},Ie=tt=>tt.done?De(tt.value):Promise.resolve(tt.value).then(et,Fe);Ie((be=be.apply(Se,pe)).next())});const Ce=()=>{const[Se,pe]=(0,E.useState)([]);return(0,E.useEffect)(()=>{Ye(void 0,null,function*(){const De=yield(0,ye.d1)({source:"question"});De!=null&&De.disciplines&&pe((0,Ee.L)(De==null?void 0:De.disciplines))})},[]),Se}},78162:function(An,tn,ne){"use strict";ne.d(tn,{U:function(){return De}});var E=ne(59301),ye=Object.defineProperty,Ee=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Se=(Pe,et,Fe)=>et in Pe?ye(Pe,et,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Pe[et]=Fe,pe=(Pe,et)=>{for(var Fe in et||(et={}))Ye.call(et,Fe)&&Se(Pe,Fe,et[Fe]);if(Ee)for(var Fe of Ee(et))Ce.call(et,Fe)&&Se(Pe,Fe,et[Fe]);return Pe},be=(Pe,et,Fe)=>new Promise((Ie,tt)=>{var ze=Xe=>{try{lt(Fe.next(Xe))}catch(Dt){tt(Dt)}},We=Xe=>{try{lt(Fe.throw(Xe))}catch(Dt){tt(Dt)}},lt=Xe=>Xe.done?Ie(Xe.value):Promise.resolve(Xe.value).then(ze,We);lt((Fe=Fe.apply(Pe,et)).next())});function De(Pe,et){const[Fe,Ie]=(0,E.useState)(et),[tt,ze]=(0,E.useState)(!1),[We,lt]=(0,E.useState)();return[Fe,tt,(Dt,dt=!1)=>be(this,null,function*(){const Qe=dt?et:pe(pe({},Fe),Dt);ze(!0),Ie(Qe);const Ze=yield Pe(Qe);return ze(!1),lt(Ze),Ze}),We,lt]}},50371:function(An,tn){"use strict";function ne(){const E=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ye=1;ye<arguments.length;ye++){const Ee=ye<0||arguments.length<=ye?void 0:arguments[ye];Ee&&Object.keys(Ee).forEach(Ye=>{const Ce=Ee[Ye];Ce!==void 0&&(E[Ye]=Ce)})}return E}tn.Z=ne},77578:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return E}});const E=ye=>ye?typeof ye=="function"?ye():ye:null},13845:function(An,tn,ne){"use strict";ne.d(tn,{F:function(){return E},Z:function(){return ye}});function E(Ee){return Ee!=null&&Ee===Ee.window}function ye(Ee,Ye){var Ce,Se;if(typeof window=="undefined")return 0;const pe=Ye?"scrollTop":"scrollLeft";let be=0;return E(Ee)?be=Ee[Ye?"pageYOffset":"pageXOffset"]:Ee instanceof Document?be=Ee.documentElement[pe]:(Ee instanceof HTMLElement||Ee)&&(be=Ee[pe]),Ee&&!E(Ee)&&typeof be!="number"&&(be=(Se=((Ce=Ee.ownerDocument)!==null&&Ce!==void 0?Ce:Ee).documentElement)===null||Se===void 0?void 0:Se[pe]),be}},56762:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return ye}});var E=ne(59301);function ye(){const[,Ee]=E.useReducer(Ye=>Ye+1,0);return Ee}},68031:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Ye}});var E=ne(16089);function ye(Ce,Se,pe,be){const De=pe-Se;return Ce/=be/2,Ce<1?De/2*Ce*Ce*Ce+Se:De/2*((Ce-=2)*Ce*Ce+2)+Se}var Ee=ne(13845);function Ye(Ce){let Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:pe=()=>window,callback:be,duration:De=450}=Se,Pe=pe(),et=(0,Ee.Z)(Pe,!0),Fe=Date.now(),Ie=()=>{const ze=Date.now()-Fe,We=ye(ze>De?De:ze,et,Ce,De);(0,Ee.F)(Pe)?Pe.scrollTo(window.pageXOffset,We):Pe instanceof Document||Pe.constructor.name==="HTMLDocument"?Pe.documentElement.scrollTop=We:Pe.scrollTop=We,ze<De?(0,E.Z)(Ie):typeof be=="function"&&be()};(0,E.Z)(Ie)}},19080:function(An,tn,ne){"use strict";ne.d(tn,{F:function(){return Ce},Z:function(){return Ye}});var E=ne(92310),ye=ne.n(E);const Ee=null;function Ye(Se,pe,be){return ye()({[`${Se}-status-success`]:pe==="success",[`${Se}-status-warning`]:pe==="warning",[`${Se}-status-error`]:pe==="error",[`${Se}-status-validating`]:pe==="validating",[`${Se}-has-feedback`]:be})}const Ce=(Se,pe)=>pe||Se},66104:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Ot}});var E=ne(92310),ye=ne.n(E),Ee=ne(11592),Ye=ne(26112),Ce=ne(59301),Se=ne(92343),pe=ne(36355),be=ne(84105),De=ne(91857);const Pe=nt=>{let{children:wt}=nt;const{getPrefixCls:Mt}=Ce.useContext(pe.E_),at=Mt("breadcrumb");return Ce.createElement("li",{className:`${at}-separator`,"aria-hidden":"true"},wt===""?wt:wt||"/")};Pe.__ANT_BREADCRUMB_SEPARATOR=!0;var et=Pe,Fe=function(nt,wt){var Mt={};for(var at in nt)Object.prototype.hasOwnProperty.call(nt,at)&&wt.indexOf(at)<0&&(Mt[at]=nt[at]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,at=Object.getOwnPropertySymbols(nt);Le<at.length;Le++)wt.indexOf(at[Le])<0&&Object.prototype.propertyIsEnumerable.call(nt,at[Le])&&(Mt[at[Le]]=nt[at[Le]]);return Mt};function Ie(nt,wt){if(nt.title===void 0||nt.title===null)return null;const Mt=Object.keys(wt).join("|");return typeof nt.title=="object"?nt.title:String(nt.title).replace(new RegExp(`:(${Mt})`,"g"),(at,Le)=>wt[Le]||at)}function tt(nt,wt,Mt,at){if(Mt==null)return null;const{className:Le,onClick:Me}=wt,st=Fe(wt,["className","onClick"]),Ht=Object.assign(Object.assign({},(0,Ye.Z)(st,{data:!0,aria:!0})),{onClick:Me});return at!==void 0?Ce.createElement("a",Object.assign({},Ht,{className:ye()(`${nt}-link`,Le),href:at}),Mt):Ce.createElement("span",Object.assign({},Ht,{className:ye()(`${nt}-link`,Le)}),Mt)}function ze(nt,wt){return(at,Le,Me,st,Ht)=>{if(wt)return wt(at,Le,Me,st);const Tt=Ie(at,Le);return tt(nt,at,Tt,Ht)}}var We=function(nt,wt){var Mt={};for(var at in nt)Object.prototype.hasOwnProperty.call(nt,at)&&wt.indexOf(at)<0&&(Mt[at]=nt[at]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,at=Object.getOwnPropertySymbols(nt);Le<at.length;Le++)wt.indexOf(at[Le])<0&&Object.prototype.propertyIsEnumerable.call(nt,at[Le])&&(Mt[at[Le]]=nt[at[Le]]);return Mt};const lt=nt=>{const{prefixCls:wt,separator:Mt="/",children:at,menu:Le,overlay:Me,dropdownProps:st,href:Ht}=nt,ct=(Ct=>{if(Le||Me){const Zt=Object.assign({},st);if(Le){const gn=Le||{},{items:$t}=gn,Wt=We(gn,["items"]);Zt.menu=Object.assign(Object.assign({},Wt),{items:$t==null?void 0:$t.map((on,dn)=>{var{key:ln,title:xe,label:fe,path:ue}=on,he=We(on,["key","title","label","path"]);let me=fe!=null?fe:xe;return ue&&(me=Ce.createElement("a",{href:`${Ht}${ue}`},me)),Object.assign(Object.assign({},he),{key:ln!=null?ln:dn,label:me})})})}else Me&&(Zt.overlay=Me);return Ce.createElement(De.Z,Object.assign({placement:"bottom"},Zt),Ce.createElement("span",{className:`${wt}-overlay-link`},Ct,Ce.createElement(be.Z,null)))}return Ct})(at);return ct!=null?Ce.createElement(Ce.Fragment,null,Ce.createElement("li",null,ct),Mt&&Ce.createElement(et,null,Mt)):null},Xe=nt=>{const{prefixCls:wt,children:Mt,href:at}=nt,Le=We(nt,["prefixCls","children","href"]),{getPrefixCls:Me}=Ce.useContext(pe.E_),st=Me("breadcrumb",wt);return Ce.createElement(lt,Object.assign({},Le,{prefixCls:st}),tt(st,Le,Mt,at))};Xe.__ANT_BREADCRUMB_ITEM=!0;var Dt=Xe,dt=ne(17313),Qe=ne(83116),Ze=ne(37613);const Ae=nt=>{const{componentCls:wt,iconCls:Mt}=nt;return{[wt]:Object.assign(Object.assign({},(0,dt.Wf)(nt)),{color:nt.itemColor,fontSize:nt.fontSize,[Mt]:{fontSize:nt.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:nt.linkColor,transition:`color ${nt.motionDurationMid}`,padding:`0 ${nt.paddingXXS}px`,borderRadius:nt.borderRadiusSM,height:nt.lineHeight*nt.fontSize,display:"inline-block",marginInline:-nt.marginXXS,"&:hover":{color:nt.linkHoverColor,backgroundColor:nt.colorBgTextHover}},(0,dt.Qy)(nt)),"li:last-child":{color:nt.lastItemColor},[`${wt}-separator`]:{marginInline:nt.separatorMargin,color:nt.separatorColor},[`${wt}-link`]:{[`
|
|
|
> ${Mt} + span,
|
|
|
> ${Mt} + a
|
|
|
`]:{marginInlineStart:nt.marginXXS}},[`${wt}-overlay-link`]:{borderRadius:nt.borderRadiusSM,height:nt.lineHeight*nt.fontSize,display:"inline-block",padding:`0 ${nt.paddingXXS}px`,marginInline:-nt.marginXXS,[`> ${Mt}`]:{marginInlineStart:nt.marginXXS,fontSize:nt.fontSizeIcon},"&:hover":{color:nt.linkHoverColor,backgroundColor:nt.colorBgTextHover,a:{color:nt.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${nt.componentCls}-rtl`]:{direction:"rtl"}})}};var Je=(0,Qe.Z)("Breadcrumb",nt=>{const wt=(0,Ze.TS)(nt,{});return[Ae(wt)]},nt=>({itemColor:nt.colorTextDescription,lastItemColor:nt.colorText,iconFontSize:nt.fontSize,linkColor:nt.colorTextDescription,linkHoverColor:nt.colorText,separatorColor:nt.colorTextDescription,separatorMargin:nt.marginXS})),Re=function(nt,wt){var Mt={};for(var at in nt)Object.prototype.hasOwnProperty.call(nt,at)&&wt.indexOf(at)<0&&(Mt[at]=nt[at]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,at=Object.getOwnPropertySymbols(nt);Le<at.length;Le++)wt.indexOf(at[Le])<0&&Object.prototype.propertyIsEnumerable.call(nt,at[Le])&&(Mt[at[Le]]=nt[at[Le]]);return Mt};function vt(nt){const{breadcrumbName:wt,children:Mt}=nt,at=Re(nt,["breadcrumbName","children"]),Le=Object.assign({title:wt},at);return Mt&&(Le.menu={items:Mt.map(Me=>{var{breadcrumbName:st}=Me,Ht=Re(Me,["breadcrumbName"]);return Object.assign(Object.assign({},Ht),{title:st})})}),Le}function $e(nt,wt){return(0,Ce.useMemo)(()=>nt||(wt?wt.map(vt):null),[nt,wt])}var mt=function(nt,wt){var Mt={};for(var at in nt)Object.prototype.hasOwnProperty.call(nt,at)&&wt.indexOf(at)<0&&(Mt[at]=nt[at]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,at=Object.getOwnPropertySymbols(nt);Le<at.length;Le++)wt.indexOf(at[Le])<0&&Object.prototype.propertyIsEnumerable.call(nt,at[Le])&&(Mt[at[Le]]=nt[at[Le]]);return Mt};const Be=(nt,wt)=>{if(wt===void 0)return wt;let Mt=(wt||"").replace(/^\//,"");return Object.keys(nt).forEach(at=>{Mt=Mt.replace(`:${at}`,nt[at])}),Mt},xt=nt=>{const{prefixCls:wt,separator:Mt="/",style:at,className:Le,rootClassName:Me,routes:st,items:Ht,children:Tt,itemRender:ct,params:Ct={}}=nt,Zt=mt(nt,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:gn,direction:$t,breadcrumb:Wt}=Ce.useContext(pe.E_);let on;const dn=gn("breadcrumb",wt),[ln,xe]=Je(dn),fe=$e(Ht,st),ue=ze(dn,ct);if(fe&&fe.length>0){const oe=[],Ne=Ht||st;on=fe.map((At,Ge)=>{const{path:je,key:Pt,type:Et,menu:ht,overlay:Kt,onClick:vn,className:kt,separator:Ut,dropdownProps:yn}=At,Bt=Be(Ct,je);Bt!==void 0&&oe.push(Bt);const Ke=Pt!=null?Pt:Ge;if(Et==="separator")return Ce.createElement(et,{key:Ke},Ut);const gt={},Vt=Ge===fe.length-1;ht?gt.menu=ht:Kt&&(gt.overlay=Kt);let{href:Nt}=At;return oe.length&&Bt!==void 0&&(Nt=`#/${oe.join("/")}`),Ce.createElement(lt,Object.assign({key:Ke},gt,(0,Ye.Z)(At,{data:!0,aria:!0}),{className:kt,dropdownProps:yn,href:Nt,separator:Vt?"":Mt,onClick:vn,prefixCls:dn}),ue(At,Ct,Ne,oe,Nt))})}else if(Tt){const oe=(0,Ee.Z)(Tt).length;on=(0,Ee.Z)(Tt).map((Ne,At)=>{if(!Ne)return Ne;const Ge=At===oe-1;return(0,Se.Tm)(Ne,{separator:Ge?"":Mt,key:At})})}const he=ye()(dn,Wt==null?void 0:Wt.className,{[`${dn}-rtl`]:$t==="rtl"},Le,Me,xe),me=Object.assign(Object.assign({},Wt==null?void 0:Wt.style),at);return ln(Ce.createElement("nav",Object.assign({className:he,style:me},Zt),Ce.createElement("ol",null,on)))};xt.Item=Dt,xt.Separator=et;var Ve=xt,Ot=Ve},19842:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Wr}});var E=ne(77654),ye=ne(59301),Ee=ne(33853),Ye=ne(58617),Ce=ne(38819),Se=ne(92310),pe=ne.n(Se),be=ne(60499),De=ne(72190),Pe=ne(42244),et=ne(77861),Fe=ne(17115),Ie=ne(90782),tt=ne(6089),ze=ne(18929),We=ye.createContext(null),lt=We,Xe=ne(43749),Dt=ne(18642),dt=ne(85899),Qe="__rc_cascader_search_mark__",Ze=function(or,er,Kn){var En=Kn.label;return er.some(function(nr){return String(nr[En]).toLowerCase().includes(or.toLowerCase())})},Ae=function(or,er,Kn,En){return er.map(function(nr){return nr[En.label]}).join(" / ")},Je=function(Gt,or,er,Kn,En,nr){var lr=En.filter,xr=lr===void 0?Ze:lr,jt=En.render,Ue=jt===void 0?Ae:jt,yt=En.limit,ut=yt===void 0?50:yt,rt=En.sort;return ye.useMemo(function(){var _t=[];if(!Gt)return[];function Qt(pn,sn){var Bn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;pn.forEach(function(Yn){if(!(!rt&&ut!==!1&&ut>0&&_t.length>=ut)){var cr=[].concat((0,E.Z)(sn),[Yn]),$n=Yn[er.children],en=Bn||Yn.disabled;if((!$n||$n.length===0||nr)&&xr(Gt,cr,{label:er.label})){var rn;_t.push((0,dt.Z)((0,dt.Z)({},Yn),{},(rn={disabled:en},(0,Dt.Z)(rn,er.label,Ue(Gt,cr,Kn,er)),(0,Dt.Z)(rn,Qe,cr),(0,Dt.Z)(rn,er.children,void 0),rn)))}$n&&Qt(Yn[er.children],cr,en)}})}return Qt(or,[]),rt&&_t.sort(function(pn,sn){return rt(pn[Qe],sn[Qe],Gt,er)}),ut!==!1&&ut>0?_t.slice(0,ut):_t},[Gt,or,er,Kn,Ue,nr,xr,rt,ut])},Re="__RC_CASCADER_SPLIT__",vt="SHOW_PARENT",$e="SHOW_CHILD";function mt(Gt){return Gt.join(Re)}function Be(Gt){return Gt.map(mt)}function xt(Gt){return Gt.split(Re)}function Ve(Gt){var or=Gt||{},er=or.label,Kn=or.value,En=or.children,nr=Kn||"value";return{label:er||"label",value:nr,key:nr,children:En||"children"}}function Ot(Gt,or){var er,Kn;return(er=Gt.isLeaf)!==null&&er!==void 0?er:!((Kn=Gt[or.children])!==null&&Kn!==void 0&&Kn.length)}function nt(Gt){var or=Gt.parentElement;if(or){var er=Gt.offsetTop-or.offsetTop;er-or.scrollTop<0?or.scrollTo({top:er}):er+Gt.offsetHeight-or.scrollTop>or.offsetHeight&&or.scrollTo({top:er+Gt.offsetHeight-or.offsetHeight})}}function wt(Gt,or){return Gt.map(function(er){var Kn;return(Kn=er[Qe])===null||Kn===void 0?void 0:Kn.map(function(En){return En[or.value]})})}function Mt(Gt,or,er){var Kn=new Set(Gt),En=or();return Gt.filter(function(nr){var lr=En[nr],xr=lr?lr.parent:null,jt=lr?lr.children:null;return lr&&lr.node.disabled?!0:er===$e?!(jt&&jt.some(function(Ue){return Ue.key&&Kn.has(Ue.key)})):!(xr&&!xr.node.disabled&&Kn.has(xr.key))})}function at(Gt,or,er){for(var Kn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,En=or,nr=[],lr=function(){var Ue,yt,ut,rt=Gt[xr],_t=(Ue=En)===null||Ue===void 0?void 0:Ue.findIndex(function(pn){var sn=pn[er.value];return Kn?String(sn)===String(rt):sn===rt}),Qt=_t!==-1?(yt=En)===null||yt===void 0?void 0:yt[_t]:null;nr.push({value:(ut=Qt==null?void 0:Qt[er.value])!==null&&ut!==void 0?ut:rt,index:_t,option:Qt}),En=Qt==null?void 0:Qt[er.children]},xr=0;xr<Gt.length;xr+=1)lr();return nr}var Le=function(Gt,or,er,Kn,En){return ye.useMemo(function(){var nr=En||function(lr){var xr=Kn?lr.slice(-1):lr,jt=" / ";return xr.every(function(Ue){return["string","number"].includes((0,Xe.Z)(Ue))})?xr.join(jt):xr.reduce(function(Ue,yt,ut){var rt=ye.isValidElement(yt)?ye.cloneElement(yt,{key:ut}):yt;return ut===0?[rt]:[].concat((0,E.Z)(Ue),[jt,rt])},[])};return Gt.map(function(lr){var xr,jt,Ue=at(lr,or,er),yt=nr(Ue.map(function(rt){var _t,Qt=rt.option,pn=rt.value;return(_t=Qt==null?void 0:Qt[er.label])!==null&&_t!==void 0?_t:pn}),Ue.map(function(rt){var _t=rt.option;return _t})),ut=mt(lr);return{label:yt,value:ut,key:ut,valueCells:lr,disabled:(xr=Ue[Ue.length-1])===null||xr===void 0||(jt=xr.option)===null||jt===void 0?void 0:jt.disabled}})},[Gt,or,er,En,Kn])},Me=ne(71430),st=function(Gt,or){var er=ye.useRef({options:null,info:null}),Kn=ye.useCallback(function(){return er.current.options!==Gt&&(er.current.options=Gt,er.current.info=(0,Me.I8)(Gt,{fieldNames:or,initWrapper:function(nr){return(0,dt.Z)((0,dt.Z)({},nr),{},{pathKeyEntities:{}})},processEntity:function(nr,lr){var xr=nr.nodes.map(function(jt){return jt[or.value]}).join(Re);lr.pathKeyEntities[xr]=nr,nr.key=xr}})),er.current.info.pathKeyEntities},[or,Gt]);return Kn},Ht=function(Gt,or){return ye.useCallback(function(er){var Kn=[],En=[];return er.forEach(function(nr){var lr=at(nr,Gt,or);lr.every(function(xr){return xr.option})?En.push(nr):Kn.push(nr)}),[En,Kn]},[Gt,or])},Tt=ne(48736);function ct(Gt){return ye.useMemo(function(){if(!Gt)return[!1,{}];var or={matchInputWidth:!0,limit:50};return Gt&&(0,Xe.Z)(Gt)==="object"&&(or=(0,dt.Z)((0,dt.Z)({},or),Gt)),or.limit<=0&&delete or.limit,[!0,or]},[Gt])}var Ct=ye.memo(function(Gt){var or=Gt.children;return or},function(Gt,or){return!or.open}),Zt=Ct;function gn(Gt){var or,er=Gt.prefixCls,Kn=Gt.checked,En=Gt.halfChecked,nr=Gt.disabled,lr=Gt.onClick,xr=Gt.disableCheckbox,jt=ye.useContext(lt),Ue=jt.checkable,yt=typeof Ue!="boolean"?Ue:null;return ye.createElement("span",{className:pe()("".concat(er),(or={},(0,Dt.Z)(or,"".concat(er,"-checked"),Kn),(0,Dt.Z)(or,"".concat(er,"-indeterminate"),!Kn&&En),(0,Dt.Z)(or,"".concat(er,"-disabled"),nr||xr),or)),onClick:lr},yt)}var $t="__cascader_fix_label__";function Wt(Gt){var or=Gt.prefixCls,er=Gt.multiple,Kn=Gt.options,En=Gt.activeValue,nr=Gt.prevValuePath,lr=Gt.onToggleOpen,xr=Gt.onSelect,jt=Gt.onActive,Ue=Gt.checkedSet,yt=Gt.halfCheckedSet,ut=Gt.loadingKeys,rt=Gt.isSelectable,_t=Gt.searchValue,Qt="".concat(or,"-menu"),pn="".concat(or,"-menu-item"),sn=ye.useContext(lt),Bn=sn.fieldNames,Yn=sn.changeOnSelect,cr=sn.expandTrigger,$n=sn.expandIcon,en=sn.loadingIcon,rn=sn.dropdownMenuColumnStyle,Or=cr==="hover",kr=ye.useMemo(function(){return Kn.map(function(Cr){var Dr,qr=Cr.disabled,br=Cr.disableCheckbox,fi=Cr[Qe],Jt=(Dr=Cr[$t])!==null&&Dr!==void 0?Dr:Cr[Bn.label],On=Cr[Bn.value],Hn=Ot(Cr,Bn),qn=fi?fi.map(function(Pr){return Pr[Bn.value]}):[].concat((0,E.Z)(nr),[On]),kn=mt(qn),Vn=ut.includes(kn),Pn=Ue.has(kn),fr=yt.has(kn);return{disabled:qr,label:Jt,value:On,isLeaf:Hn,isLoading:Vn,checked:Pn,halfChecked:fr,option:Cr,disableCheckbox:br,fullPath:qn,fullPathKey:kn}})},[Kn,Ue,Bn,yt,ut,nr]);return ye.createElement("ul",{className:Qt,role:"menu"},kr.map(function(Cr){var Dr,qr=Cr.disabled,br=Cr.label,fi=Cr.value,Jt=Cr.isLeaf,On=Cr.isLoading,Hn=Cr.checked,qn=Cr.halfChecked,kn=Cr.option,Vn=Cr.fullPath,Pn=Cr.fullPathKey,fr=Cr.disableCheckbox,Pr=function(){if(!(qr||_t)){var Ri=(0,E.Z)(Vn);Or&&Jt&&Ri.pop(),jt(Ri)}},Gr=function(){rt(kn)&&xr(Vn,Jt)},pi;return typeof kn.title=="string"?pi=kn.title:typeof br=="string"&&(pi=br),ye.createElement("li",{key:Pn,className:pe()(pn,(Dr={},(0,Dt.Z)(Dr,"".concat(pn,"-expand"),!Jt),(0,Dt.Z)(Dr,"".concat(pn,"-active"),En===fi||En===Pn),(0,Dt.Z)(Dr,"".concat(pn,"-disabled"),qr),(0,Dt.Z)(Dr,"".concat(pn,"-loading"),On),Dr)),style:rn,role:"menuitemcheckbox",title:pi,"aria-checked":Hn,"data-path-key":Pn,onClick:function(){Pr(),!fr&&(!er||Jt)&&Gr()},onDoubleClick:function(){Yn&&lr(!1)},onMouseEnter:function(){Or&&Pr()},onMouseDown:function(Ri){Ri.preventDefault()}},er&&ye.createElement(gn,{prefixCls:"".concat(or,"-checkbox"),checked:Hn,halfChecked:qn,disabled:qr||fr,disableCheckbox:fr,onClick:function(Ri){fr||(Ri.stopPropagation(),Gr())}}),ye.createElement("div",{className:"".concat(pn,"-content")},br),!On&&$n&&!Jt&&ye.createElement("div",{className:"".concat(pn,"-expand-icon")},$n),On&&en&&ye.createElement("div",{className:"".concat(pn,"-loading-icon")},en))}))}var on=function(){var Gt=(0,et.lk)(),or=Gt.multiple,er=Gt.open,Kn=ye.useContext(lt),En=Kn.values,nr=ye.useState([]),lr=(0,De.Z)(nr,2),xr=lr[0],jt=lr[1];return ye.useEffect(function(){if(er&&!or){var Ue=En[0];jt(Ue||[])}},[er]),[xr,jt]},dn=ne(10228),ln=function(Gt,or,er,Kn,En,nr){var lr=(0,et.lk)(),xr=lr.direction,jt=lr.searchValue,Ue=lr.toggleOpen,yt=lr.open,ut=xr==="rtl",rt=ye.useMemo(function(){for(var rn=-1,Or=or,kr=[],Cr=[],Dr=Kn.length,qr=wt(or,er),br=function(kn){var Vn=Or.findIndex(function(Pn,fr){return(qr[fr]?mt(qr[fr]):Pn[er.value])===Kn[kn]});if(Vn===-1)return"break";rn=Vn,kr.push(rn),Cr.push(Kn[kn]),Or=Or[rn][er.children]},fi=0;fi<Dr&⩔fi+=1){var Jt=br(fi);if(Jt==="break")break}for(var On=or,Hn=0;Hn<kr.length-1;Hn+=1)On=On[kr[Hn]][er.children];return[Cr,rn,On,qr]},[Kn,er,or]),_t=(0,De.Z)(rt,4),Qt=_t[0],pn=_t[1],sn=_t[2],Bn=_t[3],Yn=function(Or){En(Or)},cr=function(Or){var kr=sn.length,Cr=pn;Cr===-1&&Or<0&&(Cr=kr);for(var Dr=0;Dr<kr;Dr+=1){Cr=(Cr+Or+kr)%kr;var qr=sn[Cr];if(qr&&!qr.disabled){var br=Qt.slice(0,-1).concat(Bn[Cr]?mt(Bn[Cr]):qr[er.value]);Yn(br);return}}},$n=function(){if(Qt.length>1){var Or=Qt.slice(0,-1);Yn(Or)}else Ue(!1)},en=function(){var Or,kr=((Or=sn[pn])===null||Or===void 0?void 0:Or[er.children])||[],Cr=kr.find(function(qr){return!qr.disabled});if(Cr){var Dr=[].concat((0,E.Z)(Qt),[Cr[er.value]]);Yn(Dr)}};ye.useImperativeHandle(Gt,function(){return{onKeyDown:function(Or){var kr=Or.which;switch(kr){case dn.Z.UP:case dn.Z.DOWN:{var Cr=0;kr===dn.Z.UP?Cr=-1:kr===dn.Z.DOWN&&(Cr=1),Cr!==0&&cr(Cr);break}case dn.Z.LEFT:{if(jt)break;ut?en():$n();break}case dn.Z.RIGHT:{if(jt)break;ut?$n():en();break}case dn.Z.BACKSPACE:{jt||$n();break}case dn.Z.ENTER:{if(Qt.length){var Dr=sn[pn],qr=(Dr==null?void 0:Dr[Qe])||[];qr.length?nr(qr.map(function(br){return br[er.value]}),qr[qr.length-1]):nr(Qt,sn[pn])}break}case dn.Z.ESC:Ue(!1),yt&&Or.stopPropagation()}},onKeyUp:function(){}}})},xe=ye.forwardRef(function(Gt,or){var er,Kn,En,nr,lr=(0,et.lk)(),xr=lr.prefixCls,jt=lr.multiple,Ue=lr.searchValue,yt=lr.toggleOpen,ut=lr.notFoundContent,rt=lr.direction,_t=lr.open,Qt=ye.useRef(),pn=rt==="rtl",sn=ye.useContext(lt),Bn=sn.options,Yn=sn.values,cr=sn.halfValues,$n=sn.fieldNames,en=sn.changeOnSelect,rn=sn.onSelect,Or=sn.searchOptions,kr=sn.dropdownPrefixCls,Cr=sn.loadData,Dr=sn.expandTrigger,qr=kr||xr,br=ye.useState([]),fi=(0,De.Z)(br,2),Jt=fi[0],On=fi[1],Hn=function(li){if(!(!Cr||Ue)){var Ii=at(li,Bn,$n),ya=Ii.map(function(Ir){var Vi=Ir.option;return Vi}),vi=ya[ya.length-1];if(vi&&!Ot(vi,$n)){var jr=mt(li);On(function(Ir){return[].concat((0,E.Z)(Ir),[jr])}),Cr(ya)}}};ye.useEffect(function(){Jt.length&&Jt.forEach(function(zr){var li=xt(zr),Ii=at(li,Bn,$n,!0).map(function(vi){var jr=vi.option;return jr}),ya=Ii[Ii.length-1];(!ya||ya[$n.children]||Ot(ya,$n))&&On(function(vi){return vi.filter(function(jr){return jr!==zr})})})},[Bn,Jt,$n]);var qn=ye.useMemo(function(){return new Set(Be(Yn))},[Yn]),kn=ye.useMemo(function(){return new Set(Be(cr))},[cr]),Vn=on(),Pn=(0,De.Z)(Vn,2),fr=Pn[0],Pr=Pn[1],Gr=function(li){Pr(li),Hn(li)},pi=function(li){var Ii=li.disabled,ya=Ot(li,$n);return!Ii&&(ya||en||jt)},gi=function(li,Ii){var ya=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;rn(li),!jt&&(Ii||en&&(Dr==="hover"||ya))&&yt(!1)},Ri=ye.useMemo(function(){return Ue?Or:Bn},[Ue,Or,Bn]),Si=ye.useMemo(function(){for(var zr=[{options:Ri}],li=Ri,Ii=wt(li,$n),ya=function(){var Vi=fr[vi],xi=li.find(function(ba,oa){return(Ii[oa]?mt(Ii[oa]):ba[$n.value])===Vi}),na=xi==null?void 0:xi[$n.children];if(!(na!=null&&na.length))return"break";li=na,zr.push({options:na})},vi=0;vi<fr.length;vi+=1){var jr=ya();if(jr==="break")break}return zr},[Ri,fr,$n]),wi=function(li,Ii){pi(Ii)&&gi(li,Ot(Ii,$n),!0)};ln(or,Ri,$n,fr,Gr,wi),ye.useEffect(function(){for(var zr=0;zr<fr.length;zr+=1){var li,Ii=fr.slice(0,zr+1),ya=mt(Ii),vi=(li=Qt.current)===null||li===void 0?void 0:li.querySelector('li[data-path-key="'.concat(ya.replace(/\\{0,2}"/g,'\\"'),'"]'));vi&&nt(vi)}},[fr]);var Zi=!((er=Si[0])!==null&&er!==void 0&&(Kn=er.options)!==null&&Kn!==void 0&&Kn.length),ji=[(En={},(0,Dt.Z)(En,$n.value,"__EMPTY__"),(0,Dt.Z)(En,$t,ut),(0,Dt.Z)(En,"disabled",!0),En)],Gi=(0,dt.Z)((0,dt.Z)({},Gt),{},{multiple:!Zi&&jt,onSelect:gi,onActive:Gr,onToggleOpen:yt,checkedSet:qn,halfCheckedSet:kn,loadingKeys:Jt,isSelectable:pi}),Bi=Zi?[{options:ji}]:Si,Di=Bi.map(function(zr,li){var Ii=fr.slice(0,li),ya=fr[li];return ye.createElement(Wt,(0,be.Z)({key:li},Gi,{searchValue:Ue,prefixCls:qr,options:zr.options,prevValuePath:Ii,activeValue:ya}))});return ye.createElement(Zt,{open:_t},ye.createElement("div",{className:pe()("".concat(qr,"-menus"),(nr={},(0,Dt.Z)(nr,"".concat(qr,"-menu-empty"),Zi),(0,Dt.Z)(nr,"".concat(qr,"-rtl"),pn),nr)),ref:Qt},Di))}),fe=xe;function ue(Gt){var or=Gt.onPopupVisibleChange,er=Gt.popupVisible,Kn=Gt.popupClassName,En=Gt.popupPlacement;warning(!or,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(er===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Kn===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(En===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function he(Gt,or){if(Gt){var er=function Kn(En){for(var nr=0;nr<En.length;nr++){var lr=En[nr];if(lr[or==null?void 0:or.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(lr[or==null?void 0:or.children])&&Kn(lr[or==null?void 0:or.children]))return!0}};er(Gt)}}var me=null,oe=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function Ne(Gt){return Array.isArray(Gt)&&Array.isArray(Gt[0])}function At(Gt){return Gt?Ne(Gt)?Gt:(Gt.length===0?[]:[Gt]).map(function(or){return Array.isArray(or)?or:[or]}):[]}var Ge=ye.forwardRef(function(Gt,or){var er=Gt.id,Kn=Gt.prefixCls,En=Kn===void 0?"rc-cascader":Kn,nr=Gt.fieldNames,lr=Gt.defaultValue,xr=Gt.value,jt=Gt.changeOnSelect,Ue=Gt.onChange,yt=Gt.displayRender,ut=Gt.checkable,rt=Gt.autoClearSearchValue,_t=rt===void 0?!0:rt,Qt=Gt.searchValue,pn=Gt.onSearch,sn=Gt.showSearch,Bn=Gt.expandTrigger,Yn=Gt.options,cr=Gt.dropdownPrefixCls,$n=Gt.loadData,en=Gt.popupVisible,rn=Gt.open,Or=Gt.popupClassName,kr=Gt.dropdownClassName,Cr=Gt.dropdownMenuColumnStyle,Dr=Gt.popupPlacement,qr=Gt.placement,br=Gt.onDropdownVisibleChange,fi=Gt.onPopupVisibleChange,Jt=Gt.expandIcon,On=Jt===void 0?">":Jt,Hn=Gt.loadingIcon,qn=Gt.children,kn=Gt.dropdownMatchSelectWidth,Vn=kn===void 0?!1:kn,Pn=Gt.showCheckedStrategy,fr=Pn===void 0?vt:Pn,Pr=(0,Pe.Z)(Gt,oe),Gr=(0,Fe.ZP)(er),pi=!!ut,gi=(0,ze.Z)(lr,{value:xr,postState:At}),Ri=(0,De.Z)(gi,2),Si=Ri[0],wi=Ri[1],Zi=ye.useMemo(function(){return Ve(nr)},[JSON.stringify(nr)]),ji=ye.useMemo(function(){return Yn||[]},[Yn]),Gi=st(ji,Zi),Bi=ye.useCallback(function(ri){var hi=Gi();return ri.map(function(Ta){var vo=hi[Ta].nodes;return vo.map(function(go){return go[Zi.value]})})},[Gi,Zi]),Di=(0,ze.Z)("",{value:Qt,postState:function(hi){return hi||""}}),zr=(0,De.Z)(Di,2),li=zr[0],Ii=zr[1],ya=function(hi,Ta){Ii(hi),Ta.source!=="blur"&&pn&&pn(hi)},vi=ct(sn),jr=(0,De.Z)(vi,2),Ir=jr[0],Vi=jr[1],xi=Je(li,ji,Zi,cr||En,Vi,jt),na=Ht(ji,Zi),ba=ye.useMemo(function(){var ri=na(Si),hi=(0,De.Z)(ri,2),Ta=hi[0],vo=hi[1];if(!pi||!Si.length)return[Ta,[],vo];var go=Be(Ta),So=Gi(),yo=(0,Ie.S)(go,!0,So),Lo=yo.checkedKeys,nl=yo.halfCheckedKeys;return[Bi(Lo),Bi(nl),vo]},[pi,Si,Gi,Bi,na]),oa=(0,De.Z)(ba,3),xa=oa[0],Na=oa[1],Po=oa[2],ki=ye.useMemo(function(){var ri=Be(xa),hi=Mt(ri,Gi,fr);return[].concat((0,E.Z)(Po),(0,E.Z)(Bi(hi)))},[xa,Gi,Bi,Po,fr]),Hi=Le(ki,ji,Zi,pi,yt),Aa=(0,tt.Z)(function(ri){if(wi(ri),Ue){var hi=At(ri),Ta=hi.map(function(So){return at(So,ji,Zi).map(function(yo){return yo.option})}),vo=pi?hi:hi[0],go=pi?Ta:Ta[0];Ue(vo,go)}}),Ma=(0,tt.Z)(function(ri){if((!pi||_t)&&Ii(""),!pi)Aa(ri);else{var hi=mt(ri),Ta=Be(xa),vo=Be(Na),go=Ta.includes(hi),So=Po.some(function(hr){return mt(hr)===hi}),yo=xa,Lo=Po;if(So&&!go)Lo=Po.filter(function(hr){return mt(hr)!==hi});else{var nl=go?Ta.filter(function(hr){return hr!==hi}):[].concat((0,E.Z)(Ta),[hi]),ea=Gi(),gl;if(go){var ol=(0,Ie.S)(nl,{checked:!1,halfCheckedKeys:vo},ea);gl=ol.checkedKeys}else{var pl=(0,Ie.S)(nl,!0,ea);gl=pl.checkedKeys}var Xl=Mt(gl,Gi,fr);yo=Bi(Xl)}Aa([].concat((0,E.Z)(Lo),(0,E.Z)(yo)))}}),lo=function(hi,Ta){if(Ta.type==="clear"){Aa([]);return}var vo=Ta.values[0],go=vo.valueCells;Ma(go)},hl=rn!==void 0?rn:en,qo=kr||Or,co=qr||Dr,Ho=function(hi){br==null||br(hi),fi==null||fi(hi)},Vo=ye.useMemo(function(){return{options:ji,fieldNames:Zi,values:xa,halfValues:Na,changeOnSelect:jt,onSelect:Ma,checkable:ut,searchOptions:xi,dropdownPrefixCls:cr,loadData:$n,expandTrigger:Bn,expandIcon:On,loadingIcon:Hn,dropdownMenuColumnStyle:Cr}},[ji,Zi,xa,Na,jt,Ma,ut,xi,cr,$n,Bn,On,Hn,Cr]),Qr=!(li?xi:ji).length,Ei=li&&Vi.matchInputWidth||Qr?{}:{minWidth:"auto"};return ye.createElement(lt.Provider,{value:Vo},ye.createElement(et.Ac,(0,be.Z)({},Pr,{ref:or,id:Gr,prefixCls:En,autoClearSearchValue:_t,dropdownMatchSelectWidth:Vn,dropdownStyle:Ei,displayValues:Hi,onDisplayValuesChange:lo,mode:pi?"multiple":void 0,searchValue:li,onSearch:ya,showSearch:Ir,OptionList:fe,emptyOptions:Qr,open:hl,dropdownClassName:qo,placement:co,onDropdownVisibleChange:Ho,getRawInputElement:function(){return qn}})))});Ge.SHOW_PARENT=vt,Ge.SHOW_CHILD=$e;var je=Ge,Pt=je,Et=ne(2738),ht=ne(62892),Kt=ne(53487),vn=ne(19080),kt=ne(36355),Ut=ne(93891),yn=ne(1684),Bt=ne(19716),Ke=ne(32441),gt=ne(14154),Vt=ne(58582),Nt=ne(84443),Xt=ne(66339),Mn=ne(33234),Tn=ne(98447),Rn=ne(17313),ur=ne(74207),vr=ne(83116);const dr=Gt=>{const{prefixCls:or,componentCls:er,antCls:Kn}=Gt,En=`${er}-menu-item`,nr=`
|
|
|
&${En}-expand ${En}-expand-icon,
|
|
|
${En}-loading-icon
|
|
|
`;return[{[er]:{width:Gt.controlWidth}},{[`${er}-dropdown`]:[(0,Tn.C2)(`${or}-checkbox`,Gt),{[`&${Kn}-select-dropdown`]:{padding:0}},{[er]:{"&-checkbox":{top:0,marginInlineEnd:Gt.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${er}-menu-empty`]:{[`${er}-menu`]:{width:"100%",height:"auto",[En]:{color:Gt.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Gt.controlItemWidth,height:Gt.dropdownHeight,margin:0,padding:Gt.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Gt.lineWidth}px ${Gt.lineType} ${Gt.colorSplit}`},"&-item":Object.assign(Object.assign({},Rn.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Gt.optionPadding,lineHeight:Gt.lineHeight,cursor:"pointer",transition:`all ${Gt.motionDurationMid}`,borderRadius:Gt.borderRadiusSM,"&:hover":{background:Gt.controlItemBgHover},"&-disabled":{color:Gt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[nr]:{color:Gt.colorTextDisabled}},[`&-active:not(${En}-disabled)`]:{"&, &:hover":{fontWeight:Gt.optionSelectedFontWeight,backgroundColor:Gt.optionSelectedBg}},"&-content":{flex:"auto"},[nr]:{marginInlineStart:Gt.paddingXXS,color:Gt.colorTextDescription,fontSize:Gt.fontSizeIcon},"&-keyword":{color:Gt.colorHighlight}})}}}]},{[`${er}-dropdown-rtl`]:{direction:"rtl"}},(0,ur.c)(Gt)]};var mn=(0,vr.Z)("Cascader",Gt=>[dr(Gt)],Gt=>{const or=Math.round((Gt.controlHeight-Gt.fontSize*Gt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Gt.controlItemBgActive,optionSelectedFontWeight:Gt.fontWeightStrong,optionPadding:`${or}px ${Gt.paddingSM}px`,menuPadding:Gt.paddingXXS}}),zn=function(Gt,or){var er={};for(var Kn in Gt)Object.prototype.hasOwnProperty.call(Gt,Kn)&&or.indexOf(Kn)<0&&(er[Kn]=Gt[Kn]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,Kn=Object.getOwnPropertySymbols(Gt);En<Kn.length;En++)or.indexOf(Kn[En])<0&&Object.prototype.propertyIsEnumerable.call(Gt,Kn[En])&&(er[Kn[En]]=Gt[Kn[En]]);return er};const{SHOW_CHILD:jn,SHOW_PARENT:Xn}=Pt;function Sr(Gt,or,er){const Kn=Gt.toLowerCase().split(or).reduce((lr,xr,jt)=>jt===0?[xr]:[].concat((0,E.Z)(lr),[or,xr]),[]),En=[];let nr=0;return Kn.forEach((lr,xr)=>{const jt=nr+lr.length;let Ue=Gt.slice(nr,jt);nr=jt,xr%2===1&&(Ue=ye.createElement("span",{className:`${er}-menu-item-keyword`,key:`separator-${xr}`},Ue)),En.push(Ue)}),En}const Kr=(Gt,or,er,Kn)=>{const En=[],nr=Gt.toLowerCase();return or.forEach((lr,xr)=>{xr!==0&&En.push(" / ");let jt=lr[Kn.label];const Ue=typeof jt;(Ue==="string"||Ue==="number")&&(jt=Sr(String(jt),nr,er)),En.push(jt)}),En},ar=ye.forwardRef((Gt,or)=>{const{prefixCls:er,size:Kn,disabled:En,className:nr,rootClassName:lr,multiple:xr,bordered:jt=!0,transitionName:Ue,choiceTransitionName:yt="",popupClassName:ut,dropdownClassName:rt,expandIcon:_t,placement:Qt,showSearch:pn,allowClear:sn=!0,notFoundContent:Bn,direction:Yn,getPopupContainer:cr,status:$n,showArrow:en,builtinPlacements:rn,style:Or}=Gt,kr=zn(Gt,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Cr=(0,Et.Z)(kr,["suffixIcon"]),{getPopupContainer:Dr,getPrefixCls:qr,renderEmpty:br,direction:fi,popupOverflow:Jt,cascader:On}=ye.useContext(kt.E_),Hn=Yn||fi,qn=Hn==="rtl",{status:kn,hasFeedback:Vn,isFormItemInput:Pn,feedbackIcon:fr}=ye.useContext(Ke.aM),Pr=(0,vn.F)(kn,$n),Gr=Bn||(br==null?void 0:br("Cascader"))||ye.createElement(Ut.Z,{componentName:"Cascader"}),pi=qr(),gi=qr("select",er),Ri=qr("cascader",er),[Si,wi]=(0,gt.Z)(gi),[Zi]=mn(Ri),{compactSize:ji,compactItemClassnames:Gi}=(0,Mn.ri)(gi,Yn),Bi=pe()(ut||rt,`${Ri}-dropdown`,{[`${Ri}-dropdown-rtl`]:Hn==="rtl"},lr,wi),Di=ye.useMemo(()=>{if(!pn)return pn;let Po={render:Kr};return typeof pn=="object"&&(Po=Object.assign(Object.assign({},Po),pn)),Po},[pn]),zr=(0,Bt.Z)(Po=>{var ki;return(ki=Kn!=null?Kn:ji)!==null&&ki!==void 0?ki:Po}),li=ye.useContext(yn.Z),Ii=En!=null?En:li;let ya=_t;_t||(ya=qn?ye.createElement(Ee.Z,null):ye.createElement(Ce.Z,null));const vi=ye.createElement("span",{className:`${gi}-menu-item-loading-icon`},ye.createElement(Ye.Z,{spin:!0})),jr=ye.useMemo(()=>xr?ye.createElement("span",{className:`${Ri}-checkbox-inner`}):!1,[xr]),Ir=(0,Nt.Z)(Gt.suffixIcon,en),{suffixIcon:Vi,removeIcon:xi,clearIcon:na}=(0,Xt.Z)(Object.assign(Object.assign({},Gt),{hasFeedback:Vn,feedbackIcon:fr,showSuffixIcon:Ir,multiple:xr,prefixCls:gi,componentName:"Cascader"})),ba=ye.useMemo(()=>Qt!==void 0?Qt:qn?"bottomRight":"bottomLeft",[Qt,qn]),oa=(0,Vt.Z)(rn,Jt),xa=sn===!0?{clearIcon:na}:sn,Na=ye.createElement(Pt,Object.assign({prefixCls:gi,className:pe()(!er&&Ri,{[`${gi}-lg`]:zr==="large",[`${gi}-sm`]:zr==="small",[`${gi}-rtl`]:qn,[`${gi}-borderless`]:!jt,[`${gi}-in-form-item`]:Pn},(0,vn.Z)(gi,Pr,Vn),Gi,On==null?void 0:On.className,nr,lr,wi),disabled:Ii,style:Object.assign(Object.assign({},On==null?void 0:On.style),Or)},Cr,{builtinPlacements:oa,direction:Hn,placement:ba,notFoundContent:Gr,allowClear:xa,showSearch:Di,expandIcon:ya,suffixIcon:Vi,removeIcon:xi,loadingIcon:vi,checkable:jr,dropdownClassName:Bi,dropdownPrefixCls:er||Ri,choiceTransitionName:(0,ht.m)(pi,"",yt),transitionName:(0,ht.m)(pi,"slide-up",Ue),getPopupContainer:cr||Dr,ref:or}));return Zi(Si(Na))}),Zn=(0,Kt.Z)(ar);ar.SHOW_PARENT=Xn,ar.SHOW_CHILD=jn,ar._InternalPanelDoNotUseOrYouWillBeFired=Zn;var Wr=ar},24905:function(An,tn,ne){"use strict";ne.d(tn,{default:function(){return Je}});var E=ne(92310),ye=ne.n(E),Ee=ne(5630),Ye=ne(59301),Ce=ne(36355),Se=ne(1684),pe=ne(32441),De=Ye.createContext(null),Pe=ne(98447),et=ne(14088),Fe=ne(4572),Ie=function(Re,vt){var $e={};for(var mt in Re)Object.prototype.hasOwnProperty.call(Re,mt)&&vt.indexOf(mt)<0&&($e[mt]=Re[mt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,mt=Object.getOwnPropertySymbols(Re);Be<mt.length;Be++)vt.indexOf(mt[Be])<0&&Object.prototype.propertyIsEnumerable.call(Re,mt[Be])&&($e[mt[Be]]=Re[mt[Be]]);return $e};const tt=(Re,vt)=>{var $e;const{prefixCls:mt,className:Be,rootClassName:xt,children:Ve,indeterminate:Ot=!1,style:nt,onMouseEnter:wt,onMouseLeave:Mt,skipGroup:at=!1,disabled:Le}=Re,Me=Ie(Re,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:st,direction:Ht,checkbox:Tt}=Ye.useContext(Ce.E_),ct=Ye.useContext(De),{isFormItemInput:Ct}=Ye.useContext(pe.aM),Zt=Ye.useContext(Se.Z),gn=($e=(ct==null?void 0:ct.disabled)||Le)!==null&&$e!==void 0?$e:Zt,$t=Ye.useRef(Me.value);Ye.useEffect(()=>{ct==null||ct.registerValue(Me.value)},[]),Ye.useEffect(()=>{if(!at)return Me.value!==$t.current&&(ct==null||ct.cancelValue($t.current),ct==null||ct.registerValue(Me.value),$t.current=Me.value),()=>ct==null?void 0:ct.cancelValue(Me.value)},[Me.value]);const Wt=st("checkbox",mt),[on,dn]=(0,Pe.ZP)(Wt),ln=Object.assign({},Me);ct&&!at&&(ln.onChange=function(){Me.onChange&&Me.onChange.apply(Me,arguments),ct.toggleOption&&ct.toggleOption({label:Ve,value:Me.value})},ln.name=ct.name,ln.checked=ct.value.includes(Me.value));const xe=ye()(`${Wt}-wrapper`,{[`${Wt}-rtl`]:Ht==="rtl",[`${Wt}-wrapper-checked`]:ln.checked,[`${Wt}-wrapper-disabled`]:gn,[`${Wt}-wrapper-in-form-item`]:Ct},Tt==null?void 0:Tt.className,Be,xt,dn),fe=ye()({[`${Wt}-indeterminate`]:Ot},Fe.A,dn),ue=Ot?"mixed":void 0;return on(Ye.createElement(et.Z,{component:"Checkbox",disabled:gn},Ye.createElement("label",{className:xe,style:Object.assign(Object.assign({},Tt==null?void 0:Tt.style),nt),onMouseEnter:wt,onMouseLeave:Mt},Ye.createElement(Ee.Z,Object.assign({"aria-checked":ue},ln,{prefixCls:Wt,className:fe,disabled:gn,ref:vt})),Ve!==void 0&&Ye.createElement("span",null,Ve))))};var We=Ye.forwardRef(tt),lt=ne(77654),Xe=ne(2738),Dt=function(Re,vt){var $e={};for(var mt in Re)Object.prototype.hasOwnProperty.call(Re,mt)&&vt.indexOf(mt)<0&&($e[mt]=Re[mt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,mt=Object.getOwnPropertySymbols(Re);Be<mt.length;Be++)vt.indexOf(mt[Be])<0&&Object.prototype.propertyIsEnumerable.call(Re,mt[Be])&&($e[mt[Be]]=Re[mt[Be]]);return $e};const dt=(Re,vt)=>{const{defaultValue:$e,children:mt,options:Be=[],prefixCls:xt,className:Ve,rootClassName:Ot,style:nt,onChange:wt}=Re,Mt=Dt(Re,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:at,direction:Le}=Ye.useContext(Ce.E_),[Me,st]=Ye.useState(Mt.value||$e||[]),[Ht,Tt]=Ye.useState([]);Ye.useEffect(()=>{"value"in Mt&&st(Mt.value||[])},[Mt.value]);const ct=Ye.useMemo(()=>Be.map(he=>typeof he=="string"||typeof he=="number"?{label:he,value:he}:he),[Be]),Ct=he=>{Tt(me=>me.filter(oe=>oe!==he))},Zt=he=>{Tt(me=>[].concat((0,lt.Z)(me),[he]))},gn=he=>{const me=Me.indexOf(he.value),oe=(0,lt.Z)(Me);me===-1?oe.push(he.value):oe.splice(me,1),"value"in Mt||st(oe),wt==null||wt(oe.filter(Ne=>Ht.includes(Ne)).sort((Ne,At)=>{const Ge=ct.findIndex(Pt=>Pt.value===Ne),je=ct.findIndex(Pt=>Pt.value===At);return Ge-je}))},$t=at("checkbox",xt),Wt=`${$t}-group`,[on,dn]=(0,Pe.ZP)($t),ln=(0,Xe.Z)(Mt,["value","disabled"]),xe=Be.length?ct.map(he=>Ye.createElement(We,{prefixCls:$t,key:he.value.toString(),disabled:"disabled"in he?he.disabled:Mt.disabled,value:he.value,checked:Me.includes(he.value),onChange:he.onChange,className:`${Wt}-item`,style:he.style,title:he.title},he.label)):mt,fe={toggleOption:gn,value:Me,disabled:Mt.disabled,name:Mt.name,registerValue:Zt,cancelValue:Ct},ue=ye()(Wt,{[`${Wt}-rtl`]:Le==="rtl"},Ve,Ot,dn);return on(Ye.createElement("div",Object.assign({className:ue,style:nt},ln,{ref:vt}),Ye.createElement(De.Provider,{value:fe},xe)))},Qe=Ye.forwardRef(dt);var Ze=Ye.memo(Qe);const Ae=We;Ae.Group=Ze,Ae.__ANT_CHECKBOX=!0;var Je=Ae},98447:function(An,tn,ne){"use strict";ne.d(tn,{C2:function(){return Ce}});var E=ne(17313),ye=ne(37613),Ee=ne(83116);const Ye=Se=>{const{checkboxCls:pe}=Se,be=`${pe}-wrapper`;return[{[`${pe}-group`]:Object.assign(Object.assign({},(0,E.Wf)(Se)),{display:"inline-flex",flexWrap:"wrap",columnGap:Se.marginXS,[`> ${Se.antCls}-row`]:{flex:1}}),[be]:Object.assign(Object.assign({},(0,E.Wf)(Se)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${be}`]:{marginInlineStart:0},[`&${be}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[pe]:Object.assign(Object.assign({},(0,E.Wf)(Se)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Se.borderRadiusSM,alignSelf:"center",[`${pe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${pe}-inner`]:Object.assign({},(0,E.oN)(Se))},[`${pe}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Se.checkboxSize,height:Se.checkboxSize,direction:"ltr",backgroundColor:Se.colorBgContainer,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadiusSM,borderCollapse:"separate",transition:`all ${Se.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Se.checkboxSize/14*5,height:Se.checkboxSize/14*8,border:`${Se.lineWidthBold}px solid ${Se.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Se.motionDurationFast} ${Se.motionEaseInBack}, opacity ${Se.motionDurationFast}`}},"& + span":{paddingInlineStart:Se.paddingXS,paddingInlineEnd:Se.paddingXS}})},{[`
|
|
|
${be}:not(${be}-disabled),
|
|
|
${pe}:not(${pe}-disabled)
|
|
|
`]:{[`&:hover ${pe}-inner`]:{borderColor:Se.colorPrimary}},[`${be}:not(${be}-disabled)`]:{[`&:hover ${pe}-checked:not(${pe}-disabled) ${pe}-inner`]:{backgroundColor:Se.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${pe}-checked:not(${pe}-disabled):after`]:{borderColor:Se.colorPrimaryHover}}},{[`${pe}-checked`]:{[`${pe}-inner`]:{backgroundColor:Se.colorPrimary,borderColor:Se.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Se.motionDurationMid} ${Se.motionEaseOutBack} ${Se.motionDurationFast}`}}},[`
|
|
|
${be}-checked:not(${be}-disabled),
|
|
|
${pe}-checked:not(${pe}-disabled)
|
|
|
`]:{[`&:hover ${pe}-inner`]:{backgroundColor:Se.colorPrimaryHover,borderColor:"transparent"}}},{[pe]:{"&-indeterminate":{[`${pe}-inner`]:{backgroundColor:Se.colorBgContainer,borderColor:Se.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Se.fontSizeLG/2,height:Se.fontSizeLG/2,backgroundColor:Se.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${be}-disabled`]:{cursor:"not-allowed"},[`${pe}-disabled`]:{[`&, ${pe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${pe}-inner`]:{background:Se.colorBgContainerDisabled,borderColor:Se.colorBorder,"&:after":{borderColor:Se.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Se.colorTextDisabled},[`&${pe}-indeterminate ${pe}-inner::after`]:{background:Se.colorTextDisabled}}}]};function Ce(Se,pe){const be=(0,ye.TS)(pe,{checkboxCls:`.${Se}`,checkboxSize:pe.controlInteractiveSize});return[Ye(be)]}tn.ZP=(0,Ee.Z)("Checkbox",(Se,pe)=>{let{prefixCls:be}=pe;return[Ce(be,Se)]})},36381:function(An,tn,ne){"use strict";ne.d(tn,{default:function(){return ln}});var E=ne(38819),ye=ne(92310),Ee=ne.n(ye),Ye=ne(60499),Ce=ne(77654),Se=ne(72190),pe=ne(43749),be=ne(18929),De=ne(48736),Pe=ne(59301),et=ne(42244),Fe=ne(11592),Ie=ne(18642),tt=ne(77900),ze=ne(10228),We=Pe.forwardRef(function(xe,fe){var ue=xe.prefixCls,he=xe.forceRender,me=xe.className,oe=xe.style,Ne=xe.children,At=xe.isActive,Ge=xe.role,je=Pe.useState(At||he),Pt=(0,Se.Z)(je,2),Et=Pt[0],ht=Pt[1];return Pe.useEffect(function(){(he||At)&&ht(!0)},[he,At]),Et?Pe.createElement("div",{ref:fe,className:Ee()("".concat(ue,"-content"),(0,Ie.Z)((0,Ie.Z)({},"".concat(ue,"-content-active"),At),"".concat(ue,"-content-inactive"),!At),me),style:oe,role:Ge},Pe.createElement("div",{className:"".concat(ue,"-content-box")},Ne)):null});We.displayName="PanelContent";var lt=We,Xe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Dt=Pe.forwardRef(function(xe,fe){var ue=xe.showArrow,he=ue===void 0?!0:ue,me=xe.headerClass,oe=xe.isActive,Ne=xe.onItemClick,At=xe.forceRender,Ge=xe.className,je=xe.prefixCls,Pt=xe.collapsible,Et=xe.accordion,ht=xe.panelKey,Kt=xe.extra,vn=xe.header,kt=xe.expandIcon,Ut=xe.openMotion,yn=xe.destroyInactivePanel,Bt=xe.children,Ke=(0,et.Z)(xe,Xe),gt=Pt==="disabled",Vt=Pt==="header",Nt=Pt==="icon",Xt=Kt!=null&&typeof Kt!="boolean",Mn=function(){Ne==null||Ne(ht)},Tn=function(zn){(zn.key==="Enter"||zn.keyCode===ze.Z.ENTER||zn.which===ze.Z.ENTER)&&Mn()},Rn=typeof kt=="function"?kt(xe):Pe.createElement("i",{className:"arrow"});Rn&&(Rn=Pe.createElement("div",{className:"".concat(je,"-expand-icon"),onClick:["header","icon"].includes(Pt)?Mn:void 0},Rn));var ur=Ee()((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(je,"-item"),!0),"".concat(je,"-item-active"),oe),"".concat(je,"-item-disabled"),gt),Ge),vr=Ee()(me,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(je,"-header"),!0),"".concat(je,"-header-collapsible-only"),Vt),"".concat(je,"-icon-collapsible-only"),Nt)),dr={className:vr,"aria-expanded":oe,"aria-disabled":gt,onKeyDown:Tn};return!Vt&&!Nt&&(dr.onClick=Mn,dr.role=Et?"tab":"button",dr.tabIndex=gt?-1:0),Pe.createElement("div",(0,Ye.Z)({},Ke,{ref:fe,className:ur}),Pe.createElement("div",dr,he&&Rn,Pe.createElement("span",{className:"".concat(je,"-header-text"),onClick:Pt==="header"?Mn:void 0},vn),Xt&&Pe.createElement("div",{className:"".concat(je,"-extra")},Kt)),Pe.createElement(tt.default,(0,Ye.Z)({visible:oe,leavedClassName:"".concat(je,"-content-hidden")},Ut,{forceRender:At,removeOnLeave:yn}),function(mn,zn){var jn=mn.className,Xn=mn.style;return Pe.createElement(lt,{ref:zn,prefixCls:je,className:jn,style:Xn,isActive:oe,forceRender:At,role:Et?"tabpanel":void 0},Bt)}))}),dt=Dt,Qe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Ze=function(fe,ue){var he=ue.prefixCls,me=ue.accordion,oe=ue.collapsible,Ne=ue.destroyInactivePanel,At=ue.onItemClick,Ge=ue.activeKey,je=ue.openMotion,Pt=ue.expandIcon;return fe.map(function(Et,ht){var Kt=Et.children,vn=Et.label,kt=Et.key,Ut=Et.collapsible,yn=Et.onItemClick,Bt=Et.destroyInactivePanel,Ke=(0,et.Z)(Et,Qe),gt=String(kt!=null?kt:ht),Vt=Ut!=null?Ut:oe,Nt=Bt!=null?Bt:Ne,Xt=function(Rn){Vt!=="disabled"&&(At(Rn),yn==null||yn(Rn))},Mn=!1;return me?Mn=Ge[0]===gt:Mn=Ge.indexOf(gt)>-1,Pe.createElement(dt,(0,Ye.Z)({},Ke,{prefixCls:he,key:gt,panelKey:gt,isActive:Mn,accordion:me,openMotion:je,expandIcon:Pt,header:vn,collapsible:Vt,onItemClick:Xt,destroyInactivePanel:Nt}),Kt)})},Ae=function(fe,ue,he){if(!fe)return null;var me=he.prefixCls,oe=he.accordion,Ne=he.collapsible,At=he.destroyInactivePanel,Ge=he.onItemClick,je=he.activeKey,Pt=he.openMotion,Et=he.expandIcon,ht=fe.key||String(ue),Kt=fe.props,vn=Kt.header,kt=Kt.headerClass,Ut=Kt.destroyInactivePanel,yn=Kt.collapsible,Bt=Kt.onItemClick,Ke=!1;oe?Ke=je[0]===ht:Ke=je.indexOf(ht)>-1;var gt=yn!=null?yn:Ne,Vt=function(Mn){gt!=="disabled"&&(Ge(Mn),Bt==null||Bt(Mn))},Nt={key:ht,panelKey:ht,header:vn,headerClass:kt,isActive:Ke,prefixCls:me,destroyInactivePanel:Ut!=null?Ut:At,openMotion:Pt,accordion:oe,children:fe.props.children,onItemClick:Vt,expandIcon:Et,collapsible:gt};return typeof fe.type=="string"?fe:(Object.keys(Nt).forEach(function(Xt){typeof Nt[Xt]=="undefined"&&delete Nt[Xt]}),Pe.cloneElement(fe,Nt))};function Je(xe,fe,ue){return Array.isArray(xe)?Ze(xe,ue):(0,Fe.Z)(fe).map(function(he,me){return Ae(he,me,ue)})}var Re=Je,vt=ne(26112);function $e(xe){var fe=xe;if(!Array.isArray(fe)){var ue=(0,pe.Z)(fe);fe=ue==="number"||ue==="string"?[fe]:[]}return fe.map(function(he){return String(he)})}var mt=Pe.forwardRef(function(xe,fe){var ue=xe.prefixCls,he=ue===void 0?"rc-collapse":ue,me=xe.destroyInactivePanel,oe=me===void 0?!1:me,Ne=xe.style,At=xe.accordion,Ge=xe.className,je=xe.children,Pt=xe.collapsible,Et=xe.openMotion,ht=xe.expandIcon,Kt=xe.activeKey,vn=xe.defaultActiveKey,kt=xe.onChange,Ut=xe.items,yn=Ee()(he,Ge),Bt=(0,be.Z)([],{value:Kt,onChange:function(Tn){return kt==null?void 0:kt(Tn)},defaultValue:vn,postState:$e}),Ke=(0,Se.Z)(Bt,2),gt=Ke[0],Vt=Ke[1],Nt=function(Tn){return Vt(function(){if(At)return gt[0]===Tn?[]:[Tn];var Rn=gt.indexOf(Tn),ur=Rn>-1;return ur?gt.filter(function(vr){return vr!==Tn}):[].concat((0,Ce.Z)(gt),[Tn])})};(0,De.ZP)(!je,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Xt=Re(Ut,je,{prefixCls:he,accordion:At,openMotion:Et,expandIcon:ht,collapsible:Pt,destroyInactivePanel:oe,onItemClick:Nt,activeKey:gt});return Pe.createElement("div",(0,Ye.Z)({ref:fe,className:yn,style:Ne,role:At?"tablist":void 0},(0,vt.Z)(xe,{aria:!0,data:!0})),Xt)}),Be=Object.assign(mt,{Panel:dt}),xt=Be,Ve=Be.Panel,Ot=ne(2738),nt=ne(62892),wt=ne(92343),Mt=ne(36355),at=ne(19716),Me=Pe.forwardRef((xe,fe)=>{const{getPrefixCls:ue}=Pe.useContext(Mt.E_),{prefixCls:he,className:me,showArrow:oe=!0}=xe,Ne=ue("collapse",he),At=Ee()({[`${Ne}-no-arrow`]:!oe},me);return Pe.createElement(xt.Panel,Object.assign({ref:fe},xe,{prefixCls:Ne,className:At}))}),st=ne(17313),Ht=ne(8378),Tt=ne(83116),ct=ne(37613);const Ct=xe=>{const{componentCls:fe,contentBg:ue,padding:he,headerBg:me,headerPadding:oe,collapseHeaderPaddingSM:Ne,collapseHeaderPaddingLG:At,collapsePanelBorderRadius:Ge,lineWidth:je,lineType:Pt,colorBorder:Et,colorText:ht,colorTextHeading:Kt,colorTextDisabled:vn,fontSize:kt,fontSizeLG:Ut,lineHeight:yn,marginSM:Bt,paddingSM:Ke,paddingLG:gt,paddingXS:Vt,motionDurationSlow:Nt,fontSizeIcon:Xt,contentPadding:Mn}=xe,Tn=`${je}px ${Pt} ${Et}`;return{[fe]:Object.assign(Object.assign({},(0,st.Wf)(xe)),{backgroundColor:me,border:Tn,borderBottom:0,borderRadius:`${Ge}px`,"&-rtl":{direction:"rtl"},[`& > ${fe}-item`]:{borderBottom:Tn,"&:last-child":{[`
|
|
|
&,
|
|
|
& > ${fe}-header`]:{borderRadius:`0 0 ${Ge}px ${Ge}px`}},[`> ${fe}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:oe,color:Kt,lineHeight:yn,cursor:"pointer",transition:`all ${Nt}, visibility 0s`,[`> ${fe}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${fe}-expand-icon`]:{height:kt*yn,display:"flex",alignItems:"center",paddingInlineEnd:Bt},[`${fe}-arrow`]:Object.assign(Object.assign({},(0,st.Ro)()),{fontSize:Xt,svg:{transition:`transform ${Nt}`}}),[`${fe}-header-text`]:{marginInlineEnd:"auto"}},[`${fe}-header-collapsible-only`]:{cursor:"default",[`${fe}-header-text`]:{flex:"none",cursor:"pointer"}},[`${fe}-icon-collapsible-only`]:{cursor:"default",[`${fe}-expand-icon`]:{cursor:"pointer"}}},[`${fe}-content`]:{color:ht,backgroundColor:ue,borderTop:Tn,[`& > ${fe}-content-box`]:{padding:Mn},"&-hidden":{display:"none"}},"&-small":{[`> ${fe}-item`]:{[`> ${fe}-header`]:{padding:Ne,paddingInlineStart:Vt,[`> ${fe}-expand-icon`]:{marginInlineStart:Ke-Vt}},[`> ${fe}-content > ${fe}-content-box`]:{padding:Ke}}},"&-large":{[`> ${fe}-item`]:{fontSize:Ut,[`> ${fe}-header`]:{padding:At,paddingInlineStart:he,[`> ${fe}-expand-icon`]:{height:Ut*yn,marginInlineStart:gt-he}},[`> ${fe}-content > ${fe}-content-box`]:{padding:gt}}},[`${fe}-item:last-child`]:{[`> ${fe}-content`]:{borderRadius:`0 0 ${Ge}px ${Ge}px`}},[`& ${fe}-item-disabled > ${fe}-header`]:{"\n &,\n & > .arrow\n ":{color:vn,cursor:"not-allowed"}},[`&${fe}-icon-position-end`]:{[`& > ${fe}-item`]:{[`> ${fe}-header`]:{[`${fe}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:Bt}}}}})}},Zt=xe=>{const{componentCls:fe}=xe,ue=`> ${fe}-item > ${fe}-header ${fe}-arrow svg`;return{[`${fe}-rtl`]:{[ue]:{transform:"rotate(180deg)"}}}},gn=xe=>{const{componentCls:fe,headerBg:ue,paddingXXS:he,colorBorder:me}=xe;return{[`${fe}-borderless`]:{backgroundColor:ue,border:0,[`> ${fe}-item`]:{borderBottom:`1px solid ${me}`},[`
|
|
|
> ${fe}-item:last-child,
|
|
|
> ${fe}-item:last-child ${fe}-header
|
|
|
`]:{borderRadius:0},[`> ${fe}-item:last-child`]:{borderBottom:0},[`> ${fe}-item > ${fe}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${fe}-item > ${fe}-content > ${fe}-content-box`]:{paddingTop:he}}}},$t=xe=>{const{componentCls:fe,paddingSM:ue}=xe;return{[`${fe}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${fe}-item`]:{borderBottom:0,[`> ${fe}-content`]:{backgroundColor:"transparent",border:0,[`> ${fe}-content-box`]:{paddingBlock:ue}}}}}};var Wt=(0,Tt.Z)("Collapse",xe=>{const fe=(0,ct.TS)(xe,{collapseHeaderPaddingSM:`${xe.paddingXS}px ${xe.paddingSM}px`,collapseHeaderPaddingLG:`${xe.padding}px ${xe.paddingLG}px`,collapsePanelBorderRadius:xe.borderRadiusLG});return[Ct(fe),gn(fe),$t(fe),Zt(fe),(0,Ht.Z)(fe)]},xe=>({headerPadding:`${xe.paddingSM}px ${xe.padding}px`,headerBg:xe.colorFillAlter,contentPadding:`${xe.padding}px 16px`,contentBg:xe.colorBgContainer})),dn=Object.assign(Pe.forwardRef((xe,fe)=>{const{getPrefixCls:ue,direction:he,collapse:me}=Pe.useContext(Mt.E_),{prefixCls:oe,className:Ne,rootClassName:At,style:Ge,bordered:je=!0,ghost:Pt,size:Et,expandIconPosition:ht="start",children:Kt,expandIcon:vn}=xe,kt=(0,at.Z)(Tn=>{var Rn;return(Rn=Et!=null?Et:Tn)!==null&&Rn!==void 0?Rn:"middle"}),Ut=ue("collapse",oe),yn=ue(),[Bt,Ke]=Wt(Ut),gt=Pe.useMemo(()=>ht==="left"?"start":ht==="right"?"end":ht,[ht]),Vt=function(){let Tn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Rn=vn?vn(Tn):Pe.createElement(E.Z,{rotate:Tn.isActive?90:void 0});return(0,wt.Tm)(Rn,()=>({className:Ee()(Rn.props.className,`${Ut}-arrow`)}))},Nt=Ee()(`${Ut}-icon-position-${gt}`,{[`${Ut}-borderless`]:!je,[`${Ut}-rtl`]:he==="rtl",[`${Ut}-ghost`]:!!Pt,[`${Ut}-${kt}`]:kt!=="middle"},me==null?void 0:me.className,Ne,At,Ke),Xt=Object.assign(Object.assign({},(0,nt.Z)(yn)),{motionAppear:!1,leavedClassName:`${Ut}-content-hidden`}),Mn=Pe.useMemo(()=>Kt?(0,Fe.Z)(Kt).map((Tn,Rn)=>{var ur,vr;if(!((ur=Tn.props)===null||ur===void 0)&&ur.disabled){const dr=(vr=Tn.key)!==null&&vr!==void 0?vr:String(Rn),{disabled:mn,collapsible:zn}=Tn.props,jn=Object.assign(Object.assign({},(0,Ot.Z)(Tn.props,["disabled"])),{key:dr,collapsible:zn!=null?zn:mn?"disabled":void 0});return(0,wt.Tm)(Tn,jn)}return Tn}):null,[Kt]);return Bt(Pe.createElement(xt,Object.assign({ref:fe,openMotion:Xt},(0,Ot.Z)(xe,["rootClassName"]),{expandIcon:Vt,prefixCls:Ut,className:Nt,style:Object.assign(Object.assign({},me==null?void 0:me.style),Ge)}),Mn))}),{Panel:Me}),ln=dn},93891:function(An,tn,ne){"use strict";var E=ne(59301),ye=ne(36355),Ee=ne(64165);const Ye=Ce=>{const{componentName:Se}=Ce,{getPrefixCls:pe}=(0,E.useContext)(ye.E_),be=pe("empty");switch(Se){case"Table":case"List":return E.createElement(Ee.Z,{image:Ee.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return E.createElement(Ee.Z,{image:Ee.Z.PRESENTED_IMAGE_SIMPLE,className:`${be}-small`});default:return E.createElement(Ee.Z,null)}};tn.Z=Ye},28103:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Fe}});var E=ne(92310),ye=ne.n(E),Ee=ne(59301),Ye=ne(36355),Ce=ne(17313),Se=ne(83116),pe=ne(37613);const be=Ie=>{const{componentCls:tt,sizePaddingEdgeHorizontal:ze,colorSplit:We,lineWidth:lt,textPaddingInline:Xe,orientationMargin:Dt,verticalMarginInline:dt}=Ie;return{[tt]:Object.assign(Object.assign({},(0,Ce.Wf)(Ie)),{borderBlockStart:`${lt}px solid ${We}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:dt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${lt}px solid ${We}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ie.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${tt}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ie.dividerHorizontalWithTextGutterMargin}px 0`,color:Ie.colorTextHeading,fontWeight:500,fontSize:Ie.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${We}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${lt}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${tt}-with-text-left`]:{"&::before":{width:`${Dt*100}%`},"&::after":{width:`${100-Dt*100}%`}},[`&-horizontal${tt}-with-text-right`]:{"&::before":{width:`${100-Dt*100}%`},"&::after":{width:`${Dt*100}%`}},[`${tt}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Xe},"&-dashed":{background:"none",borderColor:We,borderStyle:"dashed",borderWidth:`${lt}px 0 0`},[`&-horizontal${tt}-with-text${tt}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${tt}-dashed`]:{borderInlineStartWidth:lt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${tt}-with-text`]:{color:Ie.colorText,fontWeight:"normal",fontSize:Ie.fontSize},[`&-horizontal${tt}-with-text-left${tt}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${tt}-inner-text`]:{paddingInlineStart:ze}},[`&-horizontal${tt}-with-text-right${tt}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${tt}-inner-text`]:{paddingInlineEnd:ze}}})}};var De=(0,Se.Z)("Divider",Ie=>{const tt=(0,pe.TS)(Ie,{dividerHorizontalWithTextGutterMargin:Ie.margin,dividerHorizontalGutterMargin:Ie.marginLG,sizePaddingEdgeHorizontal:0});return[be(tt)]},Ie=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ie.marginXS})),Pe=function(Ie,tt){var ze={};for(var We in Ie)Object.prototype.hasOwnProperty.call(Ie,We)&&tt.indexOf(We)<0&&(ze[We]=Ie[We]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,We=Object.getOwnPropertySymbols(Ie);lt<We.length;lt++)tt.indexOf(We[lt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,We[lt])&&(ze[We[lt]]=Ie[We[lt]]);return ze},Fe=Ie=>{const{getPrefixCls:tt,direction:ze,divider:We}=Ee.useContext(Ye.E_),{prefixCls:lt,type:Xe="horizontal",orientation:Dt="center",orientationMargin:dt,className:Qe,rootClassName:Ze,children:Ae,dashed:Je,plain:Re,style:vt}=Ie,$e=Pe(Ie,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),mt=tt("divider",lt),[Be,xt]=De(mt),Ve=Dt.length>0?`-${Dt}`:Dt,Ot=!!Ae,nt=Dt==="left"&&dt!=null,wt=Dt==="right"&&dt!=null,Mt=ye()(mt,We==null?void 0:We.className,xt,`${mt}-${Xe}`,{[`${mt}-with-text`]:Ot,[`${mt}-with-text${Ve}`]:Ot,[`${mt}-dashed`]:!!Je,[`${mt}-plain`]:!!Re,[`${mt}-rtl`]:ze==="rtl",[`${mt}-no-default-orientation-margin-left`]:nt,[`${mt}-no-default-orientation-margin-right`]:wt},Qe,Ze),at=Ee.useMemo(()=>typeof dt=="number"?dt:/^\d+$/.test(dt)?Number(dt):dt,[dt]),Le=Object.assign(Object.assign({},nt&&{marginLeft:at}),wt&&{marginRight:at});return Be(Ee.createElement("div",Object.assign({className:Mt,style:Object.assign(Object.assign({},We==null?void 0:We.style),vt)},$e,{role:"separator"}),Ae&&Xe!=="vertical"&&Ee.createElement("span",{className:`${mt}-inner-text`,style:Le},Ae)))}},43428:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return on}});var E=ne(92310),ye=ne.n(E),Ee=ne(85899),Ye=ne(72190),Ce=ne(43403),Se=ne(34280),pe=ne(59301),be=pe.createContext(null),De=pe.createContext({}),Pe=be,et=ne(18642),Fe=ne(60499),Ie=ne(77900),tt=ne(10228),ze=ne(26112),We=ne(70425),lt=function(ln){var xe=ln.prefixCls,fe=ln.className,ue=ln.style,he=ln.children,me=ln.containerRef,oe=ln.id,Ne=ln.onMouseEnter,At=ln.onMouseOver,Ge=ln.onMouseLeave,je=ln.onClick,Pt=ln.onKeyDown,Et=ln.onKeyUp,ht={onMouseEnter:Ne,onMouseOver:At,onMouseLeave:Ge,onClick:je,onKeyDown:Pt,onKeyUp:Et},Kt=pe.useContext(De),vn=Kt.panel,kt=(0,We.useComposeRef)(vn,me);return pe.createElement(pe.Fragment,null,pe.createElement("div",(0,Fe.Z)({id:oe,className:ye()("".concat(xe,"-content"),fe),style:(0,Ee.Z)({},ue),"aria-modal":"true",role:"dialog",ref:kt},ht),he))},Xe=lt,Dt=ne(48736);function dt(dn){return typeof dn=="string"&&String(Number(dn))===dn?((0,Dt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(dn)):dn}function Qe(dn){warning(!("wrapperClassName"in dn),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!dn.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ze={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ae(dn,ln){var xe,fe,ue,he,me=dn.prefixCls,oe=dn.open,Ne=dn.placement,At=dn.inline,Ge=dn.push,je=dn.forceRender,Pt=dn.autoFocus,Et=dn.keyboard,ht=dn.rootClassName,Kt=dn.rootStyle,vn=dn.zIndex,kt=dn.className,Ut=dn.id,yn=dn.style,Bt=dn.motion,Ke=dn.width,gt=dn.height,Vt=dn.children,Nt=dn.contentWrapperStyle,Xt=dn.mask,Mn=dn.maskClosable,Tn=dn.maskMotion,Rn=dn.maskClassName,ur=dn.maskStyle,vr=dn.afterOpenChange,dr=dn.onClose,mn=dn.onMouseEnter,zn=dn.onMouseOver,jn=dn.onMouseLeave,Xn=dn.onClick,Sr=dn.onKeyDown,Kr=dn.onKeyUp,ar=pe.useRef(),Zn=pe.useRef(),Wr=pe.useRef();pe.useImperativeHandle(ln,function(){return ar.current});var Gt=function(sn){var Bn=sn.keyCode,Yn=sn.shiftKey;switch(Bn){case tt.Z.TAB:{if(Bn===tt.Z.TAB){if(!Yn&&document.activeElement===Wr.current){var cr;(cr=Zn.current)===null||cr===void 0||cr.focus({preventScroll:!0})}else if(Yn&&document.activeElement===Zn.current){var $n;($n=Wr.current)===null||$n===void 0||$n.focus({preventScroll:!0})}}break}case tt.Z.ESC:{dr&&Et&&(sn.stopPropagation(),dr(sn));break}}};pe.useEffect(function(){if(oe&&Pt){var pn;(pn=ar.current)===null||pn===void 0||pn.focus({preventScroll:!0})}},[oe]);var or=pe.useState(!1),er=(0,Ye.Z)(or,2),Kn=er[0],En=er[1],nr=pe.useContext(Pe),lr;Ge===!1?lr={distance:0}:Ge===!0?lr={}:lr=Ge||{};var xr=(xe=(fe=(ue=lr)===null||ue===void 0?void 0:ue.distance)!==null&&fe!==void 0?fe:nr==null?void 0:nr.pushDistance)!==null&&xe!==void 0?xe:180,jt=pe.useMemo(function(){return{pushDistance:xr,push:function(){En(!0)},pull:function(){En(!1)}}},[xr]);pe.useEffect(function(){if(oe){var pn;nr==null||(pn=nr.push)===null||pn===void 0||pn.call(nr)}else{var sn;nr==null||(sn=nr.pull)===null||sn===void 0||sn.call(nr)}},[oe]),pe.useEffect(function(){return function(){var pn;nr==null||(pn=nr.pull)===null||pn===void 0||pn.call(nr)}},[]);var Ue=Xt&&pe.createElement(Ie.default,(0,Fe.Z)({key:"mask"},Tn,{visible:oe}),function(pn,sn){var Bn=pn.className,Yn=pn.style;return pe.createElement("div",{className:ye()("".concat(me,"-mask"),Bn,Rn),style:(0,Ee.Z)((0,Ee.Z)({},Yn),ur),onClick:Mn&&oe?dr:void 0,ref:sn})}),yt=typeof Bt=="function"?Bt(Ne):Bt,ut={};if(Kn&&xr)switch(Ne){case"top":ut.transform="translateY(".concat(xr,"px)");break;case"bottom":ut.transform="translateY(".concat(-xr,"px)");break;case"left":ut.transform="translateX(".concat(xr,"px)");break;default:ut.transform="translateX(".concat(-xr,"px)");break}Ne==="left"||Ne==="right"?ut.width=dt(Ke):ut.height=dt(gt);var rt={onMouseEnter:mn,onMouseOver:zn,onMouseLeave:jn,onClick:Xn,onKeyDown:Sr,onKeyUp:Kr},_t=pe.createElement(Ie.default,(0,Fe.Z)({key:"panel"},yt,{visible:oe,forceRender:je,onVisibleChanged:function(sn){vr==null||vr(sn)},removeOnLeave:!1,leavedClassName:"".concat(me,"-content-wrapper-hidden")}),function(pn,sn){var Bn=pn.className,Yn=pn.style;return pe.createElement("div",(0,Fe.Z)({className:ye()("".concat(me,"-content-wrapper"),Bn),style:(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},ut),Yn),Nt)},(0,ze.Z)(dn,{data:!0})),pe.createElement(Xe,(0,Fe.Z)({id:Ut,containerRef:sn,prefixCls:me,className:kt,style:yn},rt),Vt))}),Qt=(0,Ee.Z)({},Kt);return vn&&(Qt.zIndex=vn),pe.createElement(Pe.Provider,{value:jt},pe.createElement("div",{className:ye()(me,"".concat(me,"-").concat(Ne),ht,(he={},(0,et.Z)(he,"".concat(me,"-open"),oe),(0,et.Z)(he,"".concat(me,"-inline"),At),he)),style:Qt,tabIndex:-1,ref:ar,onKeyDown:Gt},Ue,pe.createElement("div",{tabIndex:0,ref:Zn,style:Ze,"aria-hidden":"true","data-sentinel":"start"}),_t,pe.createElement("div",{tabIndex:0,ref:Wr,style:Ze,"aria-hidden":"true","data-sentinel":"end"})))}var Je=pe.forwardRef(Ae),Re=Je,vt=function(ln){var xe=ln.open,fe=xe===void 0?!1:xe,ue=ln.prefixCls,he=ue===void 0?"rc-drawer":ue,me=ln.placement,oe=me===void 0?"right":me,Ne=ln.autoFocus,At=Ne===void 0?!0:Ne,Ge=ln.keyboard,je=Ge===void 0?!0:Ge,Pt=ln.width,Et=Pt===void 0?378:Pt,ht=ln.mask,Kt=ht===void 0?!0:ht,vn=ln.maskClosable,kt=vn===void 0?!0:vn,Ut=ln.getContainer,yn=ln.forceRender,Bt=ln.afterOpenChange,Ke=ln.destroyOnClose,gt=ln.onMouseEnter,Vt=ln.onMouseOver,Nt=ln.onMouseLeave,Xt=ln.onClick,Mn=ln.onKeyDown,Tn=ln.onKeyUp,Rn=ln.panelRef,ur=pe.useState(!1),vr=(0,Ye.Z)(ur,2),dr=vr[0],mn=vr[1],zn=pe.useState(!1),jn=(0,Ye.Z)(zn,2),Xn=jn[0],Sr=jn[1];(0,Se.Z)(function(){Sr(!0)},[]);var Kr=Xn?fe:!1,ar=pe.useRef(),Zn=pe.useRef();(0,Se.Z)(function(){Kr&&(Zn.current=document.activeElement)},[Kr]);var Wr=function(En){var nr;if(mn(En),Bt==null||Bt(En),!En&&Zn.current&&!((nr=ar.current)!==null&&nr!==void 0&&nr.contains(Zn.current))){var lr;(lr=Zn.current)===null||lr===void 0||lr.focus({preventScroll:!0})}},Gt=pe.useMemo(function(){return{panel:Rn}},[Rn]);if(!yn&&!dr&&!Kr&&Ke)return null;var or={onMouseEnter:gt,onMouseOver:Vt,onMouseLeave:Nt,onClick:Xt,onKeyDown:Mn,onKeyUp:Tn},er=(0,Ee.Z)((0,Ee.Z)({},ln),{},{open:Kr,prefixCls:he,placement:oe,autoFocus:At,keyboard:je,width:Et,mask:Kt,maskClosable:kt,inline:Ut===!1,afterOpenChange:Wr,ref:ar},or);return pe.createElement(De.Provider,{value:Gt},pe.createElement(Ce.Z,{open:Kr||yn||dr,autoDestroy:!1,getContainer:Ut,autoLock:Kt&&(Kr||dr)},pe.createElement(Re,er)))},$e=vt,mt=$e,Be=ne(62892),xt=ne(36355),Ve=ne(32441),Ot=ne(47729),wt=dn=>{const{prefixCls:ln,title:xe,footer:fe,extra:ue,closeIcon:he,closable:me,onClose:oe,headerStyle:Ne,drawerStyle:At,bodyStyle:Ge,footerStyle:je,children:Pt}=dn,Et=pe.useCallback(Ut=>pe.createElement("button",{type:"button",onClick:oe,"aria-label":"Close",className:`${ln}-close`},Ut),[oe]),[ht,Kt]=(0,Ot.Z)(me,he,Et,void 0,!0),vn=pe.useMemo(()=>!xe&&!ht?null:pe.createElement("div",{style:Ne,className:ye()(`${ln}-header`,{[`${ln}-header-close-only`]:ht&&!xe&&!ue})},pe.createElement("div",{className:`${ln}-header-title`},Kt,xe&&pe.createElement("div",{className:`${ln}-title`},xe)),ue&&pe.createElement("div",{className:`${ln}-extra`},ue)),[ht,Kt,ue,Ne,ln,xe]),kt=pe.useMemo(()=>{if(!fe)return null;const Ut=`${ln}-footer`;return pe.createElement("div",{className:Ut,style:je},fe)},[fe,je,ln]);return pe.createElement("div",{className:`${ln}-wrapper-body`,style:At},vn,pe.createElement("div",{className:`${ln}-body`,style:Ge},Pt),kt)},Mt=ne(33234),at=ne(83116),Le=ne(37613),st=dn=>{const{componentCls:ln,motionDurationSlow:xe}=dn,fe={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${xe}`}}};return{[ln]:{[`${ln}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${xe}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${ln}-panel-motion`]:{"&-left":[fe,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[fe,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[fe,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[fe,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Ht=dn=>{const{componentCls:ln,zIndexPopup:xe,colorBgMask:fe,colorBgElevated:ue,motionDurationSlow:he,motionDurationMid:me,padding:oe,paddingLG:Ne,fontSizeLG:At,lineHeightLG:Ge,lineWidth:je,lineType:Pt,colorSplit:Et,marginSM:ht,colorIcon:Kt,colorIconHover:vn,colorText:kt,fontWeightStrong:Ut,footerPaddingBlock:yn,footerPaddingInline:Bt}=dn,Ke=`${ln}-content-wrapper`;return{[ln]:{position:"fixed",inset:0,zIndex:xe,pointerEvents:"none","&-pure":{position:"relative",background:ue,[`&${ln}-left`]:{boxShadow:dn.boxShadowDrawerLeft},[`&${ln}-right`]:{boxShadow:dn.boxShadowDrawerRight},[`&${ln}-top`]:{boxShadow:dn.boxShadowDrawerUp},[`&${ln}-bottom`]:{boxShadow:dn.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ln}-mask`]:{position:"absolute",inset:0,zIndex:xe,background:fe,pointerEvents:"auto"},[Ke]:{position:"absolute",zIndex:xe,maxWidth:"100vw",transition:`all ${he}`,"&-hidden":{display:"none"}},[`&-left > ${Ke}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:dn.boxShadowDrawerLeft},[`&-right > ${Ke}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:dn.boxShadowDrawerRight},[`&-top > ${Ke}`]:{top:0,insetInline:0,boxShadow:dn.boxShadowDrawerUp},[`&-bottom > ${Ke}`]:{bottom:0,insetInline:0,boxShadow:dn.boxShadowDrawerDown},[`${ln}-content`]:{width:"100%",height:"100%",overflow:"auto",background:ue,pointerEvents:"auto"},[`${ln}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${ln}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${oe}px ${Ne}px`,fontSize:At,lineHeight:Ge,borderBottom:`${je}px ${Pt} ${Et}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ln}-extra`]:{flex:"none"},[`${ln}-close`]:{display:"inline-block",marginInlineEnd:ht,color:Kt,fontWeight:Ut,fontSize:At,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${me}`,textRendering:"auto","&:focus, &:hover":{color:vn,textDecoration:"none"}},[`${ln}-title`]:{flex:1,margin:0,color:kt,fontWeight:dn.fontWeightStrong,fontSize:At,lineHeight:Ge},[`${ln}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ne,overflow:"auto"},[`${ln}-footer`]:{flexShrink:0,padding:`${yn}px ${Bt}px`,borderTop:`${je}px ${Pt} ${Et}`},"&-rtl":{direction:"rtl"}}}};var Tt=(0,at.Z)("Drawer",dn=>{const ln=(0,Le.TS)(dn,{});return[Ht(ln),st(ln)]},dn=>({zIndexPopup:dn.zIndexPopupBase,footerPaddingBlock:dn.paddingXS,footerPaddingInline:dn.padding})),ct=ne(11575),Ct=function(dn,ln){var xe={};for(var fe in dn)Object.prototype.hasOwnProperty.call(dn,fe)&&ln.indexOf(fe)<0&&(xe[fe]=dn[fe]);if(dn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,fe=Object.getOwnPropertySymbols(dn);ue<fe.length;ue++)ln.indexOf(fe[ue])<0&&Object.prototype.propertyIsEnumerable.call(dn,fe[ue])&&(xe[fe[ue]]=dn[fe[ue]]);return xe};const Zt=null,gn={distance:180},$t=dn=>{var ln;const{rootClassName:xe,width:fe,height:ue,size:he="default",mask:me=!0,push:oe=gn,open:Ne,afterOpenChange:At,onClose:Ge,prefixCls:je,getContainer:Pt,style:Et,className:ht,visible:Kt,afterVisibleChange:vn}=dn,kt=Ct(dn,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Ut,getPrefixCls:yn,direction:Bt,drawer:Ke}=pe.useContext(xt.E_),gt=yn("drawer",je),[Vt,Nt]=Tt(gt),Xt=Pt===void 0&&Ut?()=>Ut(document.body):Pt,Mn=ye()({"no-mask":!me,[`${gt}-rtl`]:Bt==="rtl"},xe,Nt),Tn=pe.useMemo(()=>fe!=null?fe:he==="large"?736:378,[fe,he]),Rn=pe.useMemo(()=>ue!=null?ue:he==="large"?736:378,[ue,he]),ur={motionName:(0,Be.m)(gt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},vr=mn=>({motionName:(0,Be.m)(gt,`panel-motion-${mn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),dr=(0,ct.H)();return Vt(pe.createElement(Mt.BR,null,pe.createElement(Ve.Ux,{status:!0,override:!0},pe.createElement(mt,Object.assign({prefixCls:gt,onClose:Ge,maskMotion:ur,motion:vr},kt,{open:Ne!=null?Ne:Kt,mask:me,push:oe,width:Tn,height:Rn,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),Et),className:ye()(Ke==null?void 0:Ke.className,ht),rootClassName:Mn,getContainer:Xt,afterOpenChange:At!=null?At:vn,panelRef:dr}),pe.createElement(wt,Object.assign({prefixCls:gt},kt,{onClose:Ge}))))))},Wt=dn=>{const{prefixCls:ln,style:xe,className:fe,placement:ue="right"}=dn,he=Ct(dn,["prefixCls","style","className","placement"]),{getPrefixCls:me}=pe.useContext(xt.E_),oe=me("drawer",ln),[Ne,At]=Tt(oe),Ge=ye()(oe,`${oe}-pure`,`${oe}-${ue}`,At,fe);return Ne(pe.createElement("div",{className:Ge,style:xe},pe.createElement(wt,Object.assign({prefixCls:oe},he))))};$t._InternalPanelDoNotUseOrYouWillBeFired=Wt;var on=$t},91857:function(An,tn,ne){"use strict";var E=ne(59301),ye=ne(38819),Ee=ne(92310),Ye=ne.n(Ee),Ce=ne(31561),Se=ne(70425),pe=ne(18929),be=ne(2738),De=ne(79676),Pe=ne(53487),et=ne(92343),Fe=ne(36355),Ie=ne(20834),tt=ne(40875),ze=ne(70305),We=ne(47211);const lt=null,Xe=Ze=>{const{menu:Ae,arrow:Je,prefixCls:Re,children:vt,trigger:$e,disabled:mt,dropdownRender:Be,getPopupContainer:xt,overlayClassName:Ve,rootClassName:Ot,open:nt,onOpenChange:wt,visible:Mt,onVisibleChange:at,mouseEnterDelay:Le=.15,mouseLeaveDelay:Me=.1,autoAdjustOverflow:st=!0,placement:Ht="",overlay:Tt,transitionName:ct}=Ze,{getPopupContainer:Ct,getPrefixCls:Zt,direction:gn}=E.useContext(Fe.E_),$t=E.useMemo(()=>{const ht=Zt();return ct!==void 0?ct:Ht.includes("top")?`${ht}-slide-down`:`${ht}-slide-up`},[Zt,Ht,ct]),Wt=E.useMemo(()=>Ht?Ht.includes("Center")?Ht.slice(0,Ht.indexOf("Center")):Ht:gn==="rtl"?"bottomRight":"bottomLeft",[Ht,gn]),on=Zt("dropdown",Re),[dn,ln]=(0,We.Z)(on),[,xe]=(0,ze.Z)(),fe=E.Children.only(vt),ue=(0,et.Tm)(fe,{className:Ye()(`${on}-trigger`,{[`${on}-rtl`]:gn==="rtl"},fe.props.className),disabled:mt}),he=mt?[]:$e;let me;he&&he.includes("contextMenu")&&(me=!0);const[oe,Ne]=(0,pe.Z)(!1,{value:nt!=null?nt:Mt}),At=(0,Se.useEvent)(ht=>{wt==null||wt(ht),at==null||at(ht),Ne(ht)}),Ge=Ye()(Ve,Ot,ln,{[`${on}-rtl`]:gn==="rtl"}),je=(0,De.Z)({arrowPointAtCenter:typeof Je=="object"&&Je.pointAtCenter,autoAdjustOverflow:st,offset:xe.marginXXS,arrowWidth:Je?xe.sizePopupArrow:0,borderRadius:xe.borderRadius}),Pt=E.useCallback(()=>{Ne(!1)},[]),Et=()=>{let ht;return Ae!=null&&Ae.items?ht=E.createElement(Ie.default,Object.assign({},Ae)):typeof Tt=="function"?ht=Tt():ht=Tt,Be&&(ht=Be(ht)),ht=E.Children.only(typeof ht=="string"?E.createElement("span",null,ht):ht),E.createElement(tt.J,{prefixCls:`${on}-menu`,expandIcon:E.createElement("span",{className:`${on}-menu-submenu-arrow`},E.createElement(ye.Z,{className:`${on}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Pt,validator:Kt=>{let{mode:vn}=Kt}},ht)};return dn(E.createElement(Ce.Z,Object.assign({alignPoint:me},(0,be.Z)(Ze,["rootClassName"]),{mouseEnterDelay:Le,mouseLeaveDelay:Me,visible:oe,builtinPlacements:je,arrow:!!Je,overlayClassName:Ge,prefixCls:on,getPopupContainer:xt||Ct,transitionName:$t,trigger:he,overlay:Et,placement:Wt,onVisibleChange:At}),ue))};function Dt(Ze){return Object.assign(Object.assign({},Ze),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const dt=(0,Pe.Z)(Xe,"dropdown",Ze=>Ze,Dt),Qe=Ze=>E.createElement(dt,Object.assign({},Ze),E.createElement("span",null));Xe._InternalPanelDoNotUseOrYouWillBeFired=Qe,tn.Z=Xe},38854:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return ze}});var E=ne(91857),ye=ne(92310),Ee=ne.n(ye),Ye=ne(59301),Ce=ne(18785),Se=ne(3113),pe=ne(36355),be=ne(81327),De=ne(33234),Pe=ne(47211),et=function(We,lt){var Xe={};for(var Dt in We)Object.prototype.hasOwnProperty.call(We,Dt)&<.indexOf(Dt)<0&&(Xe[Dt]=We[Dt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Dt=Object.getOwnPropertySymbols(We);dt<Dt.length;dt++)lt.indexOf(Dt[dt])<0&&Object.prototype.propertyIsEnumerable.call(We,Dt[dt])&&(Xe[Dt[dt]]=We[Dt[dt]]);return Xe};const Fe=We=>{const{getPopupContainer:lt,getPrefixCls:Xe,direction:Dt}=Ye.useContext(pe.E_),{prefixCls:dt,type:Qe="default",danger:Ze,disabled:Ae,loading:Je,onClick:Re,htmlType:vt,children:$e,className:mt,menu:Be,arrow:xt,autoFocus:Ve,overlay:Ot,trigger:nt,align:wt,open:Mt,onOpenChange:at,placement:Le,getPopupContainer:Me,href:st,icon:Ht=Ye.createElement(Ce.Z,null),title:Tt,buttonsRender:ct=Et=>Et,mouseEnterDelay:Ct,mouseLeaveDelay:Zt,overlayClassName:gn,overlayStyle:$t,destroyPopupOnHide:Wt,dropdownRender:on}=We,dn=et(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"]),ln=Xe("dropdown",dt),xe=`${ln}-button`,[fe,ue]=(0,Pe.Z)(ln),he={menu:Be,arrow:xt,autoFocus:Ve,align:wt,disabled:Ae,trigger:Ae?[]:nt,onOpenChange:at,getPopupContainer:Me||lt,mouseEnterDelay:Ct,mouseLeaveDelay:Zt,overlayClassName:gn,overlayStyle:$t,destroyPopupOnHide:Wt,dropdownRender:on},{compactSize:me,compactItemClassnames:oe}=(0,De.ri)(ln,Dt),Ne=Ee()(xe,oe,mt,ue);"overlay"in We&&(he.overlay=Ot),"open"in We&&(he.open=Mt),"placement"in We?he.placement=Le:he.placement=Dt==="rtl"?"bottomLeft":"bottomRight";const At=Ye.createElement(Se.ZP,{type:Qe,danger:Ze,disabled:Ae,loading:Je,onClick:Re,htmlType:vt,href:st,title:Tt},$e),Ge=Ye.createElement(Se.ZP,{type:Qe,danger:Ze,icon:Ht}),[je,Pt]=ct([At,Ge]);return fe(Ye.createElement(be.Z.Compact,Object.assign({className:Ne,size:me,block:!0},dn),je,Ye.createElement(E.Z,Object.assign({},he),Pt)))};Fe.__ANT_BUTTON=!0;var Ie=Fe;const tt=E.Z;tt.Button=Ie;var ze=tt},47211:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return et}});var E=ne(17313),ye=ne(13826),Ee=ne(92899),Ye=ne(29878),Ce=ne(19447),Se=ne(83116),pe=ne(37613),De=Fe=>{const{componentCls:Ie,menuCls:tt,colorError:ze,colorTextLightSolid:We}=Fe,lt=`${tt}-item`;return{[`${Ie}, ${Ie}-menu-submenu`]:{[`${tt} ${lt}`]:{[`&${lt}-danger:not(${lt}-disabled)`]:{color:ze,"&:hover":{color:We,backgroundColor:ze}}}}}};const Pe=Fe=>{const{componentCls:Ie,menuCls:tt,zIndexPopup:ze,dropdownArrowDistance:We,sizePopupArrow:lt,antCls:Xe,iconCls:Dt,motionDurationMid:dt,dropdownPaddingVertical:Qe,fontSize:Ze,dropdownEdgeChildPadding:Ae,colorTextDisabled:Je,fontSizeIcon:Re,controlPaddingHorizontal:vt,colorBgElevated:$e}=Fe;return[{[Ie]:Object.assign(Object.assign({},(0,E.Wf)(Fe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ze,display:"block","&::before":{position:"absolute",insetBlock:-We+lt/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Xe}-btn`]:{[`& > ${Dt}-down, & > ${Xe}-btn-icon > ${Dt}-down`]:{fontSize:Re}},[`${Ie}-wrap`]:{position:"relative",[`${Xe}-btn > ${Dt}-down`]:{fontSize:Re},[`${Dt}-down::before`]:{transition:`transform ${dt}`}},[`${Ie}-wrap-open`]:{[`${Dt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Xe}-slide-down-enter${Xe}-slide-down-enter-active${Ie}-placement-bottomLeft,
|
|
|
&${Xe}-slide-down-appear${Xe}-slide-down-appear-active${Ie}-placement-bottomLeft,
|
|
|
&${Xe}-slide-down-enter${Xe}-slide-down-enter-active${Ie}-placement-bottom,
|
|
|
&${Xe}-slide-down-appear${Xe}-slide-down-appear-active${Ie}-placement-bottom,
|
|
|
&${Xe}-slide-down-enter${Xe}-slide-down-enter-active${Ie}-placement-bottomRight,
|
|
|
&${Xe}-slide-down-appear${Xe}-slide-down-appear-active${Ie}-placement-bottomRight`]:{animationName:ye.fJ},[`&${Xe}-slide-up-enter${Xe}-slide-up-enter-active${Ie}-placement-topLeft,
|
|
|
&${Xe}-slide-up-appear${Xe}-slide-up-appear-active${Ie}-placement-topLeft,
|
|
|
&${Xe}-slide-up-enter${Xe}-slide-up-enter-active${Ie}-placement-top,
|
|
|
&${Xe}-slide-up-appear${Xe}-slide-up-appear-active${Ie}-placement-top,
|
|
|
&${Xe}-slide-up-enter${Xe}-slide-up-enter-active${Ie}-placement-topRight,
|
|
|
&${Xe}-slide-up-appear${Xe}-slide-up-appear-active${Ie}-placement-topRight`]:{animationName:ye.Qt},[`&${Xe}-slide-down-leave${Xe}-slide-down-leave-active${Ie}-placement-bottomLeft,
|
|
|
&${Xe}-slide-down-leave${Xe}-slide-down-leave-active${Ie}-placement-bottom,
|
|
|
&${Xe}-slide-down-leave${Xe}-slide-down-leave-active${Ie}-placement-bottomRight`]:{animationName:ye.Uw},[`&${Xe}-slide-up-leave${Xe}-slide-up-leave-active${Ie}-placement-topLeft,
|
|
|
&${Xe}-slide-up-leave${Xe}-slide-up-leave-active${Ie}-placement-top,
|
|
|
&${Xe}-slide-up-leave${Xe}-slide-up-leave-active${Ie}-placement-topRight`]:{animationName:ye.ly}})},(0,Ce.ZP)(Fe,{colorBg:$e,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ie} ${tt}`]:{position:"relative",margin:0},[`${tt}-submenu-popup`]:{position:"absolute",zIndex:ze,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ie}, ${Ie}-menu-submenu`]:{[tt]:Object.assign(Object.assign({padding:Ae,listStyleType:"none",backgroundColor:$e,backgroundClip:"padding-box",borderRadius:Fe.borderRadiusLG,outline:"none",boxShadow:Fe.boxShadowSecondary},(0,E.Qy)(Fe)),{[`${tt}-item-group-title`]:{padding:`${Qe}px ${vt}px`,color:Fe.colorTextDescription,transition:`all ${dt}`},[`${tt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${tt}-item-icon`]:{minWidth:Ze,marginInlineEnd:Fe.marginXS,fontSize:Fe.fontSizeSM},[`${tt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${dt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${tt}-item, ${tt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Qe}px ${vt}px`,color:Fe.colorText,fontWeight:"normal",fontSize:Ze,lineHeight:Fe.lineHeight,cursor:"pointer",transition:`all ${dt}`,borderRadius:Fe.borderRadiusSM,"&:hover, &-active":{backgroundColor:Fe.controlItemBgHover}},(0,E.Qy)(Fe)),{"&-selected":{color:Fe.colorPrimary,backgroundColor:Fe.controlItemBgActive,"&:hover, &-active":{backgroundColor:Fe.controlItemBgActiveHover}},"&-disabled":{color:Je,cursor:"not-allowed","&:hover":{color:Je,backgroundColor:$e,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Fe.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Fe.colorSplit},[`${Ie}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Fe.paddingXS,[`${Ie}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Fe.colorTextDescription,fontSize:Re,fontStyle:"normal"}}}),[`${tt}-item-group-list`]:{margin:`0 ${Fe.marginXS}px`,padding:0,listStyle:"none"},[`${tt}-submenu-title`]:{paddingInlineEnd:vt+Fe.fontSizeSM},[`${tt}-submenu-vertical`]:{position:"relative"},[`${tt}-submenu${tt}-submenu-disabled ${Ie}-menu-submenu-title`]:{[`&, ${Ie}-menu-submenu-arrow-icon`]:{color:Je,backgroundColor:$e,cursor:"not-allowed"}},[`${tt}-submenu-selected ${Ie}-menu-submenu-title`]:{color:Fe.colorPrimary}})}},[(0,ye.oN)(Fe,"slide-up"),(0,ye.oN)(Fe,"slide-down"),(0,Ee.Fm)(Fe,"move-up"),(0,Ee.Fm)(Fe,"move-down"),(0,Ye._y)(Fe,"zoom-big")]]};var et=(0,Se.Z)("Dropdown",(Fe,Ie)=>{let{rootPrefixCls:tt}=Ie;const{marginXXS:ze,sizePopupArrow:We,controlHeight:lt,fontSize:Xe,lineHeight:Dt,paddingXXS:dt,componentCls:Qe,borderRadiusLG:Ze}=Fe,Ae=(lt-Xe*Dt)/2,{dropdownArrowOffset:Je}=(0,Ce.fS)({contentRadius:Ze}),Re=(0,pe.TS)(Fe,{menuCls:`${Qe}-menu`,rootPrefixCls:tt,dropdownArrowDistance:We/2+ze,dropdownArrowOffset:Je,dropdownPaddingVertical:Ae,dropdownEdgeChildPadding:dt});return[Pe(Re),De(Re)]},Fe=>({zIndexPopup:Fe.zIndexPopupBase+50}))},64165:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return dt}});var E=ne(92310),ye=ne.n(E),Ee=ne(59301),Ye=ne(36355),Ce=ne(9763),Se=ne(64993),pe=ne(70305),De=()=>{const[,Qe]=(0,pe.Z)(),Ae=new Se.C(Qe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Ee.createElement("svg",{style:Ae,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Ee.createElement("g",{fill:"none",fillRule:"evenodd"},Ee.createElement("g",{transform:"translate(24 31.67)"},Ee.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Ee.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"}),Ee.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)"}),Ee.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"}),Ee.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"})),Ee.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"}),Ee.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Ee.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Ee.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},et=()=>{const[,Qe]=(0,pe.Z)(),{colorFill:Ze,colorFillTertiary:Ae,colorFillQuaternary:Je,colorBgContainer:Re}=Qe,{borderColor:vt,shadowColor:$e,contentColor:mt}=(0,Ee.useMemo)(()=>({borderColor:new Se.C(Ze).onBackground(Re).toHexShortString(),shadowColor:new Se.C(Ae).onBackground(Re).toHexShortString(),contentColor:new Se.C(Je).onBackground(Re).toHexShortString()}),[Ze,Ae,Je,Re]);return Ee.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Ee.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Ee.createElement("ellipse",{fill:$e,cx:"32",cy:"33",rx:"32",ry:"7"}),Ee.createElement("g",{fillRule:"nonzero",stroke:vt},Ee.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"}),Ee.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:mt}))))},Fe=ne(83116),Ie=ne(37613);const tt=Qe=>{const{componentCls:Ze,margin:Ae,marginXS:Je,marginXL:Re,fontSize:vt,lineHeight:$e}=Qe;return{[Ze]:{marginInline:Je,fontSize:vt,lineHeight:$e,textAlign:"center",[`${Ze}-image`]:{height:Qe.emptyImgHeight,marginBottom:Je,opacity:Qe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ze}-description`]:{color:Qe.colorText},[`${Ze}-footer`]:{marginTop:Ae},"&-normal":{marginBlock:Re,color:Qe.colorTextDisabled,[`${Ze}-description`]:{color:Qe.colorTextDisabled},[`${Ze}-image`]:{height:Qe.emptyImgHeightMD}},"&-small":{marginBlock:Je,color:Qe.colorTextDisabled,[`${Ze}-image`]:{height:Qe.emptyImgHeightSM}}}}};var ze=(0,Fe.Z)("Empty",Qe=>{const{componentCls:Ze,controlHeightLG:Ae}=Qe,Je=(0,Ie.TS)(Qe,{emptyImgCls:`${Ze}-img`,emptyImgHeight:Ae*2.5,emptyImgHeightMD:Ae,emptyImgHeightSM:Ae*.875});return[tt(Je)]}),We=function(Qe,Ze){var Ae={};for(var Je in Qe)Object.prototype.hasOwnProperty.call(Qe,Je)&&Ze.indexOf(Je)<0&&(Ae[Je]=Qe[Je]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Je=Object.getOwnPropertySymbols(Qe);Re<Je.length;Re++)Ze.indexOf(Je[Re])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Je[Re])&&(Ae[Je[Re]]=Qe[Je[Re]]);return Ae};const lt=Ee.createElement(De,null),Xe=Ee.createElement(et,null),Dt=Qe=>{var{className:Ze,rootClassName:Ae,prefixCls:Je,image:Re=lt,description:vt,children:$e,imageStyle:mt,style:Be}=Qe,xt=We(Qe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Ve,direction:Ot,empty:nt}=Ee.useContext(Ye.E_),wt=Ve("empty",Je),[Mt,at]=ze(wt),[Le]=(0,Ce.Z)("Empty"),Me=typeof vt!="undefined"?vt:Le==null?void 0:Le.description,st=typeof Me=="string"?Me:"empty";let Ht=null;return typeof Re=="string"?Ht=Ee.createElement("img",{alt:st,src:Re}):Ht=Re,Mt(Ee.createElement("div",Object.assign({className:ye()(at,wt,nt==null?void 0:nt.className,{[`${wt}-normal`]:Re===Xe,[`${wt}-rtl`]:Ot==="rtl"},Ze,Ae),style:Object.assign(Object.assign({},nt==null?void 0:nt.style),Be)},xt),Ee.createElement("div",{className:`${wt}-image`,style:mt},Ht),Me&&Ee.createElement("div",{className:`${wt}-description`},Me),$e&&Ee.createElement("div",{className:`${wt}-footer`},$e)))};Dt.PRESENTED_IMAGE_DEFAULT=lt,Dt.PRESENTED_IMAGE_SIMPLE=Xe;var dt=Dt},78241:function(An,tn,ne){"use strict";ne.d(tn,{default:function(){return xr}});var E=ne(77654),ye=ne(92310),Ee=ne.n(ye),Ye=ne(77900),Ce=ne(59301),Se=ne(62892),pe=ne(32441);function be(jt){const[Ue,yt]=Ce.useState(jt);return Ce.useEffect(()=>{const ut=setTimeout(()=>{yt(jt)},jt.length?0:10);return()=>{clearTimeout(ut)}},[jt]),Ue}var De=ne(17313),Pe=ne(29878),et=ne(8378),Fe=ne(37613),Ie=ne(83116),ze=jt=>{const{componentCls:Ue}=jt,yt=`${Ue}-show-help`,ut=`${Ue}-show-help-item`;return{[yt]:{transition:`opacity ${jt.motionDurationSlow} ${jt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[ut]:{overflow:"hidden",transition:`height ${jt.motionDurationSlow} ${jt.motionEaseInOut},
|
|
|
opacity ${jt.motionDurationSlow} ${jt.motionEaseInOut},
|
|
|
transform ${jt.motionDurationSlow} ${jt.motionEaseInOut} !important`,[`&${ut}-appear, &${ut}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${ut}-leave-active`]:{transform:"translateY(-5px)"}}}}};const We=jt=>({legend:{display:"block",width:"100%",marginBottom:jt.marginLG,padding:0,color:jt.colorTextDescription,fontSize:jt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${jt.lineWidth}px ${jt.lineType} ${jt.colorBorder}`},label:{fontSize:jt.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 ${jt.controlOutlineWidth}px ${jt.controlOutline}`},output:{display:"block",paddingTop:15,color:jt.colorText,fontSize:jt.fontSize,lineHeight:jt.lineHeight}}),lt=(jt,Ue)=>{const{formItemCls:yt}=jt;return{[yt]:{[`${yt}-label > label`]:{height:Ue},[`${yt}-control-input`]:{minHeight:Ue}}}},Xe=jt=>{const{componentCls:Ue}=jt;return{[jt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,De.Wf)(jt)),We(jt)),{[`${Ue}-text`]:{display:"inline-block",paddingInlineEnd:jt.paddingSM},"&-small":Object.assign({},lt(jt,jt.controlHeightSM)),"&-large":Object.assign({},lt(jt,jt.controlHeightLG))})}},Dt=jt=>{const{formItemCls:Ue,iconCls:yt,componentCls:ut,rootPrefixCls:rt,labelRequiredMarkColor:_t,labelColor:Qt,labelFontSize:pn,labelHeight:sn,labelColonMarginInlineStart:Bn,labelColonMarginInlineEnd:Yn,itemMarginBottom:cr}=jt;return{[Ue]:Object.assign(Object.assign({},(0,De.Wf)(jt)),{marginBottom:cr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${rt}-row`]:{display:"none"},"&-has-warning":{[`${Ue}-split`]:{color:jt.colorError}},"&-has-error":{[`${Ue}-split`]:{color:jt.colorWarning}},[`${Ue}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${jt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:sn,color:Qt,fontSize:pn,[`> ${yt}`]:{fontSize:jt.fontSize,verticalAlign:"top"},[`&${Ue}-required:not(${Ue}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:jt.marginXXS,color:_t,fontSize:jt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${ut}-hide-required-mark &`]:{display:"none"}},[`${Ue}-optional`]:{display:"inline-block",marginInlineStart:jt.marginXXS,color:jt.colorTextDescription,[`${ut}-hide-required-mark &`]:{display:"none"}},[`${Ue}-tooltip`]:{color:jt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:jt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Bn,marginInlineEnd:Yn},[`&${Ue}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ue}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${rt}-col-'"]):not([class*="' ${rt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:jt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ue]:{"&-explain, &-extra":{clear:"both",color:jt.colorTextDescription,fontSize:jt.fontSize,lineHeight:jt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:jt.controlHeightSM,transition:`color ${jt.motionDurationMid} ${jt.motionEaseOut}`},"&-explain":{"&-error":{color:jt.colorError},"&-warning":{color:jt.colorWarning}}},[`&-with-help ${Ue}-explain`]:{height:"auto",opacity:1},[`${Ue}-feedback-icon`]:{fontSize:jt.fontSize,textAlign:"center",visibility:"visible",animationName:Pe.kr,animationDuration:jt.motionDurationMid,animationTimingFunction:jt.motionEaseOutBack,pointerEvents:"none","&-success":{color:jt.colorSuccess},"&-error":{color:jt.colorError},"&-warning":{color:jt.colorWarning},"&-validating":{color:jt.colorPrimary}}})}},dt=jt=>{const{componentCls:Ue,formItemCls:yt}=jt;return{[`${Ue}-horizontal`]:{[`${yt}-label`]:{flexGrow:0},[`${yt}-control`]:{flex:"1 1 0",minWidth:0},[`${yt}-label[class$='-24'], ${yt}-label[class*='-24 ']`]:{[`& + ${yt}-control`]:{minWidth:"unset"}}}}},Qe=jt=>{const{componentCls:Ue,formItemCls:yt}=jt;return{[`${Ue}-inline`]:{display:"flex",flexWrap:"wrap",[yt]:{flex:"none",marginInlineEnd:jt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${yt}-label,
|
|
|
> ${yt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${yt}-label`]:{flex:"none"},[`${Ue}-text`]:{display:"inline-block"},[`${yt}-has-feedback`]:{display:"inline-block"}}}}},Ze=jt=>({padding:jt.verticalLabelPadding,margin:jt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ae=jt=>{const{componentCls:Ue,formItemCls:yt,rootPrefixCls:ut}=jt;return{[`${yt} ${yt}-label`]:Ze(jt),[Ue]:{[yt]:{flexWrap:"wrap",[`${yt}-label, ${yt}-control`]:{[`&:not([class*=" ${ut}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Je=jt=>{const{componentCls:Ue,formItemCls:yt,rootPrefixCls:ut}=jt;return{[`${Ue}-vertical`]:{[yt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Ue}-item-control`]:{width:"100%"}}},[`${Ue}-vertical ${yt}-label,
|
|
|
.${ut}-col-24${yt}-label,
|
|
|
.${ut}-col-xl-24${yt}-label`]:Ze(jt),[`@media (max-width: ${jt.screenXSMax}px)`]:[Ae(jt),{[Ue]:{[`.${ut}-col-xs-24${yt}-label`]:Ze(jt)}}],[`@media (max-width: ${jt.screenSMMax}px)`]:{[Ue]:{[`.${ut}-col-sm-24${yt}-label`]:Ze(jt)}},[`@media (max-width: ${jt.screenMDMax}px)`]:{[Ue]:{[`.${ut}-col-md-24${yt}-label`]:Ze(jt)}},[`@media (max-width: ${jt.screenLGMax}px)`]:{[Ue]:{[`.${ut}-col-lg-24${yt}-label`]:Ze(jt)}}}},Re=(jt,Ue)=>(0,Fe.TS)(jt,{formItemCls:`${jt.componentCls}-item`,rootPrefixCls:Ue});var vt=(0,Ie.Z)("Form",(jt,Ue)=>{let{rootPrefixCls:yt}=Ue;const ut=Re(jt,yt);return[Xe(ut),Dt(ut),ze(ut),dt(ut),Qe(ut),Je(ut),(0,et.Z)(ut),Pe.kr]},jt=>({labelRequiredMarkColor:jt.colorError,labelColor:jt.colorTextHeading,labelFontSize:jt.fontSize,labelHeight:jt.controlHeight,labelColonMarginInlineStart:jt.marginXXS/2,labelColonMarginInlineEnd:jt.marginXS,itemMarginBottom:jt.marginLG,verticalLabelPadding:`0 0 ${jt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const $e=[];function mt(jt,Ue,yt){let ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof jt=="string"?jt:`${Ue}-${ut}`,error:jt,errorStatus:yt}}var xt=jt=>{let{help:Ue,helpStatus:yt,errors:ut=$e,warnings:rt=$e,className:_t,fieldId:Qt,onVisibleChanged:pn}=jt;const{prefixCls:sn}=Ce.useContext(pe.Rk),Bn=`${sn}-item-explain`,[,Yn]=vt(sn),cr=(0,Ce.useMemo)(()=>(0,Se.Z)(sn),[sn]),$n=be(ut),en=be(rt),rn=Ce.useMemo(()=>Ue!=null?[mt(Ue,"help",yt)]:[].concat((0,E.Z)($n.map((kr,Cr)=>mt(kr,"error","error",Cr))),(0,E.Z)(en.map((kr,Cr)=>mt(kr,"warning","warning",Cr)))),[Ue,yt,$n,en]),Or={};return Qt&&(Or.id=`${Qt}_help`),Ce.createElement(Ye.default,{motionDeadline:cr.motionDeadline,motionName:`${sn}-show-help`,visible:!!rn.length,onVisibleChanged:pn},kr=>{const{className:Cr,style:Dr}=kr;return Ce.createElement("div",Object.assign({},Or,{className:Ee()(Bn,Cr,_t,Yn),style:Dr,role:"alert"}),Ce.createElement(Ye.CSSMotionList,Object.assign({keys:rn},(0,Se.Z)(sn),{motionName:`${sn}-show-help-item`,component:!1}),qr=>{const{key:br,error:fi,errorStatus:Jt,className:On,style:Hn}=qr;return Ce.createElement("div",{key:br,className:Ee()(On,{[`${Bn}-${Jt}`]:Jt}),style:Hn},fi)}))})},Ve=ne(95013),Ot=ne(36355),nt=ne(1684),wt=ne(52946),Mt=ne(19716),at=ne(16722);const Le=["parentNode"],Me="form_item";function st(jt){return jt===void 0||jt===!1?[]:Array.isArray(jt)?jt:[jt]}function Ht(jt,Ue){if(!jt.length)return;const yt=jt.join("_");return Ue?`${Ue}_${yt}`:Le.includes(yt)?`${Me}_${yt}`:yt}function Tt(jt,Ue,yt,ut,rt,_t){let Qt=ut;return _t!==void 0?Qt=_t:yt.validating?Qt="validating":jt.length?Qt="error":Ue.length?Qt="warning":(yt.touched||rt&&yt.validated)&&(Qt="success"),Qt}function ct(jt){return st(jt).join("_")}function Ct(jt){const[Ue]=(0,Ve.useForm)(),yt=Ce.useRef({}),ut=Ce.useMemo(()=>jt!=null?jt:Object.assign(Object.assign({},Ue),{__INTERNAL__:{itemRef:rt=>_t=>{const Qt=ct(rt);_t?yt.current[Qt]=_t:delete yt.current[Qt]}},scrollToField:function(rt){let _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Qt=st(rt),pn=Ht(Qt,ut.__INTERNAL__.name),sn=pn?document.getElementById(pn):null;sn&&(0,at.Z)(sn,Object.assign({scrollMode:"if-needed",block:"nearest"},_t))},getFieldInstance:rt=>{const _t=ct(rt);return yt.current[_t]}}),[jt,Ue]);return[ut]}var Zt=ne(28726),gn=function(jt,Ue){var yt={};for(var ut in jt)Object.prototype.hasOwnProperty.call(jt,ut)&&Ue.indexOf(ut)<0&&(yt[ut]=jt[ut]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,ut=Object.getOwnPropertySymbols(jt);rt<ut.length;rt++)Ue.indexOf(ut[rt])<0&&Object.prototype.propertyIsEnumerable.call(jt,ut[rt])&&(yt[ut[rt]]=jt[ut[rt]]);return yt};const $t=(jt,Ue)=>{const yt=Ce.useContext(nt.Z),{getPrefixCls:ut,direction:rt,form:_t}=Ce.useContext(Ot.E_),{prefixCls:Qt,className:pn,rootClassName:sn,size:Bn,disabled:Yn=yt,form:cr,colon:$n,labelAlign:en,labelWrap:rn,labelCol:Or,wrapperCol:kr,hideRequiredMark:Cr,layout:Dr="horizontal",scrollToFirstError:qr,requiredMark:br,onFinishFailed:fi,name:Jt,style:On,feedbackIcons:Hn}=jt,qn=gn(jt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),kn=(0,Mt.Z)(Bn),Vn=Ce.useContext(Zt.Z),Pn=(0,Ce.useMemo)(()=>br!==void 0?br:_t&&_t.requiredMark!==void 0?_t.requiredMark:!Cr,[Cr,br,_t]),fr=$n!=null?$n:_t==null?void 0:_t.colon,Pr=ut("form",Qt),[Gr,pi]=vt(Pr),gi=Ee()(Pr,`${Pr}-${Dr}`,{[`${Pr}-hide-required-mark`]:Pn===!1,[`${Pr}-rtl`]:rt==="rtl",[`${Pr}-${kn}`]:kn},pi,_t==null?void 0:_t.className,pn,sn),[Ri]=Ct(cr),{__INTERNAL__:Si}=Ri;Si.name=Jt;const wi=(0,Ce.useMemo)(()=>({name:Jt,labelAlign:en,labelCol:Or,labelWrap:rn,wrapperCol:kr,vertical:Dr==="vertical",colon:fr,requiredMark:Pn,itemRef:Si.itemRef,form:Ri,feedbackIcons:Hn}),[Jt,en,Or,kr,Dr,fr,Pn,Ri,Hn]);Ce.useImperativeHandle(Ue,()=>Ri);const Zi=(Gi,Bi)=>{if(Gi){let Di={block:"nearest"};typeof Gi=="object"&&(Di=Gi),Ri.scrollToField(Bi,Di)}},ji=Gi=>{if(fi==null||fi(Gi),Gi.errorFields.length){const Bi=Gi.errorFields[0].name;if(qr!==void 0){Zi(qr,Bi);return}_t&&_t.scrollToFirstError!==void 0&&Zi(_t.scrollToFirstError,Bi)}};return Gr(Ce.createElement(nt.n,{disabled:Yn},Ce.createElement(wt.q,{size:kn},Ce.createElement(pe.RV,Object.assign({},{validateMessages:Vn}),Ce.createElement(pe.q3.Provider,{value:wi},Ce.createElement(Ve.default,Object.assign({id:Jt},qn,{name:Jt,onFinishFailed:ji,form:Ri,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),On),className:gi})))))))};var on=Ce.forwardRef($t),dn=ne(41799),ln=ne(8654),xe=ne(92343),fe=ne(11592);function ue(jt){if(typeof jt=="function")return jt;const Ue=(0,fe.Z)(jt);return Ue.length<=1?Ue[0]:Ue}const he=()=>{const{status:jt,errors:Ue=[],warnings:yt=[]}=(0,Ce.useContext)(pe.aM);return{status:jt,errors:Ue,warnings:yt}};he.Context=pe.aM;var me=he,oe=ne(16089);function Ne(jt){const[Ue,yt]=Ce.useState(jt),ut=(0,Ce.useRef)(null),rt=(0,Ce.useRef)([]),_t=(0,Ce.useRef)(!1);Ce.useEffect(()=>(_t.current=!1,()=>{_t.current=!0,oe.Z.cancel(ut.current),ut.current=null}),[]);function Qt(pn){_t.current||(ut.current===null&&(rt.current=[],ut.current=(0,oe.Z)(()=>{ut.current=null,yt(sn=>{let Bn=sn;return rt.current.forEach(Yn=>{Bn=Yn(Bn)}),Bn})})),rt.current.push(pn))}return[Ue,Qt]}function At(){const{itemRef:jt}=Ce.useContext(pe.q3),Ue=Ce.useRef({});function yt(ut,rt){const _t=rt&&typeof rt=="object"&&rt.ref,Qt=ut.join("_");return(Ue.current.name!==Qt||Ue.current.originRef!==_t)&&(Ue.current.name=Qt,Ue.current.originRef=_t,Ue.current.ref=(0,ln.sQ)(jt(ut),_t)),Ue.current.ref}return yt}var Ge=ne(29194),je=ne(34280),Pt=ne(2738),Et=ne(27382),ht=ne(37028);const Kt=jt=>{const{formItemCls:Ue}=jt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ue}-control`]:{display:"flex"}}}};var vn=(0,Ie.b)(["Form","item-item"],(jt,Ue)=>{let{rootPrefixCls:yt}=Ue;const ut=Re(jt,yt);return[Kt(ut)]}),Ut=jt=>{const{prefixCls:Ue,status:yt,wrapperCol:ut,children:rt,errors:_t,warnings:Qt,_internalItemRender:pn,extra:sn,help:Bn,fieldId:Yn,marginBottom:cr,onErrorVisibleChanged:$n}=jt,en=`${Ue}-item`,rn=Ce.useContext(pe.q3),Or=ut||rn.wrapperCol||{},kr=Ee()(`${en}-control`,Or.className),Cr=Ce.useMemo(()=>Object.assign({},rn),[rn]);delete Cr.labelCol,delete Cr.wrapperCol;const Dr=Ce.createElement("div",{className:`${en}-control-input`},Ce.createElement("div",{className:`${en}-control-input-content`},rt)),qr=Ce.useMemo(()=>({prefixCls:Ue,status:yt}),[Ue,yt]),br=cr!==null||_t.length||Qt.length?Ce.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Ce.createElement(pe.Rk.Provider,{value:qr},Ce.createElement(xt,{fieldId:Yn,errors:_t,warnings:Qt,help:Bn,helpStatus:yt,className:`${en}-explain-connected`,onVisibleChanged:$n})),!!cr&&Ce.createElement("div",{style:{width:0,height:cr}})):null,fi={};Yn&&(fi.id=`${Yn}_extra`);const Jt=sn?Ce.createElement("div",Object.assign({},fi,{className:`${en}-extra`}),sn):null,On=pn&&pn.mark==="pro_table_render"&&pn.render?pn.render(jt,{input:Dr,errorList:br,extra:Jt}):Ce.createElement(Ce.Fragment,null,Dr,br,Jt);return Ce.createElement(pe.q3.Provider,{value:Cr},Ce.createElement(ht.Z,Object.assign({},Or,{className:kr}),On),Ce.createElement(vn,{prefixCls:Ue}))},yn=ne(61485),Bt=ne(31724),Ke=ne(9763),gt=ne(6848),Vt=function(jt,Ue){var yt={};for(var ut in jt)Object.prototype.hasOwnProperty.call(jt,ut)&&Ue.indexOf(ut)<0&&(yt[ut]=jt[ut]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,ut=Object.getOwnPropertySymbols(jt);rt<ut.length;rt++)Ue.indexOf(ut[rt])<0&&Object.prototype.propertyIsEnumerable.call(jt,ut[rt])&&(yt[ut[rt]]=jt[ut[rt]]);return yt};function Nt(jt){return jt?typeof jt=="object"&&!Ce.isValidElement(jt)?jt:{title:jt}:null}var Mn=jt=>{let{prefixCls:Ue,label:yt,htmlFor:ut,labelCol:rt,labelAlign:_t,colon:Qt,required:pn,requiredMark:sn,tooltip:Bn}=jt;var Yn;const[cr]=(0,Ke.Z)("Form"),{vertical:$n,labelAlign:en,labelCol:rn,labelWrap:Or,colon:kr}=Ce.useContext(pe.q3);if(!yt)return null;const Cr=rt||rn||{},Dr=_t||en,qr=`${Ue}-item-label`,br=Ee()(qr,Dr==="left"&&`${qr}-left`,Cr.className,{[`${qr}-wrap`]:!!Or});let fi=yt;const Jt=Qt===!0||kr!==!1&&Qt!==!1;Jt&&!$n&&typeof yt=="string"&&yt.trim()!==""&&(fi=yt.replace(/[:|:]\s*$/,""));const Hn=Nt(Bn);if(Hn){const{icon:Pn=Ce.createElement(yn.Z,null)}=Hn,fr=Vt(Hn,["icon"]),Pr=Ce.createElement(gt.Z,Object.assign({},fr),Ce.cloneElement(Pn,{className:`${Ue}-item-tooltip`,title:""}));fi=Ce.createElement(Ce.Fragment,null,fi,Pr)}const qn=sn==="optional",kn=typeof sn=="function";kn?fi=sn(fi,{required:!!pn}):qn&&!pn&&(fi=Ce.createElement(Ce.Fragment,null,fi,Ce.createElement("span",{className:`${Ue}-item-optional`,title:""},(cr==null?void 0:cr.optional)||((Yn=Bt.Z.Form)===null||Yn===void 0?void 0:Yn.optional))));const Vn=Ee()({[`${Ue}-item-required`]:pn,[`${Ue}-item-required-mark-optional`]:qn||kn,[`${Ue}-item-no-colon`]:!Jt});return Ce.createElement(ht.Z,Object.assign({},Cr,{className:br}),Ce.createElement("label",{htmlFor:ut,className:Vn,title:typeof yt=="string"?yt:""},fi))},Tn=ne(29679),Rn=ne(19248),ur=ne(96512),vr=ne(58617);const dr={success:Tn.Z,warning:ur.Z,error:Rn.Z,validating:vr.Z};function mn(jt){let{children:Ue,errors:yt,warnings:ut,hasFeedback:rt,validateStatus:_t,prefixCls:Qt,meta:pn,noStyle:sn}=jt;const Bn=`${Qt}-item`,{feedbackIcons:Yn}=Ce.useContext(pe.q3),cr=Tt(yt,ut,pn,null,!!rt,_t),{isFormItemInput:$n,status:en}=Ce.useContext(pe.aM),rn=Ce.useMemo(()=>{var Or;let kr;if(rt){const qr=rt!==!0&&rt.icons||Yn,br=cr&&((Or=qr==null?void 0:qr({status:cr,errors:yt,warnings:ut}))===null||Or===void 0?void 0:Or[cr]),fi=cr&&dr[cr];kr=br!==!1&&fi?Ce.createElement("span",{className:Ee()(`${Bn}-feedback-icon`,`${Bn}-feedback-icon-${cr}`)},br||Ce.createElement(fi,null)):null}let Cr=!0,Dr=cr||"";return sn&&(Cr=$n,Dr=(cr!=null?cr:en)||""),{status:Dr,errors:yt,warnings:ut,hasFeedback:!!rt,feedbackIcon:kr,isFormItemInput:Cr}},[cr,rt,sn,$n,en]);return Ce.createElement(pe.aM.Provider,{value:rn},Ue)}var zn=function(jt,Ue){var yt={};for(var ut in jt)Object.prototype.hasOwnProperty.call(jt,ut)&&Ue.indexOf(ut)<0&&(yt[ut]=jt[ut]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,ut=Object.getOwnPropertySymbols(jt);rt<ut.length;rt++)Ue.indexOf(ut[rt])<0&&Object.prototype.propertyIsEnumerable.call(jt,ut[rt])&&(yt[ut[rt]]=jt[ut[rt]]);return yt};function jn(jt){const{prefixCls:Ue,className:yt,rootClassName:ut,style:rt,help:_t,errors:Qt,warnings:pn,validateStatus:sn,meta:Bn,hasFeedback:Yn,hidden:cr,children:$n,fieldId:en,required:rn,isRequired:Or,onSubItemMetaChange:kr}=jt,Cr=zn(jt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Dr=`${Ue}-item`,{requiredMark:qr}=Ce.useContext(pe.q3),br=Ce.useRef(null),fi=be(Qt),Jt=be(pn),On=_t!=null,Hn=!!(On||Qt.length||pn.length),qn=!!br.current&&(0,Ge.Z)(br.current),[kn,Vn]=Ce.useState(null);(0,je.Z)(()=>{if(Hn&&br.current){const pi=getComputedStyle(br.current);Vn(parseInt(pi.marginBottom,10))}},[Hn,qn]);const Pn=pi=>{pi||Vn(null)},Pr=function(){let pi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const gi=pi?fi:Bn.errors,Ri=pi?Jt:Bn.warnings;return Tt(gi,Ri,Bn,"",!!Yn,sn)}(),Gr=Ee()(Dr,yt,ut,{[`${Dr}-with-help`]:On||fi.length||Jt.length,[`${Dr}-has-feedback`]:Pr&&Yn,[`${Dr}-has-success`]:Pr==="success",[`${Dr}-has-warning`]:Pr==="warning",[`${Dr}-has-error`]:Pr==="error",[`${Dr}-is-validating`]:Pr==="validating",[`${Dr}-hidden`]:cr});return Ce.createElement("div",{className:Gr,style:rt,ref:br},Ce.createElement(Et.Z,Object.assign({className:`${Dr}-row`},(0,Pt.Z)(Cr,["_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"])),Ce.createElement(Mn,Object.assign({htmlFor:en},jt,{requiredMark:qr,required:rn!=null?rn:Or,prefixCls:Ue})),Ce.createElement(Ut,Object.assign({},jt,Bn,{errors:fi,warnings:Jt,prefixCls:Ue,status:Pr,help:_t,marginBottom:kn,onErrorVisibleChanged:Pn}),Ce.createElement(pe.qI.Provider,{value:kr},Ce.createElement(mn,{prefixCls:Ue,meta:Bn,errors:Bn.errors,warnings:Bn.warnings,hasFeedback:Yn,validateStatus:Pr},$n)))),!!kn&&Ce.createElement("div",{className:`${Dr}-margin-offset`,style:{marginBottom:-kn}}))}const Xn="__SPLIT__",Sr=null,Kr=Ce.memo(jt=>{let{children:Ue}=jt;return Ue},(jt,Ue)=>jt.value===Ue.value&&jt.update===Ue.update&&jt.childProps.length===Ue.childProps.length&&jt.childProps.every((yt,ut)=>yt===Ue.childProps[ut]));function ar(jt){return jt!=null}function Zn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Wr(jt){const{name:Ue,noStyle:yt,className:ut,dependencies:rt,prefixCls:_t,shouldUpdate:Qt,rules:pn,children:sn,required:Bn,label:Yn,messageVariables:cr,trigger:$n="onChange",validateTrigger:en,hidden:rn,help:Or}=jt,{getPrefixCls:kr}=Ce.useContext(Ot.E_),{name:Cr}=Ce.useContext(pe.q3),Dr=ue(sn),qr=typeof Dr=="function",br=Ce.useContext(pe.qI),{validateTrigger:fi}=Ce.useContext(Ve.FieldContext),Jt=en!==void 0?en:fi,On=ar(Ue),Hn=kr("form",_t),[qn,kn]=vt(Hn),Vn=Ce.useContext(Ve.ListContext),Pn=Ce.useRef(),[fr,Pr]=Ne({}),[Gr,pi]=(0,dn.Z)(()=>Zn()),gi=Bi=>{const Di=Vn==null?void 0:Vn.getKey(Bi.name);if(pi(Bi.destroy?Zn():Bi,!0),yt&&Or!==!1&&br){let zr=Bi.name;if(Bi.destroy)zr=Pn.current||zr;else if(Di!==void 0){const[li,Ii]=Di;zr=[li].concat((0,E.Z)(Ii)),Pn.current=zr}br(Bi,zr)}},Ri=(Bi,Di)=>{Pr(zr=>{const li=Object.assign({},zr),ya=[].concat((0,E.Z)(Bi.name.slice(0,-1)),(0,E.Z)(Di)).join(Xn);return Bi.destroy?delete li[ya]:li[ya]=Bi,li})},[Si,wi]=Ce.useMemo(()=>{const Bi=(0,E.Z)(Gr.errors),Di=(0,E.Z)(Gr.warnings);return Object.values(fr).forEach(zr=>{Bi.push.apply(Bi,(0,E.Z)(zr.errors||[])),Di.push.apply(Di,(0,E.Z)(zr.warnings||[]))}),[Bi,Di]},[fr,Gr.errors,Gr.warnings]),Zi=At();function ji(Bi,Di,zr){return yt&&!rn?Ce.createElement(mn,{prefixCls:Hn,hasFeedback:jt.hasFeedback,validateStatus:jt.validateStatus,meta:Gr,errors:Si,warnings:wi,noStyle:!0},Bi):Ce.createElement(jn,Object.assign({key:"row"},jt,{className:Ee()(ut,kn),prefixCls:Hn,fieldId:Di,isRequired:zr,errors:Si,warnings:wi,meta:Gr,onSubItemMetaChange:Ri}),Bi)}if(!On&&!qr&&!rt)return qn(ji(Dr));let Gi={};return typeof Yn=="string"?Gi.label=Yn:Ue&&(Gi.label=String(Ue)),cr&&(Gi=Object.assign(Object.assign({},Gi),cr)),qn(Ce.createElement(Ve.Field,Object.assign({},jt,{messageVariables:Gi,trigger:$n,validateTrigger:Jt,onMetaChange:gi}),(Bi,Di,zr)=>{const li=st(Ue).length&&Di?Di.name:[],Ii=Ht(li,Cr),ya=Bn!==void 0?Bn:!!(pn&&pn.some(Ir=>{if(Ir&&typeof Ir=="object"&&Ir.required&&!Ir.warningOnly)return!0;if(typeof Ir=="function"){const Vi=Ir(zr);return Vi&&Vi.required&&!Vi.warningOnly}return!1})),vi=Object.assign({},Bi);let jr=null;if(Array.isArray(Dr)&&On)jr=Dr;else if(!(qr&&(!(Qt||rt)||On))){if(!(rt&&!qr&&!On))if((0,xe.l$)(Dr)){const Ir=Object.assign(Object.assign({},Dr.props),vi);if(Ir.id||(Ir.id=Ii),Or||Si.length>0||wi.length>0||jt.extra){const na=[];(Or||Si.length>0)&&na.push(`${Ii}_help`),jt.extra&&na.push(`${Ii}_extra`),Ir["aria-describedby"]=na.join(" ")}Si.length>0&&(Ir["aria-invalid"]="true"),ya&&(Ir["aria-required"]="true"),(0,ln.Yr)(Dr)&&(Ir.ref=Zi(li,Dr)),new Set([].concat((0,E.Z)(st($n)),(0,E.Z)(st(Jt)))).forEach(na=>{Ir[na]=function(){for(var ba,oa,xa,Na,Po,ki=arguments.length,Hi=new Array(ki),Aa=0;Aa<ki;Aa++)Hi[Aa]=arguments[Aa];(xa=vi[na])===null||xa===void 0||(ba=xa).call.apply(ba,[vi].concat(Hi)),(Po=(Na=Dr.props)[na])===null||Po===void 0||(oa=Po).call.apply(oa,[Na].concat(Hi))}});const xi=[Ir["aria-required"],Ir["aria-invalid"],Ir["aria-describedby"]];jr=Ce.createElement(Kr,{value:vi[jt.valuePropName||"value"],update:Dr,childProps:xi},(0,xe.Tm)(Dr,Ir))}else qr&&(Qt||rt)&&!On?jr=Dr(zr):jr=Dr}return ji(jr,Ii,ya)}))}const Gt=Wr;Gt.useStatus=me;var or=Gt,er=function(jt,Ue){var yt={};for(var ut in jt)Object.prototype.hasOwnProperty.call(jt,ut)&&Ue.indexOf(ut)<0&&(yt[ut]=jt[ut]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,ut=Object.getOwnPropertySymbols(jt);rt<ut.length;rt++)Ue.indexOf(ut[rt])<0&&Object.prototype.propertyIsEnumerable.call(jt,ut[rt])&&(yt[ut[rt]]=jt[ut[rt]]);return yt},En=jt=>{var{prefixCls:Ue,children:yt}=jt,ut=er(jt,["prefixCls","children"]);const{getPrefixCls:rt}=Ce.useContext(Ot.E_),_t=rt("form",Ue),Qt=Ce.useMemo(()=>({prefixCls:_t,status:"error"}),[_t]);return Ce.createElement(Ve.List,Object.assign({},ut),(pn,sn,Bn)=>Ce.createElement(pe.Rk.Provider,{value:Qt},yt(pn.map(Yn=>Object.assign(Object.assign({},Yn),{fieldKey:Yn.key})),sn,{errors:Bn.errors,warnings:Bn.warnings})))};function nr(){const{form:jt}=(0,Ce.useContext)(pe.q3);return jt}const lr=on;lr.Item=or,lr.List=En,lr.ErrorList=xt,lr.useForm=Ct,lr.useFormInstance=nr,lr.useWatch=Ve.useWatch,lr.Provider=pe.RV,lr.create=()=>{};var xr=lr},8628:function(An,tn,ne){"use strict";var E=ne(59301),ye=ne(34280),Ee=ne(56762),Ye=ne(69507);function Ce(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const pe=(0,E.useRef)({}),be=(0,Ee.Z)(),De=(0,Ye.ZP)();return(0,ye.Z)(()=>{const Pe=De.subscribe(et=>{pe.current=et,Se&&be()});return()=>De.unsubscribe(Pe)},[]),pe.current}tn.Z=Ce},5871:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return yn}});var E=ne(84105),ye=ne(87395),Ee=ne(92310),Ye=ne.n(Ee),Ce=ne(60499),Se=ne(18642),pe=ne(43749),be=ne(72190),De=ne(42244),Pe=ne(38705),et=ne(17212);function Fe(){return typeof BigInt=="function"}function Ie(Bt){return!Bt&&Bt!==0&&!Number.isNaN(Bt)||!String(Bt).trim()}function tt(Bt){var Ke=Bt.trim(),gt=Ke.startsWith("-");gt&&(Ke=Ke.slice(1)),Ke=Ke.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ke.startsWith(".")&&(Ke="0".concat(Ke));var Vt=Ke||"0",Nt=Vt.split("."),Xt=Nt[0]||"0",Mn=Nt[1]||"0";Xt==="0"&&Mn==="0"&&(gt=!1);var Tn=gt?"-":"";return{negative:gt,negativeStr:Tn,trimStr:Vt,integerStr:Xt,decimalStr:Mn,fullStr:"".concat(Tn).concat(Vt)}}function ze(Bt){var Ke=String(Bt);return!Number.isNaN(Number(Ke))&&Ke.includes("e")}function We(Bt){var Ke=String(Bt);if(ze(Bt)){var gt=Number(Ke.slice(Ke.indexOf("e-")+2)),Vt=Ke.match(/\.(\d+)/);return Vt!=null&&Vt[1]&&(gt+=Vt[1].length),gt}return Ke.includes(".")&&Xe(Ke)?Ke.length-Ke.indexOf(".")-1:0}function lt(Bt){var Ke=String(Bt);if(ze(Bt)){if(Bt>Number.MAX_SAFE_INTEGER)return String(Fe()?BigInt(Bt).toString():Number.MAX_SAFE_INTEGER);if(Bt<Number.MIN_SAFE_INTEGER)return String(Fe()?BigInt(Bt).toString():Number.MIN_SAFE_INTEGER);Ke=Bt.toFixed(We(Ke))}return tt(Ke).fullStr}function Xe(Bt){return typeof Bt=="number"?!Number.isNaN(Bt):Bt?/^\s*-?\d+(\.\d+)?\s*$/.test(Bt)||/^\s*-?\d+\.\s*$/.test(Bt)||/^\s*-?\.\d+\s*$/.test(Bt):!1}var Dt=function(){function Bt(Ke){if((0,Pe.Z)(this,Bt),(0,Se.Z)(this,"origin",""),(0,Se.Z)(this,"negative",void 0),(0,Se.Z)(this,"integer",void 0),(0,Se.Z)(this,"decimal",void 0),(0,Se.Z)(this,"decimalLen",void 0),(0,Se.Z)(this,"empty",void 0),(0,Se.Z)(this,"nan",void 0),Ie(Ke)){this.empty=!0;return}if(this.origin=String(Ke),Ke==="-"||Number.isNaN(Ke)){this.nan=!0;return}var gt=Ke;if(ze(gt)&&(gt=Number(gt)),gt=typeof gt=="string"?gt:lt(gt),Xe(gt)){var Vt=tt(gt);this.negative=Vt.negative;var Nt=Vt.trimStr.split(".");this.integer=BigInt(Nt[0]);var Xt=Nt[1]||"0";this.decimal=BigInt(Xt),this.decimalLen=Xt.length}else this.nan=!0}return(0,et.Z)(Bt,[{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(gt){var Vt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(gt,"0"));return BigInt(Vt)}},{key:"negate",value:function(){var gt=new Bt(this.toString());return gt.negative=!gt.negative,gt}},{key:"cal",value:function(gt,Vt,Nt){var Xt=Math.max(this.getDecimalStr().length,gt.getDecimalStr().length),Mn=this.alignDecimal(Xt),Tn=gt.alignDecimal(Xt),Rn=Vt(Mn,Tn).toString(),ur=Nt(Xt),vr=tt(Rn),dr=vr.negativeStr,mn=vr.trimStr,zn="".concat(dr).concat(mn.padStart(ur+1,"0"));return new Bt("".concat(zn.slice(0,-ur),".").concat(zn.slice(-ur)))}},{key:"add",value:function(gt){if(this.isInvalidate())return new Bt(gt);var Vt=new Bt(gt);return Vt.isInvalidate()?this:this.cal(Vt,function(Nt,Xt){return Nt+Xt},function(Nt){return Nt})}},{key:"multi",value:function(gt){var Vt=new Bt(gt);return this.isInvalidate()||Vt.isInvalidate()?new Bt(NaN):this.cal(Vt,function(Nt,Xt){return Nt*Xt},function(Nt){return Nt*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(gt){return this.toString()===(gt==null?void 0:gt.toString())}},{key:"lessEquals",value:function(gt){return this.add(gt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return gt?this.isInvalidate()?"":tt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Bt}(),dt=function(){function Bt(Ke){if((0,Pe.Z)(this,Bt),(0,Se.Z)(this,"origin",""),(0,Se.Z)(this,"number",void 0),(0,Se.Z)(this,"empty",void 0),Ie(Ke)){this.empty=!0;return}this.origin=String(Ke),this.number=Number(Ke)}return(0,et.Z)(Bt,[{key:"negate",value:function(){return new Bt(-this.toNumber())}},{key:"add",value:function(gt){if(this.isInvalidate())return new Bt(gt);var Vt=Number(gt);if(Number.isNaN(Vt))return this;var Nt=this.number+Vt;if(Nt>Number.MAX_SAFE_INTEGER)return new Bt(Number.MAX_SAFE_INTEGER);if(Nt<Number.MIN_SAFE_INTEGER)return new Bt(Number.MIN_SAFE_INTEGER);var Xt=Math.max(We(this.number),We(Vt));return new Bt(Nt.toFixed(Xt))}},{key:"multi",value:function(gt){var Vt=Number(gt);if(this.isInvalidate()||Number.isNaN(Vt))return new Bt(NaN);var Nt=this.number*Vt;if(Nt>Number.MAX_SAFE_INTEGER)return new Bt(Number.MAX_SAFE_INTEGER);if(Nt<Number.MIN_SAFE_INTEGER)return new Bt(Number.MIN_SAFE_INTEGER);var Xt=Math.max(We(this.number),We(Vt));return new Bt(Nt.toFixed(Xt))}},{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(gt){return this.toNumber()===(gt==null?void 0:gt.toNumber())}},{key:"lessEquals",value:function(gt){return this.add(gt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return gt?this.isInvalidate()?"":lt(this.number):this.origin}}]),Bt}();function Qe(Bt){return Fe()?new Dt(Bt):new dt(Bt)}function Ze(Bt,Ke,gt){var Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Bt==="")return"";var Nt=tt(Bt),Xt=Nt.negativeStr,Mn=Nt.integerStr,Tn=Nt.decimalStr,Rn="".concat(Ke).concat(Tn),ur="".concat(Xt).concat(Mn);if(gt>=0){var vr=Number(Tn[gt]);if(vr>=5&&!Vt){var dr=Qe(Bt).add("".concat(Xt,"0.").concat("0".repeat(gt)).concat(10-vr));return Ze(dr.toString(),Ke,gt,Vt)}return gt===0?ur:"".concat(ur).concat(Ke).concat(Tn.padEnd(gt,"0").slice(0,gt))}return Rn===".0"?ur:"".concat(ur).concat(Rn)}var Ae=Qe,Je=ne(93681),Re=ne(34280),vt=ne(8654),$e=ne(59301),mt=ne(48736);function Be(Bt,Ke){var gt=(0,$e.useRef)(null);function Vt(){try{var Xt=Bt.selectionStart,Mn=Bt.selectionEnd,Tn=Bt.value,Rn=Tn.substring(0,Xt),ur=Tn.substring(Mn);gt.current={start:Xt,end:Mn,value:Tn,beforeTxt:Rn,afterTxt:ur}}catch(vr){}}function Nt(){if(Bt&>.current&&Ke)try{var Xt=Bt.value,Mn=gt.current,Tn=Mn.beforeTxt,Rn=Mn.afterTxt,ur=Mn.start,vr=Xt.length;if(Xt.endsWith(Rn))vr=Xt.length-gt.current.afterTxt.length;else if(Xt.startsWith(Tn))vr=Tn.length;else{var dr=Tn[ur-1],mn=Xt.indexOf(dr,ur-1);mn!==-1&&(vr=mn+1)}Bt.setSelectionRange(vr,vr)}catch(zn){(0,mt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(zn.message))}}return[Vt,Nt]}var xt=ne(49658),Ve=function(){var Ke=(0,$e.useState)(!1),gt=(0,be.Z)(Ke,2),Vt=gt[0],Nt=gt[1];return(0,Re.Z)(function(){Nt((0,xt.Z)())},[]),Vt},Ot=Ve,nt=ne(16089),wt=200,Mt=600;function at(Bt){var Ke=Bt.prefixCls,gt=Bt.upNode,Vt=Bt.downNode,Nt=Bt.upDisabled,Xt=Bt.downDisabled,Mn=Bt.onStep,Tn=$e.useRef(),Rn=$e.useRef([]),ur=$e.useRef();ur.current=Mn;var vr=function(){clearTimeout(Tn.current)},dr=function(Zn,Wr){Zn.preventDefault(),vr(),ur.current(Wr);function Gt(){ur.current(Wr),Tn.current=setTimeout(Gt,wt)}Tn.current=setTimeout(Gt,Mt)};$e.useEffect(function(){return function(){vr(),Rn.current.forEach(function(ar){return nt.Z.cancel(ar)})}},[]);var mn=Ot();if(mn)return null;var zn="".concat(Ke,"-handler"),jn=Ye()(zn,"".concat(zn,"-up"),(0,Se.Z)({},"".concat(zn,"-up-disabled"),Nt)),Xn=Ye()(zn,"".concat(zn,"-down"),(0,Se.Z)({},"".concat(zn,"-down-disabled"),Xt)),Sr=function(){return Rn.current.push((0,nt.Z)(vr))},Kr={unselectable:"on",role:"button",onMouseUp:Sr,onMouseLeave:Sr};return $e.createElement("div",{className:"".concat(zn,"-wrap")},$e.createElement("span",(0,Ce.Z)({},Kr,{onMouseDown:function(Zn){dr(Zn,!0)},"aria-label":"Increase Value","aria-disabled":Nt,className:jn}),gt||$e.createElement("span",{unselectable:"on",className:"".concat(Ke,"-handler-up-inner")})),$e.createElement("span",(0,Ce.Z)({},Kr,{onMouseDown:function(Zn){dr(Zn,!1)},"aria-label":"Decrease Value","aria-disabled":Xt,className:Xn}),Vt||$e.createElement("span",{unselectable:"on",className:"".concat(Ke,"-handler-down-inner")})))}function Le(Bt){var Ke=typeof Bt=="number"?lt(Bt):tt(Bt).fullStr,gt=Ke.includes(".");return gt?tt(Ke.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Bt+"0"}var Me=ne(5643),st=function(){var Bt=(0,$e.useRef)(0),Ke=function(){nt.Z.cancel(Bt.current)};return(0,$e.useEffect)(function(){return Ke},[]),function(gt){Ke(),Bt.current=(0,nt.Z)(function(){gt()})}},Ht=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Tt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],ct=function(Ke,gt){return Ke||gt.isEmpty()?gt.toString():gt.toNumber()},Ct=function(Ke){var gt=Ae(Ke);return gt.isInvalidate()?null:gt},Zt=$e.forwardRef(function(Bt,Ke){var gt,Vt=Bt.prefixCls,Nt=Vt===void 0?"rc-input-number":Vt,Xt=Bt.className,Mn=Bt.style,Tn=Bt.min,Rn=Bt.max,ur=Bt.step,vr=ur===void 0?1:ur,dr=Bt.defaultValue,mn=Bt.value,zn=Bt.disabled,jn=Bt.readOnly,Xn=Bt.upHandler,Sr=Bt.downHandler,Kr=Bt.keyboard,ar=Bt.controls,Zn=ar===void 0?!0:ar,Wr=Bt.classNames,Gt=Bt.stringMode,or=Bt.parser,er=Bt.formatter,Kn=Bt.precision,En=Bt.decimalSeparator,nr=Bt.onChange,lr=Bt.onInput,xr=Bt.onPressEnter,jt=Bt.onStep,Ue=(0,De.Z)(Bt,Ht),yt="".concat(Nt,"-input"),ut=$e.useRef(null),rt=$e.useState(!1),_t=(0,be.Z)(rt,2),Qt=_t[0],pn=_t[1],sn=$e.useRef(!1),Bn=$e.useRef(!1),Yn=$e.useRef(!1),cr=$e.useState(function(){return Ae(mn!=null?mn:dr)}),$n=(0,be.Z)(cr,2),en=$n[0],rn=$n[1];function Or(jr){mn===void 0&&rn(jr)}var kr=$e.useCallback(function(jr,Ir){if(!Ir)return Kn>=0?Kn:Math.max(We(jr),We(vr))},[Kn,vr]),Cr=$e.useCallback(function(jr){var Ir=String(jr);if(or)return or(Ir);var Vi=Ir;return En&&(Vi=Vi.replace(En,".")),Vi.replace(/[^\w.-]+/g,"")},[or,En]),Dr=$e.useRef(""),qr=$e.useCallback(function(jr,Ir){if(er)return er(jr,{userTyping:Ir,input:String(Dr.current)});var Vi=typeof jr=="number"?lt(jr):jr;if(!Ir){var xi=kr(Vi,Ir);if(Xe(Vi)&&(En||xi>=0)){var na=En||".";Vi=Ze(Vi,na,xi)}}return Vi},[er,kr,En]),br=$e.useState(function(){var jr=dr!=null?dr:mn;return en.isInvalidate()&&["string","number"].includes((0,pe.Z)(jr))?Number.isNaN(jr)?"":jr:qr(en.toString(),!1)}),fi=(0,be.Z)(br,2),Jt=fi[0],On=fi[1];Dr.current=Jt;function Hn(jr,Ir){On(qr(jr.isInvalidate()?jr.toString(!1):jr.toString(!Ir),Ir))}var qn=$e.useMemo(function(){return Ct(Rn)},[Rn,Kn]),kn=$e.useMemo(function(){return Ct(Tn)},[Tn,Kn]),Vn=$e.useMemo(function(){return!qn||!en||en.isInvalidate()?!1:qn.lessEquals(en)},[qn,en]),Pn=$e.useMemo(function(){return!kn||!en||en.isInvalidate()?!1:en.lessEquals(kn)},[kn,en]),fr=Be(ut.current,Qt),Pr=(0,be.Z)(fr,2),Gr=Pr[0],pi=Pr[1],gi=function(Ir){return qn&&!Ir.lessEquals(qn)?qn:kn&&!kn.lessEquals(Ir)?kn:null},Ri=function(Ir){return!gi(Ir)},Si=function(Ir,Vi){var xi=Ir,na=Ri(xi)||xi.isEmpty();if(!xi.isEmpty()&&!Vi&&(xi=gi(xi)||xi,na=!0),!jn&&!zn&&na){var ba=xi.toString(),oa=kr(ba,Vi);return oa>=0&&(xi=Ae(Ze(ba,".",oa)),Ri(xi)||(xi=Ae(Ze(ba,".",oa,!0)))),xi.equals(en)||(Or(xi),nr==null||nr(xi.isEmpty()?null:ct(Gt,xi)),mn===void 0&&Hn(xi,Vi)),xi}return en},wi=st(),Zi=function jr(Ir){if(Gr(),Dr.current=Ir,On(Ir),!Bn.current){var Vi=Cr(Ir),xi=Ae(Vi);xi.isNaN()||Si(xi,!0)}lr==null||lr(Ir),wi(function(){var na=Ir;or||(na=Ir.replace(/。/g,".")),na!==Ir&&jr(na)})},ji=function(){Bn.current=!0},Gi=function(){Bn.current=!1,Zi(ut.current.value)},Bi=function(Ir){Zi(Ir.target.value)},Di=function(Ir){var Vi;if(!(Ir&&Vn||!Ir&&Pn)){sn.current=!1;var xi=Ae(Yn.current?Le(vr):vr);Ir||(xi=xi.negate());var na=(en||Ae(0)).add(xi.toString()),ba=Si(na,!1);jt==null||jt(ct(Gt,ba),{offset:Yn.current?Le(vr):vr,type:Ir?"up":"down"}),(Vi=ut.current)===null||Vi===void 0||Vi.focus()}},zr=function(Ir){var Vi=Ae(Cr(Jt)),xi=Vi;Vi.isNaN()?xi=Si(en,Ir):xi=Si(Vi,Ir),mn!==void 0?Hn(en,!1):xi.isNaN()||Hn(xi,!1)},li=function(){sn.current=!0},Ii=function(Ir){var Vi=Ir.key,xi=Ir.shiftKey;sn.current=!0,Yn.current=xi,Vi==="Enter"&&(Bn.current||(sn.current=!1),zr(!1),xr==null||xr(Ir)),Kr!==!1&&!Bn.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Vi)&&(Di(Vi==="Up"||Vi==="ArrowUp"),Ir.preventDefault())},ya=function(){sn.current=!1,Yn.current=!1},vi=function(){zr(!1),pn(!1),sn.current=!1};return(0,Re.o)(function(){en.isInvalidate()||Hn(en,!1)},[Kn]),(0,Re.o)(function(){var jr=Ae(mn);rn(jr);var Ir=Ae(Cr(Jt));(!jr.equals(Ir)||!sn.current||er)&&Hn(jr,sn.current)},[mn]),(0,Re.o)(function(){er&&pi()},[Jt]),$e.createElement("div",{className:Ye()(Nt,Wr==null?void 0:Wr.input,Xt,(gt={},(0,Se.Z)(gt,"".concat(Nt,"-focused"),Qt),(0,Se.Z)(gt,"".concat(Nt,"-disabled"),zn),(0,Se.Z)(gt,"".concat(Nt,"-readonly"),jn),(0,Se.Z)(gt,"".concat(Nt,"-not-a-number"),en.isNaN()),(0,Se.Z)(gt,"".concat(Nt,"-out-of-range"),!en.isInvalidate()&&!Ri(en)),gt)),style:Mn,onFocus:function(){pn(!0)},onBlur:vi,onKeyDown:Ii,onKeyUp:ya,onCompositionStart:ji,onCompositionEnd:Gi,onBeforeInput:li},Zn&&$e.createElement(at,{prefixCls:Nt,upNode:Xn,downNode:Sr,upDisabled:Vn,downDisabled:Pn,onStep:Di}),$e.createElement("div",{className:"".concat(yt,"-wrap")},$e.createElement("input",(0,Ce.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Tn,"aria-valuemax":Rn,"aria-valuenow":en.isInvalidate()?null:en.toString(),step:vr},Ue,{ref:(0,vt.sQ)(ut,Ke),className:yt,value:Jt,onChange:Bi,disabled:zn,readOnly:jn}))))}),gn=$e.forwardRef(function(Bt,Ke){var gt=Bt.disabled,Vt=Bt.style,Nt=Bt.prefixCls,Xt=Bt.value,Mn=Bt.prefix,Tn=Bt.suffix,Rn=Bt.addonBefore,ur=Bt.addonAfter,vr=Bt.classes,dr=Bt.className,mn=Bt.classNames,zn=(0,De.Z)(Bt,Tt),jn=$e.useRef(null),Xn=function(Kr){jn.current&&(0,Me.nH)(jn.current,Kr)};return $e.createElement(Je.BaseInput,{inputElement:$e.createElement(Zt,(0,Ce.Z)({prefixCls:Nt,disabled:gt,classNames:mn,ref:(0,vt.sQ)(jn,Ke)},zn)),className:dr,triggerFocus:Xn,prefixCls:Nt,value:Xt,disabled:gt,style:Vt,prefix:Mn,suffix:Tn,addonAfter:ur,addonBefore:Rn,classes:vr,classNames:mn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});gn.displayName="InputNumber";var $t=gn,Wt=$t,on=ne(19080),dn=ne(36355),ln=ne(92736),xe=ne(1684),fe=ne(19716),ue=ne(32441),he=ne(33234),me=ne(9937),oe=ne(17313),Ne=ne(74207),At=ne(83116),Ge=ne(37613);const je=(Bt,Ke)=>{let{componentCls:gt,borderRadiusSM:Vt,borderRadiusLG:Nt}=Bt;const Xt=Ke==="lg"?Nt:Vt;return{[`&-${Ke}`]:{[`${gt}-handler-wrap`]:{borderStartEndRadius:Xt,borderEndEndRadius:Xt},[`${gt}-handler-up`]:{borderStartEndRadius:Xt},[`${gt}-handler-down`]:{borderEndEndRadius:Xt}}}},Pt=Bt=>{const{componentCls:Ke,lineWidth:gt,lineType:Vt,colorBorder:Nt,borderRadius:Xt,fontSizeLG:Mn,controlHeightLG:Tn,controlHeightSM:Rn,colorError:ur,paddingInlineSM:vr,colorTextDescription:dr,motionDurationMid:mn,handleHoverColor:zn,paddingInline:jn,paddingBlock:Xn,handleBg:Sr,handleActiveBg:Kr,colorTextDisabled:ar,borderRadiusSM:Zn,borderRadiusLG:Wr,controlWidth:Gt,handleVisible:or,handleBorderColor:er}=Bt;return[{[Ke]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(Bt)),(0,me.ik)(Bt)),(0,me.bi)(Bt,Ke)),{display:"inline-block",width:Gt,margin:0,padding:0,border:`${gt}px ${Vt} ${Nt}`,borderRadius:Xt,"&-rtl":{direction:"rtl",[`${Ke}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Mn,borderRadius:Wr,[`input${Ke}-input`]:{height:Tn-2*gt}},"&-sm":{padding:0,borderRadius:Zn,[`input${Ke}-input`]:{height:Rn-2*gt,padding:`0 ${vr}px`}},"&:hover":Object.assign({},(0,me.pU)(Bt)),"&-focused":Object.assign({},(0,me.M1)(Bt)),"&-out-of-range":{[`${Ke}-input-wrap`]:{input:{color:ur}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(Bt)),(0,me.s7)(Bt)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ke}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ke}-group-addon`]:{borderRadius:Wr,fontSize:Bt.fontSizeLG}},"&-sm":{[`${Ke}-group-addon`]:{borderRadius:Zn}},[`${Ke}-wrapper-disabled > ${Ke}-group-addon`]:Object.assign({},(0,me.Xy)(Bt))}}),[`&-disabled ${Ke}-input`]:{cursor:"not-allowed"},[Ke]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(Bt)),{width:"100%",padding:`${Xn}px ${jn}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Xt,outline:0,transition:`all ${mn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,me.nz)(Bt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Ke]:Object.assign(Object.assign(Object.assign({[`&:hover ${Ke}-handler-wrap, &-focused ${Ke}-handler-wrap`]:{opacity:1},[`${Ke}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Bt.handleWidth,height:"100%",background:Sr,borderStartStartRadius:0,borderStartEndRadius:Xt,borderEndEndRadius:Xt,borderEndStartRadius:0,opacity:or===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${mn} linear ${mn}`,[`${Ke}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Ke}-handler-up-inner,
|
|
|
${Ke}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Bt.handleFontSize}}},[`${Ke}-handler`]:{height:"50%",overflow:"hidden",color:dr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${gt}px ${Vt} ${er}`,transition:`all ${mn} linear`,"&:active":{background:Kr},"&:hover":{height:"60%",[`
|
|
|
${Ke}-handler-up-inner,
|
|
|
${Ke}-handler-down-inner
|
|
|
`]:{color:zn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,oe.Ro)()),{color:dr,transition:`all ${mn} linear`,userSelect:"none"})},[`${Ke}-handler-up`]:{borderStartEndRadius:Xt},[`${Ke}-handler-down`]:{borderBlockStart:`${gt}px ${Vt} ${er}`,borderEndEndRadius:Xt}},je(Bt,"lg")),je(Bt,"sm")),{"&-disabled, &-readonly":{[`${Ke}-handler-wrap`]:{display:"none"},[`${Ke}-input`]:{color:"inherit"}},[`
|
|
|
${Ke}-handler-up-disabled,
|
|
|
${Ke}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Ke}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Ke}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:ar}})},{[`${Ke}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Ke}-handler-down`]:{borderBlockStartWidth:0}}}]},Et=Bt=>{const{componentCls:Ke,paddingBlock:gt,paddingInline:Vt,inputAffixPadding:Nt,controlWidth:Xt,borderRadiusLG:Mn,borderRadiusSM:Tn}=Bt;return{[`${Ke}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,me.ik)(Bt)),(0,me.bi)(Bt,`${Ke}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Xt,padding:0,paddingInlineStart:Vt,"&-lg":{borderRadius:Mn},"&-sm":{borderRadius:Tn},[`&:not(${Ke}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,me.pU)(Bt)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ke}-disabled`]:{background:"transparent"},[`> div${Ke}`]:{width:"100%",border:"none",outline:"none",[`&${Ke}-focused`]:{boxShadow:"none !important"}},[`input${Ke}-input`]:{padding:`${gt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ke}-handler-wrap`]:{zIndex:2},[Ke]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Nt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Vt,marginInlineStart:Nt}}})}};var ht=(0,At.Z)("InputNumber",Bt=>{const Ke=(0,Ge.TS)(Bt,(0,me.e5)(Bt));return[Pt(Ke),Et(Ke),(0,Ne.c)(Ke)]},Bt=>Object.assign(Object.assign({},(0,me.TM)(Bt)),{controlWidth:90,handleWidth:Bt.controlHeightSM-Bt.lineWidth*2,handleFontSize:Bt.fontSize/2,handleVisible:"auto",handleActiveBg:Bt.colorFillAlter,handleBg:Bt.colorBgContainer,handleHoverColor:Bt.colorPrimary,handleBorderColor:Bt.colorBorder})),Kt=function(Bt,Ke){var gt={};for(var Vt in Bt)Object.prototype.hasOwnProperty.call(Bt,Vt)&&Ke.indexOf(Vt)<0&&(gt[Vt]=Bt[Vt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Vt=Object.getOwnPropertySymbols(Bt);Nt<Vt.length;Nt++)Ke.indexOf(Vt[Nt])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Vt[Nt])&&(gt[Vt[Nt]]=Bt[Vt[Nt]]);return gt};const vn=$e.forwardRef((Bt,Ke)=>{const{getPrefixCls:gt,direction:Vt}=$e.useContext(dn.E_),Nt=$e.useRef(null);$e.useImperativeHandle(Ke,()=>Nt.current);const{className:Xt,rootClassName:Mn,size:Tn,disabled:Rn,prefixCls:ur,addonBefore:vr,addonAfter:dr,prefix:mn,bordered:zn=!0,readOnly:jn,status:Xn,controls:Sr}=Bt,Kr=Kt(Bt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),ar=gt("input-number",ur),[Zn,Wr]=ht(ar),{compactSize:Gt,compactItemClassnames:or}=(0,he.ri)(ar,Vt);let er=$e.createElement(ye.Z,{className:`${ar}-handler-up-inner`}),Kn=$e.createElement(E.Z,{className:`${ar}-handler-down-inner`});const En=typeof Sr=="boolean"?Sr:void 0;typeof Sr=="object"&&(er=typeof Sr.upIcon=="undefined"?er:$e.createElement("span",{className:`${ar}-handler-up-inner`},Sr.upIcon),Kn=typeof Sr.downIcon=="undefined"?Kn:$e.createElement("span",{className:`${ar}-handler-down-inner`},Sr.downIcon));const{hasFeedback:nr,status:lr,isFormItemInput:xr,feedbackIcon:jt}=$e.useContext(ue.aM),Ue=(0,on.F)(lr,Xn),yt=(0,fe.Z)(sn=>{var Bn;return(Bn=Tn!=null?Tn:Gt)!==null&&Bn!==void 0?Bn:sn}),ut=$e.useContext(xe.Z),rt=Rn!=null?Rn:ut,_t=Ye()({[`${ar}-lg`]:yt==="large",[`${ar}-sm`]:yt==="small",[`${ar}-rtl`]:Vt==="rtl",[`${ar}-borderless`]:!zn,[`${ar}-in-form-item`]:xr},(0,on.Z)(ar,Ue),or,Wr),Qt=`${ar}-group`,pn=$e.createElement(Wt,Object.assign({ref:Nt,disabled:rt,className:Ye()(Xt,Mn),upHandler:er,downHandler:Kn,prefixCls:ar,readOnly:jn,controls:En,prefix:mn,suffix:nr&&jt,addonAfter:dr&&$e.createElement(he.BR,null,$e.createElement(ue.Ux,{override:!0,status:!0},dr)),addonBefore:vr&&$e.createElement(he.BR,null,$e.createElement(ue.Ux,{override:!0,status:!0},vr)),classNames:{input:_t},classes:{affixWrapper:Ye()((0,on.Z)(`${ar}-affix-wrapper`,Ue,nr),{[`${ar}-affix-wrapper-sm`]:yt==="small",[`${ar}-affix-wrapper-lg`]:yt==="large",[`${ar}-affix-wrapper-rtl`]:Vt==="rtl",[`${ar}-affix-wrapper-borderless`]:!zn},Wr),wrapper:Ye()({[`${Qt}-rtl`]:Vt==="rtl",[`${ar}-wrapper-disabled`]:rt},Wr),group:Ye()({[`${ar}-group-wrapper-sm`]:yt==="small",[`${ar}-group-wrapper-lg`]:yt==="large",[`${ar}-group-wrapper-rtl`]:Vt==="rtl"},(0,on.Z)(`${ar}-group-wrapper`,Ue,nr),Wr)}},Kr));return Zn(pn)}),kt=vn,Ut=Bt=>$e.createElement(ln.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},$e.createElement(vn,Object.assign({},Bt)));kt._InternalPanelDoNotUseOrYouWillBeFired=Ut;var yn=kt},9432:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Dt},n:function(){return lt}});var E=ne(19248),ye=ne(92310),Ee=ne.n(ye),Ye=ne(93681),Ce=ne(8654),Se=ne(59301),pe=ne(19080),be=ne(36355),De=ne(1684),Pe=ne(19716),et=ne(32441),Fe=ne(33234),Ie=ne(59412),tt=ne(9937);function ze(dt){return!!(dt.prefix||dt.suffix||dt.allowClear)}var We=function(dt,Qe){var Ze={};for(var Ae in dt)Object.prototype.hasOwnProperty.call(dt,Ae)&&Qe.indexOf(Ae)<0&&(Ze[Ae]=dt[Ae]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ae=Object.getOwnPropertySymbols(dt);Je<Ae.length;Je++)Qe.indexOf(Ae[Je])<0&&Object.prototype.propertyIsEnumerable.call(dt,Ae[Je])&&(Ze[Ae[Je]]=dt[Ae[Je]]);return Ze};function lt(dt,Qe){if(!dt)return;dt.focus(Qe);const{cursor:Ze}=Qe||{};if(Ze){const Ae=dt.value.length;switch(Ze){case"start":dt.setSelectionRange(0,0);break;case"end":dt.setSelectionRange(Ae,Ae);break;default:dt.setSelectionRange(0,Ae);break}}}var Dt=(0,Se.forwardRef)((dt,Qe)=>{var Ze;const{prefixCls:Ae,bordered:Je=!0,status:Re,size:vt,disabled:$e,onBlur:mt,onFocus:Be,suffix:xt,allowClear:Ve,addonAfter:Ot,addonBefore:nt,className:wt,style:Mt,styles:at,rootClassName:Le,onChange:Me,classNames:st}=dt,Ht=We(dt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Tt,direction:ct,input:Ct}=Se.useContext(be.E_),Zt=Tt("input",Ae),gn=(0,Se.useRef)(null),[$t,Wt]=(0,tt.ZP)(Zt),{compactSize:on,compactItemClassnames:dn}=(0,Fe.ri)(Zt,ct),ln=(0,Pe.Z)(vn=>{var kt;return(kt=vt!=null?vt:on)!==null&&kt!==void 0?kt:vn}),xe=Se.useContext(De.Z),fe=$e!=null?$e:xe,{status:ue,hasFeedback:he,feedbackIcon:me}=(0,Se.useContext)(et.aM),oe=(0,pe.F)(ue,Re),Ne=ze(dt)||!!he,At=(0,Se.useRef)(Ne);(0,Se.useEffect)(()=>{var vn;Ne&&At.current,At.current=Ne},[Ne]);const Ge=(0,Ie.Z)(gn,!0),je=vn=>{Ge(),mt==null||mt(vn)},Pt=vn=>{Ge(),Be==null||Be(vn)},Et=vn=>{Ge(),Me==null||Me(vn)},ht=(he||xt)&&Se.createElement(Se.Fragment,null,xt,he&&me);let Kt;return typeof Ve=="object"&&(Ve!=null&&Ve.clearIcon)?Kt=Ve:Ve&&(Kt={clearIcon:Se.createElement(E.Z,null)}),$t(Se.createElement(Ye.default,Object.assign({ref:(0,Ce.sQ)(Qe,gn),prefixCls:Zt,autoComplete:Ct==null?void 0:Ct.autoComplete},Ht,{disabled:fe,onBlur:je,onFocus:Pt,style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),Mt),styles:Object.assign(Object.assign({},Ct==null?void 0:Ct.styles),at),suffix:ht,allowClear:Kt,className:Ee()(wt,Le,dn,Ct==null?void 0:Ct.className),onChange:Et,addonAfter:Ot&&Se.createElement(Fe.BR,null,Se.createElement(et.Ux,{override:!0,status:!0},Ot)),addonBefore:nt&&Se.createElement(Fe.BR,null,Se.createElement(et.Ux,{override:!0,status:!0},nt)),classNames:Object.assign(Object.assign(Object.assign({},st),Ct==null?void 0:Ct.classNames),{input:Ee()({[`${Zt}-sm`]:ln==="small",[`${Zt}-lg`]:ln==="large",[`${Zt}-rtl`]:ct==="rtl",[`${Zt}-borderless`]:!Je},!Ne&&(0,pe.Z)(Zt,oe),st==null?void 0:st.input,(Ze=Ct==null?void 0:Ct.classNames)===null||Ze===void 0?void 0:Ze.input,Wt)}),classes:{affixWrapper:Ee()({[`${Zt}-affix-wrapper-sm`]:ln==="small",[`${Zt}-affix-wrapper-lg`]:ln==="large",[`${Zt}-affix-wrapper-rtl`]:ct==="rtl",[`${Zt}-affix-wrapper-borderless`]:!Je},(0,pe.Z)(`${Zt}-affix-wrapper`,oe,he),Wt),wrapper:Ee()({[`${Zt}-group-rtl`]:ct==="rtl"},Wt),group:Ee()({[`${Zt}-group-wrapper-sm`]:ln==="small",[`${Zt}-group-wrapper-lg`]:ln==="large",[`${Zt}-group-wrapper-rtl`]:ct==="rtl",[`${Zt}-group-wrapper-disabled`]:fe},(0,pe.Z)(`${Zt}-group-wrapper`,oe,he),Wt)}})))})},1643:function(An,tn,ne){"use strict";var E=ne(19248),ye=ne(92310),Ee=ne.n(ye),Ye=ne(9296),Ce=ne(59301),Se=ne(19080),pe=ne(36355),be=ne(1684),De=ne(19716),Pe=ne(32441),et=ne(9432),Fe=ne(9937),Ie=function(ze,We){var lt={};for(var Xe in ze)Object.prototype.hasOwnProperty.call(ze,Xe)&&We.indexOf(Xe)<0&&(lt[Xe]=ze[Xe]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Xe=Object.getOwnPropertySymbols(ze);Dt<Xe.length;Dt++)We.indexOf(Xe[Dt])<0&&Object.prototype.propertyIsEnumerable.call(ze,Xe[Dt])&&(lt[Xe[Dt]]=ze[Xe[Dt]]);return lt};const tt=(0,Ce.forwardRef)((ze,We)=>{const{prefixCls:lt,bordered:Xe=!0,size:Dt,disabled:dt,status:Qe,allowClear:Ze,showCount:Ae,classNames:Je,rootClassName:Re,className:vt}=ze,$e=Ie(ze,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:mt,direction:Be}=Ce.useContext(pe.E_),xt=(0,De.Z)(Dt),Ve=Ce.useContext(be.Z),Ot=dt!=null?dt:Ve,{status:nt,hasFeedback:wt,feedbackIcon:Mt}=Ce.useContext(Pe.aM),at=(0,Se.F)(nt,Qe),Le=Ce.useRef(null);Ce.useImperativeHandle(We,()=>{var ct;return{resizableTextArea:(ct=Le.current)===null||ct===void 0?void 0:ct.resizableTextArea,focus:Ct=>{var Zt,gn;(0,et.n)((gn=(Zt=Le.current)===null||Zt===void 0?void 0:Zt.resizableTextArea)===null||gn===void 0?void 0:gn.textArea,Ct)},blur:()=>{var Ct;return(Ct=Le.current)===null||Ct===void 0?void 0:Ct.blur()}}});const Me=mt("input",lt);let st;typeof Ze=="object"&&(Ze!=null&&Ze.clearIcon)?st=Ze:Ze&&(st={clearIcon:Ce.createElement(E.Z,null)});const[Ht,Tt]=(0,Fe.ZP)(Me);return Ht(Ce.createElement(Ye.default,Object.assign({},$e,{disabled:Ot,allowClear:st,className:Ee()(vt,Re),classes:{affixWrapper:Ee()(`${Me}-textarea-affix-wrapper`,{[`${Me}-affix-wrapper-rtl`]:Be==="rtl",[`${Me}-affix-wrapper-borderless`]:!Xe,[`${Me}-affix-wrapper-sm`]:xt==="small",[`${Me}-affix-wrapper-lg`]:xt==="large",[`${Me}-textarea-show-count`]:Ae},(0,Se.Z)(`${Me}-affix-wrapper`,at),Tt)},classNames:Object.assign(Object.assign({},Je),{textarea:Ee()({[`${Me}-borderless`]:!Xe,[`${Me}-sm`]:xt==="small",[`${Me}-lg`]:xt==="large"},(0,Se.Z)(Me,at),Tt,Je==null?void 0:Je.textarea)}),prefixCls:Me,suffix:wt&&Ce.createElement("span",{className:`${Me}-textarea-suffix`},Mt),showCount:Ae,ref:Le})))});tn.Z=tt},59412:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return ye}});var E=ne(59301);function ye(Ee,Ye){const Ce=(0,E.useRef)([]),Se=()=>{Ce.current.push(setTimeout(()=>{var pe,be,De,Pe;!((pe=Ee.current)===null||pe===void 0)&&pe.input&&((be=Ee.current)===null||be===void 0?void 0:be.input.getAttribute("type"))==="password"&&(!((De=Ee.current)===null||De===void 0)&&De.input.hasAttribute("value"))&&((Pe=Ee.current)===null||Pe===void 0||Pe.input.removeAttribute("value"))}))};return(0,E.useEffect)(()=>(Ye&&Se(),()=>Ce.current.forEach(pe=>{pe&&clearTimeout(pe)})),[]),Se}},92832:function(An,tn,ne){"use strict";ne.d(tn,{default:function(){return xt}});var E=ne(92310),ye=ne.n(E),Ee=ne(59301),Ye=ne(36355),Ce=ne(32441),Se=ne(9937),be=Ve=>{const{getPrefixCls:Ot,direction:nt}=(0,Ee.useContext)(Ye.E_),{prefixCls:wt,className:Mt}=Ve,at=Ot("input-group",wt),Le=Ot("input"),[Me,st]=(0,Se.ZP)(Le),Ht=ye()(at,{[`${at}-lg`]:Ve.size==="large",[`${at}-sm`]:Ve.size==="small",[`${at}-compact`]:Ve.compact,[`${at}-rtl`]:nt==="rtl"},st,Mt),Tt=(0,Ee.useContext)(Ce.aM),ct=(0,Ee.useMemo)(()=>Object.assign(Object.assign({},Tt),{isFormItemInput:!1}),[Tt]);return Me(Ee.createElement("span",{className:Ht,style:Ve.style,onMouseEnter:Ve.onMouseEnter,onMouseLeave:Ve.onMouseLeave,onFocus:Ve.onFocus,onBlur:Ve.onBlur},Ee.createElement(Ce.aM.Provider,{value:ct},Ve.children)))},De=ne(9432),Pe=ne(73331),et=ne(15277),Fe=ne(2738),Ie=ne(8654),tt=ne(59412),ze=function(Ve,Ot){var nt={};for(var wt in Ve)Object.prototype.hasOwnProperty.call(Ve,wt)&&Ot.indexOf(wt)<0&&(nt[wt]=Ve[wt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,wt=Object.getOwnPropertySymbols(Ve);Mt<wt.length;Mt++)Ot.indexOf(wt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,wt[Mt])&&(nt[wt[Mt]]=Ve[wt[Mt]]);return nt};const We=Ve=>Ve?Ee.createElement(et.Z,null):Ee.createElement(Pe.Z,null),lt={click:"onClick",hover:"onMouseOver"};var Dt=Ee.forwardRef((Ve,Ot)=>{const{visibilityToggle:nt=!0}=Ve,wt=typeof nt=="object"&&nt.visible!==void 0,[Mt,at]=(0,Ee.useState)(()=>wt?nt.visible:!1),Le=(0,Ee.useRef)(null);Ee.useEffect(()=>{wt&&at(nt.visible)},[wt,nt]);const Me=(0,tt.Z)(Le),st=()=>{const{disabled:fe}=Ve;fe||(Mt&&Me(),at(ue=>{var he;const me=!ue;return typeof nt=="object"&&((he=nt.onVisibleChange)===null||he===void 0||he.call(nt,me)),me}))},Ht=fe=>{const{action:ue="click",iconRender:he=We}=Ve,me=lt[ue]||"",oe=he(Mt),Ne={[me]:st,className:`${fe}-icon`,key:"passwordIcon",onMouseDown:At=>{At.preventDefault()},onMouseUp:At=>{At.preventDefault()}};return Ee.cloneElement(Ee.isValidElement(oe)?oe:Ee.createElement("span",null,oe),Ne)},{className:Tt,prefixCls:ct,inputPrefixCls:Ct,size:Zt}=Ve,gn=ze(Ve,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$t}=Ee.useContext(Ye.E_),Wt=$t("input",Ct),on=$t("input-password",ct),dn=nt&&Ht(on),ln=ye()(on,Tt,{[`${on}-${Zt}`]:!!Zt}),xe=Object.assign(Object.assign({},(0,Fe.Z)(gn,["suffix","iconRender","visibilityToggle"])),{type:Mt?"text":"password",className:ln,prefixCls:Wt,suffix:dn});return Zt&&(xe.size=Zt),Ee.createElement(De.Z,Object.assign({ref:(0,Ie.sQ)(Ot,Le)},xe))}),dt=ne(47472),Qe=ne(92343),Ze=ne(3113),Ae=ne(19716),Je=ne(33234),Re=function(Ve,Ot){var nt={};for(var wt in Ve)Object.prototype.hasOwnProperty.call(Ve,wt)&&Ot.indexOf(wt)<0&&(nt[wt]=Ve[wt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,wt=Object.getOwnPropertySymbols(Ve);Mt<wt.length;Mt++)Ot.indexOf(wt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,wt[Mt])&&(nt[wt[Mt]]=Ve[wt[Mt]]);return nt},$e=Ee.forwardRef((Ve,Ot)=>{const{prefixCls:nt,inputPrefixCls:wt,className:Mt,size:at,suffix:Le,enterButton:Me=!1,addonAfter:st,loading:Ht,disabled:Tt,onSearch:ct,onChange:Ct,onCompositionStart:Zt,onCompositionEnd:gn}=Ve,$t=Re(Ve,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Wt,direction:on}=Ee.useContext(Ye.E_),dn=Ee.useRef(!1),ln=Wt("input-search",nt),xe=Wt("input",wt),{compactSize:fe}=(0,Je.ri)(ln,on),ue=(0,Ae.Z)(Ut=>{var yn;return(yn=at!=null?at:fe)!==null&&yn!==void 0?yn:Ut}),he=Ee.useRef(null),me=Ut=>{Ut&&Ut.target&&Ut.type==="click"&&ct&&ct(Ut.target.value,Ut,{source:"clear"}),Ct&&Ct(Ut)},oe=Ut=>{var yn;document.activeElement===((yn=he.current)===null||yn===void 0?void 0:yn.input)&&Ut.preventDefault()},Ne=Ut=>{var yn,Bt;ct&&ct((Bt=(yn=he.current)===null||yn===void 0?void 0:yn.input)===null||Bt===void 0?void 0:Bt.value,Ut,{source:"input"})},At=Ut=>{dn.current||Ht||Ne(Ut)},Ge=typeof Me=="boolean"?Ee.createElement(dt.Z,null):null,je=`${ln}-button`;let Pt;const Et=Me||{},ht=Et.type&&Et.type.__ANT_BUTTON===!0;ht||Et.type==="button"?Pt=(0,Qe.Tm)(Et,Object.assign({onMouseDown:oe,onClick:Ut=>{var yn,Bt;(Bt=(yn=Et==null?void 0:Et.props)===null||yn===void 0?void 0:yn.onClick)===null||Bt===void 0||Bt.call(yn,Ut),Ne(Ut)},key:"enterButton"},ht?{className:je,size:ue}:{})):Pt=Ee.createElement(Ze.ZP,{className:je,type:Me?"primary":void 0,size:ue,disabled:Tt,key:"enterButton",onMouseDown:oe,onClick:Ne,loading:Ht,icon:Ge},Me),st&&(Pt=[Pt,(0,Qe.Tm)(st,{key:"addonAfter"})]);const Kt=ye()(ln,{[`${ln}-rtl`]:on==="rtl",[`${ln}-${ue}`]:!!ue,[`${ln}-with-button`]:!!Me},Mt),vn=Ut=>{dn.current=!0,Zt==null||Zt(Ut)},kt=Ut=>{dn.current=!1,gn==null||gn(Ut)};return Ee.createElement(De.Z,Object.assign({ref:(0,Ie.sQ)(he,Ot),onPressEnter:At},$t,{size:ue,onCompositionStart:vn,onCompositionEnd:kt,prefixCls:xe,addonAfter:Pt,suffix:Le,onChange:me,className:Kt,disabled:Tt}))}),mt=ne(1643);const Be=De.Z;Be.Group=be,Be.Search=$e,Be.TextArea=mt.Z,Be.Password=Dt;var xt=Be},9937:function(An,tn,ne){"use strict";ne.d(tn,{M1:function(){return pe},TM:function(){return Qe},Xy:function(){return be},bi:function(){return et},e5:function(){return dt},ik:function(){return Fe},nz:function(){return Ce},pU:function(){return Se},s7:function(){return Ie},x0:function(){return Pe}});var E=ne(17313),ye=ne(74207),Ee=ne(37613),Ye=ne(83116);const Ce=Ze=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Ze,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Se=Ze=>({borderColor:Ze.hoverBorderColor}),pe=Ze=>({borderColor:Ze.activeBorderColor,boxShadow:Ze.activeShadow,outline:0}),be=Ze=>({color:Ze.colorTextDisabled,backgroundColor:Ze.colorBgContainerDisabled,borderColor:Ze.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Se((0,Ee.TS)(Ze,{hoverBorderColor:Ze.colorBorder})))}),De=Ze=>{const{paddingBlockLG:Ae,fontSizeLG:Je,lineHeightLG:Re,borderRadiusLG:vt,paddingInlineLG:$e}=Ze;return{padding:`${Ae}px ${$e}px`,fontSize:Je,lineHeight:Re,borderRadius:vt}},Pe=Ze=>({padding:`${Ze.paddingBlockSM}px ${Ze.paddingInlineSM}px`,borderRadius:Ze.borderRadiusSM}),et=(Ze,Ae)=>{const{componentCls:Je,colorError:Re,colorWarning:vt,errorActiveShadow:$e,warningActiveShadow:mt,colorErrorBorderHover:Be,colorWarningBorderHover:xt}=Ze;return{[`&-status-error:not(${Ae}-disabled):not(${Ae}-borderless)${Ae}`]:{borderColor:Re,"&:hover":{borderColor:Be},"&:focus, &-focused":Object.assign({},pe((0,Ee.TS)(Ze,{activeBorderColor:Re,activeShadow:$e}))),[`${Je}-prefix, ${Je}-suffix`]:{color:Re}},[`&-status-warning:not(${Ae}-disabled):not(${Ae}-borderless)${Ae}`]:{borderColor:vt,"&:hover":{borderColor:xt},"&:focus, &-focused":Object.assign({},pe((0,Ee.TS)(Ze,{activeBorderColor:vt,activeShadow:mt}))),[`${Je}-prefix, ${Je}-suffix`]:{color:vt}}}},Fe=Ze=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ze.paddingBlock}px ${Ze.paddingInline}px`,color:Ze.colorText,fontSize:Ze.fontSize,lineHeight:Ze.lineHeight,backgroundColor:Ze.colorBgContainer,backgroundImage:"none",borderWidth:Ze.lineWidth,borderStyle:Ze.lineType,borderColor:Ze.colorBorder,borderRadius:Ze.borderRadius,transition:`all ${Ze.motionDurationMid}`},Ce(Ze.colorTextPlaceholder)),{"&:hover":Object.assign({},Se(Ze)),"&:focus, &-focused":Object.assign({},pe(Ze)),"&-disabled, &[disabled]":Object.assign({},be(Ze)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Ze.controlHeight,lineHeight:Ze.lineHeight,verticalAlign:"bottom",transition:`all ${Ze.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},De(Ze)),"&-sm":Object.assign({},Pe(Ze)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Ie=Ze=>{const{componentCls:Ae,antCls:Je}=Ze;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Ze.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Ae}, &-lg > ${Ae}-group-addon`]:Object.assign({},De(Ze)),[`&-sm ${Ae}, &-sm > ${Ae}-group-addon`]:Object.assign({},Pe(Ze)),[`&-lg ${Je}-select-single ${Je}-select-selector`]:{height:Ze.controlHeightLG},[`&-sm ${Je}-select-single ${Je}-select-selector`]:{height:Ze.controlHeightSM},[`> ${Ae}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Ae}-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 ${Ze.paddingInline}px`,color:Ze.colorText,fontWeight:"normal",fontSize:Ze.fontSize,textAlign:"center",backgroundColor:Ze.colorFillAlter,border:`${Ze.lineWidth}px ${Ze.lineType} ${Ze.colorBorder}`,borderRadius:Ze.borderRadius,transition:`all ${Ze.motionDurationSlow}`,lineHeight:1,[`${Je}-select`]:{margin:`-${Ze.paddingBlock+1}px -${Ze.paddingInline}px`,[`&${Je}-select-single:not(${Je}-select-customize-input)`]:{[`${Je}-select-selector`]:{backgroundColor:"inherit",border:`${Ze.lineWidth}px ${Ze.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Je}-select-selector`]:{color:Ze.colorPrimary}}},[`${Je}-cascader-picker`]:{margin:`-9px -${Ze.paddingInline}px`,backgroundColor:"transparent",[`${Je}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Ae}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Ae}-search-with-button &`]:{zIndex:0}}},[`> ${Ae}:first-child, ${Ae}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Je}-select ${Je}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ae}-affix-wrapper`]:{[`&:not(:first-child) ${Ae}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Ae}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ae}:last-child, ${Ae}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Je}-select ${Je}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Ae}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ae}-search &`]:{borderStartStartRadius:Ze.borderRadius,borderEndStartRadius:Ze.borderRadius}},[`&:not(:first-child), ${Ae}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Ae}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,E.dF)()),{[`${Ae}-group-addon, ${Ae}-group-wrap, > ${Ae}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Ze.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${Ae}-affix-wrapper,
|
|
|
& > ${Ae}-number-affix-wrapper,
|
|
|
& > ${Je}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Ze.lineWidth,borderInlineEndWidth:Ze.lineWidth},[`${Ae}`]:{float:"none"},[`& > ${Je}-select > ${Je}-select-selector,
|
|
|
& > ${Je}-select-auto-complete ${Ae},
|
|
|
& > ${Je}-cascader-picker ${Ae},
|
|
|
& > ${Ae}-group-wrapper ${Ae}`]:{borderInlineEndWidth:Ze.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Je}-select-focused`]:{zIndex:1},[`& > ${Je}-select > ${Je}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Je}-select:first-child > ${Je}-select-selector,
|
|
|
& > ${Je}-select-auto-complete:first-child ${Ae},
|
|
|
& > ${Je}-cascader-picker:first-child ${Ae}`]:{borderStartStartRadius:Ze.borderRadius,borderEndStartRadius:Ze.borderRadius},[`& > *:last-child,
|
|
|
& > ${Je}-select:last-child > ${Je}-select-selector,
|
|
|
& > ${Je}-cascader-picker:last-child ${Ae},
|
|
|
& > ${Je}-cascader-picker-focused:last-child ${Ae}`]:{borderInlineEndWidth:Ze.lineWidth,borderStartEndRadius:Ze.borderRadius,borderEndEndRadius:Ze.borderRadius},[`& > ${Je}-select-auto-complete ${Ae}`]:{verticalAlign:"top"},[`${Ae}-group-wrapper + ${Ae}-group-wrapper`]:{marginInlineStart:-Ze.lineWidth,[`${Ae}-affix-wrapper`]:{borderRadius:0}},[`${Ae}-group-wrapper:not(:last-child)`]:{[`&${Ae}-search > ${Ae}-group`]:{[`& > ${Ae}-group-addon > ${Ae}-search-button`]:{borderRadius:0},[`& > ${Ae}`]:{borderStartStartRadius:Ze.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ze.borderRadius}}}})}},tt=Ze=>{const{componentCls:Ae,controlHeightSM:Je,lineWidth:Re}=Ze,$e=(Je-Re*2-16)/2;return{[Ae]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,E.Wf)(Ze)),Fe(Ze)),et(Ze,Ae)),{'&[type="color"]':{height:Ze.controlHeight,[`&${Ae}-lg`]:{height:Ze.controlHeightLG},[`&${Ae}-sm`]:{height:Je,paddingTop:$e,paddingBottom:$e}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ze=Ze=>{const{componentCls:Ae}=Ze;return{[`${Ae}-clear-icon`]:{margin:0,color:Ze.colorTextQuaternary,fontSize:Ze.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Ze.motionDurationSlow}`,"&:hover":{color:Ze.colorTextTertiary},"&:active":{color:Ze.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ze.inputAffixPadding}px`}}}},We=Ze=>{const{componentCls:Ae,inputAffixPadding:Je,colorTextDescription:Re,motionDurationSlow:vt,colorIcon:$e,colorIconHover:mt,iconCls:Be}=Ze;return{[`${Ae}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fe(Ze)),{display:"inline-flex",[`&:not(${Ae}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Se(Ze)),{zIndex:1,[`${Ae}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Ae}[disabled]`]:{background:"transparent"}},[`> input${Ae}`]:{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"'},[`${Ae}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Ze.paddingXS}},"&-show-count-suffix":{color:Re},"&-show-count-has-suffix":{marginInlineEnd:Ze.paddingXXS},"&-prefix":{marginInlineEnd:Je},"&-suffix":{marginInlineStart:Je}}}),ze(Ze)),{[`${Be}${Ae}-password-icon`]:{color:$e,cursor:"pointer",transition:`all ${vt}`,"&:hover":{color:mt}}}),et(Ze,`${Ae}-affix-wrapper`))}},lt=Ze=>{const{componentCls:Ae,colorError:Je,colorWarning:Re,borderRadiusLG:vt,borderRadiusSM:$e}=Ze;return{[`${Ae}-group`]:Object.assign(Object.assign(Object.assign({},(0,E.Wf)(Ze)),Ie(Ze)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Ae}-group-addon`]:{borderRadius:vt,fontSize:Ze.fontSizeLG}},"&-sm":{[`${Ae}-group-addon`]:{borderRadius:$e}},"&-status-error":{[`${Ae}-group-addon`]:{color:Je,borderColor:Je}},"&-status-warning":{[`${Ae}-group-addon`]:{color:Re,borderColor:Re}},"&-disabled":{[`${Ae}-group-addon`]:Object.assign({},be(Ze))},[`&:not(${Ae}-compact-first-item):not(${Ae}-compact-last-item)${Ae}-compact-item`]:{[`${Ae}, ${Ae}-group-addon`]:{borderRadius:0}},[`&:not(${Ae}-compact-last-item)${Ae}-compact-first-item`]:{[`${Ae}, ${Ae}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ae}-compact-first-item)${Ae}-compact-last-item`]:{[`${Ae}, ${Ae}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Xe=Ze=>{const{componentCls:Ae,antCls:Je}=Ze,Re=`${Ae}-search`;return{[Re]:{[`${Ae}`]:{"&:hover, &:focus":{borderColor:Ze.colorPrimaryHover,[`+ ${Ae}-group-addon ${Re}-button:not(${Je}-btn-primary)`]:{borderInlineStartColor:Ze.colorPrimaryHover}}},[`${Ae}-affix-wrapper`]:{borderRadius:0},[`${Ae}-lg`]:{lineHeight:Ze.lineHeightLG-2e-4},[`> ${Ae}-group`]:{[`> ${Ae}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Re}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Ze.borderRadius,borderEndEndRadius:Ze.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Re}-button:not(${Je}-btn-primary)`]:{color:Ze.colorTextDescription,"&:hover":{color:Ze.colorPrimaryHover},"&:active":{color:Ze.colorPrimaryActive},[`&${Je}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Re}-button`]:{height:Ze.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Re}-button`]:{height:Ze.controlHeightLG},[`&-small ${Re}-button`]:{height:Ze.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Ae}-compact-item`]:{[`&:not(${Ae}-compact-last-item)`]:{[`${Ae}-group-addon`]:{[`${Ae}-search-button`]:{marginInlineEnd:-Ze.lineWidth,borderRadius:0}}},[`&:not(${Ae}-compact-first-item)`]:{[`${Ae},${Ae}-affix-wrapper`]:{borderRadius:0}},[`> ${Ae}-group-addon ${Ae}-search-button,
|
|
|
> ${Ae},
|
|
|
${Ae}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Ae}-affix-wrapper-focused`]:{zIndex:2}}}}},Dt=Ze=>{const{componentCls:Ae,paddingLG:Je}=Ze,Re=`${Ae}-textarea`;return{[Re]:{position:"relative","&-show-count":{[`> ${Ae}`]:{height:"100%"},[`${Ae}-data-count`]:{position:"absolute",bottom:-Ze.fontSize*Ze.lineHeight,insetInlineEnd:0,color:Ze.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Ae}`]:{paddingInlineEnd:Je}},[`&-affix-wrapper${Re}-has-feedback`]:{[`${Ae}`]:{paddingInlineEnd:Je}},[`&-affix-wrapper${Ae}-affix-wrapper`]:{padding:0,[`> textarea${Ae}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Ae}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ae}-clear-icon`]:{position:"absolute",insetInlineEnd:Ze.paddingXS,insetBlockStart:Ze.paddingXS},[`${Re}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ze.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function dt(Ze){return(0,Ee.TS)(Ze,{inputAffixPadding:Ze.paddingXXS})}const Qe=Ze=>{const{controlHeight:Ae,fontSize:Je,lineHeight:Re,lineWidth:vt,controlHeightSM:$e,controlHeightLG:mt,fontSizeLG:Be,lineHeightLG:xt,paddingSM:Ve,controlPaddingHorizontalSM:Ot,controlPaddingHorizontal:nt,colorFillAlter:wt,colorPrimaryHover:Mt,controlOutlineWidth:at,controlOutline:Le,colorErrorOutline:Me,colorWarningOutline:st}=Ze;return{paddingBlock:Math.max(Math.round((Ae-Je*Re)/2*10)/10-vt,3),paddingBlockSM:Math.max(Math.round(($e-Je*Re)/2*10)/10-vt,0),paddingBlockLG:Math.ceil((mt-Be*xt)/2*10)/10-vt,paddingInline:Ve-vt,paddingInlineSM:Ot-vt,paddingInlineLG:nt-vt,addonBg:wt,activeBorderColor:Mt,hoverBorderColor:Mt,activeShadow:`0 0 0 ${at}px ${Le}`,errorActiveShadow:`0 0 0 ${at}px ${Me}`,warningActiveShadow:`0 0 0 ${at}px ${st}`}};tn.ZP=(0,Ye.Z)("Input",Ze=>{const Ae=(0,Ee.TS)(Ze,dt(Ze));return[tt(Ae),Dt(Ae),We(Ae),lt(Ae),Xe(Ae),(0,ye.c)(Ae)]},Qe)},45818:function(An,tn,ne){"use strict";ne.d(tn,{D:function(){return dt},Z:function(){return Ae}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Re,vt){return ye.createElement(Ce.Z,(0,E.Z)({},Re,{ref:vt,icon:Ye}))},pe=ye.forwardRef(Se),be=pe,De=ne(33853),Pe=ne(38819),et=ne(92310),Fe=ne.n(et),Ie=ne(2738),ze=Je=>!isNaN(parseFloat(Je))&&isFinite(Je),We=ne(36355),lt=ne(84966),Xe=function(Je,Re){var vt={};for(var $e in Je)Object.prototype.hasOwnProperty.call(Je,$e)&&Re.indexOf($e)<0&&(vt[$e]=Je[$e]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,$e=Object.getOwnPropertySymbols(Je);mt<$e.length;mt++)Re.indexOf($e[mt])<0&&Object.prototype.propertyIsEnumerable.call(Je,$e[mt])&&(vt[$e[mt]]=Je[$e[mt]]);return vt};const Dt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},dt=ye.createContext({}),Qe=(()=>{let Je=0;return function(){let Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Je+=1,`${Re}${Je}`}})();var Ae=ye.forwardRef((Je,Re)=>{const{prefixCls:vt,className:$e,trigger:mt,children:Be,defaultCollapsed:xt=!1,theme:Ve="dark",style:Ot={},collapsible:nt=!1,reverseArrow:wt=!1,width:Mt=200,collapsedWidth:at=80,zeroWidthTriggerStyle:Le,breakpoint:Me,onCollapse:st,onBreakpoint:Ht}=Je,Tt=Xe(Je,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ct}=(0,ye.useContext)(lt.Gs),[Ct,Zt]=(0,ye.useState)("collapsed"in Je?Je.collapsed:xt),[gn,$t]=(0,ye.useState)(!1);(0,ye.useEffect)(()=>{"collapsed"in Je&&Zt(Je.collapsed)},[Je.collapsed]);const Wt=(ue,he)=>{"collapsed"in Je||Zt(ue),st==null||st(ue,he)},on=(0,ye.useRef)();on.current=ue=>{$t(ue.matches),Ht==null||Ht(ue.matches),Ct!==ue.matches&&Wt(ue.matches,"responsive")},(0,ye.useEffect)(()=>{function ue(me){return on.current(me)}let he;if(typeof window!="undefined"){const{matchMedia:me}=window;if(me&&Me&&Me in Dt){he=me(`(max-width: ${Dt[Me]})`);try{he.addEventListener("change",ue)}catch(oe){he.addListener(ue)}ue(he)}}return()=>{try{he==null||he.removeEventListener("change",ue)}catch(me){he==null||he.removeListener(ue)}}},[Me]),(0,ye.useEffect)(()=>{const ue=Qe("ant-sider-");return ct.addSider(ue),()=>ct.removeSider(ue)},[]);const dn=()=>{Wt(!Ct,"clickTrigger")},{getPrefixCls:ln}=(0,ye.useContext)(We.E_),xe=()=>{const ue=ln("layout-sider",vt),he=(0,Ie.Z)(Tt,["collapsed"]),me=Ct?at:Mt,oe=ze(me)?`${me}px`:String(me),Ne=parseFloat(String(at||0))===0?ye.createElement("span",{onClick:dn,className:Fe()(`${ue}-zero-width-trigger`,`${ue}-zero-width-trigger-${wt?"right":"left"}`),style:Le},mt||ye.createElement(be,null)):null,je={expanded:wt?ye.createElement(Pe.Z,null):ye.createElement(De.Z,null),collapsed:wt?ye.createElement(De.Z,null):ye.createElement(Pe.Z,null)}[Ct?"collapsed":"expanded"],Pt=mt!==null?Ne||ye.createElement("div",{className:`${ue}-trigger`,onClick:dn,style:{width:oe}},mt||je):null,Et=Object.assign(Object.assign({},Ot),{flex:`0 0 ${oe}`,maxWidth:oe,minWidth:oe,width:oe}),ht=Fe()(ue,`${ue}-${Ve}`,{[`${ue}-collapsed`]:!!Ct,[`${ue}-has-trigger`]:nt&&mt!==null&&!Ne,[`${ue}-below`]:!!gn,[`${ue}-zero-width`]:parseFloat(oe)===0},$e);return ye.createElement("aside",Object.assign({className:ht},he,{style:Et,ref:Re}),ye.createElement("div",{className:`${ue}-children`},Be),nt||gn&&Ne?Pt:null)},fe=ye.useMemo(()=>({siderCollapsed:Ct}),[Ct]);return ye.createElement(dt.Provider,{value:fe},xe())})},84966:function(An,tn,ne){"use strict";ne.d(tn,{VY:function(){return dt},$_:function(){return Dt},h4:function(){return Xe},Gs:function(){return Ie},ZP:function(){return Qe}});var E=ne(77654),ye=ne(92310),Ee=ne.n(ye),Ye=ne(2738),Ce=ne(59301),Se=ne(36355),pe=ne(83116),De=Ze=>{const{componentCls:Ae,bodyBg:Je,lightSiderBg:Re,lightTriggerBg:vt,lightTriggerColor:$e}=Ze;return{[`${Ae}-sider-light`]:{background:Re,[`${Ae}-sider-trigger`]:{color:$e,background:vt},[`${Ae}-sider-zero-width-trigger`]:{color:$e,background:vt,border:`1px solid ${Je}`,borderInlineStart:0}}}};const Pe=Ze=>{const{antCls:Ae,componentCls:Je,colorText:Re,triggerColor:vt,footerBg:$e,triggerBg:mt,headerHeight:Be,headerPadding:xt,headerColor:Ve,footerPadding:Ot,triggerHeight:nt,zeroTriggerHeight:wt,zeroTriggerWidth:Mt,motionDurationMid:at,motionDurationSlow:Le,fontSize:Me,borderRadius:st,bodyBg:Ht,headerBg:Tt,siderBg:ct}=Ze;return{[Je]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ht,"&, *":{boxSizing:"border-box"},[`&${Je}-has-sider`]:{flexDirection:"row",[`> ${Je}, > ${Je}-content`]:{width:0}},[`${Je}-header, &${Je}-footer`]:{flex:"0 0 auto"},[`${Je}-sider`]:{position:"relative",minWidth:0,background:ct,transition:`all ${at}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ae}-menu${Ae}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:nt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:nt,color:vt,lineHeight:`${nt}px`,textAlign:"center",background:mt,cursor:"pointer",transition:`all ${at}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Be,insetInlineEnd:-Mt,zIndex:1,width:Mt,height:wt,color:vt,fontSize:Ze.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ct,borderStartStartRadius:0,borderStartEndRadius:st,borderEndEndRadius:st,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Le} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Le}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Mt,borderStartStartRadius:st,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:st}}}}},De(Ze)),{"&-rtl":{direction:"rtl"}}),[`${Je}-header`]:{height:Be,padding:xt,color:Ve,lineHeight:`${Be}px`,background:Tt,[`${Ae}-menu`]:{lineHeight:"inherit"}},[`${Je}-footer`]:{padding:Ot,color:Re,fontSize:Me,background:$e},[`${Je}-content`]:{flex:"auto",minHeight:0}}};var et=(0,pe.Z)("Layout",Ze=>[Pe(Ze)],Ze=>{const{colorBgLayout:Ae,controlHeight:Je,controlHeightLG:Re,colorText:vt,controlHeightSM:$e,marginXXS:mt,colorTextLightSolid:Be,colorBgContainer:xt}=Ze,Ve=Re*1.25;return{colorBgHeader:"#001529",colorBgBody:Ae,colorBgTrigger:"#002140",bodyBg:Ae,headerBg:"#001529",headerHeight:Je*2,headerPadding:`0 ${Ve}px`,headerColor:vt,footerPadding:`${$e}px ${Ve}px`,footerBg:Ae,siderBg:"#001529",triggerHeight:Re+mt*2,triggerBg:"#002140",triggerColor:Be,zeroTriggerWidth:Re,zeroTriggerHeight:Re,lightSiderBg:xt,lightTriggerBg:xt,lightTriggerColor:vt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Fe=function(Ze,Ae){var Je={};for(var Re in Ze)Object.prototype.hasOwnProperty.call(Ze,Re)&&Ae.indexOf(Re)<0&&(Je[Re]=Ze[Re]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Re=Object.getOwnPropertySymbols(Ze);vt<Re.length;vt++)Ae.indexOf(Re[vt])<0&&Object.prototype.propertyIsEnumerable.call(Ze,Re[vt])&&(Je[Re[vt]]=Ze[Re[vt]]);return Je};const Ie=Ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function tt(Ze){let{suffixCls:Ae,tagName:Je,displayName:Re}=Ze;return vt=>Ce.forwardRef((mt,Be)=>Ce.createElement(vt,Object.assign({ref:Be,suffixCls:Ae,tagName:Je},mt)))}const ze=Ce.forwardRef((Ze,Ae)=>{const{prefixCls:Je,suffixCls:Re,className:vt,tagName:$e}=Ze,mt=Fe(Ze,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Be}=Ce.useContext(Se.E_),xt=Be("layout",Je),[Ve,Ot]=et(xt),nt=Re?`${xt}-${Re}`:xt;return Ve(Ce.createElement($e,Object.assign({className:Ee()(Je||nt,vt,Ot),ref:Ae},mt)))}),We=Ce.forwardRef((Ze,Ae)=>{const{direction:Je}=Ce.useContext(Se.E_),[Re,vt]=Ce.useState([]),{prefixCls:$e,className:mt,rootClassName:Be,children:xt,hasSider:Ve,tagName:Ot,style:nt}=Ze,wt=Fe(Ze,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Mt=(0,Ye.Z)(wt,["suffixCls"]),{getPrefixCls:at,layout:Le}=Ce.useContext(Se.E_),Me=at("layout",$e),[st,Ht]=et(Me),Tt=Ee()(Me,{[`${Me}-has-sider`]:typeof Ve=="boolean"?Ve:Re.length>0,[`${Me}-rtl`]:Je==="rtl"},Le==null?void 0:Le.className,mt,Be,Ht),ct=Ce.useMemo(()=>({siderHook:{addSider:Ct=>{vt(Zt=>[].concat((0,E.Z)(Zt),[Ct]))},removeSider:Ct=>{vt(Zt=>Zt.filter(gn=>gn!==Ct))}}}),[]);return st(Ce.createElement(Ie.Provider,{value:ct},Ce.createElement(Ot,Object.assign({ref:Ae,className:Tt,style:Object.assign(Object.assign({},Le==null?void 0:Le.style),nt)},Mt),xt)))}),lt=tt({tagName:"div",displayName:"Layout"})(We),Xe=tt({suffixCls:"header",tagName:"header",displayName:"Header"})(ze),Dt=tt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ze),dt=tt({suffixCls:"content",tagName:"main",displayName:"Content"})(ze);var Qe=lt},40875:function(An,tn,ne){"use strict";ne.d(tn,{J:function(){return Se}});var E=ne(59301),ye=ne(33234),Ee=ne(70425),Ye=function(pe,be){var De={};for(var Pe in pe)Object.prototype.hasOwnProperty.call(pe,Pe)&&be.indexOf(Pe)<0&&(De[Pe]=pe[Pe]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Pe=Object.getOwnPropertySymbols(pe);et<Pe.length;et++)be.indexOf(Pe[et])<0&&Object.prototype.propertyIsEnumerable.call(pe,Pe[et])&&(De[Pe[et]]=pe[Pe[et]]);return De};const Ce=E.createContext(null),Se=E.forwardRef((pe,be)=>{const{children:De}=pe,Pe=Ye(pe,["children"]),et=E.useContext(Ce),Fe=E.useMemo(()=>Object.assign(Object.assign({},et),Pe),[et,Pe.prefixCls,Pe.mode,Pe.selectable]);return E.createElement(Ce.Provider,{value:Fe},E.createElement(ye.BR,null,(0,Ee.supportNodeRef)(De)?E.cloneElement(De,{ref:be}):De))});tn.Z=Ce},20834:function(An,tn,ne){"use strict";ne.d(tn,{default:function(){return fe}});var E=ne(15285),ye=ne(59301),Ee=ne(45818),Ye=ne(92310),Ce=ne.n(Ye),Se=ne(36355),pe=function(ue,he){var me={};for(var oe in ue)Object.prototype.hasOwnProperty.call(ue,oe)&&he.indexOf(oe)<0&&(me[oe]=ue[oe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,oe=Object.getOwnPropertySymbols(ue);Ne<oe.length;Ne++)he.indexOf(oe[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ue,oe[Ne])&&(me[oe[Ne]]=ue[oe[Ne]]);return me},De=ue=>{const{prefixCls:he,className:me,dashed:oe}=ue,Ne=pe(ue,["prefixCls","className","dashed"]),{getPrefixCls:At}=ye.useContext(Se.E_),Ge=At("menu",he),je=Ce()({[`${Ge}-item-divider-dashed`]:!!oe},me);return ye.createElement(E.iz,Object.assign({className:je},Ne))},Pe=ne(11592),et=ne(2738),Fe=ne(6848),Ie=ne(92343),ze=(0,ye.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),lt=ue=>{var he;const{className:me,children:oe,icon:Ne,title:At,danger:Ge}=ue,{prefixCls:je,firstLevel:Pt,direction:Et,disableMenuItemTitleTooltip:ht,inlineCollapsed:Kt}=ye.useContext(ze),vn=gt=>{const Vt=ye.createElement("span",{className:`${je}-title-content`},oe);return(!Ne||(0,Ie.l$)(oe)&&oe.type==="span")&&oe&>&&Pt&&typeof oe=="string"?ye.createElement("div",{className:`${je}-inline-collapsed-noicon`},oe.charAt(0)):Vt},{siderCollapsed:kt}=ye.useContext(Ee.D);let Ut=At;typeof At=="undefined"?Ut=Pt?oe:"":At===!1&&(Ut="");const yn={title:Ut};!kt&&!Kt&&(yn.title=null,yn.open=!1);const Bt=(0,Pe.Z)(oe).length;let Ke=ye.createElement(E.ck,Object.assign({},(0,et.Z)(ue,["title","icon","danger"]),{className:Ce()({[`${je}-item-danger`]:Ge,[`${je}-item-only-child`]:(Ne?Bt+1:Bt)===1},me),title:typeof At=="string"?At:void 0}),(0,Ie.Tm)(Ne,{className:Ce()((0,Ie.l$)(Ne)?(he=Ne.props)===null||he===void 0?void 0:he.className:"",`${je}-item-icon`)}),vn(Kt));return ht||(Ke=ye.createElement(Fe.Z,Object.assign({},yn,{placement:Et==="rtl"?"left":"right",overlayClassName:`${je}-inline-collapsed-tooltip`}),Ke)),Ke},Dt=ue=>{var he;const{popupClassName:me,icon:oe,title:Ne,theme:At}=ue,Ge=ye.useContext(ze),{prefixCls:je,inlineCollapsed:Pt,theme:Et}=Ge,ht=(0,E.Xl)();let Kt;if(!oe)Kt=Pt&&!ht.length&&Ne&&typeof Ne=="string"?ye.createElement("div",{className:`${je}-inline-collapsed-noicon`},Ne.charAt(0)):ye.createElement("span",{className:`${je}-title-content`},Ne);else{const kt=(0,Ie.l$)(Ne)&&Ne.type==="span";Kt=ye.createElement(ye.Fragment,null,(0,Ie.Tm)(oe,{className:Ce()((0,Ie.l$)(oe)?(he=oe.props)===null||he===void 0?void 0:he.className:"",`${je}-item-icon`)}),kt?Ne:ye.createElement("span",{className:`${je}-title-content`},Ne))}const vn=ye.useMemo(()=>Object.assign(Object.assign({},Ge),{firstLevel:!1}),[Ge]);return ye.createElement(ze.Provider,{value:vn},ye.createElement(E.Wd,Object.assign({},(0,et.Z)(ue,["icon"]),{title:Kt,popupClassName:Ce()(je,me,`${je}-${At||Et}`)})))},dt=ne(18785),Qe=ne(70425),Ze=ne(62892),Ae=ne(40875),Je=function(ue,he){var me={};for(var oe in ue)Object.prototype.hasOwnProperty.call(ue,oe)&&he.indexOf(oe)<0&&(me[oe]=ue[oe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,oe=Object.getOwnPropertySymbols(ue);Ne<oe.length;Ne++)he.indexOf(oe[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ue,oe[Ne])&&(me[oe[Ne]]=ue[oe[Ne]]);return me};function Re(ue){return(ue||[]).map((he,me)=>{if(he&&typeof he=="object"){const oe=he,{label:Ne,children:At,key:Ge,type:je}=oe,Pt=Je(oe,["label","children","key","type"]),Et=Ge!=null?Ge:`tmp-${me}`;return At||je==="group"?je==="group"?ye.createElement(E.BW,Object.assign({key:Et},Pt,{title:Ne}),Re(At)):ye.createElement(Dt,Object.assign({key:Et},Pt,{title:Ne}),Re(At)):je==="divider"?ye.createElement(De,Object.assign({key:Et},Pt)):ye.createElement(lt,Object.assign({key:Et},Pt),Ne)}return null}).filter(he=>he)}function vt(ue){return ye.useMemo(()=>ue&&Re(ue),[ue])}var $e=ne(64993),mt=ne(17313),Be=ne(8378),xt=ne(13826),Ve=ne(29878),Ot=ne(83116),nt=ne(37613),Mt=ue=>{const{componentCls:he,motionDurationSlow:me,horizontalLineHeight:oe,colorSplit:Ne,lineWidth:At,lineType:Ge,itemPaddingInline:je}=ue;return{[`${he}-horizontal`]:{lineHeight:oe,border:0,borderBottom:`${At}px ${Ge} ${Ne}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:je},[`> ${he}-item:hover,
|
|
|
> ${he}-item-active,
|
|
|
> ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${me}`,`background ${me}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},Le=ue=>{let{componentCls:he,menuArrowOffset:me}=ue;return{[`${he}-rtl`]:{direction:"rtl"},[`${he}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${he}-rtl${he}-vertical,
|
|
|
${he}-submenu-rtl ${he}-vertical`]:{[`${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${me})`},"&::after":{transform:`rotate(45deg) translateY(${me})`}}}}};const Me=ue=>Object.assign({},(0,mt.oN)(ue));var Ht=(ue,he)=>{const{componentCls:me,itemColor:oe,itemSelectedColor:Ne,groupTitleColor:At,itemBg:Ge,subMenuItemBg:je,itemSelectedBg:Pt,activeBarHeight:Et,activeBarWidth:ht,activeBarBorderWidth:Kt,motionDurationSlow:vn,motionEaseInOut:kt,motionEaseOut:Ut,itemPaddingInline:yn,motionDurationMid:Bt,itemHoverColor:Ke,lineType:gt,colorSplit:Vt,itemDisabledColor:Nt,dangerItemColor:Xt,dangerItemHoverColor:Mn,dangerItemSelectedColor:Tn,dangerItemActiveBg:Rn,dangerItemSelectedBg:ur,itemHoverBg:vr,itemActiveBg:dr,menuSubMenuBg:mn,horizontalItemSelectedColor:zn,horizontalItemSelectedBg:jn,horizontalItemBorderRadius:Xn,horizontalItemHoverBg:Sr,popupBg:Kr}=ue;return{[`${me}-${he}, ${me}-${he} > ${me}`]:{color:oe,background:Ge,[`&${me}-root:focus-visible`]:Object.assign({},Me(ue)),[`${me}-item-group-title`]:{color:At},[`${me}-submenu-selected`]:{[`> ${me}-submenu-title`]:{color:Ne}},[`${me}-item-disabled, ${me}-submenu-disabled`]:{color:`${Nt} !important`},[`${me}-item:not(${me}-item-selected):not(${me}-submenu-selected)`]:{[`&:hover, > ${me}-submenu-title:hover`]:{color:Ke}},[`&:not(${me}-horizontal)`]:{[`${me}-item:not(${me}-item-selected)`]:{"&:hover":{backgroundColor:vr},"&:active":{backgroundColor:dr}},[`${me}-submenu-title`]:{"&:hover":{backgroundColor:vr},"&:active":{backgroundColor:dr}}},[`${me}-item-danger`]:{color:Xt,[`&${me}-item:hover`]:{[`&:not(${me}-item-selected):not(${me}-submenu-selected)`]:{color:Mn}},[`&${me}-item:active`]:{background:Rn}},[`${me}-item a`]:{"&, &:hover":{color:"inherit"}},[`${me}-item-selected`]:{color:Ne,[`&${me}-item-danger`]:{color:Tn},"a, a:hover":{color:"inherit"}},[`& ${me}-item-selected`]:{backgroundColor:Pt,[`&${me}-item-danger`]:{backgroundColor:ur}},[`${me}-item, ${me}-submenu-title`]:{[`&:not(${me}-item-disabled):focus-visible`]:Object.assign({},Me(ue))},[`&${me}-submenu > ${me}`]:{backgroundColor:mn},[`&${me}-popup > ${me}`]:{backgroundColor:Kr},[`&${me}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${me}-item, > ${me}-submenu`]:{top:Kt,marginTop:-Kt,marginBottom:0,borderRadius:Xn,"&::after":{position:"absolute",insetInline:yn,bottom:0,borderBottom:`${Et}px solid transparent`,transition:`border-color ${vn} ${kt}`,content:'""'},"&:hover, &-active, &-open":{background:Sr,"&::after":{borderBottomWidth:Et,borderBottomColor:zn}},"&-selected":{color:zn,backgroundColor:jn,"&:hover":{backgroundColor:jn},"&::after":{borderBottomWidth:Et,borderBottomColor:zn}}}}),[`&${me}-root`]:{[`&${me}-inline, &${me}-vertical`]:{borderInlineEnd:`${Kt}px ${gt} ${Vt}`}},[`&${me}-inline`]:{[`${me}-sub${me}-inline`]:{background:je},[`${me}-item, ${me}-submenu-title`]:Kt&&ht?{width:`calc(100% + ${Kt}px)`}:{},[`${me}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ht}px solid ${Ne}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Bt} ${Ut}`,`opacity ${Bt} ${Ut}`].join(","),content:'""'},[`&${me}-item-danger`]:{"&::after":{borderInlineEndColor:Tn}}},[`${me}-selected, ${me}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Bt} ${kt}`,`opacity ${Bt} ${kt}`].join(",")}}}}}};const Tt=ue=>{const{componentCls:he,itemHeight:me,itemMarginInline:oe,padding:Ne,menuArrowSize:At,marginXS:Ge,itemMarginBlock:je}=ue,Pt=Ne+At+Ge;return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:me,lineHeight:`${me}px`,paddingInline:Ne,overflow:"hidden",textOverflow:"ellipsis",marginInline:oe,marginBlock:je,width:`calc(100% - ${oe*2}px)`},[`> ${he}-item,
|
|
|
> ${he}-submenu > ${he}-submenu-title`]:{height:me,lineHeight:`${me}px`},[`${he}-item-group-list ${he}-submenu-title,
|
|
|
${he}-submenu-title`]:{paddingInlineEnd:Pt}}};var Ct=ue=>{const{componentCls:he,iconCls:me,itemHeight:oe,colorTextLightSolid:Ne,dropdownWidth:At,controlHeightLG:Ge,motionDurationMid:je,motionEaseOut:Pt,paddingXL:Et,itemMarginInline:ht,fontSizeLG:Kt,motionDurationSlow:vn,paddingXS:kt,boxShadowSecondary:Ut,collapsedWidth:yn,collapsedIconSize:Bt}=ue,Ke={height:oe,lineHeight:`${oe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},Tt(ue))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},Tt(ue)),{boxShadow:Ut})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:At,maxHeight:`calc(100vh - ${Ge*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${he}-inline`]:{width:"100%",[`&${he}-root`]:{[`${he}-item, ${he}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${vn}`,`background ${vn}`,`padding ${je} ${Pt}`].join(","),[`> ${he}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${he}-sub${he}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${he}-submenu > ${he}-submenu-title`]:Ke,[`& ${he}-item-group-title`]:{paddingInlineStart:Et}},[`${he}-item`]:Ke}},{[`${he}-inline-collapsed`]:{width:yn,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:Kt,textAlign:"center"}}},[`> ${he}-item,
|
|
|
> ${he}-item-group > ${he}-item-group-list > ${he}-item,
|
|
|
> ${he}-item-group > ${he}-item-group-list > ${he}-submenu > ${he}-submenu-title,
|
|
|
> ${he}-submenu > ${he}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Kt/2}px - ${ht}px)`,textOverflow:"clip",[`
|
|
|
${he}-submenu-arrow,
|
|
|
${he}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${he}-item-icon, ${me}`]:{margin:0,fontSize:Bt,lineHeight:`${oe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${me}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${me}`]:{display:"none"},"a, a:hover":{color:Ne}},[`${he}-item-group-title`]:Object.assign(Object.assign({},mt.vS),{paddingInline:kt})}}]};const Zt=ue=>{const{componentCls:he,motionDurationSlow:me,motionDurationMid:oe,motionEaseInOut:Ne,motionEaseOut:At,iconCls:Ge,iconSize:je,iconMarginInlineEnd:Pt}=ue;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${me}`,`background ${me}`,`padding ${me} ${Ne}`].join(","),[`${he}-item-icon, ${Ge}`]:{minWidth:je,fontSize:je,transition:[`font-size ${oe} ${At}`,`margin ${me} ${Ne}`,`color ${me}`].join(","),"+ span":{marginInlineStart:Pt,opacity:1,transition:[`opacity ${me} ${Ne}`,`margin ${me}`,`color ${me}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,mt.Ro)()),[`&${he}-item-only-child`]:{[`> ${Ge}, > ${he}-item-icon`]:{marginInlineEnd:0}}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},gn=ue=>{const{componentCls:he,motionDurationSlow:me,motionEaseInOut:oe,borderRadius:Ne,menuArrowSize:At,menuArrowOffset:Ge}=ue;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ue.margin,width:At,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${me} ${oe}, opacity ${me}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:At*.6,height:At*.15,backgroundColor:"currentcolor",borderRadius:Ne,transition:[`background ${me} ${oe}`,`transform ${me} ${oe}`,`top ${me} ${oe}`,`color ${me} ${oe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ge})`},"&::after":{transform:`rotate(-45deg) translateY(${Ge})`}}}}},$t=ue=>{const{antCls:he,componentCls:me,fontSize:oe,motionDurationSlow:Ne,motionDurationMid:At,motionEaseInOut:Ge,paddingXS:je,padding:Pt,colorSplit:Et,lineWidth:ht,zIndexPopup:Kt,borderRadiusLG:vn,subMenuItemBorderRadius:kt,menuArrowSize:Ut,menuArrowOffset:yn,lineType:Bt,menuPanelMaskInset:Ke,groupTitleLineHeight:gt,groupTitleFontSize:Vt}=ue;return[{"":{[`${me}`]:Object.assign(Object.assign({},(0,mt.dF)()),{"&-hidden":{display:"none"}})},[`${me}-submenu-hidden`]:{display:"none"}},{[me]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,mt.Wf)(ue)),(0,mt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:oe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ne} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${me}-item`]:{flex:"none"}},[`${me}-item, ${me}-submenu, ${me}-submenu-title`]:{borderRadius:ue.itemBorderRadius},[`${me}-item-group-title`]:{padding:`${je}px ${Pt}px`,fontSize:Vt,lineHeight:gt,transition:`all ${Ne}`},[`&-horizontal ${me}-submenu`]:{transition:[`border-color ${Ne} ${Ge}`,`background ${Ne} ${Ge}`].join(",")},[`${me}-submenu, ${me}-submenu-inline`]:{transition:[`border-color ${Ne} ${Ge}`,`background ${Ne} ${Ge}`,`padding ${At} ${Ge}`].join(",")},[`${me}-submenu ${me}-sub`]:{cursor:"initial",transition:[`background ${Ne} ${Ge}`,`padding ${Ne} ${Ge}`].join(",")},[`${me}-title-content`]:{transition:`color ${Ne}`},[`${me}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${me}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Et,borderStyle:Bt,borderWidth:0,borderTopWidth:ht,marginBlock:ht,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Zt(ue)),{[`${me}-item-group`]:{[`${me}-item-group-list`]:{margin:0,padding:0,[`${me}-item, ${me}-submenu-title`]:{paddingInline:`${oe*2}px ${Pt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Kt,borderRadius:vn,boxShadow:"none",transformOrigin:"0 0",[`&${me}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ke}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ke},"\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},[`> ${me}`]:Object.assign(Object.assign(Object.assign({borderRadius:vn},Zt(ue)),gn(ue)),{[`${me}-item, ${me}-submenu > ${me}-submenu-title`]:{borderRadius:kt},[`${me}-submenu-title::after`]:{transition:`transform ${Ne} ${Ge}`}})}}),gn(ue)),{[`&-inline-collapsed ${me}-submenu-arrow,
|
|
|
&-inline ${me}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${yn})`},"&::after":{transform:`rotate(45deg) translateX(-${yn})`}},[`${me}-submenu-open${me}-submenu-inline > ${me}-submenu-title > ${me}-submenu-arrow`]:{transform:`translateY(-${Ut*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${yn})`},"&::before":{transform:`rotate(45deg) translateX(${yn})`}}})},{[`${he}-layout-header`]:{[me]:{lineHeight:"inherit"}}}]};var Wt=(ue,he)=>(0,Ot.Z)("Menu",oe=>{if(he===!1)return[];const{colorBgElevated:Ne,colorPrimary:At,colorTextLightSolid:Ge,controlHeightLG:je,fontSize:Pt,darkItemColor:Et,darkDangerItemColor:ht,darkItemBg:Kt,darkSubMenuItemBg:vn,darkItemSelectedColor:kt,darkItemSelectedBg:Ut,darkDangerItemSelectedBg:yn,darkItemHoverBg:Bt,darkGroupTitleColor:Ke,darkItemHoverColor:gt,darkItemDisabledColor:Vt,darkDangerItemHoverColor:Nt,darkDangerItemSelectedColor:Xt,darkDangerItemActiveBg:Mn}=oe,Tn=Pt/7*5,Rn=(0,nt.TS)(oe,{menuArrowSize:Tn,menuHorizontalHeight:je*1.15,menuArrowOffset:`${Tn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ne}),ur=(0,nt.TS)(Rn,{itemColor:Et,itemHoverColor:gt,groupTitleColor:Ke,itemSelectedColor:kt,itemBg:Kt,popupBg:Kt,subMenuItemBg:vn,itemActiveBg:"transparent",itemSelectedBg:Ut,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Bt,itemDisabledColor:Vt,dangerItemColor:ht,dangerItemHoverColor:Nt,dangerItemSelectedColor:Xt,dangerItemActiveBg:Mn,dangerItemSelectedBg:yn,menuSubMenuBg:vn,horizontalItemSelectedColor:Ge,horizontalItemSelectedBg:At});return[$t(Rn),Mt(Rn),Ct(Rn),Ht(Rn,"light"),Ht(ur,"dark"),Le(Rn),(0,Be.Z)(Rn),(0,xt.oN)(Rn,"slide-up"),(0,xt.oN)(Rn,"slide-down"),(0,Ve._y)(Rn,"zoom-big")]},oe=>{const{colorPrimary:Ne,colorError:At,colorTextDisabled:Ge,colorErrorBg:je,colorText:Pt,colorTextDescription:Et,colorBgContainer:ht,colorFillAlter:Kt,colorFillContent:vn,lineWidth:kt,lineWidthBold:Ut,controlItemBgActive:yn,colorBgTextHover:Bt,controlHeightLG:Ke,lineHeight:gt,colorBgElevated:Vt,marginXXS:Nt,padding:Xt,fontSize:Mn,controlHeightSM:Tn,fontSizeLG:Rn,colorTextLightSolid:ur,colorErrorHover:vr}=oe,dr=new $e.C(ur).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:oe.zIndexPopupBase+50,radiusItem:oe.borderRadiusLG,itemBorderRadius:oe.borderRadiusLG,radiusSubMenuItem:oe.borderRadiusSM,subMenuItemBorderRadius:oe.borderRadiusSM,colorItemText:Pt,itemColor:Pt,colorItemTextHover:Pt,itemHoverColor:Pt,colorItemTextHoverHorizontal:Ne,horizontalItemHoverColor:Ne,colorGroupTitle:Et,groupTitleColor:Et,colorItemTextSelected:Ne,itemSelectedColor:Ne,colorItemTextSelectedHorizontal:Ne,horizontalItemSelectedColor:Ne,colorItemBg:ht,itemBg:ht,colorItemBgHover:Bt,itemHoverBg:Bt,colorItemBgActive:vn,itemActiveBg:yn,colorSubItemBg:Kt,subMenuItemBg:Kt,colorItemBgSelected:yn,itemSelectedBg:yn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ut,activeBarHeight:Ut,colorActiveBarBorderSize:kt,activeBarBorderWidth:kt,colorItemTextDisabled:Ge,itemDisabledColor:Ge,colorDangerItemText:At,dangerItemColor:At,colorDangerItemTextHover:At,dangerItemHoverColor:At,colorDangerItemTextSelected:At,dangerItemSelectedColor:At,colorDangerItemBgActive:je,dangerItemActiveBg:je,colorDangerItemBgSelected:je,dangerItemSelectedBg:je,itemMarginInline:oe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ke,groupTitleLineHeight:gt,collapsedWidth:Ke*2,popupBg:Vt,itemMarginBlock:Nt,itemPaddingInline:Xt,horizontalLineHeight:`${Ke*1.15}px`,iconSize:Mn,iconMarginInlineEnd:Tn-Mn,collapsedIconSize:Rn,groupTitleFontSize:Mn,darkItemDisabledColor:new $e.C(ur).setAlpha(.25).toRgbString(),darkItemColor:dr,darkDangerItemColor:At,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ur,darkItemSelectedBg:Ne,darkDangerItemSelectedBg:At,darkItemHoverBg:"transparent",darkGroupTitleColor:dr,darkItemHoverColor:ur,darkDangerItemHoverColor:vr,darkDangerItemSelectedColor:ur,darkDangerItemActiveBg:At}},{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),on=function(ue,he){var me={};for(var oe in ue)Object.prototype.hasOwnProperty.call(ue,oe)&&he.indexOf(oe)<0&&(me[oe]=ue[oe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,oe=Object.getOwnPropertySymbols(ue);Ne<oe.length;Ne++)he.indexOf(oe[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ue,oe[Ne])&&(me[oe[Ne]]=ue[oe[Ne]]);return me},ln=(0,ye.forwardRef)((ue,he)=>{var me,oe;const Ne=ye.useContext(Ae.Z),At=Ne||{},{getPrefixCls:Ge,getPopupContainer:je,direction:Pt,menu:Et}=ye.useContext(Se.E_),ht=Ge(),{prefixCls:Kt,className:vn,style:kt,theme:Ut="light",expandIcon:yn,_internalDisableMenuItemTitleTooltip:Bt,inlineCollapsed:Ke,siderCollapsed:gt,items:Vt,children:Nt,rootClassName:Xt,mode:Mn,selectable:Tn,onClick:Rn,overflowedIndicatorPopupClassName:ur}=ue,vr=on(ue,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),dr=(0,et.Z)(vr,["collapsedWidth"]),mn=vt(Vt)||Nt;(me=At.validator)===null||me===void 0||me.call(At,{mode:Mn});const zn=(0,Qe.useEvent)(function(){var Kn;Rn==null||Rn.apply(void 0,arguments),(Kn=At.onClick)===null||Kn===void 0||Kn.call(At)}),jn=At.mode||Mn,Xn=Tn!=null?Tn:At.selectable,Sr=ye.useMemo(()=>gt!==void 0?gt:Ke,[Ke,gt]),Kr={horizontal:{motionName:`${ht}-slide-up`},inline:(0,Ze.Z)(ht),other:{motionName:`${ht}-zoom-big`}},ar=Ge("menu",Kt||At.prefixCls),[Zn,Wr]=Wt(ar,!Ne),Gt=Ce()(`${ar}-${Ut}`,Et==null?void 0:Et.className,vn);let or;if(typeof yn=="function")or=yn;else if(yn===null||yn===!1)or=null;else if(At.expandIcon===null||At.expandIcon===!1)or=null;else{const Kn=yn!=null?yn:At.expandIcon;or=(0,Ie.Tm)(Kn,{className:Ce()(`${ar}-submenu-expand-icon`,(0,Ie.l$)(Kn)?(oe=Kn.props)===null||oe===void 0?void 0:oe.className:"")})}const er=ye.useMemo(()=>({prefixCls:ar,inlineCollapsed:Sr||!1,direction:Pt,firstLevel:!0,theme:Ut,mode:jn,disableMenuItemTitleTooltip:Bt}),[ar,Sr,Pt,Bt,Ut]);return Zn(ye.createElement(Ae.Z.Provider,{value:null},ye.createElement(ze.Provider,{value:er},ye.createElement(E.ZP,Object.assign({getPopupContainer:je,overflowedIndicator:ye.createElement(dt.Z,null),overflowedIndicatorPopupClassName:Ce()(ar,`${ar}-${Ut}`,ur),mode:jn,selectable:Xn,onClick:zn},dr,{inlineCollapsed:Sr,style:Object.assign(Object.assign({},Et==null?void 0:Et.style),kt),className:Gt,prefixCls:ar,direction:Pt,defaultMotions:Kr,expandIcon:or,ref:he,rootClassName:Ce()(Xt,Wr)}),mn))))});const xe=(0,ye.forwardRef)((ue,he)=>{const me=(0,ye.useRef)(null),oe=ye.useContext(Ee.D);return(0,ye.useImperativeHandle)(he,()=>({menu:me.current,focus:Ne=>{var At;(At=me.current)===null||At===void 0||At.focus(Ne)}})),ye.createElement(ln,Object.assign({ref:me},ue,oe))});xe.Item=lt,xe.SubMenu=Dt,xe.Divider=De,xe.ItemGroup=E.BW;var fe=xe},58421:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return At}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(je,Pt){return ye.createElement(Ce.Z,(0,E.Z)({},je,{ref:Pt,icon:Ye}))},pe=ye.forwardRef(Se),be=pe,De=ne(49198),Pe=ne(33853),et=ne(38819),Fe=ne(92310),Ie=ne.n(Fe),tt=ne(18642),ze=ne(85899),We=ne(38705),lt=ne(17212),Xe=ne(39153),Dt=ne(55401),dt=ne(26112),Qe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ze=Qe,Ae=ne(91735),Je=function(Ge){(0,Xe.Z)(Pt,Ge);var je=(0,Dt.Z)(Pt);function Pt(){var Et;(0,We.Z)(this,Pt);for(var ht=arguments.length,Kt=new Array(ht),vn=0;vn<ht;vn++)Kt[vn]=arguments[vn];return Et=je.call.apply(je,[this].concat(Kt)),Et.state={goInputText:""},Et.getValidValue=function(){var kt=Et.state.goInputText;return!kt||Number.isNaN(kt)?void 0:Number(kt)},Et.buildOptionText=function(kt){return"".concat(kt," ").concat(Et.props.locale.items_per_page)},Et.changeSize=function(kt){Et.props.changeSize(Number(kt))},Et.handleChange=function(kt){Et.setState({goInputText:kt.target.value})},Et.handleBlur=function(kt){var Ut=Et.props,yn=Ut.goButton,Bt=Ut.quickGo,Ke=Ut.rootPrefixCls,gt=Et.state.goInputText;yn||gt===""||(Et.setState({goInputText:""}),!(kt.relatedTarget&&(kt.relatedTarget.className.indexOf("".concat(Ke,"-item-link"))>=0||kt.relatedTarget.className.indexOf("".concat(Ke,"-item"))>=0))&&Bt(Et.getValidValue()))},Et.go=function(kt){var Ut=Et.state.goInputText;Ut!==""&&(kt.keyCode===Ze.ENTER||kt.type==="click")&&(Et.setState({goInputText:""}),Et.props.quickGo(Et.getValidValue()))},Et}return(0,lt.Z)(Pt,[{key:"getPageSizeOptions",value:function(){var ht=this.props,Kt=ht.pageSize,vn=ht.pageSizeOptions;return vn.some(function(kt){return kt.toString()===Kt.toString()})?vn:vn.concat([Kt.toString()]).sort(function(kt,Ut){var yn=Number.isNaN(Number(kt))?0:Number(kt),Bt=Number.isNaN(Number(Ut))?0:Number(Ut);return yn-Bt})}},{key:"render",value:function(){var ht=this,Kt=this.props,vn=Kt.pageSize,kt=Kt.locale,Ut=Kt.rootPrefixCls,yn=Kt.changeSize,Bt=Kt.quickGo,Ke=Kt.goButton,gt=Kt.selectComponentClass,Vt=Kt.buildOptionText,Nt=Kt.selectPrefixCls,Xt=Kt.disabled,Mn=this.state.goInputText,Tn="".concat(Ut,"-options"),Rn=gt,ur=null,vr=null,dr=null;if(!yn&&!Bt)return null;var mn=this.getPageSizeOptions();if(yn&&Rn){var zn=mn.map(function(jn,Xn){return ye.createElement(Rn.Option,{key:Xn,value:jn.toString()},(Vt||ht.buildOptionText)(jn))});ur=ye.createElement(Rn,{disabled:Xt,prefixCls:Nt,showSearch:!1,className:"".concat(Tn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(vn||mn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Xn){return Xn.parentNode},"aria-label":kt.page_size,defaultOpen:!1},zn)}return Bt&&(Ke&&(dr=typeof Ke=="boolean"?ye.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Xt,className:"".concat(Tn,"-quick-jumper-button")},kt.jump_to_confirm):ye.createElement("span",{onClick:this.go,onKeyUp:this.go},Ke)),vr=ye.createElement("div",{className:"".concat(Tn,"-quick-jumper")},kt.jump_to,ye.createElement("input",{disabled:Xt,type:"text",value:Mn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":kt.page}),kt.page,dr)),ye.createElement("li",{className:"".concat(Tn)},ur,vr)}}]),Pt}(ye.Component);Je.defaultProps={pageSizeOptions:["10","20","50","100"]};var Re=Je,vt=function(je){var Pt,Et=je.rootPrefixCls,ht=je.page,Kt=je.active,vn=je.className,kt=je.showTitle,Ut=je.onClick,yn=je.onKeyPress,Bt=je.itemRender,Ke="".concat(Et,"-item"),gt=Ie()(Ke,"".concat(Ke,"-").concat(ht),(Pt={},(0,tt.Z)(Pt,"".concat(Ke,"-active"),Kt),(0,tt.Z)(Pt,"".concat(Ke,"-disabled"),!ht),(0,tt.Z)(Pt,je.className,vn),Pt)),Vt=function(){Ut(ht)},Nt=function(Tn){yn(Tn,Ut,ht)},Xt=Bt(ht,"page",ye.createElement("a",{rel:"nofollow"},ht));return Xt?ye.createElement("li",{title:kt?ht.toString():null,className:gt,onClick:Vt,onKeyPress:Nt,tabIndex:0},Xt):null},$e=vt;function mt(){}function Be(Ge){var je=Number(Ge);return typeof je=="number"&&!Number.isNaN(je)&&isFinite(je)&&Math.floor(je)===je}var xt=function(je,Pt,Et){return Et};function Ve(Ge,je,Pt){var Et=typeof Ge=="undefined"?je.pageSize:Ge;return Math.floor((Pt.total-1)/Et)+1}var Ot=function(Ge){(0,Xe.Z)(Pt,Ge);var je=(0,Dt.Z)(Pt);function Pt(Et){var ht;(0,We.Z)(this,Pt),ht=je.call(this,Et),ht.paginationNode=ye.createRef(),ht.getJumpPrevPage=function(){return Math.max(1,ht.state.current-(ht.props.showLessItems?3:5))},ht.getJumpNextPage=function(){return Math.min(Ve(void 0,ht.state,ht.props),ht.state.current+(ht.props.showLessItems?3:5))},ht.getItemIcon=function(yn,Bt){var Ke=ht.props.prefixCls,gt=yn||ye.createElement("button",{type:"button","aria-label":Bt,className:"".concat(Ke,"-item-link")});return typeof yn=="function"&&(gt=ye.createElement(yn,(0,ze.Z)({},ht.props))),gt},ht.isValid=function(yn){var Bt=ht.props.total;return Be(yn)&&yn!==ht.state.current&&Be(Bt)&&Bt>0},ht.shouldDisplayQuickJumper=function(){var yn=ht.props,Bt=yn.showQuickJumper,Ke=yn.total,gt=ht.state.pageSize;return Ke<=gt?!1:Bt},ht.handleKeyDown=function(yn){(yn.keyCode===Ze.ARROW_UP||yn.keyCode===Ze.ARROW_DOWN)&&yn.preventDefault()},ht.handleKeyUp=function(yn){var Bt=ht.getValidValue(yn),Ke=ht.state.currentInputValue;Bt!==Ke&&ht.setState({currentInputValue:Bt}),yn.keyCode===Ze.ENTER?ht.handleChange(Bt):yn.keyCode===Ze.ARROW_UP?ht.handleChange(Bt-1):yn.keyCode===Ze.ARROW_DOWN&&ht.handleChange(Bt+1)},ht.handleBlur=function(yn){var Bt=ht.getValidValue(yn);ht.handleChange(Bt)},ht.changePageSize=function(yn){var Bt=ht.state.current,Ke=Ve(yn,ht.state,ht.props);Bt=Bt>Ke?Ke:Bt,Ke===0&&(Bt=ht.state.current),typeof yn=="number"&&("pageSize"in ht.props||ht.setState({pageSize:yn}),"current"in ht.props||ht.setState({current:Bt,currentInputValue:Bt})),ht.props.onShowSizeChange(Bt,yn),"onChange"in ht.props&&ht.props.onChange&&ht.props.onChange(Bt,yn)},ht.handleChange=function(yn){var Bt=ht.props,Ke=Bt.disabled,gt=Bt.onChange,Vt=ht.state,Nt=Vt.pageSize,Xt=Vt.current,Mn=Vt.currentInputValue;if(ht.isValid(yn)&&!Ke){var Tn=Ve(void 0,ht.state,ht.props),Rn=yn;return yn>Tn?Rn=Tn:yn<1&&(Rn=1),"current"in ht.props||ht.setState({current:Rn}),Rn!==Mn&&ht.setState({currentInputValue:Rn}),gt(Rn,Nt),Rn}return Xt},ht.prev=function(){ht.hasPrev()&&ht.handleChange(ht.state.current-1)},ht.next=function(){ht.hasNext()&&ht.handleChange(ht.state.current+1)},ht.jumpPrev=function(){ht.handleChange(ht.getJumpPrevPage())},ht.jumpNext=function(){ht.handleChange(ht.getJumpNextPage())},ht.hasPrev=function(){return ht.state.current>1},ht.hasNext=function(){return ht.state.current<Ve(void 0,ht.state,ht.props)},ht.runIfEnter=function(yn,Bt){if(yn.key==="Enter"||yn.charCode===13){for(var Ke=arguments.length,gt=new Array(Ke>2?Ke-2:0),Vt=2;Vt<Ke;Vt++)gt[Vt-2]=arguments[Vt];Bt.apply(void 0,gt)}},ht.runIfEnterPrev=function(yn){ht.runIfEnter(yn,ht.prev)},ht.runIfEnterNext=function(yn){ht.runIfEnter(yn,ht.next)},ht.runIfEnterJumpPrev=function(yn){ht.runIfEnter(yn,ht.jumpPrev)},ht.runIfEnterJumpNext=function(yn){ht.runIfEnter(yn,ht.jumpNext)},ht.handleGoTO=function(yn){(yn.keyCode===Ze.ENTER||yn.type==="click")&&ht.handleChange(ht.state.currentInputValue)},ht.renderPrev=function(yn){var Bt=ht.props,Ke=Bt.prevIcon,gt=Bt.itemRender,Vt=gt(yn,"prev",ht.getItemIcon(Ke,"prev page")),Nt=!ht.hasPrev();return(0,ye.isValidElement)(Vt)?(0,ye.cloneElement)(Vt,{disabled:Nt}):Vt},ht.renderNext=function(yn){var Bt=ht.props,Ke=Bt.nextIcon,gt=Bt.itemRender,Vt=gt(yn,"next",ht.getItemIcon(Ke,"next page")),Nt=!ht.hasNext();return(0,ye.isValidElement)(Vt)?(0,ye.cloneElement)(Vt,{disabled:Nt}):Vt};var Kt=Et.onChange!==mt,vn="current"in Et;vn&&!Kt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var kt=Et.defaultCurrent;"current"in Et&&(kt=Et.current);var Ut=Et.defaultPageSize;return"pageSize"in Et&&(Ut=Et.pageSize),kt=Math.min(kt,Ve(Ut,void 0,Et)),ht.state={current:kt,currentInputValue:kt,pageSize:Ut},ht}return(0,lt.Z)(Pt,[{key:"componentDidUpdate",value:function(ht,Kt){var vn=this.props.prefixCls;if(Kt.current!==this.state.current&&this.paginationNode.current){var kt=this.paginationNode.current.querySelector(".".concat(vn,"-item-").concat(Kt.current));if(kt&&document.activeElement===kt){var Ut;kt==null||(Ut=kt.blur)===null||Ut===void 0||Ut.call(kt)}}}},{key:"getValidValue",value:function(ht){var Kt=ht.target.value,vn=Ve(void 0,this.state,this.props),kt=this.state.currentInputValue,Ut;return Kt===""?Ut=Kt:Number.isNaN(Number(Kt))?Ut=kt:Kt>=vn?Ut=vn:Ut=Number(Kt),Ut}},{key:"getShowSizeChanger",value:function(){var ht=this.props,Kt=ht.showSizeChanger,vn=ht.total,kt=ht.totalBoundaryShowSizeChanger;return typeof Kt!="undefined"?Kt:vn>kt}},{key:"render",value:function(){var ht=this.props,Kt=ht.prefixCls,vn=ht.className,kt=ht.style,Ut=ht.disabled,yn=ht.hideOnSinglePage,Bt=ht.total,Ke=ht.locale,gt=ht.showQuickJumper,Vt=ht.showLessItems,Nt=ht.showTitle,Xt=ht.showTotal,Mn=ht.simple,Tn=ht.itemRender,Rn=ht.showPrevNextJumpers,ur=ht.jumpPrevIcon,vr=ht.jumpNextIcon,dr=ht.selectComponentClass,mn=ht.selectPrefixCls,zn=ht.pageSizeOptions,jn=this.state,Xn=jn.current,Sr=jn.pageSize,Kr=jn.currentInputValue;if(yn===!0&&Bt<=Sr)return null;var ar=Ve(void 0,this.state,this.props),Zn=[],Wr=null,Gt=null,or=null,er=null,Kn=null,En=gt&>.goButton,nr=Vt?1:2,lr=Xn-1>0?Xn-1:0,xr=Xn+1<ar?Xn+1:ar,jt=(0,dt.Z)(this.props,{aria:!0,data:!0}),Ue=Xt&&ye.createElement("li",{className:"".concat(Kt,"-total-text")},Xt(Bt,[Bt===0?0:(Xn-1)*Sr+1,Xn*Sr>Bt?Bt:Xn*Sr]));if(Mn){En&&(typeof En=="boolean"?Kn=ye.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ke.jump_to_confirm):Kn=ye.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},En),Kn=ye.createElement("li",{title:Nt?"".concat(Ke.jump_to).concat(Xn,"/").concat(ar):null,className:"".concat(Kt,"-simple-pager")},Kn));var yt=this.renderPrev(lr);return ye.createElement("ul",(0,E.Z)({className:Ie()(Kt,"".concat(Kt,"-simple"),(0,tt.Z)({},"".concat(Kt,"-disabled"),Ut),vn),style:kt,ref:this.paginationNode},jt),Ue,yt?ye.createElement("li",{title:Nt?Ke.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ie()("".concat(Kt,"-prev"),(0,tt.Z)({},"".concat(Kt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},yt):null,ye.createElement("li",{title:Nt?"".concat(Xn,"/").concat(ar):null,className:"".concat(Kt,"-simple-pager")},ye.createElement("input",{type:"text",value:Kr,disabled:Ut,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ye.createElement("span",{className:"".concat(Kt,"-slash")},"/"),ar),ye.createElement("li",{title:Nt?Ke.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ie()("".concat(Kt,"-next"),(0,tt.Z)({},"".concat(Kt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(xr)),Kn)}if(ar<=3+nr*2){var ut={locale:Ke,rootPrefixCls:Kt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Nt,itemRender:Tn};ar||Zn.push(ye.createElement($e,(0,E.Z)({},ut,{key:"noPager",page:1,className:"".concat(Kt,"-item-disabled")})));for(var rt=1;rt<=ar;rt+=1){var _t=Xn===rt;Zn.push(ye.createElement($e,(0,E.Z)({},ut,{key:rt,page:rt,active:_t})))}}else{var Qt=Vt?Ke.prev_3:Ke.prev_5,pn=Vt?Ke.next_3:Ke.next_5,sn=Tn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ur,"prev page")),Bn=Tn(this.getJumpNextPage(),"jump-next",this.getItemIcon(vr,"next page"));Rn&&(Wr=sn?ye.createElement("li",{title:Nt?Qt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ie()("".concat(Kt,"-jump-prev"),(0,tt.Z)({},"".concat(Kt,"-jump-prev-custom-icon"),!!ur))},sn):null,Gt=Bn?ye.createElement("li",{title:Nt?pn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ie()("".concat(Kt,"-jump-next"),(0,tt.Z)({},"".concat(Kt,"-jump-next-custom-icon"),!!vr))},Bn):null),er=ye.createElement($e,{locale:Ke,last:!0,rootPrefixCls:Kt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ar,page:ar,active:!1,showTitle:Nt,itemRender:Tn}),or=ye.createElement($e,{locale:Ke,rootPrefixCls:Kt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Nt,itemRender:Tn});var Yn=Math.max(1,Xn-nr),cr=Math.min(Xn+nr,ar);Xn-1<=nr&&(cr=1+nr*2),ar-Xn<=nr&&(Yn=ar-nr*2);for(var $n=Yn;$n<=cr;$n+=1){var en=Xn===$n;Zn.push(ye.createElement($e,{locale:Ke,rootPrefixCls:Kt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$n,page:$n,active:en,showTitle:Nt,itemRender:Tn}))}Xn-1>=nr*2&&Xn!==3&&(Zn[0]=(0,ye.cloneElement)(Zn[0],{className:"".concat(Kt,"-item-after-jump-prev")}),Zn.unshift(Wr)),ar-Xn>=nr*2&&Xn!==ar-2&&(Zn[Zn.length-1]=(0,ye.cloneElement)(Zn[Zn.length-1],{className:"".concat(Kt,"-item-before-jump-next")}),Zn.push(Gt)),Yn!==1&&Zn.unshift(or),cr!==ar&&Zn.push(er)}var rn=!this.hasPrev()||!ar,Or=!this.hasNext()||!ar,kr=this.renderPrev(lr),Cr=this.renderNext(xr);return ye.createElement("ul",(0,E.Z)({className:Ie()(Kt,vn,(0,tt.Z)({},"".concat(Kt,"-disabled"),Ut)),style:kt,ref:this.paginationNode},jt),Ue,kr?ye.createElement("li",{title:Nt?Ke.prev_page:null,onClick:this.prev,tabIndex:rn?null:0,onKeyPress:this.runIfEnterPrev,className:Ie()("".concat(Kt,"-prev"),(0,tt.Z)({},"".concat(Kt,"-disabled"),rn)),"aria-disabled":rn},kr):null,Zn,Cr?ye.createElement("li",{title:Nt?Ke.next_page:null,onClick:this.next,tabIndex:Or?null:0,onKeyPress:this.runIfEnterNext,className:Ie()("".concat(Kt,"-next"),(0,tt.Z)({},"".concat(Kt,"-disabled"),Or)),"aria-disabled":Or},Cr):null,ye.createElement(Re,{disabled:Ut,locale:Ke,rootPrefixCls:Kt,selectComponentClass:dr,selectPrefixCls:mn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Xn,pageSize:Sr,pageSizeOptions:zn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:En}))}}],[{key:"getDerivedStateFromProps",value:function(ht,Kt){var vn={};if("current"in ht&&(vn.current=ht.current,ht.current!==Kt.current&&(vn.currentInputValue=vn.current)),"pageSize"in ht&&ht.pageSize!==Kt.pageSize){var kt=Kt.current,Ut=Ve(ht.pageSize,Kt,ht);kt=kt>Ut?Ut:kt,"current"in ht||(vn.current=kt,vn.currentInputValue=kt),vn.pageSize=ht.pageSize}return vn}}]),Pt}(ye.Component);Ot.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:mt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:mt,locale:Ae.Z,style:{},itemRender:xt,totalBoundaryShowSizeChanger:50};var nt=Ot,wt=ne(22075),Mt=ne(36355),at=ne(19716),Le=ne(8628),Me=ne(9763),st=ne(57809);const Ht=Ge=>ye.createElement(st.default,Object.assign({},Ge,{showSearch:!0,size:"small"})),Tt=Ge=>ye.createElement(st.default,Object.assign({},Ge,{showSearch:!0,size:"middle"}));Ht.Option=st.default.Option,Tt.Option=st.default.Option;var ct=ne(9937),Ct=ne(17313),Zt=ne(83116),gn=ne(37613);const $t=Ge=>{const{componentCls:je}=Ge;return{[`${je}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${je}-item-link`]:{color:Ge.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${je}-item-link`]:{color:Ge.colorTextDisabled,cursor:"not-allowed"}}},[`&${je}-disabled`]:{cursor:"not-allowed",[`${je}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ge.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ge.colorBorder,backgroundColor:Ge.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ge.itemActiveBgDisabled},a:{color:Ge.itemActiveColorDisabled}}},[`${je}-item-link`]:{color:Ge.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${je}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${je}-simple-pager`]:{color:Ge.colorTextDisabled},[`${je}-jump-prev, ${je}-jump-next`]:{[`${je}-item-link-icon`]:{opacity:0},[`${je}-item-ellipsis`]:{opacity:1}}},[`&${je}-simple`]:{[`${je}-prev, ${je}-next`]:{[`&${je}-disabled ${je}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Wt=Ge=>{const{componentCls:je}=Ge;return{[`&${je}-mini ${je}-total-text, &${je}-mini ${je}-simple-pager`]:{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`},[`&${je}-mini ${je}-item`]:{minWidth:Ge.itemSizeSM,height:Ge.itemSizeSM,margin:0,lineHeight:`${Ge.itemSizeSM-2}px`},[`&${je}-mini:not(${je}-disabled) ${je}-item:not(${je}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ge.colorBgTextHover},"&:active":{backgroundColor:Ge.colorBgTextActive}},[`&${je}-mini ${je}-prev, &${je}-mini ${je}-next`]:{minWidth:Ge.itemSizeSM,height:Ge.itemSizeSM,margin:0,lineHeight:`${Ge.itemSizeSM}px`},[`&${je}-mini:not(${je}-disabled)`]:{[`${je}-prev, ${je}-next`]:{[`&:hover ${je}-item-link`]:{backgroundColor:Ge.colorBgTextHover},[`&:active ${je}-item-link`]:{backgroundColor:Ge.colorBgTextActive},[`&${je}-disabled:hover ${je}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${je}-mini ${je}-prev ${je}-item-link,
|
|
|
&${je}-mini ${je}-next ${je}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`}},[`&${je}-mini ${je}-jump-prev, &${je}-mini ${je}-jump-next`]:{height:Ge.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ge.itemSizeSM}px`},[`&${je}-mini ${je}-options`]:{marginInlineStart:Ge.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ge.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,ct.x0)(Ge)),{width:Ge.paginationMiniQuickJumperInputWidth,height:Ge.controlHeightSM})}}}},on=Ge=>{const{componentCls:je}=Ge;return{[`
|
|
|
&${je}-simple ${je}-prev,
|
|
|
&${je}-simple ${je}-next
|
|
|
`]:{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`,verticalAlign:"top",[`${je}-item-link`]:{height:Ge.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ge.colorBgTextHover},"&:active":{backgroundColor:Ge.colorBgTextActive},"&::after":{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`}}},[`&${je}-simple ${je}-simple-pager`]:{display:"inline-block",height:Ge.itemSizeSM,marginInlineEnd:Ge.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ge.marginXS,padding:`0 ${Ge.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ge.itemInputBg,border:`${Ge.lineWidth}px ${Ge.lineType} ${Ge.colorBorder}`,borderRadius:Ge.borderRadius,outline:"none",transition:`border-color ${Ge.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ge.colorPrimary},"&:focus":{borderColor:Ge.colorPrimaryHover,boxShadow:`${Ge.inputOutlineOffset}px 0 ${Ge.controlOutlineWidth}px ${Ge.controlOutline}`},"&[disabled]":{color:Ge.colorTextDisabled,backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,cursor:"not-allowed"}}}}},dn=Ge=>{const{componentCls:je}=Ge;return{[`${je}-jump-prev, ${je}-jump-next`]:{outline:0,[`${je}-item-container`]:{position:"relative",[`${je}-item-link-icon`]:{color:Ge.colorPrimary,fontSize:Ge.fontSizeSM,opacity:0,transition:`all ${Ge.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${je}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ge.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ge.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ge.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ge.motionDurationMid}`}},"&:hover":{[`${je}-item-link-icon`]:{opacity:1},[`${je}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${je}-prev,
|
|
|
${je}-jump-prev,
|
|
|
${je}-jump-next
|
|
|
`]:{marginInlineEnd:Ge.marginXS},[`
|
|
|
${je}-prev,
|
|
|
${je}-next,
|
|
|
${je}-jump-prev,
|
|
|
${je}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Ge.itemSize,height:Ge.itemSize,color:Ge.colorText,fontFamily:Ge.fontFamily,lineHeight:`${Ge.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ge.borderRadius,cursor:"pointer",transition:`all ${Ge.motionDurationMid}`},[`${je}-prev, ${je}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ge.colorText,cursor:"pointer",userSelect:"none"},[`${je}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ge.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ge.lineWidth}px ${Ge.lineType} transparent`,borderRadius:Ge.borderRadius,outline:"none",transition:`all ${Ge.motionDurationMid}`},[`&:hover ${je}-item-link`]:{backgroundColor:Ge.colorBgTextHover},[`&:active ${je}-item-link`]:{backgroundColor:Ge.colorBgTextActive},[`&${je}-disabled:hover`]:{[`${je}-item-link`]:{backgroundColor:"transparent"}}},[`${je}-slash`]:{marginInlineEnd:Ge.paginationSlashMarginInlineEnd,marginInlineStart:Ge.paginationSlashMarginInlineStart},[`${je}-options`]:{display:"inline-block",marginInlineStart:Ge.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ge.controlHeight,marginInlineStart:Ge.marginXS,lineHeight:`${Ge.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,ct.ik)(Ge)),{width:Ge.controlHeightLG*1.25,height:Ge.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ge.marginXS,marginInlineEnd:Ge.marginXS})}}}},ln=Ge=>{const{componentCls:je}=Ge;return{[`${je}-item`]:{display:"inline-block",minWidth:Ge.itemSize,height:Ge.itemSize,marginInlineEnd:Ge.marginXS,fontFamily:Ge.fontFamily,lineHeight:`${Ge.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ge.lineWidth}px ${Ge.lineType} transparent`,borderRadius:Ge.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ge.paginationItemPaddingInline}px`,color:Ge.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${je}-item-active)`]:{"&:hover":{transition:`all ${Ge.motionDurationMid}`,backgroundColor:Ge.colorBgTextHover},"&:active":{backgroundColor:Ge.colorBgTextActive}},"&-active":{fontWeight:Ge.fontWeightStrong,backgroundColor:Ge.itemActiveBg,borderColor:Ge.colorPrimary,a:{color:Ge.colorPrimary},"&:hover":{borderColor:Ge.colorPrimaryHover},"&:hover a":{color:Ge.colorPrimaryHover}}}}},xe=Ge=>{const{componentCls:je}=Ge;return{[je]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ct.Wf)(Ge)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${je}-total-text`]:{display:"inline-block",height:Ge.itemSize,marginInlineEnd:Ge.marginXS,lineHeight:`${Ge.itemSize-2}px`,verticalAlign:"middle"}}),ln(Ge)),dn(Ge)),on(Ge)),Wt(Ge)),$t(Ge)),{[`@media only screen and (max-width: ${Ge.screenLG}px)`]:{[`${je}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ge.screenSM}px)`]:{[`${je}-options`]:{display:"none"}}}),[`&${Ge.componentCls}-rtl`]:{direction:"rtl"}}},fe=Ge=>{const{componentCls:je}=Ge;return{[`${je}${je}-disabled:not(${je}-mini)`]:{"&, &:hover":{[`${je}-item-link`]:{borderColor:Ge.colorBorder}},"&:focus-visible":{[`${je}-item-link`]:{borderColor:Ge.colorBorder}},[`${je}-item, ${je}-item-link`]:{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,[`&:hover:not(${je}-item-active)`]:{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,a:{color:Ge.colorTextDisabled}},[`&${je}-item-active`]:{backgroundColor:Ge.itemActiveBgDisabled}},[`${je}-prev, ${je}-next`]:{"&:hover button":{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,color:Ge.colorTextDisabled},[`${je}-item-link`]:{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder}}},[`${je}:not(${je}-mini)`]:{[`${je}-prev, ${je}-next`]:{"&:hover button":{borderColor:Ge.colorPrimaryHover,backgroundColor:Ge.itemBg},[`${je}-item-link`]:{backgroundColor:Ge.itemLinkBg,borderColor:Ge.colorBorder},[`&:hover ${je}-item-link`]:{borderColor:Ge.colorPrimary,backgroundColor:Ge.itemBg,color:Ge.colorPrimary},[`&${je}-disabled`]:{[`${je}-item-link`]:{borderColor:Ge.colorBorder,color:Ge.colorTextDisabled}}},[`${je}-item`]:{backgroundColor:Ge.itemBg,border:`${Ge.lineWidth}px ${Ge.lineType} ${Ge.colorBorder}`,[`&:hover:not(${je}-item-active)`]:{borderColor:Ge.colorPrimary,backgroundColor:Ge.itemBg,a:{color:Ge.colorPrimary}},"&-active":{borderColor:Ge.colorPrimary}}}}},ue=Ge=>{const{componentCls:je}=Ge;return{[`${je}:not(${je}-disabled)`]:{[`${je}-item`]:Object.assign({},(0,Ct.Qy)(Ge)),[`${je}-jump-prev, ${je}-jump-next`]:{"&:focus-visible":Object.assign({[`${je}-item-link-icon`]:{opacity:1},[`${je}-item-ellipsis`]:{opacity:0}},(0,Ct.oN)(Ge))},[`${je}-prev, ${je}-next`]:{[`&:focus-visible ${je}-item-link`]:Object.assign({},(0,Ct.oN)(Ge))}}}};var he=(0,Zt.Z)("Pagination",Ge=>{const je=(0,gn.TS)(Ge,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ge.marginXXS/2,paginationMiniQuickJumperInputWidth:Ge.controlHeightLG*1.1,paginationItemPaddingInline:Ge.marginXXS*1.5,paginationEllipsisLetterSpacing:Ge.marginXXS/2,paginationSlashMarginInlineStart:Ge.marginXXS,paginationSlashMarginInlineEnd:Ge.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,ct.e5)(Ge),(0,ct.TM)(Ge));return[xe(je),ue(je),Ge.wireframe&&fe(je)]},Ge=>({itemBg:Ge.colorBgContainer,itemSize:Ge.controlHeight,itemSizeSM:Ge.controlHeightSM,itemActiveBg:Ge.colorBgContainer,itemLinkBg:Ge.colorBgContainer,itemActiveColorDisabled:Ge.colorTextDisabled,itemActiveBgDisabled:Ge.controlItemBgActiveDisabled,itemInputBg:Ge.colorBgContainer,miniOptionsSizeChangerTop:0})),me=function(Ge,je){var Pt={};for(var Et in Ge)Object.prototype.hasOwnProperty.call(Ge,Et)&&je.indexOf(Et)<0&&(Pt[Et]=Ge[Et]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Et=Object.getOwnPropertySymbols(Ge);ht<Et.length;ht++)je.indexOf(Et[ht])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Et[ht])&&(Pt[Et[ht]]=Ge[Et[ht]]);return Pt},Ne=Ge=>{const{prefixCls:je,selectPrefixCls:Pt,className:Et,rootClassName:ht,style:Kt,size:vn,locale:kt,selectComponentClass:Ut,responsive:yn,showSizeChanger:Bt}=Ge,Ke=me(Ge,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:gt}=(0,Le.Z)(yn),{getPrefixCls:Vt,direction:Nt,pagination:Xt={}}=ye.useContext(Mt.E_),Mn=Vt("pagination",je),[Tn,Rn]=he(Mn),ur=Bt!=null?Bt:Xt.showSizeChanger,vr=ye.useMemo(()=>{const ar=ye.createElement("span",{className:`${Mn}-item-ellipsis`},"\u2022\u2022\u2022"),Zn=ye.createElement("button",{className:`${Mn}-item-link`,type:"button",tabIndex:-1},Nt==="rtl"?ye.createElement(et.Z,null):ye.createElement(Pe.Z,null)),Wr=ye.createElement("button",{className:`${Mn}-item-link`,type:"button",tabIndex:-1},Nt==="rtl"?ye.createElement(Pe.Z,null):ye.createElement(et.Z,null)),Gt=ye.createElement("a",{className:`${Mn}-item-link`},ye.createElement("div",{className:`${Mn}-item-container`},Nt==="rtl"?ye.createElement(De.Z,{className:`${Mn}-item-link-icon`}):ye.createElement(be,{className:`${Mn}-item-link-icon`}),ar)),or=ye.createElement("a",{className:`${Mn}-item-link`},ye.createElement("div",{className:`${Mn}-item-container`},Nt==="rtl"?ye.createElement(be,{className:`${Mn}-item-link-icon`}):ye.createElement(De.Z,{className:`${Mn}-item-link-icon`}),ar));return{prevIcon:Zn,nextIcon:Wr,jumpPrevIcon:Gt,jumpNextIcon:or}},[Nt,Mn]),[dr]=(0,Me.Z)("Pagination",wt.Z),mn=Object.assign(Object.assign({},dr),kt),zn=(0,at.Z)(vn),jn=zn==="small"||!!(gt&&!zn&&yn),Xn=Vt("select",Pt),Sr=Ie()({[`${Mn}-mini`]:jn,[`${Mn}-rtl`]:Nt==="rtl"},Xt==null?void 0:Xt.className,Et,ht,Rn),Kr=Object.assign(Object.assign({},Xt==null?void 0:Xt.style),Kt);return Tn(ye.createElement(nt,Object.assign({},vr,Ke,{style:Kr,prefixCls:Mn,selectPrefixCls:Xn,className:Sr,selectComponentClass:Ut||(jn?Ht:Tt),locale:mn,showSizeChanger:ur})))},At=Ne},39722:function(An,tn,ne){"use strict";ne.d(tn,{t5:function(){return Pe}});var E=ne(92310),ye=ne.n(E),Ee=ne(55477),Ye=ne(59301),Ce=ne(36355),Se=ne(77578),pe=ne(17356),be=function(Fe,Ie){var tt={};for(var ze in Fe)Object.prototype.hasOwnProperty.call(Fe,ze)&&Ie.indexOf(ze)<0&&(tt[ze]=Fe[ze]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,ze=Object.getOwnPropertySymbols(Fe);We<ze.length;We++)Ie.indexOf(ze[We])<0&&Object.prototype.propertyIsEnumerable.call(Fe,ze[We])&&(tt[ze[We]]=Fe[ze[We]]);return tt};const De=(Fe,Ie,tt)=>{if(!(!Ie&&!tt))return Ye.createElement(Ye.Fragment,null,Ie&&Ye.createElement("div",{className:`${Fe}-title`},(0,Se.Z)(Ie)),Ye.createElement("div",{className:`${Fe}-inner-content`},(0,Se.Z)(tt)))},Pe=Fe=>{const{hashId:Ie,prefixCls:tt,className:ze,style:We,placement:lt="top",title:Xe,content:Dt,children:dt}=Fe;return Ye.createElement("div",{className:ye()(Ie,tt,`${tt}-pure`,`${tt}-placement-${lt}`,ze),style:We},Ye.createElement("div",{className:`${tt}-arrow`}),Ye.createElement(Ee.G,Object.assign({},Fe,{className:Ie,prefixCls:tt}),dt||De(tt,Xe,Dt)))},et=Fe=>{const{prefixCls:Ie}=Fe,tt=be(Fe,["prefixCls"]),{getPrefixCls:ze}=Ye.useContext(Ce.E_),We=ze("popover",Ie),[lt,Xe]=(0,pe.Z)(We);return lt(Ye.createElement(Pe,Object.assign({},tt,{prefixCls:We,hashId:Xe})))};tn.ZP=et},60324:function(An,tn,ne){"use strict";var E=ne(92310),ye=ne.n(E),Ee=ne(59301),Ye=ne(77578),Ce=ne(62892),Se=ne(36355),pe=ne(6848),be=ne(39722),De=ne(17356),Pe=function(Ie,tt){var ze={};for(var We in Ie)Object.prototype.hasOwnProperty.call(Ie,We)&&tt.indexOf(We)<0&&(ze[We]=Ie[We]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,We=Object.getOwnPropertySymbols(Ie);lt<We.length;lt++)tt.indexOf(We[lt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,We[lt])&&(ze[We[lt]]=Ie[We[lt]]);return ze};const et=Ie=>{let{title:tt,content:ze,prefixCls:We}=Ie;return Ee.createElement(Ee.Fragment,null,tt&&Ee.createElement("div",{className:`${We}-title`},(0,Ye.Z)(tt)),Ee.createElement("div",{className:`${We}-inner-content`},(0,Ye.Z)(ze)))},Fe=Ee.forwardRef((Ie,tt)=>{const{prefixCls:ze,title:We,content:lt,overlayClassName:Xe,placement:Dt="top",trigger:dt="hover",mouseEnterDelay:Qe=.1,mouseLeaveDelay:Ze=.1,overlayStyle:Ae={}}=Ie,Je=Pe(Ie,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Re}=Ee.useContext(Se.E_),vt=Re("popover",ze),[$e,mt]=(0,De.Z)(vt),Be=Re(),xt=ye()(Xe,mt);return $e(Ee.createElement(pe.Z,Object.assign({placement:Dt,trigger:dt,mouseEnterDelay:Qe,mouseLeaveDelay:Ze,overlayStyle:Ae},Je,{prefixCls:vt,overlayClassName:xt,ref:tt,overlay:We||lt?Ee.createElement(et,{prefixCls:vt,title:We,content:lt}):null,transitionName:(0,Ce.m)(Be,"zoom-big",Je.transitionName),"data-popover-inject":!0})))});Fe._InternalPanelDoNotUseOrYouWillBeFired=be.ZP,tn.Z=Fe},17356:function(An,tn,ne){"use strict";var E=ne(17313),ye=ne(29878),Ee=ne(19447),Ye=ne(33166),Ce=ne(83116),Se=ne(37613);const pe=Pe=>{const{componentCls:et,popoverColor:Fe,minWidth:Ie,fontWeightStrong:tt,popoverPadding:ze,boxShadowSecondary:We,colorTextHeading:lt,borderRadiusLG:Xe,zIndexPopup:Dt,marginXS:dt,colorBgElevated:Qe,popoverBg:Ze}=Pe;return[{[et]:Object.assign(Object.assign({},(0,E.Wf)(Pe)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Dt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Qe,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${et}-content`]:{position:"relative"},[`${et}-inner`]:{backgroundColor:Ze,backgroundClip:"padding-box",borderRadius:Xe,boxShadow:We,padding:ze},[`${et}-title`]:{minWidth:Ie,marginBottom:dt,color:lt,fontWeight:tt},[`${et}-inner-content`]:{color:Fe}})},(0,Ee.ZP)(Pe,{colorBg:"var(--antd-arrow-background-color)"}),{[`${et}-pure`]:{position:"relative",maxWidth:"none",margin:Pe.sizePopupArrow,display:"inline-block",[`${et}-content`]:{display:"inline-block"}}}]},be=Pe=>{const{componentCls:et}=Pe;return{[et]:Ye.i.map(Fe=>{const Ie=Pe[`${Fe}6`];return{[`&${et}-${Fe}`]:{"--antd-arrow-background-color":Ie,[`${et}-inner`]:{backgroundColor:Ie},[`${et}-arrow`]:{background:"transparent"}}}})}},De=Pe=>{const{componentCls:et,lineWidth:Fe,lineType:Ie,colorSplit:tt,paddingSM:ze,controlHeight:We,fontSize:lt,lineHeight:Xe,padding:Dt}=Pe,dt=We-Math.round(lt*Xe),Qe=dt/2,Ze=dt/2-Fe,Ae=Dt;return{[et]:{[`${et}-inner`]:{padding:0},[`${et}-title`]:{margin:0,padding:`${Qe}px ${Ae}px ${Ze}px`,borderBottom:`${Fe}px ${Ie} ${tt}`},[`${et}-inner-content`]:{padding:`${ze}px ${Ae}px`}}}};tn.Z=(0,Ce.Z)("Popover",Pe=>{const{colorBgElevated:et,colorText:Fe,wireframe:Ie}=Pe,tt=(0,Se.TS)(Pe,{popoverPadding:12,popoverBg:et,popoverColor:Fe});return[pe(tt),be(tt),Ie&&De(tt),(0,ye._y)(tt,"zoom-big")]},Pe=>({width:177,minWidth:177,zIndexPopup:Pe.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Bt}});var E=ne(59301),ye=ne(29679),Ee=ne(40001),Ye=ne(19248),Ce=ne(99267),Se=ne(92310),pe=ne.n(Se),be=ne(2738),De=ne(36355),Pe=ne(60499),et=ne(85899),Fe=ne(42244),Ie={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},tt=function(){var gt=(0,E.useRef)([]),Vt=(0,E.useRef)(null);return(0,E.useEffect)(function(){var Nt=Date.now(),Xt=!1;gt.current.forEach(function(Mn){if(Mn){Xt=!0;var Tn=Mn.style;Tn.transitionDuration=".3s, .3s, .3s, .06s",Vt.current&&Nt-Vt.current<100&&(Tn.transitionDuration="0s, 0s")}}),Xt&&(Vt.current=Date.now())}),gt.current},ze=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],We=function(gt){var Vt=(0,et.Z)((0,et.Z)({},Ie),gt),Nt=Vt.className,Xt=Vt.percent,Mn=Vt.prefixCls,Tn=Vt.strokeColor,Rn=Vt.strokeLinecap,ur=Vt.strokeWidth,vr=Vt.style,dr=Vt.trailColor,mn=Vt.trailWidth,zn=Vt.transition,jn=(0,Fe.Z)(Vt,ze);delete jn.gapPosition;var Xn=Array.isArray(Xt)?Xt:[Xt],Sr=Array.isArray(Tn)?Tn:[Tn],Kr=tt(),ar=ur/2,Zn=100-ur/2,Wr="M ".concat(Rn==="round"?ar:0,",").concat(ar,`
|
|
|
L `).concat(Rn==="round"?Zn:100,",").concat(ar),Gt="0 0 100 ".concat(ur),or=0;return E.createElement("svg",(0,Pe.Z)({className:pe()("".concat(Mn,"-line"),Nt),viewBox:Gt,preserveAspectRatio:"none",style:vr},jn),E.createElement("path",{className:"".concat(Mn,"-line-trail"),d:Wr,strokeLinecap:Rn,stroke:dr,strokeWidth:mn||ur,fillOpacity:"0"}),Xn.map(function(er,Kn){var En=1;switch(Rn){case"round":En=1-ur/100;break;case"square":En=1-ur/2/100;break;default:En=1;break}var nr={strokeDasharray:"".concat(er*En,"px, 100px"),strokeDashoffset:"-".concat(or,"px"),transition:zn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},lr=Sr[Kn]||Sr[Sr.length-1];return or+=er,E.createElement("path",{key:Kn,className:"".concat(Mn,"-line-path"),d:Wr,strokeLinecap:Rn,stroke:lr,strokeWidth:ur,fillOpacity:"0",ref:function(jt){Kr[Kn]=jt},style:nr})}))},lt=We,Xe=ne(43749),Dt=ne(72190),dt=ne(47273),Qe=0,Ze=(0,dt.Z)();function Ae(){var Ke;return Ze?(Ke=Qe,Qe+=1):Ke="TEST_OR_SSR",Ke}var Je=function(Ke){var gt=E.useState(),Vt=(0,Dt.Z)(gt,2),Nt=Vt[0],Xt=Vt[1];return E.useEffect(function(){Xt("rc_progress_".concat(Ae()))},[]),Ke||Nt},Re=function(gt){var Vt=gt.bg,Nt=gt.children;return E.createElement("div",{style:{width:"100%",height:"100%",background:Vt}},Nt)};function vt(Ke,gt){return Object.keys(Ke).map(function(Vt){var Nt=parseFloat(Vt),Xt="".concat(Math.floor(Nt*gt),"%");return"".concat(Ke[Vt]," ").concat(Xt)})}var $e=E.forwardRef(function(Ke,gt){var Vt=Ke.prefixCls,Nt=Ke.color,Xt=Ke.gradientId,Mn=Ke.radius,Tn=Ke.style,Rn=Ke.ptg,ur=Ke.strokeLinecap,vr=Ke.strokeWidth,dr=Ke.size,mn=Ke.gapDegree,zn=Nt&&(0,Xe.Z)(Nt)==="object",jn=zn?"#FFF":void 0,Xn=dr/2,Sr=E.createElement("circle",{className:"".concat(Vt,"-circle-path"),r:Mn,cx:Xn,cy:Xn,stroke:jn,strokeLinecap:ur,strokeWidth:vr,opacity:Rn===0?0:1,style:Tn,ref:gt});if(!zn)return Sr;var Kr="".concat(Xt,"-conic"),ar=mn?"".concat(180+mn/2,"deg"):"0deg",Zn=vt(Nt,(360-mn)/360),Wr=vt(Nt,1),Gt="conic-gradient(from ".concat(ar,", ").concat(Zn.join(", "),")"),or="linear-gradient(to ".concat(mn?"bottom":"top",", ").concat(Wr.join(", "),")");return E.createElement(E.Fragment,null,E.createElement("mask",{id:Kr},Sr),E.createElement("foreignObject",{x:0,y:0,width:dr,height:dr,mask:"url(#".concat(Kr,")")},E.createElement(Re,{bg:or},E.createElement(Re,{bg:Gt}))))}),mt=$e,Be=100,xt=function(gt,Vt,Nt,Xt,Mn,Tn,Rn,ur,vr,dr){var mn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,zn=Nt/100*360*((360-Tn)/360),jn=Tn===0?0:{bottom:0,top:180,left:90,right:-90}[Rn],Xn=(100-Xt)/100*Vt;vr==="round"&&Xt!==100&&(Xn+=dr/2,Xn>=Vt&&(Xn=Vt-.01));var Sr=Be/2;return{stroke:typeof ur=="string"?ur:void 0,strokeDasharray:"".concat(Vt,"px ").concat(gt),strokeDashoffset:Xn+mn,transform:"rotate(".concat(Mn+zn+jn,"deg)"),transformOrigin:"".concat(Sr,"px ").concat(Sr,"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}},Ve=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ot(Ke){var gt=Ke!=null?Ke:[];return Array.isArray(gt)?gt:[gt]}var nt=function(gt){var Vt=(0,et.Z)((0,et.Z)({},Ie),gt),Nt=Vt.id,Xt=Vt.prefixCls,Mn=Vt.steps,Tn=Vt.strokeWidth,Rn=Vt.trailWidth,ur=Vt.gapDegree,vr=ur===void 0?0:ur,dr=Vt.gapPosition,mn=Vt.trailColor,zn=Vt.strokeLinecap,jn=Vt.style,Xn=Vt.className,Sr=Vt.strokeColor,Kr=Vt.percent,ar=(0,Fe.Z)(Vt,Ve),Zn=Be/2,Wr=Je(Nt),Gt="".concat(Wr,"-gradient"),or=Zn-Tn/2,er=Math.PI*2*or,Kn=vr>0?90+vr/2:-90,En=er*((360-vr)/360),nr=(0,Xe.Z)(Mn)==="object"?Mn:{count:Mn,space:2},lr=nr.count,xr=nr.space,jt=Ot(Kr),Ue=Ot(Sr),yt=Ue.find(function(Bn){return Bn&&(0,Xe.Z)(Bn)==="object"}),ut=yt&&(0,Xe.Z)(yt)==="object",rt=ut?"butt":zn,_t=xt(er,En,0,100,Kn,vr,dr,mn,rt,Tn),Qt=tt(),pn=function(){var Yn=0;return jt.map(function(cr,$n){var en=Ue[$n]||Ue[Ue.length-1],rn=xt(er,En,Yn,cr,Kn,vr,dr,en,rt,Tn);return Yn+=cr,E.createElement(mt,{key:$n,color:en,ptg:cr,radius:or,prefixCls:Xt,gradientId:Gt,style:rn,strokeLinecap:rt,strokeWidth:Tn,gapDegree:vr,ref:function(kr){Qt[$n]=kr},size:Be})}).reverse()},sn=function(){var Yn=Math.round(lr*(jt[0]/100)),cr=100/lr,$n=0;return new Array(lr).fill(null).map(function(en,rn){var Or=rn<=Yn-1?Ue[0]:mn,kr=Or&&(0,Xe.Z)(Or)==="object"?"url(#".concat(Gt,")"):void 0,Cr=xt(er,En,$n,cr,Kn,vr,dr,Or,"butt",Tn,xr);return $n+=(En-Cr.strokeDashoffset+xr)*100/En,E.createElement("circle",{key:rn,className:"".concat(Xt,"-circle-path"),r:or,cx:Zn,cy:Zn,stroke:kr,strokeWidth:Tn,opacity:1,style:Cr,ref:function(qr){Qt[rn]=qr}})})};return E.createElement("svg",(0,Pe.Z)({className:pe()("".concat(Xt,"-circle"),Xn),viewBox:"0 0 ".concat(Be," ").concat(Be),style:jn,id:Nt,role:"presentation"},ar),!lr&&E.createElement("circle",{className:"".concat(Xt,"-circle-trail"),r:or,cx:Zn,cy:Zn,stroke:mn,strokeLinecap:rt,strokeWidth:Rn||Tn,style:_t}),lr?sn():pn())},wt=nt,Mt={Line:lt,Circle:wt},at=ne(6848),Le=ne(30071);function Me(Ke){return!Ke||Ke<0?0:Ke>100?100:Ke}function st(Ke){let{success:gt,successPercent:Vt}=Ke,Nt=Vt;return gt&&"progress"in gt&&(Nt=gt.progress),gt&&"percent"in gt&&(Nt=gt.percent),Nt}const Ht=Ke=>{let{percent:gt,success:Vt,successPercent:Nt}=Ke;const Xt=Me(st({success:Vt,successPercent:Nt}));return[Xt,Me(Me(gt)-Xt)]},Tt=Ke=>{let{success:gt={},strokeColor:Vt}=Ke;const{strokeColor:Nt}=gt;return[Nt||Le.presetPrimaryColors.green,Vt||null]},ct=(Ke,gt,Vt)=>{var Nt,Xt,Mn,Tn;let Rn=-1,ur=-1;if(gt==="step"){const vr=Vt.steps,dr=Vt.strokeWidth;typeof Ke=="string"||typeof Ke=="undefined"?(Rn=Ke==="small"?2:14,ur=dr!=null?dr:8):typeof Ke=="number"?[Rn,ur]=[Ke,Ke]:[Rn=14,ur=8]=Ke,Rn*=vr}else if(gt==="line"){const vr=Vt==null?void 0:Vt.strokeWidth;typeof Ke=="string"||typeof Ke=="undefined"?ur=vr||(Ke==="small"?6:8):typeof Ke=="number"?[Rn,ur]=[Ke,Ke]:[Rn=-1,ur=8]=Ke}else(gt==="circle"||gt==="dashboard")&&(typeof Ke=="string"||typeof Ke=="undefined"?[Rn,ur]=Ke==="small"?[60,60]:[120,120]:typeof Ke=="number"?[Rn,ur]=[Ke,Ke]:(Rn=(Xt=(Nt=Ke[0])!==null&&Nt!==void 0?Nt:Ke[1])!==null&&Xt!==void 0?Xt:120,ur=(Tn=(Mn=Ke[0])!==null&&Mn!==void 0?Mn:Ke[1])!==null&&Tn!==void 0?Tn:120));return[Rn,ur]},Ct=3,Zt=Ke=>Ct/Ke*100;var $t=Ke=>{const{prefixCls:gt,trailColor:Vt=null,strokeLinecap:Nt="round",gapPosition:Xt,gapDegree:Mn,width:Tn=120,type:Rn,children:ur,success:vr,size:dr=Tn}=Ke,[mn,zn]=ct(dr,"circle");let{strokeWidth:jn}=Ke;jn===void 0&&(jn=Math.max(Zt(mn),6));const Xn={width:mn,height:zn,fontSize:mn*.15+6},Sr=E.useMemo(()=>{if(Mn||Mn===0)return Mn;if(Rn==="dashboard")return 75},[Mn,Rn]),Kr=Xt||Rn==="dashboard"&&"bottom"||void 0,ar=Object.prototype.toString.call(Ke.strokeColor)==="[object Object]",Zn=Tt({success:vr,strokeColor:Ke.strokeColor}),Wr=pe()(`${gt}-inner`,{[`${gt}-circle-gradient`]:ar}),Gt=E.createElement(wt,{percent:Ht(Ke),strokeWidth:jn,trailWidth:jn,strokeColor:Zn,strokeLinecap:Nt,trailColor:Vt,prefixCls:gt,gapDegree:Sr,gapPosition:Kr});return E.createElement("div",{className:Wr,style:Xn},mn<=20?E.createElement(at.Z,{title:ur},E.createElement("span",null,Gt)):E.createElement(E.Fragment,null,Gt,ur))},Wt=function(Ke,gt){var Vt={};for(var Nt in Ke)Object.prototype.hasOwnProperty.call(Ke,Nt)&>.indexOf(Nt)<0&&(Vt[Nt]=Ke[Nt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,Nt=Object.getOwnPropertySymbols(Ke);Xt<Nt.length;Xt++)gt.indexOf(Nt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(Ke,Nt[Xt])&&(Vt[Nt[Xt]]=Ke[Nt[Xt]]);return Vt};const on=Ke=>{let gt=[];return Object.keys(Ke).forEach(Vt=>{const Nt=parseFloat(Vt.replace(/%/g,""));isNaN(Nt)||gt.push({key:Nt,value:Ke[Vt]})}),gt=gt.sort((Vt,Nt)=>Vt.key-Nt.key),gt.map(Vt=>{let{key:Nt,value:Xt}=Vt;return`${Xt} ${Nt}%`}).join(", ")},dn=(Ke,gt)=>{const{from:Vt=Le.presetPrimaryColors.blue,to:Nt=Le.presetPrimaryColors.blue,direction:Xt=gt==="rtl"?"to left":"to right"}=Ke,Mn=Wt(Ke,["from","to","direction"]);if(Object.keys(Mn).length!==0){const Tn=on(Mn);return{backgroundImage:`linear-gradient(${Xt}, ${Tn})`}}return{backgroundImage:`linear-gradient(${Xt}, ${Vt}, ${Nt})`}};var xe=Ke=>{const{prefixCls:gt,direction:Vt,percent:Nt,size:Xt,strokeWidth:Mn,strokeColor:Tn,strokeLinecap:Rn="round",children:ur,trailColor:vr=null,success:dr}=Ke,mn=Tn&&typeof Tn!="string"?dn(Tn,Vt):{backgroundColor:Tn},zn=Rn==="square"||Rn==="butt"?0:void 0,jn={backgroundColor:vr||void 0,borderRadius:zn},Xn=Xt!=null?Xt:[-1,Mn||(Xt==="small"?6:8)],[Sr,Kr]=ct(Xn,"line",{strokeWidth:Mn}),ar=Object.assign({width:`${Me(Nt)}%`,height:Kr,borderRadius:zn},mn),Zn=st(Ke),Wr={width:`${Me(Zn)}%`,height:Kr,borderRadius:zn,backgroundColor:dr==null?void 0:dr.strokeColor},Gt={width:Sr<0?"100%":Sr,height:Kr};return E.createElement(E.Fragment,null,E.createElement("div",{className:`${gt}-outer`,style:Gt},E.createElement("div",{className:`${gt}-inner`,style:jn},E.createElement("div",{className:`${gt}-bg`,style:ar}),Zn!==void 0?E.createElement("div",{className:`${gt}-success-bg`,style:Wr}):null)),ur)},ue=Ke=>{const{size:gt,steps:Vt,percent:Nt=0,strokeWidth:Xt=8,strokeColor:Mn,trailColor:Tn=null,prefixCls:Rn,children:ur}=Ke,vr=Math.round(Vt*(Nt/100)),dr=gt==="small"?2:14,mn=gt!=null?gt:[dr,Xt],[zn,jn]=ct(mn,"step",{steps:Vt,strokeWidth:Xt}),Xn=zn/Vt,Sr=new Array(Vt);for(let Kr=0;Kr<Vt;Kr++){const ar=Array.isArray(Mn)?Mn[Kr]:Mn;Sr[Kr]=E.createElement("div",{key:Kr,className:pe()(`${Rn}-steps-item`,{[`${Rn}-steps-item-active`]:Kr<=vr-1}),style:{backgroundColor:Kr<=vr-1?ar:Tn,width:Xn,height:jn}})}return E.createElement("div",{className:`${Rn}-steps-outer`},Sr,ur)},he=ne(36237),me=ne(17313),oe=ne(83116),Ne=ne(37613);const At=Ke=>{const gt=Ke?"100%":"-100%";return new he.Keyframes(`antProgress${Ke?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${gt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${gt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ge=Ke=>{const{componentCls:gt,iconCls:Vt}=Ke;return{[gt]:Object.assign(Object.assign({},(0,me.Wf)(Ke)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ke.fontSize,marginInlineEnd:Ke.marginXS,marginBottom:Ke.marginXS},[`${gt}-outer`]:{display:"inline-block",width:"100%"},[`&${gt}-show-info`]:{[`${gt}-outer`]:{marginInlineEnd:`calc(-2em - ${Ke.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Ke.paddingXS}px)`}},[`${gt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Ke.remainingColor,borderRadius:Ke.lineBorderRadius},[`${gt}-inner:not(${gt}-circle-gradient)`]:{[`${gt}-circle-path`]:{stroke:Ke.defaultColor}},[`${gt}-success-bg, ${gt}-bg`]:{position:"relative",backgroundColor:Ke.defaultColor,borderRadius:Ke.lineBorderRadius,transition:`all ${Ke.motionDurationSlow} ${Ke.motionEaseInOutCirc}`},[`${gt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ke.colorSuccess},[`${gt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Ke.marginXS,color:Ke.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Vt]:{fontSize:Ke.fontSize}},[`&${gt}-status-active`]:{[`${gt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ke.colorBgContainer,borderRadius:Ke.lineBorderRadius,opacity:0,animationName:At(),animationDuration:Ke.progressActiveMotionDuration,animationTimingFunction:Ke.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${gt}-rtl${gt}-status-active`]:{[`${gt}-bg::before`]:{animationName:At(!0)}},[`&${gt}-status-exception`]:{[`${gt}-bg`]:{backgroundColor:Ke.colorError},[`${gt}-text`]:{color:Ke.colorError}},[`&${gt}-status-exception ${gt}-inner:not(${gt}-circle-gradient)`]:{[`${gt}-circle-path`]:{stroke:Ke.colorError}},[`&${gt}-status-success`]:{[`${gt}-bg`]:{backgroundColor:Ke.colorSuccess},[`${gt}-text`]:{color:Ke.colorSuccess}},[`&${gt}-status-success ${gt}-inner:not(${gt}-circle-gradient)`]:{[`${gt}-circle-path`]:{stroke:Ke.colorSuccess}}})}},je=Ke=>{const{componentCls:gt,iconCls:Vt}=Ke;return{[gt]:{[`${gt}-circle-trail`]:{stroke:Ke.remainingColor},[`&${gt}-circle ${gt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${gt}-circle ${gt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ke.circleTextColor,fontSize:Ke.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Vt]:{fontSize:`${Ke.fontSize/Ke.fontSizeSM}em`}},[`${gt}-circle&-status-exception`]:{[`${gt}-text`]:{color:Ke.colorError}},[`${gt}-circle&-status-success`]:{[`${gt}-text`]:{color:Ke.colorSuccess}}},[`${gt}-inline-circle`]:{lineHeight:1,[`${gt}-inner`]:{verticalAlign:"bottom"}}}},Pt=Ke=>{const{componentCls:gt}=Ke;return{[gt]:{[`${gt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ke.progressStepMinWidth,marginInlineEnd:Ke.progressStepMarginInlineEnd,backgroundColor:Ke.remainingColor,transition:`all ${Ke.motionDurationSlow}`,"&-active":{backgroundColor:Ke.defaultColor}}}}}},Et=Ke=>{const{componentCls:gt,iconCls:Vt}=Ke;return{[gt]:{[`${gt}-small&-line, ${gt}-small&-line ${gt}-text ${Vt}`]:{fontSize:Ke.fontSizeSM}}}};var ht=(0,oe.Z)("Progress",Ke=>{const gt=Ke.marginXXS/2,Vt=(0,Ne.TS)(Ke,{progressStepMarginInlineEnd:gt,progressStepMinWidth:gt,progressActiveMotionDuration:"2.4s"});return[Ge(Vt),je(Vt),Pt(Vt),Et(Vt)]},Ke=>({circleTextColor:Ke.colorText,defaultColor:Ke.colorInfo,remainingColor:Ke.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Kt=function(Ke,gt){var Vt={};for(var Nt in Ke)Object.prototype.hasOwnProperty.call(Ke,Nt)&>.indexOf(Nt)<0&&(Vt[Nt]=Ke[Nt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,Nt=Object.getOwnPropertySymbols(Ke);Xt<Nt.length;Xt++)gt.indexOf(Nt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(Ke,Nt[Xt])&&(Vt[Nt[Xt]]=Ke[Nt[Xt]]);return Vt};const vn=null,kt=["normal","exception","active","success"];var yn=E.forwardRef((Ke,gt)=>{const{prefixCls:Vt,className:Nt,rootClassName:Xt,steps:Mn,strokeColor:Tn,percent:Rn=0,size:ur="default",showInfo:vr=!0,type:dr="line",status:mn,format:zn,style:jn}=Ke,Xn=Kt(Ke,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Sr=E.useMemo(()=>{var jt,Ue;const yt=st(Ke);return parseInt(yt!==void 0?(jt=yt!=null?yt:0)===null||jt===void 0?void 0:jt.toString():(Ue=Rn!=null?Rn:0)===null||Ue===void 0?void 0:Ue.toString(),10)},[Rn,Ke.success,Ke.successPercent]),Kr=E.useMemo(()=>!kt.includes(mn)&&Sr>=100?"success":mn||"normal",[mn,Sr]),{getPrefixCls:ar,direction:Zn,progress:Wr}=E.useContext(De.E_),Gt=ar("progress",Vt),[or,er]=ht(Gt),Kn=E.useMemo(()=>{if(!vr)return null;const jt=st(Ke);let Ue;const yt=zn||(rt=>`${rt}%`),ut=dr==="line";return zn||Kr!=="exception"&&Kr!=="success"?Ue=yt(Me(Rn),Me(jt)):Kr==="exception"?Ue=ut?E.createElement(Ye.Z,null):E.createElement(Ce.Z,null):Kr==="success"&&(Ue=ut?E.createElement(ye.Z,null):E.createElement(Ee.Z,null)),E.createElement("span",{className:`${Gt}-text`,title:typeof Ue=="string"?Ue:void 0},Ue)},[vr,Rn,Sr,Kr,dr,Gt,zn]),En=Array.isArray(Tn)?Tn[0]:Tn,nr=typeof Tn=="string"||Array.isArray(Tn)?Tn:void 0;let lr;dr==="line"?lr=Mn?E.createElement(ue,Object.assign({},Ke,{strokeColor:nr,prefixCls:Gt,steps:Mn}),Kn):E.createElement(xe,Object.assign({},Ke,{strokeColor:En,prefixCls:Gt,direction:Zn}),Kn):(dr==="circle"||dr==="dashboard")&&(lr=E.createElement($t,Object.assign({},Ke,{strokeColor:En,prefixCls:Gt,progressStatus:Kr}),Kn));const xr=pe()(Gt,`${Gt}-status-${Kr}`,`${Gt}-${dr==="dashboard"&&"circle"||Mn&&"steps"||dr}`,{[`${Gt}-inline-circle`]:dr==="circle"&&ct(ur,"circle")[0]<=20,[`${Gt}-show-info`]:vr,[`${Gt}-${ur}`]:typeof ur=="string",[`${Gt}-rtl`]:Zn==="rtl"},Wr==null?void 0:Wr.className,Nt,Xt,er);return or(E.createElement("div",Object.assign({ref:gt,style:Object.assign(Object.assign({},Wr==null?void 0:Wr.style),jn),className:xr,role:"progressbar","aria-valuenow":Sr},(0,be.Z)(Xn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),lr))}),Bt=yn},5112:function(An,tn,ne){"use strict";ne.d(tn,{ZP:function(){return Le}});var E=ne(92310),ye=ne.n(E),Ee=ne(18929),Ye=ne(26112),Ce=ne(59301),Se=ne(36355),pe=ne(19716);const be=Ce.createContext(null),De=be.Provider;var Pe=be;const et=Ce.createContext(null),Fe=et.Provider;var Ie=ne(5630),tt=ne(8654),ze=ne(1684),We=ne(32441),lt=ne(17313),Xe=ne(83116),Dt=ne(37613);const dt=Me=>{const{componentCls:st,antCls:Ht}=Me,Tt=`${st}-group`;return{[Tt]:Object.assign(Object.assign({},(0,lt.Wf)(Me)),{display:"inline-block",fontSize:0,[`&${Tt}-rtl`]:{direction:"rtl"},[`${Ht}-badge ${Ht}-badge-count`]:{zIndex:1},[`> ${Ht}-badge:not(:first-child) > ${Ht}-button-wrapper`]:{borderInlineStart:"none"}})}},Qe=Me=>{const{componentCls:st,wrapperMarginInlineEnd:Ht,colorPrimary:Tt,radioSize:ct,motionDurationSlow:Ct,motionDurationMid:Zt,motionEaseInOutCirc:gn,colorBgContainer:$t,colorBorder:Wt,lineWidth:on,dotSize:dn,colorBgContainerDisabled:ln,colorTextDisabled:xe,paddingXS:fe,dotColorDisabled:ue,lineType:he,radioDotDisabledSize:me,wireframe:oe,colorWhite:Ne}=Me,At=`${st}-inner`;return{[`${st}-wrapper`]:Object.assign(Object.assign({},(0,lt.Wf)(Me)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Ht,cursor:"pointer",[`&${st}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Me.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${st}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${on}px ${he} ${Tt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[st]:Object.assign(Object.assign({},(0,lt.Wf)(Me)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${st}-wrapper:hover &,
|
|
|
&:hover ${At}`]:{borderColor:Tt},[`${st}-input:focus-visible + ${At}`]:Object.assign({},(0,lt.oN)(Me)),[`${st}:hover::after, ${st}-wrapper:hover &::after`]:{visibility:"visible"},[`${st}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:ct,height:ct,marginBlockStart:ct/-2,marginInlineStart:ct/-2,backgroundColor:oe?Tt:Ne,borderBlockStart:0,borderInlineStart:0,borderRadius:ct,transform:"scale(0)",opacity:0,transition:`all ${Ct} ${gn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:ct,height:ct,backgroundColor:$t,borderColor:Wt,borderStyle:"solid",borderWidth:on,borderRadius:"50%",transition:`all ${Zt}`},[`${st}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${st}-checked`]:{[At]:{borderColor:Tt,backgroundColor:oe?$t:Tt,"&::after":{transform:`scale(${dn/ct})`,opacity:1,transition:`all ${Ct} ${gn}`}}},[`${st}-disabled`]:{cursor:"not-allowed",[At]:{backgroundColor:ln,borderColor:Wt,cursor:"not-allowed","&::after":{backgroundColor:ue}},[`${st}-input`]:{cursor:"not-allowed"},[`${st}-disabled + span`]:{color:xe,cursor:"not-allowed"},[`&${st}-checked`]:{[At]:{"&::after":{transform:`scale(${me/ct})`}}}},[`span${st} + *`]:{paddingInlineStart:fe,paddingInlineEnd:fe}})}},Ze=Me=>{const{buttonColor:st,controlHeight:Ht,componentCls:Tt,lineWidth:ct,lineType:Ct,colorBorder:Zt,motionDurationSlow:gn,motionDurationMid:$t,buttonPaddingInline:Wt,fontSize:on,buttonBg:dn,fontSizeLG:ln,controlHeightLG:xe,controlHeightSM:fe,paddingXS:ue,borderRadius:he,borderRadiusSM:me,borderRadiusLG:oe,buttonCheckedBg:Ne,buttonSolidCheckedColor:At,colorTextDisabled:Ge,colorBgContainerDisabled:je,buttonCheckedBgDisabled:Pt,buttonCheckedColorDisabled:Et,colorPrimary:ht,colorPrimaryHover:Kt,colorPrimaryActive:vn,buttonSolidCheckedBg:kt,buttonSolidCheckedHoverBg:Ut,buttonSolidCheckedActiveBg:yn}=Me;return{[`${Tt}-button-wrapper`]:{position:"relative",display:"inline-block",height:Ht,margin:0,paddingInline:Wt,paddingBlock:0,color:st,fontSize:on,lineHeight:`${Ht-ct*2}px`,background:dn,border:`${ct}px ${Ct} ${Zt}`,borderBlockStartWidth:ct+.02,borderInlineStartWidth:0,borderInlineEndWidth:ct,cursor:"pointer",transition:[`color ${$t}`,`background ${$t}`,`box-shadow ${$t}`].join(","),a:{color:st},[`> ${Tt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-ct,insetInlineStart:-ct,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ct,paddingInline:0,backgroundColor:Zt,transition:`background-color ${gn}`,content:'""'}},"&:first-child":{borderInlineStart:`${ct}px ${Ct} ${Zt}`,borderStartStartRadius:he,borderEndStartRadius:he},"&:last-child":{borderStartEndRadius:he,borderEndEndRadius:he},"&:first-child:last-child":{borderRadius:he},[`${Tt}-group-large &`]:{height:xe,fontSize:ln,lineHeight:`${xe-ct*2}px`,"&:first-child":{borderStartStartRadius:oe,borderEndStartRadius:oe},"&:last-child":{borderStartEndRadius:oe,borderEndEndRadius:oe}},[`${Tt}-group-small &`]:{height:fe,paddingInline:ue-ct,paddingBlock:0,lineHeight:`${fe-ct*2}px`,"&:first-child":{borderStartStartRadius:me,borderEndStartRadius:me},"&:last-child":{borderStartEndRadius:me,borderEndEndRadius:me}},"&:hover":{position:"relative",color:ht},"&:has(:focus-visible)":Object.assign({},(0,lt.oN)(Me)),[`${Tt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Tt}-button-wrapper-disabled)`]:{zIndex:1,color:ht,background:Ne,borderColor:ht,"&::before":{backgroundColor:ht},"&:first-child":{borderColor:ht},"&:hover":{color:Kt,borderColor:Kt,"&::before":{backgroundColor:Kt}},"&:active":{color:vn,borderColor:vn,"&::before":{backgroundColor:vn}}},[`${Tt}-group-solid &-checked:not(${Tt}-button-wrapper-disabled)`]:{color:At,background:kt,borderColor:kt,"&:hover":{color:At,background:Ut,borderColor:Ut},"&:active":{color:At,background:yn,borderColor:yn}},"&-disabled":{color:Ge,backgroundColor:je,borderColor:Zt,cursor:"not-allowed","&:first-child, &:hover":{color:Ge,backgroundColor:je,borderColor:Zt}},[`&-disabled${Tt}-button-wrapper-checked`]:{color:Et,backgroundColor:Pt,borderColor:Zt,boxShadow:"none"}}}},Ae=Me=>Me-4*2;var Je=(0,Xe.Z)("Radio",Me=>{const{controlOutline:st,controlOutlineWidth:Ht,radioSize:Tt}=Me,ct=`0 0 0 ${Ht}px ${st}`,Ct=ct,Zt=Ae(Tt),gn=(0,Dt.TS)(Me,{radioDotDisabledSize:Zt,radioFocusShadow:ct,radioButtonFocusShadow:Ct});return[dt(gn),Qe(gn),Ze(gn)]},Me=>{const{wireframe:st,padding:Ht,marginXS:Tt,lineWidth:ct,fontSizeLG:Ct,colorText:Zt,colorBgContainer:gn,colorTextDisabled:$t,controlItemBgActiveDisabled:Wt,colorTextLightSolid:on,colorPrimary:dn,colorPrimaryHover:ln,colorPrimaryActive:xe}=Me,fe=4,ue=Ct,he=st?Ae(ue):ue-(fe+ct)*2;return{radioSize:ue,dotSize:he,dotColorDisabled:$t,buttonSolidCheckedColor:on,buttonSolidCheckedBg:dn,buttonSolidCheckedHoverBg:ln,buttonSolidCheckedActiveBg:xe,buttonBg:gn,buttonCheckedBg:gn,buttonColor:Zt,buttonCheckedBgDisabled:Wt,buttonCheckedColorDisabled:$t,buttonPaddingInline:Ht-ct,wrapperMarginInlineEnd:Tt}}),Re=ne(14088),vt=ne(4572),$e=function(Me,st){var Ht={};for(var Tt in Me)Object.prototype.hasOwnProperty.call(Me,Tt)&&st.indexOf(Tt)<0&&(Ht[Tt]=Me[Tt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Tt=Object.getOwnPropertySymbols(Me);ct<Tt.length;ct++)st.indexOf(Tt[ct])<0&&Object.prototype.propertyIsEnumerable.call(Me,Tt[ct])&&(Ht[Tt[ct]]=Me[Tt[ct]]);return Ht};const mt=(Me,st)=>{var Ht,Tt;const ct=Ce.useContext(Pe),Ct=Ce.useContext(et),{getPrefixCls:Zt,direction:gn,radio:$t}=Ce.useContext(Se.E_),Wt=Ce.useRef(null),on=(0,tt.sQ)(st,Wt),{isFormItemInput:dn}=Ce.useContext(We.aM),ln=vn=>{var kt,Ut;(kt=Me.onChange)===null||kt===void 0||kt.call(Me,vn),(Ut=ct==null?void 0:ct.onChange)===null||Ut===void 0||Ut.call(ct,vn)},{prefixCls:xe,className:fe,rootClassName:ue,children:he,style:me}=Me,oe=$e(Me,["prefixCls","className","rootClassName","children","style"]),Ne=Zt("radio",xe),At=((ct==null?void 0:ct.optionType)||Ct)==="button",Ge=At?`${Ne}-button`:Ne,[je,Pt]=Je(Ne),Et=Object.assign({},oe),ht=Ce.useContext(ze.Z);ct&&(Et.name=ct.name,Et.onChange=ln,Et.checked=Me.value===ct.value,Et.disabled=(Ht=Et.disabled)!==null&&Ht!==void 0?Ht:ct.disabled),Et.disabled=(Tt=Et.disabled)!==null&&Tt!==void 0?Tt:ht;const Kt=ye()(`${Ge}-wrapper`,{[`${Ge}-wrapper-checked`]:Et.checked,[`${Ge}-wrapper-disabled`]:Et.disabled,[`${Ge}-wrapper-rtl`]:gn==="rtl",[`${Ge}-wrapper-in-form-item`]:dn},$t==null?void 0:$t.className,fe,ue,Pt);return je(Ce.createElement(Re.Z,{component:"Radio",disabled:Et.disabled},Ce.createElement("label",{className:Kt,style:Object.assign(Object.assign({},$t==null?void 0:$t.style),me),onMouseEnter:Me.onMouseEnter,onMouseLeave:Me.onMouseLeave},Ce.createElement(Ie.Z,Object.assign({},Et,{className:ye()(Et.className,!At&&vt.A),type:"radio",prefixCls:Ge,ref:on})),he!==void 0?Ce.createElement("span",null,he):null)))};var xt=Ce.forwardRef(mt);const Ve=Ce.forwardRef((Me,st)=>{const{getPrefixCls:Ht,direction:Tt}=Ce.useContext(Se.E_),[ct,Ct]=(0,Ee.Z)(Me.defaultValue,{value:Me.value}),Zt=kt=>{const Ut=ct,yn=kt.target.value;"value"in Me||Ct(yn);const{onChange:Bt}=Me;Bt&&yn!==Ut&&Bt(kt)},{prefixCls:gn,className:$t,rootClassName:Wt,options:on,buttonStyle:dn="outline",disabled:ln,children:xe,size:fe,style:ue,id:he,onMouseEnter:me,onMouseLeave:oe,onFocus:Ne,onBlur:At}=Me,Ge=Ht("radio",gn),je=`${Ge}-group`,[Pt,Et]=Je(Ge);let ht=xe;on&&on.length>0&&(ht=on.map(kt=>typeof kt=="string"||typeof kt=="number"?Ce.createElement(xt,{key:kt.toString(),prefixCls:Ge,disabled:ln,value:kt,checked:ct===kt},kt):Ce.createElement(xt,{key:`radio-group-value-options-${kt.value}`,prefixCls:Ge,disabled:kt.disabled||ln,value:kt.value,checked:ct===kt.value,title:kt.title,style:kt.style},kt.label)));const Kt=(0,pe.Z)(fe),vn=ye()(je,`${je}-${dn}`,{[`${je}-${Kt}`]:Kt,[`${je}-rtl`]:Tt==="rtl"},$t,Wt,Et);return Pt(Ce.createElement("div",Object.assign({},(0,Ye.Z)(Me,{aria:!0,data:!0}),{className:vn,style:ue,onMouseEnter:me,onMouseLeave:oe,onFocus:Ne,onBlur:At,id:he,ref:st}),Ce.createElement(De,{value:{onChange:Zt,value:ct,disabled:Me.disabled,name:Me.name,optionType:Me.optionType}},ht)))});var Ot=Ce.memo(Ve),nt=function(Me,st){var Ht={};for(var Tt in Me)Object.prototype.hasOwnProperty.call(Me,Tt)&&st.indexOf(Tt)<0&&(Ht[Tt]=Me[Tt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Tt=Object.getOwnPropertySymbols(Me);ct<Tt.length;ct++)st.indexOf(Tt[ct])<0&&Object.prototype.propertyIsEnumerable.call(Me,Tt[ct])&&(Ht[Tt[ct]]=Me[Tt[ct]]);return Ht};const wt=(Me,st)=>{const{getPrefixCls:Ht}=Ce.useContext(Se.E_),{prefixCls:Tt}=Me,ct=nt(Me,["prefixCls"]),Ct=Ht("radio",Tt);return Ce.createElement(Fe,{value:"button"},Ce.createElement(xt,Object.assign({prefixCls:Ct},ct,{type:"radio",ref:st})))};var Mt=Ce.forwardRef(wt);const at=xt;at.Button=Mt,at.Group=Ot,at.__ANT_RADIO=!0;var Le=at},13570:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Me}});var E=ne(60499),ye=ne(59301),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Ye=Ee,Ce=ne(85221),Se=function(Ht,Tt){return ye.createElement(Ce.Z,(0,E.Z)({},Ht,{ref:Tt,icon:Ye}))},pe=ye.forwardRef(Se),be=pe,De=ne(92310),Pe=ne.n(De),et=ne(18642),Fe=ne(72190),Ie=ne(42244),tt=ne(18929),ze=ne(10228),We=ne(26112);function lt(st,Ht){var Tt=st.disabled,ct=st.prefixCls,Ct=st.character,Zt=st.characterRender,gn=st.index,$t=st.count,Wt=st.value,on=st.allowHalf,dn=st.focused,ln=st.onHover,xe=st.onClick,fe=function(je){ln(je,gn)},ue=function(je){xe(je,gn)},he=function(je){je.keyCode===ze.Z.ENTER&&xe(je,gn)},me=gn+1,oe=new Set([ct]);Wt===0&&gn===0&&dn?oe.add("".concat(ct,"-focused")):on&&Wt+.5>=me&&Wt<me?(oe.add("".concat(ct,"-half")),oe.add("".concat(ct,"-active")),dn&&oe.add("".concat(ct,"-focused"))):(me<=Wt?oe.add("".concat(ct,"-full")):oe.add("".concat(ct,"-zero")),me===Wt&&dn&&oe.add("".concat(ct,"-focused")));var Ne=typeof Ct=="function"?Ct(st):Ct,At=ye.createElement("li",{className:Pe()(Array.from(oe)),ref:Ht},ye.createElement("div",{onClick:Tt?null:ue,onKeyDown:Tt?null:he,onMouseMove:Tt?null:fe,role:"radio","aria-checked":Wt>gn?"true":"false","aria-posinset":gn+1,"aria-setsize":$t,tabIndex:Tt?-1:0},ye.createElement("div",{className:"".concat(ct,"-first")},Ne),ye.createElement("div",{className:"".concat(ct,"-second")},Ne)));return Zt&&(At=Zt(At,st)),At}var Xe=ye.forwardRef(lt);function Dt(){var st=ye.useRef({});function Ht(ct){return st.current[ct]}function Tt(ct){return function(Ct){st.current[ct]=Ct}}return[Ht,Tt]}function dt(st){var Ht=st.pageXOffset,Tt="scrollLeft";if(typeof Ht!="number"){var ct=st.document;Ht=ct.documentElement[Tt],typeof Ht!="number"&&(Ht=ct.body[Tt])}return Ht}function Qe(st){var Ht,Tt,ct=st.ownerDocument,Ct=ct.body,Zt=ct&&ct.documentElement,gn=st.getBoundingClientRect();return Ht=gn.left,Tt=gn.top,Ht-=Zt.clientLeft||Ct.clientLeft||0,Tt-=Zt.clientTop||Ct.clientTop||0,{left:Ht,top:Tt}}function Ze(st){var Ht=Qe(st),Tt=st.ownerDocument,ct=Tt.defaultView||Tt.parentWindow;return Ht.left+=dt(ct),Ht.left}var Ae=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Je(st,Ht){var Tt,ct=st.prefixCls,Ct=ct===void 0?"rc-rate":ct,Zt=st.className,gn=st.defaultValue,$t=st.value,Wt=st.count,on=Wt===void 0?5:Wt,dn=st.allowHalf,ln=dn===void 0?!1:dn,xe=st.allowClear,fe=xe===void 0?!0:xe,ue=st.character,he=ue===void 0?"\u2605":ue,me=st.characterRender,oe=st.disabled,Ne=st.direction,At=Ne===void 0?"ltr":Ne,Ge=st.tabIndex,je=Ge===void 0?0:Ge,Pt=st.autoFocus,Et=st.onHoverChange,ht=st.onChange,Kt=st.onFocus,vn=st.onBlur,kt=st.onKeyDown,Ut=st.onMouseLeave,yn=(0,Ie.Z)(st,Ae),Bt=Dt(),Ke=(0,Fe.Z)(Bt,2),gt=Ke[0],Vt=Ke[1],Nt=ye.useRef(null),Xt=function(){if(!oe){var rt;(rt=Nt.current)===null||rt===void 0||rt.focus()}};ye.useImperativeHandle(Ht,function(){return{focus:Xt,blur:function(){if(!oe){var rt;(rt=Nt.current)===null||rt===void 0||rt.blur()}}}});var Mn=(0,tt.Z)(gn||0,{value:$t}),Tn=(0,Fe.Z)(Mn,2),Rn=Tn[0],ur=Tn[1],vr=(0,tt.Z)(null),dr=(0,Fe.Z)(vr,2),mn=dr[0],zn=dr[1],jn=function(rt,_t){var Qt=At==="rtl",pn=rt+1;if(ln){var sn=gt(rt),Bn=Ze(sn),Yn=sn.clientWidth;(Qt&&_t-Bn>Yn/2||!Qt&&_t-Bn<Yn/2)&&(pn-=.5)}return pn},Xn=function(rt){ur(rt),ht==null||ht(rt)},Sr=ye.useState(!1),Kr=(0,Fe.Z)(Sr,2),ar=Kr[0],Zn=Kr[1],Wr=function(){Zn(!0),Kt==null||Kt()},Gt=function(){Zn(!1),vn==null||vn()},or=ye.useState(null),er=(0,Fe.Z)(or,2),Kn=er[0],En=er[1],nr=function(rt,_t){var Qt=jn(_t,rt.pageX);Qt!==mn&&(En(Qt),zn(null)),Et==null||Et(Qt)},lr=function(rt){oe||(En(null),zn(null),Et==null||Et(void 0)),rt&&(Ut==null||Ut(rt))},xr=function(rt,_t){var Qt=jn(_t,rt.pageX),pn=!1;fe&&(pn=Qt===Rn),lr(),Xn(pn?0:Qt),zn(pn?Qt:null)},jt=function(rt){var _t=rt.keyCode,Qt=At==="rtl",pn=Rn;_t===ze.Z.RIGHT&&pn<on&&!Qt?(ln?pn+=.5:pn+=1,Xn(pn),rt.preventDefault()):_t===ze.Z.LEFT&&pn>0&&!Qt||_t===ze.Z.RIGHT&&pn>0&&Qt?(ln?pn-=.5:pn-=1,Xn(pn),rt.preventDefault()):_t===ze.Z.LEFT&&pn<on&&Qt&&(ln?pn+=.5:pn+=1,Xn(pn),rt.preventDefault()),kt==null||kt(rt)};ye.useEffect(function(){Pt&&!oe&&Xt()},[]);var Ue=new Array(on).fill(0).map(function(ut,rt){return ye.createElement(Xe,{ref:Vt(rt),index:rt,count:on,disabled:oe,prefixCls:"".concat(Ct,"-star"),allowHalf:ln,value:Kn===null?Rn:Kn,onClick:xr,onHover:nr,key:ut||rt,character:he,characterRender:me,focused:ar})}),yt=Pe()(Ct,Zt,(Tt={},(0,et.Z)(Tt,"".concat(Ct,"-disabled"),oe),(0,et.Z)(Tt,"".concat(Ct,"-rtl"),At==="rtl"),Tt));return ye.createElement("ul",(0,E.Z)({className:yt,onMouseLeave:lr,tabIndex:oe?-1:je,onFocus:oe?null:Wr,onBlur:oe?null:Gt,onKeyDown:oe?null:jt,ref:Nt,role:"radiogroup"},(0,We.Z)(yn,{aria:!0,data:!0,attr:!0})),Ue)}var Re=ye.forwardRef(Je),vt=Re,$e=ne(36355),mt=ne(6848),Be=ne(17313),xt=ne(83116),Ve=ne(37613);const Ot=st=>{const{componentCls:Ht}=st;return{[`${Ht}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:st.marginXS},"> div":{transition:`all ${st.motionDurationMid}, outline 0s`,"&:hover":{transform:st.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${st.lineWidth}px dashed ${st.starColor}`,transform:st.starHoverScale}},"&-first, &-second":{color:st.starBg,transition:`all ${st.motionDurationMid}`,userSelect:"none",[st.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Ht}-star-first, &-half ${Ht}-star-second`]:{opacity:1},[`&-half ${Ht}-star-first, &-full ${Ht}-star-second`]:{color:"inherit"}}}},nt=st=>({[`&-rtl${st.componentCls}`]:{direction:"rtl"}}),wt=st=>{const{componentCls:Ht}=st;return{[Ht]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(st)),{display:"inline-block",margin:0,padding:0,color:st.starColor,fontSize:st.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Ht} ${Ht}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ot(st)),{[`+ ${Ht}-text`]:{display:"inline-block",marginInlineStart:st.marginXS,fontSize:st.fontSize}}),nt(st))}};var Mt=(0,xt.Z)("Rate",st=>{const Ht=(0,Ve.TS)(st,{});return[wt(Ht)]},st=>({starColor:st.yellow6,starSize:st.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:st.colorFillContent})),at=function(st,Ht){var Tt={};for(var ct in st)Object.prototype.hasOwnProperty.call(st,ct)&&Ht.indexOf(ct)<0&&(Tt[ct]=st[ct]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,ct=Object.getOwnPropertySymbols(st);Ct<ct.length;Ct++)Ht.indexOf(ct[Ct])<0&&Object.prototype.propertyIsEnumerable.call(st,ct[Ct])&&(Tt[ct[Ct]]=st[ct[Ct]]);return Tt},Me=ye.forwardRef((st,Ht)=>{const{prefixCls:Tt,className:ct,rootClassName:Ct,style:Zt,tooltips:gn,character:$t=ye.createElement(be,null)}=st,Wt=at(st,["prefixCls","className","rootClassName","style","tooltips","character"]),on=(oe,Ne)=>{let{index:At}=Ne;return gn?ye.createElement(mt.Z,{title:gn[At]},oe):oe},{getPrefixCls:dn,direction:ln,rate:xe}=ye.useContext($e.E_),fe=dn("rate",Tt),[ue,he]=Mt(fe),me=Object.assign(Object.assign({},xe==null?void 0:xe.style),Zt);return ue(ye.createElement(vt,Object.assign({ref:Ht,character:$t,characterRender:on},Wt,{className:Pe()(ct,Ct,he,xe==null?void 0:xe.className),style:me,prefixCls:fe,direction:ln})))})},57809:function(An,tn,ne){"use strict";var E=ne(92310),ye=ne.n(E),Ee=ne(77861),Ye=ne(2738),Ce=ne(59301),Se=ne(53487),pe=ne(62892),be=ne(19080),De=ne(36355),Pe=ne(1684),et=ne(93891),Fe=ne(19716),Ie=ne(32441),tt=ne(33234),ze=ne(14154),We=ne(58582),lt=ne(84443),Xe=ne(66339),Dt=function(Je,Re){var vt={};for(var $e in Je)Object.prototype.hasOwnProperty.call(Je,$e)&&Re.indexOf($e)<0&&(vt[$e]=Je[$e]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,$e=Object.getOwnPropertySymbols(Je);mt<$e.length;mt++)Re.indexOf($e[mt])<0&&Object.prototype.propertyIsEnumerable.call(Je,$e[mt])&&(vt[$e[mt]]=Je[$e[mt]]);return vt};const dt="SECRET_COMBOBOX_MODE_DO_NOT_USE",Qe=(Je,Re)=>{var vt,{prefixCls:$e,bordered:mt=!0,className:Be,rootClassName:xt,getPopupContainer:Ve,popupClassName:Ot,dropdownClassName:nt,listHeight:wt=256,placement:Mt,listItemHeight:at=24,size:Le,disabled:Me,notFoundContent:st,status:Ht,builtinPlacements:Tt,dropdownMatchSelectWidth:ct,popupMatchSelectWidth:Ct,direction:Zt,style:gn,allowClear:$t}=Je,Wt=Dt(Je,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:on,getPrefixCls:dn,renderEmpty:ln,direction:xe,virtual:fe,popupMatchSelectWidth:ue,popupOverflow:he,select:me}=Ce.useContext(De.E_),oe=dn("select",$e),Ne=dn(),At=Zt!=null?Zt:xe,{compactSize:Ge,compactItemClassnames:je}=(0,tt.ri)(oe,At),[Pt,Et]=(0,ze.Z)(oe),ht=Ce.useMemo(()=>{const{mode:Kr}=Wt;if(Kr!=="combobox")return Kr===dt?"combobox":Kr},[Wt.mode]),Kt=ht==="multiple"||ht==="tags",vn=(0,lt.Z)(Wt.suffixIcon,Wt.showArrow),kt=(vt=Ct!=null?Ct:ct)!==null&&vt!==void 0?vt:ue,{status:Ut,hasFeedback:yn,isFormItemInput:Bt,feedbackIcon:Ke}=Ce.useContext(Ie.aM),gt=(0,be.F)(Ut,Ht);let Vt;st!==void 0?Vt=st:ht==="combobox"?Vt=null:Vt=(ln==null?void 0:ln("Select"))||Ce.createElement(et.Z,{componentName:"Select"});const{suffixIcon:Nt,itemIcon:Xt,removeIcon:Mn,clearIcon:Tn}=(0,Xe.Z)(Object.assign(Object.assign({},Wt),{multiple:Kt,hasFeedback:yn,feedbackIcon:Ke,showSuffixIcon:vn,prefixCls:oe,showArrow:Wt.showArrow,componentName:"Select"})),Rn=$t===!0?{clearIcon:Tn}:$t,ur=(0,Ye.Z)(Wt,["suffixIcon","itemIcon"]),vr=ye()(Ot||nt,{[`${oe}-dropdown-${At}`]:At==="rtl"},xt,Et),dr=(0,Fe.Z)(Kr=>{var ar;return(ar=Le!=null?Le:Ge)!==null&&ar!==void 0?ar:Kr}),mn=Ce.useContext(Pe.Z),zn=Me!=null?Me:mn,jn=ye()({[`${oe}-lg`]:dr==="large",[`${oe}-sm`]:dr==="small",[`${oe}-rtl`]:At==="rtl",[`${oe}-borderless`]:!mt,[`${oe}-in-form-item`]:Bt},(0,be.Z)(oe,gt,yn),je,me==null?void 0:me.className,Be,xt,Et),Xn=Ce.useMemo(()=>Mt!==void 0?Mt:At==="rtl"?"bottomRight":"bottomLeft",[Mt,At]),Sr=(0,We.Z)(Tt,he);return Pt(Ce.createElement(Ee.ZP,Object.assign({ref:Re,virtual:fe,showSearch:me==null?void 0:me.showSearch},ur,{style:Object.assign(Object.assign({},me==null?void 0:me.style),gn),dropdownMatchSelectWidth:kt,builtinPlacements:Sr,transitionName:(0,pe.m)(Ne,"slide-up",Wt.transitionName),listHeight:wt,listItemHeight:at,mode:ht,prefixCls:oe,placement:Xn,direction:At,suffixIcon:Nt,menuItemSelectedIcon:Xt,removeIcon:Mn,allowClear:Rn,notFoundContent:Vt,className:jn,getPopupContainer:Ve||on,dropdownClassName:vr,disabled:zn})))},Ze=Ce.forwardRef(Qe),Ae=(0,Se.Z)(Ze);Ze.SECRET_COMBOBOX_MODE_DO_NOT_USE=dt,Ze.Option=Ee.Wx,Ze.OptGroup=Ee.Xo,Ze._InternalPanelDoNotUseOrYouWillBeFired=Ae,tn.default=Ze},14154:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Ze}});var E=ne(17313),ye=ne(74207),Ee=ne(37613),Ye=ne(83116),Ce=ne(13826),Se=ne(92899);const pe=Ae=>{const{optionHeight:Je,optionFontSize:Re,optionLineHeight:vt,optionPadding:$e}=Ae;return{position:"relative",display:"block",minHeight:Je,padding:$e,color:Ae.colorText,fontWeight:"normal",fontSize:Re,lineHeight:vt,boxSizing:"border-box"}};var De=Ae=>{const{antCls:Je,componentCls:Re}=Ae,vt=`${Re}-item`,$e=`&${Je}-slide-up-enter${Je}-slide-up-enter-active`,mt=`&${Je}-slide-up-appear${Je}-slide-up-appear-active`,Be=`&${Je}-slide-up-leave${Je}-slide-up-leave-active`,xt=`${Re}-dropdown-placement-`;return[{[`${Re}-dropdown`]:Object.assign(Object.assign({},(0,E.Wf)(Ae)),{position:"absolute",top:-9999,zIndex:Ae.zIndexPopup,boxSizing:"border-box",padding:Ae.paddingXXS,overflow:"hidden",fontSize:Ae.fontSize,fontVariant:"initial",backgroundColor:Ae.colorBgElevated,borderRadius:Ae.borderRadiusLG,outline:"none",boxShadow:Ae.boxShadowSecondary,[`
|
|
|
${$e}${xt}bottomLeft,
|
|
|
${mt}${xt}bottomLeft
|
|
|
`]:{animationName:Ce.fJ},[`
|
|
|
${$e}${xt}topLeft,
|
|
|
${mt}${xt}topLeft,
|
|
|
${$e}${xt}topRight,
|
|
|
${mt}${xt}topRight
|
|
|
`]:{animationName:Ce.Qt},[`${Be}${xt}bottomLeft`]:{animationName:Ce.Uw},[`
|
|
|
${Be}${xt}topLeft,
|
|
|
${Be}${xt}topRight
|
|
|
`]:{animationName:Ce.ly},"&-hidden":{display:"none"},[`${vt}`]:Object.assign(Object.assign({},pe(Ae)),{cursor:"pointer",transition:`background ${Ae.motionDurationSlow} ease`,borderRadius:Ae.borderRadiusSM,"&-group":{color:Ae.colorTextDescription,fontSize:Ae.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},E.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${vt}-option-disabled)`]:{backgroundColor:Ae.optionActiveBg},[`&-selected:not(${vt}-option-disabled)`]:{color:Ae.optionSelectedColor,fontWeight:Ae.optionSelectedFontWeight,backgroundColor:Ae.optionSelectedBg,[`${vt}-option-state`]:{color:Ae.colorPrimary}},"&-disabled":{[`&${vt}-option-selected`]:{backgroundColor:Ae.colorBgContainerDisabled},color:Ae.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ae.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Ce.oN)(Ae,"slide-up"),(0,Ce.oN)(Ae,"slide-down"),(0,Se.Fm)(Ae,"move-up"),(0,Se.Fm)(Ae,"move-down")]};const Pe=2,et=Ae=>{let{controlHeightSM:Je,controlHeight:Re,lineWidth:vt}=Ae;const $e=(Re-Je)/2-vt,mt=Math.ceil($e/2);return[$e,mt]};function Fe(Ae,Je){const{componentCls:Re,iconCls:vt}=Ae,$e=`${Re}-selection-overflow`,mt=Ae.multipleSelectItemHeight,[Be]=et(Ae),xt=Je?`${Re}-${Je}`:"";return{[`${Re}-multiple${xt}`]:{fontSize:Ae.fontSize,[$e]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Re}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Be-Pe}px ${Pe*2}px`,borderRadius:Ae.borderRadius,[`${Re}-show-search&`]:{cursor:"text"},[`${Re}-disabled&`]:{background:Ae.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Pe}px 0`,lineHeight:`${mt}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Re}-show-arrow ${Re}-selector,
|
|
|
&${Re}-allow-clear ${Re}-selector
|
|
|
`]:{paddingInlineEnd:Ae.fontSizeIcon+Ae.controlPaddingHorizontal},[`${Re}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:mt,marginTop:Pe,marginBottom:Pe,lineHeight:`${mt-Ae.lineWidth*2}px`,background:Ae.multipleItemBg,border:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.multipleItemBorderColor}`,borderRadius:Ae.borderRadiusSM,cursor:"default",transition:`font-size ${Ae.motionDurationSlow}, line-height ${Ae.motionDurationSlow}, height ${Ae.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Pe*2,paddingInlineStart:Ae.paddingXS,paddingInlineEnd:Ae.paddingXS/2,[`${Re}-disabled&`]:{color:Ae.multipleItemColorDisabled,borderColor:Ae.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ae.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,E.Ro)()),{display:"inline-flex",alignItems:"center",color:Ae.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${vt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ae.colorIconHover}})},[`${$e}-item + ${$e}-item`]:{[`${Re}-selection-search`]:{marginInlineStart:0}},[`${Re}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ae.inputPaddingHorizontalBase-Be,"\n &-input,\n &-mirror\n ":{height:mt,fontFamily:Ae.fontFamily,lineHeight:`${mt}px`,transition:`all ${Ae.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Re}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ae.inputPaddingHorizontalBase,insetInlineEnd:Ae.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ae.motionDurationSlow}`}}}}var tt=Ae=>{const{componentCls:Je}=Ae,Re=(0,Ee.TS)(Ae,{controlHeight:Ae.controlHeightSM,multipleSelectItemHeight:Ae.controlHeightXS,borderRadius:Ae.borderRadiusSM,borderRadiusSM:Ae.borderRadiusXS}),vt=(0,Ee.TS)(Ae,{fontSize:Ae.fontSizeLG,controlHeight:Ae.controlHeightLG,multipleSelectItemHeight:Ae.multipleItemHeightLG,borderRadius:Ae.borderRadiusLG,borderRadiusSM:Ae.borderRadius}),[,$e]=et(Ae);return[Fe(Ae),Fe(Re,"sm"),{[`${Je}-multiple${Je}-sm`]:{[`${Je}-selection-placeholder`]:{insetInline:Ae.controlPaddingHorizontalSM-Ae.lineWidth},[`${Je}-selection-search`]:{marginInlineStart:$e}}},Fe(vt,"lg")]};function ze(Ae,Je){const{componentCls:Re,inputPaddingHorizontalBase:vt,borderRadius:$e}=Ae,mt=Ae.controlHeight-Ae.lineWidth*2,Be=Math.ceil(Ae.fontSize*1.25),xt=Je?`${Re}-${Je}`:"";return{[`${Re}-single${xt}`]:{fontSize:Ae.fontSize,[`${Re}-selector`]:Object.assign(Object.assign({},(0,E.Wf)(Ae)),{display:"flex",borderRadius:$e,[`${Re}-selection-search`]:{position:"absolute",top:0,insetInlineStart:vt,insetInlineEnd:vt,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Re}-selection-item,
|
|
|
${Re}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${mt}px`,transition:`all ${Ae.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${mt}px`}},[`${Re}-selection-item`]:{position:"relative",userSelect:"none"},[`${Re}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Re}-selection-item:after`,`${Re}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Re}-show-arrow ${Re}-selection-item,
|
|
|
&${Re}-show-arrow ${Re}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Be},[`&${Re}-open ${Re}-selection-item`]:{color:Ae.colorTextPlaceholder},[`&:not(${Re}-customize-input)`]:{[`${Re}-selector`]:{width:"100%",height:Ae.controlHeight,padding:`0 ${vt}px`,[`${Re}-selection-search-input`]:{height:mt},"&:after":{lineHeight:`${mt}px`}}},[`&${Re}-customize-input`]:{[`${Re}-selector`]:{"&:after":{display:"none"},[`${Re}-selection-search`]:{position:"static",width:"100%"},[`${Re}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${vt}px`,"&:after":{display:"none"}}}}}}}function We(Ae){const{componentCls:Je}=Ae,Re=Ae.controlPaddingHorizontalSM-Ae.lineWidth;return[ze(Ae),ze((0,Ee.TS)(Ae,{controlHeight:Ae.controlHeightSM,borderRadius:Ae.borderRadiusSM}),"sm"),{[`${Je}-single${Je}-sm`]:{[`&:not(${Je}-customize-input)`]:{[`${Je}-selection-search`]:{insetInlineStart:Re,insetInlineEnd:Re},[`${Je}-selector`]:{padding:`0 ${Re}px`},[`&${Je}-show-arrow ${Je}-selection-search`]:{insetInlineEnd:Re+Ae.fontSize*1.5},[`
|
|
|
&${Je}-show-arrow ${Je}-selection-item,
|
|
|
&${Je}-show-arrow ${Je}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ae.fontSize*1.5}}}},ze((0,Ee.TS)(Ae,{controlHeight:Ae.singleItemHeightLG,fontSize:Ae.fontSizeLG,borderRadius:Ae.borderRadiusLG}),"lg")]}const lt=Ae=>{const{componentCls:Je,selectorBg:Re}=Ae;return{position:"relative",backgroundColor:Re,border:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`,transition:`all ${Ae.motionDurationMid} ${Ae.motionEaseInOut}`,input:{cursor:"pointer"},[`${Je}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Je}-disabled&`]:{color:Ae.colorTextDisabled,background:Ae.colorBgContainerDisabled,cursor:"not-allowed",[`${Je}-multiple&`]:{background:Ae.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Xe=function(Ae,Je){let Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:vt,borderHoverColor:$e,outlineColor:mt,antCls:Be}=Je,xt=Re?{[`${vt}-selector`]:{borderColor:$e}}:{};return{[Ae]:{[`&:not(${vt}-disabled):not(${vt}-customize-input):not(${Be}-pagination-size-changer)`]:Object.assign(Object.assign({},xt),{[`${vt}-focused& ${vt}-selector`]:{borderColor:$e,boxShadow:`0 0 0 ${Je.controlOutlineWidth}px ${mt}`,outline:0},[`&:hover ${vt}-selector`]:{borderColor:$e}})}}},Dt=Ae=>{const{componentCls:Je}=Ae;return{[`${Je}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},dt=Ae=>{const{componentCls:Je,inputPaddingHorizontalBase:Re,iconCls:vt}=Ae;return{[Je]:Object.assign(Object.assign({},(0,E.Wf)(Ae)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Je}-customize-input) ${Je}-selector`]:Object.assign(Object.assign({},lt(Ae)),Dt(Ae)),[`${Je}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},E.vS),[`${Je}-selection-placeholder`]:Object.assign(Object.assign({},E.vS),{flex:1,color:Ae.colorTextPlaceholder,pointerEvents:"none"}),[`${Je}-arrow`]:Object.assign(Object.assign({},(0,E.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Re,height:Ae.fontSizeIcon,marginTop:-Ae.fontSizeIcon/2,color:Ae.colorTextQuaternary,fontSize:Ae.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[vt]:{verticalAlign:"top",transition:`transform ${Ae.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Je}-suffix)`]:{pointerEvents:"auto"}},[`${Je}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Je}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Re,zIndex:1,display:"inline-block",width:Ae.fontSizeIcon,height:Ae.fontSizeIcon,marginTop:-Ae.fontSizeIcon/2,color:Ae.colorTextQuaternary,fontSize:Ae.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ae.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ae.motionDurationMid} ease, opacity ${Ae.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ae.colorTextTertiary}},"&:hover":{[`${Je}-clear`]:{opacity:1}}}),[`${Je}-has-feedback`]:{[`${Je}-clear`]:{insetInlineEnd:Re+Ae.fontSize+Ae.paddingXS}}}},Qe=Ae=>{const{componentCls:Je}=Ae;return[{[Je]:{[`&-borderless ${Je}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Je}-in-form-item`]:{width:"100%"}}},dt(Ae),We(Ae),tt(Ae),De(Ae),{[`${Je}-rtl`]:{direction:"rtl"}},Xe(Je,(0,Ee.TS)(Ae,{borderHoverColor:Ae.colorPrimaryHover,outlineColor:Ae.controlOutline})),Xe(`${Je}-status-error`,(0,Ee.TS)(Ae,{borderHoverColor:Ae.colorErrorHover,outlineColor:Ae.colorErrorOutline}),!0),Xe(`${Je}-status-warning`,(0,Ee.TS)(Ae,{borderHoverColor:Ae.colorWarningHover,outlineColor:Ae.colorWarningOutline}),!0),(0,ye.c)(Ae,{borderElCls:`${Je}-selector`,focusElCls:`${Je}-focused`})]};var Ze=(0,Ye.Z)("Select",(Ae,Je)=>{let{rootPrefixCls:Re}=Je;const vt=(0,Ee.TS)(Ae,{rootPrefixCls:Re,inputPaddingHorizontalBase:Ae.paddingSM-1,multipleSelectItemHeight:Ae.multipleItemHeight});return[Qe(vt)]},Ae=>{const{fontSize:Je,lineHeight:Re,controlHeight:vt,controlPaddingHorizontal:$e,zIndexPopupBase:mt,colorText:Be,fontWeightStrong:xt,controlItemBgActive:Ve,controlItemBgHover:Ot,colorBgContainer:nt,colorFillSecondary:wt,controlHeightLG:Mt,controlHeightSM:at,colorBgContainerDisabled:Le,colorTextDisabled:Me}=Ae;return{zIndexPopup:mt+50,optionSelectedColor:Be,optionSelectedFontWeight:xt,optionSelectedBg:Ve,optionActiveBg:Ot,optionPadding:`${(vt-Je*Re)/2}px ${$e}px`,optionFontSize:Je,optionLineHeight:Re,optionHeight:vt,selectorBg:nt,clearBg:nt,singleItemHeightLG:Mt,multipleItemBg:wt,multipleItemBorderColor:"transparent",multipleItemHeight:at,multipleItemHeightLG:vt,multipleSelectorBgDisabled:Le,multipleItemColorDisabled:Me,multipleItemBorderColorDisabled:"transparent"}})},58582:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return ye}});const E=Ee=>{const Ce={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ee==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Ce),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ce),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ce),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ce),{points:["br","tr"],offset:[0,-4]})}};function ye(Ee,Ye){return Ee||E(Ye)}},84443:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return E}});function E(ye,Ee){return Ee!==void 0?Ee:ye!==null}},66339:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});var E=ne(40001),ye=ne(19248),Ee=ne(99267),Ye=ne(84105),Ce=ne(58617),Se=ne(47472),pe=ne(59301);function be(De){let{suffixIcon:Pe,clearIcon:et,menuItemSelectedIcon:Fe,removeIcon:Ie,loading:tt,multiple:ze,hasFeedback:We,prefixCls:lt,showSuffixIcon:Xe,feedbackIcon:Dt,showArrow:dt,componentName:Qe}=De;const Ze=et!=null?et:pe.createElement(ye.Z,null),Ae=$e=>Pe===null&&!We&&!dt?null:pe.createElement(pe.Fragment,null,Xe!==!1&&$e,We&&Dt);let Je=null;if(Pe!==void 0)Je=Ae(Pe);else if(tt)Je=Ae(pe.createElement(Ce.Z,{spin:!0}));else{const $e=`${lt}-suffix`;Je=mt=>{let{open:Be,showSearch:xt}=mt;return Ae(Be&&xt?pe.createElement(Se.Z,{className:$e}):pe.createElement(Ye.Z,{className:$e}))}}let Re=null;Fe!==void 0?Re=Fe:ze?Re=pe.createElement(E.Z,null):Re=null;let vt=null;return Ie!==void 0?vt=Ie:vt=pe.createElement(Ee.Z,null),{clearIcon:Ze,suffixIcon:Je,itemIcon:Re,removeIcon:vt}}},61621:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return he}});var E=ne(92310),ye=ne.n(E),Ee=ne(59301),Ye=ne(36355),Ce=ne(2738),pe=me=>{const{prefixCls:oe,className:Ne,style:At,size:Ge,shape:je}=me,Pt=ye()({[`${oe}-lg`]:Ge==="large",[`${oe}-sm`]:Ge==="small"}),Et=ye()({[`${oe}-circle`]:je==="circle",[`${oe}-square`]:je==="square",[`${oe}-round`]:je==="round"}),ht=Ee.useMemo(()=>typeof Ge=="number"?{width:Ge,height:Ge,lineHeight:`${Ge}px`}:{},[Ge]);return Ee.createElement("span",{className:ye()(oe,Pt,Et,Ne),style:Object.assign(Object.assign({},ht),At)})},be=ne(36237),De=ne(83116),Pe=ne(37613);const et=new be.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Fe=me=>({height:me,lineHeight:`${me}px`}),Ie=me=>Object.assign({width:me},Fe(me)),tt=me=>({background:me.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:et,animationDuration:me.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ze=me=>Object.assign({width:me*5,minWidth:me*5},Fe(me)),We=me=>{const{skeletonAvatarCls:oe,gradientFromColor:Ne,controlHeight:At,controlHeightLG:Ge,controlHeightSM:je}=me;return{[`${oe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ne},Ie(At)),[`${oe}${oe}-circle`]:{borderRadius:"50%"},[`${oe}${oe}-lg`]:Object.assign({},Ie(Ge)),[`${oe}${oe}-sm`]:Object.assign({},Ie(je))}},lt=me=>{const{controlHeight:oe,borderRadiusSM:Ne,skeletonInputCls:At,controlHeightLG:Ge,controlHeightSM:je,gradientFromColor:Pt}=me;return{[`${At}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Pt,borderRadius:Ne},ze(oe)),[`${At}-lg`]:Object.assign({},ze(Ge)),[`${At}-sm`]:Object.assign({},ze(je))}},Xe=me=>Object.assign({width:me},Fe(me)),Dt=me=>{const{skeletonImageCls:oe,imageSizeBase:Ne,gradientFromColor:At,borderRadiusSM:Ge}=me;return{[`${oe}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:At,borderRadius:Ge},Xe(Ne*2)),{[`${oe}-path`]:{fill:"#bfbfbf"},[`${oe}-svg`]:Object.assign(Object.assign({},Xe(Ne)),{maxWidth:Ne*4,maxHeight:Ne*4}),[`${oe}-svg${oe}-svg-circle`]:{borderRadius:"50%"}}),[`${oe}${oe}-circle`]:{borderRadius:"50%"}}},dt=(me,oe,Ne)=>{const{skeletonButtonCls:At}=me;return{[`${Ne}${At}-circle`]:{width:oe,minWidth:oe,borderRadius:"50%"},[`${Ne}${At}-round`]:{borderRadius:oe}}},Qe=me=>Object.assign({width:me*2,minWidth:me*2},Fe(me)),Ze=me=>{const{borderRadiusSM:oe,skeletonButtonCls:Ne,controlHeight:At,controlHeightLG:Ge,controlHeightSM:je,gradientFromColor:Pt}=me;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ne}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Pt,borderRadius:oe,width:At*2,minWidth:At*2},Qe(At))},dt(me,At,Ne)),{[`${Ne}-lg`]:Object.assign({},Qe(Ge))}),dt(me,Ge,`${Ne}-lg`)),{[`${Ne}-sm`]:Object.assign({},Qe(je))}),dt(me,je,`${Ne}-sm`))},Ae=me=>{const{componentCls:oe,skeletonAvatarCls:Ne,skeletonTitleCls:At,skeletonParagraphCls:Ge,skeletonButtonCls:je,skeletonInputCls:Pt,skeletonImageCls:Et,controlHeight:ht,controlHeightLG:Kt,controlHeightSM:vn,gradientFromColor:kt,padding:Ut,marginSM:yn,borderRadius:Bt,titleHeight:Ke,blockRadius:gt,paragraphLiHeight:Vt,controlHeightXS:Nt,paragraphMarginTop:Xt}=me;return{[`${oe}`]:{display:"table",width:"100%",[`${oe}-header`]:{display:"table-cell",paddingInlineEnd:Ut,verticalAlign:"top",[`${Ne}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:kt},Ie(ht)),[`${Ne}-circle`]:{borderRadius:"50%"},[`${Ne}-lg`]:Object.assign({},Ie(Kt)),[`${Ne}-sm`]:Object.assign({},Ie(vn))},[`${oe}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${At}`]:{width:"100%",height:Ke,background:kt,borderRadius:gt,[`+ ${Ge}`]:{marginBlockStart:vn}},[`${Ge}`]:{padding:0,"> li":{width:"100%",height:Vt,listStyle:"none",background:kt,borderRadius:gt,"+ li":{marginBlockStart:Nt}}},[`${Ge}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${oe}-content`]:{[`${At}, ${Ge} > li`]:{borderRadius:Bt}}},[`${oe}-with-avatar ${oe}-content`]:{[`${At}`]:{marginBlockStart:yn,[`+ ${Ge}`]:{marginBlockStart:Xt}}},[`${oe}${oe}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ze(me)),We(me)),lt(me)),Dt(me)),[`${oe}${oe}-block`]:{width:"100%",[`${je}`]:{width:"100%"},[`${Pt}`]:{width:"100%"}},[`${oe}${oe}-active`]:{[`
|
|
|
${At},
|
|
|
${Ge} > li,
|
|
|
${Ne},
|
|
|
${je},
|
|
|
${Pt},
|
|
|
${Et}
|
|
|
`]:Object.assign({},tt(me))}}};var Je=(0,De.Z)("Skeleton",me=>{const{componentCls:oe}=me,Ne=(0,Pe.TS)(me,{skeletonAvatarCls:`${oe}-avatar`,skeletonTitleCls:`${oe}-title`,skeletonParagraphCls:`${oe}-paragraph`,skeletonButtonCls:`${oe}-button`,skeletonInputCls:`${oe}-input`,skeletonImageCls:`${oe}-image`,imageSizeBase:me.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${me.gradientFromColor} 25%, ${me.gradientToColor} 37%, ${me.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ae(Ne)]},me=>{const{colorFillContent:oe,colorFill:Ne}=me,At=oe,Ge=Ne;return{color:At,colorGradientEnd:Ge,gradientFromColor:At,gradientToColor:Ge,titleHeight:me.controlHeight/2,blockRadius:me.borderRadiusSM,paragraphMarginTop:me.marginLG+me.marginXXS,paragraphLiHeight:me.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),vt=me=>{const{prefixCls:oe,className:Ne,rootClassName:At,active:Ge,shape:je="circle",size:Pt="default"}=me,{getPrefixCls:Et}=Ee.useContext(Ye.E_),ht=Et("skeleton",oe),[Kt,vn]=Je(ht),kt=(0,Ce.Z)(me,["prefixCls","className"]),Ut=ye()(ht,`${ht}-element`,{[`${ht}-active`]:Ge},Ne,At,vn);return Kt(Ee.createElement("div",{className:Ut},Ee.createElement(pe,Object.assign({prefixCls:`${ht}-avatar`,shape:je,size:Pt},kt))))},mt=me=>{const{prefixCls:oe,className:Ne,rootClassName:At,active:Ge,block:je=!1,size:Pt="default"}=me,{getPrefixCls:Et}=Ee.useContext(Ye.E_),ht=Et("skeleton",oe),[Kt,vn]=Je(ht),kt=(0,Ce.Z)(me,["prefixCls"]),Ut=ye()(ht,`${ht}-element`,{[`${ht}-active`]:Ge,[`${ht}-block`]:je},Ne,At,vn);return Kt(Ee.createElement("div",{className:Ut},Ee.createElement(pe,Object.assign({prefixCls:`${ht}-button`,size:Pt},kt))))};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 Ve=me=>{const{prefixCls:oe,className:Ne,rootClassName:At,style:Ge,active:je}=me,{getPrefixCls:Pt}=Ee.useContext(Ye.E_),Et=Pt("skeleton",oe),[ht,Kt]=Je(Et),vn=ye()(Et,`${Et}-element`,{[`${Et}-active`]:je},Ne,At,Kt);return ht(Ee.createElement("div",{className:vn},Ee.createElement("div",{className:ye()(`${Et}-image`,Ne),style:Ge},Ee.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Et}-image-svg`},Ee.createElement("path",{d:Be,className:`${Et}-image-path`})))))},nt=me=>{const{prefixCls:oe,className:Ne,rootClassName:At,active:Ge,block:je,size:Pt="default"}=me,{getPrefixCls:Et}=Ee.useContext(Ye.E_),ht=Et("skeleton",oe),[Kt,vn]=Je(ht),kt=(0,Ce.Z)(me,["prefixCls"]),Ut=ye()(ht,`${ht}-element`,{[`${ht}-active`]:Ge,[`${ht}-block`]:je},Ne,At,vn);return Kt(Ee.createElement("div",{className:Ut},Ee.createElement(pe,Object.assign({prefixCls:`${ht}-input`,size:Pt},kt))))},wt=ne(60499),Mt={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"},at=Mt,Le=ne(85221),Me=function(oe,Ne){return Ee.createElement(Le.Z,(0,wt.Z)({},oe,{ref:Ne,icon:at}))},st=Ee.forwardRef(Me),Ht=st,ct=me=>{const{prefixCls:oe,className:Ne,rootClassName:At,style:Ge,active:je,children:Pt}=me,{getPrefixCls:Et}=Ee.useContext(Ye.E_),ht=Et("skeleton",oe),[Kt,vn]=Je(ht),kt=ye()(ht,`${ht}-element`,{[`${ht}-active`]:je},vn,Ne,At),Ut=Pt!=null?Pt:Ee.createElement(Ht,null);return Kt(Ee.createElement("div",{className:kt},Ee.createElement("div",{className:ye()(`${ht}-image`,Ne),style:Ge},Ut)))},Ct=ne(77654),gn=me=>{const oe=Et=>{const{width:ht,rows:Kt=2}=me;if(Array.isArray(ht))return ht[Et];if(Kt-1===Et)return ht},{prefixCls:Ne,className:At,style:Ge,rows:je}=me,Pt=(0,Ct.Z)(Array(je)).map((Et,ht)=>Ee.createElement("li",{key:ht,style:{width:oe(ht)}}));return Ee.createElement("ul",{className:ye()(Ne,At),style:Ge},Pt)},Wt=me=>{let{prefixCls:oe,className:Ne,width:At,style:Ge}=me;return Ee.createElement("h3",{className:ye()(oe,Ne),style:Object.assign({width:At},Ge)})};function on(me){return me&&typeof me=="object"?me:{}}function dn(me,oe){return me&&!oe?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ln(me,oe){return!me&&oe?{width:"38%"}:me&&oe?{width:"50%"}:{}}function xe(me,oe){const Ne={};return(!me||!oe)&&(Ne.width="61%"),!me&&oe?Ne.rows=3:Ne.rows=2,Ne}const fe=me=>{const{prefixCls:oe,loading:Ne,className:At,rootClassName:Ge,style:je,children:Pt,avatar:Et=!1,title:ht=!0,paragraph:Kt=!0,active:vn,round:kt}=me,{getPrefixCls:Ut,direction:yn,skeleton:Bt}=Ee.useContext(Ye.E_),Ke=Ut("skeleton",oe),[gt,Vt]=Je(Ke);if(Ne||!("loading"in me)){const Nt=!!Et,Xt=!!ht,Mn=!!Kt;let Tn;if(Nt){const vr=Object.assign(Object.assign({prefixCls:`${Ke}-avatar`},dn(Xt,Mn)),on(Et));Tn=Ee.createElement("div",{className:`${Ke}-header`},Ee.createElement(pe,Object.assign({},vr)))}let Rn;if(Xt||Mn){let vr;if(Xt){const mn=Object.assign(Object.assign({prefixCls:`${Ke}-title`},ln(Nt,Mn)),on(ht));vr=Ee.createElement(Wt,Object.assign({},mn))}let dr;if(Mn){const mn=Object.assign(Object.assign({prefixCls:`${Ke}-paragraph`},xe(Nt,Xt)),on(Kt));dr=Ee.createElement(gn,Object.assign({},mn))}Rn=Ee.createElement("div",{className:`${Ke}-content`},vr,dr)}const ur=ye()(Ke,{[`${Ke}-with-avatar`]:Nt,[`${Ke}-active`]:vn,[`${Ke}-rtl`]:yn==="rtl",[`${Ke}-round`]:kt},Bt==null?void 0:Bt.className,At,Ge,Vt);return gt(Ee.createElement("div",{className:ur,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),je)},Tn,Rn))}return typeof Pt!="undefined"?Pt:null};fe.Button=mt,fe.Avatar=vt,fe.Input=nt,fe.Image=Ve,fe.Node=ct;var ue=fe,he=ue},31797:function(An,tn,ne){"use strict";ne.d(tn,{default:function(){return Je}});var E=ne(59301),ye=ne(56762),Ee=ne(92343),Ye=ne(92310),Ce=ne.n(Ye),Se=ne(36355),pe=ne(61621),De=Re=>{const{value:vt,formatter:$e,precision:mt,decimalSeparator:Be,groupSeparator:xt="",prefixCls:Ve}=Re;let Ot;if(typeof $e=="function")Ot=$e(vt);else{const nt=String(vt),wt=nt.match(/^(-?)(\d*)(\.(\d+))?$/);if(!wt||nt==="-")Ot=nt;else{const Mt=wt[1];let at=wt[2]||"0",Le=wt[4]||"";at=at.replace(/\B(?=(\d{3})+(?!\d))/g,xt),typeof mt=="number"&&(Le=Le.padEnd(mt,"0").slice(0,mt>0?mt:0)),Le&&(Le=`${Be}${Le}`),Ot=[E.createElement("span",{key:"int",className:`${Ve}-content-value-int`},Mt,at),Le&&E.createElement("span",{key:"decimal",className:`${Ve}-content-value-decimal`},Le)]}}return E.createElement("span",{className:`${Ve}-content-value`},Ot)},Pe=ne(17313),et=ne(83116),Fe=ne(37613);const Ie=Re=>{const{componentCls:vt,marginXXS:$e,padding:mt,colorTextDescription:Be,titleFontSize:xt,colorTextHeading:Ve,contentFontSize:Ot,fontFamily:nt}=Re;return{[`${vt}`]:Object.assign(Object.assign({},(0,Pe.Wf)(Re)),{[`${vt}-title`]:{marginBottom:$e,color:Be,fontSize:xt},[`${vt}-skeleton`]:{paddingTop:mt},[`${vt}-content`]:{color:Ve,fontSize:Ot,fontFamily:nt,[`${vt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${vt}-content-prefix, ${vt}-content-suffix`]:{display:"inline-block"},[`${vt}-content-prefix`]:{marginInlineEnd:$e},[`${vt}-content-suffix`]:{marginInlineStart:$e}}})}};var tt=(0,et.Z)("Statistic",Re=>{const vt=(0,Fe.TS)(Re,{});return[Ie(vt)]},Re=>{const{fontSizeHeading3:vt,fontSize:$e}=Re;return{titleFontSize:$e,contentFontSize:vt}}),We=Re=>{const{prefixCls:vt,className:$e,rootClassName:mt,style:Be,valueStyle:xt,value:Ve=0,title:Ot,valueRender:nt,prefix:wt,suffix:Mt,loading:at=!1,onMouseEnter:Le,onMouseLeave:Me,decimalSeparator:st=".",groupSeparator:Ht=","}=Re,{getPrefixCls:Tt,direction:ct,statistic:Ct}=E.useContext(Se.E_),Zt=Tt("statistic",vt),[gn,$t]=tt(Zt),Wt=E.createElement(De,Object.assign({decimalSeparator:st,groupSeparator:Ht,prefixCls:Zt},Re,{value:Ve})),on=Ce()(Zt,{[`${Zt}-rtl`]:ct==="rtl"},Ct==null?void 0:Ct.className,$e,mt,$t);return gn(E.createElement("div",{className:on,style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),Be),onMouseEnter:Le,onMouseLeave:Me},Ot&&E.createElement("div",{className:`${Zt}-title`},Ot),E.createElement(pe.Z,{paragraph:!1,loading:at,className:`${Zt}-skeleton`},E.createElement("div",{style:xt,className:`${Zt}-content`},wt&&E.createElement("span",{className:`${Zt}-content-prefix`},wt),nt?nt(Wt):Wt,Mt&&E.createElement("span",{className:`${Zt}-content-suffix`},Mt)))))};const lt=[["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 Xe(Re,vt){let $e=Re;const mt=/\[[^\]]*]/g,Be=(vt.match(mt)||[]).map(nt=>nt.slice(1,-1)),xt=vt.replace(mt,"[]"),Ve=lt.reduce((nt,wt)=>{let[Mt,at]=wt;if(nt.includes(Mt)){const Le=Math.floor($e/at);return $e-=Le*at,nt.replace(new RegExp(`${Mt}+`,"g"),Me=>{const st=Me.length;return Le.toString().padStart(st,"0")})}return nt},xt);let Ot=0;return Ve.replace(mt,()=>{const nt=Be[Ot];return Ot+=1,nt})}function Dt(Re,vt){const{format:$e=""}=vt,mt=new Date(Re).getTime(),Be=Date.now(),xt=Math.max(mt-Be,0);return Xe(xt,$e)}const dt=1e3/30;function Qe(Re){return new Date(Re).getTime()}const Ze=Re=>{const{value:vt,format:$e="HH:mm:ss",onChange:mt,onFinish:Be}=Re,xt=(0,ye.Z)(),Ve=E.useRef(null),Ot=()=>{Be==null||Be(),Ve.current&&(clearInterval(Ve.current),Ve.current=null)},nt=()=>{const at=Qe(vt);at>=Date.now()&&(Ve.current=setInterval(()=>{xt(),mt==null||mt(at-Date.now()),at<Date.now()&&Ot()},dt))};E.useEffect(()=>(nt(),()=>{Ve.current&&(clearInterval(Ve.current),Ve.current=null)}),[vt]);const wt=(at,Le)=>Dt(at,Object.assign(Object.assign({},Le),{format:$e})),Mt=at=>(0,Ee.Tm)(at,{title:void 0});return E.createElement(We,Object.assign({},Re,{valueRender:Mt,formatter:wt}))};var Ae=E.memo(Ze);We.Countdown=Ae;var Je=We},8378:function(An,tn){"use strict";const ne=E=>({[E.componentCls]:{[`${E.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${E.motionDurationMid} ${E.motionEaseInOut},
|
|
|
opacity ${E.motionDurationMid} ${E.motionEaseInOut} !important`}},[`${E.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${E.motionDurationMid} ${E.motionEaseInOut},
|
|
|
opacity ${E.motionDurationMid} ${E.motionEaseInOut} !important`}}});tn.Z=ne},92899:function(An,tn,ne){"use strict";ne.d(tn,{Fm:function(){return Fe}});var E=ne(36237),ye=ne(95406);const Ee=new E.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 E.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Ce=new E.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Se=new E.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pe=new E.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),be=new E.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),De=new E.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Pe=new E.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),et={"move-up":{inKeyframes:De,outKeyframes:Pe},"move-down":{inKeyframes:Ee,outKeyframes:Ye},"move-left":{inKeyframes:Ce,outKeyframes:Se},"move-right":{inKeyframes:pe,outKeyframes:be}},Fe=(Ie,tt)=>{const{antCls:ze}=Ie,We=`${ze}-${tt}`,{inKeyframes:lt,outKeyframes:Xe}=et[tt];return[(0,ye.R)(We,lt,Xe,Ie.motionDurationMid),{[`
|
|
|
${We}-enter,
|
|
|
${We}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:Ie.motionEaseOutCirc},[`${We}-leave`]:{animationTimingFunction:Ie.motionEaseInOutCirc}}]}},13826:function(An,tn,ne){"use strict";ne.d(tn,{Qt:function(){return Ce},Uw:function(){return Ye},fJ:function(){return Ee},ly:function(){return Se},oN:function(){return Fe}});var E=ne(36237),ye=ne(95406);const Ee=new E.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ye=new E.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ce=new E.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Se=new E.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),pe=new E.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),be=new E.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),De=new E.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Pe=new E.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),et={"slide-up":{inKeyframes:Ee,outKeyframes:Ye},"slide-down":{inKeyframes:Ce,outKeyframes:Se},"slide-left":{inKeyframes:pe,outKeyframes:be},"slide-right":{inKeyframes:De,outKeyframes:Pe}},Fe=(Ie,tt)=>{const{antCls:ze}=Ie,We=`${ze}-${tt}`,{inKeyframes:lt,outKeyframes:Xe}=et[tt];return[(0,ye.R)(We,lt,Xe,Ie.motionDurationMid),{[`
|
|
|
${We}-enter,
|
|
|
${We}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:Ie.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${We}-leave`]:{animationTimingFunction:Ie.motionEaseInQuint}}]}},15969:function(An,tn,ne){"use strict";ne.d(tn,{N:function(){return E}});const E=ye=>({color:ye.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ye.motionDurationSlow}`,"&:focus, &:hover":{color:ye.colorLinkHover},"&:active":{color:ye.colorLinkActive}})},78673:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return xt}});var E=ne(58617),ye=ne(92310),Ee=ne.n(ye),Ye=ne(60499),Ce=ne(18642),Se=ne(72190),pe=ne(42244),be=ne(59301),De=ne(18929),Pe=ne(10228),et=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Fe=be.forwardRef(function(Ve,Ot){var nt,wt=Ve.prefixCls,Mt=wt===void 0?"rc-switch":wt,at=Ve.className,Le=Ve.checked,Me=Ve.defaultChecked,st=Ve.disabled,Ht=Ve.loadingIcon,Tt=Ve.checkedChildren,ct=Ve.unCheckedChildren,Ct=Ve.onClick,Zt=Ve.onChange,gn=Ve.onKeyDown,$t=(0,pe.Z)(Ve,et),Wt=(0,De.Z)(!1,{value:Le,defaultValue:Me}),on=(0,Se.Z)(Wt,2),dn=on[0],ln=on[1];function xe(me,oe){var Ne=dn;return st||(Ne=me,ln(Ne),Zt==null||Zt(Ne,oe)),Ne}function fe(me){me.which===Pe.Z.LEFT?xe(!1,me):me.which===Pe.Z.RIGHT&&xe(!0,me),gn==null||gn(me)}function ue(me){var oe=xe(!dn,me);Ct==null||Ct(oe,me)}var he=Ee()(Mt,at,(nt={},(0,Ce.Z)(nt,"".concat(Mt,"-checked"),dn),(0,Ce.Z)(nt,"".concat(Mt,"-disabled"),st),nt));return be.createElement("button",(0,Ye.Z)({},$t,{type:"button",role:"switch","aria-checked":dn,disabled:st,className:he,ref:Ot,onKeyDown:fe,onClick:ue}),Ht,be.createElement("span",{className:"".concat(Mt,"-inner")},be.createElement("span",{className:"".concat(Mt,"-inner-checked")},Tt),be.createElement("span",{className:"".concat(Mt,"-inner-unchecked")},ct)))});Fe.displayName="Switch";var Ie=Fe,tt=ne(14088),ze=ne(36355),We=ne(1684),lt=ne(19716),Xe=ne(64993),Dt=ne(17313),dt=ne(83116),Qe=ne(37613);const Ze=Ve=>{const{componentCls:Ot,trackHeightSM:nt,trackPadding:wt,trackMinWidthSM:Mt,innerMinMarginSM:at,innerMaxMarginSM:Le,handleSizeSM:Me}=Ve,st=`${Ot}-inner`;return{[Ot]:{[`&${Ot}-small`]:{minWidth:Mt,height:nt,lineHeight:`${nt}px`,[`${Ot}-inner`]:{paddingInlineStart:Le,paddingInlineEnd:at,[`${st}-checked`]:{marginInlineStart:`calc(-100% + ${Me+wt*2}px - ${Le*2}px)`,marginInlineEnd:`calc(100% - ${Me+wt*2}px + ${Le*2}px)`},[`${st}-unchecked`]:{marginTop:-nt,marginInlineStart:0,marginInlineEnd:0}},[`${Ot}-handle`]:{width:Me,height:Me},[`${Ot}-loading-icon`]:{top:(Me-Ve.switchLoadingIconSize)/2,fontSize:Ve.switchLoadingIconSize},[`&${Ot}-checked`]:{[`${Ot}-inner`]:{paddingInlineStart:at,paddingInlineEnd:Le,[`${st}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${st}-unchecked`]:{marginInlineStart:`calc(100% - ${Me+wt*2}px + ${Le*2}px)`,marginInlineEnd:`calc(-100% + ${Me+wt*2}px - ${Le*2}px)`}},[`${Ot}-handle`]:{insetInlineStart:`calc(100% - ${Me+wt}px)`}},[`&:not(${Ot}-disabled):active`]:{[`&:not(${Ot}-checked) ${st}`]:{[`${st}-unchecked`]:{marginInlineStart:Ve.marginXXS/2,marginInlineEnd:-Ve.marginXXS/2}},[`&${Ot}-checked ${st}`]:{[`${st}-checked`]:{marginInlineStart:-Ve.marginXXS/2,marginInlineEnd:Ve.marginXXS/2}}}}}}},Ae=Ve=>{const{componentCls:Ot,handleSize:nt}=Ve;return{[Ot]:{[`${Ot}-loading-icon${Ve.iconCls}`]:{position:"relative",top:(nt-Ve.fontSize)/2,color:Ve.switchLoadingIconColor,verticalAlign:"top"},[`&${Ot}-checked ${Ot}-loading-icon`]:{color:Ve.switchColor}}}},Je=Ve=>{const{componentCls:Ot,motion:nt,trackPadding:wt,handleBg:Mt,handleShadow:at,handleSize:Le}=Ve,Me=`${Ot}-handle`;return{[Ot]:{[Me]:{position:"absolute",top:wt,insetInlineStart:wt,width:Le,height:Le,transition:`all ${Ve.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Mt,borderRadius:Le/2,boxShadow:at,transition:`all ${Ve.switchDuration} ease-in-out`,content:'""'}},[`&${Ot}-checked ${Me}`]:{insetInlineStart:`calc(100% - ${Le+wt}px)`},[`&:not(${Ot}-disabled):active`]:nt?{[`${Me}::before`]:{insetInlineEnd:Ve.switchHandleActiveInset,insetInlineStart:0},[`&${Ot}-checked ${Me}::before`]:{insetInlineEnd:0,insetInlineStart:Ve.switchHandleActiveInset}}:{}}}},Re=Ve=>{const{componentCls:Ot,trackHeight:nt,trackPadding:wt,innerMinMargin:Mt,innerMaxMargin:at,handleSize:Le}=Ve,Me=`${Ot}-inner`;return{[Ot]:{[Me]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:at,paddingInlineEnd:Mt,transition:`padding-inline-start ${Ve.switchDuration} ease-in-out, padding-inline-end ${Ve.switchDuration} ease-in-out`,[`${Me}-checked, ${Me}-unchecked`]:{display:"block",color:Ve.colorTextLightSolid,fontSize:Ve.fontSizeSM,transition:`margin-inline-start ${Ve.switchDuration} ease-in-out, margin-inline-end ${Ve.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Me}-checked`]:{marginInlineStart:`calc(-100% + ${Le+wt*2}px - ${at*2}px)`,marginInlineEnd:`calc(100% - ${Le+wt*2}px + ${at*2}px)`},[`${Me}-unchecked`]:{marginTop:-nt,marginInlineStart:0,marginInlineEnd:0}},[`&${Ot}-checked ${Me}`]:{paddingInlineStart:Mt,paddingInlineEnd:at,[`${Me}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Me}-unchecked`]:{marginInlineStart:`calc(100% - ${Le+wt*2}px + ${at*2}px)`,marginInlineEnd:`calc(-100% + ${Le+wt*2}px - ${at*2}px)`}},[`&:not(${Ot}-disabled):active`]:{[`&:not(${Ot}-checked) ${Me}`]:{[`${Me}-unchecked`]:{marginInlineStart:wt*2,marginInlineEnd:-wt*2}},[`&${Ot}-checked ${Me}`]:{[`${Me}-checked`]:{marginInlineStart:-wt*2,marginInlineEnd:wt*2}}}}}},vt=Ve=>{const{componentCls:Ot,trackHeight:nt,trackMinWidth:wt}=Ve;return{[Ot]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(Ve)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:wt,height:nt,lineHeight:`${nt}px`,verticalAlign:"middle",background:Ve.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ve.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ot}-disabled)`]:{background:Ve.colorTextTertiary}}),(0,Dt.Qy)(Ve)),{[`&${Ot}-checked`]:{background:Ve.switchColor,[`&:hover:not(${Ot}-disabled)`]:{background:Ve.colorPrimaryHover}},[`&${Ot}-loading, &${Ot}-disabled`]:{cursor:"not-allowed",opacity:Ve.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ot}-rtl`]:{direction:"rtl"}})}};var $e=(0,dt.Z)("Switch",Ve=>{const Ot=(0,Qe.TS)(Ve,{switchDuration:Ve.motionDurationMid,switchColor:Ve.colorPrimary,switchDisabledOpacity:Ve.opacityLoading,switchLoadingIconSize:Ve.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Ve.opacityLoading})`,switchHandleActiveInset:"-30%"});return[vt(Ot),Re(Ot),Je(Ot),Ae(Ot),Ze(Ot)]},Ve=>{const{fontSize:Ot,lineHeight:nt,controlHeight:wt,colorWhite:Mt}=Ve,at=Ot*nt,Le=wt/2,Me=2,st=at-Me*2,Ht=Le-Me*2;return{trackHeight:at,trackHeightSM:Le,trackMinWidth:st*2+Me*4,trackMinWidthSM:Ht*2+Me*2,trackPadding:Me,handleBg:Mt,handleSize:st,handleSizeSM:Ht,handleShadow:`0 2px 4px 0 ${new Xe.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:st/2,innerMaxMargin:st+Me+Me*2,innerMinMarginSM:Ht/2,innerMaxMarginSM:Ht+Me+Me*2}}),mt=function(Ve,Ot){var nt={};for(var wt in Ve)Object.prototype.hasOwnProperty.call(Ve,wt)&&Ot.indexOf(wt)<0&&(nt[wt]=Ve[wt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,wt=Object.getOwnPropertySymbols(Ve);Mt<wt.length;Mt++)Ot.indexOf(wt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,wt[Mt])&&(nt[wt[Mt]]=Ve[wt[Mt]]);return nt};const Be=be.forwardRef((Ve,Ot)=>{const{prefixCls:nt,size:wt,disabled:Mt,loading:at,className:Le,rootClassName:Me,style:st}=Ve,Ht=mt(Ve,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Tt,direction:ct,switch:Ct}=be.useContext(ze.E_),Zt=be.useContext(We.Z),gn=(Mt!=null?Mt:Zt)||at,$t=Tt("switch",nt),Wt=be.createElement("div",{className:`${$t}-handle`},at&&be.createElement(E.Z,{className:`${$t}-loading-icon`})),[on,dn]=$e($t),ln=(0,lt.Z)(wt),xe=Ee()(Ct==null?void 0:Ct.className,{[`${$t}-small`]:ln==="small",[`${$t}-loading`]:at,[`${$t}-rtl`]:ct==="rtl"},Le,Me,dn),fe=Object.assign(Object.assign({},Ct==null?void 0:Ct.style),st);return on(be.createElement(tt.Z,{component:"Switch"},be.createElement(Ie,Object.assign({},Ht,{prefixCls:$t,className:xe,style:fe,disabled:gn,ref:Ot,loadingIcon:Wt}))))});Be.__ANT_SWITCH=!0;var xt=Be},1710:function(An,tn,ne){"use strict";ne.d(tn,{default:function(){return Wa}});var E={},ye="rc-table-internal-hook",Ee=ne(72190),Ye=ne(6089),Ce=ne(34280),Se=ne(13697),pe=ne(59301),be=ne(4676);function De(Te){var ot=pe.createContext(void 0),Rt=function(an){var cn=an.value,Fn=an.children,Un=pe.useRef(cn);Un.current=cn;var Wn=pe.useState(function(){return{getValue:function(){return Un.current},listeners:new Set}}),_n=(0,Ee.Z)(Wn,1),Fr=_n[0];return(0,Ce.Z)(function(){(0,be.unstable_batchedUpdates)(function(){Fr.listeners.forEach(function(yr){yr(cn)})})},[cn]),pe.createElement(ot.Provider,{value:Fr},Fn)};return{Context:ot,Provider:Rt,defaultValue:Te}}function Pe(Te,ot){var Rt=(0,Ye.Z)(typeof ot=="function"?ot:function(yr){if(ot===void 0)return yr;if(!Array.isArray(ot))return yr[ot];var $r={};return ot.forEach(function(ni){$r[ni]=yr[ni]}),$r}),qt=pe.useContext(Te==null?void 0:Te.Context),an=qt||{},cn=an.listeners,Fn=an.getValue,Un=pe.useRef();Un.current=Rt(qt?Fn():Te==null?void 0:Te.defaultValue);var Wn=pe.useState({}),_n=(0,Ee.Z)(Wn,2),Fr=_n[1];return(0,Ce.Z)(function(){if(!qt)return;function yr($r){var ni=Rt($r);(0,Se.Z)(Un.current,ni,!0)||Fr({})}return cn.add(yr),function(){cn.delete(yr)}},[qt]),Un.current}var et=ne(60499),Fe=ne(8654);function Ie(){var Te=pe.createContext(null);function ot(){return pe.useContext(Te)}function Rt(an,cn){var Fn=(0,Fe.Yr)(an),Un=function(_n,Fr){var yr=Fn?{ref:Fr}:{},$r=pe.useRef(0),ni=pe.useRef(_n),ci=ot();return ci!==null?pe.createElement(an,(0,et.Z)({},_n,yr)):((!cn||cn(ni.current,_n))&&($r.current+=1),ni.current=_n,pe.createElement(Te.Provider,{value:$r.current},pe.createElement(an,(0,et.Z)({},_n,yr))))};return Fn?pe.forwardRef(Un):Un}function qt(an,cn){var Fn=(0,Fe.Yr)(an),Un=function(_n,Fr){var yr=Fn?{ref:Fr}:{};return ot(),pe.createElement(an,(0,et.Z)({},_n,yr))};return Fn?pe.memo(pe.forwardRef(Un),cn):pe.memo(Un,cn)}return{makeImmutable:Rt,responseImmutable:qt,useImmutableMark:ot}}var tt=Ie(),ze=tt.makeImmutable,We=tt.responseImmutable,lt=tt.useImmutableMark,Xe=Ie(),Dt=Xe.makeImmutable,dt=Xe.responseImmutable,Qe=Xe.useImmutableMark,Ze=De(),Ae=Ze;function Je(Te,ot){var Rt=pe.useRef(0);Rt.current+=1;var qt=pe.useRef(Te),an=[];Object.keys(Te||{}).map(function(Fn){var Un;(Te==null?void 0:Te[Fn])!==((Un=qt.current)===null||Un===void 0?void 0:Un[Fn])&&an.push(Fn)}),qt.current=Te;var cn=pe.useRef([]);return an.length&&(cn.current=an),pe.useDebugValue(Rt.current),pe.useDebugValue(cn.current.join(", ")),ot&&console.log("".concat(ot,":"),Rt.current,cn.current),Rt.current}var Re=null,vt=pe.memo(function(){var Te=Je();return pe.createElement("h1",null,"Render Times: ",Te)});vt.displayName="RenderBlock";var $e=ne(43749),mt=ne(85899),Be=ne(18642),xt=ne(92310),Ve=ne.n(xt),Ot=ne(80547),nt=ne(97938),wt=ne(48736),Mt=pe.createContext({renderWithProps:!1}),at=Mt,Le="RC_TABLE_KEY";function Me(Te){return Te==null?[]:Array.isArray(Te)?Te:[Te]}function st(Te){var ot=[],Rt={};return Te.forEach(function(qt){for(var an=qt||{},cn=an.key,Fn=an.dataIndex,Un=cn||Me(Fn).join("-")||Le;Rt[Un];)Un="".concat(Un,"_next");Rt[Un]=!0,ot.push(Un)}),ot}function Ht(Te){return Te!=null}function Tt(Te){return Te&&(0,$e.Z)(Te)==="object"&&!Array.isArray(Te)&&!pe.isValidElement(Te)}function ct(Te,ot,Rt,qt,an,cn){var Fn=pe.useContext(at),Un=Qe(),Wn=(0,Ot.Z)(function(){if(Ht(qt))return[qt];var _n=ot==null||ot===""?[]:Array.isArray(ot)?ot:[ot],Fr=(0,nt.Z)(Te,_n),yr=Fr,$r=void 0;if(an){var ni=an(Fr,Te,Rt);Tt(ni)?(yr=ni.children,$r=ni.props,Fn.renderWithProps=!0):yr=ni}return[yr,$r]},[Un,Te,qt,ot,an,Rt],function(_n,Fr){if(cn){var yr=(0,Ee.Z)(_n,2),$r=yr[1],ni=(0,Ee.Z)(Fr,2),ci=ni[1];return cn(ci,$r)}return Fn.renderWithProps?!0:!(0,Se.Z)(_n,Fr,!0)});return Wn}function Ct(Te,ot,Rt,qt){var an=Te+ot-1;return Te<=qt&&an>=Rt}function Zt(Te,ot){return Pe(Ae,function(Rt){var qt=Ct(Te,ot||1,Rt.hoverStartRow,Rt.hoverEndRow);return[qt,Rt.onHover]})}var gn=function(ot){var Rt=ot.ellipsis,qt=ot.rowType,an=ot.children,cn,Fn=Rt===!0?{showTitle:!0}:Rt;return Fn&&(Fn.showTitle||qt==="header")&&(typeof an=="string"||typeof an=="number"?cn=an.toString():pe.isValidElement(an)&&typeof an.props.children=="string"&&(cn=an.props.children)),cn};function $t(Te){var ot,Rt,qt,an,cn,Fn,Un,Wn,_n=Te.component,Fr=Te.children,yr=Te.ellipsis,$r=Te.scope,ni=Te.prefixCls,ci=Te.className,Ji=Te.align,Pi=Te.record,$i=Te.render,qi=Te.dataIndex,Sa=Te.renderIndex,Xa=Te.shouldCellUpdate,io=Te.index,_a=Te.rowType,Do=Te.colSpan,To=Te.rowSpan,ka=Te.fixLeft,Ha=Te.fixRight,Fa=Te.firstFixLeft,Wi=Te.lastFixLeft,Oa=Te.firstFixRight,wo=Te.lastFixRight,Wo=Te.appendNode,po=Te.additionalProps,sa=po===void 0?{}:po,_o=Te.isSticky,zo="".concat(ni,"-cell"),fl=Pe(Ae,["supportSticky","allColumnsFixedLeft"]),sl=fl.supportSticky,El=fl.allColumnsFixedLeft,Fl=ct(Pi,qi,Sa,Fr,$i,Xa),Ro=(0,Ee.Z)(Fl,2),Hl=Ro[0],Jo=Ro[1],Il={},Ml=typeof ka=="number"&&sl,as=typeof Ha=="number"&&sl;Ml&&(Il.position="sticky",Il.left=ka),as&&(Il.position="sticky",Il.right=Ha);var so=(ot=(Rt=(qt=Jo==null?void 0:Jo.colSpan)!==null&&qt!==void 0?qt:sa.colSpan)!==null&&Rt!==void 0?Rt:Do)!==null&&ot!==void 0?ot:1,ao=(an=(cn=(Fn=Jo==null?void 0:Jo.rowSpan)!==null&&Fn!==void 0?Fn:sa.rowSpan)!==null&&cn!==void 0?cn:To)!==null&&an!==void 0?an:1,oo=Zt(io,ao),Qa=(0,Ee.Z)(oo,2),rl=Qa[0],Ja=Qa[1],Io=function(Gl){var ys;Pi&&Ja(io,io+ao-1),sa==null||(ys=sa.onMouseEnter)===null||ys===void 0||ys.call(sa,Gl)},Xo=function(Gl){var ys;Pi&&Ja(-1,-1),sa==null||(ys=sa.onMouseLeave)===null||ys===void 0||ys.call(sa,Gl)};if(so===0||ao===0)return null;var Yo=(Un=sa.title)!==null&&Un!==void 0?Un:gn({rowType:_a,ellipsis:yr,children:Hl}),Es=Ve()(zo,ci,(Wn={},(0,Be.Z)(Wn,"".concat(zo,"-fix-left"),Ml&&sl),(0,Be.Z)(Wn,"".concat(zo,"-fix-left-first"),Fa&&sl),(0,Be.Z)(Wn,"".concat(zo,"-fix-left-last"),Wi&&sl),(0,Be.Z)(Wn,"".concat(zo,"-fix-left-all"),Wi&&El&&sl),(0,Be.Z)(Wn,"".concat(zo,"-fix-right"),as&&sl),(0,Be.Z)(Wn,"".concat(zo,"-fix-right-first"),Oa&&sl),(0,Be.Z)(Wn,"".concat(zo,"-fix-right-last"),wo&&sl),(0,Be.Z)(Wn,"".concat(zo,"-ellipsis"),yr),(0,Be.Z)(Wn,"".concat(zo,"-with-append"),Wo),(0,Be.Z)(Wn,"".concat(zo,"-fix-sticky"),(Ml||as)&&_o&&sl),(0,Be.Z)(Wn,"".concat(zo,"-row-hover"),!Jo&&rl),Wn),sa.className,Jo==null?void 0:Jo.className),Jl={};Ji&&(Jl.textAlign=Ji);var Ys=(0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)({},Il),sa.style),Jl),Jo==null?void 0:Jo.style),Ul=Hl;return(0,$e.Z)(Ul)==="object"&&!Array.isArray(Ul)&&!pe.isValidElement(Ul)&&(Ul=null),yr&&(Wi||Oa)&&(Ul=pe.createElement("span",{className:"".concat(zo,"-content")},Ul)),pe.createElement(_n,(0,et.Z)({},Jo,sa,{className:Es,style:Ys,title:Yo,scope:$r,onMouseEnter:Io,onMouseLeave:Xo,colSpan:so!==1?so:null,rowSpan:ao!==1?ao:null}),Wo,Ul)}var Wt=pe.memo($t);function on(Te,ot,Rt,qt,an,cn){var Fn=Rt[Te]||{},Un=Rt[ot]||{},Wn,_n;Fn.fixed==="left"?Wn=qt.left[an==="rtl"?ot:Te]:Un.fixed==="right"&&(_n=qt.right[an==="rtl"?Te:ot]);var Fr=!1,yr=!1,$r=!1,ni=!1,ci=Rt[ot+1],Ji=Rt[Te-1],Pi=!(cn!=null&&cn.children);if(an==="rtl"){if(Wn!==void 0){var $i=Ji&&Ji.fixed==="left";ni=!$i&&Pi}else if(_n!==void 0){var qi=ci&&ci.fixed==="right";$r=!qi&&Pi}}else if(Wn!==void 0){var Sa=ci&&ci.fixed==="left";Fr=!Sa&&Pi}else if(_n!==void 0){var Xa=Ji&&Ji.fixed==="right";yr=!Xa&&Pi}return{fixLeft:Wn,fixRight:_n,lastFixLeft:Fr,firstFixRight:yr,lastFixRight:$r,firstFixLeft:ni,isSticky:qt.isSticky}}var dn=pe.createContext({}),ln=dn;function xe(Te){var ot=Te.className,Rt=Te.index,qt=Te.children,an=Te.colSpan,cn=an===void 0?1:an,Fn=Te.rowSpan,Un=Te.align,Wn=Pe(Ae,["prefixCls","direction"]),_n=Wn.prefixCls,Fr=Wn.direction,yr=pe.useContext(ln),$r=yr.scrollColumnIndex,ni=yr.stickyOffsets,ci=yr.flattenColumns,Ji=yr.columns,Pi=Rt+cn-1,$i=Pi+1===$r?cn+1:cn,qi=on(Rt,Rt+$i-1,ci,ni,Fr,Ji==null?void 0:Ji[Rt]);return pe.createElement(Wt,(0,et.Z)({className:ot,index:Rt,component:"td",prefixCls:_n,record:null,dataIndex:null,align:Un,colSpan:$i,rowSpan:Fn,render:function(){return qt}},qi))}var fe=ne(42244),ue=["children"];function he(Te){var ot=Te.children,Rt=(0,fe.Z)(Te,ue);return pe.createElement("tr",Rt,ot)}function me(Te){var ot=Te.children;return ot}me.Row=he,me.Cell=xe;var oe=me;function Ne(Te){var ot=Te.children,Rt=Te.stickyOffsets,qt=Te.flattenColumns,an=Te.columns,cn=Pe(Ae,"prefixCls"),Fn=qt.length-1,Un=qt[Fn],Wn=pe.useMemo(function(){return{stickyOffsets:Rt,flattenColumns:qt,scrollColumnIndex:Un!=null&&Un.scrollbar?Fn:null,columns:an}},[Un,qt,Fn,Rt,an]);return pe.createElement(ln.Provider,{value:Wn},pe.createElement("tfoot",{className:"".concat(cn,"-summary")},ot))}var At=dt(Ne),Ge=oe,je=ne(70425),Pt=ne(29301),Et=ne(29194),ht=ne(24514),Kt=ne(75152),vn=ne(26112);function kt(Te,ot,Rt,qt,an,cn,Fn){Te.push({record:ot,indent:Rt,index:Fn});var Un=cn(ot),Wn=an==null?void 0:an.has(Un);if(ot&&Array.isArray(ot[qt])&&Wn)for(var _n=0;_n<ot[qt].length;_n+=1)kt(Te,ot[qt][_n],Rt+1,qt,an,cn,_n)}function Ut(Te,ot,Rt,qt){var an=pe.useMemo(function(){if(Rt!=null&&Rt.size){for(var cn=[],Fn=0;Fn<(Te==null?void 0:Te.length);Fn+=1){var Un=Te[Fn];kt(cn,Un,0,ot,Rt,qt,Fn)}return cn}return Te==null?void 0:Te.map(function(Wn,_n){return{record:Wn,indent:0,index:_n}})},[Te,ot,Rt,qt]);return an}function yn(Te){var ot=Te.prefixCls,Rt=Te.children,qt=Te.component,an=Te.cellComponent,cn=Te.className,Fn=Te.expanded,Un=Te.colSpan,Wn=Te.isEmpty,_n=Pe(Ae,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Fr=_n.scrollbarSize,yr=_n.fixHeader,$r=_n.fixColumn,ni=_n.componentWidth,ci=_n.horizonScroll,Ji=Rt;return(Wn?ci&&ni:$r)&&(Ji=pe.createElement("div",{style:{width:ni-(yr?Fr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ot,"-expanded-row-fixed")},Ji)),pe.createElement(qt,{className:cn,style:{display:Fn?null:"none"}},pe.createElement(Wt,{component:an,prefixCls:ot,colSpan:Un},Ji))}var Bt=yn;function Ke(Te,ot,Rt,qt){var an=Pe(Ae,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),cn=an.flattenColumns,Fn=an.expandableType,Un=an.expandedKeys,Wn=an.childrenColumnName,_n=an.onTriggerExpand,Fr=an.rowExpandable,yr=an.onRow,$r=an.expandRowByClick,ni=an.rowClassName,ci=Fn==="nest",Ji=Fn==="row"&&(!Fr||Fr(Te)),Pi=Ji||ci,$i=Un&&Un.has(ot),qi=Wn&&Te&&Te[Wn],Sa=(0,je.useEvent)(_n),Xa=yr==null?void 0:yr(Te,Rt),io=Xa==null?void 0:Xa.onClick,_a=function(Ha){$r&&Pi&&_n(Te,Ha);for(var Fa=arguments.length,Wi=new Array(Fa>1?Fa-1:0),Oa=1;Oa<Fa;Oa++)Wi[Oa-1]=arguments[Oa];io==null||io.apply(void 0,[Ha].concat(Wi))},Do;typeof ni=="string"?Do=ni:typeof ni=="function"&&(Do=ni(Te,Rt,qt));var To=st(cn);return(0,mt.Z)((0,mt.Z)({},an),{},{columnsKey:To,nestExpandable:ci,expanded:$i,hasNestChildren:qi,record:Te,onTriggerExpand:Sa,rowSupportExpand:Ji,expandable:Pi,rowProps:(0,mt.Z)((0,mt.Z)({},Xa),{},{className:Ve()(Do,Xa==null?void 0:Xa.className),onClick:_a})})}function gt(Te,ot,Rt,qt,an){var cn=Te.record,Fn=Te.prefixCls,Un=Te.columnsKey,Wn=Te.fixedInfoList,_n=Te.expandIconColumnIndex,Fr=Te.nestExpandable,yr=Te.indentSize,$r=Te.expandIcon,ni=Te.expanded,ci=Te.hasNestChildren,Ji=Te.onTriggerExpand,Pi=Un[Rt],$i=Wn[Rt],qi;Rt===(_n||0)&&Fr&&(qi=pe.createElement(pe.Fragment,null,pe.createElement("span",{style:{paddingLeft:"".concat(yr*qt,"px")},className:"".concat(Fn,"-row-indent indent-level-").concat(qt)}),$r({prefixCls:Fn,expanded:ni,expandable:ci,record:cn,onExpand:Ji})));var Sa;return ot.onCell&&(Sa=ot.onCell(cn,an)),{key:Pi,fixedInfo:$i,appendCellNode:qi,additionalCellProps:Sa||{}}}function Vt(Te){var ot=Te.className,Rt=Te.style,qt=Te.record,an=Te.index,cn=Te.renderIndex,Fn=Te.rowKey,Un=Te.indent,Wn=Un===void 0?0:Un,_n=Te.rowComponent,Fr=Te.cellComponent,yr=Te.scopeCellComponent,$r=Ke(qt,Fn,an,Wn),ni=$r.prefixCls,ci=$r.flattenColumns,Ji=$r.expandedRowClassName,Pi=$r.expandedRowRender,$i=$r.rowProps,qi=$r.expanded,Sa=$r.rowSupportExpand,Xa=pe.useState(!1),io=(0,Ee.Z)(Xa,2),_a=io[0],Do=io[1];pe.useEffect(function(){qi&&Do(!0)},[qi]);var To=pe.createElement(_n,(0,et.Z)({},$i,{"data-row-key":Fn,className:Ve()(ot,"".concat(ni,"-row"),"".concat(ni,"-row-level-").concat(Wn),$i==null?void 0:$i.className),style:(0,mt.Z)((0,mt.Z)({},Rt),$i==null?void 0:$i.style)}),ci.map(function(Wi,Oa){var wo=Wi.render,Wo=Wi.dataIndex,po=Wi.className,sa=gt($r,Wi,Oa,Wn,an),_o=sa.key,zo=sa.fixedInfo,fl=sa.appendCellNode,sl=sa.additionalCellProps;return pe.createElement(Wt,(0,et.Z)({className:po,ellipsis:Wi.ellipsis,align:Wi.align,scope:Wi.rowScope,component:Wi.rowScope?yr:Fr,prefixCls:ni,key:_o,record:qt,index:an,renderIndex:cn,dataIndex:Wo,render:wo,shouldCellUpdate:Wi.shouldCellUpdate},zo,{appendNode:fl,additionalProps:sl}))})),ka;if(Sa&&(_a||qi)){var Ha=Pi(qt,an,Wn+1,qi),Fa=Ji&&Ji(qt,an,Wn);ka=pe.createElement(Bt,{expanded:qi,className:Ve()("".concat(ni,"-expanded-row"),"".concat(ni,"-expanded-row-level-").concat(Wn+1),Fa),prefixCls:ni,component:_n,cellComponent:Fr,colSpan:ci.length,isEmpty:!1},Ha)}return pe.createElement(pe.Fragment,null,To,ka)}Vt.displayName="BodyRow";var Nt=dt(Vt);function Xt(Te){var ot=Te.columnKey,Rt=Te.onColumnResize,qt=pe.useRef();return pe.useEffect(function(){qt.current&&Rt(ot,qt.current.offsetWidth)},[]),pe.createElement(Pt.Z,{data:ot},pe.createElement("td",{ref:qt,style:{padding:0,border:0,height:0}},pe.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Mn(Te){var ot=Te.prefixCls,Rt=Te.columnsKey,qt=Te.onColumnResize;return pe.createElement("tr",{"aria-hidden":"true",className:"".concat(ot,"-measure-row"),style:{height:0,fontSize:0}},pe.createElement(Pt.Z.Collection,{onBatchResize:function(cn){cn.forEach(function(Fn){var Un=Fn.data,Wn=Fn.size;qt(Un,Wn.offsetWidth)})}},Rt.map(function(an){return pe.createElement(Xt,{key:an,columnKey:an,onColumnResize:qt})})))}function Tn(Te){var ot=Te.data,Rt=Te.measureColumnWidth,qt=Pe(Ae,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),an=qt.prefixCls,cn=qt.getComponent,Fn=qt.onColumnResize,Un=qt.flattenColumns,Wn=qt.getRowKey,_n=qt.expandedKeys,Fr=qt.childrenColumnName,yr=qt.emptyNode,$r=Ut(ot,Fr,_n,Wn),ni=pe.useRef({renderWithProps:!1}),ci=cn(["body","wrapper"],"tbody"),Ji=cn(["body","row"],"tr"),Pi=cn(["body","cell"],"td"),$i=cn(["body","cell"],"th"),qi;ot.length?qi=$r.map(function(Xa,io){var _a=Xa.record,Do=Xa.indent,To=Xa.index,ka=Wn(_a,io);return pe.createElement(Nt,{key:ka,rowKey:ka,record:_a,index:io,renderIndex:To,rowComponent:Ji,cellComponent:Pi,scopeCellComponent:$i,getRowKey:Wn,indent:Do})}):qi=pe.createElement(Bt,{expanded:!0,className:"".concat(an,"-placeholder"),prefixCls:an,component:Ji,cellComponent:Pi,colSpan:Un.length,isEmpty:!0},yr);var Sa=st(Un);return pe.createElement(at.Provider,{value:ni.current},pe.createElement(ci,{className:"".concat(an,"-tbody")},Rt&&pe.createElement(Mn,{prefixCls:an,columnsKey:Sa,onColumnResize:Fn}),qi))}Tn.displayName="Body";var Rn=dt(Tn),ur=["expandable"],vr="RC_TABLE_INTERNAL_COL_DEFINE";function dr(Te){var ot=Te.expandable,Rt=(0,fe.Z)(Te,ur),qt;return"expandable"in Te?qt=(0,mt.Z)((0,mt.Z)({},Rt),ot):qt=Rt,qt.showExpandColumn===!1&&(qt.expandIconColumnIndex=-1),qt}var mn=["columnType"];function zn(Te){for(var ot=Te.colWidths,Rt=Te.columns,qt=Te.columCount,an=[],cn=qt||Rt.length,Fn=!1,Un=cn-1;Un>=0;Un-=1){var Wn=ot[Un],_n=Rt&&Rt[Un],Fr=_n&&_n[vr];if(Wn||Fr||Fn){var yr=Fr||{},$r=yr.columnType,ni=(0,fe.Z)(yr,mn);an.unshift(pe.createElement("col",(0,et.Z)({key:Un,style:{width:Wn}},ni))),Fn=!0}}return pe.createElement("colgroup",null,an)}var jn=zn,Xn=ne(77654),Sr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Kr(Te,ot){return(0,pe.useMemo)(function(){for(var Rt=[],qt=0;qt<ot;qt+=1){var an=Te[qt];if(an!==void 0)Rt[qt]=an;else return null}return Rt},[Te.join("_"),ot])}var ar=pe.forwardRef(function(Te,ot){var Rt=Te.className,qt=Te.noData,an=Te.columns,cn=Te.flattenColumns,Fn=Te.colWidths,Un=Te.columCount,Wn=Te.stickyOffsets,_n=Te.direction,Fr=Te.fixHeader,yr=Te.stickyTopOffset,$r=Te.stickyBottomOffset,ni=Te.stickyClassName,ci=Te.onScroll,Ji=Te.maxContentScroll,Pi=Te.children,$i=(0,fe.Z)(Te,Sr),qi=Pe(Ae,["prefixCls","scrollbarSize","isSticky"]),Sa=qi.prefixCls,Xa=qi.scrollbarSize,io=qi.isSticky,_a=io&&!Fr?0:Xa,Do=pe.useRef(null),To=pe.useCallback(function(po){(0,Fe.mH)(ot,po),(0,Fe.mH)(Do,po)},[]);pe.useEffect(function(){var po;function sa(_o){var zo=_o,fl=zo.currentTarget,sl=zo.deltaX;sl&&(ci({currentTarget:fl,scrollLeft:fl.scrollLeft+sl}),_o.preventDefault())}return(po=Do.current)===null||po===void 0||po.addEventListener("wheel",sa),function(){var _o;(_o=Do.current)===null||_o===void 0||_o.removeEventListener("wheel",sa)}},[]);var ka=pe.useMemo(function(){return cn.every(function(po){return po.width})},[cn]),Ha=cn[cn.length-1],Fa={fixed:Ha?Ha.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Sa,"-cell-scrollbar")}}},Wi=(0,pe.useMemo)(function(){return _a?[].concat((0,Xn.Z)(an),[Fa]):an},[_a,an]),Oa=(0,pe.useMemo)(function(){return _a?[].concat((0,Xn.Z)(cn),[Fa]):cn},[_a,cn]),wo=(0,pe.useMemo)(function(){var po=Wn.right,sa=Wn.left;return(0,mt.Z)((0,mt.Z)({},Wn),{},{left:_n==="rtl"?[].concat((0,Xn.Z)(sa.map(function(_o){return _o+_a})),[0]):sa,right:_n==="rtl"?po:[].concat((0,Xn.Z)(po.map(function(_o){return _o+_a})),[0]),isSticky:io})},[_a,Wn,io]),Wo=Kr(Fn,Un);return pe.createElement("div",{style:(0,mt.Z)({overflow:"hidden"},io?{top:yr,bottom:$r}:{}),ref:To,className:Ve()(Rt,(0,Be.Z)({},ni,!!ni))},pe.createElement("table",{style:{tableLayout:"fixed",visibility:qt||Wo?null:"hidden"}},(!qt||!Ji||ka)&&pe.createElement(jn,{colWidths:Wo?[].concat((0,Xn.Z)(Wo),[_a]):[],columCount:Un+1,columns:Oa}),Pi((0,mt.Z)((0,mt.Z)({},$i),{},{stickyOffsets:wo,columns:Wi,flattenColumns:Oa}))))});ar.displayName="FixedHolder";var Zn=pe.memo(ar);function Wr(Te){var ot=Te.cells,Rt=Te.stickyOffsets,qt=Te.flattenColumns,an=Te.rowComponent,cn=Te.cellComponent,Fn=Te.tdCellComponent,Un=Te.onHeaderRow,Wn=Te.index,_n=Pe(Ae,["prefixCls","direction"]),Fr=_n.prefixCls,yr=_n.direction,$r;Un&&($r=Un(ot.map(function(ci){return ci.column}),Wn));var ni=st(ot.map(function(ci){return ci.column}));return pe.createElement(an,$r,ot.map(function(ci,Ji){var Pi=ci.column,$i=on(ci.colStart,ci.colEnd,qt,Rt,yr,Pi),qi;return Pi&&Pi.onHeaderCell&&(qi=ci.column.onHeaderCell(Pi)),pe.createElement(Wt,(0,et.Z)({},ci,{scope:Pi.title?ci.colSpan>1?"colgroup":"col":null,ellipsis:Pi.ellipsis,align:Pi.align,component:Pi.title?cn:Fn,prefixCls:Fr,key:ni[Ji]},$i,{additionalProps:qi,rowType:"header"}))}))}Wr.displayName="HeaderRow";var Gt=Wr;function or(Te){var ot=[];function Rt(Fn,Un){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ot[Wn]=ot[Wn]||[];var _n=Un,Fr=Fn.filter(Boolean).map(function(yr){var $r={key:yr.key,className:yr.className||"",children:yr.title,column:yr,colStart:_n},ni=1,ci=yr.children;return ci&&ci.length>0&&(ni=Rt(ci,_n,Wn+1).reduce(function(Ji,Pi){return Ji+Pi},0),$r.hasSubColumns=!0),"colSpan"in yr&&(ni=yr.colSpan),"rowSpan"in yr&&($r.rowSpan=yr.rowSpan),$r.colSpan=ni,$r.colEnd=$r.colStart+ni-1,ot[Wn].push($r),_n+=ni,ni});return Fr}Rt(Te,0);for(var qt=ot.length,an=function(Un){ot[Un].forEach(function(Wn){!("rowSpan"in Wn)&&!Wn.hasSubColumns&&(Wn.rowSpan=qt-Un)})},cn=0;cn<qt;cn+=1)an(cn);return ot}function er(Te){var ot=Te.stickyOffsets,Rt=Te.columns,qt=Te.flattenColumns,an=Te.onHeaderRow,cn=Pe(Ae,["prefixCls","getComponent"]),Fn=cn.prefixCls,Un=cn.getComponent,Wn=pe.useMemo(function(){return or(Rt)},[Rt]),_n=Un(["header","wrapper"],"thead"),Fr=Un(["header","row"],"tr"),yr=Un(["header","cell"],"th"),$r=Un(["header","cell"],"td");return pe.createElement(_n,{className:"".concat(Fn,"-thead")},Wn.map(function(ni,ci){var Ji=pe.createElement(Gt,{key:ci,flattenColumns:qt,cells:ni,stickyOffsets:ot,rowComponent:Fr,cellComponent:yr,tdCellComponent:$r,onHeaderRow:an,index:ci});return Ji}))}var Kn=dt(er),En=ne(11592);function nr(Te){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ot=="number"?ot:ot.endsWith("%")?Te*parseFloat(ot)/100:null}function lr(Te,ot){return pe.useMemo(function(){if(ot&&ot>0){var Rt=0,qt=0;Te.forEach(function(_n){var Fr=nr(ot,_n.width);Fr?Rt+=Fr:qt+=1});var an=ot-Rt,cn=qt,Fn=an/qt,Un=0,Wn=Te.map(function(_n){var Fr=(0,mt.Z)({},_n),yr=nr(ot,Fr.width);if(yr)Fr.width=yr;else{var $r=Math.floor(Fn);Fr.width=cn===1?an:$r,an-=$r,cn-=1}return Un+=Fr.width,Fr});return[Wn,Un]}return[Te,ot]},[Te,ot])}var xr=["children"],jt=["fixed"];function Ue(Te){return(0,En.Z)(Te).filter(function(ot){return pe.isValidElement(ot)}).map(function(ot){var Rt=ot.key,qt=ot.props,an=qt.children,cn=(0,fe.Z)(qt,xr),Fn=(0,mt.Z)({key:Rt},cn);return an&&(Fn.children=Ue(an)),Fn})}function yt(Te){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Te.filter(function(Rt){return Rt&&(0,$e.Z)(Rt)==="object"}).reduce(function(Rt,qt,an){var cn=qt.fixed,Fn=cn===!0?"left":cn,Un="".concat(ot,"-").concat(an),Wn=qt.children;return Wn&&Wn.length>0?[].concat((0,Xn.Z)(Rt),(0,Xn.Z)(yt(Wn,Un).map(function(_n){return(0,mt.Z)({fixed:Fn},_n)}))):[].concat((0,Xn.Z)(Rt),[(0,mt.Z)((0,mt.Z)({key:Un},qt),{},{fixed:Fn})])},[])}function ut(Te){for(var ot=!0,Rt=0;Rt<Te.length;Rt+=1){var qt=Te[Rt];if(ot&&qt.fixed!=="left")ot=!1;else if(!ot&&qt.fixed==="left"){warning(!1,"Index ".concat(Rt-1," of `columns` missing `fixed='left'` prop."));break}}for(var an=!0,cn=Te.length-1;cn>=0;cn-=1){var Fn=Te[cn];if(an&&Fn.fixed!=="right")an=!1;else if(!an&&Fn.fixed==="right"){warning(!1,"Index ".concat(cn+1," of `columns` missing `fixed='right'` prop."));break}}}function rt(Te){return Te.map(function(ot){var Rt=ot.fixed,qt=(0,fe.Z)(ot,jt),an=Rt;return Rt==="left"?an="right":Rt==="right"&&(an="left"),(0,mt.Z)({fixed:an},qt)})}function _t(Te,ot){var Rt=Te.prefixCls,qt=Te.columns,an=Te.children,cn=Te.expandable,Fn=Te.expandedKeys,Un=Te.columnTitle,Wn=Te.getRowKey,_n=Te.onTriggerExpand,Fr=Te.expandIcon,yr=Te.rowExpandable,$r=Te.expandIconColumnIndex,ni=Te.direction,ci=Te.expandRowByClick,Ji=Te.columnWidth,Pi=Te.fixed,$i=Te.scrollWidth,qi=pe.useMemo(function(){return qt||Ue(an)},[qt,an]),Sa=pe.useMemo(function(){if(cn){var Ha,Fa=qi.slice();if(!Fa.includes(E)){var Wi=$r||0;Wi>=0&&Fa.splice(Wi,0,E)}var Oa=Fa.indexOf(E);Fa=Fa.filter(function(sa,_o){return sa!==E||_o===Oa});var wo=qi[Oa],Wo;(Pi==="left"||Pi)&&!$r?Wo="left":(Pi==="right"||Pi)&&$r===qi.length?Wo="right":Wo=wo?wo.fixed:null;var po=(Ha={},(0,Be.Z)(Ha,vr,{className:"".concat(Rt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Be.Z)(Ha,"title",Un),(0,Be.Z)(Ha,"fixed",Wo),(0,Be.Z)(Ha,"className","".concat(Rt,"-row-expand-icon-cell")),(0,Be.Z)(Ha,"width",Ji),(0,Be.Z)(Ha,"render",function(_o,zo,fl){var sl=Wn(zo,fl),El=Fn.has(sl),Fl=yr?yr(zo):!0,Ro=Fr({prefixCls:Rt,expanded:El,expandable:Fl,record:zo,onExpand:_n});return ci?pe.createElement("span",{onClick:function(Jo){return Jo.stopPropagation()}},Ro):Ro}),Ha);return Fa.map(function(sa){return sa===E?po:sa})}return qi.filter(function(sa){return sa!==E})},[cn,qi,Wn,Fn,Fr,ni]),Xa=pe.useMemo(function(){var Ha=Sa;return ot&&(Ha=ot(Ha)),Ha.length||(Ha=[{render:function(){return null}}]),Ha},[ot,Sa,ni]),io=pe.useMemo(function(){return ni==="rtl"?rt(yt(Xa)):yt(Xa)},[Xa,ni,$i]),_a=lr(io,$i),Do=(0,Ee.Z)(_a,2),To=Do[0],ka=Do[1];return[Xa,To,ka]}var Qt=_t;function pn(Te){var ot,Rt=Te.prefixCls,qt=Te.record,an=Te.onExpand,cn=Te.expanded,Fn=Te.expandable,Un="".concat(Rt,"-row-expand-icon");if(!Fn)return pe.createElement("span",{className:Ve()(Un,"".concat(Rt,"-row-spaced"))});var Wn=function(Fr){an(qt,Fr),Fr.stopPropagation()};return pe.createElement("span",{className:Ve()(Un,(ot={},(0,Be.Z)(ot,"".concat(Rt,"-row-expanded"),cn),(0,Be.Z)(ot,"".concat(Rt,"-row-collapsed"),!cn),ot)),onClick:Wn})}function sn(Te,ot,Rt){var qt=[];function an(cn){(cn||[]).forEach(function(Fn,Un){qt.push(ot(Fn,Un)),an(Fn[Rt])})}return an(Te),qt}function Bn(Te,ot,Rt){var qt=dr(Te),an=qt.expandIcon,cn=qt.expandedRowKeys,Fn=qt.defaultExpandedRowKeys,Un=qt.defaultExpandAllRows,Wn=qt.expandedRowRender,_n=qt.onExpand,Fr=qt.onExpandedRowsChange,yr=qt.childrenColumnName,$r=an||pn,ni=yr||"children",ci=pe.useMemo(function(){return Wn?"row":Te.expandable&&Te.internalHooks===ye&&Te.expandable.__PARENT_RENDER_ICON__||ot.some(function(io){return io&&(0,$e.Z)(io)==="object"&&io[ni]})?"nest":!1},[!!Wn,ot]),Ji=pe.useState(function(){return Fn||(Un?sn(ot,Rt,ni):[])}),Pi=(0,Ee.Z)(Ji,2),$i=Pi[0],qi=Pi[1],Sa=pe.useMemo(function(){return new Set(cn||$i||[])},[cn,$i]),Xa=pe.useCallback(function(io){var _a=Rt(io,ot.indexOf(io)),Do,To=Sa.has(_a);To?(Sa.delete(_a),Do=(0,Xn.Z)(Sa)):Do=[].concat((0,Xn.Z)(Sa),[_a]),qi(Do),_n&&_n(!To,io),Fr&&Fr(Do)},[Rt,Sa,ot,_n,Fr]);return[qt,ci,Sa,$r,ni,Xa]}function Yn(Te,ot,Rt,qt){var an=Te.map(function(cn,Fn){return on(Fn,Fn,Te,ot,Rt,qt==null?void 0:qt[Fn])});return(0,Ot.Z)(function(){return an},[an],function(cn,Fn){return!(0,Se.Z)(cn,Fn)})}function cr(Te){var ot=(0,pe.useRef)(Te),Rt=(0,pe.useState)({}),qt=(0,Ee.Z)(Rt,2),an=qt[1],cn=(0,pe.useRef)(null),Fn=(0,pe.useRef)([]);function Un(Wn){Fn.current.push(Wn);var _n=Promise.resolve();cn.current=_n,_n.then(function(){if(cn.current===_n){var Fr=Fn.current,yr=ot.current;Fn.current=[],Fr.forEach(function($r){ot.current=$r(ot.current)}),cn.current=null,yr!==ot.current&&an({})}})}return(0,pe.useEffect)(function(){return function(){cn.current=null}},[]),[ot.current,Un]}function $n(Te){var ot=(0,pe.useRef)(Te||null),Rt=(0,pe.useRef)();function qt(){window.clearTimeout(Rt.current)}function an(Fn){ot.current=Fn,qt(),Rt.current=window.setTimeout(function(){ot.current=null,Rt.current=void 0},100)}function cn(){return ot.current}return(0,pe.useEffect)(function(){return qt},[]),[an,cn]}function en(){var Te=pe.useState(-1),ot=(0,Ee.Z)(Te,2),Rt=ot[0],qt=ot[1],an=pe.useState(-1),cn=(0,Ee.Z)(an,2),Fn=cn[0],Un=cn[1],Wn=pe.useCallback(function(_n,Fr){qt(_n),Un(Fr)},[]);return[Rt,Fn,Wn]}var rn=ne(47273),Or=(0,rn.Z)()?window:null;function kr(Te,ot){var Rt=(0,$e.Z)(Te)==="object"?Te:{},qt=Rt.offsetHeader,an=qt===void 0?0:qt,cn=Rt.offsetSummary,Fn=cn===void 0?0:cn,Un=Rt.offsetScroll,Wn=Un===void 0?0:Un,_n=Rt.getContainer,Fr=_n===void 0?function(){return Or}:_n,yr=Fr()||Or;return pe.useMemo(function(){var $r=!!Te;return{isSticky:$r,stickyClassName:$r?"".concat(ot,"-sticky-holder"):"",offsetHeader:an,offsetSummary:Fn,offsetScroll:Wn,container:yr}},[Wn,an,Fn,ot,yr])}function Cr(Te,ot,Rt){var qt=(0,pe.useMemo)(function(){for(var an=[],cn=[],Fn=0,Un=0,Wn=0;Wn<ot;Wn+=1)if(Rt==="rtl"){cn[Wn]=Un,Un+=Te[Wn]||0;var _n=ot-Wn-1;an[_n]=Fn,Fn+=Te[_n]||0}else{an[Wn]=Fn,Fn+=Te[Wn]||0;var Fr=ot-Wn-1;cn[Fr]=Un,Un+=Te[Fr]||0}return{left:an,right:cn}},[Te,ot,Rt]);return qt}var Dr=Cr;function qr(Te){var ot=Te.className,Rt=Te.children;return pe.createElement("div",{className:ot},Rt)}var br=qr,fi=ne(8224),Jt=ne(55468),On=function(ot,Rt){var qt,an,cn=ot.scrollBodyRef,Fn=ot.onScroll,Un=ot.offsetScroll,Wn=ot.container,_n=Pe(Ae,"prefixCls"),Fr=((qt=cn.current)===null||qt===void 0?void 0:qt.scrollWidth)||0,yr=((an=cn.current)===null||an===void 0?void 0:an.clientWidth)||0,$r=Fr&&yr*(yr/Fr),ni=pe.useRef(),ci=cr({scrollLeft:0,isHiddenScrollBar:!1}),Ji=(0,Ee.Z)(ci,2),Pi=Ji[0],$i=Ji[1],qi=pe.useRef({delta:0,x:0}),Sa=pe.useState(!1),Xa=(0,Ee.Z)(Sa,2),io=Xa[0],_a=Xa[1],Do=function(){_a(!1)},To=function(Oa){Oa.persist(),qi.current.delta=Oa.pageX-Pi.scrollLeft,qi.current.x=0,_a(!0),Oa.preventDefault()},ka=function(Oa){var wo,Wo=Oa||((wo=window)===null||wo===void 0?void 0:wo.event),po=Wo.buttons;if(!io||po===0){io&&_a(!1);return}var sa=qi.current.x+Oa.pageX-qi.current.x-qi.current.delta;sa<=0&&(sa=0),sa+$r>=yr&&(sa=yr-$r),Fn({scrollLeft:sa/yr*(Fr+2)}),qi.current.x=Oa.pageX},Ha=function(){if(cn.current){var Oa=(0,Jt.os)(cn.current).top,wo=Oa+cn.current.offsetHeight,Wo=Wn===window?document.documentElement.scrollTop+window.innerHeight:(0,Jt.os)(Wn).top+Wn.clientHeight;wo-(0,Kt.Z)()<=Wo||Oa>=Wo-Un?$i(function(po){return(0,mt.Z)((0,mt.Z)({},po),{},{isHiddenScrollBar:!0})}):$i(function(po){return(0,mt.Z)((0,mt.Z)({},po),{},{isHiddenScrollBar:!1})})}},Fa=function(Oa){$i(function(wo){return(0,mt.Z)((0,mt.Z)({},wo),{},{scrollLeft:Oa/Fr*yr||0})})};return pe.useImperativeHandle(Rt,function(){return{setScrollLeft:Fa}}),pe.useEffect(function(){var Wi=(0,fi.Z)(document.body,"mouseup",Do,!1),Oa=(0,fi.Z)(document.body,"mousemove",ka,!1);return Ha(),function(){Wi.remove(),Oa.remove()}},[$r,io]),pe.useEffect(function(){var Wi=(0,fi.Z)(Wn,"scroll",Ha,!1),Oa=(0,fi.Z)(window,"resize",Ha,!1);return function(){Wi.remove(),Oa.remove()}},[Wn]),pe.useEffect(function(){Pi.isHiddenScrollBar||$i(function(Wi){var Oa=cn.current;return Oa?(0,mt.Z)((0,mt.Z)({},Wi),{},{scrollLeft:Oa.scrollLeft/Oa.scrollWidth*Oa.clientWidth}):Wi})},[Pi.isHiddenScrollBar]),Fr<=yr||!$r||Pi.isHiddenScrollBar?null:pe.createElement("div",{style:{height:(0,Kt.Z)(),width:yr,bottom:Un},className:"".concat(_n,"-sticky-scroll")},pe.createElement("div",{onMouseDown:To,ref:ni,className:Ve()("".concat(_n,"-sticky-scroll-bar"),(0,Be.Z)({},"".concat(_n,"-sticky-scroll-bar-active"),io)),style:{width:"".concat($r,"px"),transform:"translate3d(".concat(Pi.scrollLeft,"px, 0, 0)")}}))},Hn=pe.forwardRef(On);function qn(Te){return null}var kn=qn;function Vn(Te){return null}var Pn=Vn,fr="rc-table",Pr=[],Gr={};function pi(){return"No Data"}function gi(Te){var ot,Rt=(0,mt.Z)({rowKey:"key",prefixCls:fr,emptyText:pi},Te),qt=Rt.prefixCls,an=Rt.className,cn=Rt.rowClassName,Fn=Rt.style,Un=Rt.data,Wn=Rt.rowKey,_n=Rt.scroll,Fr=Rt.tableLayout,yr=Rt.direction,$r=Rt.title,ni=Rt.footer,ci=Rt.summary,Ji=Rt.caption,Pi=Rt.id,$i=Rt.showHeader,qi=Rt.components,Sa=Rt.emptyText,Xa=Rt.onRow,io=Rt.onHeaderRow,_a=Rt.internalHooks,Do=Rt.transformColumns,To=Rt.internalRefs,ka=Rt.tailor,Ha=Rt.sticky,Fa=Un||Pr,Wi=!!Fa.length,Oa=_a===ye,wo=pe.useCallback(function(cl,bl){return(0,nt.Z)(qi,cl)||bl},[qi]),Wo=pe.useMemo(function(){return typeof Wn=="function"?Wn:function(cl){var bl=cl&&cl[Wn];return bl}},[Wn]),po=wo(["body"]),sa=en(),_o=(0,Ee.Z)(sa,3),zo=_o[0],fl=_o[1],sl=_o[2],El=Bn(Rt,Fa,Wo),Fl=(0,Ee.Z)(El,6),Ro=Fl[0],Hl=Fl[1],Jo=Fl[2],Il=Fl[3],Ml=Fl[4],as=Fl[5],so=_n==null?void 0:_n.x,ao=pe.useState(0),oo=(0,Ee.Z)(ao,2),Qa=oo[0],rl=oo[1],Ja=Qt((0,mt.Z)((0,mt.Z)((0,mt.Z)({},Rt),Ro),{},{expandable:!!Ro.expandedRowRender,columnTitle:Ro.columnTitle,expandedKeys:Jo,getRowKey:Wo,onTriggerExpand:as,expandIcon:Il,expandIconColumnIndex:Ro.expandIconColumnIndex,direction:yr,scrollWidth:Oa&&ka&&typeof so=="number"?so:null}),Oa?Do:null),Io=(0,Ee.Z)(Ja,3),Xo=Io[0],Yo=Io[1],Es=Io[2],Jl=Es!=null?Es:so,Ys=pe.useMemo(function(){return{columns:Xo,flattenColumns:Yo}},[Xo,Yo]),Ul=pe.useRef(),tu=pe.useRef(),Gl=pe.useRef(),ys=pe.useRef(),Du=pe.useRef(),il=pe.useState(!1),_i=(0,Ee.Z)(il,2),$o=_i[0],Ql=_i[1],os=pe.useState(!1),Fo=(0,Ee.Z)(os,2),Cl=Fo[0],$l=Fo[1],Us=cr(new Map),Cu=(0,Ee.Z)(Us,2),Tl=Cu[0],ps=Cu[1],nu=st(Yo),Cs=nu.map(function(cl){return Tl.get(cl)}),Fs=pe.useMemo(function(){return Cs},[Cs.join("_")]),ls=Dr(Fs,Yo.length,yr),Ll=_n&&Ht(_n.y),Rl=_n&&Ht(Jl)||!!Ro.fixed,Ps=Rl&&Yo.some(function(cl){var bl=cl.fixed;return bl}),Mu=pe.useRef(),Rs=kr(Ha,qt),Gs=Rs.isSticky,Ru=Rs.offsetHeader,_c=Rs.offsetSummary,ul=Rs.offsetScroll,wl=Rs.stickyClassName,ms=Rs.container,Bl=pe.useMemo(function(){return ci==null?void 0:ci(Fa)},[ci,Fa]),is=(Ll||Gs)&&pe.isValidElement(Bl)&&Bl.type===oe&&Bl.props.fixed,ws,zs,ru;Ll&&(zs={overflowY:"scroll",maxHeight:_n.y}),Rl&&(ws={overflowX:"auto"},Ll||(zs={overflowY:"hidden"}),ru={width:Jl===!0?"auto":Jl,minWidth:"100%"});var nd=pe.useCallback(function(cl,bl){(0,Et.Z)(Ul.current)&&ps(function(Ns){if(Ns.get(cl)!==bl){var Pu=new Map(Ns);return Pu.set(cl,bl),Pu}return Ns})},[]),Qu=$n(null),wu=(0,Ee.Z)(Qu,2),el=wu[0],Kl=wu[1];function ku(cl,bl){bl&&(typeof bl=="function"?bl(cl):bl.scrollLeft!==cl&&(bl.scrollLeft=cl,bl.scrollLeft!==cl&&setTimeout(function(){bl.scrollLeft=cl},0)))}var ac=(0,Ye.Z)(function(cl){var bl=cl.currentTarget,Ns=cl.scrollLeft,Pu=yr==="rtl",vu=typeof Ns=="number"?Ns:bl.scrollLeft,id=bl||Gr;if(!Kl()||Kl()===id){var us;el(id),ku(vu,tu.current),ku(vu,Gl.current),ku(vu,Du.current),ku(vu,(us=Mu.current)===null||us===void 0?void 0:us.setScrollLeft)}var gu=bl||tu.current;if(gu){var ad=gu.scrollWidth,$u=gu.clientWidth;if(ad===$u){Ql(!1),$l(!1);return}Pu?(Ql(-vu<ad-$u),$l(-vu>0)):(Ql(vu>0),$l(vu<ad-$u))}}),iu=function(){Rl&&Gl.current?ac({currentTarget:Gl.current}):(Ql(!1),$l(!1))},gc=function(bl){var Ns=bl.width;Ns!==Qa&&(iu(),rl(Ul.current?Ul.current.offsetWidth:Ns))},ss=pe.useRef(!1);pe.useEffect(function(){ss.current&&iu()},[Rl,Un,Xo.length]),pe.useEffect(function(){ss.current=!0},[]);var Mc=pe.useState(0),gd=(0,Ee.Z)(Mc,2),Tc=gd[0],Rc=gd[1],Yu=pe.useState(!0),Xu=(0,Ee.Z)(Yu,2),ta=Xu[0],rd=Xu[1];pe.useEffect(function(){(!ka||!Oa)&&(Gl.current instanceof Element?Rc((0,Kt.o)(Gl.current).width):Rc((0,Kt.o)(ys.current).width)),rd((0,ht.G)("position","sticky"))},[]),pe.useEffect(function(){Oa&&To&&(To.body.current=Gl.current)});var zc=pe.useCallback(function(cl){return pe.createElement(pe.Fragment,null,pe.createElement(Kn,cl),is==="top"&&pe.createElement(At,cl,Bl))},[is,Bl]),Zc=pe.useCallback(function(cl){return pe.createElement(At,cl,Bl)},[Bl]),mu=wo(["table"],"table"),Ju=pe.useMemo(function(){return Fr||(Ps?Jl==="max-content"?"auto":"fixed":Ll||Gs||Yo.some(function(cl){var bl=cl.ellipsis;return bl})?"fixed":"auto")},[Ll,Ps,Yo,Fr,Gs]),yc,oc={colWidths:Fs,columCount:Yo.length,stickyOffsets:ls,onHeaderRow:io,fixHeader:Ll,scroll:_n},kl=pe.useMemo(function(){return Wi?null:typeof Sa=="function"?Sa():Sa},[Wi,Sa]),yd=pe.createElement(Rn,{data:Fa,measureColumnWidth:Ll||Rl||Gs}),kc=pe.createElement(jn,{colWidths:Yo.map(function(cl){var bl=cl.width;return bl}),columns:Yo}),au=Ji!=null?pe.createElement("caption",{className:"".concat(qt,"-caption")},Ji):void 0,bc=(0,vn.Z)(Rt,{data:!0}),Fu=(0,vn.Z)(Rt,{aria:!0});if(Ll||Gs){var zu;typeof po=="function"?(zu=po(Fa,{scrollbarSize:Tc,ref:Gl,onScroll:ac}),oc.colWidths=Yo.map(function(cl,bl){var Ns=cl.width,Pu=bl===Yo.length-1?Ns-Tc:Ns;return typeof Pu=="number"&&!Number.isNaN(Pu)?Pu:0})):zu=pe.createElement("div",{style:(0,mt.Z)((0,mt.Z)({},ws),zs),onScroll:ac,ref:Gl,className:Ve()("".concat(qt,"-body"))},pe.createElement(mu,(0,et.Z)({style:(0,mt.Z)((0,mt.Z)({},ru),{},{tableLayout:Ju})},Fu),au,kc,yd,!is&&Bl&&pe.createElement(At,{stickyOffsets:ls,flattenColumns:Yo,columns:Xo},Bl)));var Is=(0,mt.Z)((0,mt.Z)((0,mt.Z)({noData:!Fa.length,maxContentScroll:Rl&&Jl==="max-content"},oc),Ys),{},{direction:yr,stickyClassName:wl,onScroll:ac});yc=pe.createElement(pe.Fragment,null,$i!==!1&&pe.createElement(Zn,(0,et.Z)({},Is,{stickyTopOffset:Ru,className:"".concat(qt,"-header"),ref:tu}),zc),zu,is&&is!=="top"&&pe.createElement(Zn,(0,et.Z)({},Is,{stickyBottomOffset:_c,className:"".concat(qt,"-summary"),ref:Du}),Zc),Gs&&pe.createElement(Hn,{ref:Mu,offsetScroll:ul,scrollBodyRef:Gl,onScroll:ac,container:ms}))}else yc=pe.createElement("div",{style:(0,mt.Z)((0,mt.Z)({},ws),zs),className:Ve()("".concat(qt,"-content")),onScroll:ac,ref:Gl},pe.createElement(mu,(0,et.Z)({style:(0,mt.Z)((0,mt.Z)({},ru),{},{tableLayout:Ju})},Fu),au,kc,$i!==!1&&pe.createElement(Kn,(0,et.Z)({},oc,Ys)),yd,Bl&&pe.createElement(At,{stickyOffsets:ls,flattenColumns:Yo,columns:Xo},Bl)));var Xs=pe.createElement("div",(0,et.Z)({className:Ve()(qt,an,(ot={},(0,Be.Z)(ot,"".concat(qt,"-rtl"),yr==="rtl"),(0,Be.Z)(ot,"".concat(qt,"-ping-left"),$o),(0,Be.Z)(ot,"".concat(qt,"-ping-right"),Cl),(0,Be.Z)(ot,"".concat(qt,"-layout-fixed"),Fr==="fixed"),(0,Be.Z)(ot,"".concat(qt,"-fixed-header"),Ll),(0,Be.Z)(ot,"".concat(qt,"-fixed-column"),Ps),(0,Be.Z)(ot,"".concat(qt,"-scroll-horizontal"),Rl),(0,Be.Z)(ot,"".concat(qt,"-has-fix-left"),Yo[0]&&Yo[0].fixed),(0,Be.Z)(ot,"".concat(qt,"-has-fix-right"),Yo[Yo.length-1]&&Yo[Yo.length-1].fixed==="right"),ot)),style:Fn,id:Pi,ref:Ul},bc),$r&&pe.createElement(br,{className:"".concat(qt,"-title")},$r(Fa)),pe.createElement("div",{ref:ys,className:"".concat(qt,"-container")},yc),ni&&pe.createElement(br,{className:"".concat(qt,"-footer")},ni(Fa)));Rl&&(Xs=pe.createElement(Pt.Z,{onResize:gc},Xs));var Ds=Yn(Yo,ls,yr,Xo),Qs=pe.useMemo(function(){return{scrollX:Jl,prefixCls:qt,getComponent:wo,scrollbarSize:Tc,direction:yr,fixedInfoList:Ds,isSticky:Gs,supportSticky:ta,componentWidth:Qa,fixHeader:Ll,fixColumn:Ps,horizonScroll:Rl,tableLayout:Ju,rowClassName:cn,expandedRowClassName:Ro.expandedRowClassName,expandIcon:Il,expandableType:Hl,expandRowByClick:Ro.expandRowByClick,expandedRowRender:Ro.expandedRowRender,onTriggerExpand:as,expandIconColumnIndex:Ro.expandIconColumnIndex,indentSize:Ro.indentSize,allColumnsFixedLeft:Yo.every(function(cl){return cl.fixed==="left"}),emptyNode:kl,columns:Xo,flattenColumns:Yo,onColumnResize:nd,hoverStartRow:zo,hoverEndRow:fl,onHover:sl,rowExpandable:Ro.rowExpandable,onRow:Xa,getRowKey:Wo,expandedKeys:Jo,childrenColumnName:Ml}},[Jl,qt,wo,Tc,yr,Ds,Gs,ta,Qa,Ll,Ps,Rl,Ju,cn,Ro.expandedRowClassName,Il,Hl,Ro.expandRowByClick,Ro.expandedRowRender,as,Ro.expandIconColumnIndex,Ro.indentSize,kl,Xo,Yo,nd,zo,fl,sl,Ro.rowExpandable,Xa,Wo,Jo,Ml]);return pe.createElement(Ae.Provider,{value:Qs},Xs)}function Ri(Te){return Dt(gi,Te)}var Si=Ri();Si.EXPAND_COLUMN=E,Si.INTERNAL_HOOKS=ye,Si.Column=kn,Si.ColumnGroup=Pn,Si.Summary=Ge;var wi=Si,Zi=ne(48911),ji=De(null),Gi=De(null);function Bi(Te,ot,Rt){var qt=ot||1;return Rt[Te+qt]-(Rt[Te]||0)}function Di(Te){var ot=Te.rowInfo,Rt=Te.column,qt=Te.colIndex,an=Te.indent,cn=Te.index,Fn=Te.renderIndex,Un=Te.record,Wn=Te.style,_n=Te.className,Fr=Te.inverse,yr=Te.getHeight,$r=Rt.render,ni=Rt.dataIndex,ci=Rt.className,Ji=Rt.width,Pi=Pe(Gi,["columnsOffset"]),$i=Pi.columnsOffset,qi=gt(ot,Rt,qt,an,cn),Sa=qi.key,Xa=qi.fixedInfo,io=qi.appendCellNode,_a=qi.additionalCellProps,Do=_a.style,To=_a.colSpan,ka=To===void 0?1:To,Ha=_a.rowSpan,Fa=Ha===void 0?1:Ha,Wi=qt-1,Oa=Bi(Wi,ka,$i),wo=ka>1?Ji-Oa:0,Wo=(0,mt.Z)((0,mt.Z)((0,mt.Z)({},Do),Wn),{},{flex:"0 0 ".concat(Oa,"px"),width:"".concat(Oa,"px"),marginRight:wo,pointerEvents:"auto"}),po=pe.useMemo(function(){return Fr?Fa<=1:ka===0||Fa===0||Fa>1},[Fa,ka,Fr]);po?Wo.visibility="hidden":Fr&&(Wo.height=yr==null?void 0:yr(Fa));var sa=po?function(){return null}:$r,_o={};return(Fa===0||ka===0)&&(_o.rowSpan=1,_o.colSpan=1),pe.createElement(Wt,(0,et.Z)({className:Ve()(ci,_n),ellipsis:Rt.ellipsis,align:Rt.align,scope:Rt.rowScope,component:"div",prefixCls:ot.prefixCls,key:Sa,record:Un,index:cn,renderIndex:Fn,dataIndex:ni,render:sa,shouldCellUpdate:Rt.shouldCellUpdate},Xa,{appendNode:io,additionalProps:(0,mt.Z)((0,mt.Z)({},_a),{},{style:Wo},_o)}))}var zr=Di,li=["data","index","className","rowKey","style","extra","getHeight"],Ii=pe.forwardRef(function(Te,ot){var Rt=Te.data,qt=Te.index,an=Te.className,cn=Te.rowKey,Fn=Te.style,Un=Te.extra,Wn=Te.getHeight,_n=(0,fe.Z)(Te,li),Fr=Rt.record,yr=Rt.indent,$r=Rt.index,ni=Pe(Ae,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ci=ni.scrollX,Ji=ni.flattenColumns,Pi=ni.prefixCls,$i=ni.fixColumn,qi=ni.componentWidth,Sa=Ke(Fr,cn,qt,yr),Xa=Sa.rowSupportExpand,io=Sa.expanded,_a=Sa.rowProps,Do=Sa.expandedRowRender,To=Sa.expandedRowClassName,ka;if(Xa&&io){var Ha=Do(Fr,qt,yr+1,io),Fa=To==null?void 0:To(Fr,qt,yr),Wi={};$i&&(Wi={style:(0,Be.Z)({},"--virtual-width","".concat(qi,"px"))});var Oa="".concat(Pi,"-expanded-row-cell");ka=pe.createElement("div",{className:Ve()("".concat(Pi,"-expanded-row"),"".concat(Pi,"-expanded-row-level-").concat(yr+1),Fa)},pe.createElement(Wt,{component:"div",prefixCls:Pi,className:Ve()(Oa,(0,Be.Z)({},"".concat(Oa,"-fixed"),$i)),additionalProps:Wi},Ha))}var wo=(0,mt.Z)((0,mt.Z)({},Fn),{},{width:ci});Un&&(wo.position="absolute",wo.pointerEvents="none");var Wo=pe.createElement("div",(0,et.Z)({},_a,_n,{ref:Xa?null:ot,className:Ve()(an,"".concat(Pi,"-row"),_a==null?void 0:_a.className,(0,Be.Z)({},"".concat(Pi,"-row-extra"),Un)),style:(0,mt.Z)((0,mt.Z)({},wo),_a==null?void 0:_a.style)}),Ji.map(function(po,sa){return pe.createElement(zr,{key:sa,rowInfo:Sa,column:po,colIndex:sa,indent:yr,index:qt,renderIndex:$r,record:Fr,inverse:Un,getHeight:Wn})}));return Xa?pe.createElement("div",{ref:ot},Wo,ka):Wo}),ya=dt(Ii),vi=ya,jr=pe.forwardRef(function(Te,ot){var Rt=Te.data,qt=Te.onScroll,an=Pe(Ae,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),cn=an.flattenColumns,Fn=an.onColumnResize,Un=an.getRowKey,Wn=an.expandedKeys,_n=an.prefixCls,Fr=an.childrenColumnName,yr=an.emptyNode,$r=an.scrollX,ni=Pe(ji),ci=ni.scrollY,Ji=ni.listItemHeight,Pi=pe.useRef(),$i=Ut(Rt,Fr,Wn,Un),qi=pe.useMemo(function(){var ka=0;return cn.map(function(Ha){var Fa=Ha.width,Wi=Ha.key;return ka+=Fa,[Wi,Fa,ka]})},[cn]),Sa=pe.useMemo(function(){return qi.map(function(ka){return ka[2]})},[qi]);pe.useEffect(function(){qi.forEach(function(ka){var Ha=(0,Ee.Z)(ka,2),Fa=Ha[0],Wi=Ha[1];Fn(Fa,Wi)})},[qi]),pe.useImperativeHandle(ot,function(){var ka={};return Object.defineProperty(ka,"scrollLeft",{get:function(){var Fa;return((Fa=Pi.current)===null||Fa===void 0?void 0:Fa.getScrollInfo().x)||0},set:function(Fa){var Wi;(Wi=Pi.current)===null||Wi===void 0||Wi.scrollTo({left:Fa})}}),ka});var Xa=function(Ha,Fa){var Wi,Oa=(Wi=$i[Fa])===null||Wi===void 0?void 0:Wi.record,wo=Ha.onCell;if(wo){var Wo,po=wo(Oa,Fa);return(Wo=po==null?void 0:po.rowSpan)!==null&&Wo!==void 0?Wo:1}return 1},io=function(Ha){var Fa=Ha.start,Wi=Ha.end,Oa=Ha.getSize,wo=Ha.offsetY;if(Wi<0)return null;for(var Wo=cn.filter(function(so){return Xa(so,Fa)===0}),po=Fa,sa=function(ao){if(Wo=Wo.filter(function(oo){return Xa(oo,ao)===0}),!Wo.length)return po=ao,"break"},_o=Fa;_o>=0;_o-=1){var zo=sa(_o);if(zo==="break")break}for(var fl=cn.filter(function(so){return Xa(so,Wi)!==1}),sl=Wi,El=function(ao){if(fl=fl.filter(function(oo){return Xa(oo,ao)!==1}),!fl.length)return sl=Math.max(ao-1,Wi),"break"},Fl=Wi;Fl<$i.length;Fl+=1){var Ro=El(Fl);if(Ro==="break")break}for(var Hl=[],Jo=function(ao){var oo=$i[ao];if(!oo)return"continue";cn.some(function(Qa){return Xa(Qa,ao)>1})&&Hl.push(ao)},Il=po;Il<=sl;Il+=1)var Ml=Jo(Il);var as=Hl.map(function(so){var ao=$i[so],oo=Un(ao.record,so),Qa=function(Io){var Xo=so+Io-1,Yo=Un($i[Xo].record,Xo),Es=Oa(oo,Yo);return Es.bottom-Es.top},rl=Oa(oo);return pe.createElement(vi,{key:so,data:ao,rowKey:oo,index:so,style:{top:-wo+rl.top},extra:!0,getHeight:Qa})});return as},_a=pe.useMemo(function(){return{columnsOffset:Sa}},[Sa]),Do="".concat(_n,"-tbody"),To;return $i.length?To=pe.createElement(Zi.Z,{fullHeight:!1,ref:Pi,className:Ve()(Do,"".concat(Do,"-virtual")),height:ci,itemHeight:Ji||24,data:$i,itemKey:function(Ha){return Un(Ha.record)},scrollWidth:$r,onVirtualScroll:function(Ha){var Fa=Ha.x;qt({scrollLeft:Fa})},extraRender:io},function(ka,Ha,Fa){var Wi=Un(ka.record,Ha);return pe.createElement(vi,(0,et.Z)({data:ka,rowKey:Wi,index:Ha},Fa))}):To=pe.createElement("div",{className:Ve()("".concat(_n,"-placeholder"))},pe.createElement(Wt,{component:"div",prefixCls:_n},yr)),pe.createElement(Gi.Provider,{value:_a},To)}),Ir=dt(jr),Vi=Ir,xi=function(ot,Rt){var qt=Rt.ref,an=Rt.onScroll;return pe.createElement(Vi,{ref:qt,data:ot,onScroll:an})},na=100;function ba(Te){var ot=Te.columns,Rt=Te.scroll,qt=Te.prefixCls,an=qt===void 0?fr:qt,cn=Te.className,Fn=Te.listItemHeight,Un=Rt||{},Wn=Un.x,_n=Un.y;typeof Wn!="number"&&(Wn=((ot||[]).length+1)*na),typeof _n!="number"&&(_n=500);var Fr=pe.useMemo(function(){return{scrollY:_n,listItemHeight:Fn}},[_n,Fn]);return pe.createElement(ji.Provider,{value:Fr},pe.createElement(wi,(0,et.Z)({},Te,{className:Ve()(cn,"".concat(an,"-virtual")),scroll:(0,mt.Z)((0,mt.Z)({},Rt),{},{x:Wn}),components:{body:xi},columns:ot,internalHooks:ye,tailor:!0})))}function oa(Te){return Dt(ba,Te)}var xa=oa(),Na=null;function Po(Te){return null}var ki=Po;function Hi(Te){return null}var Aa=Hi,Ma=ne(2738),lo=ne(68031),hl=ne(36355),qo=ne(93891),co=ne(19716),Ho=ne(8628),Vo=ne(31724),Qr=ne(58421),Ei=ne(71418),ri=ne(70305);function hi(Te){return function(Rt){let{prefixCls:qt,onExpand:an,record:cn,expanded:Fn,expandable:Un}=Rt;const Wn=`${qt}-row-expand-icon`;return pe.createElement("button",{type:"button",onClick:_n=>{an(cn,_n),_n.stopPropagation()},className:Ve()(Wn,{[`${Wn}-spaced`]:!Un,[`${Wn}-expanded`]:Un&&Fn,[`${Wn}-collapsed`]:Un&&!Fn}),"aria-label":Fn?Te.collapse:Te.expand,"aria-expanded":Fn})}}var Ta=hi;function vo(Te,ot){return"key"in Te&&Te.key!==void 0&&Te.key!==null?Te.key:Te.dataIndex?Array.isArray(Te.dataIndex)?Te.dataIndex.join("."):Te.dataIndex:ot}function go(Te,ot){return ot?`${ot}-${Te}`:`${Te}`}function So(Te,ot){return typeof Te=="function"?Te(ot):Te}function yo(Te,ot){const Rt=So(Te,ot);return Object.prototype.toString.call(Rt)==="[object Object]"?"":Rt}var Lo={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"},nl=Lo,ea=ne(85221),gl=function(ot,Rt){return pe.createElement(ea.Z,(0,et.Z)({},ot,{ref:Rt,icon:nl}))},ol=pe.forwardRef(gl),pl=ol,Xl=ne(56762);function hr(Te){const ot=pe.useRef(Te),Rt=(0,Xl.Z)();return[()=>ot.current,qt=>{ot.current=qt,Rt()}]}var Gn=ne(3113),gr=ne(24905),Vr=ne(38854),Xr=ne(64165),si=ne(20834),pr=ne(40875),Jr=ne(5112),Li=ne(17574),Oi=ne(47472),la=ne(92832);function mi(Te){let{value:ot,onChange:Rt,filterSearch:qt,tablePrefixCls:an,locale:cn}=Te;return qt?pe.createElement("div",{className:`${an}-filter-dropdown-search`},pe.createElement(la.default,{prefix:pe.createElement(Oi.Z,null),placeholder:cn.filterSearchPlaceholder,onChange:Rt,value:ot,htmlSize:1,className:`${an}-filter-dropdown-search-input`})):null}var Pa=mi,qa=ne(10228);const Ka=Te=>{const{keyCode:ot}=Te;ot===qa.Z.ENTER&&Te.stopPropagation()};var pa=pe.forwardRef((Te,ot)=>pe.createElement("div",{className:Te.className,onClick:Rt=>Rt.stopPropagation(),onKeyDown:Ka,ref:ot},Te.children));function eo(Te){let ot=[];return(Te||[]).forEach(Rt=>{let{value:qt,children:an}=Rt;ot.push(qt),an&&(ot=[].concat((0,Xn.Z)(ot),(0,Xn.Z)(eo(an))))}),ot}function ro(Te){return Te.some(ot=>{let{children:Rt}=ot;return Rt})}function xo(Te,ot){return typeof ot=="string"||typeof ot=="number"?ot==null?void 0:ot.toString().toLowerCase().includes(Te.trim().toLowerCase()):!1}function Wl(Te){let{filters:ot,prefixCls:Rt,filteredKeys:qt,filterMultiple:an,searchValue:cn,filterSearch:Fn}=Te;return ot.map((Un,Wn)=>{const _n=String(Un.value);if(Un.children)return{key:_n||Wn,label:Un.text,popupClassName:`${Rt}-dropdown-submenu`,children:Wl({filters:Un.children,prefixCls:Rt,filteredKeys:qt,filterMultiple:an,searchValue:cn,filterSearch:Fn})};const Fr=an?gr.default:Jr.ZP,yr={key:Un.value!==void 0?_n:Wn,label:pe.createElement(pe.Fragment,null,pe.createElement(Fr,{checked:qt.includes(_n)}),pe.createElement("span",null,Un.text))};return cn.trim()?typeof Fn=="function"?Fn(cn,Un)?yr:null:xo(cn,Un.text)?yr:null:yr})}function Qo(Te){var ot,Rt;const{tablePrefixCls:qt,prefixCls:an,column:cn,dropdownPrefixCls:Fn,columnKey:Un,filterMultiple:Wn,filterMode:_n="menu",filterSearch:Fr=!1,filterState:yr,triggerFilter:$r,locale:ni,children:ci,getPopupContainer:Ji}=Te,{filterDropdownOpen:Pi,onFilterDropdownOpenChange:$i,filterResetToDefaultFilteredValue:qi,defaultFilteredValue:Sa,filterDropdownVisible:Xa,onFilterDropdownVisibleChange:io}=cn,[_a,Do]=pe.useState(!1),To=!!(yr&&(!((ot=yr.filteredKeys)===null||ot===void 0)&&ot.length||yr.forceFiltered)),ka=Ja=>{Do(Ja),$i==null||$i(Ja),io==null||io(Ja)},Ha=(Rt=Pi!=null?Pi:Xa)!==null&&Rt!==void 0?Rt:_a,Fa=yr==null?void 0:yr.filteredKeys,[Wi,Oa]=hr(Fa||[]),wo=Ja=>{let{selectedKeys:Io}=Ja;Oa(Io)},Wo=(Ja,Io)=>{let{node:Xo,checked:Yo}=Io;wo(Wn?{selectedKeys:Ja}:{selectedKeys:Yo&&Xo.key?[Xo.key]:[]})};pe.useEffect(()=>{_a&&wo({selectedKeys:Fa||[]})},[Fa]);const[po,sa]=pe.useState([]),_o=Ja=>{sa(Ja)},[zo,fl]=pe.useState(""),sl=Ja=>{const{value:Io}=Ja.target;fl(Io)};pe.useEffect(()=>{_a||fl("")},[_a]);const El=Ja=>{const Io=Ja&&Ja.length?Ja:null;if(Io===null&&(!yr||!yr.filteredKeys)||(0,Se.Z)(Io,yr==null?void 0:yr.filteredKeys,!0))return null;$r({column:cn,key:Un,filteredKeys:Io})},Fl=()=>{ka(!1),El(Wi())},Ro=function(){let{confirm:Ja,closeDropdown:Io}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ja&&El([]),Io&&ka(!1),fl(""),Oa(qi?(Sa||[]).map(Xo=>String(Xo)):[])},Hl=function(){let{closeDropdown:Ja}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ja&&ka(!1),El(Wi())},Jo=Ja=>{Ja&&Fa!==void 0&&Oa(Fa||[]),ka(Ja),!Ja&&!cn.filterDropdown&&Fl()},Il=Ve()({[`${Fn}-menu-without-submenu`]:!ro(cn.filters||[])}),Ml=Ja=>{if(Ja.target.checked){const Io=eo(cn==null?void 0:cn.filters).map(Xo=>String(Xo));Oa(Io)}else Oa([])},as=Ja=>{let{filters:Io}=Ja;return(Io||[]).map((Xo,Yo)=>{const Es=String(Xo.value),Jl={title:Xo.text,key:Xo.value!==void 0?Es:Yo};return Xo.children&&(Jl.children=as({filters:Xo.children})),Jl})},so=Ja=>{var Io;return Object.assign(Object.assign({},Ja),{text:Ja.title,value:Ja.key,children:((Io=Ja.children)===null||Io===void 0?void 0:Io.map(Xo=>so(Xo)))||[]})};let ao;if(typeof cn.filterDropdown=="function")ao=cn.filterDropdown({prefixCls:`${Fn}-custom`,setSelectedKeys:Ja=>wo({selectedKeys:Ja}),selectedKeys:Wi(),confirm:Hl,clearFilters:Ro,filters:cn.filters,visible:Ha,close:()=>{ka(!1)}});else if(cn.filterDropdown)ao=cn.filterDropdown;else{const Ja=Wi()||[],Io=()=>(cn.filters||[]).length===0?pe.createElement(Xr.Z,{image:Xr.Z.PRESENTED_IMAGE_SIMPLE,description:ni.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):_n==="tree"?pe.createElement(pe.Fragment,null,pe.createElement(Pa,{filterSearch:Fr,value:zo,onChange:sl,tablePrefixCls:qt,locale:ni}),pe.createElement("div",{className:`${qt}-filter-dropdown-tree`},Wn?pe.createElement(gr.default,{checked:Ja.length===eo(cn.filters).length,indeterminate:Ja.length>0&&Ja.length<eo(cn.filters).length,className:`${qt}-filter-dropdown-checkall`,onChange:Ml},ni.filterCheckall):null,pe.createElement(Li.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Wn,checkStrictly:!Wn,className:`${Fn}-menu`,onCheck:Wo,checkedKeys:Ja,selectedKeys:Ja,showIcon:!1,treeData:as({filters:cn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:zo.trim()?Yo=>typeof Fr=="function"?Fr(zo,so(Yo)):xo(zo,Yo.title):void 0}))):pe.createElement(pe.Fragment,null,pe.createElement(Pa,{filterSearch:Fr,value:zo,onChange:sl,tablePrefixCls:qt,locale:ni}),pe.createElement(si.default,{selectable:!0,multiple:Wn,prefixCls:`${Fn}-menu`,className:Il,onSelect:wo,onDeselect:wo,selectedKeys:Ja,getPopupContainer:Ji,openKeys:po,onOpenChange:_o,items:Wl({filters:cn.filters||[],filterSearch:Fr,prefixCls:an,filteredKeys:Wi(),filterMultiple:Wn,searchValue:zo})})),Xo=()=>qi?(0,Se.Z)((Sa||[]).map(Yo=>String(Yo)),Ja,!0):Ja.length===0;ao=pe.createElement(pe.Fragment,null,Io(),pe.createElement("div",{className:`${an}-dropdown-btns`},pe.createElement(Gn.ZP,{type:"link",size:"small",disabled:Xo(),onClick:()=>Ro()},ni.filterReset),pe.createElement(Gn.ZP,{type:"primary",size:"small",onClick:Fl},ni.filterConfirm)))}cn.filterDropdown&&(ao=pe.createElement(pr.J,{selectable:void 0},ao));const oo=()=>pe.createElement(pa,{className:`${an}-dropdown`},ao);let Qa;typeof cn.filterIcon=="function"?Qa=cn.filterIcon(To):cn.filterIcon?Qa=cn.filterIcon:Qa=pe.createElement(pl,null);const{direction:rl}=pe.useContext(hl.E_);return pe.createElement("div",{className:`${an}-column`},pe.createElement("span",{className:`${qt}-column-title`},ci),pe.createElement(Vr.Z,{dropdownRender:oo,trigger:["click"],open:Ha,onOpenChange:Jo,getPopupContainer:Ji,placement:rl==="rtl"?"bottomLeft":"bottomRight"},pe.createElement("span",{role:"button",tabIndex:-1,className:Ve()(`${an}-trigger`,{active:To}),onClick:Ja=>{Ja.stopPropagation()}},Qa)))}var Cn=Qo;function wn(Te,ot,Rt){let qt=[];return(Te||[]).forEach((an,cn)=>{var Fn;const Un=go(cn,Rt);if(an.filters||"filterDropdown"in an||"onFilter"in an)if("filteredValue"in an){let Wn=an.filteredValue;"filterDropdown"in an||(Wn=(Fn=Wn==null?void 0:Wn.map(String))!==null&&Fn!==void 0?Fn:Wn),qt.push({column:an,key:vo(an,Un),filteredKeys:Wn,forceFiltered:an.filtered})}else qt.push({column:an,key:vo(an,Un),filteredKeys:ot&&an.defaultFilteredValue?an.defaultFilteredValue:void 0,forceFiltered:an.filtered});"children"in an&&(qt=[].concat((0,Xn.Z)(qt),(0,Xn.Z)(wn(an.children,ot,Un))))}),qt}function tr(Te,ot,Rt,qt,an,cn,Fn,Un){return Rt.map((Wn,_n)=>{const Fr=go(_n,Un),{filterMultiple:yr=!0,filterMode:$r,filterSearch:ni}=Wn;let ci=Wn;if(ci.filters||ci.filterDropdown){const Ji=vo(ci,Fr),Pi=qt.find($i=>{let{key:qi}=$i;return Ji===qi});ci=Object.assign(Object.assign({},ci),{title:$i=>pe.createElement(Cn,{tablePrefixCls:Te,prefixCls:`${Te}-filter`,dropdownPrefixCls:ot,column:ci,columnKey:Ji,filterState:Pi,filterMultiple:yr,filterMode:$r,filterSearch:ni,triggerFilter:cn,locale:an,getPopupContainer:Fn},So(Wn.title,$i))})}return"children"in ci&&(ci=Object.assign(Object.assign({},ci),{children:tr(Te,ot,ci.children,qt,an,cn,Fn,Fr)})),ci})}function Zr(Te){const ot={};return Te.forEach(Rt=>{let{key:qt,filteredKeys:an,column:cn}=Rt;const{filters:Fn,filterDropdown:Un}=cn;if(Un)ot[qt]=an||null;else if(Array.isArray(an)){const Wn=eo(Fn);ot[qt]=Wn.filter(_n=>an.includes(String(_n)))}else ot[qt]=null}),ot}function _r(Te,ot){return ot.reduce((Rt,qt)=>{const{column:{onFilter:an,filters:cn},filteredKeys:Fn}=qt;return an&&Fn&&Fn.length?Rt.filter(Un=>Fn.some(Wn=>{const _n=eo(cn),Fr=_n.findIndex($r=>String($r)===String(Wn)),yr=Fr!==-1?_n[Fr]:Wn;return an(yr,Un)})):Rt},Te)}const Ar=Te=>Te.flatMap(ot=>"children"in ot?[ot].concat((0,Xn.Z)(Ar(ot.children||[]))):[ot]);function Mr(Te){let{prefixCls:ot,dropdownPrefixCls:Rt,mergedColumns:qt,onFilterChange:an,getPopupContainer:cn,locale:Fn}=Te;const Un=pe.useMemo(()=>Ar(qt||[]),[qt]),[Wn,_n]=pe.useState(()=>wn(Un,!0)),Fr=pe.useMemo(()=>{const ci=wn(Un,!1);if(ci.length===0)return ci;let Ji=!0,Pi=!0;if(ci.forEach($i=>{let{filteredKeys:qi}=$i;qi!==void 0?Ji=!1:Pi=!1}),Ji){const $i=(Un||[]).map((qi,Sa)=>vo(qi,go(Sa)));return Wn.filter(qi=>{let{key:Sa}=qi;return $i.includes(Sa)}).map(qi=>{const Sa=Un[$i.findIndex(Xa=>Xa===qi.key)];return Object.assign(Object.assign({},qi),{column:Object.assign(Object.assign({},qi.column),Sa),forceFiltered:Sa.filtered})})}return ci},[Un,Wn]),yr=pe.useMemo(()=>Zr(Fr),[Fr]),$r=ci=>{const Ji=Fr.filter(Pi=>{let{key:$i}=Pi;return $i!==ci.key});Ji.push(ci),_n(Ji),an(Zr(Ji),Ji)};return[ci=>tr(ot,Rt,ci,Fr,Fn,$r,cn),Fr,yr]}var Qn=Mr;function Er(Te,ot,Rt){const qt=pe.useRef({});function an(cn){if(!qt.current||qt.current.data!==Te||qt.current.childrenColumnName!==ot||qt.current.getRowKey!==Rt){let Un=function(Wn){Wn.forEach((_n,Fr)=>{const yr=Rt(_n,Fr);Fn.set(yr,_n),_n&&typeof _n=="object"&&ot in _n&&Un(_n[ot]||[])})};const Fn=new Map;Un(Te),qt.current={data:Te,childrenColumnName:ot,kvMap:Fn,getRowKey:Rt}}return qt.current.kvMap.get(cn)}return[an]}var Yr=ne(50371),yi=function(Te,ot){var Rt={};for(var qt in Te)Object.prototype.hasOwnProperty.call(Te,qt)&&ot.indexOf(qt)<0&&(Rt[qt]=Te[qt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var an=0,qt=Object.getOwnPropertySymbols(Te);an<qt.length;an++)ot.indexOf(qt[an])<0&&Object.prototype.propertyIsEnumerable.call(Te,qt[an])&&(Rt[qt[an]]=Te[qt[an]]);return Rt};const ma=10;function Za(Te,ot){const Rt={current:Te.current,pageSize:Te.pageSize};return Object.keys(ot&&typeof ot=="object"?ot:{}).forEach(an=>{const cn=Te[an];typeof cn!="function"&&(Rt[an]=cn)}),Rt}function Ya(Te,ot,Rt){const qt=Rt&&typeof Rt=="object"?Rt:{},{total:an=0}=qt,cn=yi(qt,["total"]),[Fn,Un]=(0,pe.useState)(()=>({current:"defaultCurrent"in cn?cn.defaultCurrent:1,pageSize:"defaultPageSize"in cn?cn.defaultPageSize:ma})),Wn=(0,Yr.Z)(Fn,cn,{total:an>0?an:Te}),_n=Math.ceil((an||Te)/Wn.pageSize);Wn.current>_n&&(Wn.current=_n||1);const Fr=($r,ni)=>{Un({current:$r!=null?$r:1,pageSize:ni||Wn.pageSize})},yr=($r,ni)=>{var ci;Rt&&((ci=Rt.onChange)===null||ci===void 0||ci.call(Rt,$r,ni)),Fr($r,ni),ot($r,ni||(Wn==null?void 0:Wn.pageSize))};return Rt===!1?[{},()=>{}]:[Object.assign(Object.assign({},Wn),{onChange:yr}),Fr]}var to=Ya,Ia=ne(84105),Xi=ne(35654),Lr=ne(90782),aa=ne(71430),Ba=ne(18929);const fo={},no="SELECT_ALL",ja="SELECT_INVERT",Ao="SELECT_NONE",Ua=[],Ni=(Te,ot)=>{let Rt=[];return(ot||[]).forEach(qt=>{Rt.push(qt),qt&&typeof qt=="object"&&Te in qt&&(Rt=[].concat((0,Xn.Z)(Rt),(0,Xn.Z)(Ni(Te,qt[Te]))))}),Rt};var bo=(Te,ot)=>{const{preserveSelectedRowKeys:Rt,selectedRowKeys:qt,defaultSelectedRowKeys:an,getCheckboxProps:cn,onChange:Fn,onSelect:Un,onSelectAll:Wn,onSelectInvert:_n,onSelectNone:Fr,onSelectMultiple:yr,columnWidth:$r,type:ni,selections:ci,fixed:Ji,renderCell:Pi,hideSelectAll:$i,checkStrictly:qi=!0}=ot||{},{prefixCls:Sa,data:Xa,pageData:io,getRecordByKey:_a,getRowKey:Do,expandType:To,childrenColumnName:ka,locale:Ha,getPopupContainer:Fa}=Te,[Wi,Oa]=(0,Ba.Z)(qt||an||Ua,{value:qt}),wo=pe.useRef(new Map),Wo=(0,pe.useCallback)(so=>{if(Rt){const ao=new Map;so.forEach(oo=>{let Qa=_a(oo);!Qa&&wo.current.has(oo)&&(Qa=wo.current.get(oo)),ao.set(oo,Qa)}),wo.current=ao}},[_a,Rt]);pe.useEffect(()=>{Wo(Wi)},[Wi]);const{keyEntities:po}=(0,pe.useMemo)(()=>{if(qi)return{keyEntities:null};let so=Xa;if(Rt){const ao=new Set(Xa.map((Qa,rl)=>Do(Qa,rl))),oo=Array.from(wo.current).reduce((Qa,rl)=>{let[Ja,Io]=rl;return ao.has(Ja)?Qa:Qa.concat(Io)},[]);so=[].concat((0,Xn.Z)(so),(0,Xn.Z)(oo))}return(0,aa.I8)(so,{externalGetKey:Do,childrenPropName:ka})},[Xa,Do,qi,ka,Rt]),sa=(0,pe.useMemo)(()=>Ni(ka,io),[ka,io]),_o=(0,pe.useMemo)(()=>{const so=new Map;return sa.forEach((ao,oo)=>{const Qa=Do(ao,oo),rl=(cn?cn(ao):null)||{};so.set(Qa,rl)}),so},[sa,Do,cn]),zo=(0,pe.useCallback)(so=>{var ao;return!!(!((ao=_o.get(Do(so)))===null||ao===void 0)&&ao.disabled)},[_o,Do]),[fl,sl]=(0,pe.useMemo)(()=>{if(qi)return[Wi||[],[]];const{checkedKeys:so,halfCheckedKeys:ao}=(0,Lr.S)(Wi,!0,po,zo);return[so||[],ao]},[Wi,qi,po,zo]),El=(0,pe.useMemo)(()=>{const so=ni==="radio"?fl.slice(0,1):fl;return new Set(so)},[fl,ni]),Fl=(0,pe.useMemo)(()=>ni==="radio"?new Set:new Set(sl),[sl,ni]),[Ro,Hl]=(0,pe.useState)(null);pe.useEffect(()=>{ot||Oa(Ua)},[!!ot]);const Jo=(0,pe.useCallback)((so,ao)=>{let oo,Qa;Wo(so),Rt?(oo=so,Qa=so.map(rl=>wo.current.get(rl))):(oo=[],Qa=[],so.forEach(rl=>{const Ja=_a(rl);Ja!==void 0&&(oo.push(rl),Qa.push(Ja))})),Oa(oo),Fn==null||Fn(oo,Qa,{type:ao})},[Oa,_a,Fn,Rt]),Il=(0,pe.useCallback)((so,ao,oo,Qa)=>{if(Un){const rl=oo.map(Ja=>_a(Ja));Un(_a(so),ao,rl,Qa)}Jo(oo,"single")},[Un,_a,Jo]),Ml=(0,pe.useMemo)(()=>!ci||$i?null:(ci===!0?[no,ja,Ao]:ci).map(ao=>ao===no?{key:"all",text:Ha.selectionAll,onSelect(){Jo(Xa.map((oo,Qa)=>Do(oo,Qa)).filter(oo=>{const Qa=_o.get(oo);return!(Qa!=null&&Qa.disabled)||El.has(oo)}),"all")}}:ao===ja?{key:"invert",text:Ha.selectInvert,onSelect(){const oo=new Set(El);io.forEach((rl,Ja)=>{const Io=Do(rl,Ja),Xo=_o.get(Io);Xo!=null&&Xo.disabled||(oo.has(Io)?oo.delete(Io):oo.add(Io))});const Qa=Array.from(oo);_n&&_n(Qa),Jo(Qa,"invert")}}:ao===Ao?{key:"none",text:Ha.selectNone,onSelect(){Fr==null||Fr(),Jo(Array.from(El).filter(oo=>{const Qa=_o.get(oo);return Qa==null?void 0:Qa.disabled}),"none")}}:ao).map(ao=>Object.assign(Object.assign({},ao),{onSelect:function(){for(var oo,Qa,rl=arguments.length,Ja=new Array(rl),Io=0;Io<rl;Io++)Ja[Io]=arguments[Io];(Qa=ao.onSelect)===null||Qa===void 0||(oo=Qa).call.apply(oo,[ao].concat(Ja)),Hl(null)}})),[ci,El,io,Do,_n,Jo]);return[(0,pe.useCallback)(so=>{var ao;if(!ot)return so.filter(il=>il!==fo);let oo=(0,Xn.Z)(so);const Qa=new Set(El),rl=sa.map(Do).filter(il=>!_o.get(il).disabled),Ja=rl.every(il=>Qa.has(il)),Io=rl.some(il=>Qa.has(il)),Xo=()=>{const il=[];Ja?rl.forEach($o=>{Qa.delete($o),il.push($o)}):rl.forEach($o=>{Qa.has($o)||(Qa.add($o),il.push($o))});const _i=Array.from(Qa);Wn==null||Wn(!Ja,_i.map($o=>_a($o)),il.map($o=>_a($o))),Jo(_i,"all"),Hl(null)};let Yo;if(ni!=="radio"){let il;if(Ml){const Fo={getPopupContainer:Fa,items:Ml.map((Cl,$l)=>{const{key:Us,text:Cu,onSelect:Tl}=Cl;return{key:Us!=null?Us:$l,onClick:()=>{Tl==null||Tl(rl)},label:Cu}})};il=pe.createElement("div",{className:`${Sa}-selection-extra`},pe.createElement(Vr.Z,{menu:Fo,getPopupContainer:Fa},pe.createElement("span",null,pe.createElement(Ia.Z,null))))}const _i=sa.map((Fo,Cl)=>{const $l=Do(Fo,Cl),Us=_o.get($l)||{};return Object.assign({checked:Qa.has($l)},Us)}).filter(Fo=>{let{disabled:Cl}=Fo;return Cl}),$o=!!_i.length&&_i.length===sa.length,Ql=$o&&_i.every(Fo=>{let{checked:Cl}=Fo;return Cl}),os=$o&&_i.some(Fo=>{let{checked:Cl}=Fo;return Cl});Yo=!$i&&pe.createElement("div",{className:`${Sa}-selection`},pe.createElement(gr.default,{checked:$o?Ql:!!sa.length&&Ja,indeterminate:$o?!Ql&&os:!Ja&&Io,onChange:Xo,disabled:sa.length===0||$o,"aria-label":il?"Custom selection":"Select all",skipGroup:!0}),il)}let Es;ni==="radio"?Es=(il,_i,$o)=>{const Ql=Do(_i,$o),os=Qa.has(Ql);return{node:pe.createElement(Jr.ZP,Object.assign({},_o.get(Ql),{checked:os,onClick:Fo=>Fo.stopPropagation(),onChange:Fo=>{Qa.has(Ql)||Il(Ql,!0,[Ql],Fo.nativeEvent)}})),checked:os}}:Es=(il,_i,$o)=>{var Ql;const os=Do(_i,$o),Fo=Qa.has(os),Cl=Fl.has(os),$l=_o.get(os);let Us;return To==="nest"?Us=Cl:Us=(Ql=$l==null?void 0:$l.indeterminate)!==null&&Ql!==void 0?Ql:Cl,{node:pe.createElement(gr.default,Object.assign({},$l,{indeterminate:Us,checked:Fo,skipGroup:!0,onClick:Cu=>Cu.stopPropagation(),onChange:Cu=>{let{nativeEvent:Tl}=Cu;const{shiftKey:ps}=Tl;let nu=-1,Cs=-1;if(ps&&qi){const Fs=new Set([Ro,os]);rl.some((ls,Ll)=>{if(Fs.has(ls))if(nu===-1)nu=Ll;else return Cs=Ll,!0;return!1})}if(Cs!==-1&&nu!==Cs&&qi){const Fs=rl.slice(nu,Cs+1),ls=[];Fo?Fs.forEach(Rl=>{Qa.has(Rl)&&(ls.push(Rl),Qa.delete(Rl))}):Fs.forEach(Rl=>{Qa.has(Rl)||(ls.push(Rl),Qa.add(Rl))});const Ll=Array.from(Qa);yr==null||yr(!Fo,Ll.map(Rl=>_a(Rl)),ls.map(Rl=>_a(Rl))),Jo(Ll,"multiple")}else{const Fs=fl;if(qi){const ls=Fo?(0,Xi._5)(Fs,os):(0,Xi.L0)(Fs,os);Il(os,!Fo,ls,Tl)}else{const ls=(0,Lr.S)([].concat((0,Xn.Z)(Fs),[os]),!0,po,zo),{checkedKeys:Ll,halfCheckedKeys:Rl}=ls;let Ps=Ll;if(Fo){const Mu=new Set(Ll);Mu.delete(os),Ps=(0,Lr.S)(Array.from(Mu),{checked:!1,halfCheckedKeys:Rl},po,zo).checkedKeys}Il(os,!Fo,Ps,Tl)}}Hl(Fo?null:os)}})),checked:Fo}};const Jl=(il,_i,$o)=>{const{node:Ql,checked:os}=Es(il,_i,$o);return Pi?Pi(os,_i,$o,Ql):Ql};if(!oo.includes(fo))if(oo.findIndex(il=>{var _i;return((_i=il[vr])===null||_i===void 0?void 0:_i.columnType)==="EXPAND_COLUMN"})===0){const[il,..._i]=oo;oo=[il,fo].concat((0,Xn.Z)(_i))}else oo=[fo].concat((0,Xn.Z)(oo));const Ys=oo.indexOf(fo);oo=oo.filter((il,_i)=>il!==fo||_i===Ys);const Ul=oo[Ys-1],tu=oo[Ys+1];let Gl=Ji;Gl===void 0&&((tu==null?void 0:tu.fixed)!==void 0?Gl=tu.fixed:(Ul==null?void 0:Ul.fixed)!==void 0&&(Gl=Ul.fixed)),Gl&&Ul&&((ao=Ul[vr])===null||ao===void 0?void 0:ao.columnType)==="EXPAND_COLUMN"&&Ul.fixed===void 0&&(Ul.fixed=Gl);const ys=Ve()(`${Sa}-selection-col`,{[`${Sa}-selection-col-with-dropdown`]:ci&&ni==="checkbox"}),Du={fixed:Gl,width:$r,className:`${Sa}-selection-column`,title:ot.columnTitle||Yo,render:Jl,onCell:ot.onCell,[vr]:{className:ys}};return oo.map(il=>il===fo?Du:il)},[Do,sa,ot,fl,El,Fl,$r,Ml,To,Ro,_o,yr,Il,zo]),El]},ll=ne(89489),zl=ne(59477),Yt=ne(6848);const hn="ascend",bn="descend";function rr(Te){return typeof Te.sorter=="object"&&typeof Te.sorter.multiple=="number"?Te.sorter.multiple:!1}function Ki(Te){return typeof Te=="function"?Te:Te&&typeof Te=="object"&&Te.compare?Te.compare:!1}function Br(Te,ot){return ot?Te[Te.indexOf(ot)+1]:Te[0]}function ai(Te,ot,Rt){let qt=[];function an(cn,Fn){qt.push({column:cn,key:vo(cn,Fn),multiplePriority:rr(cn),sortOrder:cn.sortOrder})}return(Te||[]).forEach((cn,Fn)=>{const Un=go(Fn,Rt);cn.children?("sortOrder"in cn&&an(cn,Un),qt=[].concat((0,Xn.Z)(qt),(0,Xn.Z)(ai(cn.children,ot,Un)))):cn.sorter&&("sortOrder"in cn?an(cn,Un):ot&&cn.defaultSortOrder&&qt.push({column:cn,key:vo(cn,Un),multiplePriority:rr(cn),sortOrder:cn.defaultSortOrder}))}),qt}function ei(Te,ot,Rt,qt,an,cn,Fn,Un){return(ot||[]).map((Wn,_n)=>{const Fr=go(_n,Un);let yr=Wn;if(yr.sorter){const $r=yr.sortDirections||an,ni=yr.showSorterTooltip===void 0?Fn:yr.showSorterTooltip,ci=vo(yr,Fr),Ji=Rt.find(To=>{let{key:ka}=To;return ka===ci}),Pi=Ji?Ji.sortOrder:null,$i=Br($r,Pi);let qi;if(Wn.sortIcon)qi=Wn.sortIcon({sortOrder:Pi});else{const To=$r.includes(hn)&&pe.createElement(zl.Z,{className:Ve()(`${Te}-column-sorter-up`,{active:Pi===hn})}),ka=$r.includes(bn)&&pe.createElement(ll.Z,{className:Ve()(`${Te}-column-sorter-down`,{active:Pi===bn})});qi=pe.createElement("span",{className:Ve()(`${Te}-column-sorter`,{[`${Te}-column-sorter-full`]:!!(To&&ka)})},pe.createElement("span",{className:`${Te}-column-sorter-inner`,"aria-hidden":"true"},To,ka))}const{cancelSort:Sa,triggerAsc:Xa,triggerDesc:io}=cn||{};let _a=Sa;$i===bn?_a=io:$i===hn&&(_a=Xa);const Do=typeof ni=="object"?ni:{title:_a};yr=Object.assign(Object.assign({},yr),{className:Ve()(yr.className,{[`${Te}-column-sort`]:Pi}),title:To=>{const ka=pe.createElement("div",{className:`${Te}-column-sorters`},pe.createElement("span",{className:`${Te}-column-title`},So(Wn.title,To)),qi);return ni?pe.createElement(Yt.Z,Object.assign({},Do),ka):ka},onHeaderCell:To=>{const ka=Wn.onHeaderCell&&Wn.onHeaderCell(To)||{},Ha=ka.onClick,Fa=ka.onKeyDown;ka.onClick=wo=>{qt({column:Wn,key:ci,sortOrder:$i,multiplePriority:rr(Wn)}),Ha==null||Ha(wo)},ka.onKeyDown=wo=>{wo.keyCode===qa.Z.ENTER&&(qt({column:Wn,key:ci,sortOrder:$i,multiplePriority:rr(Wn)}),Fa==null||Fa(wo))};const Wi=yo(Wn.title,{}),Oa=Wi==null?void 0:Wi.toString();return Pi?ka["aria-sort"]=Pi==="ascend"?"ascending":"descending":ka["aria-label"]=Oa||"",ka.className=Ve()(ka.className,`${Te}-column-has-sorters`),ka.tabIndex=0,Wn.ellipsis&&(ka.title=(Wi!=null?Wi:"").toString()),ka}})}return"children"in yr&&(yr=Object.assign(Object.assign({},yr),{children:ei(Te,yr.children,Rt,qt,an,cn,Fn,Fr)})),yr})}function ui(Te){const{column:ot,sortOrder:Rt}=Te;return{column:ot,order:Rt,field:ot.dataIndex,columnKey:ot.key}}function Ai(Te){const ot=Te.filter(Rt=>{let{sortOrder:qt}=Rt;return qt}).map(ui);return ot.length===0&&Te.length?Object.assign(Object.assign({},ui(Te[Te.length-1])),{column:void 0}):ot.length<=1?ot[0]||{}:ot}function ir(Te,ot,Rt){const qt=ot.slice().sort((Fn,Un)=>Un.multiplePriority-Fn.multiplePriority),an=Te.slice(),cn=qt.filter(Fn=>{let{column:{sorter:Un},sortOrder:Wn}=Fn;return Ki(Un)&&Wn});return cn.length?an.sort((Fn,Un)=>{for(let Wn=0;Wn<cn.length;Wn+=1){const _n=cn[Wn],{column:{sorter:Fr},sortOrder:yr}=_n,$r=Ki(Fr);if($r&&yr){const ni=$r(Fn,Un,yr);if(ni!==0)return yr===hn?ni:-ni}}return 0}).map(Fn=>{const Un=Fn[Rt];return Un?Object.assign(Object.assign({},Fn),{[Rt]:ir(Un,ot,Rt)}):Fn}):an}function ti(Te){let{prefixCls:ot,mergedColumns:Rt,onSorterChange:qt,sortDirections:an,tableLocale:cn,showSorterTooltip:Fn}=Te;const[Un,Wn]=pe.useState(ai(Rt,!0)),_n=pe.useMemo(()=>{let ci=!0;const Ji=ai(Rt,!1);if(!Ji.length)return Un;const Pi=[];function $i(Sa){ci?Pi.push(Sa):Pi.push(Object.assign(Object.assign({},Sa),{sortOrder:null}))}let qi=null;return Ji.forEach(Sa=>{qi===null?($i(Sa),Sa.sortOrder&&(Sa.multiplePriority===!1?ci=!1:qi=!0)):(qi&&Sa.multiplePriority!==!1||(ci=!1),$i(Sa))}),Pi},[Rt,Un]),Fr=pe.useMemo(()=>{const ci=_n.map(Ji=>{let{column:Pi,sortOrder:$i}=Ji;return{column:Pi,order:$i}});return{sortColumns:ci,sortColumn:ci[0]&&ci[0].column,sortOrder:ci[0]&&ci[0].order}},[_n]);function yr(ci){let Ji;ci.multiplePriority===!1||!_n.length||_n[0].multiplePriority===!1?Ji=[ci]:Ji=[].concat((0,Xn.Z)(_n.filter(Pi=>{let{key:$i}=Pi;return $i!==ci.key})),[ci]),Wn(Ji),qt(Ai(Ji),Ji)}return[ci=>ei(ot,ci,_n,yr,an,cn,Fn),_n,Fr,()=>Ai(_n)]}function Mi(Te,ot){return Te.map(Rt=>{const qt=Object.assign({},Rt);return qt.title=So(Rt.title,ot),"children"in qt&&(qt.children=Mi(qt.children,ot)),qt})}function va(Te){return[pe.useCallback(Rt=>Mi(Rt,Te),[Te])]}var ii=Ri((Te,ot)=>{const{_renderTimes:Rt}=Te,{_renderTimes:qt}=ot;return Rt!==qt}),ca=oa((Te,ot)=>{const{_renderTimes:Rt}=Te,{_renderTimes:qt}=ot;return Rt!==qt}),Fi=ne(64993),Hr=ne(17313),Ur=ne(83116),ga=ne(37613),Ci=Te=>{const{componentCls:ot}=Te,Rt=`${Te.lineWidth}px ${Te.lineType} ${Te.tableBorderColor}`,qt=(an,cn,Fn)=>({[`&${ot}-${an}`]:{[`> ${ot}-container`]:{[`> ${ot}-content, > ${ot}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ot}-expanded-row-fixed`]:{margin:`-${cn}px -${Fn+Te.lineWidth}px`}}}}}});return{[`${ot}-wrapper`]:{[`${ot}${ot}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ot}-title`]:{border:Rt,borderBottom:0},[`> ${ot}-container`]:{borderInlineStart:Rt,borderTop:Rt,[`
|
|
|
> ${ot}-content,
|
|
|
> ${ot}-header,
|
|
|
> ${ot}-body,
|
|
|
> ${ot}-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:Rt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Rt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ot}-cell-fix-right-first::after`]:{borderInlineEnd:Rt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ot}-expanded-row-fixed`]:{margin:`-${Te.tablePaddingVertical}px -${Te.tablePaddingHorizontal+Te.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Te.lineWidth,bottom:0,borderInlineEnd:Rt,content:'""'}}}}}},[`&${ot}-scroll-horizontal`]:{[`> ${ot}-container > ${ot}-body`]:{"> table > tbody":{[`
|
|
|
> tr${ot}-expanded-row,
|
|
|
> tr${ot}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},qt("middle",Te.tablePaddingVerticalMiddle,Te.tablePaddingHorizontalMiddle)),qt("small",Te.tablePaddingVerticalSmall,Te.tablePaddingHorizontalSmall)),{[`> ${ot}-footer`]:{border:Rt,borderTop:0}}),[`${ot}-cell`]:{[`${ot}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Te.lineWidth}px 0 ${Te.lineWidth}px ${Te.tableHeaderBg}`}},[`${ot}-bordered ${ot}-cell-scrollbar`]:{borderInlineEnd:Rt}}}},Qi=Te=>{const{componentCls:ot}=Te;return{[`${ot}-wrapper`]:{[`${ot}-cell-ellipsis`]:Object.assign(Object.assign({},Hr.vS),{wordBreak:"keep-all",[`
|
|
|
&${ot}-cell-fix-left-last,
|
|
|
&${ot}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${ot}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ot}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},dl=Te=>{const{componentCls:ot}=Te;return{[`${ot}-wrapper`]:{[`${ot}-tbody > tr${ot}-placeholder`]:{textAlign:"center",color:Te.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Te.colorBgContainer}}}}},Dl=ne(15969),rs=Te=>{const{componentCls:ot,antCls:Rt,controlInteractiveSize:qt,motionDurationSlow:an,lineWidth:cn,paddingXS:Fn,lineType:Un,tableBorderColor:Wn,tableExpandIconBg:_n,tableExpandColumnWidth:Fr,borderRadius:yr,fontSize:$r,fontSizeSM:ni,lineHeight:ci,tablePaddingVertical:Ji,tablePaddingHorizontal:Pi,tableExpandedRowBg:$i,paddingXXS:qi}=Te,Sa=qt/2-cn,Xa=Sa*2+cn*3,io=`${cn}px ${Un} ${Wn}`,_a=qi-cn;return{[`${ot}-wrapper`]:{[`${ot}-expand-icon-col`]:{width:Fr},[`${ot}-row-expand-icon-cell`]:{textAlign:"center",[`${ot}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ot}-row-indent`]:{height:1,float:"left"},[`${ot}-row-expand-icon`]:Object.assign(Object.assign({},(0,Dl.N)(Te)),{position:"relative",float:"left",boxSizing:"border-box",width:Xa,height:Xa,padding:0,color:"inherit",lineHeight:`${Xa}px`,background:_n,border:io,borderRadius:yr,transform:`scale(${qt/Xa})`,transition:`all ${an}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${an} ease-out`,content:'""'},"&::before":{top:Sa,insetInlineEnd:_a,insetInlineStart:_a,height:cn},"&::after":{top:_a,bottom:_a,insetInlineStart:Sa,width:cn,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"}}),[`${ot}-row-indent + ${ot}-row-expand-icon`]:{marginTop:($r*ci-cn*3)/2-Math.ceil((ni*1.4-cn*3)/2),marginInlineEnd:Fn},[`tr${ot}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:$i}},[`${Rt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${ot}-expanded-row-fixed`]:{position:"relative",margin:`-${Ji}px -${Pi}px`,padding:`${Ji}px ${Pi}px`}}}},Bs=Te=>{const{componentCls:ot,antCls:Rt,iconCls:qt,tableFilterDropdownWidth:an,tableFilterDropdownSearchWidth:cn,paddingXXS:Fn,paddingXS:Un,colorText:Wn,lineWidth:_n,lineType:Fr,tableBorderColor:yr,tableHeaderIconColor:$r,fontSizeSM:ni,tablePaddingHorizontal:ci,borderRadius:Ji,motionDurationSlow:Pi,colorTextDescription:$i,colorPrimary:qi,tableHeaderFilterActiveBg:Sa,colorTextDisabled:Xa,tableFilterDropdownBg:io,tableFilterDropdownHeight:_a,controlItemBgHover:Do,controlItemBgActive:To,boxShadowSecondary:ka,filterDropdownMenuBg:Ha}=Te,Fa=`${Rt}-dropdown`,Wi=`${ot}-filter-dropdown`,Oa=`${Rt}-tree`,wo=`${_n}px ${Fr} ${yr}`;return[{[`${ot}-wrapper`]:{[`${ot}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ot}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Fn,marginInline:`${Fn}px ${-ci/2}px`,padding:`0 ${Fn}px`,color:$r,fontSize:ni,borderRadius:Ji,cursor:"pointer",transition:`all ${Pi}`,"&:hover":{color:$i,background:Sa},"&.active":{color:qi}}}},{[`${Rt}-dropdown`]:{[Wi]:Object.assign(Object.assign({},(0,Hr.Wf)(Te)),{minWidth:an,backgroundColor:io,borderRadius:Ji,boxShadow:ka,overflow:"hidden",[`${Fa}-menu`]:{maxHeight:_a,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Ha,"&:empty::after":{display:"block",padding:`${Un}px 0`,color:Xa,fontSize:ni,textAlign:"center",content:'"Not Found"'}},[`${Wi}-tree`]:{paddingBlock:`${Un}px 0`,paddingInline:Un,[Oa]:{padding:0},[`${Oa}-treenode ${Oa}-node-content-wrapper:hover`]:{backgroundColor:Do},[`${Oa}-treenode-checkbox-checked ${Oa}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:To}}},[`${Wi}-search`]:{padding:Un,borderBottom:wo,"&-input":{input:{minWidth:cn},[qt]:{color:Xa}}},[`${Wi}-checkall`]:{width:"100%",marginBottom:Fn,marginInlineStart:Fn},[`${Wi}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Un-_n}px ${Un}px`,overflow:"hidden",borderTop:wo}})}},{[`${Rt}-dropdown ${Wi}, ${Wi}-submenu`]:{[`${Rt}-checkbox-wrapper + span`]:{paddingInlineStart:Un,color:Wn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},No=Te=>{const{componentCls:ot,lineWidth:Rt,colorSplit:qt,motionDurationSlow:an,zIndexTableFixed:cn,tableBg:Fn,zIndexTableSticky:Un}=Te,Wn=qt;return{[`${ot}-wrapper`]:{[`
|
|
|
${ot}-cell-fix-left,
|
|
|
${ot}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:cn,background:Fn},[`
|
|
|
${ot}-cell-fix-left-first::after,
|
|
|
${ot}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Rt,width:30,transform:"translateX(100%)",transition:`box-shadow ${an}`,content:'""',pointerEvents:"none"},[`${ot}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${ot}-cell-fix-right-first::after,
|
|
|
${ot}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Rt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${an}`,content:'""',pointerEvents:"none"},[`${ot}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Un+1,width:30,transition:`box-shadow ${an}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ot}-ping-left`]:{[`&:not(${ot}-has-fix-left) ${ot}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Wn}`}},[`
|
|
|
${ot}-cell-fix-left-first::after,
|
|
|
${ot}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Wn}`},[`${ot}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ot}-ping-right`]:{[`&:not(${ot}-has-fix-right) ${ot}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Wn}`}},[`
|
|
|
${ot}-cell-fix-right-first::after,
|
|
|
${ot}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Wn}`}}}}},ml=Te=>{const{componentCls:ot,antCls:Rt}=Te;return{[`${ot}-wrapper`]:{[`${ot}-pagination${Rt}-pagination`]:{margin:`${Te.margin}px 0`},[`${ot}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Te.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},_l=Te=>{const{componentCls:ot,tableRadius:Rt}=Te;return{[`${ot}-wrapper`]:{[ot]:{[`${ot}-title, ${ot}-header`]:{borderRadius:`${Rt}px ${Rt}px 0 0`},[`${ot}-title + ${ot}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ot}-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:Rt,borderStartEndRadius:Rt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Rt},"> *:last-child":{borderStartEndRadius:Rt}}},"&-footer":{borderRadius:`0 0 ${Rt}px ${Rt}px`}}}}},Vu=Te=>{const{componentCls:ot}=Te;return{[`${ot}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ot}-pagination-left`]:{justifyContent:"flex-end"},[`${ot}-pagination-right`]:{justifyContent:"flex-start"},[`${ot}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ot}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ot}-row-indent`]:{float:"right"}}}}},_u=Te=>{const{componentCls:ot,antCls:Rt,iconCls:qt,fontSizeIcon:an,padding:cn,paddingXS:Fn,tableHeaderIconColor:Un,tableHeaderIconColorHover:Wn,tableSelectionColumnWidth:_n}=Te;return{[`${ot}-wrapper`]:{[`${ot}-selection-col`]:{width:_n,[`&${ot}-selection-col-with-dropdown`]:{width:_n+an+cn/4}},[`${ot}-bordered ${ot}-selection-col`]:{width:_n+Fn*2,[`&${ot}-selection-col-with-dropdown`]:{width:_n+an+cn/4+Fn*2}},[`
|
|
|
table tr th${ot}-selection-column,
|
|
|
table tr td${ot}-selection-column
|
|
|
`]:{paddingInlineEnd:Te.paddingXS,paddingInlineStart:Te.paddingXS,textAlign:"center",[`${Rt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ot}-selection-column${ot}-cell-fix-left`]:{zIndex:Te.zIndexTableFixed+1},[`table tr th${ot}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ot}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ot}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Te.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Te.tablePaddingHorizontal/4}px`,[qt]:{color:Un,fontSize:an,verticalAlign:"baseline","&:hover":{color:Wn}}}}}},du=Te=>{const{componentCls:ot}=Te,Rt=(qt,an,cn,Fn)=>({[`${ot}${ot}-${qt}`]:{fontSize:Fn,[`
|
|
|
${ot}-title,
|
|
|
${ot}-footer,
|
|
|
${ot}-cell,
|
|
|
${ot}-thead > tr > th,
|
|
|
${ot}-tbody > tr > th,
|
|
|
${ot}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${an}px ${cn}px`},[`${ot}-filter-trigger`]:{marginInlineEnd:`-${cn/2}px`},[`${ot}-expanded-row-fixed`]:{margin:`-${an}px -${cn}px`},[`${ot}-tbody`]:{[`${ot}-wrapper:only-child ${ot}`]:{marginBlock:`-${an}px`,marginInline:`${Te.tableExpandColumnWidth-cn}px -${cn}px`}},[`${ot}-selection-column`]:{paddingInlineStart:`${cn/4}px`}}});return{[`${ot}-wrapper`]:Object.assign(Object.assign({},Rt("middle",Te.tablePaddingVerticalMiddle,Te.tablePaddingHorizontalMiddle,Te.tableFontSizeMiddle)),Rt("small",Te.tablePaddingVerticalSmall,Te.tablePaddingHorizontalSmall,Te.tableFontSizeSmall))}},fu=Te=>{const{componentCls:ot,marginXXS:Rt,fontSizeIcon:qt,tableHeaderIconColor:an,tableHeaderIconColorHover:cn}=Te;return{[`${ot}-wrapper`]:{[`${ot}-thead th${ot}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Te.motionDurationSlow}`,"&:hover":{background:Te.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Te.colorPrimary},[`
|
|
|
&${ot}-cell-fix-left:hover,
|
|
|
&${ot}-cell-fix-right:hover
|
|
|
`]:{background:Te.tableFixedHeaderSortActiveBg}},[`${ot}-thead th${ot}-column-sort`]:{background:Te.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ot}-column-sort`]:{background:Te.tableBodySortBg},[`${ot}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${ot}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ot}-column-sorter`]:{marginInlineStart:Rt,color:an,fontSize:0,transition:`color ${Te.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:qt,"&.active":{color:Te.colorPrimary}},[`${ot}-column-sorter-up + ${ot}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ot}-column-sorters:hover ${ot}-column-sorter`]:{color:cn}}}},hu=Te=>{const{componentCls:ot,opacityLoading:Rt,tableScrollThumbBg:qt,tableScrollThumbBgHover:an,tableScrollThumbSize:cn,tableScrollBg:Fn,zIndexTableSticky:Un,stickyScrollBarBorderRadius:Wn}=Te,_n=`${Te.lineWidth}px ${Te.lineType} ${Te.tableBorderColor}`;return{[`${ot}-wrapper`]:{[`${ot}-sticky`]:{"&-holder":{position:"sticky",zIndex:Un,background:Te.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${cn}px !important`,zIndex:Un,display:"flex",alignItems:"center",background:Fn,borderTop:_n,opacity:Rt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:cn,backgroundColor:qt,borderRadius:Wn,transition:`all ${Te.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:an}}}}}}},Vs=Te=>{const{componentCls:ot,lineWidth:Rt,tableBorderColor:qt}=Te,an=`${Rt}px ${Te.lineType} ${qt}`;return{[`${ot}-wrapper`]:{[`${ot}-summary`]:{position:"relative",zIndex:Te.zIndexTableFixed,background:Te.tableBg,"> tr":{"> th, > td":{borderBottom:an}}},[`div${ot}-summary`]:{boxShadow:`0 -${Rt}px 0 ${qt}`}}}},eu=Te=>{const{componentCls:ot}=Te,Rt=`${Te.lineWidth}px ${Te.lineType} ${Te.tableBorderColor}`,qt=`${ot}-expanded-row-cell`;return{[`${ot}-wrapper`]:{[`${ot}-tbody-virtual`]:{[`${ot}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${ot}-cell`]:{borderBottom:Rt},[`${ot}-expanded-row`]:{[`${qt}${qt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Te.lineWidth}px)`,borderInlineEnd:"none"}}},[`${ot}-bordered`]:{[`${ot}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Rt,position:"absolute"},[`${ot}-cell`]:{borderInlineEnd:Rt,[`&${ot}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Te.lineWidth,borderInlineStart:Rt}}}}}}};const ks=Te=>{const{componentCls:ot,fontWeightStrong:Rt,tablePaddingVertical:qt,tablePaddingHorizontal:an,lineWidth:cn,lineType:Fn,tableBorderColor:Un,tableFontSize:Wn,tableBg:_n,tableRadius:Fr,tableHeaderTextColor:yr,motionDurationMid:$r,tableHeaderBg:ni,tableHeaderCellSplitColor:ci,tableRowHoverBg:Ji,tableSelectedRowBg:Pi,tableSelectedRowHoverBg:$i,tableFooterTextColor:qi,tableFooterBg:Sa,paddingContentVerticalLG:Xa}=Te,io=`${cn}px ${Fn} ${Un}`;return{[`${ot}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Hr.dF)()),{[ot]:Object.assign(Object.assign({},(0,Hr.Wf)(Te)),{fontSize:Wn,background:_n,borderRadius:`${Fr}px ${Fr}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Fr}px ${Fr}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${ot}-cell,
|
|
|
${ot}-thead > tr > th,
|
|
|
${ot}-tbody > tr > th,
|
|
|
${ot}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Xa}px ${an}px`,overflowWrap:"break-word"},[`${ot}-title`]:{padding:`${qt}px ${an}px`},[`${ot}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:yr,fontWeight:Rt,textAlign:"start",background:ni,borderBottom:io,transition:`background ${$r} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ot}-selection-column):not(${ot}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ci,transform:"translateY(-50%)",transition:`background-color ${$r}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ot}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${$r}, border-color ${$r}`,borderBottom:io,[`
|
|
|
> ${ot}-wrapper:only-child,
|
|
|
> ${ot}-expanded-row-fixed > ${ot}-wrapper:only-child
|
|
|
`]:{[ot]:{marginBlock:`-${qt}px`,marginInline:`${Te.tableExpandColumnWidth-an}px -${an}px`,[`${ot}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:yr,fontWeight:Rt,textAlign:"start",background:ni,borderBottom:io,transition:`background ${$r} ease`},[`
|
|
|
&${ot}-row:hover > th,
|
|
|
&${ot}-row:hover > td,
|
|
|
> th${ot}-cell-row-hover,
|
|
|
> td${ot}-cell-row-hover
|
|
|
`]:{background:Ji},[`&${ot}-row-selected`]:{"> th, > td":{background:Pi},"&:hover > th, &:hover > td":{background:$i}}}},[`${ot}-footer`]:{padding:`${qt}px ${an}px`,color:qi,background:Sa}})}};var Eu=(0,Ur.Z)("Table",Te=>{const{colorTextHeading:ot,colorSplit:Rt,colorIcon:qt,colorIconHover:an,opacityLoading:cn,colorBgContainer:Fn,controlInteractiveSize:Un,headerBg:Wn,headerColor:_n,headerSortActiveBg:Fr,headerSortHoverBg:yr,bodySortBg:$r,rowHoverBg:ni,rowSelectedBg:ci,rowSelectedHoverBg:Ji,rowExpandedBg:Pi,cellPaddingBlock:$i,cellPaddingInline:qi,cellPaddingBlockMD:Sa,cellPaddingInlineMD:Xa,cellPaddingBlockSM:io,cellPaddingInlineSM:_a,borderColor:Do,footerBg:To,footerColor:ka,headerBorderRadius:Ha,cellFontSize:Fa,cellFontSizeMD:Wi,cellFontSizeSM:Oa,headerSplitColor:wo,fixedHeaderSortActiveBg:Wo,headerFilterHoverBg:po,filterDropdownBg:sa,expandIconBg:_o,selectionColumnWidth:zo,stickyScrollBarBg:fl}=Te,sl=new Fi.C(qt),El=new Fi.C(an),Fl=2,Ro=(0,ga.TS)(Te,{tableFontSize:Fa,tableBg:Fn,tableRadius:Ha,tablePaddingVertical:$i,tablePaddingHorizontal:qi,tablePaddingVerticalMiddle:Sa,tablePaddingHorizontalMiddle:Xa,tablePaddingVerticalSmall:io,tablePaddingHorizontalSmall:_a,tableBorderColor:Do,tableHeaderTextColor:_n,tableHeaderBg:Wn,tableFooterTextColor:ka,tableFooterBg:To,tableHeaderCellSplitColor:wo,tableHeaderSortBg:Fr,tableHeaderSortHoverBg:yr,tableHeaderIconColor:sl.clone().setAlpha(sl.getAlpha()*cn).toRgbString(),tableHeaderIconColorHover:El.clone().setAlpha(El.getAlpha()*cn).toRgbString(),tableBodySortBg:$r,tableFixedHeaderSortActiveBg:Wo,tableHeaderFilterActiveBg:po,tableFilterDropdownBg:sa,tableRowHoverBg:ni,tableSelectedRowBg:ci,tableSelectedRowHoverBg:Ji,zIndexTableFixed:Fl,zIndexTableSticky:Fl+1,tableFontSizeMiddle:Wi,tableFontSizeSmall:Oa,tableSelectionColumnWidth:zo,tableExpandIconBg:_o,tableExpandColumnWidth:Un+2*Te.padding,tableExpandedRowBg:Pi,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:fl,tableScrollThumbBgHover:ot,tableScrollBg:Rt});return[ks(Ro),ml(Ro),Vs(Ro),fu(Ro),Bs(Ro),Ci(Ro),_l(Ro),rs(Ro),Vs(Ro),dl(Ro),_u(Ro),No(Ro),hu(Ro),Qi(Ro),du(Ro),Vu(Ro),eu(Ro)]},Te=>{const{colorFillAlter:ot,colorBgContainer:Rt,colorTextHeading:qt,colorFillSecondary:an,colorFillContent:cn,controlItemBgActive:Fn,controlItemBgActiveHover:Un,padding:Wn,paddingSM:_n,paddingXS:Fr,colorBorderSecondary:yr,borderRadiusLG:$r,fontSize:ni,controlHeight:ci,colorTextPlaceholder:Ji}=Te,Pi=new Fi.C(an).onBackground(Rt).toHexShortString(),$i=new Fi.C(cn).onBackground(Rt).toHexShortString(),qi=new Fi.C(ot).onBackground(Rt).toHexShortString();return{headerBg:qi,headerColor:qt,headerSortActiveBg:Pi,headerSortHoverBg:$i,bodySortBg:qi,rowHoverBg:qi,rowSelectedBg:Fn,rowSelectedHoverBg:Un,rowExpandedBg:ot,cellPaddingBlock:Wn,cellPaddingInline:Wn,cellPaddingBlockMD:_n,cellPaddingInlineMD:Fr,cellPaddingBlockSM:Fr,cellPaddingInlineSM:Fr,borderColor:yr,headerBorderRadius:$r,footerBg:qi,footerColor:qt,cellFontSize:ni,cellFontSizeMD:ni,cellFontSizeSM:ni,headerSplitColor:yr,fixedHeaderSortActiveBg:Pi,headerFilterHoverBg:cn,filterDropdownMenuBg:Rt,filterDropdownBg:Rt,expandIconBg:Rt,selectionColumnWidth:ci,stickyScrollBarBg:Ji,stickyScrollBarBorderRadius:100}});const ic=[],Tu=(Te,ot)=>{const{prefixCls:Rt,className:qt,rootClassName:an,style:cn,size:Fn,bordered:Un,dropdownPrefixCls:Wn,dataSource:_n,pagination:Fr,rowSelection:yr,rowKey:$r="key",rowClassName:ni,columns:ci,children:Ji,childrenColumnName:Pi,onChange:$i,getPopupContainer:qi,loading:Sa,expandIcon:Xa,expandable:io,expandedRowRender:_a,expandIconColumnIndex:Do,indentSize:To,scroll:ka,sortDirections:Ha,locale:Fa,showSorterTooltip:Wi=!0,virtual:Oa}=Te,wo=pe.useMemo(()=>ci||Ue(Ji),[ci,Ji]),Wo=pe.useMemo(()=>wo.some(ul=>ul.responsive),[wo]),po=(0,Ho.Z)(Wo),sa=pe.useMemo(()=>{const ul=new Set(Object.keys(po).filter(wl=>po[wl]));return wo.filter(wl=>!wl.responsive||wl.responsive.some(ms=>ul.has(ms)))},[wo,po]),_o=(0,Ma.Z)(Te,["className","style","columns"]),{locale:zo=Vo.Z,direction:fl,table:sl,renderEmpty:El,getPrefixCls:Fl,getPopupContainer:Ro}=pe.useContext(hl.E_),Hl=(0,co.Z)(Fn),Jo=Object.assign(Object.assign({},zo.Table),Fa),Il=_n||ic,Ml=Fl("table",Rt),as=Fl("dropdown",Wn),so=Object.assign({childrenColumnName:Pi,expandIconColumnIndex:Do},io),{childrenColumnName:ao="children"}=so,oo=pe.useMemo(()=>Il.some(ul=>ul==null?void 0:ul[ao])?"nest":_a||io&&io.expandedRowRender?"row":null,[Il]),Qa={body:pe.useRef()},rl=pe.useMemo(()=>typeof $r=="function"?$r:ul=>ul==null?void 0:ul[$r],[$r]),[Ja]=Er(Il,ao,rl),Io={},Xo=function(ul,wl){let ms=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Bl,is,ws;const zs=Object.assign(Object.assign({},Io),ul);ms&&((Bl=Io.resetPagination)===null||Bl===void 0||Bl.call(Io),!((is=zs.pagination)===null||is===void 0)&&is.current&&(zs.pagination.current=1),Fr&&Fr.onChange&&Fr.onChange(1,(ws=zs.pagination)===null||ws===void 0?void 0:ws.pageSize)),ka&&ka.scrollToFirstRowOnChange!==!1&&Qa.body.current&&(0,lo.Z)(0,{getContainer:()=>Qa.body.current}),$i==null||$i(zs.pagination,zs.filters,zs.sorter,{currentDataSource:_r(ir(Il,zs.sorterStates,ao),zs.filterStates),action:wl})},Yo=(ul,wl)=>{Xo({sorter:ul,sorterStates:wl},"sort",!1)},[Es,Jl,Ys,Ul]=ti({prefixCls:Ml,mergedColumns:sa,onSorterChange:Yo,sortDirections:Ha||["ascend","descend"],tableLocale:Jo,showSorterTooltip:Wi}),tu=pe.useMemo(()=>ir(Il,Jl,ao),[Il,Jl]);Io.sorter=Ul(),Io.sorterStates=Jl;const Gl=(ul,wl)=>{Xo({filters:ul,filterStates:wl},"filter",!0)},[ys,Du,il]=Qn({prefixCls:Ml,locale:Jo,dropdownPrefixCls:as,mergedColumns:sa,onFilterChange:Gl,getPopupContainer:qi||Ro}),_i=_r(tu,Du);Io.filters=il,Io.filterStates=Du;const $o=pe.useMemo(()=>{const ul={};return Object.keys(il).forEach(wl=>{il[wl]!==null&&(ul[wl]=il[wl])}),Object.assign(Object.assign({},Ys),{filters:ul})},[Ys,il]),[Ql]=va($o),os=(ul,wl)=>{Xo({pagination:Object.assign(Object.assign({},Io.pagination),{current:ul,pageSize:wl})},"paginate")},[Fo,Cl]=to(_i.length,os,Fr);Io.pagination=Fr===!1?{}:Za(Fo,Fr),Io.resetPagination=Cl;const $l=pe.useMemo(()=>{if(Fr===!1||!Fo.pageSize)return _i;const{current:ul=1,total:wl,pageSize:ms=ma}=Fo;return _i.length<wl?_i.length>ms?_i.slice((ul-1)*ms,ul*ms):_i:_i.slice((ul-1)*ms,ul*ms)},[!!Fr,_i,Fo&&Fo.current,Fo&&Fo.pageSize,Fo&&Fo.total]),[Us,Cu]=bo({prefixCls:Ml,data:_i,pageData:$l,getRowKey:rl,getRecordByKey:Ja,expandType:oo,childrenColumnName:ao,locale:Jo,getPopupContainer:qi||Ro},yr),Tl=(ul,wl,ms)=>{let Bl;return typeof ni=="function"?Bl=Ve()(ni(ul,wl,ms)):Bl=Ve()(ni),Ve()({[`${Ml}-row-selected`]:Cu.has(rl(ul,wl))},Bl)};so.__PARENT_RENDER_ICON__=so.expandIcon,so.expandIcon=so.expandIcon||Xa||Ta(Jo),oo==="nest"&&so.expandIconColumnIndex===void 0?so.expandIconColumnIndex=yr?1:0:so.expandIconColumnIndex>0&&yr&&(so.expandIconColumnIndex-=1),typeof so.indentSize!="number"&&(so.indentSize=typeof To=="number"?To:15);const ps=pe.useCallback(ul=>Ql(Us(ys(Es(ul)))),[Es,ys,Us]);let nu,Cs;if(Fr!==!1&&(Fo!=null&&Fo.total)){let ul;Fo.size?ul=Fo.size:ul=Hl==="small"||Hl==="middle"?"small":void 0;const wl=is=>pe.createElement(Qr.Z,Object.assign({},Fo,{className:Ve()(`${Ml}-pagination ${Ml}-pagination-${is}`,Fo.className),size:ul})),ms=fl==="rtl"?"left":"right",{position:Bl}=Fo;if(Bl!==null&&Array.isArray(Bl)){const is=Bl.find(ru=>ru.includes("top")),ws=Bl.find(ru=>ru.includes("bottom")),zs=Bl.every(ru=>`${ru}`=="none");!is&&!ws&&!zs&&(Cs=wl(ms)),is&&(nu=wl(is.toLowerCase().replace("top",""))),ws&&(Cs=wl(ws.toLowerCase().replace("bottom","")))}else Cs=wl(ms)}let Fs;typeof Sa=="boolean"?Fs={spinning:Sa}:typeof Sa=="object"&&(Fs=Object.assign({spinning:!0},Sa));const[ls,Ll]=Eu(Ml),[,Rl]=(0,ri.Z)(),Ps=Ve()(`${Ml}-wrapper`,sl==null?void 0:sl.className,{[`${Ml}-wrapper-rtl`]:fl==="rtl"},qt,an,Ll),Mu=Object.assign(Object.assign({},sl==null?void 0:sl.style),cn),Rs=Fa&&Fa.emptyText||(El==null?void 0:El("Table"))||pe.createElement(qo.Z,{componentName:"Table"}),Gs=Oa?ca:ii,Ru={},_c=pe.useMemo(()=>{const{fontSize:ul,lineHeight:wl,padding:ms,paddingXS:Bl,paddingSM:is}=Rl,ws=Math.floor(ul*wl);switch(Hl){case"large":return ms*2+ws;case"small":return Bl*2+ws;default:return is*2+ws}},[Rl,Hl]);return Oa&&(Ru.listItemHeight=_c),ls(pe.createElement("div",{ref:ot,className:Ps,style:Mu},pe.createElement(Ei.Z,Object.assign({spinning:!1},Fs),nu,pe.createElement(Gs,Object.assign({},Ru,_o,{columns:sa,direction:fl,expandable:so,prefixCls:Ml,className:Ve()({[`${Ml}-middle`]:Hl==="middle",[`${Ml}-small`]:Hl==="small",[`${Ml}-bordered`]:Un,[`${Ml}-empty`]:Il.length===0}),data:$l,rowKey:rl,rowClassName:Tl,emptyText:Rs,internalHooks:ye,internalRefs:Qa,transformColumns:ps})),Cs)))};var vc=pe.forwardRef(Tu);const sr=(Te,ot)=>{const Rt=pe.useRef(0);return Rt.current+=1,pe.createElement(vc,Object.assign({},Te,{ref:ot,_renderTimes:Rt.current}))},Ui=pe.forwardRef(sr);Ui.SELECTION_COLUMN=fo,Ui.EXPAND_COLUMN=E,Ui.SELECTION_ALL=no,Ui.SELECTION_INVERT=ja,Ui.SELECTION_NONE=Ao,Ui.Column=ki,Ui.ColumnGroup=Aa,Ui.Summary=Ge;var Co=Ui,Wa=Co},99313:function(An,tn,ne){"use strict";ne.d(tn,{default:function(){return jt}});var E=ne(99267),ye=ne(18785),Ee=ne(62772),Ye=ne(92310),Ce=ne.n(Ye),Se=ne(60499),pe=ne(18642),be=ne(85899),De=ne(72190),Pe=ne(43749),et=ne(42244),Fe=ne(59301),Ie=ne(49658),tt=ne(18929),ze=ne(77900),We=(0,Fe.createContext)(null),lt=Fe.forwardRef(function(Ue,yt){var ut=Ue.prefixCls,rt=Ue.className,_t=Ue.style,Qt=Ue.id,pn=Ue.active,sn=Ue.tabKey,Bn=Ue.children;return Fe.createElement("div",{id:Qt&&"".concat(Qt,"-panel-").concat(sn),role:"tabpanel",tabIndex:pn?0:-1,"aria-labelledby":Qt&&"".concat(Qt,"-tab-").concat(sn),"aria-hidden":!pn,style:_t,className:Ce()(ut,pn&&"".concat(ut,"-active"),rt),ref:yt},Bn)}),Xe=lt,Dt=["key","forceRender","style","className"];function dt(Ue){var yt=Ue.id,ut=Ue.activeKey,rt=Ue.animated,_t=Ue.tabPosition,Qt=Ue.destroyInactiveTabPane,pn=Fe.useContext(We),sn=pn.prefixCls,Bn=pn.tabs,Yn=rt.tabPane,cr="".concat(sn,"-tabpane");return Fe.createElement("div",{className:Ce()("".concat(sn,"-content-holder"))},Fe.createElement("div",{className:Ce()("".concat(sn,"-content"),"".concat(sn,"-content-").concat(_t),(0,pe.Z)({},"".concat(sn,"-content-animated"),Yn))},Bn.map(function($n){var en=$n.key,rn=$n.forceRender,Or=$n.style,kr=$n.className,Cr=(0,et.Z)($n,Dt),Dr=en===ut;return Fe.createElement(ze.default,(0,Se.Z)({key:en,visible:Dr,forceRender:rn,removeOnLeave:!!Qt,leavedClassName:"".concat(cr,"-hidden")},rt.tabPaneMotion),function(qr,br){var fi=qr.style,Jt=qr.className;return Fe.createElement(Xe,(0,Se.Z)({},Cr,{prefixCls:cr,id:yt,tabKey:en,animated:Yn,active:Dr,style:(0,be.Z)((0,be.Z)({},Or),fi),className:Ce()(kr,Jt),ref:br}))})})))}var Qe=ne(77654),Ze=ne(29301),Ae=ne(6089),Je=ne(8654),Re={width:0,height:0,left:0,top:0};function vt(Ue,yt,ut){return(0,Fe.useMemo)(function(){for(var rt,_t=new Map,Qt=yt.get((rt=Ue[0])===null||rt===void 0?void 0:rt.key)||Re,pn=Qt.left+Qt.width,sn=0;sn<Ue.length;sn+=1){var Bn=Ue[sn].key,Yn=yt.get(Bn);if(!Yn){var cr;Yn=yt.get((cr=Ue[sn-1])===null||cr===void 0?void 0:cr.key)||Re}var $n=_t.get(Bn)||(0,be.Z)({},Yn);$n.right=pn-$n.left-$n.width,_t.set(Bn,$n)}return _t},[Ue.map(function(rt){return rt.key}).join("_"),yt,ut])}function $e(Ue,yt){var ut=Fe.useRef(Ue),rt=Fe.useState({}),_t=(0,De.Z)(rt,2),Qt=_t[1];function pn(sn){var Bn=typeof sn=="function"?sn(ut.current):sn;Bn!==ut.current&&yt(Bn,ut.current),ut.current=Bn,Qt({})}return[ut.current,pn]}var mt=.1,Be=.01,xt=20,Ve=Math.pow(.995,xt);function Ot(Ue,yt){var ut=(0,Fe.useState)(),rt=(0,De.Z)(ut,2),_t=rt[0],Qt=rt[1],pn=(0,Fe.useState)(0),sn=(0,De.Z)(pn,2),Bn=sn[0],Yn=sn[1],cr=(0,Fe.useState)(0),$n=(0,De.Z)(cr,2),en=$n[0],rn=$n[1],Or=(0,Fe.useState)(),kr=(0,De.Z)(Or,2),Cr=kr[0],Dr=kr[1],qr=(0,Fe.useRef)();function br(kn){var Vn=kn.touches[0],Pn=Vn.screenX,fr=Vn.screenY;Qt({x:Pn,y:fr}),window.clearInterval(qr.current)}function fi(kn){if(_t){kn.preventDefault();var Vn=kn.touches[0],Pn=Vn.screenX,fr=Vn.screenY;Qt({x:Pn,y:fr});var Pr=Pn-_t.x,Gr=fr-_t.y;yt(Pr,Gr);var pi=Date.now();Yn(pi),rn(pi-Bn),Dr({x:Pr,y:Gr})}}function Jt(){if(_t&&(Qt(null),Dr(null),Cr)){var kn=Cr.x/en,Vn=Cr.y/en,Pn=Math.abs(kn),fr=Math.abs(Vn);if(Math.max(Pn,fr)<mt)return;var Pr=kn,Gr=Vn;qr.current=window.setInterval(function(){if(Math.abs(Pr)<Be&&Math.abs(Gr)<Be){window.clearInterval(qr.current);return}Pr*=Ve,Gr*=Ve,yt(Pr*xt,Gr*xt)},xt)}}var On=(0,Fe.useRef)();function Hn(kn){var Vn=kn.deltaX,Pn=kn.deltaY,fr=0,Pr=Math.abs(Vn),Gr=Math.abs(Pn);Pr===Gr?fr=On.current==="x"?Vn:Pn:Pr>Gr?(fr=Vn,On.current="x"):(fr=Pn,On.current="y"),yt(-fr,-fr)&&kn.preventDefault()}var qn=(0,Fe.useRef)(null);qn.current={onTouchStart:br,onTouchMove:fi,onTouchEnd:Jt,onWheel:Hn},Fe.useEffect(function(){function kn(Pr){qn.current.onTouchStart(Pr)}function Vn(Pr){qn.current.onTouchMove(Pr)}function Pn(Pr){qn.current.onTouchEnd(Pr)}function fr(Pr){qn.current.onWheel(Pr)}return document.addEventListener("touchmove",Vn,{passive:!1}),document.addEventListener("touchend",Pn,{passive:!1}),Ue.current.addEventListener("touchstart",kn,{passive:!1}),Ue.current.addEventListener("wheel",fr),function(){document.removeEventListener("touchmove",Vn),document.removeEventListener("touchend",Pn)}},[])}var nt=ne(34280);function wt(Ue){var yt=(0,Fe.useState)(0),ut=(0,De.Z)(yt,2),rt=ut[0],_t=ut[1],Qt=(0,Fe.useRef)(0),pn=(0,Fe.useRef)();return pn.current=Ue,(0,nt.o)(function(){var sn;(sn=pn.current)===null||sn===void 0||sn.call(pn)},[rt]),function(){Qt.current===rt&&(Qt.current+=1,_t(Qt.current))}}function Mt(Ue){var yt=(0,Fe.useRef)([]),ut=(0,Fe.useState)({}),rt=(0,De.Z)(ut,2),_t=rt[1],Qt=(0,Fe.useRef)(typeof Ue=="function"?Ue():Ue),pn=wt(function(){var Bn=Qt.current;yt.current.forEach(function(Yn){Bn=Yn(Bn)}),yt.current=[],Qt.current=Bn,_t({})});function sn(Bn){yt.current.push(Bn),pn()}return[Qt.current,sn]}var at={width:0,height:0,left:0,top:0,right:0};function Le(Ue,yt,ut,rt,_t,Qt,pn){var sn=pn.tabs,Bn=pn.tabPosition,Yn=pn.rtl,cr,$n,en;return["top","bottom"].includes(Bn)?(cr="width",$n=Yn?"right":"left",en=Math.abs(ut)):(cr="height",$n="top",en=-ut),(0,Fe.useMemo)(function(){if(!sn.length)return[0,0];for(var rn=sn.length,Or=rn,kr=0;kr<rn;kr+=1){var Cr=Ue.get(sn[kr].key)||at;if(Cr[$n]+Cr[cr]>en+yt){Or=kr-1;break}}for(var Dr=0,qr=rn-1;qr>=0;qr-=1){var br=Ue.get(sn[qr].key)||at;if(br[$n]<en){Dr=qr+1;break}}return Dr>=Or?[0,0]:[Dr,Or]},[Ue,yt,rt,_t,Qt,en,Bn,sn.map(function(rn){return rn.key}).join("_"),Yn])}function Me(Ue){var yt;return Ue instanceof Map?(yt={},Ue.forEach(function(ut,rt){yt[rt]=ut})):yt=Ue,JSON.stringify(yt)}var st="TABS_DQ";function Ht(Ue){return String(Ue).replace(/"/g,st)}function Tt(Ue,yt,ut,rt){return!(!ut||rt||Ue===!1||Ue===void 0&&(yt===!1||yt===null))}function ct(Ue,yt){var ut=Ue.prefixCls,rt=Ue.editable,_t=Ue.locale,Qt=Ue.style;return!rt||rt.showAdd===!1?null:Fe.createElement("button",{ref:yt,type:"button",className:"".concat(ut,"-nav-add"),style:Qt,"aria-label":(_t==null?void 0:_t.addAriaLabel)||"Add tab",onClick:function(sn){rt.onEdit("add",{event:sn})}},rt.addIcon||"+")}var Ct=Fe.forwardRef(ct),Zt=Fe.forwardRef(function(Ue,yt){var ut=Ue.position,rt=Ue.prefixCls,_t=Ue.extra;if(!_t)return null;var Qt,pn={};return(0,Pe.Z)(_t)==="object"&&!Fe.isValidElement(_t)?pn=_t:pn.right=_t,ut==="right"&&(Qt=pn.right),ut==="left"&&(Qt=pn.left),Qt?Fe.createElement("div",{className:"".concat(rt,"-extra-content"),ref:yt},Qt):null}),gn=Zt,$t=ne(31561),Wt=ne(15285),on=ne(10228);function dn(Ue,yt){var ut=Ue.prefixCls,rt=Ue.id,_t=Ue.tabs,Qt=Ue.locale,pn=Ue.mobile,sn=Ue.moreIcon,Bn=sn===void 0?"More":sn,Yn=Ue.moreTransitionName,cr=Ue.style,$n=Ue.className,en=Ue.editable,rn=Ue.tabBarGutter,Or=Ue.rtl,kr=Ue.removeAriaLabel,Cr=Ue.onTabClick,Dr=Ue.getPopupContainer,qr=Ue.popupClassName,br=(0,Fe.useState)(!1),fi=(0,De.Z)(br,2),Jt=fi[0],On=fi[1],Hn=(0,Fe.useState)(null),qn=(0,De.Z)(Hn,2),kn=qn[0],Vn=qn[1],Pn="".concat(rt,"-more-popup"),fr="".concat(ut,"-dropdown"),Pr=kn!==null?"".concat(Pn,"-").concat(kn):null,Gr=Qt==null?void 0:Qt.dropdownAriaLabel;function pi(Gi,Bi){Gi.preventDefault(),Gi.stopPropagation(),en.onEdit("remove",{key:Bi,event:Gi})}var gi=Fe.createElement(Wt.ZP,{onClick:function(Bi){var Di=Bi.key,zr=Bi.domEvent;Cr(Di,zr),On(!1)},prefixCls:"".concat(fr,"-menu"),id:Pn,tabIndex:-1,role:"listbox","aria-activedescendant":Pr,selectedKeys:[kn],"aria-label":Gr!==void 0?Gr:"expanded dropdown"},_t.map(function(Gi){var Bi=Gi.closable,Di=Gi.disabled,zr=Gi.closeIcon,li=Gi.key,Ii=Gi.label,ya=Tt(Bi,zr,en,Di);return Fe.createElement(Wt.sN,{key:li,id:"".concat(Pn,"-").concat(li),role:"option","aria-controls":rt&&"".concat(rt,"-panel-").concat(li),disabled:Di},Fe.createElement("span",null,Ii),ya&&Fe.createElement("button",{type:"button","aria-label":kr||"remove",tabIndex:0,className:"".concat(fr,"-menu-item-remove"),onClick:function(jr){jr.stopPropagation(),pi(jr,li)}},zr||en.removeIcon||"\xD7"))}));function Ri(Gi){for(var Bi=_t.filter(function(ya){return!ya.disabled}),Di=Bi.findIndex(function(ya){return ya.key===kn})||0,zr=Bi.length,li=0;li<zr;li+=1){Di=(Di+Gi+zr)%zr;var Ii=Bi[Di];if(!Ii.disabled){Vn(Ii.key);return}}}function Si(Gi){var Bi=Gi.which;if(!Jt){[on.Z.DOWN,on.Z.SPACE,on.Z.ENTER].includes(Bi)&&(On(!0),Gi.preventDefault());return}switch(Bi){case on.Z.UP:Ri(-1),Gi.preventDefault();break;case on.Z.DOWN:Ri(1),Gi.preventDefault();break;case on.Z.ESC:On(!1);break;case on.Z.SPACE:case on.Z.ENTER:kn!==null&&Cr(kn,Gi);break}}(0,Fe.useEffect)(function(){var Gi=document.getElementById(Pr);Gi&&Gi.scrollIntoView&&Gi.scrollIntoView(!1)},[kn]),(0,Fe.useEffect)(function(){Jt||Vn(null)},[Jt]);var wi=(0,pe.Z)({},Or?"marginRight":"marginLeft",rn);_t.length||(wi.visibility="hidden",wi.order=1);var Zi=Ce()((0,pe.Z)({},"".concat(fr,"-rtl"),Or)),ji=pn?null:Fe.createElement($t.Z,{prefixCls:fr,overlay:gi,trigger:["hover"],visible:_t.length?Jt:!1,transitionName:Yn,onVisibleChange:On,overlayClassName:Ce()(Zi,qr),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Dr},Fe.createElement("button",{type:"button",className:"".concat(ut,"-nav-more"),style:wi,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Pn,id:"".concat(rt,"-more"),"aria-expanded":Jt,onKeyDown:Si},Bn));return Fe.createElement("div",{className:Ce()("".concat(ut,"-nav-operations"),$n),style:cr,ref:yt},ji,Fe.createElement(Ct,{prefixCls:ut,locale:Qt,editable:en}))}var ln=Fe.memo(Fe.forwardRef(dn),function(Ue,yt){return yt.tabMoving});function xe(Ue){var yt,ut=Ue.prefixCls,rt=Ue.id,_t=Ue.active,Qt=Ue.tab,pn=Qt.key,sn=Qt.label,Bn=Qt.disabled,Yn=Qt.closeIcon,cr=Ue.closable,$n=Ue.renderWrapper,en=Ue.removeAriaLabel,rn=Ue.editable,Or=Ue.onClick,kr=Ue.onFocus,Cr=Ue.style,Dr="".concat(ut,"-tab"),qr=Tt(cr,Yn,rn,Bn);function br(On){Bn||Or(On)}function fi(On){On.preventDefault(),On.stopPropagation(),rn.onEdit("remove",{key:pn,event:On})}var Jt=Fe.createElement("div",{key:pn,"data-node-key":Ht(pn),className:Ce()(Dr,(yt={},(0,pe.Z)(yt,"".concat(Dr,"-with-remove"),qr),(0,pe.Z)(yt,"".concat(Dr,"-active"),_t),(0,pe.Z)(yt,"".concat(Dr,"-disabled"),Bn),yt)),style:Cr,onClick:br},Fe.createElement("div",{role:"tab","aria-selected":_t,id:rt&&"".concat(rt,"-tab-").concat(pn),className:"".concat(Dr,"-btn"),"aria-controls":rt&&"".concat(rt,"-panel-").concat(pn),"aria-disabled":Bn,tabIndex:Bn?null:0,onClick:function(Hn){Hn.stopPropagation(),br(Hn)},onKeyDown:function(Hn){[on.Z.SPACE,on.Z.ENTER].includes(Hn.which)&&(Hn.preventDefault(),br(Hn))},onFocus:kr},sn),qr&&Fe.createElement("button",{type:"button","aria-label":en||"remove",tabIndex:0,className:"".concat(Dr,"-remove"),onClick:function(Hn){Hn.stopPropagation(),fi(Hn)}},Yn||rn.removeIcon||"\xD7"));return $n?$n(Jt):Jt}var fe=xe,ue=ne(16089),he=function(yt){var ut=yt.activeTabOffset,rt=yt.horizontal,_t=yt.rtl,Qt=yt.indicatorSize,pn=(0,Fe.useState)(),sn=(0,De.Z)(pn,2),Bn=sn[0],Yn=sn[1],cr=(0,Fe.useRef)(),$n=function(Or){return typeof Qt=="function"?Qt(Or):typeof Qt=="number"?Qt:Or};function en(){ue.Z.cancel(cr.current)}return(0,Fe.useEffect)(function(){var rn={};return ut&&(rt?(_t?(rn.right=ut.right+ut.width/2,rn.transform="translateX(50%)"):(rn.left=ut.left+ut.width/2,rn.transform="translateX(-50%)"),rn.width=$n(ut.width)):(rn.top=ut.top+ut.height/2,rn.transform="translateY(-50%)",rn.height=$n(ut.height))),en(),cr.current=(0,ue.Z)(function(){Yn(rn)}),en},[ut,rt,_t,Qt]),{style:Bn}},me=he,oe=function(yt){var ut=yt.current||{},rt=ut.offsetWidth,_t=rt===void 0?0:rt,Qt=ut.offsetHeight,pn=Qt===void 0?0:Qt;return[_t,pn]},Ne=function(yt,ut){return yt[ut?0:1]};function At(Ue,yt){var ut,rt=Fe.useContext(We),_t=rt.prefixCls,Qt=rt.tabs,pn=Ue.className,sn=Ue.style,Bn=Ue.id,Yn=Ue.animated,cr=Ue.activeKey,$n=Ue.rtl,en=Ue.extra,rn=Ue.editable,Or=Ue.locale,kr=Ue.tabPosition,Cr=Ue.tabBarGutter,Dr=Ue.children,qr=Ue.onTabClick,br=Ue.onTabScroll,fi=Ue.indicatorSize,Jt=(0,Fe.useRef)(),On=(0,Fe.useRef)(),Hn=(0,Fe.useRef)(),qn=(0,Fe.useRef)(),kn=(0,Fe.useRef)(),Vn=(0,Fe.useRef)(),Pn=(0,Fe.useRef)(),fr=kr==="top"||kr==="bottom",Pr=$e(0,function(Ka,Yi){fr&&br&&br({direction:Ka>Yi?"left":"right"})}),Gr=(0,De.Z)(Pr,2),pi=Gr[0],gi=Gr[1],Ri=$e(0,function(Ka,Yi){!fr&&br&&br({direction:Ka>Yi?"top":"bottom"})}),Si=(0,De.Z)(Ri,2),wi=Si[0],Zi=Si[1],ji=(0,Fe.useState)([0,0]),Gi=(0,De.Z)(ji,2),Bi=Gi[0],Di=Gi[1],zr=(0,Fe.useState)([0,0]),li=(0,De.Z)(zr,2),Ii=li[0],ya=li[1],vi=(0,Fe.useState)([0,0]),jr=(0,De.Z)(vi,2),Ir=jr[0],Vi=jr[1],xi=(0,Fe.useState)([0,0]),na=(0,De.Z)(xi,2),ba=na[0],oa=na[1],xa=Mt(new Map),Na=(0,De.Z)(xa,2),Po=Na[0],ki=Na[1],Hi=vt(Qt,Po,Ii[0]),Aa=Ne(Bi,fr),Ma=Ne(Ii,fr),lo=Ne(Ir,fr),hl=Ne(ba,fr),qo=Aa<Ma+lo,co=qo?Aa-hl:Aa-lo,Ho="".concat(_t,"-nav-operations-hidden"),Vo=0,Qr=0;fr&&$n?(Vo=0,Qr=Math.max(0,Ma-co)):(Vo=Math.min(0,co-Ma),Qr=0);function Ei(Ka){return Ka<Vo?Vo:Ka>Qr?Qr:Ka}var ri=(0,Fe.useRef)(),hi=(0,Fe.useState)(),Ta=(0,De.Z)(hi,2),vo=Ta[0],go=Ta[1];function So(){go(Date.now())}function yo(){window.clearTimeout(ri.current)}Ot(qn,function(Ka,Yi){function pa(eo,ro){eo(function(xo){var Wl=Ei(xo+ro);return Wl})}return qo?(fr?pa(gi,Ka):pa(Zi,Yi),yo(),So(),!0):!1}),(0,Fe.useEffect)(function(){return yo(),vo&&(ri.current=window.setTimeout(function(){go(0)},100)),yo},[vo]);var Lo=Le(Hi,co,fr?pi:wi,Ma,lo,hl,(0,be.Z)((0,be.Z)({},Ue),{},{tabs:Qt})),nl=(0,De.Z)(Lo,2),ea=nl[0],gl=nl[1],ol=(0,Ae.Z)(function(){var Ka=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cr,Yi=Hi.get(Ka)||{width:0,height:0,left:0,right:0,top:0};if(fr){var pa=pi;$n?Yi.right<pi?pa=Yi.right:Yi.right+Yi.width>pi+co&&(pa=Yi.right+Yi.width-co):Yi.left<-pi?pa=-Yi.left:Yi.left+Yi.width>-pi+co&&(pa=-(Yi.left+Yi.width-co)),Zi(0),gi(Ei(pa))}else{var eo=wi;Yi.top<-wi?eo=-Yi.top:Yi.top+Yi.height>-wi+co&&(eo=-(Yi.top+Yi.height-co)),gi(0),Zi(Ei(eo))}}),pl={};kr==="top"||kr==="bottom"?pl[$n?"marginRight":"marginLeft"]=Cr:pl.marginTop=Cr;var Xl=Qt.map(function(Ka,Yi){var pa=Ka.key;return Fe.createElement(fe,{id:Bn,prefixCls:_t,key:pa,tab:Ka,style:Yi===0?void 0:pl,closable:Ka.closable,editable:rn,active:pa===cr,renderWrapper:Dr,removeAriaLabel:Or==null?void 0:Or.removeAriaLabel,onClick:function(ro){qr(pa,ro)},onFocus:function(){ol(pa),So(),qn.current&&($n||(qn.current.scrollLeft=0),qn.current.scrollTop=0)}})}),hr=function(){return ki(function(){var Yi=new Map;return Qt.forEach(function(pa){var eo,ro=pa.key,xo=(eo=kn.current)===null||eo===void 0?void 0:eo.querySelector('[data-node-key="'.concat(Ht(ro),'"]'));xo&&Yi.set(ro,{width:xo.offsetWidth,height:xo.offsetHeight,left:xo.offsetLeft,top:xo.offsetTop})}),Yi})};(0,Fe.useEffect)(function(){hr()},[Qt.map(function(Ka){return Ka.key}).join("_")]);var Gn=wt(function(){var Ka=oe(Jt),Yi=oe(On),pa=oe(Hn);Di([Ka[0]-Yi[0]-pa[0],Ka[1]-Yi[1]-pa[1]]);var eo=oe(Pn);Vi(eo);var ro=oe(Vn);oa(ro);var xo=oe(kn);ya([xo[0]-eo[0],xo[1]-eo[1]]),hr()}),gr=Qt.slice(0,ea),Vr=Qt.slice(gl+1),Xr=[].concat((0,Qe.Z)(gr),(0,Qe.Z)(Vr)),si=Hi.get(cr),pr=me({activeTabOffset:si,horizontal:fr,rtl:$n,indicatorSize:fi}),Jr=pr.style;(0,Fe.useEffect)(function(){ol()},[cr,Vo,Qr,Me(si),Me(Hi),fr]),(0,Fe.useEffect)(function(){Gn()},[$n]);var Li=!!Xr.length,Oi="".concat(_t,"-nav-wrap"),la,mi,Pa,qa;return fr?$n?(mi=pi>0,la=pi!==Qr):(la=pi<0,mi=pi!==Vo):(Pa=wi<0,qa=wi!==Vo),Fe.createElement(Ze.Z,{onResize:Gn},Fe.createElement("div",{ref:(0,Je.x1)(yt,Jt),role:"tablist",className:Ce()("".concat(_t,"-nav"),pn),style:sn,onKeyDown:function(){So()}},Fe.createElement(gn,{ref:On,position:"left",extra:en,prefixCls:_t}),Fe.createElement(Ze.Z,{onResize:Gn},Fe.createElement("div",{className:Ce()(Oi,(ut={},(0,pe.Z)(ut,"".concat(Oi,"-ping-left"),la),(0,pe.Z)(ut,"".concat(Oi,"-ping-right"),mi),(0,pe.Z)(ut,"".concat(Oi,"-ping-top"),Pa),(0,pe.Z)(ut,"".concat(Oi,"-ping-bottom"),qa),ut)),ref:qn},Fe.createElement(Ze.Z,{onResize:Gn},Fe.createElement("div",{ref:kn,className:"".concat(_t,"-nav-list"),style:{transform:"translate(".concat(pi,"px, ").concat(wi,"px)"),transition:vo?"none":void 0}},Xl,Fe.createElement(Ct,{ref:Pn,prefixCls:_t,locale:Or,editable:rn,style:(0,be.Z)((0,be.Z)({},Xl.length===0?void 0:pl),{},{visibility:Li?"hidden":null})}),Fe.createElement("div",{className:Ce()("".concat(_t,"-ink-bar"),(0,pe.Z)({},"".concat(_t,"-ink-bar-animated"),Yn.inkBar)),style:Jr}))))),Fe.createElement(ln,(0,Se.Z)({},Ue,{removeAriaLabel:Or==null?void 0:Or.removeAriaLabel,ref:Vn,prefixCls:_t,tabs:Xr,className:!Li&&Ho,tabMoving:!!vo})),Fe.createElement(gn,{ref:Hn,position:"right",extra:en,prefixCls:_t})))}var Ge=Fe.forwardRef(At),je=["renderTabBar"],Pt=["label","key"];function Et(Ue){var yt=Ue.renderTabBar,ut=(0,et.Z)(Ue,je),rt=Fe.useContext(We),_t=rt.tabs;if(yt){var Qt=(0,be.Z)((0,be.Z)({},ut),{},{panes:_t.map(function(pn){var sn=pn.label,Bn=pn.key,Yn=(0,et.Z)(pn,Pt);return Fe.createElement(Xe,(0,Se.Z)({tab:sn,key:Bn,tabKey:Bn},Yn))})});return yt(Qt,Ge)}return Fe.createElement(Ge,ut)}var ht=ne(48736);function Kt(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},yt;return Ue===!1?yt={inkBar:!1,tabPane:!1}:Ue===!0?yt={inkBar:!0,tabPane:!1}:yt=(0,be.Z)({inkBar:!0},(0,Pe.Z)(Ue)==="object"?Ue:{}),yt.tabPaneMotion&&yt.tabPane===void 0&&(yt.tabPane=!0),!yt.tabPaneMotion&&yt.tabPane&&(yt.tabPane=!1),yt}var vn=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],kt=0;function Ut(Ue,yt){var ut,rt=Ue.id,_t=Ue.prefixCls,Qt=_t===void 0?"rc-tabs":_t,pn=Ue.className,sn=Ue.items,Bn=Ue.direction,Yn=Ue.activeKey,cr=Ue.defaultActiveKey,$n=Ue.editable,en=Ue.animated,rn=Ue.tabPosition,Or=rn===void 0?"top":rn,kr=Ue.tabBarGutter,Cr=Ue.tabBarStyle,Dr=Ue.tabBarExtraContent,qr=Ue.locale,br=Ue.moreIcon,fi=Ue.moreTransitionName,Jt=Ue.destroyInactiveTabPane,On=Ue.renderTabBar,Hn=Ue.onChange,qn=Ue.onTabClick,kn=Ue.onTabScroll,Vn=Ue.getPopupContainer,Pn=Ue.popupClassName,fr=Ue.indicatorSize,Pr=(0,et.Z)(Ue,vn),Gr=Fe.useMemo(function(){return(sn||[]).filter(function(oa){return oa&&(0,Pe.Z)(oa)==="object"&&"key"in oa})},[sn]),pi=Bn==="rtl",gi=Kt(en),Ri=(0,Fe.useState)(!1),Si=(0,De.Z)(Ri,2),wi=Si[0],Zi=Si[1];(0,Fe.useEffect)(function(){Zi((0,Ie.Z)())},[]);var ji=(0,tt.Z)(function(){var oa;return(oa=Gr[0])===null||oa===void 0?void 0:oa.key},{value:Yn,defaultValue:cr}),Gi=(0,De.Z)(ji,2),Bi=Gi[0],Di=Gi[1],zr=(0,Fe.useState)(function(){return Gr.findIndex(function(oa){return oa.key===Bi})}),li=(0,De.Z)(zr,2),Ii=li[0],ya=li[1];(0,Fe.useEffect)(function(){var oa=Gr.findIndex(function(Na){return Na.key===Bi});if(oa===-1){var xa;oa=Math.max(0,Math.min(Ii,Gr.length-1)),Di((xa=Gr[oa])===null||xa===void 0?void 0:xa.key)}ya(oa)},[Gr.map(function(oa){return oa.key}).join("_"),Bi,Ii]);var vi=(0,tt.Z)(null,{value:rt}),jr=(0,De.Z)(vi,2),Ir=jr[0],Vi=jr[1];(0,Fe.useEffect)(function(){rt||(Vi("rc-tabs-".concat(kt)),kt+=1)},[]);function xi(oa,xa){qn==null||qn(oa,xa);var Na=oa!==Bi;Di(oa),Na&&(Hn==null||Hn(oa))}var na={id:Ir,activeKey:Bi,animated:gi,tabPosition:Or,rtl:pi,mobile:wi},ba=(0,be.Z)((0,be.Z)({},na),{},{editable:$n,locale:qr,moreIcon:br,moreTransitionName:fi,tabBarGutter:kr,onTabClick:xi,onTabScroll:kn,extra:Dr,style:Cr,panes:null,getPopupContainer:Vn,popupClassName:Pn,indicatorSize:fr});return Fe.createElement(We.Provider,{value:{tabs:Gr,prefixCls:Qt}},Fe.createElement("div",(0,Se.Z)({ref:yt,id:rt,className:Ce()(Qt,"".concat(Qt,"-").concat(Or),(ut={},(0,pe.Z)(ut,"".concat(Qt,"-mobile"),wi),(0,pe.Z)(ut,"".concat(Qt,"-editable"),$n),(0,pe.Z)(ut,"".concat(Qt,"-rtl"),pi),ut),pn)},Pr),Fe.createElement(Et,(0,Se.Z)({},ba,{renderTabBar:On})),Fe.createElement(dt,(0,Se.Z)({destroyInactiveTabPane:Jt},na,{animated:gi}))))}var yn=Fe.forwardRef(Ut),Bt=yn,Ke=Bt,gt=ne(36355),Vt=ne(19716),Xt=()=>null,Mn=ne(62892);const Tn={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Rn(Ue){let yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},ut;return yt===!1?ut={inkBar:!1,tabPane:!1}:yt===!0?ut={inkBar:!0,tabPane:!0}:ut=Object.assign({inkBar:!0},typeof yt=="object"?yt:{}),ut.tabPane&&(ut.tabPaneMotion=Object.assign(Object.assign({},Tn),{motionName:(0,Mn.m)(Ue,"switch")})),ut}var ur=ne(11592),vr=function(Ue,yt){var ut={};for(var rt in Ue)Object.prototype.hasOwnProperty.call(Ue,rt)&&yt.indexOf(rt)<0&&(ut[rt]=Ue[rt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,rt=Object.getOwnPropertySymbols(Ue);_t<rt.length;_t++)yt.indexOf(rt[_t])<0&&Object.prototype.propertyIsEnumerable.call(Ue,rt[_t])&&(ut[rt[_t]]=Ue[rt[_t]]);return ut};function dr(Ue){return Ue.filter(yt=>yt)}function mn(Ue,yt){if(Ue)return Ue;const ut=(0,ur.Z)(yt).map(rt=>{if(Fe.isValidElement(rt)){const{key:_t,props:Qt}=rt,pn=Qt||{},{tab:sn}=pn,Bn=vr(pn,["tab"]);return Object.assign(Object.assign({key:String(_t)},Bn),{label:sn})}return null});return dr(ut)}var zn=ne(17313),jn=ne(83116),Xn=ne(37613),Sr=ne(13826),ar=Ue=>{const{componentCls:yt,motionDurationSlow:ut}=Ue;return[{[yt]:{[`${yt}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${ut}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${ut}`}}}}},[(0,Sr.oN)(Ue,"slide-up"),(0,Sr.oN)(Ue,"slide-down")]]};const Zn=Ue=>{const{componentCls:yt,tabsCardPadding:ut,cardBg:rt,cardGutter:_t,colorBorderSecondary:Qt,itemSelectedColor:pn}=Ue;return{[`${yt}-card`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab`]:{margin:0,padding:ut,background:rt,border:`${Ue.lineWidth}px ${Ue.lineType} ${Qt}`,transition:`all ${Ue.motionDurationSlow} ${Ue.motionEaseInOut}`},[`${yt}-tab-active`]:{color:pn,background:Ue.colorBgContainer},[`${yt}-ink-bar`]:{visibility:"hidden"}},[`&${yt}-top, &${yt}-bottom`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab + ${yt}-tab`]:{marginLeft:{_skip_check_:!0,value:`${_t}px`}}}},[`&${yt}-top`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab`]:{borderRadius:`${Ue.borderRadiusLG}px ${Ue.borderRadiusLG}px 0 0`},[`${yt}-tab-active`]:{borderBottomColor:Ue.colorBgContainer}}},[`&${yt}-bottom`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab`]:{borderRadius:`0 0 ${Ue.borderRadiusLG}px ${Ue.borderRadiusLG}px`},[`${yt}-tab-active`]:{borderTopColor:Ue.colorBgContainer}}},[`&${yt}-left, &${yt}-right`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab + ${yt}-tab`]:{marginTop:`${_t}px`}}},[`&${yt}-left`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ue.borderRadiusLG}px 0 0 ${Ue.borderRadiusLG}px`}},[`${yt}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Ue.colorBgContainer}}}},[`&${yt}-right`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ue.borderRadiusLG}px ${Ue.borderRadiusLG}px 0`}},[`${yt}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Ue.colorBgContainer}}}}}}},Wr=Ue=>{const{componentCls:yt,itemHoverColor:ut,dropdownEdgeChildVerticalPadding:rt}=Ue;return{[`${yt}-dropdown`]:Object.assign(Object.assign({},(0,zn.Wf)(Ue)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ue.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${yt}-dropdown-menu`]:{maxHeight:Ue.tabsDropdownHeight,margin:0,padding:`${rt}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Ue.colorBgContainer,backgroundClip:"padding-box",borderRadius:Ue.borderRadiusLG,outline:"none",boxShadow:Ue.boxShadowSecondary,"&-item":Object.assign(Object.assign({},zn.vS),{display:"flex",alignItems:"center",minWidth:Ue.tabsDropdownWidth,margin:0,padding:`${Ue.paddingXXS}px ${Ue.paddingSM}px`,color:Ue.colorText,fontWeight:"normal",fontSize:Ue.fontSize,lineHeight:Ue.lineHeight,cursor:"pointer",transition:`all ${Ue.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Ue.marginSM},color:Ue.colorTextDescription,fontSize:Ue.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:ut}},"&:hover":{background:Ue.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Ue.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Gt=Ue=>{const{componentCls:yt,margin:ut,colorBorderSecondary:rt,horizontalMargin:_t,verticalItemPadding:Qt,verticalItemMargin:pn}=Ue;return{[`${yt}-top, ${yt}-bottom`]:{flexDirection:"column",[`> ${yt}-nav, > div > ${yt}-nav`]:{margin:_t,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ue.lineWidth}px ${Ue.lineType} ${rt}`,content:"''"},[`${yt}-ink-bar`]:{height:Ue.lineWidthBold,"&-animated":{transition:`width ${Ue.motionDurationSlow}, left ${Ue.motionDurationSlow},
|
|
|
right ${Ue.motionDurationSlow}`}},[`${yt}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Ue.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Ue.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Ue.boxShadowTabsOverflowRight},[`&${yt}-nav-wrap-ping-left::before`]:{opacity:1},[`&${yt}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${yt}-top`]:{[`> ${yt}-nav,
|
|
|
> div > ${yt}-nav`]:{"&::before":{bottom:0},[`${yt}-ink-bar`]:{bottom:0}}},[`${yt}-bottom`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{order:1,marginTop:`${ut}px`,marginBottom:0,"&::before":{top:0},[`${yt}-ink-bar`]:{top:0}},[`> ${yt}-content-holder, > div > ${yt}-content-holder`]:{order:0}},[`${yt}-left, ${yt}-right`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{flexDirection:"column",minWidth:Ue.controlHeight*1.25,[`${yt}-tab`]:{padding:Qt,textAlign:"center"},[`${yt}-tab + ${yt}-tab`]:{margin:pn},[`${yt}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Ue.controlHeight},"&::before":{top:0,boxShadow:Ue.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Ue.boxShadowTabsOverflowBottom},[`&${yt}-nav-wrap-ping-top::before`]:{opacity:1},[`&${yt}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${yt}-ink-bar`]:{width:Ue.lineWidthBold,"&-animated":{transition:`height ${Ue.motionDurationSlow}, top ${Ue.motionDurationSlow}`}},[`${yt}-nav-list, ${yt}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${yt}-left`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${yt}-content-holder, > div > ${yt}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Ue.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Ue.lineWidth}px ${Ue.lineType} ${Ue.colorBorder}`},[`> ${yt}-content > ${yt}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Ue.paddingLG}}}},[`${yt}-right`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{order:1,[`${yt}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${yt}-content-holder, > div > ${yt}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Ue.lineWidth},borderRight:{_skip_check_:!0,value:`${Ue.lineWidth}px ${Ue.lineType} ${Ue.colorBorder}`},[`> ${yt}-content > ${yt}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Ue.paddingLG}}}}}},or=Ue=>{const{componentCls:yt,cardPaddingSM:ut,cardPaddingLG:rt,horizontalItemPaddingSM:_t,horizontalItemPaddingLG:Qt}=Ue;return{[yt]:{"&-small":{[`> ${yt}-nav`]:{[`${yt}-tab`]:{padding:_t,fontSize:Ue.titleFontSizeSM}}},"&-large":{[`> ${yt}-nav`]:{[`${yt}-tab`]:{padding:Qt,fontSize:Ue.titleFontSizeLG}}}},[`${yt}-card`]:{[`&${yt}-small`]:{[`> ${yt}-nav`]:{[`${yt}-tab`]:{padding:ut}},[`&${yt}-bottom`]:{[`> ${yt}-nav ${yt}-tab`]:{borderRadius:`0 0 ${Ue.borderRadius}px ${Ue.borderRadius}px`}},[`&${yt}-top`]:{[`> ${yt}-nav ${yt}-tab`]:{borderRadius:`${Ue.borderRadius}px ${Ue.borderRadius}px 0 0`}},[`&${yt}-right`]:{[`> ${yt}-nav ${yt}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ue.borderRadius}px ${Ue.borderRadius}px 0`}}},[`&${yt}-left`]:{[`> ${yt}-nav ${yt}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ue.borderRadius}px 0 0 ${Ue.borderRadius}px`}}}},[`&${yt}-large`]:{[`> ${yt}-nav`]:{[`${yt}-tab`]:{padding:rt}}}}}},er=Ue=>{const{componentCls:yt,itemActiveColor:ut,itemHoverColor:rt,iconCls:_t,tabsHorizontalItemMargin:Qt,horizontalItemPadding:pn,itemSelectedColor:sn,itemColor:Bn}=Ue,Yn=`${yt}-tab`;return{[Yn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:pn,fontSize:Ue.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Bn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:ut}},(0,zn.Qy)(Ue)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Ue.marginXXS},marginLeft:{_skip_check_:!0,value:Ue.marginXS},color:Ue.colorTextDescription,fontSize:Ue.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Ue.motionDurationSlow}`,"&:hover":{color:Ue.colorTextHeading}},"&:hover":{color:rt},[`&${Yn}-active ${Yn}-btn`]:{color:sn,textShadow:Ue.tabsActiveTextShadow},[`&${Yn}-disabled`]:{color:Ue.colorTextDisabled,cursor:"not-allowed"},[`&${Yn}-disabled ${Yn}-btn, &${Yn}-disabled ${yt}-remove`]:{"&:focus, &:active":{color:Ue.colorTextDisabled}},[`& ${Yn}-remove ${_t}`]:{margin:0},[_t]:{marginRight:{_skip_check_:!0,value:Ue.marginSM}}},[`${Yn} + ${Yn}`]:{margin:{_skip_check_:!0,value:Qt}}}},Kn=Ue=>{const{componentCls:yt,tabsHorizontalItemMarginRTL:ut,iconCls:rt,cardGutter:_t}=Ue;return{[`${yt}-rtl`]:{direction:"rtl",[`${yt}-nav`]:{[`${yt}-tab`]:{margin:{_skip_check_:!0,value:ut},[`${yt}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[rt]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Ue.marginSM}px`}},[`${yt}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Ue.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Ue.marginXXS}px`},[rt]:{margin:0}}}},[`&${yt}-left`]:{[`> ${yt}-nav`]:{order:1},[`> ${yt}-content-holder`]:{order:0}},[`&${yt}-right`]:{[`> ${yt}-nav`]:{order:0},[`> ${yt}-content-holder`]:{order:1}},[`&${yt}-card${yt}-top, &${yt}-card${yt}-bottom`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab + ${yt}-tab`]:{marginRight:{_skip_check_:!0,value:_t},marginLeft:{_skip_check_:!0,value:0}}}}},[`${yt}-dropdown-rtl`]:{direction:"rtl"},[`${yt}-menu-item`]:{[`${yt}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},En=Ue=>{const{componentCls:yt,tabsCardPadding:ut,cardHeight:rt,cardGutter:_t,itemHoverColor:Qt,itemActiveColor:pn,colorBorderSecondary:sn}=Ue;return{[yt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,zn.Wf)(Ue)),{display:"flex",[`> ${yt}-nav, > div > ${yt}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${yt}-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 ${Ue.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${yt}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Ue.motionDurationSlow}`},[`${yt}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${yt}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${yt}-nav-more`]:{position:"relative",padding:ut,background:"transparent",border:0,color:Ue.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Ue.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${yt}-nav-add`]:Object.assign({minWidth:rt,marginLeft:{_skip_check_:!0,value:_t},padding:`0 ${Ue.paddingXS}px`,background:"transparent",border:`${Ue.lineWidth}px ${Ue.lineType} ${sn}`,borderRadius:`${Ue.borderRadiusLG}px ${Ue.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Ue.colorText,transition:`all ${Ue.motionDurationSlow} ${Ue.motionEaseInOut}`,"&:hover":{color:Qt},"&:active, &:focus:not(:focus-visible)":{color:pn}},(0,zn.Qy)(Ue))},[`${yt}-extra-content`]:{flex:"none"},[`${yt}-ink-bar`]:{position:"absolute",background:Ue.inkBarColor,pointerEvents:"none"}}),er(Ue)),{[`${yt}-content`]:{position:"relative",width:"100%"},[`${yt}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${yt}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${yt}-centered`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-nav-wrap`]:{[`&:not([class*='${yt}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var nr=(0,jn.Z)("Tabs",Ue=>{const yt=(0,Xn.TS)(Ue,{tabsCardPadding:Ue.cardPadding||`${(Ue.cardHeight-Math.round(Ue.fontSize*Ue.lineHeight))/2-Ue.lineWidth}px ${Ue.padding}px`,dropdownEdgeChildVerticalPadding:Ue.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ue.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ue.horizontalItemGutter}px`});return[or(yt),Kn(yt),Gt(yt),Wr(yt),Zn(yt),En(yt),ar(yt)]},Ue=>{const yt=Ue.controlHeightLG;return{zIndexPopup:Ue.zIndexPopupBase+50,cardBg:Ue.colorFillAlter,cardHeight:yt,cardPadding:"",cardPaddingSM:`${Ue.paddingXXS*1.5}px ${Ue.padding}px`,cardPaddingLG:`${Ue.paddingXS}px ${Ue.padding}px ${Ue.paddingXXS*1.5}px`,titleFontSize:Ue.fontSize,titleFontSizeLG:Ue.fontSizeLG,titleFontSizeSM:Ue.fontSize,inkBarColor:Ue.colorPrimary,horizontalMargin:`0 0 ${Ue.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Ue.paddingSM}px 0`,horizontalItemPaddingSM:`${Ue.paddingXS}px 0`,horizontalItemPaddingLG:`${Ue.padding}px 0`,verticalItemPadding:`${Ue.paddingXS}px ${Ue.paddingLG}px`,verticalItemMargin:`${Ue.margin}px 0 0 0`,itemColor:Ue.colorText,itemSelectedColor:Ue.colorPrimary,itemHoverColor:Ue.colorPrimaryHover,itemActiveColor:Ue.colorPrimaryActive,cardGutter:Ue.marginXXS/2}}),lr=function(Ue,yt){var ut={};for(var rt in Ue)Object.prototype.hasOwnProperty.call(Ue,rt)&&yt.indexOf(rt)<0&&(ut[rt]=Ue[rt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,rt=Object.getOwnPropertySymbols(Ue);_t<rt.length;_t++)yt.indexOf(rt[_t])<0&&Object.prototype.propertyIsEnumerable.call(Ue,rt[_t])&&(ut[rt[_t]]=Ue[rt[_t]]);return ut};const xr=Ue=>{const{type:yt,className:ut,rootClassName:rt,size:_t,onEdit:Qt,hideAdd:pn,centered:sn,addIcon:Bn,popupClassName:Yn,children:cr,items:$n,animated:en,style:rn,indicatorSize:Or}=Ue,kr=lr(Ue,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Cr,moreIcon:Dr=Fe.createElement(ye.Z,null)}=kr,{direction:qr,tabs:br,getPrefixCls:fi,getPopupContainer:Jt}=Fe.useContext(gt.E_),On=fi("tabs",Cr),[Hn,qn]=nr(On);let kn;yt==="editable-card"&&(kn={onEdit:(pi,gi)=>{let{key:Ri,event:Si}=gi;Qt==null||Qt(pi==="add"?Si:Ri,pi)},removeIcon:Fe.createElement(E.Z,null),addIcon:Bn||Fe.createElement(Ee.Z,null),showAdd:pn!==!0});const Vn=fi(),Pn=mn($n,cr),fr=Rn(On,en),Pr=(0,Vt.Z)(_t),Gr=Object.assign(Object.assign({},br==null?void 0:br.style),rn);return Hn(Fe.createElement(Ke,Object.assign({direction:qr,getPopupContainer:Jt,moreTransitionName:`${Vn}-slide-up`},kr,{items:Pn,className:Ce()({[`${On}-${Pr}`]:Pr,[`${On}-card`]:["card","editable-card"].includes(yt),[`${On}-editable-card`]:yt==="editable-card",[`${On}-centered`]:sn},br==null?void 0:br.className,ut,rt,qn),popupClassName:Ce()(Yn,qn),style:Gr,editable:kn,moreIcon:Dr,prefixCls:On,animated:fr,indicatorSize:Or!=null?Or:br==null?void 0:br.indicatorSize})))};xr.TabPane=Xt;var jt=xr},12563:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return mt}});var E=ne(59301),ye=ne(99267),Ee=ne(92310),Ye=ne.n(Ee),Ce=ne(36785),Se=ne(47729),pe=ne(14088),be=ne(36355),De=ne(17313),Pe=ne(37613),et=ne(83116);const Fe=Be=>{const{paddingXXS:xt,lineWidth:Ve,tagPaddingHorizontal:Ot,componentCls:nt}=Be,wt=Ot-Ve,Mt=xt-Ve;return{[nt]:Object.assign(Object.assign({},(0,De.Wf)(Be)),{display:"inline-block",height:"auto",marginInlineEnd:Be.marginXS,paddingInline:wt,fontSize:Be.tagFontSize,lineHeight:Be.tagLineHeight,whiteSpace:"nowrap",background:Be.defaultBg,border:`${Be.lineWidth}px ${Be.lineType} ${Be.colorBorder}`,borderRadius:Be.borderRadiusSM,opacity:1,transition:`all ${Be.motionDurationMid}`,textAlign:"start",position:"relative",[`&${nt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Be.defaultColor},[`${nt}-close-icon`]:{marginInlineStart:Mt,color:Be.colorTextDescription,fontSize:Be.tagIconSize,cursor:"pointer",transition:`all ${Be.motionDurationMid}`,"&:hover":{color:Be.colorTextHeading}},[`&${nt}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Be.iconCls}-close, ${Be.iconCls}-close:hover`]:{color:Be.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${nt}-checkable-checked):hover`]:{color:Be.colorPrimary,backgroundColor:Be.colorFillSecondary},"&:active, &-checked":{color:Be.colorTextLightSolid},"&-checked":{backgroundColor:Be.colorPrimary,"&:hover":{backgroundColor:Be.colorPrimaryHover}},"&:active":{backgroundColor:Be.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Be.iconCls} + span, > span + ${Be.iconCls}`]:{marginInlineStart:wt}}),[`${nt}-borderless`]:{borderColor:"transparent",background:Be.tagBorderlessBg}}},Ie=Be=>{const{lineWidth:xt,fontSizeIcon:Ve}=Be,Ot=Be.fontSizeSM,nt=`${Be.lineHeightSM*Ot}px`;return(0,Pe.TS)(Be,{tagFontSize:Ot,tagLineHeight:nt,tagIconSize:Ve-2*xt,tagPaddingHorizontal:8,tagBorderlessBg:Be.colorFillTertiary})},tt=Be=>({defaultBg:Be.colorFillQuaternary,defaultColor:Be.colorText});var ze=(0,et.Z)("Tag",Be=>{const xt=Ie(Be);return Fe(xt)},tt),We=function(Be,xt){var Ve={};for(var Ot in Be)Object.prototype.hasOwnProperty.call(Be,Ot)&&xt.indexOf(Ot)<0&&(Ve[Ot]=Be[Ot]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ot=Object.getOwnPropertySymbols(Be);nt<Ot.length;nt++)xt.indexOf(Ot[nt])<0&&Object.prototype.propertyIsEnumerable.call(Be,Ot[nt])&&(Ve[Ot[nt]]=Be[Ot[nt]]);return Ve},Xe=Be=>{const{prefixCls:xt,style:Ve,className:Ot,checked:nt,onChange:wt,onClick:Mt}=Be,at=We(Be,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Le,tag:Me}=E.useContext(be.E_),st=Zt=>{wt==null||wt(!nt),Mt==null||Mt(Zt)},Ht=Le("tag",xt),[Tt,ct]=ze(Ht),Ct=Ye()(Ht,`${Ht}-checkable`,{[`${Ht}-checkable-checked`]:nt},Me==null?void 0:Me.className,Ot,ct);return Tt(E.createElement("span",Object.assign({},at,{style:Object.assign(Object.assign({},Ve),Me==null?void 0:Me.style),className:Ct,onClick:st})))},Dt=ne(45157);const dt=Be=>(0,Dt.Z)(Be,(xt,Ve)=>{let{textColor:Ot,lightBorderColor:nt,lightColor:wt,darkColor:Mt}=Ve;return{[`${Be.componentCls}-${xt}`]:{color:Ot,background:wt,borderColor:nt,"&-inverse":{color:Be.colorTextLightSolid,background:Mt,borderColor:Mt},[`&${Be.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Qe=(0,et.b)(["Tag","preset"],Be=>{const xt=Ie(Be);return dt(xt)},tt);function Ze(Be){return typeof Be!="string"?Be:Be.charAt(0).toUpperCase()+Be.slice(1)}const Ae=(Be,xt,Ve)=>{const Ot=Ze(Ve);return{[`${Be.componentCls}-${xt}`]:{color:Be[`color${Ve}`],background:Be[`color${Ot}Bg`],borderColor:Be[`color${Ot}Border`],[`&${Be.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Je=(0,et.b)(["Tag","status"],Be=>{const xt=Ie(Be);return[Ae(xt,"success","Success"),Ae(xt,"processing","Info"),Ae(xt,"error","Error"),Ae(xt,"warning","Warning")]},tt),Re=function(Be,xt){var Ve={};for(var Ot in Be)Object.prototype.hasOwnProperty.call(Be,Ot)&&xt.indexOf(Ot)<0&&(Ve[Ot]=Be[Ot]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ot=Object.getOwnPropertySymbols(Be);nt<Ot.length;nt++)xt.indexOf(Ot[nt])<0&&Object.prototype.propertyIsEnumerable.call(Be,Ot[nt])&&(Ve[Ot[nt]]=Be[Ot[nt]]);return Ve};const vt=(Be,xt)=>{const{prefixCls:Ve,className:Ot,rootClassName:nt,style:wt,children:Mt,icon:at,color:Le,onClose:Me,closeIcon:st,closable:Ht,bordered:Tt=!0}=Be,ct=Re(Be,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Ct,direction:Zt,tag:gn}=E.useContext(be.E_),[$t,Wt]=E.useState(!0);E.useEffect(()=>{"visible"in ct&&Wt(ct.visible)},[ct.visible]);const on=(0,Ce.o2)(Le),dn=(0,Ce.yT)(Le),ln=on||dn,xe=Object.assign(Object.assign({backgroundColor:Le&&!ln?Le:void 0},gn==null?void 0:gn.style),wt),fe=Ct("tag",Ve),[ue,he]=ze(fe),me=Ye()(fe,gn==null?void 0:gn.className,{[`${fe}-${Le}`]:ln,[`${fe}-has-color`]:Le&&!ln,[`${fe}-hidden`]:!$t,[`${fe}-rtl`]:Zt==="rtl",[`${fe}-borderless`]:!Tt},Ot,nt,he),oe=Et=>{Et.stopPropagation(),Me==null||Me(Et),!Et.defaultPrevented&&Wt(!1)},[,Ne]=(0,Se.Z)(Ht,st,Et=>Et===null?E.createElement(ye.Z,{className:`${fe}-close-icon`,onClick:oe}):E.createElement("span",{className:`${fe}-close-icon`,onClick:oe},Et),null,!1),At=typeof ct.onClick=="function"||Mt&&Mt.type==="a",Ge=at||null,je=Ge?E.createElement(E.Fragment,null,Ge,Mt&&E.createElement("span",null,Mt)):Mt,Pt=E.createElement("span",Object.assign({},ct,{ref:xt,className:me,style:xe}),je,Ne,on&&E.createElement(Qe,{key:"preset",prefixCls:fe}),dn&&E.createElement(Je,{key:"status",prefixCls:fe}));return ue(At?E.createElement(pe.Z,{component:"Tag"},Pt):Pt)},$e=E.forwardRef(vt);$e.CheckableTag=Xe;var mt=$e},10777:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Je}});var E=ne(92310),ye=ne.n(E),Ee=ne(59301),Ye=ne(36355),Ce=function(Re,vt){var $e={};for(var mt in Re)Object.prototype.hasOwnProperty.call(Re,mt)&&vt.indexOf(mt)<0&&($e[mt]=Re[mt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,mt=Object.getOwnPropertySymbols(Re);Be<mt.length;Be++)vt.indexOf(mt[Be])<0&&Object.prototype.propertyIsEnumerable.call(Re,mt[Be])&&($e[mt[Be]]=Re[mt[Be]]);return $e},pe=Re=>{var{prefixCls:vt,className:$e,color:mt="blue",dot:Be,pending:xt=!1,position:Ve,label:Ot,children:nt}=Re,wt=Ce(Re,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:Mt}=Ee.useContext(Ye.E_),at=Mt("timeline",vt),Le=ye()(`${at}-item`,{[`${at}-item-pending`]:xt},$e),Me=/blue|red|green|gray/.test(mt||"")?void 0:mt,st=ye()(`${at}-item-head`,{[`${at}-item-head-custom`]:!!Be,[`${at}-item-head-${mt}`]:!Me});return Ee.createElement("li",Object.assign({},wt,{className:Le}),Ot&&Ee.createElement("div",{className:`${at}-item-label`},Ot),Ee.createElement("div",{className:`${at}-item-tail`}),Ee.createElement("div",{className:st,style:{borderColor:Me,color:Me}},Be),Ee.createElement("div",{className:`${at}-item-content`},nt))},be=ne(77654),De=ne(58617),Pe=function(Re,vt){var $e={};for(var mt in Re)Object.prototype.hasOwnProperty.call(Re,mt)&&vt.indexOf(mt)<0&&($e[mt]=Re[mt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,mt=Object.getOwnPropertySymbols(Re);Be<mt.length;Be++)vt.indexOf(mt[Be])<0&&Object.prototype.propertyIsEnumerable.call(Re,mt[Be])&&($e[mt[Be]]=Re[mt[Be]]);return $e},Fe=Re=>{var{prefixCls:vt,className:$e,pending:mt=!1,children:Be,items:xt,rootClassName:Ve,reverse:Ot=!1,direction:nt,hashId:wt,pendingDot:Mt,mode:at=""}=Re,Le=Pe(Re,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const Me=($t,Wt)=>at==="alternate"?$t==="right"?`${vt}-item-right`:$t==="left"?`${vt}-item-left`:Wt%2===0?`${vt}-item-left`:`${vt}-item-right`:at==="left"?`${vt}-item-left`:at==="right"?`${vt}-item-right`:$t==="right"?`${vt}-item-right`:"",st=(0,be.Z)(xt||[]),Ht=typeof mt=="boolean"?null:mt;mt&&st.push({pending:!!mt,dot:Mt||Ee.createElement(De.Z,null),children:Ht}),Ot&&st.reverse();const Tt=st.length,ct=`${vt}-item-last`,Ct=st.filter($t=>!!$t).map(($t,Wt)=>{var on;const dn=Wt===Tt-2?ct:"",ln=Wt===Tt-1?ct:"",{className:xe}=$t,fe=Pe($t,["className"]);return Ee.createElement(pe,Object.assign({},fe,{className:ye()([xe,!Ot&&mt?dn:ln,Me((on=$t==null?void 0:$t.position)!==null&&on!==void 0?on:"",Wt)]),key:($t==null?void 0:$t.key)||Wt}))}),Zt=st.some($t=>!!($t!=null&&$t.label)),gn=ye()(vt,{[`${vt}-pending`]:!!mt,[`${vt}-reverse`]:!!Ot,[`${vt}-${at}`]:!!at&&!Zt,[`${vt}-label`]:Zt,[`${vt}-rtl`]:nt==="rtl"},$e,Ve,wt);return Ee.createElement("ul",Object.assign({},Le,{className:gn}),Ct)},Ie=ne(11592);function tt(Re,vt){return Re&&Array.isArray(Re)?Re:(0,Ie.Z)(vt).map($e=>{var mt,Be;return Object.assign({children:(Be=(mt=$e==null?void 0:$e.props)===null||mt===void 0?void 0:mt.children)!==null&&Be!==void 0?Be:""},$e.props)})}var ze=tt,We=ne(17313),lt=ne(83116),Xe=ne(37613);const Dt=Re=>{const{componentCls:vt}=Re;return{[vt]:Object.assign(Object.assign({},(0,We.Wf)(Re)),{margin:0,padding:0,listStyle:"none",[`${vt}-item`]:{position:"relative",margin:0,paddingBottom:Re.itemPaddingBottom,fontSize:Re.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:Re.itemHeadSize,insetInlineStart:(Re.itemHeadSize-Re.tailWidth)/2,height:`calc(100% - ${Re.itemHeadSize}px)`,borderInlineStart:`${Re.tailWidth}px ${Re.lineType} ${Re.tailColor}`},"&-pending":{[`${vt}-item-head`]:{fontSize:Re.fontSizeSM,backgroundColor:"transparent"},[`${vt}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:Re.itemHeadSize,height:Re.itemHeadSize,backgroundColor:Re.dotBg,border:`${Re.dotBorderWidth}px ${Re.lineType} transparent`,borderRadius:"50%","&-blue":{color:Re.colorPrimary,borderColor:Re.colorPrimary},"&-red":{color:Re.colorError,borderColor:Re.colorError},"&-green":{color:Re.colorSuccess,borderColor:Re.colorSuccess},"&-gray":{color:Re.colorTextDisabled,borderColor:Re.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:Re.itemHeadSize/2,insetInlineStart:Re.itemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:Re.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(Re.fontSize*Re.lineHeight-Re.fontSize)+Re.lineWidth,marginInlineStart:Re.margin+Re.itemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${vt}-item-tail`]:{display:"none"},[`> ${vt}-item-content`]:{minHeight:Re.controlHeightLG*1.2}}},[`&${vt}-alternate,
|
|
|
&${vt}-right,
|
|
|
&${vt}-label`]:{[`${vt}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${Re.marginXXS}px`,"&-custom":{marginInlineStart:Re.tailWidth/2}},"&-left":{[`${vt}-item-content`]:{insetInlineStart:`calc(50% - ${Re.marginXXS}px)`,width:`calc(50% - ${Re.marginSM}px)`,textAlign:"start"}},"&-right":{[`${vt}-item-content`]:{width:`calc(50% - ${Re.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${vt}-right`]:{[`${vt}-item-right`]:{[`${vt}-item-tail,
|
|
|
${vt}-item-head,
|
|
|
${vt}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(Re.itemHeadSize+Re.tailWidth)/2}px)`},[`${vt}-item-content`]:{width:`calc(100% - ${Re.itemHeadSize+Re.marginXS}px)`}}},[`&${vt}-pending
|
|
|
${vt}-item-last
|
|
|
${vt}-item-tail`]:{display:"block",height:`calc(100% - ${Re.margin}px)`,borderInlineStart:`${Re.tailWidth}px dotted ${Re.tailColor}`},[`&${vt}-reverse
|
|
|
${vt}-item-last
|
|
|
${vt}-item-tail`]:{display:"none"},[`&${vt}-reverse ${vt}-item-pending`]:{[`${vt}-item-tail`]:{insetBlockStart:Re.margin,display:"block",height:`calc(100% - ${Re.margin}px)`,borderInlineStart:`${Re.tailWidth}px dotted ${Re.tailColor}`},[`${vt}-item-content`]:{minHeight:Re.controlHeightLG*1.2}},[`&${vt}-label`]:{[`${vt}-item-label`]:{position:"absolute",insetBlockStart:-(Re.fontSize*Re.lineHeight-Re.fontSize)+Re.tailWidth,width:`calc(50% - ${Re.marginSM}px)`,textAlign:"end"},[`${vt}-item-right`]:{[`${vt}-item-label`]:{insetInlineStart:`calc(50% + ${Re.marginSM}px)`,width:`calc(50% - ${Re.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${vt}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}};var dt=(0,lt.Z)("Timeline",Re=>{const vt=(0,Xe.TS)(Re,{itemHeadSize:10,customHeadPaddingVertical:Re.paddingXXS,paddingInlineEnd:2});return[Dt(vt)]},Re=>({tailColor:Re.colorSplit,tailWidth:Re.lineWidthBold,dotBorderWidth:Re.wireframe?Re.lineWidthBold:Re.lineWidth*3,dotBg:Re.colorBgContainer,itemPaddingBottom:Re.padding*1.25})),Qe=function(Re,vt){var $e={};for(var mt in Re)Object.prototype.hasOwnProperty.call(Re,mt)&&vt.indexOf(mt)<0&&($e[mt]=Re[mt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,mt=Object.getOwnPropertySymbols(Re);Be<mt.length;Be++)vt.indexOf(mt[Be])<0&&Object.prototype.propertyIsEnumerable.call(Re,mt[Be])&&($e[mt[Be]]=Re[mt[Be]]);return $e};const Ze=Re=>{const{getPrefixCls:vt,direction:$e,timeline:mt}=Ee.useContext(Ye.E_),{prefixCls:Be,children:xt,items:Ve,className:Ot,style:nt}=Re,wt=Qe(Re,["prefixCls","children","items","className","style"]),Mt=vt("timeline",Be),[at,Le]=dt(Mt),Me=ze(Ve,xt);return at(Ee.createElement(Fe,Object.assign({},wt,{className:ye()(mt==null?void 0:mt.className,Ot),style:Object.assign(Object.assign({},mt==null?void 0:mt.style),nt),prefixCls:Mt,direction:$e,items:Me,hashId:Le})))};Ze.Item=pe;var Ae=Ze,Je=Ae},17574:function(An,tn,ne){"use strict";ne.d(tn,{default:function(){return Le}});var E=ne(38028),ye=ne(77654),Ee=ne(52671),Ye=ne(8657),Ce=ne(60499),Se=ne(59301),pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},be=pe,De=ne(85221),Pe=function(st,Ht){return Se.createElement(De.Z,(0,Ce.Z)({},st,{ref:Ht,icon:be}))},et=Se.forwardRef(Pe),Fe=et,Ie=ne(92310),tt=ne.n(Ie),ze=ne(35654),We=ne(71430),lt=ne(36355),Xe=ne(56082),Dt=ne(62892),dt=ne(20648);const Qe=4;function Ze(Me){const{dropPosition:st,dropLevelOffset:Ht,prefixCls:Tt,indent:ct,direction:Ct="ltr"}=Me,Zt=Ct==="ltr"?"left":"right",gn=Ct==="ltr"?"right":"left",$t={[Zt]:-Ht*ct+Qe,[gn]:0};switch(st){case-1:$t.top=-3;break;case 1:$t.bottom=-3;break;default:$t.bottom=-3,$t[Zt]=ct+Qe;break}return Se.createElement("div",{style:$t,className:`${Tt}-drop-indicator`})}var Ae=ne(71997),Re=Se.forwardRef((Me,st)=>{const{getPrefixCls:Ht,direction:Tt,virtual:ct,tree:Ct}=Se.useContext(lt.E_),{prefixCls:Zt,className:gn,showIcon:$t=!1,showLine:Wt,switcherIcon:on,blockNode:dn=!1,children:ln,checkable:xe=!1,selectable:fe=!0,draggable:ue,motion:he,style:me}=Me,oe=Ht("tree",Zt),Ne=Ht(),At=he!=null?he:Object.assign(Object.assign({},(0,Dt.Z)(Ne)),{motionAppear:!1}),Ge=Object.assign(Object.assign({},Me),{checkable:xe,selectable:fe,showIcon:$t,motion:At,blockNode:dn,showLine:!!Wt,dropIndicatorRender:Ze}),[je,Pt]=(0,dt.ZP)(oe),Et=Se.useMemo(()=>{if(!ue)return!1;let Kt={};switch(typeof ue){case"function":Kt.nodeDraggable=ue;break;case"object":Kt=Object.assign({},ue);break;default:break}return Kt.icon!==!1&&(Kt.icon=Kt.icon||Se.createElement(Xe.Z,null)),Kt},[ue]),ht=Kt=>Se.createElement(Ae.Z,{prefixCls:oe,switcherIcon:on,treeNodeProps:Kt,showLine:Wt});return je(Se.createElement(E.Z,Object.assign({itemHeight:20,ref:st,virtual:ct},Ge,{style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),me),prefixCls:oe,className:tt()({[`${oe}-icon-hide`]:!$t,[`${oe}-block-node`]:dn,[`${oe}-unselectable`]:!fe,[`${oe}-rtl`]:Tt==="rtl"},Ct==null?void 0:Ct.className,gn,Pt),direction:Tt,checkable:xe&&Se.createElement("span",{className:`${oe}-checkbox-inner`}),selectable:fe,switcherIcon:ht,draggable:Et}),ln))}),vt;(function(Me){Me[Me.None=0]="None",Me[Me.Start=1]="Start",Me[Me.End=2]="End"})(vt||(vt={}));function $e(Me,st){function Ht(Tt){const{key:ct,children:Ct}=Tt;st(ct,Tt)!==!1&&$e(Ct||[],st)}Me.forEach(Ht)}function mt(Me){let{treeData:st,expandedKeys:Ht,startKey:Tt,endKey:ct}=Me;const Ct=[];let Zt=vt.None;if(Tt&&Tt===ct)return[Tt];if(!Tt||!ct)return[];function gn($t){return $t===Tt||$t===ct}return $e(st,$t=>{if(Zt===vt.End)return!1;if(gn($t)){if(Ct.push($t),Zt===vt.None)Zt=vt.Start;else if(Zt===vt.Start)return Zt=vt.End,!1}else Zt===vt.Start&&Ct.push($t);return Ht.includes($t)}),Ct}function Be(Me,st){const Ht=(0,ye.Z)(st),Tt=[];return $e(Me,(ct,Ct)=>{const Zt=Ht.indexOf(ct);return Zt!==-1&&(Tt.push(Ct),Ht.splice(Zt,1)),!!Ht.length}),Tt}var xt=function(Me,st){var Ht={};for(var Tt in Me)Object.prototype.hasOwnProperty.call(Me,Tt)&&st.indexOf(Tt)<0&&(Ht[Tt]=Me[Tt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Tt=Object.getOwnPropertySymbols(Me);ct<Tt.length;ct++)st.indexOf(Tt[ct])<0&&Object.prototype.propertyIsEnumerable.call(Me,Tt[ct])&&(Ht[Tt[ct]]=Me[Tt[ct]]);return Ht};function Ve(Me){const{isLeaf:st,expanded:Ht}=Me;return st?Se.createElement(Ee.Z,null):Ht?Se.createElement(Ye.Z,null):Se.createElement(Fe,null)}function Ot(Me){let{treeData:st,children:Ht}=Me;return st||(0,We.zn)(Ht)}const nt=(Me,st)=>{var{defaultExpandAll:Ht,defaultExpandParent:Tt,defaultExpandedKeys:ct}=Me,Ct=xt(Me,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Zt=Se.useRef(),gn=Se.useRef(),$t=()=>{const{keyEntities:Et}=(0,We.I8)(Ot(Ct));let ht;return Ht?ht=Object.keys(Et):Tt?ht=(0,ze.r7)(Ct.expandedKeys||ct||[],Et):ht=Ct.expandedKeys||ct,ht},[Wt,on]=Se.useState(Ct.selectedKeys||Ct.defaultSelectedKeys||[]),[dn,ln]=Se.useState(()=>$t());Se.useEffect(()=>{"selectedKeys"in Ct&&on(Ct.selectedKeys)},[Ct.selectedKeys]),Se.useEffect(()=>{"expandedKeys"in Ct&&ln(Ct.expandedKeys)},[Ct.expandedKeys]);const xe=(Et,ht)=>{var Kt;return"expandedKeys"in Ct||ln(Et),(Kt=Ct.onExpand)===null||Kt===void 0?void 0:Kt.call(Ct,Et,ht)},fe=(Et,ht)=>{var Kt;const{multiple:vn}=Ct,{node:kt,nativeEvent:Ut}=ht,{key:yn=""}=kt,Bt=Ot(Ct),Ke=Object.assign(Object.assign({},ht),{selected:!0}),gt=(Ut==null?void 0:Ut.ctrlKey)||(Ut==null?void 0:Ut.metaKey),Vt=Ut==null?void 0:Ut.shiftKey;let Nt;vn&>?(Nt=Et,Zt.current=yn,gn.current=Nt,Ke.selectedNodes=Be(Bt,Nt)):vn&&Vt?(Nt=Array.from(new Set([].concat((0,ye.Z)(gn.current||[]),(0,ye.Z)(mt({treeData:Bt,expandedKeys:dn,startKey:yn,endKey:Zt.current}))))),Ke.selectedNodes=Be(Bt,Nt)):(Nt=[yn],Zt.current=yn,gn.current=Nt,Ke.selectedNodes=Be(Bt,Nt)),(Kt=Ct.onSelect)===null||Kt===void 0||Kt.call(Ct,Nt,Ke),"selectedKeys"in Ct||on(Nt)},{getPrefixCls:ue,direction:he}=Se.useContext(lt.E_),{prefixCls:me,className:oe,showIcon:Ne=!0,expandAction:At="click"}=Ct,Ge=xt(Ct,["prefixCls","className","showIcon","expandAction"]),je=ue("tree",me),Pt=tt()(`${je}-directory`,{[`${je}-directory-rtl`]:he==="rtl"},oe);return Se.createElement(Re,Object.assign({icon:Ve,ref:st,blockNode:!0},Ge,{showIcon:Ne,expandAction:At,prefixCls:je,className:Pt,expandedKeys:dn,selectedKeys:Wt,onSelect:fe,onExpand:xe}))};var Mt=Se.forwardRef(nt);const at=Re;at.DirectoryTree=Mt,at.TreeNode=E.O;var Le=at},20648:function(An,tn,ne){"use strict";ne.d(tn,{TM:function(){return Ie},Yk:function(){return Fe}});var E=ne(36237),ye=ne(98447),Ee=ne(17313),Ye=ne(8378),Ce=ne(37613),Se=ne(83116);const pe=new E.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),be=(tt,ze)=>({[`.${tt}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ze.motionDurationSlow}`}}}),De=(tt,ze)=>({[`.${tt}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ze.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ze.lineWidthBold}px solid ${ze.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Pe=(tt,ze)=>{const{treeCls:We,treeNodeCls:lt,treeNodePadding:Xe,titleHeight:Dt,nodeSelectedBg:dt,nodeHoverBg:Qe}=ze,Ze=ze.paddingXS;return{[We]:Object.assign(Object.assign({},(0,Ee.Wf)(ze)),{background:ze.colorBgContainer,borderRadius:ze.borderRadius,transition:`background-color ${ze.motionDurationSlow}`,[`&${We}-rtl`]:{[`${We}-switcher`]:{"&_close":{[`${We}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${We}-active-focused)`]:Object.assign({},(0,Ee.oN)(ze)),[`${We}-list-holder-inner`]:{alignItems:"flex-start"},[`&${We}-block-node`]:{[`${We}-list-holder-inner`]:{alignItems:"stretch",[`${We}-node-content-wrapper`]:{flex:"auto"},[`${lt}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Xe,insetInlineStart:0,border:`1px solid ${ze.colorPrimary}`,opacity:0,animationName:pe,animationDuration:ze.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${lt}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Xe}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${We}-node-content-wrapper`]:{color:ze.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${We}-node-content-wrapper`]:Object.assign({},(0,Ee.oN)(ze)),[`&:not(${lt}-disabled).filter-node ${We}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${We}-draggable-icon`]:{flexShrink:0,width:Dt,lineHeight:`${Dt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${ze.motionDurationSlow}`,[`${lt}:hover &`]:{opacity:.45}},[`&${lt}-disabled`]:{[`${We}-draggable-icon`]:{visibility:"hidden"}}}},[`${We}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Dt}},[`${We}-draggable-icon`]:{visibility:"hidden"},[`${We}-switcher`]:Object.assign(Object.assign({},be(tt,ze)),{position:"relative",flex:"none",alignSelf:"stretch",width:Dt,margin:0,lineHeight:`${Dt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${We}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:ze.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Dt/2,bottom:-Xe,marginInlineStart:-1,borderInlineEnd:`1px solid ${ze.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Dt/2*.8,height:Dt/2,borderBottom:`1px solid ${ze.colorBorder}`,content:'""'}}}),[`${We}-checkbox`]:{top:"initial",marginInlineEnd:Ze},[`${We}-node-content-wrapper, ${We}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Dt,margin:0,padding:`0 ${ze.paddingXS/2}px`,color:"inherit",lineHeight:`${Dt}px`,background:"transparent",borderRadius:ze.borderRadius,cursor:"pointer",transition:`all ${ze.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Qe},[`&${We}-node-selected`]:{backgroundColor:dt},[`${We}-iconEle`]:{display:"inline-block",width:Dt,height:Dt,lineHeight:`${Dt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${We}-unselectable ${We}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${We}-node-content-wrapper`]:Object.assign({lineHeight:`${Dt}px`,userSelect:"none"},De(tt,ze)),[`${lt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${ze.colorPrimary}`}},"&-show-line":{[`${We}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Dt/2,bottom:-Xe,borderInlineEnd:`1px solid ${ze.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${We}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${lt}-leaf-last`]:{[`${We}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Dt/2}px !important`}}}}})}},et=tt=>{const{treeCls:ze,treeNodeCls:We,treeNodePadding:lt,directoryNodeSelectedBg:Xe,directoryNodeSelectedColor:Dt}=tt;return{[`${ze}${ze}-directory`]:{[We]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:lt,insetInlineStart:0,transition:`background-color ${tt.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:tt.controlItemBgHover}},"> *":{zIndex:1},[`${ze}-switcher`]:{transition:`color ${tt.motionDurationMid}`},[`${ze}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${ze}-node-selected`]:{color:Dt,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:Xe},[`${ze}-switcher`]:{color:Dt},[`${ze}-node-content-wrapper`]:{color:Dt,background:"transparent"}}}}}},Fe=(tt,ze)=>{const We=`.${tt}`,lt=`${We}-treenode`,Xe=ze.paddingXS/2,Dt=(0,Ce.TS)(ze,{treeCls:We,treeNodeCls:lt,treeNodePadding:Xe});return[Pe(tt,Dt),et(Dt)]},Ie=tt=>{const{controlHeightSM:ze}=tt;return{titleHeight:ze,nodeHoverBg:tt.controlItemBgHover,nodeSelectedBg:tt.controlItemBgActive}};tn.ZP=(0,Se.Z)("Tree",(tt,ze)=>{let{prefixCls:We}=ze;return[{[tt.componentCls]:(0,ye.C2)(`${We}-checkbox`,tt)},Fe(We,tt),(0,Ye.Z)(tt)]},tt=>{const{colorTextLightSolid:ze,colorPrimary:We}=tt;return Object.assign(Object.assign({},Ie(tt)),{directoryNodeSelectedColor:ze,directoryNodeSelectedBg:We})})},71997:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return lt}});var E=ne(60499),ye=ne(59301),Ee={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=Ee,Ce=ne(85221),Se=function(Dt,dt){return ye.createElement(Ce.Z,(0,E.Z)({},Dt,{ref:dt,icon:Ye}))},pe=ye.forwardRef(Se),be=pe,De=ne(52671),Pe=ne(58617),et=ne(15075),Fe=ne(43531),Ie=ne(92310),tt=ne.n(Ie),ze=ne(92343),lt=Xe=>{const{prefixCls:Dt,switcherIcon:dt,treeNodeProps:Qe,showLine:Ze}=Xe,{isLeaf:Ae,expanded:Je,loading:Re}=Qe;if(Re)return ye.createElement(Pe.Z,{className:`${Dt}-switcher-loading-icon`});let vt;if(Ze&&typeof Ze=="object"&&(vt=Ze.showLeafIcon),Ae){if(!Ze)return null;if(typeof vt!="boolean"&&vt){const Be=typeof vt=="function"?vt(Qe):vt,xt=`${Dt}-switcher-line-custom-icon`;return(0,ze.l$)(Be)?(0,ze.Tm)(Be,{className:tt()(Be.props.className||"",xt)}):Be}return vt?ye.createElement(De.Z,{className:`${Dt}-switcher-line-icon`}):ye.createElement("span",{className:`${Dt}-switcher-leaf-line`})}const $e=`${Dt}-switcher-icon`,mt=typeof dt=="function"?dt(Qe):dt;return(0,ze.l$)(mt)?(0,ze.Tm)(mt,{className:tt()(mt.props.className||"",$e)}):mt!==void 0?mt:Ze?Je?ye.createElement(et.Z,{className:`${Dt}-switcher-line-icon`}):ye.createElement(Fe.Z,{className:`${Dt}-switcher-line-icon`}):ye.createElement(be,{className:$e})}},99498:function(An,tn,ne){(function(E){E(ne(89780))})(function(E){E.defineOption("placeholder","",function(be,De,Pe){var et=Pe&&Pe!=E.Init;if(De&&!et)be.on("blur",Ce),be.on("change",Se),be.on("swapDoc",Se),E.on(be.getInputField(),"compositionupdate",be.state.placeholderCompose=function(){Ye(be)}),Se(be);else if(!De&&et){be.off("blur",Ce),be.off("change",Se),be.off("swapDoc",Se),E.off(be.getInputField(),"compositionupdate",be.state.placeholderCompose),ye(be);var Fe=be.getWrapperElement();Fe.className=Fe.className.replace(" CodeMirror-empty","")}De&&!be.hasFocus()&&Ce(be)});function ye(be){be.state.placeholder&&(be.state.placeholder.parentNode.removeChild(be.state.placeholder),be.state.placeholder=null)}function Ee(be){ye(be);var De=be.state.placeholder=document.createElement("pre");De.style.cssText="height: 0; overflow: visible",De.style.direction=be.getOption("direction"),De.className="CodeMirror-placeholder CodeMirror-line-like";var Pe=be.getOption("placeholder");typeof Pe=="string"&&(Pe=document.createTextNode(Pe)),De.appendChild(Pe),be.display.lineSpace.insertBefore(De,be.display.lineSpace.firstChild)}function Ye(be){setTimeout(function(){var De=!1,Pe=be.getInputField();Pe.nodeName=="TEXTAREA"?De=!Pe.value:be.lineCount()==1&&(De=!/[^\u200b]/.test(Pe.querySelector(".CodeMirror-line").textContent)),De?Ee(be):ye(be)},20)}function Ce(be){pe(be)&&Ee(be)}function Se(be){var De=be.getWrapperElement(),Pe=pe(be);De.className=De.className.replace(" CodeMirror-empty","")+(Pe?" CodeMirror-empty":""),Pe?Ee(be):ye(be)}function pe(be){return be.lineCount()===1&&be.getLine(0)===""}})},25717:function(An,tn,ne){(function(E){E(ne(89780))})(function(E){var ye={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ee=E.Pos;E.defineOption("autoCloseBrackets",!1,function(ze,We,lt){lt&<!=E.Init&&(ze.removeKeyMap(Ce),ze.state.closeBrackets=null),We&&(Se(Ye(We,"pairs")),ze.state.closeBrackets=We,ze.addKeyMap(Ce))});function Ye(ze,We){return We=="pairs"&&typeof ze=="string"?ze:typeof ze=="object"&&ze[We]!=null?ze[We]:ye[We]}var Ce={Backspace:De,Enter:Pe};function Se(ze){for(var We=0;We<ze.length;We++){var lt=ze.charAt(We),Xe="'"+lt+"'";Ce[Xe]||(Ce[Xe]=pe(lt))}}Se(ye.pairs+"`");function pe(ze){return function(We){return Fe(We,ze)}}function be(ze){var We=ze.state.closeBrackets;if(!We||We.override)return We;var lt=ze.getModeAt(ze.getCursor());return lt.closeBrackets||We}function De(ze){var We=be(ze);if(!We||ze.getOption("disableInput"))return E.Pass;for(var lt=Ye(We,"pairs"),Xe=ze.listSelections(),Dt=0;Dt<Xe.length;Dt++){if(!Xe[Dt].empty())return E.Pass;var dt=Ie(ze,Xe[Dt].head);if(!dt||lt.indexOf(dt)%2!=0)return E.Pass}for(var Dt=Xe.length-1;Dt>=0;Dt--){var Qe=Xe[Dt].head;ze.replaceRange("",Ee(Qe.line,Qe.ch-1),Ee(Qe.line,Qe.ch+1),"+delete")}}function Pe(ze){var We=be(ze),lt=We&&Ye(We,"explode");if(!lt||ze.getOption("disableInput"))return E.Pass;for(var Xe=ze.listSelections(),Dt=0;Dt<Xe.length;Dt++){if(!Xe[Dt].empty())return E.Pass;var dt=Ie(ze,Xe[Dt].head);if(!dt||lt.indexOf(dt)%2!=0)return E.Pass}ze.operation(function(){var Qe=ze.lineSeparator()||`
|
|
|
`;ze.replaceSelection(Qe+Qe,null),ze.execCommand("goCharLeft"),Xe=ze.listSelections();for(var Ze=0;Ze<Xe.length;Ze++){var Ae=Xe[Ze].head.line;ze.indentLine(Ae,null,!0),ze.indentLine(Ae+1,null,!0)}})}function et(ze){var We=E.cmpPos(ze.anchor,ze.head)>0;return{anchor:new Ee(ze.anchor.line,ze.anchor.ch+(We?-1:1)),head:new Ee(ze.head.line,ze.head.ch+(We?1:-1))}}function Fe(ze,We){var lt=be(ze);if(!lt||ze.getOption("disableInput"))return E.Pass;var Xe=Ye(lt,"pairs"),Dt=Xe.indexOf(We);if(Dt==-1)return E.Pass;for(var dt=Ye(lt,"closeBefore"),Qe=Ye(lt,"triples"),Ze=Xe.charAt(Dt+1)==We,Ae=ze.listSelections(),Je=Dt%2==0,Re,vt=0;vt<Ae.length;vt++){var $e=Ae[vt],mt=$e.head,Be,xt=ze.getRange(mt,Ee(mt.line,mt.ch+1));if(Je&&!$e.empty())Be="surround";else if((Ze||!Je)&&xt==We)Ze&&tt(ze,mt)?Be="both":Qe.indexOf(We)>=0&&ze.getRange(mt,Ee(mt.line,mt.ch+3))==We+We+We?Be="skipThree":Be="skip";else if(Ze&&mt.ch>1&&Qe.indexOf(We)>=0&&ze.getRange(Ee(mt.line,mt.ch-2),mt)==We+We){if(mt.ch>2&&/\bstring/.test(ze.getTokenTypeAt(Ee(mt.line,mt.ch-2))))return E.Pass;Be="addFour"}else if(Ze){var Ve=mt.ch==0?" ":ze.getRange(Ee(mt.line,mt.ch-1),mt);if(!E.isWordChar(xt)&&Ve!=We&&!E.isWordChar(Ve))Be="both";else return E.Pass}else if(Je&&(xt.length===0||/\s/.test(xt)||dt.indexOf(xt)>-1))Be="both";else return E.Pass;if(!Re)Re=Be;else if(Re!=Be)return E.Pass}var Ot=Dt%2?Xe.charAt(Dt-1):We,nt=Dt%2?We:Xe.charAt(Dt+1);ze.operation(function(){if(Re=="skip")ze.execCommand("goCharRight");else if(Re=="skipThree")for(var wt=0;wt<3;wt++)ze.execCommand("goCharRight");else if(Re=="surround"){for(var Mt=ze.getSelections(),wt=0;wt<Mt.length;wt++)Mt[wt]=Ot+Mt[wt]+nt;ze.replaceSelections(Mt,"around"),Mt=ze.listSelections().slice();for(var wt=0;wt<Mt.length;wt++)Mt[wt]=et(Mt[wt]);ze.setSelections(Mt)}else Re=="both"?(ze.replaceSelection(Ot+nt,null),ze.triggerElectric(Ot+nt),ze.execCommand("goCharLeft")):Re=="addFour"&&(ze.replaceSelection(Ot+Ot+Ot+Ot,"before"),ze.execCommand("goCharRight"))})}function Ie(ze,We){var lt=ze.getRange(Ee(We.line,We.ch-1),Ee(We.line,We.ch+1));return lt.length==2?lt:null}function tt(ze,We){var lt=ze.getTokenAt(Ee(We.line,We.ch+1));return/\bstring/.test(lt.type)&<.start==We.ch&&(We.ch==0||!/\bstring/.test(ze.getTokenTypeAt(We)))}})},6313:function(An,tn,ne){(function(E){E(ne(89780),ne(32855))})(function(E){E.defineOption("autoCloseTags",!1,function(De,Pe,et){if(et!=E.Init&&et&&De.removeKeyMap("autoCloseTags"),!!Pe){var Fe={name:"autoCloseTags"};(typeof Pe!="object"||Pe.whenClosing!==!1)&&(Fe["'/'"]=function(Ie){return Se(Ie)}),(typeof Pe!="object"||Pe.whenOpening!==!1)&&(Fe["'>'"]=function(Ie){return Ye(Ie)}),De.addKeyMap(Fe)}});var ye=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ee=["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(De){if(De.getOption("disableInput"))return E.Pass;for(var Pe=De.listSelections(),et=[],Fe=De.getOption("autoCloseTags"),Ie=0;Ie<Pe.length;Ie++){if(!Pe[Ie].empty())return E.Pass;var tt=Pe[Ie].head,ze=De.getTokenAt(tt),We=E.innerMode(De.getMode(),ze.state),lt=We.state,Xe=We.mode.xmlCurrentTag&&We.mode.xmlCurrentTag(lt),Dt=Xe&&Xe.name;if(!Dt)return E.Pass;var dt=We.mode.configuration=="html",Qe=typeof Fe=="object"&&Fe.dontCloseTags||dt&&ye,Ze=typeof Fe=="object"&&Fe.indentTags||dt&&Ee;ze.end>tt.ch&&(Dt=Dt.slice(0,Dt.length-ze.end+tt.ch));var Ae=Dt.toLowerCase();if(!Dt||ze.type=="string"&&(ze.end!=tt.ch||!/[\"\']/.test(ze.string.charAt(ze.string.length-1))||ze.string.length==1)||ze.type=="tag"&&Xe.close||ze.string.indexOf("/")==tt.ch-ze.start-1||Qe&&pe(Qe,Ae)>-1||be(De,We.mode.xmlCurrentContext&&We.mode.xmlCurrentContext(lt)||[],Dt,tt,!0))return E.Pass;var Je=typeof Fe=="object"&&Fe.emptyTags;if(Je&&pe(Je,Dt)>-1){et[Ie]={text:"/>",newPos:E.Pos(tt.line,tt.ch+2)};continue}var Re=Ze&&pe(Ze,Ae)>-1;et[Ie]={indent:Re,text:">"+(Re?`
|
|
|
|
|
|
`:"")+"</"+Dt+">",newPos:Re?E.Pos(tt.line+1,0):E.Pos(tt.line,tt.ch+1)}}for(var vt=typeof Fe=="object"&&Fe.dontIndentOnAutoClose,Ie=Pe.length-1;Ie>=0;Ie--){var $e=et[Ie];De.replaceRange($e.text,Pe[Ie].head,Pe[Ie].anchor,"+insert");var mt=De.listSelections().slice(0);mt[Ie]={head:$e.newPos,anchor:$e.newPos},De.setSelections(mt),!vt&&$e.indent&&(De.indentLine($e.newPos.line,null,!0),De.indentLine($e.newPos.line+1,null,!0))}}function Ce(De,Pe){for(var et=De.listSelections(),Fe=[],Ie=Pe?"/":"</",tt=De.getOption("autoCloseTags"),ze=typeof tt=="object"&&tt.dontIndentOnSlash,We=0;We<et.length;We++){if(!et[We].empty())return E.Pass;var lt=et[We].head,Xe=De.getTokenAt(lt),Dt=E.innerMode(De.getMode(),Xe.state),dt=Dt.state;if(Pe&&(Xe.type=="string"||Xe.string.charAt(0)!="<"||Xe.start!=lt.ch-1))return E.Pass;var Qe,Ze=Dt.mode.name!="xml"&&De.getMode().name=="htmlmixed";if(Ze&&Dt.mode.name=="javascript")Qe=Ie+"script";else if(Ze&&Dt.mode.name=="css")Qe=Ie+"style";else{var Ae=Dt.mode.xmlCurrentContext&&Dt.mode.xmlCurrentContext(dt);if(!Ae||Ae.length&&be(De,Ae,Ae[Ae.length-1],lt))return E.Pass;Qe=Ie+Ae[Ae.length-1]}De.getLine(lt.line).charAt(Xe.end)!=">"&&(Qe+=">"),Fe[We]=Qe}if(De.replaceSelections(Fe),et=De.listSelections(),!ze)for(var We=0;We<et.length;We++)(We==et.length-1||et[We].head.line<et[We+1].head.line)&&De.indentLine(et[We].head.line)}function Se(De){return De.getOption("disableInput")?E.Pass:Ce(De,!0)}E.commands.closeTag=function(De){return Ce(De)};function pe(De,Pe){if(De.indexOf)return De.indexOf(Pe);for(var et=0,Fe=De.length;et<Fe;++et)if(De[et]==Pe)return et;return-1}function be(De,Pe,et,Fe,Ie){if(!E.scanForClosingTag)return!1;var tt=Math.min(De.lastLine()+1,Fe.line+500),ze=E.scanForClosingTag(De,Fe,null,tt);if(!ze||ze.tag!=et)return!1;for(var We=Ie?1:0,lt=Pe.length-1;lt>=0&&Pe[lt]==et;lt--)++We;Fe=ze.to;for(var lt=1;lt<We;lt++){var Xe=E.scanForClosingTag(De,Fe,null,tt);if(!Xe||Xe.tag!=et)return!1;Fe=Xe.to}return!0}})},32855:function(An,tn,ne){(function(E){E(ne(89780))})(function(E){"use strict";var ye=E.Pos;function Ee(lt,Xe){return lt.line-Xe.line||lt.ch-Xe.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",Ce=Ye+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Se=new RegExp("<(/?)(["+Ye+"]["+Ce+"]*)","g");function pe(lt,Xe,Dt,dt){this.line=Xe,this.ch=Dt,this.cm=lt,this.text=lt.getLine(Xe),this.min=dt?Math.max(dt.from,lt.firstLine()):lt.firstLine(),this.max=dt?Math.min(dt.to-1,lt.lastLine()):lt.lastLine()}function be(lt,Xe){var Dt=lt.cm.getTokenTypeAt(ye(lt.line,Xe));return Dt&&/\btag\b/.test(Dt)}function De(lt){if(!(lt.line>=lt.max))return lt.ch=0,lt.text=lt.cm.getLine(++lt.line),!0}function Pe(lt){if(!(lt.line<=lt.min))return lt.text=lt.cm.getLine(--lt.line),lt.ch=lt.text.length,!0}function et(lt){for(;;){var Xe=lt.text.indexOf(">",lt.ch);if(Xe==-1){if(De(lt))continue;return}if(!be(lt,Xe+1)){lt.ch=Xe+1;continue}var Dt=lt.text.lastIndexOf("/",Xe),dt=Dt>-1&&!/\S/.test(lt.text.slice(Dt+1,Xe));return lt.ch=Xe+1,dt?"selfClose":"regular"}}function Fe(lt){for(;;){var Xe=lt.ch?lt.text.lastIndexOf("<",lt.ch-1):-1;if(Xe==-1){if(Pe(lt))continue;return}if(!be(lt,Xe+1)){lt.ch=Xe;continue}Se.lastIndex=Xe,lt.ch=Xe;var Dt=Se.exec(lt.text);if(Dt&&Dt.index==Xe)return Dt}}function Ie(lt){for(;;){Se.lastIndex=lt.ch;var Xe=Se.exec(lt.text);if(!Xe){if(De(lt))continue;return}if(!be(lt,Xe.index+1)){lt.ch=Xe.index+1;continue}return lt.ch=Xe.index+Xe[0].length,Xe}}function tt(lt){for(;;){var Xe=lt.ch?lt.text.lastIndexOf(">",lt.ch-1):-1;if(Xe==-1){if(Pe(lt))continue;return}if(!be(lt,Xe+1)){lt.ch=Xe;continue}var Dt=lt.text.lastIndexOf("/",Xe),dt=Dt>-1&&!/\S/.test(lt.text.slice(Dt+1,Xe));return lt.ch=Xe+1,dt?"selfClose":"regular"}}function ze(lt,Xe){for(var Dt=[];;){var dt=Ie(lt),Qe,Ze=lt.line,Ae=lt.ch-(dt?dt[0].length:0);if(!dt||!(Qe=et(lt)))return;if(Qe!="selfClose")if(dt[1]){for(var Je=Dt.length-1;Je>=0;--Je)if(Dt[Je]==dt[2]){Dt.length=Je;break}if(Je<0&&(!Xe||Xe==dt[2]))return{tag:dt[2],from:ye(Ze,Ae),to:ye(lt.line,lt.ch)}}else Dt.push(dt[2])}}function We(lt,Xe){for(var Dt=[];;){var dt=tt(lt);if(!dt)return;if(dt=="selfClose"){Fe(lt);continue}var Qe=lt.line,Ze=lt.ch,Ae=Fe(lt);if(!Ae)return;if(Ae[1])Dt.push(Ae[2]);else{for(var Je=Dt.length-1;Je>=0;--Je)if(Dt[Je]==Ae[2]){Dt.length=Je;break}if(Je<0&&(!Xe||Xe==Ae[2]))return{tag:Ae[2],from:ye(lt.line,lt.ch),to:ye(Qe,Ze)}}}}E.registerHelper("fold","xml",function(lt,Xe){for(var Dt=new pe(lt,Xe.line,0);;){var dt=Ie(Dt);if(!dt||Dt.line!=Xe.line)return;var Qe=et(Dt);if(!Qe)return;if(!dt[1]&&Qe!="selfClose"){var Ze=ye(Dt.line,Dt.ch),Ae=ze(Dt,dt[2]);return Ae&&Ee(Ae.from,Ze)>0?{from:Ze,to:Ae.from}:null}}}),E.findMatchingTag=function(lt,Xe,Dt){var dt=new pe(lt,Xe.line,Xe.ch,Dt);if(!(dt.text.indexOf(">")==-1&&dt.text.indexOf("<")==-1)){var Qe=et(dt),Ze=Qe&&ye(dt.line,dt.ch),Ae=Qe&&Fe(dt);if(!(!Qe||!Ae||Ee(dt,Xe)>0)){var Je={from:ye(dt.line,dt.ch),to:Ze,tag:Ae[2]};return Qe=="selfClose"?{open:Je,close:null,at:"open"}:Ae[1]?{open:We(dt,Ae[2]),close:Je,at:"close"}:(dt=new pe(lt,Ze.line,Ze.ch,Dt),{open:Je,close:ze(dt,Ae[2]),at:"open"})}}},E.findEnclosingTag=function(lt,Xe,Dt,dt){for(var Qe=new pe(lt,Xe.line,Xe.ch,Dt);;){var Ze=We(Qe,dt);if(!Ze)break;var Ae=new pe(lt,Xe.line,Xe.ch,Dt),Je=ze(Ae,Ze.tag);if(Je)return{open:Ze,close:Je}}},E.scanForClosingTag=function(lt,Xe,Dt,dt){var Qe=new pe(lt,Xe.line,Xe.ch,dt?{from:0,to:dt}:null);return ze(Qe,Dt)}})},89780:function(An){(function(tn,ne){An.exports=ne()})(this,function(){"use strict";var tn=navigator.userAgent,ne=navigator.platform,E=/gecko\/\d/i.test(tn),ye=/MSIE \d/.test(tn),Ee=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(tn),Ye=/Edge\/(\d+)/.exec(tn),Ce=ye||Ee||Ye,Se=Ce&&(ye?document.documentMode||6:+(Ye||Ee)[1]),pe=!Ye&&/WebKit\//.test(tn),be=pe&&/Qt\/\d+\.\d+/.test(tn),De=!Ye&&/Chrome\//.test(tn),Pe=/Opera\//.test(tn),et=/Apple Computer/.test(navigator.vendor),Fe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(tn),Ie=/PhantomJS/.test(tn),tt=!Ye&&/AppleWebKit/.test(tn)&&/Mobile\/\w+/.test(tn),ze=/Android/.test(tn),We=tt||ze||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(tn),lt=tt||/Mac/.test(ne),Xe=/\bCrOS\b/.test(tn),Dt=/win/i.test(ne),dt=Pe&&tn.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(Pe=!1,pe=!0);var Qe=lt&&(be||Pe&&(dt==null||dt<12.11)),Ze=E||Ce&&Se>=9;function Ae(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var Je=function(x,ee){var ie=x.className,re=Ae(ee).exec(ie);if(re){var le=ie.slice(re.index+re[0].length);x.className=ie.slice(0,re.index)+(le?re[1]+le:"")}};function Re(x){for(var ee=x.childNodes.length;ee>0;--ee)x.removeChild(x.firstChild);return x}function vt(x,ee){return Re(x).appendChild(ee)}function $e(x,ee,ie,re){var le=document.createElement(x);if(ie&&(le.className=ie),re&&(le.style.cssText=re),typeof ee=="string")le.appendChild(document.createTextNode(ee));else if(ee)for(var ge=0;ge<ee.length;++ge)le.appendChild(ee[ge]);return le}function mt(x,ee,ie,re){var le=$e(x,ee,ie,re);return le.setAttribute("role","presentation"),le}var Be;document.createRange?Be=function(x,ee,ie,re){var le=document.createRange();return le.setEnd(re||x,ie),le.setStart(x,ee),le}:Be=function(x,ee,ie){var re=document.body.createTextRange();try{re.moveToElementText(x.parentNode)}catch(le){return re}return re.collapse(!0),re.moveEnd("character",ie),re.moveStart("character",ee),re};function xt(x,ee){if(ee.nodeType==3&&(ee=ee.parentNode),x.contains)return x.contains(ee);do if(ee.nodeType==11&&(ee=ee.host),ee==x)return!0;while(ee=ee.parentNode)}function Ve(){var x;try{x=document.activeElement}catch(ee){x=document.body||null}for(;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;return x}function Ot(x,ee){var ie=x.className;Ae(ee).test(ie)||(x.className+=(ie?" ":"")+ee)}function nt(x,ee){for(var ie=x.split(" "),re=0;re<ie.length;re++)ie[re]&&!Ae(ie[re]).test(ee)&&(ee+=" "+ie[re]);return ee}var wt=function(x){x.select()};tt?wt=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:Ce&&(wt=function(x){try{x.select()}catch(ee){}});function Mt(x){var ee=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,ee)}}function at(x,ee,ie){ee||(ee={});for(var re in x)x.hasOwnProperty(re)&&(ie!==!1||!ee.hasOwnProperty(re))&&(ee[re]=x[re]);return ee}function Le(x,ee,ie,re,le){ee==null&&(ee=x.search(/[^\s\u00a0]/),ee==-1&&(ee=x.length));for(var ge=re||0,_e=le||0;;){var it=x.indexOf(" ",ge);if(it<0||it>=ee)return _e+(ee-ge);_e+=it-ge,_e+=ie-_e%ie,ge=it+1}}var Me=function(){this.id=null,this.f=null,this.time=0,this.handler=Mt(this.onTimeout,this)};Me.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},Me.prototype.set=function(x,ee){this.f=ee;var ie=+new Date+x;(!this.id||ie<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=ie)};function st(x,ee){for(var ie=0;ie<x.length;++ie)if(x[ie]==ee)return ie;return-1}var Ht=50,Tt={toString:function(){return"CodeMirror.Pass"}},ct={scroll:!1},Ct={origin:"*mouse"},Zt={origin:"+move"};function gn(x,ee,ie){for(var re=0,le=0;;){var ge=x.indexOf(" ",re);ge==-1&&(ge=x.length);var _e=ge-re;if(ge==x.length||le+_e>=ee)return re+Math.min(_e,ee-le);if(le+=ge-re,le+=ie-le%ie,re=ge+1,le>=ee)return re}}var $t=[""];function Wt(x){for(;$t.length<=x;)$t.push(on($t)+" ");return $t[x]}function on(x){return x[x.length-1]}function dn(x,ee){for(var ie=[],re=0;re<x.length;re++)ie[re]=ee(x[re],re);return ie}function ln(x,ee,ie){for(var re=0,le=ie(ee);re<x.length&&ie(x[re])<=le;)re++;x.splice(re,0,ee)}function xe(){}function fe(x,ee){var ie;return Object.create?ie=Object.create(x):(xe.prototype=x,ie=new xe),ee&&at(ee,ie),ie}var ue=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function he(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||ue.test(x))}function me(x,ee){return ee?ee.source.indexOf("\\w")>-1&&he(x)?!0:ee.test(x):he(x)}function oe(x){for(var ee in x)if(x.hasOwnProperty(ee)&&x[ee])return!1;return!0}var Ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function At(x){return x.charCodeAt(0)>=768&&Ne.test(x)}function Ge(x,ee,ie){for(;(ie<0?ee>0:ee<x.length)&&At(x.charAt(ee));)ee+=ie;return ee}function je(x,ee,ie){for(var re=ee>ie?-1:1;;){if(ee==ie)return ee;var le=(ee+ie)/2,ge=re<0?Math.ceil(le):Math.floor(le);if(ge==ee)return x(ge)?ee:ie;x(ge)?ie=ge:ee=ge+re}}function Pt(x,ee,ie,re){if(!x)return re(ee,ie,"ltr",0);for(var le=!1,ge=0;ge<x.length;++ge){var _e=x[ge];(_e.from<ie&&_e.to>ee||ee==ie&&_e.to==ee)&&(re(Math.max(_e.from,ee),Math.min(_e.to,ie),_e.level==1?"rtl":"ltr",ge),le=!0)}le||re(ee,ie,"ltr")}var Et=null;function ht(x,ee,ie){var re;Et=null;for(var le=0;le<x.length;++le){var ge=x[le];if(ge.from<ee&&ge.to>ee)return le;ge.to==ee&&(ge.from!=ge.to&&ie=="before"?re=le:Et=le),ge.from==ee&&(ge.from!=ge.to&&ie!="before"?re=le:Et=le)}return re!=null?re:Et}var Kt=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ee="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ie(Ft){return Ft<=247?x.charAt(Ft):1424<=Ft&&Ft<=1524?"R":1536<=Ft&&Ft<=1785?ee.charAt(Ft-1536):1774<=Ft&&Ft<=2220?"r":8192<=Ft&&Ft<=8203?"w":Ft==8204?"b":"L"}var re=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,le=/[stwN]/,ge=/[LRr]/,_e=/[Lb1n]/,it=/[1n]/;function bt(Ft,xn,Ln){this.level=Ft,this.from=xn,this.to=Ln}return function(Ft,xn){var Ln=xn=="ltr"?"L":"R";if(Ft.length==0||xn=="ltr"&&!re.test(Ft))return!1;for(var wr=Ft.length,mr=[],di=0;di<wr;++di)mr.push(ie(Ft.charCodeAt(di)));for(var zi=0,da=Ln;zi<wr;++zi){var La=mr[zi];La=="m"?mr[zi]=da:da=La}for(var Ra=0,Da=Ln;Ra<wr;++Ra){var Va=mr[Ra];Va=="1"&&Da=="r"?mr[Ra]="n":ge.test(Va)&&(Da=Va,Va=="r"&&(mr[Ra]="R"))}for(var Mo=1,Oo=mr[0];Mo<wr-1;++Mo){var al=mr[Mo];al=="+"&&Oo=="1"&&mr[Mo+1]=="1"?mr[Mo]="1":al==","&&Oo==mr[Mo+1]&&(Oo=="1"||Oo=="n")&&(mr[Mo]=Oo),Oo=al}for(var Vl=0;Vl<wr;++Vl){var _s=mr[Vl];if(_s==",")mr[Vl]="N";else if(_s=="%"){var vs=void 0;for(vs=Vl+1;vs<wr&&mr[vs]=="%";++vs);for(var ou=Vl&&mr[Vl-1]=="!"||vs<wr&&mr[vs]=="1"?"1":"N",lu=Vl;lu<vs;++lu)mr[lu]=ou;Vl=vs-1}}for(var Ss=0,su=Ln;Ss<wr;++Ss){var Go=mr[Ss];su=="L"&&Go=="1"?mr[Ss]="L":ge.test(Go)&&(su=Go)}for(var cs=0;cs<wr;++cs)if(le.test(mr[cs])){var ds=void 0;for(ds=cs+1;ds<wr&&le.test(mr[ds]);++ds);for(var bs=(cs?mr[cs-1]:Ln)=="L",As=(ds<wr?mr[ds]:Ln)=="L",Oc=bs==As?bs?"L":"R":Ln,bu=cs;bu<ds;++bu)mr[bu]=Oc;cs=ds-1}for(var Ts=[],se,de=0;de<wr;)if(_e.test(mr[de])){var ve=de;for(++de;de<wr&&_e.test(mr[de]);++de);Ts.push(new bt(0,ve,de))}else{var Oe=de,ft=Ts.length,pt=xn=="rtl"?1:0;for(++de;de<wr&&mr[de]!="L";++de);for(var St=Oe;St<de;)if(it.test(mr[St])){Oe<St&&(Ts.splice(ft,0,new bt(1,Oe,St)),ft+=pt);var Lt=St;for(++St;St<de&&it.test(mr[St]);++St);Ts.splice(ft,0,new bt(2,Lt,St)),ft+=pt,Oe=St}else++St;Oe<de&&Ts.splice(ft,0,new bt(1,Oe,de))}return xn=="ltr"&&(Ts[0].level==1&&(se=Ft.match(/^\s+/))&&(Ts[0].from=se[0].length,Ts.unshift(new bt(0,0,se[0].length))),on(Ts).level==1&&(se=Ft.match(/\s+$/))&&(on(Ts).to-=se[0].length,Ts.push(new bt(0,wr-se[0].length,wr)))),xn=="rtl"?Ts.reverse():Ts}}();function vn(x,ee){var ie=x.order;return ie==null&&(ie=x.order=Kt(x.text,ee)),ie}var kt=[],Ut=function(x,ee,ie){if(x.addEventListener)x.addEventListener(ee,ie,!1);else if(x.attachEvent)x.attachEvent("on"+ee,ie);else{var re=x._handlers||(x._handlers={});re[ee]=(re[ee]||kt).concat(ie)}};function yn(x,ee){return x._handlers&&x._handlers[ee]||kt}function Bt(x,ee,ie){if(x.removeEventListener)x.removeEventListener(ee,ie,!1);else if(x.detachEvent)x.detachEvent("on"+ee,ie);else{var re=x._handlers,le=re&&re[ee];if(le){var ge=st(le,ie);ge>-1&&(re[ee]=le.slice(0,ge).concat(le.slice(ge+1)))}}}function Ke(x,ee){var ie=yn(x,ee);if(ie.length)for(var re=Array.prototype.slice.call(arguments,2),le=0;le<ie.length;++le)ie[le].apply(null,re)}function gt(x,ee,ie){return typeof ee=="string"&&(ee={type:ee,preventDefault:function(){this.defaultPrevented=!0}}),Ke(x,ie||ee.type,x,ee),Rn(ee)||ee.codemirrorIgnore}function Vt(x){var ee=x._handlers&&x._handlers.cursorActivity;if(ee)for(var ie=x.curOp.cursorActivityHandlers||(x.curOp.cursorActivityHandlers=[]),re=0;re<ee.length;++re)st(ie,ee[re])==-1&&ie.push(ee[re])}function Nt(x,ee){return yn(x,ee).length>0}function Xt(x){x.prototype.on=function(ee,ie){Ut(this,ee,ie)},x.prototype.off=function(ee,ie){Bt(this,ee,ie)}}function Mn(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function Tn(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function Rn(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function ur(x){Mn(x),Tn(x)}function vr(x){return x.target||x.srcElement}function dr(x){var ee=x.which;return ee==null&&(x.button&1?ee=1:x.button&2?ee=3:x.button&4&&(ee=2)),lt&&x.ctrlKey&&ee==1&&(ee=3),ee}var mn=function(){if(Ce&&Se<9)return!1;var x=$e("div");return"draggable"in x||"dragDrop"in x}(),zn;function jn(x){if(zn==null){var ee=$e("span","\u200B");vt(x,$e("span",[ee,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(zn=ee.offsetWidth<=1&&ee.offsetHeight>2&&!(Ce&&Se<8))}var ie=zn?$e("span","\u200B"):$e("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ie.setAttribute("cm-text",""),ie}var Xn;function Sr(x){if(Xn!=null)return Xn;var ee=vt(x,document.createTextNode("A\u062EA")),ie=Be(ee,0,1).getBoundingClientRect(),re=Be(ee,1,2).getBoundingClientRect();return Re(x),!ie||ie.left==ie.right?!1:Xn=re.right-ie.right<3}var Kr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(x){for(var ee=0,ie=[],re=x.length;ee<=re;){var le=x.indexOf(`
|
|
|
`,ee);le==-1&&(le=x.length);var ge=x.slice(ee,x.charAt(le-1)=="\r"?le-1:le),_e=ge.indexOf("\r");_e!=-1?(ie.push(ge.slice(0,_e)),ee+=_e+1):(ie.push(ge),ee=le+1)}return ie}:function(x){return x.split(/\r\n?|\n/)},ar=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(ee){return!1}}:function(x){var ee;try{ee=x.ownerDocument.selection.createRange()}catch(ie){}return!ee||ee.parentElement()!=x?!1:ee.compareEndPoints("StartToEnd",ee)!=0},Zn=function(){var x=$e("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),Wr=null;function Gt(x){if(Wr!=null)return Wr;var ee=vt(x,$e("span","x")),ie=ee.getBoundingClientRect(),re=Be(ee,0,1).getBoundingClientRect();return Wr=Math.abs(ie.left-re.left)>1}var or={},er={};function Kn(x,ee){arguments.length>2&&(ee.dependencies=Array.prototype.slice.call(arguments,2)),or[x]=ee}function En(x,ee){er[x]=ee}function nr(x){if(typeof x=="string"&&er.hasOwnProperty(x))x=er[x];else if(x&&typeof x.name=="string"&&er.hasOwnProperty(x.name)){var ee=er[x.name];typeof ee=="string"&&(ee={name:ee}),x=fe(ee,x),x.name=ee.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return nr("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return nr("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function lr(x,ee){ee=nr(ee);var ie=or[ee.name];if(!ie)return lr(x,"text/plain");var re=ie(x,ee);if(xr.hasOwnProperty(ee.name)){var le=xr[ee.name];for(var ge in le)le.hasOwnProperty(ge)&&(re.hasOwnProperty(ge)&&(re["_"+ge]=re[ge]),re[ge]=le[ge])}if(re.name=ee.name,ee.helperType&&(re.helperType=ee.helperType),ee.modeProps)for(var _e in ee.modeProps)re[_e]=ee.modeProps[_e];return re}var xr={};function jt(x,ee){var ie=xr.hasOwnProperty(x)?xr[x]:xr[x]={};at(ee,ie)}function Ue(x,ee){if(ee===!0)return ee;if(x.copyState)return x.copyState(ee);var ie={};for(var re in ee){var le=ee[re];le instanceof Array&&(le=le.concat([])),ie[re]=le}return ie}function yt(x,ee){for(var ie;x.innerMode&&(ie=x.innerMode(ee),!(!ie||ie.mode==x));)ee=ie.state,x=ie.mode;return ie||{mode:x,state:ee}}function ut(x,ee,ie){return x.startState?x.startState(ee,ie):!0}var rt=function(x,ee,ie){this.pos=this.start=0,this.string=x,this.tabSize=ee||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ie};rt.prototype.eol=function(){return this.pos>=this.string.length},rt.prototype.sol=function(){return this.pos==this.lineStart},rt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},rt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},rt.prototype.eat=function(x){var ee=this.string.charAt(this.pos),ie;if(typeof x=="string"?ie=ee==x:ie=ee&&(x.test?x.test(ee):x(ee)),ie)return++this.pos,ee},rt.prototype.eatWhile=function(x){for(var ee=this.pos;this.eat(x););return this.pos>ee},rt.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},rt.prototype.skipToEnd=function(){this.pos=this.string.length},rt.prototype.skipTo=function(x){var ee=this.string.indexOf(x,this.pos);if(ee>-1)return this.pos=ee,!0},rt.prototype.backUp=function(x){this.pos-=x},rt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Le(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},rt.prototype.indentation=function(){return Le(this.string,null,this.tabSize)-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},rt.prototype.match=function(x,ee,ie){if(typeof x=="string"){var re=function(_e){return ie?_e.toLowerCase():_e},le=this.string.substr(this.pos,x.length);if(re(le)==re(x))return ee!==!1&&(this.pos+=x.length),!0}else{var ge=this.string.slice(this.pos).match(x);return ge&&ge.index>0?null:(ge&&ee!==!1&&(this.pos+=ge[0].length),ge)}},rt.prototype.current=function(){return this.string.slice(this.start,this.pos)},rt.prototype.hideFirstChars=function(x,ee){this.lineStart+=x;try{return ee()}finally{this.lineStart-=x}},rt.prototype.lookAhead=function(x){var ee=this.lineOracle;return ee&&ee.lookAhead(x)},rt.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function _t(x,ee){if(ee-=x.first,ee<0||ee>=x.size)throw new Error("There is no line "+(ee+x.first)+" in the document.");for(var ie=x;!ie.lines;)for(var re=0;;++re){var le=ie.children[re],ge=le.chunkSize();if(ee<ge){ie=le;break}ee-=ge}return ie.lines[ee]}function Qt(x,ee,ie){var re=[],le=ee.line;return x.iter(ee.line,ie.line+1,function(ge){var _e=ge.text;le==ie.line&&(_e=_e.slice(0,ie.ch)),le==ee.line&&(_e=_e.slice(ee.ch)),re.push(_e),++le}),re}function pn(x,ee,ie){var re=[];return x.iter(ee,ie,function(le){re.push(le.text)}),re}function sn(x,ee){var ie=ee-x.height;if(ie)for(var re=x;re;re=re.parent)re.height+=ie}function Bn(x){if(x.parent==null)return null;for(var ee=x.parent,ie=st(ee.lines,x),re=ee.parent;re;ee=re,re=re.parent)for(var le=0;re.children[le]!=ee;++le)ie+=re.children[le].chunkSize();return ie+ee.first}function Yn(x,ee){var ie=x.first;e:do{for(var re=0;re<x.children.length;++re){var le=x.children[re],ge=le.height;if(ee<ge){x=le;continue e}ee-=ge,ie+=le.chunkSize()}return ie}while(!x.lines);for(var _e=0;_e<x.lines.length;++_e){var it=x.lines[_e],bt=it.height;if(ee<bt)break;ee-=bt}return ie+_e}function cr(x,ee){return ee>=x.first&&ee<x.first+x.size}function $n(x,ee){return String(x.lineNumberFormatter(ee+x.firstLineNumber))}function en(x,ee,ie){if(ie===void 0&&(ie=null),!(this instanceof en))return new en(x,ee,ie);this.line=x,this.ch=ee,this.sticky=ie}function rn(x,ee){return x.line-ee.line||x.ch-ee.ch}function Or(x,ee){return x.sticky==ee.sticky&&rn(x,ee)==0}function kr(x){return en(x.line,x.ch)}function Cr(x,ee){return rn(x,ee)<0?ee:x}function Dr(x,ee){return rn(x,ee)<0?x:ee}function qr(x,ee){return Math.max(x.first,Math.min(ee,x.first+x.size-1))}function br(x,ee){if(ee.line<x.first)return en(x.first,0);var ie=x.first+x.size-1;return ee.line>ie?en(ie,_t(x,ie).text.length):fi(ee,_t(x,ee.line).text.length)}function fi(x,ee){var ie=x.ch;return ie==null||ie>ee?en(x.line,ee):ie<0?en(x.line,0):x}function Jt(x,ee){for(var ie=[],re=0;re<ee.length;re++)ie[re]=br(x,ee[re]);return ie}var On=function(x,ee){this.state=x,this.lookAhead=ee},Hn=function(x,ee,ie,re){this.state=ee,this.doc=x,this.line=ie,this.maxLookAhead=re||0,this.baseTokens=null,this.baseTokenPos=1};Hn.prototype.lookAhead=function(x){var ee=this.doc.getLine(this.line+x);return ee!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),ee},Hn.prototype.baseToken=function(x){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=x;)this.baseTokenPos+=2;var ee=this.baseTokens[this.baseTokenPos+1];return{type:ee&&ee.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-x}},Hn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Hn.fromSaved=function(x,ee,ie){return ee instanceof On?new Hn(x,Ue(x.mode,ee.state),ie,ee.lookAhead):new Hn(x,Ue(x.mode,ee),ie)},Hn.prototype.save=function(x){var ee=x!==!1?Ue(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new On(ee,this.maxLookAhead):ee};function qn(x,ee,ie,re){var le=[x.state.modeGen],ge={};Ri(x,ee.text,x.doc.mode,ie,function(Ft,xn){return le.push(Ft,xn)},ge,re);for(var _e=ie.state,it=function(Ft){ie.baseTokens=le;var xn=x.state.overlays[Ft],Ln=1,wr=0;ie.state=!0,Ri(x,ee.text,xn.mode,ie,function(mr,di){for(var zi=Ln;wr<mr;){var da=le[Ln];da>mr&&le.splice(Ln,1,mr,le[Ln+1],da),Ln+=2,wr=Math.min(mr,da)}if(di)if(xn.opaque)le.splice(zi,Ln-zi,mr,"overlay "+di),Ln=zi+2;else for(;zi<Ln;zi+=2){var La=le[zi+1];le[zi+1]=(La?La+" ":"")+"overlay "+di}},ge),ie.state=_e,ie.baseTokens=null,ie.baseTokenPos=1},bt=0;bt<x.state.overlays.length;++bt)it(bt);return{styles:le,classes:ge.bgClass||ge.textClass?ge:null}}function kn(x,ee,ie){if(!ee.styles||ee.styles[0]!=x.state.modeGen){var re=Vn(x,Bn(ee)),le=ee.text.length>x.options.maxHighlightLength&&Ue(x.doc.mode,re.state),ge=qn(x,ee,re);le&&(re.state=le),ee.stateAfter=re.save(!le),ee.styles=ge.styles,ge.classes?ee.styleClasses=ge.classes:ee.styleClasses&&(ee.styleClasses=null),ie===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return ee.styles}function Vn(x,ee,ie){var re=x.doc,le=x.display;if(!re.mode.startState)return new Hn(re,!0,ee);var ge=Si(x,ee,ie),_e=ge>re.first&&_t(re,ge-1).stateAfter,it=_e?Hn.fromSaved(re,_e,ge):new Hn(re,ut(re.mode),ge);return re.iter(ge,ee,function(bt){Pn(x,bt.text,it);var Ft=it.line;bt.stateAfter=Ft==ee-1||Ft%5==0||Ft>=le.viewFrom&&Ft<le.viewTo?it.save():null,it.nextLine()}),ie&&(re.modeFrontier=it.line),it}function Pn(x,ee,ie,re){var le=x.doc.mode,ge=new rt(ee,x.options.tabSize,ie);for(ge.start=ge.pos=re||0,ee==""&&fr(le,ie.state);!ge.eol();)Pr(le,ge,ie.state),ge.start=ge.pos}function fr(x,ee){if(x.blankLine)return x.blankLine(ee);if(x.innerMode){var ie=yt(x,ee);if(ie.mode.blankLine)return ie.mode.blankLine(ie.state)}}function Pr(x,ee,ie,re){for(var le=0;le<10;le++){re&&(re[0]=yt(x,ie).mode);var ge=x.token(ee,ie);if(ee.pos>ee.start)return ge}throw new Error("Mode "+x.name+" failed to advance stream.")}var Gr=function(x,ee,ie){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=ee||null,this.state=ie};function pi(x,ee,ie,re){var le=x.doc,ge=le.mode,_e;ee=br(le,ee);var it=_t(le,ee.line),bt=Vn(x,ee.line,ie),Ft=new rt(it.text,x.options.tabSize,bt),xn;for(re&&(xn=[]);(re||Ft.pos<ee.ch)&&!Ft.eol();)Ft.start=Ft.pos,_e=Pr(ge,Ft,bt.state),re&&xn.push(new Gr(Ft,_e,Ue(le.mode,bt.state)));return re?xn:new Gr(Ft,_e,bt.state)}function gi(x,ee){if(x)for(;;){var ie=x.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ie)break;x=x.slice(0,ie.index)+x.slice(ie.index+ie[0].length);var re=ie[1]?"bgClass":"textClass";ee[re]==null?ee[re]=ie[2]:new RegExp("(?:^|\\s)"+ie[2]+"(?:$|\\s)").test(ee[re])||(ee[re]+=" "+ie[2])}return x}function Ri(x,ee,ie,re,le,ge,_e){var it=ie.flattenSpans;it==null&&(it=x.options.flattenSpans);var bt=0,Ft=null,xn=new rt(ee,x.options.tabSize,re),Ln,wr=x.options.addModeClass&&[null];for(ee==""&&gi(fr(ie,re.state),ge);!xn.eol();){if(xn.pos>x.options.maxHighlightLength?(it=!1,_e&&Pn(x,ee,re,xn.pos),xn.pos=ee.length,Ln=null):Ln=gi(Pr(ie,xn,re.state,wr),ge),wr){var mr=wr[0].name;mr&&(Ln="m-"+(Ln?mr+" "+Ln:mr))}if(!it||Ft!=Ln){for(;bt<xn.start;)bt=Math.min(xn.start,bt+5e3),le(bt,Ft);Ft=Ln}xn.start=xn.pos}for(;bt<xn.pos;){var di=Math.min(xn.pos,bt+5e3);le(di,Ft),bt=di}}function Si(x,ee,ie){for(var re,le,ge=x.doc,_e=ie?-1:ee-(x.doc.mode.innerMode?1e3:100),it=ee;it>_e;--it){if(it<=ge.first)return ge.first;var bt=_t(ge,it-1),Ft=bt.stateAfter;if(Ft&&(!ie||it+(Ft instanceof On?Ft.lookAhead:0)<=ge.modeFrontier))return it;var xn=Le(bt.text,null,x.options.tabSize);(le==null||re>xn)&&(le=it-1,re=xn)}return le}function wi(x,ee){if(x.modeFrontier=Math.min(x.modeFrontier,ee),!(x.highlightFrontier<ee-10)){for(var ie=x.first,re=ee-1;re>ie;re--){var le=_t(x,re).stateAfter;if(le&&(!(le instanceof On)||re+le.lookAhead<ee)){ie=re+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,ie)}}var Zi=!1,ji=!1;function Gi(){Zi=!0}function Bi(){ji=!0}function Di(x,ee,ie){this.marker=x,this.from=ee,this.to=ie}function zr(x,ee){if(x)for(var ie=0;ie<x.length;++ie){var re=x[ie];if(re.marker==ee)return re}}function li(x,ee){for(var ie,re=0;re<x.length;++re)x[re]!=ee&&(ie||(ie=[])).push(x[re]);return ie}function Ii(x,ee){x.markedSpans=x.markedSpans?x.markedSpans.concat([ee]):[ee],ee.marker.attachLine(x)}function ya(x,ee,ie){var re;if(x)for(var le=0;le<x.length;++le){var ge=x[le],_e=ge.marker,it=ge.from==null||(_e.inclusiveLeft?ge.from<=ee:ge.from<ee);if(it||ge.from==ee&&_e.type=="bookmark"&&(!ie||!ge.marker.insertLeft)){var bt=ge.to==null||(_e.inclusiveRight?ge.to>=ee:ge.to>ee);(re||(re=[])).push(new Di(_e,ge.from,bt?null:ge.to))}}return re}function vi(x,ee,ie){var re;if(x)for(var le=0;le<x.length;++le){var ge=x[le],_e=ge.marker,it=ge.to==null||(_e.inclusiveRight?ge.to>=ee:ge.to>ee);if(it||ge.from==ee&&_e.type=="bookmark"&&(!ie||ge.marker.insertLeft)){var bt=ge.from==null||(_e.inclusiveLeft?ge.from<=ee:ge.from<ee);(re||(re=[])).push(new Di(_e,bt?null:ge.from-ee,ge.to==null?null:ge.to-ee))}}return re}function jr(x,ee){if(ee.full)return null;var ie=cr(x,ee.from.line)&&_t(x,ee.from.line).markedSpans,re=cr(x,ee.to.line)&&_t(x,ee.to.line).markedSpans;if(!ie&&!re)return null;var le=ee.from.ch,ge=ee.to.ch,_e=rn(ee.from,ee.to)==0,it=ya(ie,le,_e),bt=vi(re,ge,_e),Ft=ee.text.length==1,xn=on(ee.text).length+(Ft?le:0);if(it)for(var Ln=0;Ln<it.length;++Ln){var wr=it[Ln];if(wr.to==null){var mr=zr(bt,wr.marker);mr?Ft&&(wr.to=mr.to==null?null:mr.to+xn):wr.to=le}}if(bt)for(var di=0;di<bt.length;++di){var zi=bt[di];if(zi.to!=null&&(zi.to+=xn),zi.from==null){var da=zr(it,zi.marker);da||(zi.from=xn,Ft&&(it||(it=[])).push(zi))}else zi.from+=xn,Ft&&(it||(it=[])).push(zi)}it&&(it=Ir(it)),bt&&bt!=it&&(bt=Ir(bt));var La=[it];if(!Ft){var Ra=ee.text.length-2,Da;if(Ra>0&&it)for(var Va=0;Va<it.length;++Va)it[Va].to==null&&(Da||(Da=[])).push(new Di(it[Va].marker,null,null));for(var Mo=0;Mo<Ra;++Mo)La.push(Da);La.push(bt)}return La}function Ir(x){for(var ee=0;ee<x.length;++ee){var ie=x[ee];ie.from!=null&&ie.from==ie.to&&ie.marker.clearWhenEmpty!==!1&&x.splice(ee--,1)}return x.length?x:null}function Vi(x,ee,ie){var re=null;if(x.iter(ee.line,ie.line+1,function(mr){if(mr.markedSpans)for(var di=0;di<mr.markedSpans.length;++di){var zi=mr.markedSpans[di].marker;zi.readOnly&&(!re||st(re,zi)==-1)&&(re||(re=[])).push(zi)}}),!re)return null;for(var le=[{from:ee,to:ie}],ge=0;ge<re.length;++ge)for(var _e=re[ge],it=_e.find(0),bt=0;bt<le.length;++bt){var Ft=le[bt];if(!(rn(Ft.to,it.from)<0||rn(Ft.from,it.to)>0)){var xn=[bt,1],Ln=rn(Ft.from,it.from),wr=rn(Ft.to,it.to);(Ln<0||!_e.inclusiveLeft&&!Ln)&&xn.push({from:Ft.from,to:it.from}),(wr>0||!_e.inclusiveRight&&!wr)&&xn.push({from:it.to,to:Ft.to}),le.splice.apply(le,xn),bt+=xn.length-3}}return le}function xi(x){var ee=x.markedSpans;if(ee){for(var ie=0;ie<ee.length;++ie)ee[ie].marker.detachLine(x);x.markedSpans=null}}function na(x,ee){if(ee){for(var ie=0;ie<ee.length;++ie)ee[ie].marker.attachLine(x);x.markedSpans=ee}}function ba(x){return x.inclusiveLeft?-1:0}function oa(x){return x.inclusiveRight?1:0}function xa(x,ee){var ie=x.lines.length-ee.lines.length;if(ie!=0)return ie;var re=x.find(),le=ee.find(),ge=rn(re.from,le.from)||ba(x)-ba(ee);if(ge)return-ge;var _e=rn(re.to,le.to)||oa(x)-oa(ee);return _e||ee.id-x.id}function Na(x,ee){var ie=ji&&x.markedSpans,re;if(ie)for(var le=void 0,ge=0;ge<ie.length;++ge)le=ie[ge],le.marker.collapsed&&(ee?le.from:le.to)==null&&(!re||xa(re,le.marker)<0)&&(re=le.marker);return re}function Po(x){return Na(x,!0)}function ki(x){return Na(x,!1)}function Hi(x,ee){var ie=ji&&x.markedSpans,re;if(ie)for(var le=0;le<ie.length;++le){var ge=ie[le];ge.marker.collapsed&&(ge.from==null||ge.from<ee)&&(ge.to==null||ge.to>ee)&&(!re||xa(re,ge.marker)<0)&&(re=ge.marker)}return re}function Aa(x,ee,ie,re,le){var ge=_t(x,ee),_e=ji&&ge.markedSpans;if(_e)for(var it=0;it<_e.length;++it){var bt=_e[it];if(bt.marker.collapsed){var Ft=bt.marker.find(0),xn=rn(Ft.from,ie)||ba(bt.marker)-ba(le),Ln=rn(Ft.to,re)||oa(bt.marker)-oa(le);if(!(xn>=0&&Ln<=0||xn<=0&&Ln>=0)&&(xn<=0&&(bt.marker.inclusiveRight&&le.inclusiveLeft?rn(Ft.to,ie)>=0:rn(Ft.to,ie)>0)||xn>=0&&(bt.marker.inclusiveRight&&le.inclusiveLeft?rn(Ft.from,re)<=0:rn(Ft.from,re)<0)))return!0}}}function Ma(x){for(var ee;ee=Po(x);)x=ee.find(-1,!0).line;return x}function lo(x){for(var ee;ee=ki(x);)x=ee.find(1,!0).line;return x}function hl(x){for(var ee,ie;ee=ki(x);)x=ee.find(1,!0).line,(ie||(ie=[])).push(x);return ie}function qo(x,ee){var ie=_t(x,ee),re=Ma(ie);return ie==re?ee:Bn(re)}function co(x,ee){if(ee>x.lastLine())return ee;var ie=_t(x,ee),re;if(!Ho(x,ie))return ee;for(;re=ki(ie);)ie=re.find(1,!0).line;return Bn(ie)+1}function Ho(x,ee){var ie=ji&&ee.markedSpans;if(ie){for(var re=void 0,le=0;le<ie.length;++le)if(re=ie[le],!!re.marker.collapsed){if(re.from==null)return!0;if(!re.marker.widgetNode&&re.from==0&&re.marker.inclusiveLeft&&Vo(x,ee,re))return!0}}}function Vo(x,ee,ie){if(ie.to==null){var re=ie.marker.find(1,!0);return Vo(x,re.line,zr(re.line.markedSpans,ie.marker))}if(ie.marker.inclusiveRight&&ie.to==ee.text.length)return!0;for(var le=void 0,ge=0;ge<ee.markedSpans.length;++ge)if(le=ee.markedSpans[ge],le.marker.collapsed&&!le.marker.widgetNode&&le.from==ie.to&&(le.to==null||le.to!=ie.from)&&(le.marker.inclusiveLeft||ie.marker.inclusiveRight)&&Vo(x,ee,le))return!0}function Qr(x){x=Ma(x);for(var ee=0,ie=x.parent,re=0;re<ie.lines.length;++re){var le=ie.lines[re];if(le==x)break;ee+=le.height}for(var ge=ie.parent;ge;ie=ge,ge=ie.parent)for(var _e=0;_e<ge.children.length;++_e){var it=ge.children[_e];if(it==ie)break;ee+=it.height}return ee}function Ei(x){if(x.height==0)return 0;for(var ee=x.text.length,ie,re=x;ie=Po(re);){var le=ie.find(0,!0);re=le.from.line,ee+=le.from.ch-le.to.ch}for(re=x;ie=ki(re);){var ge=ie.find(0,!0);ee-=re.text.length-ge.from.ch,re=ge.to.line,ee+=re.text.length-ge.to.ch}return ee}function ri(x){var ee=x.display,ie=x.doc;ee.maxLine=_t(ie,ie.first),ee.maxLineLength=Ei(ee.maxLine),ee.maxLineChanged=!0,ie.iter(function(re){var le=Ei(re);le>ee.maxLineLength&&(ee.maxLineLength=le,ee.maxLine=re)})}var hi=function(x,ee,ie){this.text=x,na(this,ee),this.height=ie?ie(this):1};hi.prototype.lineNo=function(){return Bn(this)},Xt(hi);function Ta(x,ee,ie,re){x.text=ee,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),xi(x),na(x,ie);var le=re?re(x):1;le!=x.height&&sn(x,le)}function vo(x){x.parent=null,xi(x)}var go={},So={};function yo(x,ee){if(!x||/^\s*$/.test(x))return null;var ie=ee.addModeClass?So:go;return ie[x]||(ie[x]=x.replace(/\S+/g,"cm-$&"))}function Lo(x,ee){var ie=mt("span",null,null,pe?"padding-right: .1px":null),re={pre:mt("pre",[ie],"CodeMirror-line"),content:ie,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};ee.measure={};for(var le=0;le<=(ee.rest?ee.rest.length:0);le++){var ge=le?ee.rest[le-1]:ee.line,_e=void 0;re.pos=0,re.addToken=ea,Sr(x.display.measure)&&(_e=vn(ge,x.doc.direction))&&(re.addToken=ol(re.addToken,_e)),re.map=[];var it=ee!=x.display.externalMeasured&&Bn(ge);Xl(ge,re,kn(x,ge,it)),ge.styleClasses&&(ge.styleClasses.bgClass&&(re.bgClass=nt(ge.styleClasses.bgClass,re.bgClass||"")),ge.styleClasses.textClass&&(re.textClass=nt(ge.styleClasses.textClass,re.textClass||""))),re.map.length==0&&re.map.push(0,0,re.content.appendChild(jn(x.display.measure))),le==0?(ee.measure.map=re.map,ee.measure.cache={}):((ee.measure.maps||(ee.measure.maps=[])).push(re.map),(ee.measure.caches||(ee.measure.caches=[])).push({}))}if(pe){var bt=re.content.lastChild;(/\bcm-tab\b/.test(bt.className)||bt.querySelector&&bt.querySelector(".cm-tab"))&&(re.content.className="cm-tab-wrap-hack")}return Ke(x,"renderLine",x,ee.line,re.pre),re.pre.className&&(re.textClass=nt(re.pre.className,re.textClass||"")),re}function nl(x){var ee=$e("span","\u2022","cm-invalidchar");return ee.title="\\u"+x.charCodeAt(0).toString(16),ee.setAttribute("aria-label",ee.title),ee}function ea(x,ee,ie,re,le,ge,_e){if(ee){var it=x.splitSpaces?gl(ee,x.trailingSpace):ee,bt=x.cm.state.specialChars,Ft=!1,xn;if(!bt.test(ee))x.col+=ee.length,xn=document.createTextNode(it),x.map.push(x.pos,x.pos+ee.length,xn),Ce&&Se<9&&(Ft=!0),x.pos+=ee.length;else{xn=document.createDocumentFragment();for(var Ln=0;;){bt.lastIndex=Ln;var wr=bt.exec(ee),mr=wr?wr.index-Ln:ee.length-Ln;if(mr){var di=document.createTextNode(it.slice(Ln,Ln+mr));Ce&&Se<9?xn.appendChild($e("span",[di])):xn.appendChild(di),x.map.push(x.pos,x.pos+mr,di),x.col+=mr,x.pos+=mr}if(!wr)break;Ln+=mr+1;var zi=void 0;if(wr[0]==" "){var da=x.cm.options.tabSize,La=da-x.col%da;zi=xn.appendChild($e("span",Wt(La),"cm-tab")),zi.setAttribute("role","presentation"),zi.setAttribute("cm-text"," "),x.col+=La}else wr[0]=="\r"||wr[0]==`
|
|
|
`?(zi=xn.appendChild($e("span",wr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),zi.setAttribute("cm-text",wr[0]),x.col+=1):(zi=x.cm.options.specialCharPlaceholder(wr[0]),zi.setAttribute("cm-text",wr[0]),Ce&&Se<9?xn.appendChild($e("span",[zi])):xn.appendChild(zi),x.col+=1);x.map.push(x.pos,x.pos+1,zi),x.pos++}}if(x.trailingSpace=it.charCodeAt(ee.length-1)==32,ie||re||le||Ft||ge||_e){var Ra=ie||"";re&&(Ra+=re),le&&(Ra+=le);var Da=$e("span",[xn],Ra,ge);if(_e)for(var Va in _e)_e.hasOwnProperty(Va)&&Va!="style"&&Va!="class"&&Da.setAttribute(Va,_e[Va]);return x.content.appendChild(Da)}x.content.appendChild(xn)}}function gl(x,ee){if(x.length>1&&!/ /.test(x))return x;for(var ie=ee,re="",le=0;le<x.length;le++){var ge=x.charAt(le);ge==" "&&ie&&(le==x.length-1||x.charCodeAt(le+1)==32)&&(ge="\xA0"),re+=ge,ie=ge==" "}return re}function ol(x,ee){return function(ie,re,le,ge,_e,it,bt){le=le?le+" cm-force-border":"cm-force-border";for(var Ft=ie.pos,xn=Ft+re.length;;){for(var Ln=void 0,wr=0;wr<ee.length&&(Ln=ee[wr],!(Ln.to>Ft&&Ln.from<=Ft));wr++);if(Ln.to>=xn)return x(ie,re,le,ge,_e,it,bt);x(ie,re.slice(0,Ln.to-Ft),le,ge,null,it,bt),ge=null,re=re.slice(Ln.to-Ft),Ft=Ln.to}}}function pl(x,ee,ie,re){var le=!re&&ie.widgetNode;le&&x.map.push(x.pos,x.pos+ee,le),!re&&x.cm.display.input.needsContentAttribute&&(le||(le=x.content.appendChild(document.createElement("span"))),le.setAttribute("cm-marker",ie.id)),le&&(x.cm.display.input.setUneditable(le),x.content.appendChild(le)),x.pos+=ee,x.trailingSpace=!1}function Xl(x,ee,ie){var re=x.markedSpans,le=x.text,ge=0;if(!re){for(var _e=1;_e<ie.length;_e+=2)ee.addToken(ee,le.slice(ge,ge=ie[_e]),yo(ie[_e+1],ee.cm.options));return}for(var it=le.length,bt=0,Ft=1,xn="",Ln,wr,mr=0,di,zi,da,La,Ra;;){if(mr==bt){di=zi=da=wr="",Ra=null,La=null,mr=1/0;for(var Da=[],Va=void 0,Mo=0;Mo<re.length;++Mo){var Oo=re[Mo],al=Oo.marker;if(al.type=="bookmark"&&Oo.from==bt&&al.widgetNode)Da.push(al);else if(Oo.from<=bt&&(Oo.to==null||Oo.to>bt||al.collapsed&&Oo.to==bt&&Oo.from==bt)){if(Oo.to!=null&&Oo.to!=bt&&mr>Oo.to&&(mr=Oo.to,zi=""),al.className&&(di+=" "+al.className),al.css&&(wr=(wr?wr+";":"")+al.css),al.startStyle&&Oo.from==bt&&(da+=" "+al.startStyle),al.endStyle&&Oo.to==mr&&(Va||(Va=[])).push(al.endStyle,Oo.to),al.title&&((Ra||(Ra={})).title=al.title),al.attributes)for(var Vl in al.attributes)(Ra||(Ra={}))[Vl]=al.attributes[Vl];al.collapsed&&(!La||xa(La.marker,al)<0)&&(La=Oo)}else Oo.from>bt&&mr>Oo.from&&(mr=Oo.from)}if(Va)for(var _s=0;_s<Va.length;_s+=2)Va[_s+1]==mr&&(zi+=" "+Va[_s]);if(!La||La.from==bt)for(var vs=0;vs<Da.length;++vs)pl(ee,0,Da[vs]);if(La&&(La.from||0)==bt){if(pl(ee,(La.to==null?it+1:La.to)-bt,La.marker,La.from==null),La.to==null)return;La.to==bt&&(La=!1)}}if(bt>=it)break;for(var ou=Math.min(it,mr);;){if(xn){var lu=bt+xn.length;if(!La){var Ss=lu>ou?xn.slice(0,ou-bt):xn;ee.addToken(ee,Ss,Ln?Ln+di:di,da,bt+Ss.length==mr?zi:"",wr,Ra)}if(lu>=ou){xn=xn.slice(ou-bt),bt=ou;break}bt=lu,da=""}xn=le.slice(ge,ge=ie[Ft++]),Ln=yo(ie[Ft++],ee.cm.options)}}}function hr(x,ee,ie){this.line=ee,this.rest=hl(ee),this.size=this.rest?Bn(on(this.rest))-ie+1:1,this.node=this.text=null,this.hidden=Ho(x,ee)}function Gn(x,ee,ie){for(var re=[],le,ge=ee;ge<ie;ge=le){var _e=new hr(x.doc,_t(x.doc,ge),ge);le=ge+_e.size,re.push(_e)}return re}var gr=null;function Vr(x){gr?gr.ops.push(x):x.ownsGroup=gr={ops:[x],delayedCallbacks:[]}}function Xr(x){var ee=x.delayedCallbacks,ie=0;do{for(;ie<ee.length;ie++)ee[ie].call(null);for(var re=0;re<x.ops.length;re++){var le=x.ops[re];if(le.cursorActivityHandlers)for(;le.cursorActivityCalled<le.cursorActivityHandlers.length;)le.cursorActivityHandlers[le.cursorActivityCalled++].call(null,le.cm)}}while(ie<ee.length)}function si(x,ee){var ie=x.ownsGroup;if(ie)try{Xr(ie)}finally{gr=null,ee(ie)}}var pr=null;function Jr(x,ee){var ie=yn(x,ee);if(ie.length){var re=Array.prototype.slice.call(arguments,2),le;gr?le=gr.delayedCallbacks:pr?le=pr:(le=pr=[],setTimeout(Li,0));for(var ge=function(it){le.push(function(){return ie[it].apply(null,re)})},_e=0;_e<ie.length;++_e)ge(_e)}}function Li(){var x=pr;pr=null;for(var ee=0;ee<x.length;++ee)x[ee]()}function Oi(x,ee,ie,re){for(var le=0;le<ee.changes.length;le++){var ge=ee.changes[le];ge=="text"?qa(x,ee):ge=="gutter"?Yi(x,ee,ie,re):ge=="class"?Ka(x,ee):ge=="widget"&&pa(x,ee,re)}ee.changes=null}function la(x){return x.node==x.text&&(x.node=$e("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),Ce&&Se<8&&(x.node.style.zIndex=2)),x.node}function mi(x,ee){var ie=ee.bgClass?ee.bgClass+" "+(ee.line.bgClass||""):ee.line.bgClass;if(ie&&(ie+=" CodeMirror-linebackground"),ee.background)ie?ee.background.className=ie:(ee.background.parentNode.removeChild(ee.background),ee.background=null);else if(ie){var re=la(ee);ee.background=re.insertBefore($e("div",null,ie),re.firstChild),x.display.input.setUneditable(ee.background)}}function Pa(x,ee){var ie=x.display.externalMeasured;return ie&&ie.line==ee.line?(x.display.externalMeasured=null,ee.measure=ie.measure,ie.built):Lo(x,ee)}function qa(x,ee){var ie=ee.text.className,re=Pa(x,ee);ee.text==ee.node&&(ee.node=re.pre),ee.text.parentNode.replaceChild(re.pre,ee.text),ee.text=re.pre,re.bgClass!=ee.bgClass||re.textClass!=ee.textClass?(ee.bgClass=re.bgClass,ee.textClass=re.textClass,Ka(x,ee)):ie&&(ee.text.className=ie)}function Ka(x,ee){mi(x,ee),ee.line.wrapClass?la(ee).className=ee.line.wrapClass:ee.node!=ee.text&&(ee.node.className="");var ie=ee.textClass?ee.textClass+" "+(ee.line.textClass||""):ee.line.textClass;ee.text.className=ie||""}function Yi(x,ee,ie,re){if(ee.gutter&&(ee.node.removeChild(ee.gutter),ee.gutter=null),ee.gutterBackground&&(ee.node.removeChild(ee.gutterBackground),ee.gutterBackground=null),ee.line.gutterClass){var le=la(ee);ee.gutterBackground=$e("div",null,"CodeMirror-gutter-background "+ee.line.gutterClass,"left: "+(x.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px; width: "+re.gutterTotalWidth+"px"),x.display.input.setUneditable(ee.gutterBackground),le.insertBefore(ee.gutterBackground,ee.text)}var ge=ee.line.gutterMarkers;if(x.options.lineNumbers||ge){var _e=la(ee),it=ee.gutter=$e("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px");if(x.display.input.setUneditable(it),_e.insertBefore(it,ee.text),ee.line.gutterClass&&(it.className+=" "+ee.line.gutterClass),x.options.lineNumbers&&(!ge||!ge["CodeMirror-linenumbers"])&&(ee.lineNumber=it.appendChild($e("div",$n(x.options,ie),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+re.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),ge)for(var bt=0;bt<x.display.gutterSpecs.length;++bt){var Ft=x.display.gutterSpecs[bt].className,xn=ge.hasOwnProperty(Ft)&&ge[Ft];xn&&it.appendChild($e("div",[xn],"CodeMirror-gutter-elt","left: "+re.gutterLeft[Ft]+"px; width: "+re.gutterWidth[Ft]+"px"))}}}function pa(x,ee,ie){ee.alignable&&(ee.alignable=null);for(var re=Ae("CodeMirror-linewidget"),le=ee.node.firstChild,ge=void 0;le;le=ge)ge=le.nextSibling,re.test(le.className)&&ee.node.removeChild(le);ro(x,ee,ie)}function eo(x,ee,ie,re){var le=Pa(x,ee);return ee.text=ee.node=le.pre,le.bgClass&&(ee.bgClass=le.bgClass),le.textClass&&(ee.textClass=le.textClass),Ka(x,ee),Yi(x,ee,ie,re),ro(x,ee,re),ee.node}function ro(x,ee,ie){if(xo(x,ee.line,ee,ie,!0),ee.rest)for(var re=0;re<ee.rest.length;re++)xo(x,ee.rest[re],ee,ie,!1)}function xo(x,ee,ie,re,le){if(ee.widgets)for(var ge=la(ie),_e=0,it=ee.widgets;_e<it.length;++_e){var bt=it[_e],Ft=$e("div",[bt.node],"CodeMirror-linewidget"+(bt.className?" "+bt.className:""));bt.handleMouseEvents||Ft.setAttribute("cm-ignore-events","true"),Wl(bt,Ft,ie,re),x.display.input.setUneditable(Ft),le&&bt.above?ge.insertBefore(Ft,ie.gutter||ie.text):ge.appendChild(Ft),Jr(bt,"redraw")}}function Wl(x,ee,ie,re){if(x.noHScroll){(ie.alignable||(ie.alignable=[])).push(ee);var le=re.wrapperWidth;ee.style.left=re.fixedPos+"px",x.coverGutter||(le-=re.gutterTotalWidth,ee.style.paddingLeft=re.gutterTotalWidth+"px"),ee.style.width=le+"px"}x.coverGutter&&(ee.style.zIndex=5,ee.style.position="relative",x.noHScroll||(ee.style.marginLeft=-re.gutterTotalWidth+"px"))}function Qo(x){if(x.height!=null)return x.height;var ee=x.doc.cm;if(!ee)return 0;if(!xt(document.body,x.node)){var ie="position: relative;";x.coverGutter&&(ie+="margin-left: -"+ee.display.gutters.offsetWidth+"px;"),x.noHScroll&&(ie+="width: "+ee.display.wrapper.clientWidth+"px;"),vt(ee.display.measure,$e("div",[x.node],null,ie))}return x.height=x.node.parentNode.offsetHeight}function Cn(x,ee){for(var ie=vr(ee);ie!=x.wrapper;ie=ie.parentNode)if(!ie||ie.nodeType==1&&ie.getAttribute("cm-ignore-events")=="true"||ie.parentNode==x.sizer&&ie!=x.mover)return!0}function wn(x){return x.lineSpace.offsetTop}function tr(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function Zr(x){if(x.cachedPaddingH)return x.cachedPaddingH;var ee=vt(x.measure,$e("pre","x","CodeMirror-line-like")),ie=window.getComputedStyle?window.getComputedStyle(ee):ee.currentStyle,re={left:parseInt(ie.paddingLeft),right:parseInt(ie.paddingRight)};return!isNaN(re.left)&&!isNaN(re.right)&&(x.cachedPaddingH=re),re}function _r(x){return Ht-x.display.nativeBarWidth}function Ar(x){return x.display.scroller.clientWidth-_r(x)-x.display.barWidth}function Mr(x){return x.display.scroller.clientHeight-_r(x)-x.display.barHeight}function Qn(x,ee,ie){var re=x.options.lineWrapping,le=re&&Ar(x);if(!ee.measure.heights||re&&ee.measure.width!=le){var ge=ee.measure.heights=[];if(re){ee.measure.width=le;for(var _e=ee.text.firstChild.getClientRects(),it=0;it<_e.length-1;it++){var bt=_e[it],Ft=_e[it+1];Math.abs(bt.bottom-Ft.bottom)>2&&ge.push((bt.bottom+Ft.top)/2-ie.top)}}ge.push(ie.bottom-ie.top)}}function Er(x,ee,ie){if(x.line==ee)return{map:x.measure.map,cache:x.measure.cache};for(var re=0;re<x.rest.length;re++)if(x.rest[re]==ee)return{map:x.measure.maps[re],cache:x.measure.caches[re]};for(var le=0;le<x.rest.length;le++)if(Bn(x.rest[le])>ie)return{map:x.measure.maps[le],cache:x.measure.caches[le],before:!0}}function Yr(x,ee){ee=Ma(ee);var ie=Bn(ee),re=x.display.externalMeasured=new hr(x.doc,ee,ie);re.lineN=ie;var le=re.built=Lo(x,re);return re.text=le.pre,vt(x.display.lineMeasure,le.pre),re}function yi(x,ee,ie,re){return Ya(x,Za(x,ee),ie,re)}function ma(x,ee){if(ee>=x.display.viewFrom&&ee<x.display.viewTo)return x.display.view[Fi(x,ee)];var ie=x.display.externalMeasured;if(ie&&ee>=ie.lineN&&ee<ie.lineN+ie.size)return ie}function Za(x,ee){var ie=Bn(ee),re=ma(x,ie);re&&!re.text?re=null:re&&re.changes&&(Oi(x,re,ie,ti(x)),x.curOp.forceUpdate=!0),re||(re=Yr(x,ee));var le=Er(re,ee,ie);return{line:ee,view:re,rect:null,map:le.map,cache:le.cache,before:le.before,hasHeights:!1}}function Ya(x,ee,ie,re,le){ee.before&&(ie=-1);var ge=ie+(re||""),_e;return ee.cache.hasOwnProperty(ge)?_e=ee.cache[ge]:(ee.rect||(ee.rect=ee.view.text.getBoundingClientRect()),ee.hasHeights||(Qn(x,ee.view,ee.rect),ee.hasHeights=!0),_e=Lr(x,ee,ie,re),_e.bogus||(ee.cache[ge]=_e)),{left:_e.left,right:_e.right,top:le?_e.rtop:_e.top,bottom:le?_e.rbottom:_e.bottom}}var to={left:0,right:0,top:0,bottom:0};function Ia(x,ee,ie){for(var re,le,ge,_e,it,bt,Ft=0;Ft<x.length;Ft+=3)if(it=x[Ft],bt=x[Ft+1],ee<it?(le=0,ge=1,_e="left"):ee<bt?(le=ee-it,ge=le+1):(Ft==x.length-3||ee==bt&&x[Ft+3]>ee)&&(ge=bt-it,le=ge-1,ee>=bt&&(_e="right")),le!=null){if(re=x[Ft+2],it==bt&&ie==(re.insertLeft?"left":"right")&&(_e=ie),ie=="left"&&le==0)for(;Ft&&x[Ft-2]==x[Ft-3]&&x[Ft-1].insertLeft;)re=x[(Ft-=3)+2],_e="left";if(ie=="right"&&le==bt-it)for(;Ft<x.length-3&&x[Ft+3]==x[Ft+4]&&!x[Ft+5].insertLeft;)re=x[(Ft+=3)+2],_e="right";break}return{node:re,start:le,end:ge,collapse:_e,coverStart:it,coverEnd:bt}}function Xi(x,ee){var ie=to;if(ee=="left")for(var re=0;re<x.length&&(ie=x[re]).left==ie.right;re++);else for(var le=x.length-1;le>=0&&(ie=x[le]).left==ie.right;le--);return ie}function Lr(x,ee,ie,re){var le=Ia(ee.map,ie,re),ge=le.node,_e=le.start,it=le.end,bt=le.collapse,Ft;if(ge.nodeType==3){for(var xn=0;xn<4;xn++){for(;_e&&At(ee.line.text.charAt(le.coverStart+_e));)--_e;for(;le.coverStart+it<le.coverEnd&&At(ee.line.text.charAt(le.coverStart+it));)++it;if(Ce&&Se<9&&_e==0&&it==le.coverEnd-le.coverStart?Ft=ge.parentNode.getBoundingClientRect():Ft=Xi(Be(ge,_e,it).getClientRects(),re),Ft.left||Ft.right||_e==0)break;it=_e,_e=_e-1,bt="right"}Ce&&Se<11&&(Ft=aa(x.display.measure,Ft))}else{_e>0&&(bt=re="right");var Ln;x.options.lineWrapping&&(Ln=ge.getClientRects()).length>1?Ft=Ln[re=="right"?Ln.length-1:0]:Ft=ge.getBoundingClientRect()}if(Ce&&Se<9&&!_e&&(!Ft||!Ft.left&&!Ft.right)){var wr=ge.parentNode.getClientRects()[0];wr?Ft={left:wr.left,right:wr.left+ir(x.display),top:wr.top,bottom:wr.bottom}:Ft=to}for(var mr=Ft.top-ee.rect.top,di=Ft.bottom-ee.rect.top,zi=(mr+di)/2,da=ee.view.measure.heights,La=0;La<da.length-1&&!(zi<da[La]);La++);var Ra=La?da[La-1]:0,Da=da[La],Va={left:(bt=="right"?Ft.right:Ft.left)-ee.rect.left,right:(bt=="left"?Ft.left:Ft.right)-ee.rect.left,top:Ra,bottom:Da};return!Ft.left&&!Ft.right&&(Va.bogus=!0),x.options.singleCursorHeightPerLine||(Va.rtop=mr,Va.rbottom=di),Va}function aa(x,ee){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Gt(x))return ee;var ie=screen.logicalXDPI/screen.deviceXDPI,re=screen.logicalYDPI/screen.deviceYDPI;return{left:ee.left*ie,right:ee.right*ie,top:ee.top*re,bottom:ee.bottom*re}}function Ba(x){if(x.measure&&(x.measure.cache={},x.measure.heights=null,x.rest))for(var ee=0;ee<x.rest.length;ee++)x.measure.caches[ee]={}}function fo(x){x.display.externalMeasure=null,Re(x.display.lineMeasure);for(var ee=0;ee<x.display.view.length;ee++)Ba(x.display.view[ee])}function no(x){fo(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function ja(){return De&&ze?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ao(){return De&&ze?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ua(x){var ee=0;if(x.widgets)for(var ie=0;ie<x.widgets.length;++ie)x.widgets[ie].above&&(ee+=Qo(x.widgets[ie]));return ee}function Ni(x,ee,ie,re,le){if(!le){var ge=Ua(ee);ie.top+=ge,ie.bottom+=ge}if(re=="line")return ie;re||(re="local");var _e=Qr(ee);if(re=="local"?_e+=wn(x.display):_e-=x.display.viewOffset,re=="page"||re=="window"){var it=x.display.lineSpace.getBoundingClientRect();_e+=it.top+(re=="window"?0:Ao());var bt=it.left+(re=="window"?0:ja());ie.left+=bt,ie.right+=bt}return ie.top+=_e,ie.bottom+=_e,ie}function Bo(x,ee,ie){if(ie=="div")return ee;var re=ee.left,le=ee.top;if(ie=="page")re-=ja(),le-=Ao();else if(ie=="local"||!ie){var ge=x.display.sizer.getBoundingClientRect();re+=ge.left,le+=ge.top}var _e=x.display.lineSpace.getBoundingClientRect();return{left:re-_e.left,top:le-_e.top}}function bo(x,ee,ie,re,le){return re||(re=_t(x.doc,ee.line)),Ni(x,re,yi(x,re,ee.ch,le),ie)}function ll(x,ee,ie,re,le,ge){re=re||_t(x.doc,ee.line),le||(le=Za(x,re));function _e(di,zi){var da=Ya(x,le,di,zi?"right":"left",ge);return zi?da.left=da.right:da.right=da.left,Ni(x,re,da,ie)}var it=vn(re,x.doc.direction),bt=ee.ch,Ft=ee.sticky;if(bt>=re.text.length?(bt=re.text.length,Ft="before"):bt<=0&&(bt=0,Ft="after"),!it)return _e(Ft=="before"?bt-1:bt,Ft=="before");function xn(di,zi,da){var La=it[zi],Ra=La.level==1;return _e(da?di-1:di,Ra!=da)}var Ln=ht(it,bt,Ft),wr=Et,mr=xn(bt,Ln,Ft=="before");return wr!=null&&(mr.other=xn(bt,wr,Ft!="before")),mr}function zl(x,ee){var ie=0;ee=br(x.doc,ee),x.options.lineWrapping||(ie=ir(x.display)*ee.ch);var re=_t(x.doc,ee.line),le=Qr(re)+wn(x.display);return{left:ie,right:ie,top:le,bottom:le+re.height}}function Yt(x,ee,ie,re,le){var ge=en(x,ee,ie);return ge.xRel=le,re&&(ge.outside=re),ge}function hn(x,ee,ie){var re=x.doc;if(ie+=x.display.viewOffset,ie<0)return Yt(re.first,0,null,-1,-1);var le=Yn(re,ie),ge=re.first+re.size-1;if(le>ge)return Yt(re.first+re.size-1,_t(re,ge).text.length,null,1,1);ee<0&&(ee=0);for(var _e=_t(re,le);;){var it=Br(x,_e,le,ee,ie),bt=Hi(_e,it.ch+(it.xRel>0||it.outside>0?1:0));if(!bt)return it;var Ft=bt.find(1);if(Ft.line==le)return Ft;_e=_t(re,le=Ft.line)}}function bn(x,ee,ie,re){re-=Ua(ee);var le=ee.text.length,ge=je(function(_e){return Ya(x,ie,_e-1).bottom<=re},le,0);return le=je(function(_e){return Ya(x,ie,_e).top>re},ge,le),{begin:ge,end:le}}function rr(x,ee,ie,re){ie||(ie=Za(x,ee));var le=Ni(x,ee,Ya(x,ie,re),"line").top;return bn(x,ee,ie,le)}function Ki(x,ee,ie,re){return x.bottom<=ie?!1:x.top>ie?!0:(re?x.left:x.right)>ee}function Br(x,ee,ie,re,le){le-=Qr(ee);var ge=Za(x,ee),_e=Ua(ee),it=0,bt=ee.text.length,Ft=!0,xn=vn(ee,x.doc.direction);if(xn){var Ln=(x.options.lineWrapping?ei:ai)(x,ee,ie,ge,xn,re,le);Ft=Ln.level!=1,it=Ft?Ln.from:Ln.to-1,bt=Ft?Ln.to:Ln.from-1}var wr=null,mr=null,di=je(function(Mo){var Oo=Ya(x,ge,Mo);return Oo.top+=_e,Oo.bottom+=_e,Ki(Oo,re,le,!1)?(Oo.top<=le&&Oo.left<=re&&(wr=Mo,mr=Oo),!0):!1},it,bt),zi,da,La=!1;if(mr){var Ra=re-mr.left<mr.right-re,Da=Ra==Ft;di=wr+(Da?0:1),da=Da?"after":"before",zi=Ra?mr.left:mr.right}else{!Ft&&(di==bt||di==it)&&di++,da=di==0?"after":di==ee.text.length?"before":Ya(x,ge,di-(Ft?1:0)).bottom+_e<=le==Ft?"after":"before";var Va=ll(x,en(ie,di,da),"line",ee,ge);zi=Va.left,La=le<Va.top?-1:le>=Va.bottom?1:0}return di=Ge(ee.text,di,1),Yt(ie,di,da,La,re-zi)}function ai(x,ee,ie,re,le,ge,_e){var it=je(function(Ln){var wr=le[Ln],mr=wr.level!=1;return Ki(ll(x,en(ie,mr?wr.to:wr.from,mr?"before":"after"),"line",ee,re),ge,_e,!0)},0,le.length-1),bt=le[it];if(it>0){var Ft=bt.level!=1,xn=ll(x,en(ie,Ft?bt.from:bt.to,Ft?"after":"before"),"line",ee,re);Ki(xn,ge,_e,!0)&&xn.top>_e&&(bt=le[it-1])}return bt}function ei(x,ee,ie,re,le,ge,_e){var it=bn(x,ee,re,_e),bt=it.begin,Ft=it.end;/\s/.test(ee.text.charAt(Ft-1))&&Ft--;for(var xn=null,Ln=null,wr=0;wr<le.length;wr++){var mr=le[wr];if(!(mr.from>=Ft||mr.to<=bt)){var di=mr.level!=1,zi=Ya(x,re,di?Math.min(Ft,mr.to)-1:Math.max(bt,mr.from)).right,da=zi<ge?ge-zi+1e9:zi-ge;(!xn||Ln>da)&&(xn=mr,Ln=da)}}return xn||(xn=le[le.length-1]),xn.from<bt&&(xn={from:bt,to:xn.to,level:xn.level}),xn.to>Ft&&(xn={from:xn.from,to:Ft,level:xn.level}),xn}var ui;function Ai(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(ui==null){ui=$e("pre",null,"CodeMirror-line-like");for(var ee=0;ee<49;++ee)ui.appendChild(document.createTextNode("x")),ui.appendChild($e("br"));ui.appendChild(document.createTextNode("x"))}vt(x.measure,ui);var ie=ui.offsetHeight/50;return ie>3&&(x.cachedTextHeight=ie),Re(x.measure),ie||1}function ir(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var ee=$e("span","xxxxxxxxxx"),ie=$e("pre",[ee],"CodeMirror-line-like");vt(x.measure,ie);var re=ee.getBoundingClientRect(),le=(re.right-re.left)/10;return le>2&&(x.cachedCharWidth=le),le||10}function ti(x){for(var ee=x.display,ie={},re={},le=ee.gutters.clientLeft,ge=ee.gutters.firstChild,_e=0;ge;ge=ge.nextSibling,++_e){var it=x.display.gutterSpecs[_e].className;ie[it]=ge.offsetLeft+ge.clientLeft+le,re[it]=ge.clientWidth}return{fixedPos:Mi(ee),gutterTotalWidth:ee.gutters.offsetWidth,gutterLeft:ie,gutterWidth:re,wrapperWidth:ee.wrapper.clientWidth}}function Mi(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function va(x){var ee=Ai(x.display),ie=x.options.lineWrapping,re=ie&&Math.max(5,x.display.scroller.clientWidth/ir(x.display)-3);return function(le){if(Ho(x.doc,le))return 0;var ge=0;if(le.widgets)for(var _e=0;_e<le.widgets.length;_e++)le.widgets[_e].height&&(ge+=le.widgets[_e].height);return ie?ge+(Math.ceil(le.text.length/re)||1)*ee:ge+ee}}function ii(x){var ee=x.doc,ie=va(x);ee.iter(function(re){var le=ie(re);le!=re.height&&sn(re,le)})}function ca(x,ee,ie,re){var le=x.display;if(!ie&&vr(ee).getAttribute("cm-not-content")=="true")return null;var ge,_e,it=le.lineSpace.getBoundingClientRect();try{ge=ee.clientX-it.left,_e=ee.clientY-it.top}catch(Ln){return null}var bt=hn(x,ge,_e),Ft;if(re&&bt.xRel>0&&(Ft=_t(x.doc,bt.line).text).length==bt.ch){var xn=Le(Ft,Ft.length,x.options.tabSize)-Ft.length;bt=en(bt.line,Math.max(0,Math.round((ge-Zr(x.display).left)/ir(x.display))-xn))}return bt}function Fi(x,ee){if(ee>=x.display.viewTo||(ee-=x.display.viewFrom,ee<0))return null;for(var ie=x.display.view,re=0;re<ie.length;re++)if(ee-=ie[re].size,ee<0)return re}function Hr(x,ee,ie,re){ee==null&&(ee=x.doc.first),ie==null&&(ie=x.doc.first+x.doc.size),re||(re=0);var le=x.display;if(re&&ie<le.viewTo&&(le.updateLineNumbers==null||le.updateLineNumbers>ee)&&(le.updateLineNumbers=ee),x.curOp.viewChanged=!0,ee>=le.viewTo)ji&&qo(x.doc,ee)<le.viewTo&&ga(x);else if(ie<=le.viewFrom)ji&&co(x.doc,ie+re)>le.viewFrom?ga(x):(le.viewFrom+=re,le.viewTo+=re);else if(ee<=le.viewFrom&&ie>=le.viewTo)ga(x);else if(ee<=le.viewFrom){var ge=Ga(x,ie,ie+re,1);ge?(le.view=le.view.slice(ge.index),le.viewFrom=ge.lineN,le.viewTo+=re):ga(x)}else if(ie>=le.viewTo){var _e=Ga(x,ee,ee,-1);_e?(le.view=le.view.slice(0,_e.index),le.viewTo=_e.lineN):ga(x)}else{var it=Ga(x,ee,ee,-1),bt=Ga(x,ie,ie+re,1);it&&bt?(le.view=le.view.slice(0,it.index).concat(Gn(x,it.lineN,bt.lineN)).concat(le.view.slice(bt.index)),le.viewTo+=re):ga(x)}var Ft=le.externalMeasured;Ft&&(ie<Ft.lineN?Ft.lineN+=re:ee<Ft.lineN+Ft.size&&(le.externalMeasured=null))}function Ur(x,ee,ie){x.curOp.viewChanged=!0;var re=x.display,le=x.display.externalMeasured;if(le&&ee>=le.lineN&&ee<le.lineN+le.size&&(re.externalMeasured=null),!(ee<re.viewFrom||ee>=re.viewTo)){var ge=re.view[Fi(x,ee)];if(ge.node!=null){var _e=ge.changes||(ge.changes=[]);st(_e,ie)==-1&&_e.push(ie)}}}function ga(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function Ga(x,ee,ie,re){var le=Fi(x,ee),ge,_e=x.display.view;if(!ji||ie==x.doc.first+x.doc.size)return{index:le,lineN:ie};for(var it=x.display.viewFrom,bt=0;bt<le;bt++)it+=_e[bt].size;if(it!=ee){if(re>0){if(le==_e.length-1)return null;ge=it+_e[le].size-ee,le++}else ge=it-ee;ee+=ge,ie+=ge}for(;qo(x.doc,ie)!=ie;){if(le==(re<0?0:_e.length-1))return null;ie+=re*_e[le-(re<0?1:0)].size,le+=re}return{index:le,lineN:ie}}function Ci(x,ee,ie){var re=x.display,le=re.view;le.length==0||ee>=re.viewTo||ie<=re.viewFrom?(re.view=Gn(x,ee,ie),re.viewFrom=ee):(re.viewFrom>ee?re.view=Gn(x,ee,re.viewFrom).concat(re.view):re.viewFrom<ee&&(re.view=re.view.slice(Fi(x,ee))),re.viewFrom=ee,re.viewTo<ie?re.view=re.view.concat(Gn(x,re.viewTo,ie)):re.viewTo>ie&&(re.view=re.view.slice(0,Fi(x,ie)))),re.viewTo=ie}function wa(x){for(var ee=x.display.view,ie=0,re=0;re<ee.length;re++){var le=ee[re];!le.hidden&&(!le.node||le.changes)&&++ie}return ie}function Qi(x){x.display.input.showSelection(x.display.input.prepareSelection())}function Ea(x,ee){ee===void 0&&(ee=!0);for(var ie=x.doc,re={},le=re.cursors=document.createDocumentFragment(),ge=re.selection=document.createDocumentFragment(),_e=0;_e<ie.sel.ranges.length;_e++)if(!(!ee&&_e==ie.sel.primIndex)){var it=ie.sel.ranges[_e];if(!(it.from().line>=x.display.viewTo||it.to().line<x.display.viewFrom)){var bt=it.empty();(bt||x.options.showCursorWhenSelecting)&&dl(x,it.head,le),bt||Zl(x,it,ge)}}return re}function dl(x,ee,ie){var re=ll(x,ee,"div",null,null,!x.options.singleCursorHeightPerLine),le=ie.appendChild($e("div","\xA0","CodeMirror-cursor"));if(le.style.left=re.left+"px",le.style.top=re.top+"px",le.style.height=Math.max(0,re.bottom-re.top)*x.options.cursorHeight+"px",re.other){var ge=ie.appendChild($e("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ge.style.display="",ge.style.left=re.other.left+"px",ge.style.top=re.other.top+"px",ge.style.height=(re.other.bottom-re.other.top)*.85+"px"}}function Dl(x,ee){return x.top-ee.top||x.left-ee.left}function Zl(x,ee,ie){var re=x.display,le=x.doc,ge=document.createDocumentFragment(),_e=Zr(x.display),it=_e.left,bt=Math.max(re.sizerWidth,Ar(x)-re.sizer.offsetLeft)-_e.right,Ft=le.direction=="ltr";function xn(Da,Va,Mo,Oo){Va<0&&(Va=0),Va=Math.round(Va),Oo=Math.round(Oo),ge.appendChild($e("div",null,"CodeMirror-selected","position: absolute; left: "+Da+`px;
|
|
|
top: `+Va+"px; width: "+(Mo==null?bt-Da:Mo)+`px;
|
|
|
height: `+(Oo-Va)+"px"))}function Ln(Da,Va,Mo){var Oo=_t(le,Da),al=Oo.text.length,Vl,_s;function vs(Ss,su){return bo(x,en(Da,Ss),"div",Oo,su)}function ou(Ss,su,Go){var cs=rr(x,Oo,null,Ss),ds=su=="ltr"==(Go=="after")?"left":"right",bs=Go=="after"?cs.begin:cs.end-(/\s/.test(Oo.text.charAt(cs.end-1))?2:1);return vs(bs,ds)[ds]}var lu=vn(Oo,le.direction);return Pt(lu,Va||0,Mo==null?al:Mo,function(Ss,su,Go,cs){var ds=Go=="ltr",bs=vs(Ss,ds?"left":"right"),As=vs(su-1,ds?"right":"left"),Oc=Va==null&&Ss==0,bu=Mo==null&&su==al,Ts=cs==0,se=!lu||cs==lu.length-1;if(As.top-bs.top<=3){var de=(Ft?Oc:bu)&&Ts,ve=(Ft?bu:Oc)&&se,Oe=de?it:(ds?bs:As).left,ft=ve?bt:(ds?As:bs).right;xn(Oe,bs.top,ft-Oe,bs.bottom)}else{var pt,St,Lt,un;ds?(pt=Ft&&Oc&&Ts?it:bs.left,St=Ft?bt:ou(Ss,Go,"before"),Lt=Ft?it:ou(su,Go,"after"),un=Ft&&bu&&se?bt:As.right):(pt=Ft?ou(Ss,Go,"before"):it,St=!Ft&&Oc&&Ts?bt:bs.right,Lt=!Ft&&bu&&se?it:As.left,un=Ft?ou(su,Go,"after"):bt),xn(pt,bs.top,St-pt,bs.bottom),bs.bottom<As.top&&xn(it,bs.bottom,null,As.top),xn(Lt,As.top,un-Lt,As.bottom)}(!Vl||Dl(bs,Vl)<0)&&(Vl=bs),Dl(As,Vl)<0&&(Vl=As),(!_s||Dl(bs,_s)<0)&&(_s=bs),Dl(As,_s)<0&&(_s=As)}),{start:Vl,end:_s}}var wr=ee.from(),mr=ee.to();if(wr.line==mr.line)Ln(wr.line,wr.ch,mr.ch);else{var di=_t(le,wr.line),zi=_t(le,mr.line),da=Ma(di)==Ma(zi),La=Ln(wr.line,wr.ch,da?di.text.length+1:null).end,Ra=Ln(mr.line,da?0:null,mr.ch).start;da&&(La.top<Ra.top-2?(xn(La.right,La.top,null,La.bottom),xn(it,Ra.top,Ra.left,Ra.bottom)):xn(La.right,La.top,Ra.left-La.right,La.bottom)),La.bottom<Ra.top&&xn(it,La.bottom,null,Ra.top)}ie.appendChild(ge)}function rs(x){if(x.state.focused){var ee=x.display;clearInterval(ee.blinker);var ie=!0;ee.cursorDiv.style.visibility="",x.options.cursorBlinkRate>0?ee.blinker=setInterval(function(){x.hasFocus()||No(x),ee.cursorDiv.style.visibility=(ie=!ie)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(ee.cursorDiv.style.visibility="hidden")}}function ho(x){x.state.focused||(x.display.input.focus(),xs(x))}function Bs(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,No(x))},100)}function xs(x,ee){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(Ke(x,"focus",x,ee),x.state.focused=!0,Ot(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),pe&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),rs(x))}function No(x,ee){x.state.delayingBlurEvent||(x.state.focused&&(Ke(x,"blur",x,ee),x.state.focused=!1,Je(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function yl(x){for(var ee=x.display,ie=ee.lineDiv.offsetTop,re=0;re<ee.view.length;re++){var le=ee.view[re],ge=x.options.lineWrapping,_e=void 0,it=0;if(!le.hidden){if(Ce&&Se<8){var bt=le.node.offsetTop+le.node.offsetHeight;_e=bt-ie,ie=bt}else{var Ft=le.node.getBoundingClientRect();_e=Ft.bottom-Ft.top,!ge&&le.text.firstChild&&(it=le.text.firstChild.getBoundingClientRect().right-Ft.left-1)}var xn=le.line.height-_e;if((xn>.005||xn<-.005)&&(sn(le.line,_e),ml(le.line),le.rest))for(var Ln=0;Ln<le.rest.length;Ln++)ml(le.rest[Ln]);if(it>x.display.sizerWidth){var wr=Math.ceil(it/ir(x.display));wr>x.display.maxLineLength&&(x.display.maxLineLength=wr,x.display.maxLine=le.line,x.display.maxLineChanged=!0)}}}}function ml(x){if(x.widgets)for(var ee=0;ee<x.widgets.length;++ee){var ie=x.widgets[ee],re=ie.node.parentNode;re&&(ie.height=re.offsetHeight)}}function Ko(x,ee,ie){var re=ie&&ie.top!=null?Math.max(0,ie.top):x.scroller.scrollTop;re=Math.floor(re-wn(x));var le=ie&&ie.bottom!=null?ie.bottom:re+x.wrapper.clientHeight,ge=Yn(ee,re),_e=Yn(ee,le);if(ie&&ie.ensure){var it=ie.ensure.from.line,bt=ie.ensure.to.line;it<ge?(ge=it,_e=Yn(ee,Qr(_t(ee,it))+x.wrapper.clientHeight)):Math.min(bt,ee.lastLine())>=_e&&(ge=Yn(ee,Qr(_t(ee,bt))-x.wrapper.clientHeight),_e=bt)}return{from:ge,to:Math.max(_e,ge+1)}}function _l(x,ee){if(!gt(x,"scrollCursorIntoView")){var ie=x.display,re=ie.sizer.getBoundingClientRect(),le=null;if(ee.top+re.top<0?le=!0:ee.bottom+re.top>(window.innerHeight||document.documentElement.clientHeight)&&(le=!1),le!=null&&!Ie){var ge=$e("div","\u200B",null,`position: absolute;
|
|
|
top: `+(ee.top-ie.viewOffset-wn(x.display))+`px;
|
|
|
height: `+(ee.bottom-ee.top+_r(x)+ie.barHeight)+`px;
|
|
|
left: `+ee.left+"px; width: "+Math.max(2,ee.right-ee.left)+"px;");x.display.lineSpace.appendChild(ge),ge.scrollIntoView(le),x.display.lineSpace.removeChild(ge)}}}function js(x,ee,ie,re){re==null&&(re=0);var le;!x.options.lineWrapping&&ee==ie&&(ee=ee.ch?en(ee.line,ee.sticky=="before"?ee.ch-1:ee.ch,"after"):ee,ie=ee.sticky=="before"?en(ee.line,ee.ch+1,"before"):ee);for(var ge=0;ge<5;ge++){var _e=!1,it=ll(x,ee),bt=!ie||ie==ee?it:ll(x,ie);le={left:Math.min(it.left,bt.left),top:Math.min(it.top,bt.top)-re,right:Math.max(it.left,bt.left),bottom:Math.max(it.bottom,bt.bottom)+re};var Ft=Au(x,le),xn=x.doc.scrollTop,Ln=x.doc.scrollLeft;if(Ft.scrollTop!=null&&(hu(x,Ft.scrollTop),Math.abs(x.doc.scrollTop-xn)>1&&(_e=!0)),Ft.scrollLeft!=null&&(Vs(x,Ft.scrollLeft),Math.abs(x.doc.scrollLeft-Ln)>1&&(_e=!0)),!_e)break}return le}function Vu(x,ee){var ie=Au(x,ee);ie.scrollTop!=null&&hu(x,ie.scrollTop),ie.scrollLeft!=null&&Vs(x,ie.scrollLeft)}function Au(x,ee){var ie=x.display,re=Ai(x.display);ee.top<0&&(ee.top=0);var le=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ie.scroller.scrollTop,ge=Mr(x),_e={};ee.bottom-ee.top>ge&&(ee.bottom=ee.top+ge);var it=x.doc.height+tr(ie),bt=ee.top<re,Ft=ee.bottom>it-re;if(ee.top<le)_e.scrollTop=bt?0:ee.top;else if(ee.bottom>le+ge){var xn=Math.min(ee.top,(Ft?it:ee.bottom)-ge);xn!=le&&(_e.scrollTop=xn)}var Ln=x.options.fixedGutter?0:ie.gutters.offsetWidth,wr=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ie.scroller.scrollLeft-Ln,mr=Ar(x)-ie.gutters.offsetWidth,di=ee.right-ee.left>mr;return di&&(ee.right=ee.left+mr),ee.left<10?_e.scrollLeft=0:ee.left<wr?_e.scrollLeft=Math.max(0,ee.left+Ln-(di?0:10)):ee.right>mr+wr-3&&(_e.scrollLeft=ee.right+(di?0:10)-mr),_e}function _u(x,ee){ee!=null&&(fu(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+ee)}function xu(x){fu(x);var ee=x.getCursor();x.curOp.scrollToPos={from:ee,to:ee,margin:x.options.cursorScrollMargin}}function du(x,ee,ie){(ee!=null||ie!=null)&&fu(x),ee!=null&&(x.curOp.scrollLeft=ee),ie!=null&&(x.curOp.scrollTop=ie)}function Uu(x,ee){fu(x),x.curOp.scrollToPos=ee}function fu(x){var ee=x.curOp.scrollToPos;if(ee){x.curOp.scrollToPos=null;var ie=zl(x,ee.from),re=zl(x,ee.to);Gu(x,ie,re,ee.margin)}}function Gu(x,ee,ie,re){var le=Au(x,{left:Math.min(ee.left,ie.left),top:Math.min(ee.top,ie.top)-re,right:Math.max(ee.right,ie.right),bottom:Math.max(ee.bottom,ie.bottom)+re});du(x,le.scrollLeft,le.scrollTop)}function hu(x,ee){Math.abs(x.doc.scrollTop-ee)<2||(E||$i(x,{top:ee}),Bu(x,ee,!0),E&&$i(x),_n(x,100))}function Bu(x,ee,ie){ee=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,ee)),!(x.display.scroller.scrollTop==ee&&!ie)&&(x.doc.scrollTop=ee,x.display.scrollbars.setScrollTop(ee),x.display.scroller.scrollTop!=ee&&(x.display.scroller.scrollTop=ee))}function Vs(x,ee,ie,re){ee=Math.max(0,Math.min(ee,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((ie?ee==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-ee)<2)&&!re)&&(x.doc.scrollLeft=ee,io(x),x.display.scroller.scrollLeft!=ee&&(x.display.scroller.scrollLeft=ee),x.display.scrollbars.setScrollLeft(ee))}function pu(x){var ee=x.display,ie=ee.gutters.offsetWidth,re=Math.round(x.doc.height+tr(x.display));return{clientHeight:ee.scroller.clientHeight,viewHeight:ee.wrapper.clientHeight,scrollWidth:ee.scroller.scrollWidth,clientWidth:ee.scroller.clientWidth,viewWidth:ee.wrapper.clientWidth,barLeft:x.options.fixedGutter?ie:0,docHeight:re,scrollHeight:re+_r(x)+ee.barHeight,nativeBarWidth:ee.nativeBarWidth,gutterWidth:ie}}var eu=function(x,ee,ie){this.cm=ie;var re=this.vert=$e("div",[$e("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),le=this.horiz=$e("div",[$e("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");re.tabIndex=le.tabIndex=-1,x(re),x(le),Ut(re,"scroll",function(){re.clientHeight&&ee(re.scrollTop,"vertical")}),Ut(le,"scroll",function(){le.clientWidth&&ee(le.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ce&&Se<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};eu.prototype.update=function(x){var ee=x.scrollWidth>x.clientWidth+1,ie=x.scrollHeight>x.clientHeight+1,re=x.nativeBarWidth;if(ie){this.vert.style.display="block",this.vert.style.bottom=ee?re+"px":"0";var le=x.viewHeight-(ee?re:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+le)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ee){this.horiz.style.display="block",this.horiz.style.right=ie?re+"px":"0",this.horiz.style.left=x.barLeft+"px";var ge=x.viewWidth-x.barLeft-(ie?re:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+ge)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(re==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ie?re:0,bottom:ee?re:0}},eu.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},eu.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},eu.prototype.zeroWidthHack=function(){var x=lt&&!Fe?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Me,this.disableVert=new Me},eu.prototype.enableZeroWidthBar=function(x,ee,ie){x.style.pointerEvents="auto";function re(){var le=x.getBoundingClientRect(),ge=ie=="vert"?document.elementFromPoint(le.right-1,(le.top+le.bottom)/2):document.elementFromPoint((le.right+le.left)/2,le.bottom-1);ge!=x?x.style.pointerEvents="none":ee.set(1e3,re)}ee.set(1e3,re)},eu.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var ks=function(){};ks.prototype.update=function(){return{bottom:0,right:0}},ks.prototype.setScrollLeft=function(){},ks.prototype.setScrollTop=function(){},ks.prototype.clear=function(){};function Eu(x,ee){ee||(ee=pu(x));var ie=x.display.barWidth,re=x.display.barHeight;ic(x,ee);for(var le=0;le<4&&ie!=x.display.barWidth||re!=x.display.barHeight;le++)ie!=x.display.barWidth&&x.options.lineWrapping&&yl(x),ic(x,pu(x)),ie=x.display.barWidth,re=x.display.barHeight}function ic(x,ee){var ie=x.display,re=ie.scrollbars.update(ee);ie.sizer.style.paddingRight=(ie.barWidth=re.right)+"px",ie.sizer.style.paddingBottom=(ie.barHeight=re.bottom)+"px",ie.heightForcer.style.borderBottom=re.bottom+"px solid transparent",re.right&&re.bottom?(ie.scrollbarFiller.style.display="block",ie.scrollbarFiller.style.height=re.bottom+"px",ie.scrollbarFiller.style.width=re.right+"px"):ie.scrollbarFiller.style.display="",re.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(ie.gutterFiller.style.display="block",ie.gutterFiller.style.height=re.bottom+"px",ie.gutterFiller.style.width=ee.gutterWidth+"px"):ie.gutterFiller.style.display=""}var Tu={native:eu,null:ks};function vc(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&Je(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Tu[x.options.scrollbarStyle](function(ee){x.display.wrapper.insertBefore(ee,x.display.scrollbarFiller),Ut(ee,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),ee.setAttribute("cm-not-content","true")},function(ee,ie){ie=="horizontal"?Vs(x,ee):hu(x,ee)},x),x.display.scrollbars.addClass&&Ot(x.display.wrapper,x.display.scrollbars.addClass)}var sr=0;function Ui(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:++sr},Vr(x.curOp)}function Co(x){var ee=x.curOp;ee&&si(ee,function(ie){for(var re=0;re<ie.ops.length;re++)ie.ops[re].cm.curOp=null;Wa(ie)})}function Wa(x){for(var ee=x.ops,ie=0;ie<ee.length;ie++)Te(ee[ie]);for(var re=0;re<ee.length;re++)ot(ee[re]);for(var le=0;le<ee.length;le++)Rt(ee[le]);for(var ge=0;ge<ee.length;ge++)qt(ee[ge]);for(var _e=0;_e<ee.length;_e++)an(ee[_e])}function Te(x){var ee=x.cm,ie=ee.display;$r(ee),x.updateMaxLine&&ri(ee),x.mustUpdate=x.viewChanged||x.forceUpdate||x.scrollTop!=null||x.scrollToPos&&(x.scrollToPos.from.line<ie.viewFrom||x.scrollToPos.to.line>=ie.viewTo)||ie.maxLineChanged&&ee.options.lineWrapping,x.update=x.mustUpdate&&new yr(ee,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function ot(x){x.updatedDisplay=x.mustUpdate&&Ji(x.cm,x.update)}function Rt(x){var ee=x.cm,ie=ee.display;x.updatedDisplay&&yl(ee),x.barMeasure=pu(ee),ie.maxLineChanged&&!ee.options.lineWrapping&&(x.adjustWidthTo=yi(ee,ie.maxLine,ie.maxLine.text.length).left+3,ee.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(ie.scroller.clientWidth,ie.sizer.offsetLeft+x.adjustWidthTo+_r(ee)+ee.display.barWidth),x.maxScrollLeft=Math.max(0,ie.sizer.offsetLeft+x.adjustWidthTo-Ar(ee))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ie.input.prepareSelection())}function qt(x){var ee=x.cm;x.adjustWidthTo!=null&&(ee.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<ee.doc.scrollLeft&&Vs(ee,Math.min(ee.display.scroller.scrollLeft,x.maxScrollLeft),!0),ee.display.maxLineChanged=!1);var ie=x.focus&&x.focus==Ve();x.preparedSelection&&ee.display.input.showSelection(x.preparedSelection,ie),(x.updatedDisplay||x.startHeight!=ee.doc.height)&&Eu(ee,x.barMeasure),x.updatedDisplay&&Xa(ee,x.barMeasure),x.selectionChanged&&rs(ee),ee.state.focused&&x.updateInput&&ee.display.input.reset(x.typing),ie&&ho(x.cm)}function an(x){var ee=x.cm,ie=ee.display,re=ee.doc;if(x.updatedDisplay&&Pi(ee,x.update),ie.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(ie.wheelStartX=ie.wheelStartY=null),x.scrollTop!=null&&Bu(ee,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&Vs(ee,x.scrollLeft,!0,!0),x.scrollToPos){var le=js(ee,br(re,x.scrollToPos.from),br(re,x.scrollToPos.to),x.scrollToPos.margin);_l(ee,le)}var ge=x.maybeHiddenMarkers,_e=x.maybeUnhiddenMarkers;if(ge)for(var it=0;it<ge.length;++it)ge[it].lines.length||Ke(ge[it],"hide");if(_e)for(var bt=0;bt<_e.length;++bt)_e[bt].lines.length&&Ke(_e[bt],"unhide");ie.wrapper.offsetHeight&&(re.scrollTop=ee.display.scroller.scrollTop),x.changeObjs&&Ke(ee,"changes",ee,x.changeObjs),x.update&&x.update.finish()}function cn(x,ee){if(x.curOp)return ee();Ui(x);try{return ee()}finally{Co(x)}}function Fn(x,ee){return function(){if(x.curOp)return ee.apply(x,arguments);Ui(x);try{return ee.apply(x,arguments)}finally{Co(x)}}}function Un(x){return function(){if(this.curOp)return x.apply(this,arguments);Ui(this);try{return x.apply(this,arguments)}finally{Co(this)}}}function Wn(x){return function(){var ee=this.cm;if(!ee||ee.curOp)return x.apply(this,arguments);Ui(ee);try{return x.apply(this,arguments)}finally{Co(ee)}}}function _n(x,ee){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(ee,Mt(Fr,x))}function Fr(x){var ee=x.doc;if(!(ee.highlightFrontier>=x.display.viewTo)){var ie=+new Date+x.options.workTime,re=Vn(x,ee.highlightFrontier),le=[];ee.iter(re.line,Math.min(ee.first+ee.size,x.display.viewTo+500),function(ge){if(re.line>=x.display.viewFrom){var _e=ge.styles,it=ge.text.length>x.options.maxHighlightLength?Ue(ee.mode,re.state):null,bt=qn(x,ge,re,!0);it&&(re.state=it),ge.styles=bt.styles;var Ft=ge.styleClasses,xn=bt.classes;xn?ge.styleClasses=xn:Ft&&(ge.styleClasses=null);for(var Ln=!_e||_e.length!=ge.styles.length||Ft!=xn&&(!Ft||!xn||Ft.bgClass!=xn.bgClass||Ft.textClass!=xn.textClass),wr=0;!Ln&&wr<_e.length;++wr)Ln=_e[wr]!=ge.styles[wr];Ln&&le.push(re.line),ge.stateAfter=re.save(),re.nextLine()}else ge.text.length<=x.options.maxHighlightLength&&Pn(x,ge.text,re),ge.stateAfter=re.line%5==0?re.save():null,re.nextLine();if(+new Date>ie)return _n(x,x.options.workDelay),!0}),ee.highlightFrontier=re.line,ee.modeFrontier=Math.max(ee.modeFrontier,re.line),le.length&&cn(x,function(){for(var ge=0;ge<le.length;ge++)Ur(x,le[ge],"text")})}}var yr=function(x,ee,ie){var re=x.display;this.viewport=ee,this.visible=Ko(re,x.doc,ee),this.editorIsHidden=!re.wrapper.offsetWidth,this.wrapperHeight=re.wrapper.clientHeight,this.wrapperWidth=re.wrapper.clientWidth,this.oldDisplayWidth=Ar(x),this.force=ie,this.dims=ti(x),this.events=[]};yr.prototype.signal=function(x,ee){Nt(x,ee)&&this.events.push(arguments)},yr.prototype.finish=function(){for(var x=0;x<this.events.length;x++)Ke.apply(null,this.events[x])};function $r(x){var ee=x.display;!ee.scrollbarsClipped&&ee.scroller.offsetWidth&&(ee.nativeBarWidth=ee.scroller.offsetWidth-ee.scroller.clientWidth,ee.heightForcer.style.height=_r(x)+"px",ee.sizer.style.marginBottom=-ee.nativeBarWidth+"px",ee.sizer.style.borderRightWidth=_r(x)+"px",ee.scrollbarsClipped=!0)}function ni(x){if(x.hasFocus())return null;var ee=Ve();if(!ee||!xt(x.display.lineDiv,ee))return null;var ie={activeElt:ee};if(window.getSelection){var re=window.getSelection();re.anchorNode&&re.extend&&xt(x.display.lineDiv,re.anchorNode)&&(ie.anchorNode=re.anchorNode,ie.anchorOffset=re.anchorOffset,ie.focusNode=re.focusNode,ie.focusOffset=re.focusOffset)}return ie}function ci(x){if(!(!x||!x.activeElt||x.activeElt==Ve())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&xt(document.body,x.anchorNode)&&xt(document.body,x.focusNode))){var ee=window.getSelection(),ie=document.createRange();ie.setEnd(x.anchorNode,x.anchorOffset),ie.collapse(!1),ee.removeAllRanges(),ee.addRange(ie),ee.extend(x.focusNode,x.focusOffset)}}function Ji(x,ee){var ie=x.display,re=x.doc;if(ee.editorIsHidden)return ga(x),!1;if(!ee.force&&ee.visible.from>=ie.viewFrom&&ee.visible.to<=ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo)&&ie.renderedView==ie.view&&wa(x)==0)return!1;_a(x)&&(ga(x),ee.dims=ti(x));var le=re.first+re.size,ge=Math.max(ee.visible.from-x.options.viewportMargin,re.first),_e=Math.min(le,ee.visible.to+x.options.viewportMargin);ie.viewFrom<ge&&ge-ie.viewFrom<20&&(ge=Math.max(re.first,ie.viewFrom)),ie.viewTo>_e&&ie.viewTo-_e<20&&(_e=Math.min(le,ie.viewTo)),ji&&(ge=qo(x.doc,ge),_e=co(x.doc,_e));var it=ge!=ie.viewFrom||_e!=ie.viewTo||ie.lastWrapHeight!=ee.wrapperHeight||ie.lastWrapWidth!=ee.wrapperWidth;Ci(x,ge,_e),ie.viewOffset=Qr(_t(x.doc,ie.viewFrom)),x.display.mover.style.top=ie.viewOffset+"px";var bt=wa(x);if(!it&&bt==0&&!ee.force&&ie.renderedView==ie.view&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo))return!1;var Ft=ni(x);return bt>4&&(ie.lineDiv.style.display="none"),qi(x,ie.updateLineNumbers,ee.dims),bt>4&&(ie.lineDiv.style.display=""),ie.renderedView=ie.view,ci(Ft),Re(ie.cursorDiv),Re(ie.selectionDiv),ie.gutters.style.height=ie.sizer.style.minHeight=0,it&&(ie.lastWrapHeight=ee.wrapperHeight,ie.lastWrapWidth=ee.wrapperWidth,_n(x,400)),ie.updateLineNumbers=null,!0}function Pi(x,ee){for(var ie=ee.viewport,re=!0;;re=!1){if(!re||!x.options.lineWrapping||ee.oldDisplayWidth==Ar(x)){if(ie&&ie.top!=null&&(ie={top:Math.min(x.doc.height+tr(x.display)-Mr(x),ie.top)}),ee.visible=Ko(x.display,x.doc,ie),ee.visible.from>=x.display.viewFrom&&ee.visible.to<=x.display.viewTo)break}else re&&(ee.visible=Ko(x.display,x.doc,ie));if(!Ji(x,ee))break;yl(x);var le=pu(x);Qi(x),Eu(x,le),Xa(x,le),ee.force=!1}ee.signal(x,"update",x),(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)&&(ee.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo)}function $i(x,ee){var ie=new yr(x,ee);if(Ji(x,ie)){yl(x),Pi(x,ie);var re=pu(x);Qi(x),Eu(x,re),Xa(x,re),ie.finish()}}function qi(x,ee,ie){var re=x.display,le=x.options.lineNumbers,ge=re.lineDiv,_e=ge.firstChild;function it(di){var zi=di.nextSibling;return pe&<&&x.display.currentWheelTarget==di?di.style.display="none":di.parentNode.removeChild(di),zi}for(var bt=re.view,Ft=re.viewFrom,xn=0;xn<bt.length;xn++){var Ln=bt[xn];if(!Ln.hidden)if(!Ln.node||Ln.node.parentNode!=ge){var wr=eo(x,Ln,Ft,ie);ge.insertBefore(wr,_e)}else{for(;_e!=Ln.node;)_e=it(_e);var mr=le&&ee!=null&&ee<=Ft&&Ln.lineNumber;Ln.changes&&(st(Ln.changes,"gutter")>-1&&(mr=!1),Oi(x,Ln,Ft,ie)),mr&&(Re(Ln.lineNumber),Ln.lineNumber.appendChild(document.createTextNode($n(x.options,Ft)))),_e=Ln.node.nextSibling}Ft+=Ln.size}for(;_e;)_e=it(_e)}function Sa(x){var ee=x.gutters.offsetWidth;x.sizer.style.marginLeft=ee+"px"}function Xa(x,ee){x.display.sizer.style.minHeight=ee.docHeight+"px",x.display.heightForcer.style.top=ee.docHeight+"px",x.display.gutters.style.height=ee.docHeight+x.display.barHeight+_r(x)+"px"}function io(x){var ee=x.display,ie=ee.view;if(!(!ee.alignWidgets&&(!ee.gutters.firstChild||!x.options.fixedGutter))){for(var re=Mi(ee)-ee.scroller.scrollLeft+x.doc.scrollLeft,le=ee.gutters.offsetWidth,ge=re+"px",_e=0;_e<ie.length;_e++)if(!ie[_e].hidden){x.options.fixedGutter&&(ie[_e].gutter&&(ie[_e].gutter.style.left=ge),ie[_e].gutterBackground&&(ie[_e].gutterBackground.style.left=ge));var it=ie[_e].alignable;if(it)for(var bt=0;bt<it.length;bt++)it[bt].style.left=ge}x.options.fixedGutter&&(ee.gutters.style.left=re+le+"px")}}function _a(x){if(!x.options.lineNumbers)return!1;var ee=x.doc,ie=$n(x.options,ee.first+ee.size-1),re=x.display;if(ie.length!=re.lineNumChars){var le=re.measure.appendChild($e("div",[$e("div",ie)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ge=le.firstChild.offsetWidth,_e=le.offsetWidth-ge;return re.lineGutter.style.width="",re.lineNumInnerWidth=Math.max(ge,re.lineGutter.offsetWidth-_e)+1,re.lineNumWidth=re.lineNumInnerWidth+_e,re.lineNumChars=re.lineNumInnerWidth?ie.length:-1,re.lineGutter.style.width=re.lineNumWidth+"px",Sa(x.display),!0}return!1}function Do(x,ee){for(var ie=[],re=!1,le=0;le<x.length;le++){var ge=x[le],_e=null;if(typeof ge!="string"&&(_e=ge.style,ge=ge.className),ge=="CodeMirror-linenumbers")if(ee)re=!0;else continue;ie.push({className:ge,style:_e})}return ee&&!re&&ie.push({className:"CodeMirror-linenumbers",style:null}),ie}function To(x){var ee=x.gutters,ie=x.gutterSpecs;Re(ee),x.lineGutter=null;for(var re=0;re<ie.length;++re){var le=ie[re],ge=le.className,_e=le.style,it=ee.appendChild($e("div",null,"CodeMirror-gutter "+ge));_e&&(it.style.cssText=_e),ge=="CodeMirror-linenumbers"&&(x.lineGutter=it,it.style.width=(x.lineNumWidth||1)+"px")}ee.style.display=ie.length?"":"none",Sa(x)}function ka(x){To(x.display),Hr(x),io(x)}function Ha(x,ee,ie,re){var le=this;this.input=ie,le.scrollbarFiller=$e("div",null,"CodeMirror-scrollbar-filler"),le.scrollbarFiller.setAttribute("cm-not-content","true"),le.gutterFiller=$e("div",null,"CodeMirror-gutter-filler"),le.gutterFiller.setAttribute("cm-not-content","true"),le.lineDiv=mt("div",null,"CodeMirror-code"),le.selectionDiv=$e("div",null,null,"position: relative; z-index: 1"),le.cursorDiv=$e("div",null,"CodeMirror-cursors"),le.measure=$e("div",null,"CodeMirror-measure"),le.lineMeasure=$e("div",null,"CodeMirror-measure"),le.lineSpace=mt("div",[le.measure,le.lineMeasure,le.selectionDiv,le.cursorDiv,le.lineDiv],null,"position: relative; outline: none");var ge=mt("div",[le.lineSpace],"CodeMirror-lines");le.mover=$e("div",[ge],null,"position: relative"),le.sizer=$e("div",[le.mover],"CodeMirror-sizer"),le.sizerWidth=null,le.heightForcer=$e("div",null,null,"position: absolute; height: "+Ht+"px; width: 1px;"),le.gutters=$e("div",null,"CodeMirror-gutters"),le.lineGutter=null,le.scroller=$e("div",[le.sizer,le.heightForcer,le.gutters],"CodeMirror-scroll"),le.scroller.setAttribute("tabIndex","-1"),le.wrapper=$e("div",[le.scrollbarFiller,le.gutterFiller,le.scroller],"CodeMirror"),Ce&&Se<8&&(le.gutters.style.zIndex=-1,le.scroller.style.paddingRight=0),!pe&&!(E&&We)&&(le.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(le.wrapper):x(le.wrapper)),le.viewFrom=le.viewTo=ee.first,le.reportedViewFrom=le.reportedViewTo=ee.first,le.view=[],le.renderedView=null,le.externalMeasured=null,le.viewOffset=0,le.lastWrapHeight=le.lastWrapWidth=0,le.updateLineNumbers=null,le.nativeBarWidth=le.barHeight=le.barWidth=0,le.scrollbarsClipped=!1,le.lineNumWidth=le.lineNumInnerWidth=le.lineNumChars=null,le.alignWidgets=!1,le.cachedCharWidth=le.cachedTextHeight=le.cachedPaddingH=null,le.maxLine=null,le.maxLineLength=0,le.maxLineChanged=!1,le.wheelDX=le.wheelDY=le.wheelStartX=le.wheelStartY=null,le.shift=!1,le.selForContextMenu=null,le.activeTouch=null,le.gutterSpecs=Do(re.gutters,re.lineNumbers),To(le),ie.init(le)}var Fa=0,Wi=null;Ce?Wi=-.53:E?Wi=15:De?Wi=-.7:et&&(Wi=-1/3);function Oa(x){var ee=x.wheelDeltaX,ie=x.wheelDeltaY;return ee==null&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(ee=x.detail),ie==null&&x.detail&&x.axis==x.VERTICAL_AXIS?ie=x.detail:ie==null&&(ie=x.wheelDelta),{x:ee,y:ie}}function wo(x){var ee=Oa(x);return ee.x*=Wi,ee.y*=Wi,ee}function Wo(x,ee){var ie=Oa(ee),re=ie.x,le=ie.y,ge=x.display,_e=ge.scroller,it=_e.scrollWidth>_e.clientWidth,bt=_e.scrollHeight>_e.clientHeight;if(re&&it||le&&bt){if(le&<&&pe){e:for(var Ft=ee.target,xn=ge.view;Ft!=_e;Ft=Ft.parentNode)for(var Ln=0;Ln<xn.length;Ln++)if(xn[Ln].node==Ft){x.display.currentWheelTarget=Ft;break e}}if(re&&!E&&!Pe&&Wi!=null){le&&bt&&hu(x,Math.max(0,_e.scrollTop+le*Wi)),Vs(x,Math.max(0,_e.scrollLeft+re*Wi)),(!le||le&&bt)&&Mn(ee),ge.wheelStartX=null;return}if(le&&Wi!=null){var wr=le*Wi,mr=x.doc.scrollTop,di=mr+ge.wrapper.clientHeight;wr<0?mr=Math.max(0,mr+wr-50):di=Math.min(x.doc.height,di+wr+50),$i(x,{top:mr,bottom:di})}Fa<20&&(ge.wheelStartX==null?(ge.wheelStartX=_e.scrollLeft,ge.wheelStartY=_e.scrollTop,ge.wheelDX=re,ge.wheelDY=le,setTimeout(function(){if(ge.wheelStartX!=null){var zi=_e.scrollLeft-ge.wheelStartX,da=_e.scrollTop-ge.wheelStartY,La=da&&ge.wheelDY&&da/ge.wheelDY||zi&&ge.wheelDX&&zi/ge.wheelDX;ge.wheelStartX=ge.wheelStartY=null,La&&(Wi=(Wi*Fa+La)/(Fa+1),++Fa)}},200)):(ge.wheelDX+=re,ge.wheelDY+=le))}}var po=function(x,ee){this.ranges=x,this.primIndex=ee};po.prototype.primary=function(){return this.ranges[this.primIndex]},po.prototype.equals=function(x){if(x==this)return!0;if(x.primIndex!=this.primIndex||x.ranges.length!=this.ranges.length)return!1;for(var ee=0;ee<this.ranges.length;ee++){var ie=this.ranges[ee],re=x.ranges[ee];if(!Or(ie.anchor,re.anchor)||!Or(ie.head,re.head))return!1}return!0},po.prototype.deepCopy=function(){for(var x=[],ee=0;ee<this.ranges.length;ee++)x[ee]=new sa(kr(this.ranges[ee].anchor),kr(this.ranges[ee].head));return new po(x,this.primIndex)},po.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},po.prototype.contains=function(x,ee){ee||(ee=x);for(var ie=0;ie<this.ranges.length;ie++){var re=this.ranges[ie];if(rn(ee,re.from())>=0&&rn(x,re.to())<=0)return ie}return-1};var sa=function(x,ee){this.anchor=x,this.head=ee};sa.prototype.from=function(){return Dr(this.anchor,this.head)},sa.prototype.to=function(){return Cr(this.anchor,this.head)},sa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function _o(x,ee,ie){var re=x&&x.options.selectionsMayTouch,le=ee[ie];ee.sort(function(wr,mr){return rn(wr.from(),mr.from())}),ie=st(ee,le);for(var ge=1;ge<ee.length;ge++){var _e=ee[ge],it=ee[ge-1],bt=rn(it.to(),_e.from());if(re&&!_e.empty()?bt>0:bt>=0){var Ft=Dr(it.from(),_e.from()),xn=Cr(it.to(),_e.to()),Ln=it.empty()?_e.from()==_e.head:it.from()==it.head;ge<=ie&&--ie,ee.splice(--ge,2,new sa(Ln?xn:Ft,Ln?Ft:xn))}}return new po(ee,ie)}function zo(x,ee){return new po([new sa(x,ee||x)],0)}function fl(x){return x.text?en(x.from.line+x.text.length-1,on(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function sl(x,ee){if(rn(x,ee.from)<0)return x;if(rn(x,ee.to)<=0)return fl(ee);var ie=x.line+ee.text.length-(ee.to.line-ee.from.line)-1,re=x.ch;return x.line==ee.to.line&&(re+=fl(ee).ch-ee.to.ch),en(ie,re)}function El(x,ee){for(var ie=[],re=0;re<x.sel.ranges.length;re++){var le=x.sel.ranges[re];ie.push(new sa(sl(le.anchor,ee),sl(le.head,ee)))}return _o(x.cm,ie,x.sel.primIndex)}function Fl(x,ee,ie){return x.line==ee.line?en(ie.line,x.ch-ee.ch+ie.ch):en(ie.line+(x.line-ee.line),x.ch)}function Ro(x,ee,ie){for(var re=[],le=en(x.first,0),ge=le,_e=0;_e<ee.length;_e++){var it=ee[_e],bt=Fl(it.from,le,ge),Ft=Fl(fl(it),le,ge);if(le=it.to,ge=Ft,ie=="around"){var xn=x.sel.ranges[_e],Ln=rn(xn.head,xn.anchor)<0;re[_e]=new sa(Ln?Ft:bt,Ln?bt:Ft)}else re[_e]=new sa(bt,bt)}return new po(re,x.sel.primIndex)}function Hl(x){x.doc.mode=lr(x.options,x.doc.modeOption),Jo(x)}function Jo(x){x.doc.iter(function(ee){ee.stateAfter&&(ee.stateAfter=null),ee.styles&&(ee.styles=null)}),x.doc.modeFrontier=x.doc.highlightFrontier=x.doc.first,_n(x,100),x.state.modeGen++,x.curOp&&Hr(x)}function Il(x,ee){return ee.from.ch==0&&ee.to.ch==0&&on(ee.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function Ml(x,ee,ie,re){function le(Ra){return ie?ie[Ra]:null}function ge(Ra,Da,Va){Ta(Ra,Da,Va,re),Jr(Ra,"change",Ra,ee)}function _e(Ra,Da){for(var Va=[],Mo=Ra;Mo<Da;++Mo)Va.push(new hi(Ft[Mo],le(Mo),re));return Va}var it=ee.from,bt=ee.to,Ft=ee.text,xn=_t(x,it.line),Ln=_t(x,bt.line),wr=on(Ft),mr=le(Ft.length-1),di=bt.line-it.line;if(ee.full)x.insert(0,_e(0,Ft.length)),x.remove(Ft.length,x.size-Ft.length);else if(Il(x,ee)){var zi=_e(0,Ft.length-1);ge(Ln,Ln.text,mr),di&&x.remove(it.line,di),zi.length&&x.insert(it.line,zi)}else if(xn==Ln)if(Ft.length==1)ge(xn,xn.text.slice(0,it.ch)+wr+xn.text.slice(bt.ch),mr);else{var da=_e(1,Ft.length-1);da.push(new hi(wr+xn.text.slice(bt.ch),mr,re)),ge(xn,xn.text.slice(0,it.ch)+Ft[0],le(0)),x.insert(it.line+1,da)}else if(Ft.length==1)ge(xn,xn.text.slice(0,it.ch)+Ft[0]+Ln.text.slice(bt.ch),le(0)),x.remove(it.line+1,di);else{ge(xn,xn.text.slice(0,it.ch)+Ft[0],le(0)),ge(Ln,wr+Ln.text.slice(bt.ch),mr);var La=_e(1,Ft.length-1);di>1&&x.remove(it.line+1,di-1),x.insert(it.line+1,La)}Jr(x,"change",x,ee)}function as(x,ee,ie){function re(le,ge,_e){if(le.linked)for(var it=0;it<le.linked.length;++it){var bt=le.linked[it];if(bt.doc!=ge){var Ft=_e&&bt.sharedHist;ie&&!Ft||(ee(bt.doc,Ft),re(bt.doc,le,Ft))}}}re(x,null,!0)}function so(x,ee){if(ee.cm)throw new Error("This document is already in use.");x.doc=ee,ee.cm=x,ii(x),Hl(x),ao(x),x.options.lineWrapping||ri(x),x.options.mode=ee.modeOption,Hr(x)}function ao(x){(x.doc.direction=="rtl"?Ot:Je)(x.display.lineDiv,"CodeMirror-rtl")}function oo(x){cn(x,function(){ao(x),Hr(x)})}function Qa(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 rl(x,ee){var ie={from:kr(ee.from),to:fl(ee),text:Qt(x,ee.from,ee.to)};return Ys(x,ie,ee.from.line,ee.to.line+1),as(x,function(re){return Ys(re,ie,ee.from.line,ee.to.line+1)},!0),ie}function Ja(x){for(;x.length;){var ee=on(x);if(ee.ranges)x.pop();else break}}function Io(x,ee){if(ee)return Ja(x.done),on(x.done);if(x.done.length&&!on(x.done).ranges)return on(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),on(x.done)}function Xo(x,ee,ie,re){var le=x.history;le.undone.length=0;var ge=+new Date,_e,it;if((le.lastOp==re||le.lastOrigin==ee.origin&&ee.origin&&(ee.origin.charAt(0)=="+"&&le.lastModTime>ge-(x.cm?x.cm.options.historyEventDelay:500)||ee.origin.charAt(0)=="*"))&&(_e=Io(le,le.lastOp==re)))it=on(_e.changes),rn(ee.from,ee.to)==0&&rn(ee.from,it.to)==0?it.to=fl(ee):_e.changes.push(rl(x,ee));else{var bt=on(le.done);for((!bt||!bt.ranges)&&Jl(x.sel,le.done),_e={changes:[rl(x,ee)],generation:le.generation},le.done.push(_e);le.done.length>le.undoDepth;)le.done.shift(),le.done[0].ranges||le.done.shift()}le.done.push(ie),le.generation=++le.maxGeneration,le.lastModTime=le.lastSelTime=ge,le.lastOp=le.lastSelOp=re,le.lastOrigin=le.lastSelOrigin=ee.origin,it||Ke(x,"historyAdded")}function Yo(x,ee,ie,re){var le=ee.charAt(0);return le=="*"||le=="+"&&ie.ranges.length==re.ranges.length&&ie.somethingSelected()==re.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function Es(x,ee,ie,re){var le=x.history,ge=re&&re.origin;ie==le.lastSelOp||ge&&le.lastSelOrigin==ge&&(le.lastModTime==le.lastSelTime&&le.lastOrigin==ge||Yo(x,ge,on(le.done),ee))?le.done[le.done.length-1]=ee:Jl(ee,le.done),le.lastSelTime=+new Date,le.lastSelOrigin=ge,le.lastSelOp=ie,re&&re.clearRedo!==!1&&Ja(le.undone)}function Jl(x,ee){var ie=on(ee);ie&&ie.ranges&&ie.equals(x)||ee.push(x)}function Ys(x,ee,ie,re){var le=ee["spans_"+x.id],ge=0;x.iter(Math.max(x.first,ie),Math.min(x.first+x.size,re),function(_e){_e.markedSpans&&((le||(le=ee["spans_"+x.id]={}))[ge]=_e.markedSpans),++ge})}function Ul(x){if(!x)return null;for(var ee,ie=0;ie<x.length;++ie)x[ie].marker.explicitlyCleared?ee||(ee=x.slice(0,ie)):ee&&ee.push(x[ie]);return ee?ee.length?ee:null:x}function tu(x,ee){var ie=ee["spans_"+x.id];if(!ie)return null;for(var re=[],le=0;le<ee.text.length;++le)re.push(Ul(ie[le]));return re}function Gl(x,ee){var ie=tu(x,ee),re=jr(x,ee);if(!ie)return re;if(!re)return ie;for(var le=0;le<ie.length;++le){var ge=ie[le],_e=re[le];if(ge&&_e)e:for(var it=0;it<_e.length;++it){for(var bt=_e[it],Ft=0;Ft<ge.length;++Ft)if(ge[Ft].marker==bt.marker)continue e;ge.push(bt)}else _e&&(ie[le]=_e)}return ie}function ys(x,ee,ie){for(var re=[],le=0;le<x.length;++le){var ge=x[le];if(ge.ranges){re.push(ie?po.prototype.deepCopy.call(ge):ge);continue}var _e=ge.changes,it=[];re.push({changes:it});for(var bt=0;bt<_e.length;++bt){var Ft=_e[bt],xn=void 0;if(it.push({from:Ft.from,to:Ft.to,text:Ft.text}),ee)for(var Ln in Ft)(xn=Ln.match(/^spans_(\d+)$/))&&st(ee,Number(xn[1]))>-1&&(on(it)[Ln]=Ft[Ln],delete Ft[Ln])}}return re}function Du(x,ee,ie,re){if(re){var le=x.anchor;if(ie){var ge=rn(ee,le)<0;ge!=rn(ie,le)<0?(le=ee,ee=ie):ge!=rn(ee,ie)<0&&(ee=ie)}return new sa(le,ee)}else return new sa(ie||ee,ee)}function il(x,ee,ie,re,le){le==null&&(le=x.cm&&(x.cm.display.shift||x.extend)),Cl(x,new po([Du(x.sel.primary(),ee,ie,le)],0),re)}function _i(x,ee,ie){for(var re=[],le=x.cm&&(x.cm.display.shift||x.extend),ge=0;ge<x.sel.ranges.length;ge++)re[ge]=Du(x.sel.ranges[ge],ee[ge],null,le);var _e=_o(x.cm,re,x.sel.primIndex);Cl(x,_e,ie)}function $o(x,ee,ie,re){var le=x.sel.ranges.slice(0);le[ee]=ie,Cl(x,_o(x.cm,le,x.sel.primIndex),re)}function Ql(x,ee,ie,re){Cl(x,zo(ee,ie),re)}function os(x,ee,ie){var re={ranges:ee.ranges,update:function(le){this.ranges=[];for(var ge=0;ge<le.length;ge++)this.ranges[ge]=new sa(br(x,le[ge].anchor),br(x,le[ge].head))},origin:ie&&ie.origin};return Ke(x,"beforeSelectionChange",x,re),x.cm&&Ke(x.cm,"beforeSelectionChange",x.cm,re),re.ranges!=ee.ranges?_o(x.cm,re.ranges,re.ranges.length-1):ee}function Fo(x,ee,ie){var re=x.history.done,le=on(re);le&&le.ranges?(re[re.length-1]=ee,$l(x,ee,ie)):Cl(x,ee,ie)}function Cl(x,ee,ie){$l(x,ee,ie),Es(x,x.sel,x.cm?x.cm.curOp.id:NaN,ie)}function $l(x,ee,ie){(Nt(x,"beforeSelectionChange")||x.cm&&Nt(x.cm,"beforeSelectionChange"))&&(ee=os(x,ee,ie));var re=ie&&ie.bias||(rn(ee.primary().head,x.sel.primary().head)<0?-1:1);Us(x,Tl(x,ee,re,!0)),!(ie&&ie.scroll===!1)&&x.cm&&xu(x.cm)}function Us(x,ee){ee.equals(x.sel)||(x.sel=ee,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,Vt(x.cm)),Jr(x,"cursorActivity",x))}function Cu(x){Us(x,Tl(x,x.sel,null,!1))}function Tl(x,ee,ie,re){for(var le,ge=0;ge<ee.ranges.length;ge++){var _e=ee.ranges[ge],it=ee.ranges.length==x.sel.ranges.length&&x.sel.ranges[ge],bt=nu(x,_e.anchor,it&&it.anchor,ie,re),Ft=nu(x,_e.head,it&&it.head,ie,re);(le||bt!=_e.anchor||Ft!=_e.head)&&(le||(le=ee.ranges.slice(0,ge)),le[ge]=new sa(bt,Ft))}return le?_o(x.cm,le,ee.primIndex):ee}function ps(x,ee,ie,re,le){var ge=_t(x,ee.line);if(ge.markedSpans)for(var _e=0;_e<ge.markedSpans.length;++_e){var it=ge.markedSpans[_e],bt=it.marker,Ft="selectLeft"in bt?!bt.selectLeft:bt.inclusiveLeft,xn="selectRight"in bt?!bt.selectRight:bt.inclusiveRight;if((it.from==null||(Ft?it.from<=ee.ch:it.from<ee.ch))&&(it.to==null||(xn?it.to>=ee.ch:it.to>ee.ch))){if(le&&(Ke(bt,"beforeCursorEnter"),bt.explicitlyCleared))if(ge.markedSpans){--_e;continue}else break;if(!bt.atomic)continue;if(ie){var Ln=bt.find(re<0?1:-1),wr=void 0;if((re<0?xn:Ft)&&(Ln=Cs(x,Ln,-re,Ln&&Ln.line==ee.line?ge:null)),Ln&&Ln.line==ee.line&&(wr=rn(Ln,ie))&&(re<0?wr<0:wr>0))return ps(x,Ln,ee,re,le)}var mr=bt.find(re<0?-1:1);return(re<0?Ft:xn)&&(mr=Cs(x,mr,re,mr.line==ee.line?ge:null)),mr?ps(x,mr,ee,re,le):null}}return ee}function nu(x,ee,ie,re,le){var ge=re||1,_e=ps(x,ee,ie,ge,le)||!le&&ps(x,ee,ie,ge,!0)||ps(x,ee,ie,-ge,le)||!le&&ps(x,ee,ie,-ge,!0);return _e||(x.cantEdit=!0,en(x.first,0))}function Cs(x,ee,ie,re){return ie<0&&ee.ch==0?ee.line>x.first?br(x,en(ee.line-1)):null:ie>0&&ee.ch==(re||_t(x,ee.line)).text.length?ee.line<x.first+x.size-1?en(ee.line+1,0):null:new en(ee.line,ee.ch+ie)}function Fs(x){x.setSelection(en(x.firstLine(),0),en(x.lastLine()),ct)}function ls(x,ee,ie){var re={canceled:!1,from:ee.from,to:ee.to,text:ee.text,origin:ee.origin,cancel:function(){return re.canceled=!0}};return ie&&(re.update=function(le,ge,_e,it){le&&(re.from=br(x,le)),ge&&(re.to=br(x,ge)),_e&&(re.text=_e),it!==void 0&&(re.origin=it)}),Ke(x,"beforeChange",x,re),x.cm&&Ke(x.cm,"beforeChange",x.cm,re),re.canceled?(x.cm&&(x.cm.curOp.updateInput=2),null):{from:re.from,to:re.to,text:re.text,origin:re.origin}}function Ll(x,ee,ie){if(x.cm){if(!x.cm.curOp)return Fn(x.cm,Ll)(x,ee,ie);if(x.cm.state.suppressEdits)return}if(!((Nt(x,"beforeChange")||x.cm&&Nt(x.cm,"beforeChange"))&&(ee=ls(x,ee,!0),!ee))){var re=Zi&&!ie&&Vi(x,ee.from,ee.to);if(re)for(var le=re.length-1;le>=0;--le)Rl(x,{from:re[le].from,to:re[le].to,text:le?[""]:ee.text,origin:ee.origin});else Rl(x,ee)}}function Rl(x,ee){if(!(ee.text.length==1&&ee.text[0]==""&&rn(ee.from,ee.to)==0)){var ie=El(x,ee);Xo(x,ee,ie,x.cm?x.cm.curOp.id:NaN),Rs(x,ee,ie,jr(x,ee));var re=[];as(x,function(le,ge){!ge&&st(re,le.history)==-1&&(wl(le.history,ee),re.push(le.history)),Rs(le,ee,null,jr(le,ee))})}}function Ps(x,ee,ie){var re=x.cm&&x.cm.state.suppressEdits;if(!(re&&!ie)){for(var le=x.history,ge,_e=x.sel,it=ee=="undo"?le.done:le.undone,bt=ee=="undo"?le.undone:le.done,Ft=0;Ft<it.length&&(ge=it[Ft],!(ie?ge.ranges&&!ge.equals(x.sel):!ge.ranges));Ft++);if(Ft!=it.length){for(le.lastOrigin=le.lastSelOrigin=null;;)if(ge=it.pop(),ge.ranges){if(Jl(ge,bt),ie&&!ge.equals(x.sel)){Cl(x,ge,{clearRedo:!1});return}_e=ge}else if(re){it.push(ge);return}else break;var xn=[];Jl(_e,bt),bt.push({changes:xn,generation:le.generation}),le.generation=ge.generation||++le.maxGeneration;for(var Ln=Nt(x,"beforeChange")||x.cm&&Nt(x.cm,"beforeChange"),wr=function(zi){var da=ge.changes[zi];if(da.origin=ee,Ln&&!ls(x,da,!1))return it.length=0,{};xn.push(rl(x,da));var La=zi?El(x,da):on(it);Rs(x,da,La,Gl(x,da)),!zi&&x.cm&&x.cm.scrollIntoView({from:da.from,to:fl(da)});var Ra=[];as(x,function(Da,Va){!Va&&st(Ra,Da.history)==-1&&(wl(Da.history,da),Ra.push(Da.history)),Rs(Da,da,null,Gl(Da,da))})},mr=ge.changes.length-1;mr>=0;--mr){var di=wr(mr);if(di)return di.v}}}}function Mu(x,ee){if(ee!=0&&(x.first+=ee,x.sel=new po(dn(x.sel.ranges,function(le){return new sa(en(le.anchor.line+ee,le.anchor.ch),en(le.head.line+ee,le.head.ch))}),x.sel.primIndex),x.cm)){Hr(x.cm,x.first,x.first-ee,ee);for(var ie=x.cm.display,re=ie.viewFrom;re<ie.viewTo;re++)Ur(x.cm,re,"gutter")}}function Rs(x,ee,ie,re){if(x.cm&&!x.cm.curOp)return Fn(x.cm,Rs)(x,ee,ie,re);if(ee.to.line<x.first){Mu(x,ee.text.length-1-(ee.to.line-ee.from.line));return}if(!(ee.from.line>x.lastLine())){if(ee.from.line<x.first){var le=ee.text.length-1-(x.first-ee.from.line);Mu(x,le),ee={from:en(x.first,0),to:en(ee.to.line+le,ee.to.ch),text:[on(ee.text)],origin:ee.origin}}var ge=x.lastLine();ee.to.line>ge&&(ee={from:ee.from,to:en(ge,_t(x,ge).text.length),text:[ee.text[0]],origin:ee.origin}),ee.removed=Qt(x,ee.from,ee.to),ie||(ie=El(x,ee)),x.cm?Gs(x.cm,ee,re):Ml(x,ee,re),$l(x,ie,ct),x.cantEdit&&nu(x,en(x.firstLine(),0))&&(x.cantEdit=!1)}}function Gs(x,ee,ie){var re=x.doc,le=x.display,ge=ee.from,_e=ee.to,it=!1,bt=ge.line;x.options.lineWrapping||(bt=Bn(Ma(_t(re,ge.line))),re.iter(bt,_e.line+1,function(mr){if(mr==le.maxLine)return it=!0,!0})),re.sel.contains(ee.from,ee.to)>-1&&Vt(x),Ml(re,ee,ie,va(x)),x.options.lineWrapping||(re.iter(bt,ge.line+ee.text.length,function(mr){var di=Ei(mr);di>le.maxLineLength&&(le.maxLine=mr,le.maxLineLength=di,le.maxLineChanged=!0,it=!1)}),it&&(x.curOp.updateMaxLine=!0)),wi(re,ge.line),_n(x,400);var Ft=ee.text.length-(_e.line-ge.line)-1;ee.full?Hr(x):ge.line==_e.line&&ee.text.length==1&&!Il(x.doc,ee)?Ur(x,ge.line,"text"):Hr(x,ge.line,_e.line+1,Ft);var xn=Nt(x,"changes"),Ln=Nt(x,"change");if(Ln||xn){var wr={from:ge,to:_e,text:ee.text,removed:ee.removed,origin:ee.origin};Ln&&Jr(x,"change",x,wr),xn&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(wr)}x.display.selForContextMenu=null}function Ru(x,ee,ie,re,le){var ge;re||(re=ie),rn(re,ie)<0&&(ge=[re,ie],ie=ge[0],re=ge[1]),typeof ee=="string"&&(ee=x.splitLines(ee)),Ll(x,{from:ie,to:re,text:ee,origin:le})}function _c(x,ee,ie,re){ie<x.line?x.line+=re:ee<x.line&&(x.line=ee,x.ch=0)}function ul(x,ee,ie,re){for(var le=0;le<x.length;++le){var ge=x[le],_e=!0;if(ge.ranges){ge.copied||(ge=x[le]=ge.deepCopy(),ge.copied=!0);for(var it=0;it<ge.ranges.length;it++)_c(ge.ranges[it].anchor,ee,ie,re),_c(ge.ranges[it].head,ee,ie,re);continue}for(var bt=0;bt<ge.changes.length;++bt){var Ft=ge.changes[bt];if(ie<Ft.from.line)Ft.from=en(Ft.from.line+re,Ft.from.ch),Ft.to=en(Ft.to.line+re,Ft.to.ch);else if(ee<=Ft.to.line){_e=!1;break}}_e||(x.splice(0,le+1),le=0)}}function wl(x,ee){var ie=ee.from.line,re=ee.to.line,le=ee.text.length-(re-ie)-1;ul(x.done,ie,re,le),ul(x.undone,ie,re,le)}function ms(x,ee,ie,re){var le=ee,ge=ee;return typeof ee=="number"?ge=_t(x,qr(x,ee)):le=Bn(ee),le==null?null:(re(ge,le)&&x.cm&&Ur(x.cm,le,ie),ge)}function Bl(x){this.lines=x,this.parent=null;for(var ee=0,ie=0;ie<x.length;++ie)x[ie].parent=this,ee+=x[ie].height;this.height=ee}Bl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,ee){for(var ie=x,re=x+ee;ie<re;++ie){var le=this.lines[ie];this.height-=le.height,vo(le),Jr(le,"delete")}this.lines.splice(x,ee)},collapse:function(x){x.push.apply(x,this.lines)},insertInner:function(x,ee,ie){this.height+=ie,this.lines=this.lines.slice(0,x).concat(ee).concat(this.lines.slice(x));for(var re=0;re<ee.length;++re)ee[re].parent=this},iterN:function(x,ee,ie){for(var re=x+ee;x<re;++x)if(ie(this.lines[x]))return!0}};function is(x){this.children=x;for(var ee=0,ie=0,re=0;re<x.length;++re){var le=x[re];ee+=le.chunkSize(),ie+=le.height,le.parent=this}this.size=ee,this.height=ie,this.parent=null}is.prototype={chunkSize:function(){return this.size},removeInner:function(x,ee){this.size-=ee;for(var ie=0;ie<this.children.length;++ie){var re=this.children[ie],le=re.chunkSize();if(x<le){var ge=Math.min(ee,le-x),_e=re.height;if(re.removeInner(x,ge),this.height-=_e-re.height,le==ge&&(this.children.splice(ie--,1),re.parent=null),(ee-=ge)==0)break;x=0}else x-=le}if(this.size-ee<25&&(this.children.length>1||!(this.children[0]instanceof Bl))){var it=[];this.collapse(it),this.children=[new Bl(it)],this.children[0].parent=this}},collapse:function(x){for(var ee=0;ee<this.children.length;++ee)this.children[ee].collapse(x)},insertInner:function(x,ee,ie){this.size+=ee.length,this.height+=ie;for(var re=0;re<this.children.length;++re){var le=this.children[re],ge=le.chunkSize();if(x<=ge){if(le.insertInner(x,ee,ie),le.lines&&le.lines.length>50){for(var _e=le.lines.length%25+25,it=_e;it<le.lines.length;){var bt=new Bl(le.lines.slice(it,it+=25));le.height-=bt.height,this.children.splice(++re,0,bt),bt.parent=this}le.lines=le.lines.slice(0,_e),this.maybeSpill()}break}x-=ge}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var ee=x.children.splice(x.children.length-5,5),ie=new is(ee);if(x.parent){x.size-=ie.size,x.height-=ie.height;var le=st(x.parent.children,x);x.parent.children.splice(le+1,0,ie)}else{var re=new is(x.children);re.parent=x,x.children=[re,ie],x=re}ie.parent=x.parent}while(x.children.length>10);x.parent.maybeSpill()}},iterN:function(x,ee,ie){for(var re=0;re<this.children.length;++re){var le=this.children[re],ge=le.chunkSize();if(x<ge){var _e=Math.min(ee,ge-x);if(le.iterN(x,_e,ie))return!0;if((ee-=_e)==0)break;x=0}else x-=ge}}};var ws=function(x,ee,ie){if(ie)for(var re in ie)ie.hasOwnProperty(re)&&(this[re]=ie[re]);this.doc=x,this.node=ee};ws.prototype.clear=function(){var x=this.doc.cm,ee=this.line.widgets,ie=this.line,re=Bn(ie);if(!(re==null||!ee)){for(var le=0;le<ee.length;++le)ee[le]==this&&ee.splice(le--,1);ee.length||(ie.widgets=null);var ge=Qo(this);sn(ie,Math.max(0,ie.height-ge)),x&&(cn(x,function(){zs(x,ie,-ge),Ur(x,re,"widget")}),Jr(x,"lineWidgetCleared",x,this,re))}},ws.prototype.changed=function(){var x=this,ee=this.height,ie=this.doc.cm,re=this.line;this.height=null;var le=Qo(this)-ee;le&&(Ho(this.doc,re)||sn(re,re.height+le),ie&&cn(ie,function(){ie.curOp.forceUpdate=!0,zs(ie,re,le),Jr(ie,"lineWidgetChanged",ie,x,Bn(re))}))},Xt(ws);function zs(x,ee,ie){Qr(ee)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&_u(x,ie)}function ru(x,ee,ie,re){var le=new ws(x,ie,re),ge=x.cm;return ge&&le.noHScroll&&(ge.display.alignWidgets=!0),ms(x,ee,"widget",function(_e){var it=_e.widgets||(_e.widgets=[]);if(le.insertAt==null?it.push(le):it.splice(Math.min(it.length-1,Math.max(0,le.insertAt)),0,le),le.line=_e,ge&&!Ho(x,_e)){var bt=Qr(_e)<x.scrollTop;sn(_e,_e.height+Qo(le)),bt&&_u(ge,le.height),ge.curOp.forceUpdate=!0}return!0}),ge&&Jr(ge,"lineWidgetAdded",ge,le,typeof ee=="number"?ee:Bn(ee)),le}var nd=0,Qu=function(x,ee){this.lines=[],this.type=ee,this.doc=x,this.id=++nd};Qu.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,ee=x&&!x.curOp;if(ee&&Ui(x),Nt(this,"clear")){var ie=this.find();ie&&Jr(this,"clear",ie.from,ie.to)}for(var re=null,le=null,ge=0;ge<this.lines.length;++ge){var _e=this.lines[ge],it=zr(_e.markedSpans,this);x&&!this.collapsed?Ur(x,Bn(_e),"text"):x&&(it.to!=null&&(le=Bn(_e)),it.from!=null&&(re=Bn(_e))),_e.markedSpans=li(_e.markedSpans,it),it.from==null&&this.collapsed&&!Ho(this.doc,_e)&&x&&sn(_e,Ai(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var bt=0;bt<this.lines.length;++bt){var Ft=Ma(this.lines[bt]),xn=Ei(Ft);xn>x.display.maxLineLength&&(x.display.maxLine=Ft,x.display.maxLineLength=xn,x.display.maxLineChanged=!0)}re!=null&&x&&this.collapsed&&Hr(x,re,le+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&Cu(x.doc)),x&&Jr(x,"markerCleared",x,this,re,le),ee&&Co(x),this.parent&&this.parent.clear()}},Qu.prototype.find=function(x,ee){x==null&&this.type=="bookmark"&&(x=1);for(var ie,re,le=0;le<this.lines.length;++le){var ge=this.lines[le],_e=zr(ge.markedSpans,this);if(_e.from!=null&&(ie=en(ee?ge:Bn(ge),_e.from),x==-1))return ie;if(_e.to!=null&&(re=en(ee?ge:Bn(ge),_e.to),x==1))return re}return ie&&{from:ie,to:re}},Qu.prototype.changed=function(){var x=this,ee=this.find(-1,!0),ie=this,re=this.doc.cm;!ee||!re||cn(re,function(){var le=ee.line,ge=Bn(ee.line),_e=ma(re,ge);if(_e&&(Ba(_e),re.curOp.selectionChanged=re.curOp.forceUpdate=!0),re.curOp.updateMaxLine=!0,!Ho(ie.doc,le)&&ie.height!=null){var it=ie.height;ie.height=null;var bt=Qo(ie)-it;bt&&sn(le,le.height+bt)}Jr(re,"markerChanged",re,x)})},Qu.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var ee=this.doc.cm.curOp;(!ee.maybeHiddenMarkers||st(ee.maybeHiddenMarkers,this)==-1)&&(ee.maybeUnhiddenMarkers||(ee.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},Qu.prototype.detachLine=function(x){if(this.lines.splice(st(this.lines,x),1),!this.lines.length&&this.doc.cm){var ee=this.doc.cm.curOp;(ee.maybeHiddenMarkers||(ee.maybeHiddenMarkers=[])).push(this)}},Xt(Qu);function wu(x,ee,ie,re,le){if(re&&re.shared)return Kl(x,ee,ie,re,le);if(x.cm&&!x.cm.curOp)return Fn(x.cm,wu)(x,ee,ie,re,le);var ge=new Qu(x,le),_e=rn(ee,ie);if(re&&at(re,ge,!1),_e>0||_e==0&&ge.clearWhenEmpty!==!1)return ge;if(ge.replacedWith&&(ge.collapsed=!0,ge.widgetNode=mt("span",[ge.replacedWith],"CodeMirror-widget"),re.handleMouseEvents||ge.widgetNode.setAttribute("cm-ignore-events","true"),re.insertLeft&&(ge.widgetNode.insertLeft=!0)),ge.collapsed){if(Aa(x,ee.line,ee,ie,ge)||ee.line!=ie.line&&Aa(x,ie.line,ee,ie,ge))throw new Error("Inserting collapsed marker partially overlapping an existing one");Bi()}ge.addToHistory&&Xo(x,{from:ee,to:ie,origin:"markText"},x.sel,NaN);var it=ee.line,bt=x.cm,Ft;if(x.iter(it,ie.line+1,function(Ln){bt&&ge.collapsed&&!bt.options.lineWrapping&&Ma(Ln)==bt.display.maxLine&&(Ft=!0),ge.collapsed&&it!=ee.line&&sn(Ln,0),Ii(Ln,new Di(ge,it==ee.line?ee.ch:null,it==ie.line?ie.ch:null)),++it}),ge.collapsed&&x.iter(ee.line,ie.line+1,function(Ln){Ho(x,Ln)&&sn(Ln,0)}),ge.clearOnEnter&&Ut(ge,"beforeCursorEnter",function(){return ge.clear()}),ge.readOnly&&(Gi(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),ge.collapsed&&(ge.id=++nd,ge.atomic=!0),bt){if(Ft&&(bt.curOp.updateMaxLine=!0),ge.collapsed)Hr(bt,ee.line,ie.line+1);else if(ge.className||ge.startStyle||ge.endStyle||ge.css||ge.attributes||ge.title)for(var xn=ee.line;xn<=ie.line;xn++)Ur(bt,xn,"text");ge.atomic&&Cu(bt.doc),Jr(bt,"markerAdded",bt,ge)}return ge}var el=function(x,ee){this.markers=x,this.primary=ee;for(var ie=0;ie<x.length;++ie)x[ie].parent=this};el.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();Jr(this,"clear")}},el.prototype.find=function(x,ee){return this.primary.find(x,ee)},Xt(el);function Kl(x,ee,ie,re,le){re=at(re),re.shared=!1;var ge=[wu(x,ee,ie,re,le)],_e=ge[0],it=re.widgetNode;return as(x,function(bt){it&&(re.widgetNode=it.cloneNode(!0)),ge.push(wu(bt,br(bt,ee),br(bt,ie),re,le));for(var Ft=0;Ft<bt.linked.length;++Ft)if(bt.linked[Ft].isParent)return;_e=on(ge)}),new el(ge,_e)}function ku(x){return x.findMarks(en(x.first,0),x.clipPos(en(x.lastLine())),function(ee){return ee.parent})}function ac(x,ee){for(var ie=0;ie<ee.length;ie++){var re=ee[ie],le=re.find(),ge=x.clipPos(le.from),_e=x.clipPos(le.to);if(rn(ge,_e)){var it=wu(x,ge,_e,re.primary,re.primary.type);re.markers.push(it),it.parent=re}}}function iu(x){for(var ee=function(re){var le=x[re],ge=[le.primary.doc];as(le.primary.doc,function(bt){return ge.push(bt)});for(var _e=0;_e<le.markers.length;_e++){var it=le.markers[_e];st(ge,it.doc)==-1&&(it.parent=null,le.markers.splice(_e--,1))}},ie=0;ie<x.length;ie++)ee(ie)}var gc=0,ss=function(x,ee,ie,re,le){if(!(this instanceof ss))return new ss(x,ee,ie,re,le);ie==null&&(ie=0),is.call(this,[new Bl([new hi("",null)])]),this.first=ie,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ie;var ge=en(ie,0);this.sel=zo(ge),this.history=new Qa(null),this.id=++gc,this.modeOption=ee,this.lineSep=re,this.direction=le=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),Ml(this,{from:ge,to:ge,text:x}),Cl(this,zo(ge),ct)};ss.prototype=fe(is.prototype,{constructor:ss,iter:function(x,ee,ie){ie?this.iterN(x-this.first,ee-x,ie):this.iterN(this.first,this.first+this.size,x)},insert:function(x,ee){for(var ie=0,re=0;re<ee.length;++re)ie+=ee[re].height;this.insertInner(x-this.first,ee,ie)},remove:function(x,ee){this.removeInner(x-this.first,ee)},getValue:function(x){var ee=pn(this,this.first,this.first+this.size);return x===!1?ee:ee.join(x||this.lineSeparator())},setValue:Wn(function(x){var ee=en(this.first,0),ie=this.first+this.size-1;Ll(this,{from:ee,to:en(ie,_t(this,ie).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&du(this.cm,0,0),Cl(this,zo(ee),ct)}),replaceRange:function(x,ee,ie,re){ee=br(this,ee),ie=ie?br(this,ie):ee,Ru(this,x,ee,ie,re)},getRange:function(x,ee,ie){var re=Qt(this,br(this,x),br(this,ee));return ie===!1?re:re.join(ie||this.lineSeparator())},getLine:function(x){var ee=this.getLineHandle(x);return ee&&ee.text},getLineHandle:function(x){if(cr(this,x))return _t(this,x)},getLineNumber:function(x){return Bn(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=_t(this,x)),Ma(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return br(this,x)},getCursor:function(x){var ee=this.sel.primary(),ie;return x==null||x=="head"?ie=ee.head:x=="anchor"?ie=ee.anchor:x=="end"||x=="to"||x===!1?ie=ee.to():ie=ee.from(),ie},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Wn(function(x,ee,ie){Ql(this,br(this,typeof x=="number"?en(x,ee||0):x),null,ie)}),setSelection:Wn(function(x,ee,ie){Ql(this,br(this,x),br(this,ee||x),ie)}),extendSelection:Wn(function(x,ee,ie){il(this,br(this,x),ee&&br(this,ee),ie)}),extendSelections:Wn(function(x,ee){_i(this,Jt(this,x),ee)}),extendSelectionsBy:Wn(function(x,ee){var ie=dn(this.sel.ranges,x);_i(this,Jt(this,ie),ee)}),setSelections:Wn(function(x,ee,ie){if(x.length){for(var re=[],le=0;le<x.length;le++)re[le]=new sa(br(this,x[le].anchor),br(this,x[le].head));ee==null&&(ee=Math.min(x.length-1,this.sel.primIndex)),Cl(this,_o(this.cm,re,ee),ie)}}),addSelection:Wn(function(x,ee,ie){var re=this.sel.ranges.slice(0);re.push(new sa(br(this,x),br(this,ee||x))),Cl(this,_o(this.cm,re,re.length-1),ie)}),getSelection:function(x){for(var ee=this.sel.ranges,ie,re=0;re<ee.length;re++){var le=Qt(this,ee[re].from(),ee[re].to());ie=ie?ie.concat(le):le}return x===!1?ie:ie.join(x||this.lineSeparator())},getSelections:function(x){for(var ee=[],ie=this.sel.ranges,re=0;re<ie.length;re++){var le=Qt(this,ie[re].from(),ie[re].to());x!==!1&&(le=le.join(x||this.lineSeparator())),ee[re]=le}return ee},replaceSelection:function(x,ee,ie){for(var re=[],le=0;le<this.sel.ranges.length;le++)re[le]=x;this.replaceSelections(re,ee,ie||"+input")},replaceSelections:Wn(function(x,ee,ie){for(var re=[],le=this.sel,ge=0;ge<le.ranges.length;ge++){var _e=le.ranges[ge];re[ge]={from:_e.from(),to:_e.to(),text:this.splitLines(x[ge]),origin:ie}}for(var it=ee&&ee!="end"&&Ro(this,re,ee),bt=re.length-1;bt>=0;bt--)Ll(this,re[bt]);it?Fo(this,it):this.cm&&xu(this.cm)}),undo:Wn(function(){Ps(this,"undo")}),redo:Wn(function(){Ps(this,"redo")}),undoSelection:Wn(function(){Ps(this,"undo",!0)}),redoSelection:Wn(function(){Ps(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,ee=0,ie=0,re=0;re<x.done.length;re++)x.done[re].ranges||++ee;for(var le=0;le<x.undone.length;le++)x.undone[le].ranges||++ie;return{undo:ee,redo:ie}},clearHistory:function(){var x=this;this.history=new Qa(this.history.maxGeneration),as(this,function(ee){return ee.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:ys(this.history.done),undone:ys(this.history.undone)}},setHistory:function(x){var ee=this.history=new Qa(this.history.maxGeneration);ee.done=ys(x.done.slice(0),null,!0),ee.undone=ys(x.undone.slice(0),null,!0)},setGutterMarker:Wn(function(x,ee,ie){return ms(this,x,"gutter",function(re){var le=re.gutterMarkers||(re.gutterMarkers={});return le[ee]=ie,!ie&&oe(le)&&(re.gutterMarkers=null),!0})}),clearGutter:Wn(function(x){var ee=this;this.iter(function(ie){ie.gutterMarkers&&ie.gutterMarkers[x]&&ms(ee,ie,"gutter",function(){return ie.gutterMarkers[x]=null,oe(ie.gutterMarkers)&&(ie.gutterMarkers=null),!0})})}),lineInfo:function(x){var ee;if(typeof x=="number"){if(!cr(this,x)||(ee=x,x=_t(this,x),!x))return null}else if(ee=Bn(x),ee==null)return null;return{line:ee,handle:x,text:x.text,gutterMarkers:x.gutterMarkers,textClass:x.textClass,bgClass:x.bgClass,wrapClass:x.wrapClass,widgets:x.widgets}},addLineClass:Wn(function(x,ee,ie){return ms(this,x,ee=="gutter"?"gutter":"class",function(re){var le=ee=="text"?"textClass":ee=="background"?"bgClass":ee=="gutter"?"gutterClass":"wrapClass";if(!re[le])re[le]=ie;else{if(Ae(ie).test(re[le]))return!1;re[le]+=" "+ie}return!0})}),removeLineClass:Wn(function(x,ee,ie){return ms(this,x,ee=="gutter"?"gutter":"class",function(re){var le=ee=="text"?"textClass":ee=="background"?"bgClass":ee=="gutter"?"gutterClass":"wrapClass",ge=re[le];if(ge)if(ie==null)re[le]=null;else{var _e=ge.match(Ae(ie));if(!_e)return!1;var it=_e.index+_e[0].length;re[le]=ge.slice(0,_e.index)+(!_e.index||it==ge.length?"":" ")+ge.slice(it)||null}else return!1;return!0})}),addLineWidget:Wn(function(x,ee,ie){return ru(this,x,ee,ie)}),removeLineWidget:function(x){x.clear()},markText:function(x,ee,ie){return wu(this,br(this,x),br(this,ee),ie,ie&&ie.type||"range")},setBookmark:function(x,ee){var ie={replacedWith:ee&&(ee.nodeType==null?ee.widget:ee),insertLeft:ee&&ee.insertLeft,clearWhenEmpty:!1,shared:ee&&ee.shared,handleMouseEvents:ee&&ee.handleMouseEvents};return x=br(this,x),wu(this,x,x,ie,"bookmark")},findMarksAt:function(x){x=br(this,x);var ee=[],ie=_t(this,x.line).markedSpans;if(ie)for(var re=0;re<ie.length;++re){var le=ie[re];(le.from==null||le.from<=x.ch)&&(le.to==null||le.to>=x.ch)&&ee.push(le.marker.parent||le.marker)}return ee},findMarks:function(x,ee,ie){x=br(this,x),ee=br(this,ee);var re=[],le=x.line;return this.iter(x.line,ee.line+1,function(ge){var _e=ge.markedSpans;if(_e)for(var it=0;it<_e.length;it++){var bt=_e[it];!(bt.to!=null&&le==x.line&&x.ch>=bt.to||bt.from==null&&le!=x.line||bt.from!=null&&le==ee.line&&bt.from>=ee.ch)&&(!ie||ie(bt.marker))&&re.push(bt.marker.parent||bt.marker)}++le}),re},getAllMarks:function(){var x=[];return this.iter(function(ee){var ie=ee.markedSpans;if(ie)for(var re=0;re<ie.length;++re)ie[re].from!=null&&x.push(ie[re].marker)}),x},posFromIndex:function(x){var ee,ie=this.first,re=this.lineSeparator().length;return this.iter(function(le){var ge=le.text.length+re;if(ge>x)return ee=x,!0;x-=ge,++ie}),br(this,en(ie,ee))},indexFromPos:function(x){x=br(this,x);var ee=x.ch;if(x.line<this.first||x.ch<0)return 0;var ie=this.lineSeparator().length;return this.iter(this.first,x.line,function(re){ee+=re.text.length+ie}),ee},copy:function(x){var ee=new ss(pn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ee.scrollTop=this.scrollTop,ee.scrollLeft=this.scrollLeft,ee.sel=this.sel,ee.extend=!1,x&&(ee.history.undoDepth=this.history.undoDepth,ee.setHistory(this.getHistory())),ee},linkedDoc:function(x){x||(x={});var ee=this.first,ie=this.first+this.size;x.from!=null&&x.from>ee&&(ee=x.from),x.to!=null&&x.to<ie&&(ie=x.to);var re=new ss(pn(this,ee,ie),x.mode||this.modeOption,ee,this.lineSep,this.direction);return x.sharedHist&&(re.history=this.history),(this.linked||(this.linked=[])).push({doc:re,sharedHist:x.sharedHist}),re.linked=[{doc:this,isParent:!0,sharedHist:x.sharedHist}],ac(re,ku(this)),re},unlinkDoc:function(x){if(x instanceof jo&&(x=x.doc),this.linked)for(var ee=0;ee<this.linked.length;++ee){var ie=this.linked[ee];if(ie.doc==x){this.linked.splice(ee,1),x.unlinkDoc(this),iu(ku(this));break}}if(x.history==this.history){var re=[x.id];as(x,function(le){return re.push(le.id)},!0),x.history=new Qa(null),x.history.done=ys(this.history.done,re),x.history.undone=ys(this.history.undone,re)}},iterLinkedDocs:function(x){as(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:Wn(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(ee){return ee.order=null}),this.cm&&oo(this.cm))})}),ss.prototype.eachLine=ss.prototype.iter;var Mc=0;function gd(x){var ee=this;if(Yu(ee),!(gt(ee,x)||Cn(ee.display,x))){Mn(x),Ce&&(Mc=+new Date);var ie=ca(ee,x,!0),re=x.dataTransfer.files;if(!(!ie||ee.isReadOnly()))if(re&&re.length&&window.FileReader&&window.File)for(var le=re.length,ge=Array(le),_e=0,it=function(){++_e==le&&Fn(ee,function(){ie=br(ee.doc,ie);var mr={from:ie,to:ie,text:ee.doc.splitLines(ge.filter(function(di){return di!=null}).join(ee.doc.lineSeparator())),origin:"paste"};Ll(ee.doc,mr),Fo(ee.doc,zo(br(ee.doc,ie),br(ee.doc,fl(mr))))})()},bt=function(mr,di){if(ee.options.allowDropFileTypes&&st(ee.options.allowDropFileTypes,mr.type)==-1){it();return}var zi=new FileReader;zi.onerror=function(){return it()},zi.onload=function(){var da=zi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(da)){it();return}ge[di]=da,it()},zi.readAsText(mr)},Ft=0;Ft<re.length;Ft++)bt(re[Ft],Ft);else{if(ee.state.draggingText&&ee.doc.sel.contains(ie)>-1){ee.state.draggingText(x),setTimeout(function(){return ee.display.input.focus()},20);return}try{var xn=x.dataTransfer.getData("Text");if(xn){var Ln;if(ee.state.draggingText&&!ee.state.draggingText.copy&&(Ln=ee.listSelections()),$l(ee.doc,zo(ie,ie)),Ln)for(var wr=0;wr<Ln.length;++wr)Ru(ee.doc,"",Ln[wr].anchor,Ln[wr].head,"drag");ee.replaceSelection(xn,"around","paste"),ee.display.input.focus()}}catch(mr){}}}}function Tc(x,ee){if(Ce&&(!x.state.draggingText||+new Date-Mc<100)){ur(ee);return}if(!(gt(x,ee)||Cn(x.display,ee))&&(ee.dataTransfer.setData("Text",x.getSelection()),ee.dataTransfer.effectAllowed="copyMove",ee.dataTransfer.setDragImage&&!et)){var ie=$e("img",null,null,"position: fixed; left: 0; top: 0;");ie.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Pe&&(ie.width=ie.height=1,x.display.wrapper.appendChild(ie),ie._top=ie.offsetTop),ee.dataTransfer.setDragImage(ie,0,0),Pe&&ie.parentNode.removeChild(ie)}}function Rc(x,ee){var ie=ca(x,ee);if(ie){var re=document.createDocumentFragment();dl(x,ie,re),x.display.dragCursor||(x.display.dragCursor=$e("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),vt(x.display.dragCursor,re)}}function Yu(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function Xu(x){if(document.getElementsByClassName){for(var ee=document.getElementsByClassName("CodeMirror"),ie=[],re=0;re<ee.length;re++){var le=ee[re].CodeMirror;le&&ie.push(le)}ie.length&&ie[0].operation(function(){for(var ge=0;ge<ie.length;ge++)x(ie[ge])})}}var ta=!1;function rd(){ta||(zc(),ta=!0)}function zc(){var x;Ut(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,Xu(Zc)},100))}),Ut(window,"blur",function(){return Xu(No)})}function Zc(x){var ee=x.display;ee.cachedCharWidth=ee.cachedTextHeight=ee.cachedPaddingH=null,ee.scrollbarsClipped=!1,x.setSize()}for(var mu={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"},Ju=0;Ju<10;Ju++)mu[Ju+48]=mu[Ju+96]=String(Ju);for(var yc=65;yc<=90;yc++)mu[yc]=String.fromCharCode(yc);for(var oc=1;oc<=12;oc++)mu[oc+111]=mu[oc+63235]="F"+oc;var kl={};kl.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"},kl.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"},kl.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"},kl.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"]},kl.default=lt?kl.macDefault:kl.pcDefault;function yd(x){var ee=x.split(/-(?!$)/);x=ee[ee.length-1];for(var ie,re,le,ge,_e=0;_e<ee.length-1;_e++){var it=ee[_e];if(/^(cmd|meta|m)$/i.test(it))ge=!0;else if(/^a(lt)?$/i.test(it))ie=!0;else if(/^(c|ctrl|control)$/i.test(it))re=!0;else if(/^s(hift)?$/i.test(it))le=!0;else throw new Error("Unrecognized modifier name: "+it)}return ie&&(x="Alt-"+x),re&&(x="Ctrl-"+x),ge&&(x="Cmd-"+x),le&&(x="Shift-"+x),x}function kc(x){var ee={};for(var ie in x)if(x.hasOwnProperty(ie)){var re=x[ie];if(/^(name|fallthrough|(de|at)tach)$/.test(ie))continue;if(re=="..."){delete x[ie];continue}for(var le=dn(ie.split(" "),yd),ge=0;ge<le.length;ge++){var _e=void 0,it=void 0;ge==le.length-1?(it=le.join(" "),_e=re):(it=le.slice(0,ge+1).join(" "),_e="...");var bt=ee[it];if(!bt)ee[it]=_e;else if(bt!=_e)throw new Error("Inconsistent bindings for "+it)}delete x[ie]}for(var Ft in ee)x[Ft]=ee[Ft];return x}function au(x,ee,ie,re){ee=Is(ee);var le=ee.call?ee.call(x,re):ee[x];if(le===!1)return"nothing";if(le==="...")return"multi";if(le!=null&&ie(le))return"handled";if(ee.fallthrough){if(Object.prototype.toString.call(ee.fallthrough)!="[object Array]")return au(x,ee.fallthrough,ie,re);for(var ge=0;ge<ee.fallthrough.length;ge++){var _e=au(x,ee.fallthrough[ge],ie,re);if(_e)return _e}}}function bc(x){var ee=typeof x=="string"?x:mu[x.keyCode];return ee=="Ctrl"||ee=="Alt"||ee=="Shift"||ee=="Mod"}function Fu(x,ee,ie){var re=x;return ee.altKey&&re!="Alt"&&(x="Alt-"+x),(Qe?ee.metaKey:ee.ctrlKey)&&re!="Ctrl"&&(x="Ctrl-"+x),(Qe?ee.ctrlKey:ee.metaKey)&&re!="Mod"&&(x="Cmd-"+x),!ie&&ee.shiftKey&&re!="Shift"&&(x="Shift-"+x),x}function zu(x,ee){if(Pe&&x.keyCode==34&&x.char)return!1;var ie=mu[x.keyCode];return ie==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(ie=x.code),Fu(ie,x,ee))}function Is(x){return typeof x=="string"?kl[x]:x}function Xs(x,ee){for(var ie=x.doc.sel.ranges,re=[],le=0;le<ie.length;le++){for(var ge=ee(ie[le]);re.length&&rn(ge.from,on(re).to)<=0;){var _e=re.pop();if(rn(_e.from,ge.from)<0){ge.from=_e.from;break}}re.push(ge)}cn(x,function(){for(var it=re.length-1;it>=0;it--)Ru(x.doc,"",re[it].from,re[it].to,"+delete");xu(x)})}function Ds(x,ee,ie){var re=Ge(x.text,ee+ie,ie);return re<0||re>x.text.length?null:re}function Qs(x,ee,ie){var re=Ds(x,ee.ch,ie);return re==null?null:new en(ee.line,re,ie<0?"after":"before")}function cl(x,ee,ie,re,le){if(x){ee.doc.direction=="rtl"&&(le=-le);var ge=vn(ie,ee.doc.direction);if(ge){var _e=le<0?on(ge):ge[0],it=le<0==(_e.level==1),bt=it?"after":"before",Ft;if(_e.level>0||ee.doc.direction=="rtl"){var xn=Za(ee,ie);Ft=le<0?ie.text.length-1:0;var Ln=Ya(ee,xn,Ft).top;Ft=je(function(wr){return Ya(ee,xn,wr).top==Ln},le<0==(_e.level==1)?_e.from:_e.to-1,Ft),bt=="before"&&(Ft=Ds(ie,Ft,1))}else Ft=le<0?_e.to:_e.from;return new en(re,Ft,bt)}}return new en(re,le<0?ie.text.length:0,le<0?"before":"after")}function bl(x,ee,ie,re){var le=vn(ee,x.doc.direction);if(!le)return Qs(ee,ie,re);ie.ch>=ee.text.length?(ie.ch=ee.text.length,ie.sticky="before"):ie.ch<=0&&(ie.ch=0,ie.sticky="after");var ge=ht(le,ie.ch,ie.sticky),_e=le[ge];if(x.doc.direction=="ltr"&&_e.level%2==0&&(re>0?_e.to>ie.ch:_e.from<ie.ch))return Qs(ee,ie,re);var it=function(La,Ra){return Ds(ee,La instanceof en?La.ch:La,Ra)},bt,Ft=function(La){return x.options.lineWrapping?(bt=bt||Za(x,ee),rr(x,ee,bt,La)):{begin:0,end:ee.text.length}},xn=Ft(ie.sticky=="before"?it(ie,-1):ie.ch);if(x.doc.direction=="rtl"||_e.level==1){var Ln=_e.level==1==re<0,wr=it(ie,Ln?1:-1);if(wr!=null&&(Ln?wr<=_e.to&&wr<=xn.end:wr>=_e.from&&wr>=xn.begin)){var mr=Ln?"before":"after";return new en(ie.line,wr,mr)}}var di=function(La,Ra,Da){for(var Va=function(Vl,_s){return _s?new en(ie.line,it(Vl,1),"before"):new en(ie.line,Vl,"after")};La>=0&&La<le.length;La+=Ra){var Mo=le[La],Oo=Ra>0==(Mo.level!=1),al=Oo?Da.begin:it(Da.end,-1);if(Mo.from<=al&&al<Mo.to||(al=Oo?Mo.from:it(Mo.to,-1),Da.begin<=al&&al<Da.end))return Va(al,Oo)}},zi=di(ge+re,re,xn);if(zi)return zi;var da=re>0?xn.end:it(xn.begin,-1);return da!=null&&!(re>0&&da==ee.text.length)&&(zi=di(re>0?0:le.length-1,re,Ft(da)),zi)?zi:null}var Ns={selectAll:Fs,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),ct)},killLine:function(x){return Xs(x,function(ee){if(ee.empty()){var ie=_t(x.doc,ee.head.line).text.length;return ee.head.ch==ie&&ee.head.line<x.lastLine()?{from:ee.head,to:en(ee.head.line+1,0)}:{from:ee.head,to:en(ee.head.line,ie)}}else return{from:ee.from(),to:ee.to()}})},deleteLine:function(x){return Xs(x,function(ee){return{from:en(ee.from().line,0),to:br(x.doc,en(ee.to().line+1,0))}})},delLineLeft:function(x){return Xs(x,function(ee){return{from:en(ee.from().line,0),to:ee.from()}})},delWrappedLineLeft:function(x){return Xs(x,function(ee){var ie=x.charCoords(ee.head,"div").top+5,re=x.coordsChar({left:0,top:ie},"div");return{from:re,to:ee.from()}})},delWrappedLineRight:function(x){return Xs(x,function(ee){var ie=x.charCoords(ee.head,"div").top+5,re=x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ie},"div");return{from:ee.from(),to:re}})},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(en(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(en(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(ee){return Pu(x,ee.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(ee){return id(x,ee.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(ee){return vu(x,ee.head.line)},{origin:"+move",bias:-1})},goLineRight:function(x){return x.extendSelectionsBy(function(ee){var ie=x.cursorCoords(ee.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ie},"div")},Zt)},goLineLeft:function(x){return x.extendSelectionsBy(function(ee){var ie=x.cursorCoords(ee.head,"div").top+5;return x.coordsChar({left:0,top:ie},"div")},Zt)},goLineLeftSmart:function(x){return x.extendSelectionsBy(function(ee){var ie=x.cursorCoords(ee.head,"div").top+5,re=x.coordsChar({left:0,top:ie},"div");return re.ch<x.getLine(re.line).search(/\S/)?id(x,ee.head):re},Zt)},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 ee=[],ie=x.listSelections(),re=x.options.tabSize,le=0;le<ie.length;le++){var ge=ie[le].from(),_e=Le(x.getLine(ge.line),ge.ch,re);ee.push(Wt(re-_e%re))}x.replaceSelections(ee)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return cn(x,function(){for(var ee=x.listSelections(),ie=[],re=0;re<ee.length;re++)if(ee[re].empty()){var le=ee[re].head,ge=_t(x.doc,le.line).text;if(ge){if(le.ch==ge.length&&(le=new en(le.line,le.ch-1)),le.ch>0)le=new en(le.line,le.ch+1),x.replaceRange(ge.charAt(le.ch-1)+ge.charAt(le.ch-2),en(le.line,le.ch-2),le,"+transpose");else if(le.line>x.doc.first){var _e=_t(x.doc,le.line-1).text;_e&&(le=new en(le.line,1),x.replaceRange(ge.charAt(0)+x.doc.lineSeparator()+_e.charAt(_e.length-1),en(le.line-1,_e.length-1),le,"+transpose"))}}ie.push(new sa(le,le))}x.setSelections(ie)})},newlineAndIndent:function(x){return cn(x,function(){for(var ee=x.listSelections(),ie=ee.length-1;ie>=0;ie--)x.replaceRange(x.doc.lineSeparator(),ee[ie].anchor,ee[ie].head,"+input");ee=x.listSelections();for(var re=0;re<ee.length;re++)x.indentLine(ee[re].from().line,null,!0);xu(x)})},openLine:function(x){return x.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function Pu(x,ee){var ie=_t(x.doc,ee),re=Ma(ie);return re!=ie&&(ee=Bn(re)),cl(!0,x,re,ee,1)}function vu(x,ee){var ie=_t(x.doc,ee),re=lo(ie);return re!=ie&&(ee=Bn(re)),cl(!0,x,ie,ee,-1)}function id(x,ee){var ie=Pu(x,ee.line),re=_t(x.doc,ie.line),le=vn(re,x.doc.direction);if(!le||le[0].level==0){var ge=Math.max(ie.ch,re.text.search(/\S/)),_e=ee.line==ie.line&&ee.ch<=ge&&ee.ch;return en(ie.line,_e?0:ge,ie.sticky)}return ie}function us(x,ee,ie){if(typeof ee=="string"&&(ee=Ns[ee],!ee))return!1;x.display.input.ensurePolled();var re=x.display.shift,le=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ie&&(x.display.shift=!1),le=ee(x)!=Tt}finally{x.display.shift=re,x.state.suppressEdits=!1}return le}function gu(x,ee,ie){for(var re=0;re<x.state.keyMaps.length;re++){var le=au(ee,x.state.keyMaps[re],ie,x);if(le)return le}return x.options.extraKeys&&au(ee,x.options.extraKeys,ie,x)||au(ee,x.options.keyMap,ie,x)}var ad=new Me;function $u(x,ee,ie,re){var le=x.state.keySeq;if(le){if(bc(ee))return"handled";if(/\'$/.test(ee)?x.state.keySeq=null:ad.set(50,function(){x.state.keySeq==le&&(x.state.keySeq=null,x.display.input.reset())}),bd(x,le+" "+ee,ie,re))return!0}return bd(x,ee,ie,re)}function bd(x,ee,ie,re){var le=gu(x,ee,re);return le=="multi"&&(x.state.keySeq=ee),le=="handled"&&Jr(x,"keyHandled",x,ee,ie),(le=="handled"||le=="multi")&&(Mn(ie),rs(x)),!!le}function vl(x,ee){var ie=zu(ee,!0);return ie?ee.shiftKey&&!x.state.keySeq?$u(x,"Shift-"+ie,ee,function(re){return us(x,re,!0)})||$u(x,ie,ee,function(re){if(typeof re=="string"?/^go[A-Z]/.test(re):re.motion)return us(x,re)}):$u(x,ie,ee,function(re){return us(x,re)}):!1}function Fc(x,ee,ie){return $u(x,"'"+ie+"'",ee,function(re){return us(x,re,!0)})}var lc=null;function od(x){var ee=this;if(!(x.target&&x.target!=ee.display.input.getField())&&(ee.curOp.focus=Ve(),!gt(ee,x))){Ce&&Se<11&&x.keyCode==27&&(x.returnValue=!1);var ie=x.keyCode;ee.display.shift=ie==16||x.shiftKey;var re=vl(ee,x);Pe&&(lc=re?ie:null,!re&&ie==88&&!Zn&&(lt?x.metaKey:x.ctrlKey)&&ee.replaceSelection("",null,"cut")),E&&!lt&&!re&&ie==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),ie==18&&!/\bCodeMirror-crosshair\b/.test(ee.display.lineDiv.className)&&oi(ee)}}function oi(x){var ee=x.display.lineDiv;Ot(ee,"CodeMirror-crosshair");function ie(re){(re.keyCode==18||!re.altKey)&&(Je(ee,"CodeMirror-crosshair"),Bt(document,"keyup",ie),Bt(document,"mouseover",ie))}Ut(document,"keyup",ie),Ut(document,"mouseover",ie)}function rf(x){x.keyCode==16&&(this.doc.sel.shift=!1),gt(this,x)}function Pd(x){var ee=this;if(!(x.target&&x.target!=ee.display.input.getField())&&!(Cn(ee.display,x)||gt(ee,x)||x.ctrlKey&&!x.altKey||lt&&x.metaKey)){var ie=x.keyCode,re=x.charCode;if(Pe&&ie==lc){lc=null,Mn(x);return}if(!(Pe&&(!x.which||x.which<10)&&vl(ee,x))){var le=String.fromCharCode(re==null?ie:re);le!="\b"&&(Fc(ee,x,le)||ee.display.input.onKeyPress(x))}}}var Id=400,Od=function(x,ee,ie){this.time=x,this.pos=ee,this.button=ie};Od.prototype.compare=function(x,ee,ie){return this.time+Id>x&&rn(ee,this.pos)==0&&ie==this.button};var sc,ld;function Lf(x,ee){var ie=+new Date;return ld&&ld.compare(ie,x,ee)?(sc=ld=null,"triple"):sc&&sc.compare(ie,x,ee)?(ld=new Od(ie,x,ee),sc=null,"double"):(sc=new Od(ie,x,ee),ld=null,"single")}function Zs(x){var ee=this,ie=ee.display;if(!(gt(ee,x)||ie.activeTouch&&ie.input.supportsTouch())){if(ie.input.ensurePolled(),ie.shift=x.shiftKey,Cn(ie,x)){pe||(ie.scroller.draggable=!1,setTimeout(function(){return ie.scroller.draggable=!0},100));return}if(!Hs(ee,x)){var re=ca(ee,x),le=dr(x),ge=re?Lf(re,le):"single";window.focus(),le==1&&ee.state.selectingText&&ee.state.selectingText(x),!(re&&Zu(ee,le,re,ge,x))&&(le==1?re?xd(ee,re,ge,x):vr(x)==ie.scroller&&Mn(x):le==2?(re&&il(ee.doc,re),setTimeout(function(){return ie.input.focus()},20)):le==3&&(Ze?ee.display.input.onContextMenu(x):Bs(ee)))}}}function Zu(x,ee,ie,re,le){var ge="Click";return re=="double"?ge="Double"+ge:re=="triple"&&(ge="Triple"+ge),ge=(ee==1?"Left":ee==2?"Middle":"Right")+ge,$u(x,Fu(ge,le),le,function(_e){if(typeof _e=="string"&&(_e=Ns[_e]),!_e)return!1;var it=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),it=_e(x,ie)!=Tt}finally{x.state.suppressEdits=!1}return it})}function sd(x,ee,ie){var re=x.getOption("configureMouse"),le=re?re(x,ee,ie):{};if(le.unit==null){var ge=Xe?ie.shiftKey&&ie.metaKey:ie.altKey;le.unit=ge?"rectangle":ee=="single"?"char":ee=="double"?"word":"line"}return(le.extend==null||x.doc.extend)&&(le.extend=x.doc.extend||ie.shiftKey),le.addNew==null&&(le.addNew=lt?ie.metaKey:ie.ctrlKey),le.moveOnDrag==null&&(le.moveOnDrag=!(lt?ie.altKey:ie.ctrlKey)),le}function xd(x,ee,ie,re){Ce?setTimeout(Mt(ho,x),0):x.curOp.focus=Ve();var le=sd(x,ie,re),ge=x.doc.sel,_e;x.options.dragDrop&&mn&&!x.isReadOnly()&&ie=="single"&&(_e=ge.contains(ee))>-1&&(rn((_e=ge.ranges[_e]).from(),ee)<0||ee.xRel>0)&&(rn(_e.to(),ee)>0||ee.xRel<0)?Nf(x,re,ee,le):Ld(x,re,ee,le)}function Nf(x,ee,ie,re){var le=x.display,ge=!1,_e=Fn(x,function(Ft){pe&&(le.scroller.draggable=!1),x.state.draggingText=!1,Bt(le.wrapper.ownerDocument,"mouseup",_e),Bt(le.wrapper.ownerDocument,"mousemove",it),Bt(le.scroller,"dragstart",bt),Bt(le.scroller,"drop",_e),ge||(Mn(Ft),re.addNew||il(x.doc,ie,null,null,re.extend),pe&&!et||Ce&&Se==9?setTimeout(function(){le.wrapper.ownerDocument.body.focus({preventScroll:!0}),le.input.focus()},20):le.input.focus())}),it=function(Ft){ge=ge||Math.abs(ee.clientX-Ft.clientX)+Math.abs(ee.clientY-Ft.clientY)>=10},bt=function(){return ge=!0};pe&&(le.scroller.draggable=!0),x.state.draggingText=_e,_e.copy=!re.moveOnDrag,le.scroller.dragDrop&&le.scroller.dragDrop(),Ut(le.wrapper.ownerDocument,"mouseup",_e),Ut(le.wrapper.ownerDocument,"mousemove",it),Ut(le.scroller,"dragstart",bt),Ut(le.scroller,"drop",_e),Bs(x),setTimeout(function(){return le.input.focus()},20)}function af(x,ee,ie){if(ie=="char")return new sa(ee,ee);if(ie=="word")return x.findWordAt(ee);if(ie=="line")return new sa(en(ee.line,0),br(x.doc,en(ee.line+1,0)));var re=ie(x,ee);return new sa(re.from,re.to)}function Ld(x,ee,ie,re){var le=x.display,ge=x.doc;Mn(ee);var _e,it,bt=ge.sel,Ft=bt.ranges;if(re.addNew&&!re.extend?(it=ge.sel.contains(ie),it>-1?_e=Ft[it]:_e=new sa(ie,ie)):(_e=ge.sel.primary(),it=ge.sel.primIndex),re.unit=="rectangle")re.addNew||(_e=new sa(ie,ie)),ie=ca(x,ee,!0,!0),it=-1;else{var xn=af(x,ie,re.unit);re.extend?_e=Du(_e,xn.anchor,xn.head,re.extend):_e=xn}re.addNew?it==-1?(it=Ft.length,Cl(ge,_o(x,Ft.concat([_e]),it),{scroll:!1,origin:"*mouse"})):Ft.length>1&&Ft[it].empty()&&re.unit=="char"&&!re.extend?(Cl(ge,_o(x,Ft.slice(0,it).concat(Ft.slice(it+1)),0),{scroll:!1,origin:"*mouse"}),bt=ge.sel):$o(ge,it,_e,Ct):(it=0,Cl(ge,new po([_e],0),Ct),bt=ge.sel);var Ln=ie;function wr(Da){if(rn(Ln,Da)!=0)if(Ln=Da,re.unit=="rectangle"){for(var Va=[],Mo=x.options.tabSize,Oo=Le(_t(ge,ie.line).text,ie.ch,Mo),al=Le(_t(ge,Da.line).text,Da.ch,Mo),Vl=Math.min(Oo,al),_s=Math.max(Oo,al),vs=Math.min(ie.line,Da.line),ou=Math.min(x.lastLine(),Math.max(ie.line,Da.line));vs<=ou;vs++){var lu=_t(ge,vs).text,Ss=gn(lu,Vl,Mo);Vl==_s?Va.push(new sa(en(vs,Ss),en(vs,Ss))):lu.length>Ss&&Va.push(new sa(en(vs,Ss),en(vs,gn(lu,_s,Mo))))}Va.length||Va.push(new sa(ie,ie)),Cl(ge,_o(x,bt.ranges.slice(0,it).concat(Va),it),{origin:"*mouse",scroll:!1}),x.scrollIntoView(Da)}else{var su=_e,Go=af(x,Da,re.unit),cs=su.anchor,ds;rn(Go.anchor,cs)>0?(ds=Go.head,cs=Dr(su.from(),Go.anchor)):(ds=Go.anchor,cs=Cr(su.to(),Go.head));var bs=bt.ranges.slice(0);bs[it]=Hc(x,new sa(br(ge,cs),ds)),Cl(ge,_o(x,bs,it),Ct)}}var mr=le.wrapper.getBoundingClientRect(),di=0;function zi(Da){var Va=++di,Mo=ca(x,Da,!0,re.unit=="rectangle");if(Mo)if(rn(Mo,Ln)!=0){x.curOp.focus=Ve(),wr(Mo);var Oo=Ko(le,ge);(Mo.line>=Oo.to||Mo.line<Oo.from)&&setTimeout(Fn(x,function(){di==Va&&zi(Da)}),150)}else{var al=Da.clientY<mr.top?-20:Da.clientY>mr.bottom?20:0;al&&setTimeout(Fn(x,function(){di==Va&&(le.scroller.scrollTop+=al,zi(Da))}),50)}}function da(Da){x.state.selectingText=!1,di=1/0,Da&&(Mn(Da),le.input.focus()),Bt(le.wrapper.ownerDocument,"mousemove",La),Bt(le.wrapper.ownerDocument,"mouseup",Ra),ge.history.lastSelOrigin=null}var La=Fn(x,function(Da){Da.buttons===0||!dr(Da)?da(Da):zi(Da)}),Ra=Fn(x,da);x.state.selectingText=Ra,Ut(le.wrapper.ownerDocument,"mousemove",La),Ut(le.wrapper.ownerDocument,"mouseup",Ra)}function Hc(x,ee){var ie=ee.anchor,re=ee.head,le=_t(x.doc,ie.line);if(rn(ie,re)==0&&ie.sticky==re.sticky)return ee;var ge=vn(le);if(!ge)return ee;var _e=ht(ge,ie.ch,ie.sticky),it=ge[_e];if(it.from!=ie.ch&&it.to!=ie.ch)return ee;var bt=_e+(it.from==ie.ch==(it.level!=1)?0:1);if(bt==0||bt==ge.length)return ee;var Ft;if(re.line!=ie.line)Ft=(re.line-ie.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var xn=ht(ge,re.ch,re.sticky),Ln=xn-_e||(re.ch-ie.ch)*(it.level==1?-1:1);xn==bt-1||xn==bt?Ft=Ln<0:Ft=Ln>0}var wr=ge[bt+(Ft?-1:0)],mr=Ft==(wr.level==1),di=mr?wr.from:wr.to,zi=mr?"after":"before";return ie.ch==di&&ie.sticky==zi?ee:new sa(new en(ie.line,di,zi),re)}function ud(x,ee,ie,re){var le,ge;if(ee.touches)le=ee.touches[0].clientX,ge=ee.touches[0].clientY;else try{le=ee.clientX,ge=ee.clientY}catch(wr){return!1}if(le>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;re&&Mn(ee);var _e=x.display,it=_e.lineDiv.getBoundingClientRect();if(ge>it.bottom||!Nt(x,ie))return Rn(ee);ge-=it.top-_e.viewOffset;for(var bt=0;bt<x.display.gutterSpecs.length;++bt){var Ft=_e.gutters.childNodes[bt];if(Ft&&Ft.getBoundingClientRect().right>=le){var xn=Yn(x.doc,ge),Ln=x.display.gutterSpecs[bt];return Ke(x,ie,x,xn,Ln.className,ee),Rn(ee)}}}function Hs(x,ee){return ud(x,ee,"gutterClick",!0)}function xc(x,ee){Cn(x.display,ee)||of(x,ee)||gt(x,ee,"contextmenu")||Ze||x.display.input.onContextMenu(ee)}function of(x,ee){return Nt(x,"gutterContextMenu")?ud(x,ee,"gutterContextMenu",!1):!1}function lf(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),no(x)}var Ec={toString:function(){return"CodeMirror.Init"}},Ed={},Cd={};function _f(x){var ee=x.optionHandlers;function ie(re,le,ge,_e){x.defaults[re]=le,ge&&(ee[re]=_e?function(it,bt,Ft){Ft!=Ec&&ge(it,bt,Ft)}:ge)}x.defineOption=ie,x.Init=Ec,ie("value","",function(re,le){return re.setValue(le)},!0),ie("mode",null,function(re,le){re.doc.modeOption=le,Hl(re)},!0),ie("indentUnit",2,Hl,!0),ie("indentWithTabs",!1),ie("smartIndent",!0),ie("tabSize",4,function(re){Jo(re),no(re),Hr(re)},!0),ie("lineSeparator",null,function(re,le){if(re.doc.lineSep=le,!!le){var ge=[],_e=re.doc.first;re.doc.iter(function(bt){for(var Ft=0;;){var xn=bt.text.indexOf(le,Ft);if(xn==-1)break;Ft=xn+le.length,ge.push(en(_e,xn))}_e++});for(var it=ge.length-1;it>=0;it--)Ru(re.doc,le,ge[it],en(ge[it].line,ge[it].ch+le.length))}}),ie("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(re,le,ge){re.state.specialChars=new RegExp(le.source+(le.test(" ")?"":"| "),"g"),ge!=Ec&&re.refresh()}),ie("specialCharPlaceholder",nl,function(re){return re.refresh()},!0),ie("electricChars",!0),ie("inputStyle",We?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ie("spellcheck",!1,function(re,le){return re.getInputField().spellcheck=le},!0),ie("autocorrect",!1,function(re,le){return re.getInputField().autocorrect=le},!0),ie("autocapitalize",!1,function(re,le){return re.getInputField().autocapitalize=le},!0),ie("rtlMoveVisually",!Dt),ie("wholeLineUpdateBefore",!0),ie("theme","default",function(re){lf(re),ka(re)},!0),ie("keyMap","default",function(re,le,ge){var _e=Is(le),it=ge!=Ec&&Is(ge);it&&it.detach&&it.detach(re,_e),_e.attach&&_e.attach(re,it||null)}),ie("extraKeys",null),ie("configureMouse",null),ie("lineWrapping",!1,Nd,!0),ie("gutters",[],function(re,le){re.display.gutterSpecs=Do(le,re.options.lineNumbers),ka(re)},!0),ie("fixedGutter",!0,function(re,le){re.display.gutters.style.left=le?Mi(re.display)+"px":"0",re.refresh()},!0),ie("coverGutterNextToScrollbar",!1,function(re){return Eu(re)},!0),ie("scrollbarStyle","native",function(re){vc(re),Eu(re),re.display.scrollbars.setScrollTop(re.doc.scrollTop),re.display.scrollbars.setScrollLeft(re.doc.scrollLeft)},!0),ie("lineNumbers",!1,function(re,le){re.display.gutterSpecs=Do(re.options.gutters,le),ka(re)},!0),ie("firstLineNumber",1,ka,!0),ie("lineNumberFormatter",function(re){return re},ka,!0),ie("showCursorWhenSelecting",!1,Qi,!0),ie("resetSelectionOnContextMenu",!0),ie("lineWiseCopyCut",!0),ie("pasteLinesPerSelection",!0),ie("selectionsMayTouch",!1),ie("readOnly",!1,function(re,le){le=="nocursor"&&(No(re),re.display.input.blur()),re.display.input.readOnlyChanged(le)}),ie("screenReaderLabel",null,function(re,le){le=le===""?null:le,re.display.input.screenReaderLabelChanged(le)}),ie("disableInput",!1,function(re,le){le||re.display.input.reset()},!0),ie("dragDrop",!0,Tf),ie("allowDropFileTypes",null),ie("cursorBlinkRate",530),ie("cursorScrollMargin",0),ie("cursorHeight",1,Qi,!0),ie("singleCursorHeightPerLine",!0,Qi,!0),ie("workTime",100),ie("workDelay",100),ie("flattenSpans",!0,Jo,!0),ie("addModeClass",!1,Jo,!0),ie("pollInterval",100),ie("undoDepth",200,function(re,le){return re.doc.history.undoDepth=le}),ie("historyEventDelay",1250),ie("viewportMargin",10,function(re){return re.refresh()},!0),ie("maxHighlightLength",1e4,Jo,!0),ie("moveInputWithCursor",!0,function(re,le){le||re.display.input.resetPosition()}),ie("tabindex",null,function(re,le){return re.display.input.getField().tabIndex=le||""}),ie("autofocus",null),ie("direction","ltr",function(re,le){return re.doc.setDirection(le)},!0),ie("phrases",null)}function Tf(x,ee,ie){var re=ie&&ie!=Ec;if(!ee!=!re){var le=x.display.dragFunctions,ge=ee?Ut:Bt;ge(x.display.scroller,"dragstart",le.start),ge(x.display.scroller,"dragenter",le.enter),ge(x.display.scroller,"dragover",le.over),ge(x.display.scroller,"dragleave",le.leave),ge(x.display.scroller,"drop",le.drop)}}function Nd(x){x.options.lineWrapping?(Ot(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Je(x.display.wrapper,"CodeMirror-wrap"),ri(x)),ii(x),Hr(x),no(x),setTimeout(function(){return Eu(x)},100)}function jo(x,ee){var ie=this;if(!(this instanceof jo))return new jo(x,ee);this.options=ee=ee?at(ee):{},at(Ed,ee,!1);var re=ee.value;typeof re=="string"?re=new ss(re,ee.mode,null,ee.lineSeparator,ee.direction):ee.mode&&(re.modeOption=ee.mode),this.doc=re;var le=new jo.inputStyles[ee.inputStyle](this),ge=this.display=new Ha(x,re,le,ee);ge.wrapper.CodeMirror=this,lf(this),ee.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vc(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 Me,keySeq:null,specialChars:null},ee.autofocus&&!We&&ge.input.focus(),Ce&&Se<11&&setTimeout(function(){return ie.display.input.reset(!0)},20),sf(this),rd(),Ui(this),this.curOp.forceUpdate=!0,so(this,re),ee.autofocus&&!We||this.hasFocus()?setTimeout(function(){ie.hasFocus()&&!ie.state.focused&&xs(ie)},20):No(this);for(var _e in Cd)Cd.hasOwnProperty(_e)&&Cd[_e](this,ee[_e],Ec);_a(this),ee.finishInit&&ee.finishInit(this);for(var it=0;it<_d.length;++it)_d[it](this);Co(this),pe&&ee.lineWrapping&&getComputedStyle(ge.lineDiv).textRendering=="optimizelegibility"&&(ge.lineDiv.style.textRendering="auto")}jo.defaults=Ed,jo.optionHandlers=Cd;function sf(x){var ee=x.display;Ut(ee.scroller,"mousedown",Fn(x,Zs)),Ce&&Se<11?Ut(ee.scroller,"dblclick",Fn(x,function(bt){if(!gt(x,bt)){var Ft=ca(x,bt);if(!(!Ft||Hs(x,bt)||Cn(x.display,bt))){Mn(bt);var xn=x.findWordAt(Ft);il(x.doc,xn.anchor,xn.head)}}})):Ut(ee.scroller,"dblclick",function(bt){return gt(x,bt)||Mn(bt)}),Ut(ee.scroller,"contextmenu",function(bt){return xc(x,bt)}),Ut(ee.input.getField(),"contextmenu",function(bt){ee.scroller.contains(bt.target)||xc(x,bt)});var ie,re={end:0};function le(){ee.activeTouch&&(ie=setTimeout(function(){return ee.activeTouch=null},1e3),re=ee.activeTouch,re.end=+new Date)}function ge(bt){if(bt.touches.length!=1)return!1;var Ft=bt.touches[0];return Ft.radiusX<=1&&Ft.radiusY<=1}function _e(bt,Ft){if(Ft.left==null)return!0;var xn=Ft.left-bt.left,Ln=Ft.top-bt.top;return xn*xn+Ln*Ln>20*20}Ut(ee.scroller,"touchstart",function(bt){if(!gt(x,bt)&&!ge(bt)&&!Hs(x,bt)){ee.input.ensurePolled(),clearTimeout(ie);var Ft=+new Date;ee.activeTouch={start:Ft,moved:!1,prev:Ft-re.end<=300?re:null},bt.touches.length==1&&(ee.activeTouch.left=bt.touches[0].pageX,ee.activeTouch.top=bt.touches[0].pageY)}}),Ut(ee.scroller,"touchmove",function(){ee.activeTouch&&(ee.activeTouch.moved=!0)}),Ut(ee.scroller,"touchend",function(bt){var Ft=ee.activeTouch;if(Ft&&!Cn(ee,bt)&&Ft.left!=null&&!Ft.moved&&new Date-Ft.start<300){var xn=x.coordsChar(ee.activeTouch,"page"),Ln;!Ft.prev||_e(Ft,Ft.prev)?Ln=new sa(xn,xn):!Ft.prev.prev||_e(Ft,Ft.prev.prev)?Ln=x.findWordAt(xn):Ln=new sa(en(xn.line,0),br(x.doc,en(xn.line+1,0))),x.setSelection(Ln.anchor,Ln.head),x.focus(),Mn(bt)}le()}),Ut(ee.scroller,"touchcancel",le),Ut(ee.scroller,"scroll",function(){ee.scroller.clientHeight&&(hu(x,ee.scroller.scrollTop),Vs(x,ee.scroller.scrollLeft,!0),Ke(x,"scroll",x))}),Ut(ee.scroller,"mousewheel",function(bt){return Wo(x,bt)}),Ut(ee.scroller,"DOMMouseScroll",function(bt){return Wo(x,bt)}),Ut(ee.wrapper,"scroll",function(){return ee.wrapper.scrollTop=ee.wrapper.scrollLeft=0}),ee.dragFunctions={enter:function(bt){gt(x,bt)||ur(bt)},over:function(bt){gt(x,bt)||(Rc(x,bt),ur(bt))},start:function(bt){return Tc(x,bt)},drop:Fn(x,gd),leave:function(bt){gt(x,bt)||Yu(x)}};var it=ee.input.getField();Ut(it,"keyup",function(bt){return rf.call(x,bt)}),Ut(it,"keydown",Fn(x,od)),Ut(it,"keypress",Fn(x,Pd)),Ut(it,"focus",function(bt){return xs(x,bt)}),Ut(it,"blur",function(bt){return No(x,bt)})}var _d=[];jo.defineInitHook=function(x){return _d.push(x)};function Iu(x,ee,ie,re){var le=x.doc,ge;ie==null&&(ie="add"),ie=="smart"&&(le.mode.indent?ge=Vn(x,ee).state:ie="prev");var _e=x.options.tabSize,it=_t(le,ee),bt=Le(it.text,null,_e);it.stateAfter&&(it.stateAfter=null);var Ft=it.text.match(/^\s*/)[0],xn;if(!re&&!/\S/.test(it.text))xn=0,ie="not";else if(ie=="smart"&&(xn=le.mode.indent(ge,it.text.slice(Ft.length),it.text),xn==Tt||xn>150)){if(!re)return;ie="prev"}ie=="prev"?ee>le.first?xn=Le(_t(le,ee-1).text,null,_e):xn=0:ie=="add"?xn=bt+x.options.indentUnit:ie=="subtract"?xn=bt-x.options.indentUnit:typeof ie=="number"&&(xn=bt+ie),xn=Math.max(0,xn);var Ln="",wr=0;if(x.options.indentWithTabs)for(var mr=Math.floor(xn/_e);mr;--mr)wr+=_e,Ln+=" ";if(wr<xn&&(Ln+=Wt(xn-wr)),Ln!=Ft)return Ru(le,Ln,en(ee,0),en(ee,Ft.length),"+input"),it.stateAfter=null,!0;for(var di=0;di<le.sel.ranges.length;di++){var zi=le.sel.ranges[di];if(zi.head.line==ee&&zi.head.ch<Ft.length){var da=en(ee,Ft.length);$o(le,di,new sa(da,da));break}}}var qu=null;function ec(x){qu=x}function Td(x,ee,ie,re,le){var ge=x.doc;x.display.shift=!1,re||(re=ge.sel);var _e=+new Date-200,it=le=="paste"||x.state.pasteIncoming>_e,bt=Kr(ee),Ft=null;if(it&&re.ranges.length>1)if(qu&&qu.text.join(`
|
|
|
`)==ee){if(re.ranges.length%qu.text.length==0){Ft=[];for(var xn=0;xn<qu.text.length;xn++)Ft.push(ge.splitLines(qu.text[xn]))}}else bt.length==re.ranges.length&&x.options.pasteLinesPerSelection&&(Ft=dn(bt,function(La){return[La]}));for(var Ln=x.curOp.updateInput,wr=re.ranges.length-1;wr>=0;wr--){var mr=re.ranges[wr],di=mr.from(),zi=mr.to();mr.empty()&&(ie&&ie>0?di=en(di.line,di.ch-ie):x.state.overwrite&&!it?zi=en(zi.line,Math.min(_t(ge,zi.line).text.length,zi.ch+on(bt).length)):it&&qu&&qu.lineWise&&qu.text.join(`
|
|
|
`)==bt.join(`
|
|
|
`)&&(di=zi=en(di.line,0)));var da={from:di,to:zi,text:Ft?Ft[wr%Ft.length]:bt,origin:le||(it?"paste":x.state.cutIncoming>_e?"cut":"+input")};Ll(x.doc,da),Jr(x,"inputRead",x,da)}ee&&!it&&zd(x,ee),xu(x),x.curOp.updateInput<2&&(x.curOp.updateInput=Ln),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function Rd(x,ee){var ie=x.clipboardData&&x.clipboardData.getData("Text");if(ie)return x.preventDefault(),!ee.isReadOnly()&&!ee.options.disableInput&&cn(ee,function(){return Td(ee,ie,0,null,"paste")}),!0}function zd(x,ee){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ie=x.doc.sel,re=ie.ranges.length-1;re>=0;re--){var le=ie.ranges[re];if(!(le.head.ch>100||re&&ie.ranges[re-1].head.line==le.head.line)){var ge=x.getModeAt(le.head),_e=!1;if(ge.electricChars){for(var it=0;it<ge.electricChars.length;it++)if(ee.indexOf(ge.electricChars.charAt(it))>-1){_e=Iu(x,le.head.line,"smart");break}}else ge.electricInput&&ge.electricInput.test(_t(x.doc,le.head.line).text.slice(0,le.head.ch))&&(_e=Iu(x,le.head.line,"smart"));_e&&Jr(x,"electricInput",x,le.head.line)}}}function Kc(x){for(var ee=[],ie=[],re=0;re<x.doc.sel.ranges.length;re++){var le=x.doc.sel.ranges[re].head.line,ge={anchor:en(le,0),head:en(le+1,0)};ie.push(ge),ee.push(x.getRange(ge.anchor,ge.head))}return{text:ee,ranges:ie}}function uf(x,ee,ie,re){x.setAttribute("autocorrect",ie?"":"off"),x.setAttribute("autocapitalize",re?"":"off"),x.setAttribute("spellcheck",!!ee)}function Zd(){var x=$e("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ee=$e("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return pe?x.style.width="1000px":x.setAttribute("wrap","off"),tt&&(x.style.border="1px solid black"),uf(x),ee}function Hd(x){var ee=x.optionHandlers,ie=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(re,le){var ge=this.options,_e=ge[re];ge[re]==le&&re!="mode"||(ge[re]=le,ee.hasOwnProperty(re)&&Fn(this,ee[re])(this,le,_e),Ke(this,"optionChange",this,re))},getOption:function(re){return this.options[re]},getDoc:function(){return this.doc},addKeyMap:function(re,le){this.state.keyMaps[le?"push":"unshift"](Is(re))},removeKeyMap:function(re){for(var le=this.state.keyMaps,ge=0;ge<le.length;++ge)if(le[ge]==re||le[ge].name==re)return le.splice(ge,1),!0},addOverlay:Un(function(re,le){var ge=re.token?re:x.getMode(this.options,re);if(ge.startState)throw new Error("Overlays may not be stateful.");ln(this.state.overlays,{mode:ge,modeSpec:re,opaque:le&&le.opaque,priority:le&&le.priority||0},function(_e){return _e.priority}),this.state.modeGen++,Hr(this)}),removeOverlay:Un(function(re){for(var le=this.state.overlays,ge=0;ge<le.length;++ge){var _e=le[ge].modeSpec;if(_e==re||typeof re=="string"&&_e.name==re){le.splice(ge,1),this.state.modeGen++,Hr(this);return}}}),indentLine:Un(function(re,le,ge){typeof le!="string"&&typeof le!="number"&&(le==null?le=this.options.smartIndent?"smart":"prev":le=le?"add":"subtract"),cr(this.doc,re)&&Iu(this,re,le,ge)}),indentSelection:Un(function(re){for(var le=this.doc.sel.ranges,ge=-1,_e=0;_e<le.length;_e++){var it=le[_e];if(it.empty())it.head.line>ge&&(Iu(this,it.head.line,re,!0),ge=it.head.line,_e==this.doc.sel.primIndex&&xu(this));else{var bt=it.from(),Ft=it.to(),xn=Math.max(ge,bt.line);ge=Math.min(this.lastLine(),Ft.line-(Ft.ch?0:1))+1;for(var Ln=xn;Ln<ge;++Ln)Iu(this,Ln,re);var wr=this.doc.sel.ranges;bt.ch==0&&le.length==wr.length&&wr[_e].from().ch>0&&$o(this.doc,_e,new sa(bt,wr[_e].to()),ct)}}}),getTokenAt:function(re,le){return pi(this,re,le)},getLineTokens:function(re,le){return pi(this,en(re),le,!0)},getTokenTypeAt:function(re){re=br(this.doc,re);var le=kn(this,_t(this.doc,re.line)),ge=0,_e=(le.length-1)/2,it=re.ch,bt;if(it==0)bt=le[2];else for(;;){var Ft=ge+_e>>1;if((Ft?le[Ft*2-1]:0)>=it)_e=Ft;else if(le[Ft*2+1]<it)ge=Ft+1;else{bt=le[Ft*2+2];break}}var xn=bt?bt.indexOf("overlay "):-1;return xn<0?bt:xn==0?null:bt.slice(0,xn-1)},getModeAt:function(re){var le=this.doc.mode;return le.innerMode?x.innerMode(le,this.getTokenAt(re).state).mode:le},getHelper:function(re,le){return this.getHelpers(re,le)[0]},getHelpers:function(re,le){var ge=[];if(!ie.hasOwnProperty(le))return ge;var _e=ie[le],it=this.getModeAt(re);if(typeof it[le]=="string")_e[it[le]]&&ge.push(_e[it[le]]);else if(it[le])for(var bt=0;bt<it[le].length;bt++){var Ft=_e[it[le][bt]];Ft&&ge.push(Ft)}else it.helperType&&_e[it.helperType]?ge.push(_e[it.helperType]):_e[it.name]&&ge.push(_e[it.name]);for(var xn=0;xn<_e._global.length;xn++){var Ln=_e._global[xn];Ln.pred(it,this)&&st(ge,Ln.val)==-1&&ge.push(Ln.val)}return ge},getStateAfter:function(re,le){var ge=this.doc;return re=qr(ge,re==null?ge.first+ge.size-1:re),Vn(this,re+1,le).state},cursorCoords:function(re,le){var ge,_e=this.doc.sel.primary();return re==null?ge=_e.head:typeof re=="object"?ge=br(this.doc,re):ge=re?_e.from():_e.to(),ll(this,ge,le||"page")},charCoords:function(re,le){return bo(this,br(this.doc,re),le||"page")},coordsChar:function(re,le){return re=Bo(this,re,le||"page"),hn(this,re.left,re.top)},lineAtHeight:function(re,le){return re=Bo(this,{top:re,left:0},le||"page").top,Yn(this.doc,re+this.display.viewOffset)},heightAtLine:function(re,le,ge){var _e=!1,it;if(typeof re=="number"){var bt=this.doc.first+this.doc.size-1;re<this.doc.first?re=this.doc.first:re>bt&&(re=bt,_e=!0),it=_t(this.doc,re)}else it=re;return Ni(this,it,{top:0,left:0},le||"page",ge||_e).top+(_e?this.doc.height-Qr(it):0)},defaultTextHeight:function(){return Ai(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(re,le,ge,_e,it){var bt=this.display;re=ll(this,br(this.doc,re));var Ft=re.bottom,xn=re.left;if(le.style.position="absolute",le.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(le),bt.sizer.appendChild(le),_e=="over")Ft=re.top;else if(_e=="above"||_e=="near"){var Ln=Math.max(bt.wrapper.clientHeight,this.doc.height),wr=Math.max(bt.sizer.clientWidth,bt.lineSpace.clientWidth);(_e=="above"||re.bottom+le.offsetHeight>Ln)&&re.top>le.offsetHeight?Ft=re.top-le.offsetHeight:re.bottom+le.offsetHeight<=Ln&&(Ft=re.bottom),xn+le.offsetWidth>wr&&(xn=wr-le.offsetWidth)}le.style.top=Ft+"px",le.style.left=le.style.right="",it=="right"?(xn=bt.sizer.clientWidth-le.offsetWidth,le.style.right="0px"):(it=="left"?xn=0:it=="middle"&&(xn=(bt.sizer.clientWidth-le.offsetWidth)/2),le.style.left=xn+"px"),ge&&Vu(this,{left:xn,top:Ft,right:xn+le.offsetWidth,bottom:Ft+le.offsetHeight})},triggerOnKeyDown:Un(od),triggerOnKeyPress:Un(Pd),triggerOnKeyUp:rf,triggerOnMouseDown:Un(Zs),execCommand:function(re){if(Ns.hasOwnProperty(re))return Ns[re].call(null,this)},triggerElectric:Un(function(re){zd(this,re)}),findPosH:function(re,le,ge,_e){var it=1;le<0&&(it=-1,le=-le);for(var bt=br(this.doc,re),Ft=0;Ft<le&&(bt=cd(this.doc,bt,it,ge,_e),!bt.hitSide);++Ft);return bt},moveH:Un(function(re,le){var ge=this;this.extendSelectionsBy(function(_e){return ge.display.shift||ge.doc.extend||_e.empty()?cd(ge.doc,_e.head,re,le,ge.options.rtlMoveVisually):re<0?_e.from():_e.to()},Zt)}),deleteH:Un(function(re,le){var ge=this.doc.sel,_e=this.doc;ge.somethingSelected()?_e.replaceSelection("",null,"+delete"):Xs(this,function(it){var bt=cd(_e,it.head,re,le,!1);return re<0?{from:bt,to:it.head}:{from:it.head,to:bt}})}),findPosV:function(re,le,ge,_e){var it=1,bt=_e;le<0&&(it=-1,le=-le);for(var Ft=br(this.doc,re),xn=0;xn<le;++xn){var Ln=ll(this,Ft,"div");if(bt==null?bt=Ln.left:Ln.left=bt,Ft=dd(this,Ln,it,ge),Ft.hitSide)break}return Ft},moveV:Un(function(re,le){var ge=this,_e=this.doc,it=[],bt=!this.display.shift&&!_e.extend&&_e.sel.somethingSelected();if(_e.extendSelectionsBy(function(xn){if(bt)return re<0?xn.from():xn.to();var Ln=ll(ge,xn.head,"div");xn.goalColumn!=null&&(Ln.left=xn.goalColumn),it.push(Ln.left);var wr=dd(ge,Ln,re,le);return le=="page"&&xn==_e.sel.primary()&&_u(ge,bo(ge,wr,"div").top-Ln.top),wr},Zt),it.length)for(var Ft=0;Ft<_e.sel.ranges.length;Ft++)_e.sel.ranges[Ft].goalColumn=it[Ft]}),findWordAt:function(re){var le=this.doc,ge=_t(le,re.line).text,_e=re.ch,it=re.ch;if(ge){var bt=this.getHelper(re,"wordChars");(re.sticky=="before"||it==ge.length)&&_e?--_e:++it;for(var Ft=ge.charAt(_e),xn=me(Ft,bt)?function(Ln){return me(Ln,bt)}:/\s/.test(Ft)?function(Ln){return/\s/.test(Ln)}:function(Ln){return!/\s/.test(Ln)&&!me(Ln)};_e>0&&xn(ge.charAt(_e-1));)--_e;for(;it<ge.length&&xn(ge.charAt(it));)++it}return new sa(en(re.line,_e),en(re.line,it))},toggleOverwrite:function(re){re!=null&&re==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ot(this.display.cursorDiv,"CodeMirror-overwrite"):Je(this.display.cursorDiv,"CodeMirror-overwrite"),Ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ve()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Un(function(re,le){du(this,re,le)}),getScrollInfo:function(){var re=this.display.scroller;return{left:re.scrollLeft,top:re.scrollTop,height:re.scrollHeight-_r(this)-this.display.barHeight,width:re.scrollWidth-_r(this)-this.display.barWidth,clientHeight:Mr(this),clientWidth:Ar(this)}},scrollIntoView:Un(function(re,le){re==null?(re={from:this.doc.sel.primary().head,to:null},le==null&&(le=this.options.cursorScrollMargin)):typeof re=="number"?re={from:en(re,0),to:null}:re.from==null&&(re={from:re,to:null}),re.to||(re.to=re.from),re.margin=le||0,re.from.line!=null?Uu(this,re):Gu(this,re.from,re.to,re.margin)}),setSize:Un(function(re,le){var ge=this,_e=function(bt){return typeof bt=="number"||/^\d+$/.test(String(bt))?bt+"px":bt};re!=null&&(this.display.wrapper.style.width=_e(re)),le!=null&&(this.display.wrapper.style.height=_e(le)),this.options.lineWrapping&&fo(this);var it=this.display.viewFrom;this.doc.iter(it,this.display.viewTo,function(bt){if(bt.widgets){for(var Ft=0;Ft<bt.widgets.length;Ft++)if(bt.widgets[Ft].noHScroll){Ur(ge,it,"widget");break}}++it}),this.curOp.forceUpdate=!0,Ke(this,"refresh",this)}),operation:function(re){return cn(this,re)},startOperation:function(){return Ui(this)},endOperation:function(){return Co(this)},refresh:Un(function(){var re=this.display.cachedTextHeight;Hr(this),this.curOp.forceUpdate=!0,no(this),du(this,this.doc.scrollLeft,this.doc.scrollTop),Sa(this.display),(re==null||Math.abs(re-Ai(this.display))>.5||this.options.lineWrapping)&&ii(this),Ke(this,"refresh",this)}),swapDoc:Un(function(re){var le=this.doc;return le.cm=null,this.state.selectingText&&this.state.selectingText(),so(this,re),no(this),this.display.input.reset(),du(this,re.scrollLeft,re.scrollTop),this.curOp.forceScroll=!0,Jr(this,"swapDoc",this,le),le}),phrase:function(re){var le=this.options.phrases;return le&&Object.prototype.hasOwnProperty.call(le,re)?le[re]:re},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}},Xt(x),x.registerHelper=function(re,le,ge){ie.hasOwnProperty(re)||(ie[re]=x[re]={_global:[]}),ie[re][le]=ge},x.registerGlobalHelper=function(re,le,ge,_e){x.registerHelper(re,le,_e),ie[re]._global.push({pred:ge,val:_e})}}function cd(x,ee,ie,re,le){var ge=ee,_e=ie,it=_t(x,ee.line),bt=le&&x.direction=="rtl"?-ie:ie;function Ft(){var Ra=ee.line+bt;return Ra<x.first||Ra>=x.first+x.size?!1:(ee=new en(Ra,ee.ch,ee.sticky),it=_t(x,Ra))}function xn(Ra){var Da;if(re=="codepoint"){var Va=it.text.charCodeAt(ee.ch+(re>0?0:-1));isNaN(Va)?Da=null:Da=new en(ee.line,Math.max(0,Math.min(it.text.length,ee.ch+ie*(Va>=55296&&Va<56320?2:1))),-ie)}else le?Da=bl(x.cm,it,ee,ie):Da=Qs(it,ee,ie);if(Da==null)if(!Ra&&Ft())ee=cl(le,x.cm,it,ee.line,bt);else return!1;else ee=Da;return!0}if(re=="char"||re=="codepoint")xn();else if(re=="column")xn(!0);else if(re=="word"||re=="group")for(var Ln=null,wr=re=="group",mr=x.cm&&x.cm.getHelper(ee,"wordChars"),di=!0;!(ie<0&&!xn(!di));di=!1){var zi=it.text.charAt(ee.ch)||`
|
|
|
`,da=me(zi,mr)?"w":wr&&zi==`
|
|
|
`?"n":!wr||/\s/.test(zi)?null:"p";if(wr&&!di&&!da&&(da="s"),Ln&&Ln!=da){ie<0&&(ie=1,xn(),ee.sticky="after");break}if(da&&(Ln=da),ie>0&&!xn(!di))break}var La=nu(x,ee,ge,_e,!0);return Or(ge,La)&&(La.hitSide=!0),La}function dd(x,ee,ie,re){var le=x.doc,ge=ee.left,_e;if(re=="page"){var it=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),bt=Math.max(it-.5*Ai(x.display),3);_e=(ie>0?ee.bottom:ee.top)+ie*bt}else re=="line"&&(_e=ie>0?ee.bottom+3:ee.top-3);for(var Ft;Ft=hn(x,ge,_e),!!Ft.outside;){if(ie<0?_e<=0:_e>=le.height){Ft.hitSide=!0;break}_e+=ie*5}return Ft}var Ol=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Me,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ol.prototype.init=function(x){var ee=this,ie=this,re=ie.cm,le=ie.div=x.lineDiv;uf(le,re.options.spellcheck,re.options.autocorrect,re.options.autocapitalize);function ge(it){for(var bt=it.target;bt;bt=bt.parentNode){if(bt==le)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(bt.className))break}return!1}Ut(le,"paste",function(it){!ge(it)||gt(re,it)||Rd(it,re)||Se<=11&&setTimeout(Fn(re,function(){return ee.updateFromDOM()}),20)}),Ut(le,"compositionstart",function(it){ee.composing={data:it.data,done:!1}}),Ut(le,"compositionupdate",function(it){ee.composing||(ee.composing={data:it.data,done:!1})}),Ut(le,"compositionend",function(it){ee.composing&&(it.data!=ee.composing.data&&ee.readFromDOMSoon(),ee.composing.done=!0)}),Ut(le,"touchstart",function(){return ie.forceCompositionEnd()}),Ut(le,"input",function(){ee.composing||ee.readFromDOMSoon()});function _e(it){if(!(!ge(it)||gt(re,it))){if(re.somethingSelected())ec({lineWise:!1,text:re.getSelections()}),it.type=="cut"&&re.replaceSelection("",null,"cut");else if(re.options.lineWiseCopyCut){var bt=Kc(re);ec({lineWise:!0,text:bt.text}),it.type=="cut"&&re.operation(function(){re.setSelections(bt.ranges,0,ct),re.replaceSelection("",null,"cut")})}else return;if(it.clipboardData){it.clipboardData.clearData();var Ft=qu.text.join(`
|
|
|
`);if(it.clipboardData.setData("Text",Ft),it.clipboardData.getData("Text")==Ft){it.preventDefault();return}}var xn=Zd(),Ln=xn.firstChild;re.display.lineSpace.insertBefore(xn,re.display.lineSpace.firstChild),Ln.value=qu.text.join(`
|
|
|
`);var wr=document.activeElement;wt(Ln),setTimeout(function(){re.display.lineSpace.removeChild(xn),wr.focus(),wr==le&&ie.showPrimarySelection()},50)}}Ut(le,"copy",_e),Ut(le,"cut",_e)},Ol.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},Ol.prototype.prepareSelection=function(){var x=Ea(this.cm,!1);return x.focus=document.activeElement==this.div,x},Ol.prototype.showSelection=function(x,ee){!x||!this.cm.display.view.length||((x.focus||ee)&&this.showPrimarySelection(),this.showMultipleSelections(x))},Ol.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ol.prototype.showPrimarySelection=function(){var x=this.getSelection(),ee=this.cm,ie=ee.doc.sel.primary(),re=ie.from(),le=ie.to();if(ee.display.viewTo==ee.display.viewFrom||re.line>=ee.display.viewTo||le.line<ee.display.viewFrom){x.removeAllRanges();return}var ge=wd(ee,x.anchorNode,x.anchorOffset),_e=wd(ee,x.focusNode,x.focusOffset);if(!(ge&&!ge.bad&&_e&&!_e.bad&&rn(Dr(ge,_e),re)==0&&rn(Cr(ge,_e),le)==0)){var it=ee.display.view,bt=re.line>=ee.display.viewFrom&&cf(ee,re)||{node:it[0].measure.map[2],offset:0},Ft=le.line<ee.display.viewTo&&cf(ee,le);if(!Ft){var xn=it[it.length-1].measure,Ln=xn.maps?xn.maps[xn.maps.length-1]:xn.map;Ft={node:Ln[Ln.length-1],offset:Ln[Ln.length-2]-Ln[Ln.length-3]}}if(!bt||!Ft){x.removeAllRanges();return}var wr=x.rangeCount&&x.getRangeAt(0),mr;try{mr=Be(bt.node,bt.offset,Ft.offset,Ft.node)}catch(di){}mr&&(!E&&ee.state.focused?(x.collapse(bt.node,bt.offset),mr.collapsed||(x.removeAllRanges(),x.addRange(mr))):(x.removeAllRanges(),x.addRange(mr)),wr&&x.anchorNode==null?x.addRange(wr):E&&this.startGracePeriod()),this.rememberSelection()}},Ol.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)},Ol.prototype.showMultipleSelections=function(x){vt(this.cm.display.cursorDiv,x.cursors),vt(this.cm.display.selectionDiv,x.selection)},Ol.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},Ol.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var ee=x.getRangeAt(0).commonAncestorContainer;return xt(this.div,ee)},Ol.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ol.prototype.blur=function(){this.div.blur()},Ol.prototype.getField=function(){return this.div},Ol.prototype.supportsTouch=function(){return!0},Ol.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():cn(this.cm,function(){return x.cm.curOp.selectionChanged=!0});function ee(){x.cm.state.focused&&(x.pollSelection(),x.polling.set(x.cm.options.pollInterval,ee))}this.polling.set(this.cm.options.pollInterval,ee)},Ol.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},Ol.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),ee=this.cm;if(ze&&De&&this.cm.display.gutterSpecs.length&&Kd(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ie=wd(ee,x.anchorNode,x.anchorOffset),re=wd(ee,x.focusNode,x.focusOffset);ie&&re&&cn(ee,function(){Cl(ee.doc,zo(ie,re),ct),(ie.bad||re.bad)&&(ee.curOp.selectionChanged=!0)})}}},Ol.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,ee=x.display,ie=x.doc.sel.primary(),re=ie.from(),le=ie.to();if(re.ch==0&&re.line>x.firstLine()&&(re=en(re.line-1,_t(x.doc,re.line-1).length)),le.ch==_t(x.doc,le.line).text.length&&le.line<x.lastLine()&&(le=en(le.line+1,0)),re.line<ee.viewFrom||le.line>ee.viewTo-1)return!1;var ge,_e,it;re.line==ee.viewFrom||(ge=Fi(x,re.line))==0?(_e=Bn(ee.view[0].line),it=ee.view[0].node):(_e=Bn(ee.view[ge].line),it=ee.view[ge-1].node.nextSibling);var bt=Fi(x,le.line),Ft,xn;if(bt==ee.view.length-1?(Ft=ee.viewTo-1,xn=ee.lineDiv.lastChild):(Ft=Bn(ee.view[bt+1].line)-1,xn=ee.view[bt+1].node.previousSibling),!it)return!1;for(var Ln=x.doc.splitLines(Rf(x,it,xn,_e,Ft)),wr=Qt(x.doc,en(_e,0),en(Ft,_t(x.doc,Ft).text.length));Ln.length>1&&wr.length>1;)if(on(Ln)==on(wr))Ln.pop(),wr.pop(),Ft--;else if(Ln[0]==wr[0])Ln.shift(),wr.shift(),_e++;else break;for(var mr=0,di=0,zi=Ln[0],da=wr[0],La=Math.min(zi.length,da.length);mr<La&&zi.charCodeAt(mr)==da.charCodeAt(mr);)++mr;for(var Ra=on(Ln),Da=on(wr),Va=Math.min(Ra.length-(Ln.length==1?mr:0),Da.length-(wr.length==1?mr:0));di<Va&&Ra.charCodeAt(Ra.length-di-1)==Da.charCodeAt(Da.length-di-1);)++di;if(Ln.length==1&&wr.length==1&&_e==re.line)for(;mr&&mr>re.ch&&Ra.charCodeAt(Ra.length-di-1)==Da.charCodeAt(Da.length-di-1);)mr--,di++;Ln[Ln.length-1]=Ra.slice(0,Ra.length-di).replace(/^\u200b+/,""),Ln[0]=Ln[0].slice(mr).replace(/\u200b+$/,"");var Mo=en(_e,mr),Oo=en(Ft,wr.length?on(wr).length-di:0);if(Ln.length>1||Ln[0]||rn(Mo,Oo))return Ru(x.doc,Ln,Mo,Oo,"+input"),!0},Ol.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ol.prototype.reset=function(){this.forceCompositionEnd()},Ol.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ol.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))},Ol.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&cn(this.cm,function(){return Hr(x.cm)})},Ol.prototype.setUneditable=function(x){x.contentEditable="false"},Ol.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||Fn(this.cm,Td)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},Ol.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},Ol.prototype.onContextMenu=function(){},Ol.prototype.resetPosition=function(){},Ol.prototype.needsContentAttribute=!0;function cf(x,ee){var ie=ma(x,ee.line);if(!ie||ie.hidden)return null;var re=_t(x.doc,ee.line),le=Er(ie,re,ee.line),ge=vn(re,x.doc.direction),_e="left";if(ge){var it=ht(ge,ee.ch);_e=it%2?"right":"left"}var bt=Ia(le.map,ee.ch,_e);return bt.offset=bt.collapse=="right"?bt.end:bt.start,bt}function Kd(x){for(var ee=x;ee;ee=ee.parentNode)if(/CodeMirror-gutter-wrapper/.test(ee.className))return!0;return!1}function Pc(x,ee){return ee&&(x.bad=!0),x}function Rf(x,ee,ie,re,le){var ge="",_e=!1,it=x.doc.lineSeparator(),bt=!1;function Ft(mr){return function(di){return di.id==mr}}function xn(){_e&&(ge+=it,bt&&(ge+=it),_e=bt=!1)}function Ln(mr){mr&&(xn(),ge+=mr)}function wr(mr){if(mr.nodeType==1){var di=mr.getAttribute("cm-text");if(di){Ln(di);return}var zi=mr.getAttribute("cm-marker"),da;if(zi){var La=x.findMarks(en(re,0),en(le+1,0),Ft(+zi));La.length&&(da=La[0].find(0))&&Ln(Qt(x.doc,da.from,da.to).join(it));return}if(mr.getAttribute("contenteditable")=="false")return;var Ra=/^(pre|div|p|li|table|br)$/i.test(mr.nodeName);if(!/^br$/i.test(mr.nodeName)&&mr.textContent.length==0)return;Ra&&xn();for(var Da=0;Da<mr.childNodes.length;Da++)wr(mr.childNodes[Da]);/^(pre|p)$/i.test(mr.nodeName)&&(bt=!0),Ra&&(_e=!0)}else mr.nodeType==3&&Ln(mr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;wr(ee),ee!=ie;)ee=ee.nextSibling,bt=!1;return ge}function wd(x,ee,ie){var re;if(ee==x.display.lineDiv){if(re=x.display.lineDiv.childNodes[ie],!re)return Pc(x.clipPos(en(x.display.viewTo-1)),!0);ee=null,ie=0}else for(re=ee;;re=re.parentNode){if(!re||re==x.display.lineDiv)return null;if(re.parentNode&&re.parentNode==x.display.lineDiv)break}for(var le=0;le<x.display.view.length;le++){var ge=x.display.view[le];if(ge.node==re)return zf(ge,ee,ie)}}function zf(x,ee,ie){var re=x.text.firstChild,le=!1;if(!ee||!xt(re,ee))return Pc(en(Bn(x.line),0),!0);if(ee==re&&(le=!0,ee=re.childNodes[ie],ie=0,!ee)){var ge=x.rest?on(x.rest):x.line;return Pc(en(Bn(ge),ge.text.length),le)}var _e=ee.nodeType==3?ee:null,it=ee;for(!_e&&ee.childNodes.length==1&&ee.firstChild.nodeType==3&&(_e=ee.firstChild,ie&&(ie=_e.nodeValue.length));it.parentNode!=re;)it=it.parentNode;var bt=x.measure,Ft=bt.maps;function xn(da,La,Ra){for(var Da=-1;Da<(Ft?Ft.length:0);Da++)for(var Va=Da<0?bt.map:Ft[Da],Mo=0;Mo<Va.length;Mo+=3){var Oo=Va[Mo+2];if(Oo==da||Oo==La){var al=Bn(Da<0?x.line:x.rest[Da]),Vl=Va[Mo]+Ra;return(Ra<0||Oo!=da)&&(Vl=Va[Mo+(Ra?1:0)]),en(al,Vl)}}}var Ln=xn(_e,it,ie);if(Ln)return Pc(Ln,le);for(var wr=it.nextSibling,mr=_e?_e.nodeValue.length-ie:0;wr;wr=wr.nextSibling){if(Ln=xn(wr,wr.firstChild,0),Ln)return Pc(en(Ln.line,Ln.ch-mr),le);mr+=wr.textContent.length}for(var di=it.previousSibling,zi=ie;di;di=di.previousSibling){if(Ln=xn(di,di.firstChild,-1),Ln)return Pc(en(Ln.line,Ln.ch+zi),le);zi+=di.textContent.length}}var jl=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new Me,this.hasSelection=!1,this.composing=null};jl.prototype.init=function(x){var ee=this,ie=this,re=this.cm;this.createField(x);var le=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),tt&&(le.style.width="0px"),Ut(le,"input",function(){Ce&&Se>=9&&ee.hasSelection&&(ee.hasSelection=null),ie.poll()}),Ut(le,"paste",function(_e){gt(re,_e)||Rd(_e,re)||(re.state.pasteIncoming=+new Date,ie.fastPoll())});function ge(_e){if(!gt(re,_e)){if(re.somethingSelected())ec({lineWise:!1,text:re.getSelections()});else if(re.options.lineWiseCopyCut){var it=Kc(re);ec({lineWise:!0,text:it.text}),_e.type=="cut"?re.setSelections(it.ranges,null,ct):(ie.prevInput="",le.value=it.text.join(`
|
|
|
`),wt(le))}else return;_e.type=="cut"&&(re.state.cutIncoming=+new Date)}}Ut(le,"cut",ge),Ut(le,"copy",ge),Ut(x.scroller,"paste",function(_e){if(!(Cn(x,_e)||gt(re,_e))){if(!le.dispatchEvent){re.state.pasteIncoming=+new Date,ie.focus();return}var it=new Event("paste");it.clipboardData=_e.clipboardData,le.dispatchEvent(it)}}),Ut(x.lineSpace,"selectstart",function(_e){Cn(x,_e)||Mn(_e)}),Ut(le,"compositionstart",function(){var _e=re.getCursor("from");ie.composing&&ie.composing.range.clear(),ie.composing={start:_e,range:re.markText(_e,re.getCursor("to"),{className:"CodeMirror-composing"})}}),Ut(le,"compositionend",function(){ie.composing&&(ie.poll(),ie.composing.range.clear(),ie.composing=null)})},jl.prototype.createField=function(x){this.wrapper=Zd(),this.textarea=this.wrapper.firstChild},jl.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},jl.prototype.prepareSelection=function(){var x=this.cm,ee=x.display,ie=x.doc,re=Ea(x);if(x.options.moveInputWithCursor){var le=ll(x,ie.sel.primary().head,"div"),ge=ee.wrapper.getBoundingClientRect(),_e=ee.lineDiv.getBoundingClientRect();re.teTop=Math.max(0,Math.min(ee.wrapper.clientHeight-10,le.top+_e.top-ge.top)),re.teLeft=Math.max(0,Math.min(ee.wrapper.clientWidth-10,le.left+_e.left-ge.left))}return re},jl.prototype.showSelection=function(x){var ee=this.cm,ie=ee.display;vt(ie.cursorDiv,x.cursors),vt(ie.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},jl.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var ee=this.cm;if(ee.somethingSelected()){this.prevInput="";var ie=ee.getSelection();this.textarea.value=ie,ee.state.focused&&wt(this.textarea),Ce&&Se>=9&&(this.hasSelection=ie)}else x||(this.prevInput=this.textarea.value="",Ce&&Se>=9&&(this.hasSelection=null))}},jl.prototype.getField=function(){return this.textarea},jl.prototype.supportsTouch=function(){return!1},jl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!We||Ve()!=this.textarea))try{this.textarea.focus()}catch(x){}},jl.prototype.blur=function(){this.textarea.blur()},jl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},jl.prototype.receivedFocus=function(){this.slowPoll()},jl.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},jl.prototype.fastPoll=function(){var x=!1,ee=this;ee.pollingFast=!0;function ie(){var re=ee.poll();!re&&!x?(x=!0,ee.polling.set(60,ie)):(ee.pollingFast=!1,ee.slowPoll())}ee.polling.set(20,ie)},jl.prototype.poll=function(){var x=this,ee=this.cm,ie=this.textarea,re=this.prevInput;if(this.contextMenuPending||!ee.state.focused||ar(ie)&&!re&&!this.composing||ee.isReadOnly()||ee.options.disableInput||ee.state.keySeq)return!1;var le=ie.value;if(le==re&&!ee.somethingSelected())return!1;if(Ce&&Se>=9&&this.hasSelection===le||lt&&/[\uf700-\uf7ff]/.test(le))return ee.display.input.reset(),!1;if(ee.doc.sel==ee.display.selForContextMenu){var ge=le.charCodeAt(0);if(ge==8203&&!re&&(re="\u200B"),ge==8666)return this.reset(),this.cm.execCommand("undo")}for(var _e=0,it=Math.min(re.length,le.length);_e<it&&re.charCodeAt(_e)==le.charCodeAt(_e);)++_e;return cn(ee,function(){Td(ee,le.slice(_e),re.length-_e,null,x.composing?"*compose":null),le.length>1e3||le.indexOf(`
|
|
|
`)>-1?ie.value=x.prevInput="":x.prevInput=le,x.composing&&(x.composing.range.clear(),x.composing.range=ee.markText(x.composing.start,ee.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},jl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},jl.prototype.onKeyPress=function(){Ce&&Se>=9&&(this.hasSelection=null),this.fastPoll()},jl.prototype.onContextMenu=function(x){var ee=this,ie=ee.cm,re=ie.display,le=ee.textarea;ee.contextMenuPending&&ee.contextMenuPending();var ge=ca(ie,x),_e=re.scroller.scrollTop;if(!ge||Pe)return;var it=ie.options.resetSelectionOnContextMenu;it&&ie.doc.sel.contains(ge)==-1&&Fn(ie,Cl)(ie.doc,zo(ge),ct);var bt=le.style.cssText,Ft=ee.wrapper.style.cssText,xn=ee.wrapper.offsetParent.getBoundingClientRect();ee.wrapper.style.cssText="position: static",le.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(x.clientY-xn.top-5)+"px; left: "+(x.clientX-xn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Ce?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ln;pe&&(Ln=window.scrollY),re.input.focus(),pe&&window.scrollTo(null,Ln),re.input.reset(),ie.somethingSelected()||(le.value=ee.prevInput=" "),ee.contextMenuPending=mr,re.selForContextMenu=ie.doc.sel,clearTimeout(re.detectingSelectAll);function wr(){if(le.selectionStart!=null){var zi=ie.somethingSelected(),da="\u200B"+(zi?le.value:"");le.value="\u21DA",le.value=da,ee.prevInput=zi?"":"\u200B",le.selectionStart=1,le.selectionEnd=da.length,re.selForContextMenu=ie.doc.sel}}function mr(){if(ee.contextMenuPending==mr&&(ee.contextMenuPending=!1,ee.wrapper.style.cssText=Ft,le.style.cssText=bt,Ce&&Se<9&&re.scrollbars.setScrollTop(re.scroller.scrollTop=_e),le.selectionStart!=null)){(!Ce||Ce&&Se<9)&&wr();var zi=0,da=function(){re.selForContextMenu==ie.doc.sel&&le.selectionStart==0&&le.selectionEnd>0&&ee.prevInput=="\u200B"?Fn(ie,Fs)(ie):zi++<10?re.detectingSelectAll=setTimeout(da,500):(re.selForContextMenu=null,re.input.reset())};re.detectingSelectAll=setTimeout(da,200)}}if(Ce&&Se>=9&&wr(),Ze){ur(x);var di=function(){Bt(window,"mouseup",di),setTimeout(mr,20)};Ut(window,"mouseup",di)}else setTimeout(mr,50)},jl.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},jl.prototype.setUneditable=function(){},jl.prototype.needsContentAttribute=!1;function uc(x,ee){if(ee=ee?at(ee):{},ee.value=x.value,!ee.tabindex&&x.tabIndex&&(ee.tabindex=x.tabIndex),!ee.placeholder&&x.placeholder&&(ee.placeholder=x.placeholder),ee.autofocus==null){var ie=Ve();ee.autofocus=ie==x||x.getAttribute("autofocus")!=null&&ie==document.body}function re(){x.value=it.getValue()}var le;if(x.form&&(Ut(x.form,"submit",re),!ee.leaveSubmitMethodAlone)){var ge=x.form;le=ge.submit;try{var _e=ge.submit=function(){re(),ge.submit=le,ge.submit(),ge.submit=_e}}catch(bt){}}ee.finishInit=function(bt){bt.save=re,bt.getTextArea=function(){return x},bt.toTextArea=function(){bt.toTextArea=isNaN,re(),x.parentNode.removeChild(bt.getWrapperElement()),x.style.display="",x.form&&(Bt(x.form,"submit",re),!ee.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=le))}},x.style.display="none";var it=jo(function(bt){return x.parentNode.insertBefore(bt,x.nextSibling)},ee);return it}function Ic(x){x.off=Bt,x.on=Ut,x.wheelEventPixels=wo,x.Doc=ss,x.splitLines=Kr,x.countColumn=Le,x.findColumn=gn,x.isWordChar=he,x.Pass=Tt,x.signal=Ke,x.Line=hi,x.changeEnd=fl,x.scrollbarModel=Tu,x.Pos=en,x.cmpPos=rn,x.modes=or,x.mimeModes=er,x.resolveMode=nr,x.getMode=lr,x.modeExtensions=xr,x.extendMode=jt,x.copyState=Ue,x.startState=ut,x.innerMode=yt,x.commands=Ns,x.keyMap=kl,x.keyName=zu,x.isModifierKey=bc,x.lookupKey=au,x.normalizeKeyMap=kc,x.StringStream=rt,x.SharedTextMarker=el,x.TextMarker=Qu,x.LineWidget=ws,x.e_preventDefault=Mn,x.e_stopPropagation=Tn,x.e_stop=ur,x.addClass=Ot,x.contains=xt,x.rmClass=Je,x.keyNames=mu}_f(jo),Hd(jo);var Hu="iter insert remove copy getEditor constructor".split(" ");for(var yu in ss.prototype)ss.prototype.hasOwnProperty(yu)&&st(Hu,yu)<0&&(jo.prototype[yu]=function(x){return function(){return x.apply(this.doc,arguments)}}(ss.prototype[yu]));return Xt(ss),jo.inputStyles={textarea:jl,contenteditable:Ol},jo.defineMode=function(x){!jo.defaults.mode&&x!="null"&&(jo.defaults.mode=x),Kn.apply(this,arguments)},jo.defineMIME=En,jo.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),jo.defineMIME("text/plain","null"),jo.defineExtension=function(x,ee){jo.prototype[x]=ee},jo.defineDocExtension=function(x,ee){ss.prototype[x]=ee},jo.fromTextArea=uc,Ic(jo),jo.version="5.58.2",jo})},25419:function(An,tn,ne){(function(E){E(ne(89780),ne(15525),ne(98101))})(function(E){"use strict";E.defineMode("markdown",function(ye,Ee){var Ye=E.getMode(ye,"text/html"),Ce=Ye.name=="null";function Se(Le){if(E.findModeByName){var Me=E.findModeByName(Le);Me&&(Le=Me.mime||Me.mimes[0])}var st=E.getMode(ye,Le);return st.name=="null"?null:st}Ee.highlightFormatting===void 0&&(Ee.highlightFormatting=!1),Ee.maxBlockquoteDepth===void 0&&(Ee.maxBlockquoteDepth=0),Ee.taskLists===void 0&&(Ee.taskLists=!1),Ee.strikethrough===void 0&&(Ee.strikethrough=!1),Ee.emoji===void 0&&(Ee.emoji=!1),Ee.fencedCodeBlockHighlighting===void 0&&(Ee.fencedCodeBlockHighlighting=!0),Ee.fencedCodeBlockDefaultMode===void 0&&(Ee.fencedCodeBlockDefaultMode="text/plain"),Ee.xml===void 0&&(Ee.xml=!0),Ee.tokenTypeOverrides===void 0&&(Ee.tokenTypeOverrides={});var pe={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var be in pe)pe.hasOwnProperty(be)&&Ee.tokenTypeOverrides[be]&&(pe[be]=Ee.tokenTypeOverrides[be]);var De=/^([*\-_])(?:\s*\1){2,}\s*$/,Pe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,et=/^\[(x| )\](?=\s)/i,Fe=Ee.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ie=/^ {0,3}(?:\={1,}|-{2,})\s*$/,tt=/^[^#!\[\]*_\\<>` "'(~:]+/,ze=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,We=/^\s*\[[^\]]+?\]:.*$/,lt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Xe=" ";function Dt(Le,Me,st){return Me.f=Me.inline=st,st(Le,Me)}function dt(Le,Me,st){return Me.f=Me.block=st,st(Le,Me)}function Qe(Le){return!Le||!/\S/.test(Le.string)}function Ze(Le){if(Le.linkTitle=!1,Le.linkHref=!1,Le.linkText=!1,Le.em=!1,Le.strong=!1,Le.strikethrough=!1,Le.quote=0,Le.indentedCode=!1,Le.f==Je){var Me=Ce;if(!Me){var st=E.innerMode(Ye,Le.htmlState);Me=st.mode.name=="xml"&&st.state.tagStart===null&&!st.state.context&&st.state.tokenize.isInText}Me&&(Le.f=mt,Le.block=Ae,Le.htmlState=null)}return Le.trailingSpace=0,Le.trailingSpaceNewLine=!1,Le.prevLine=Le.thisLine,Le.thisLine={stream:null},null}function Ae(Le,Me){var st=Le.column()===Me.indentation,Ht=Qe(Me.prevLine.stream),Tt=Me.indentedCode,ct=Me.prevLine.hr,Ct=Me.list!==!1,Zt=(Me.listStack[Me.listStack.length-1]||0)+3;Me.indentedCode=!1;var gn=Me.indentation;if(Me.indentationDiff===null&&(Me.indentationDiff=Me.indentation,Ct)){for(Me.list=null;gn<Me.listStack[Me.listStack.length-1];)Me.listStack.pop(),Me.listStack.length?Me.indentation=Me.listStack[Me.listStack.length-1]:Me.list=!1;Me.list!==!1&&(Me.indentationDiff=gn-Me.listStack[Me.listStack.length-1])}var $t=!Ht&&!ct&&!Me.prevLine.header&&(!Ct||!Tt)&&!Me.prevLine.fencedCodeEnd,Wt=(Me.list===!1||ct||Ht)&&Me.indentation<=Zt&&Le.match(De),on=null;if(Me.indentationDiff>=4&&(Tt||Me.prevLine.fencedCodeEnd||Me.prevLine.header||Ht))return Le.skipToEnd(),Me.indentedCode=!0,pe.code;if(Le.eatSpace())return null;if(st&&Me.indentation<=Zt&&(on=Le.match(Fe))&&on[1].length<=6)return Me.quote=0,Me.header=on[1].length,Me.thisLine.header=!0,Ee.highlightFormatting&&(Me.formatting="header"),Me.f=Me.inline,vt(Me);if(Me.indentation<=Zt&&Le.eat(">"))return Me.quote=st?1:Me.quote+1,Ee.highlightFormatting&&(Me.formatting="quote"),Le.eatSpace(),vt(Me);if(!Wt&&!Me.setext&&st&&Me.indentation<=Zt&&(on=Le.match(Pe))){var dn=on[1]?"ol":"ul";return Me.indentation=gn+Le.current().length,Me.list=!0,Me.quote=0,Me.listStack.push(Me.indentation),Me.em=!1,Me.strong=!1,Me.code=!1,Me.strikethrough=!1,Ee.taskLists&&Le.match(et,!1)&&(Me.taskList=!0),Me.f=Me.inline,Ee.highlightFormatting&&(Me.formatting=["list","list-"+dn]),vt(Me)}else{if(st&&Me.indentation<=Zt&&(on=Le.match(ze,!0)))return Me.quote=0,Me.fencedEndRE=new RegExp(on[1]+"+ *$"),Me.localMode=Ee.fencedCodeBlockHighlighting&&Se(on[2]||Ee.fencedCodeBlockDefaultMode),Me.localMode&&(Me.localState=E.startState(Me.localMode)),Me.f=Me.block=Re,Ee.highlightFormatting&&(Me.formatting="code-block"),Me.code=-1,vt(Me);if(Me.setext||(!$t||!Ct)&&!Me.quote&&Me.list===!1&&!Me.code&&!Wt&&!We.test(Le.string)&&(on=Le.lookAhead(1))&&(on=on.match(Ie)))return Me.setext?(Me.header=Me.setext,Me.setext=0,Le.skipToEnd(),Ee.highlightFormatting&&(Me.formatting="header")):(Me.header=on[0].charAt(0)=="="?1:2,Me.setext=Me.header),Me.thisLine.header=!0,Me.f=Me.inline,vt(Me);if(Wt)return Le.skipToEnd(),Me.hr=!0,Me.thisLine.hr=!0,pe.hr;if(Le.peek()==="[")return Dt(Le,Me,nt)}return Dt(Le,Me,Me.inline)}function Je(Le,Me){var st=Ye.token(Le,Me.htmlState);if(!Ce){var Ht=E.innerMode(Ye,Me.htmlState);(Ht.mode.name=="xml"&&Ht.state.tagStart===null&&!Ht.state.context&&Ht.state.tokenize.isInText||Me.md_inside&&Le.current().indexOf(">")>-1)&&(Me.f=mt,Me.block=Ae,Me.htmlState=null)}return st}function Re(Le,Me){var st=Me.listStack[Me.listStack.length-1]||0,Ht=Me.indentation<st,Tt=st+3;if(Me.fencedEndRE&&Me.indentation<=Tt&&(Ht||Le.match(Me.fencedEndRE))){Ee.highlightFormatting&&(Me.formatting="code-block");var ct;return Ht||(ct=vt(Me)),Me.localMode=Me.localState=null,Me.block=Ae,Me.f=mt,Me.fencedEndRE=null,Me.code=0,Me.thisLine.fencedCodeEnd=!0,Ht?dt(Le,Me,Me.block):ct}else return Me.localMode?Me.localMode.token(Le,Me.localState):(Le.skipToEnd(),pe.code)}function vt(Le){var Me=[];if(Le.formatting){Me.push(pe.formatting),typeof Le.formatting=="string"&&(Le.formatting=[Le.formatting]);for(var st=0;st<Le.formatting.length;st++)Me.push(pe.formatting+"-"+Le.formatting[st]),Le.formatting[st]==="header"&&Me.push(pe.formatting+"-"+Le.formatting[st]+"-"+Le.header),Le.formatting[st]==="quote"&&(!Ee.maxBlockquoteDepth||Ee.maxBlockquoteDepth>=Le.quote?Me.push(pe.formatting+"-"+Le.formatting[st]+"-"+Le.quote):Me.push("error"))}if(Le.taskOpen)return Me.push("meta"),Me.length?Me.join(" "):null;if(Le.taskClosed)return Me.push("property"),Me.length?Me.join(" "):null;if(Le.linkHref?Me.push(pe.linkHref,"url"):(Le.strong&&Me.push(pe.strong),Le.em&&Me.push(pe.em),Le.strikethrough&&Me.push(pe.strikethrough),Le.emoji&&Me.push(pe.emoji),Le.linkText&&Me.push(pe.linkText),Le.code&&Me.push(pe.code),Le.image&&Me.push(pe.image),Le.imageAltText&&Me.push(pe.imageAltText,"link"),Le.imageMarker&&Me.push(pe.imageMarker)),Le.header&&Me.push(pe.header,pe.header+"-"+Le.header),Le.quote&&(Me.push(pe.quote),!Ee.maxBlockquoteDepth||Ee.maxBlockquoteDepth>=Le.quote?Me.push(pe.quote+"-"+Le.quote):Me.push(pe.quote+"-"+Ee.maxBlockquoteDepth)),Le.list!==!1){var Ht=(Le.listStack.length-1)%3;Ht?Ht===1?Me.push(pe.list2):Me.push(pe.list3):Me.push(pe.list1)}return Le.trailingSpaceNewLine?Me.push("trailing-space-new-line"):Le.trailingSpace&&Me.push("trailing-space-"+(Le.trailingSpace%2?"a":"b")),Me.length?Me.join(" "):null}function $e(Le,Me){if(Le.match(tt,!0))return vt(Me)}function mt(Le,Me){var st=Me.text(Le,Me);if(typeof st!="undefined")return st;if(Me.list)return Me.list=null,vt(Me);if(Me.taskList){var Ht=Le.match(et,!0)[1]===" ";return Ht?Me.taskOpen=!0:Me.taskClosed=!0,Ee.highlightFormatting&&(Me.formatting="task"),Me.taskList=!1,vt(Me)}if(Me.taskOpen=!1,Me.taskClosed=!1,Me.header&&Le.match(/^#+$/,!0))return Ee.highlightFormatting&&(Me.formatting="header"),vt(Me);var Tt=Le.next();if(Me.linkTitle){Me.linkTitle=!1;var ct=Tt;Tt==="("&&(ct=")"),ct=(ct+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ct="^\\s*(?:[^"+ct+"\\\\]+|\\\\\\\\|\\\\.)"+ct;if(Le.match(new RegExp(Ct),!0))return pe.linkHref}if(Tt==="`"){var Zt=Me.formatting;Ee.highlightFormatting&&(Me.formatting="code"),Le.eatWhile("`");var gn=Le.current().length;if(Me.code==0&&(!Me.quote||gn==1))return Me.code=gn,vt(Me);if(gn==Me.code){var $t=vt(Me);return Me.code=0,$t}else return Me.formatting=Zt,vt(Me)}else if(Me.code)return vt(Me);if(Tt==="\\"&&(Le.next(),Ee.highlightFormatting)){var Wt=vt(Me),on=pe.formatting+"-escape";return Wt?Wt+" "+on:on}if(Tt==="!"&&Le.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Me.imageMarker=!0,Me.image=!0,Ee.highlightFormatting&&(Me.formatting="image"),vt(Me);if(Tt==="["&&Me.imageMarker&&Le.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Me.imageMarker=!1,Me.imageAltText=!0,Ee.highlightFormatting&&(Me.formatting="image"),vt(Me);if(Tt==="]"&&Me.imageAltText){Ee.highlightFormatting&&(Me.formatting="image");var Wt=vt(Me);return Me.imageAltText=!1,Me.image=!1,Me.inline=Me.f=xt,Wt}if(Tt==="["&&!Me.image)return Me.linkText&&Le.match(/^.*?\]/)||(Me.linkText=!0,Ee.highlightFormatting&&(Me.formatting="link")),vt(Me);if(Tt==="]"&&Me.linkText){Ee.highlightFormatting&&(Me.formatting="link");var Wt=vt(Me);return Me.linkText=!1,Me.inline=Me.f=Le.match(/\(.*?\)| ?\[.*?\]/,!1)?xt:mt,Wt}if(Tt==="<"&&Le.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Me.f=Me.inline=Be,Ee.highlightFormatting&&(Me.formatting="link");var Wt=vt(Me);return Wt?Wt+=" ":Wt="",Wt+pe.linkInline}if(Tt==="<"&&Le.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Me.f=Me.inline=Be,Ee.highlightFormatting&&(Me.formatting="link");var Wt=vt(Me);return Wt?Wt+=" ":Wt="",Wt+pe.linkEmail}if(Ee.xml&&Tt==="<"&&Le.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var dn=Le.string.indexOf(">",Le.pos);if(dn!=-1){var ln=Le.string.substring(Le.start,dn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ln)&&(Me.md_inside=!0)}return Le.backUp(1),Me.htmlState=E.startState(Ye),dt(Le,Me,Je)}if(Ee.xml&&Tt==="<"&&Le.match(/^\/\w*?>/))return Me.md_inside=!1,"tag";if(Tt==="*"||Tt==="_"){for(var xe=1,fe=Le.pos==1?" ":Le.string.charAt(Le.pos-2);xe<3&&Le.eat(Tt);)xe++;var ue=Le.peek()||" ",he=!/\s/.test(ue)&&(!lt.test(ue)||/\s/.test(fe)||lt.test(fe)),me=!/\s/.test(fe)&&(!lt.test(fe)||/\s/.test(ue)||lt.test(ue)),oe=null,Ne=null;if(xe%2&&(!Me.em&&he&&(Tt==="*"||!me||lt.test(fe))?oe=!0:Me.em==Tt&&me&&(Tt==="*"||!he||lt.test(ue))&&(oe=!1)),xe>1&&(!Me.strong&&he&&(Tt==="*"||!me||lt.test(fe))?Ne=!0:Me.strong==Tt&&me&&(Tt==="*"||!he||lt.test(ue))&&(Ne=!1)),Ne!=null||oe!=null){Ee.highlightFormatting&&(Me.formatting=oe==null?"strong":Ne==null?"em":"strong em"),oe===!0&&(Me.em=Tt),Ne===!0&&(Me.strong=Tt);var $t=vt(Me);return oe===!1&&(Me.em=!1),Ne===!1&&(Me.strong=!1),$t}}else if(Tt===" "&&(Le.eat("*")||Le.eat("_"))){if(Le.peek()===" ")return vt(Me);Le.backUp(1)}if(Ee.strikethrough){if(Tt==="~"&&Le.eatWhile(Tt)){if(Me.strikethrough){Ee.highlightFormatting&&(Me.formatting="strikethrough");var $t=vt(Me);return Me.strikethrough=!1,$t}else if(Le.match(/^[^\s]/,!1))return Me.strikethrough=!0,Ee.highlightFormatting&&(Me.formatting="strikethrough"),vt(Me)}else if(Tt===" "&&Le.match(/^~~/,!0)){if(Le.peek()===" ")return vt(Me);Le.backUp(2)}}if(Ee.emoji&&Tt===":"&&Le.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Me.emoji=!0,Ee.highlightFormatting&&(Me.formatting="emoji");var At=vt(Me);return Me.emoji=!1,At}return Tt===" "&&(Le.match(/^ +$/,!1)?Me.trailingSpace++:Me.trailingSpace&&(Me.trailingSpaceNewLine=!0)),vt(Me)}function Be(Le,Me){var st=Le.next();if(st===">"){Me.f=Me.inline=mt,Ee.highlightFormatting&&(Me.formatting="link");var Ht=vt(Me);return Ht?Ht+=" ":Ht="",Ht+pe.linkInline}return Le.match(/^[^>]+/,!0),pe.linkInline}function xt(Le,Me){if(Le.eatSpace())return null;var st=Le.next();return st==="("||st==="["?(Me.f=Me.inline=Ot(st==="("?")":"]"),Ee.highlightFormatting&&(Me.formatting="link-string"),Me.linkHref=!0,vt(Me)):"error"}var Ve={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ot(Le){return function(Me,st){var Ht=Me.next();if(Ht===Le){st.f=st.inline=mt,Ee.highlightFormatting&&(st.formatting="link-string");var Tt=vt(st);return st.linkHref=!1,Tt}return Me.match(Ve[Le]),st.linkHref=!0,vt(st)}}function nt(Le,Me){return Le.match(/^([^\]\\]|\\.)*\]:/,!1)?(Me.f=wt,Le.next(),Ee.highlightFormatting&&(Me.formatting="link"),Me.linkText=!0,vt(Me)):Dt(Le,Me,mt)}function wt(Le,Me){if(Le.match(/^\]:/,!0)){Me.f=Me.inline=Mt,Ee.highlightFormatting&&(Me.formatting="link");var st=vt(Me);return Me.linkText=!1,st}return Le.match(/^([^\]\\]|\\.)+/,!0),pe.linkText}function Mt(Le,Me){return Le.eatSpace()?null:(Le.match(/^[^\s]+/,!0),Le.peek()===void 0?Me.linkTitle=!0:Le.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Me.f=Me.inline=mt,pe.linkHref+" url")}var at={startState:function(){return{f:Ae,prevLine:{stream:null},thisLine:{stream:null},block:Ae,htmlState:null,indentation:0,inline:mt,text:$e,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(Le){return{f:Le.f,prevLine:Le.prevLine,thisLine:Le.thisLine,block:Le.block,htmlState:Le.htmlState&&E.copyState(Ye,Le.htmlState),indentation:Le.indentation,localMode:Le.localMode,localState:Le.localMode?E.copyState(Le.localMode,Le.localState):null,inline:Le.inline,text:Le.text,formatting:!1,linkText:Le.linkText,linkTitle:Le.linkTitle,linkHref:Le.linkHref,code:Le.code,em:Le.em,strong:Le.strong,strikethrough:Le.strikethrough,emoji:Le.emoji,header:Le.header,setext:Le.setext,hr:Le.hr,taskList:Le.taskList,list:Le.list,listStack:Le.listStack.slice(0),quote:Le.quote,indentedCode:Le.indentedCode,trailingSpace:Le.trailingSpace,trailingSpaceNewLine:Le.trailingSpaceNewLine,md_inside:Le.md_inside,fencedEndRE:Le.fencedEndRE}},token:function(Le,Me){if(Me.formatting=!1,Le!=Me.thisLine.stream){if(Me.header=0,Me.hr=!1,Le.match(/^\s*$/,!0))return Ze(Me),null;if(Me.prevLine=Me.thisLine,Me.thisLine={stream:Le},Me.taskList=!1,Me.trailingSpace=0,Me.trailingSpaceNewLine=!1,!Me.localState&&(Me.f=Me.block,Me.f!=Je)){var st=Le.match(/^\s*/,!0)[0].replace(/\t/g,Xe).length;if(Me.indentation=st,Me.indentationDiff=null,st>0)return null}}return Me.f(Le,Me)},innerMode:function(Le){return Le.block==Je?{state:Le.htmlState,mode:Ye}:Le.localState?{state:Le.localState,mode:Le.localMode}:{state:Le,mode:at}},indent:function(Le,Me,st){return Le.block==Je&&Ye.indent?Ye.indent(Le.htmlState,Me,st):Le.localState&&Le.localMode.indent?Le.localMode.indent(Le.localState,Me,st):E.Pass},blankLine:Ze,getType:vt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return at},"xml"),E.defineMIME("text/markdown","markdown"),E.defineMIME("text/x-markdown","markdown")})},98101:function(An,tn,ne){(function(E){E(ne(89780))})(function(E){"use strict";E.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 ye=0;ye<E.modeInfo.length;ye++){var Ee=E.modeInfo[ye];Ee.mimes&&(Ee.mime=Ee.mimes[0])}E.findModeByMIME=function(Ye){Ye=Ye.toLowerCase();for(var Ce=0;Ce<E.modeInfo.length;Ce++){var Se=E.modeInfo[Ce];if(Se.mime==Ye)return Se;if(Se.mimes){for(var pe=0;pe<Se.mimes.length;pe++)if(Se.mimes[pe]==Ye)return Se}}if(/\+xml$/.test(Ye))return E.findModeByMIME("application/xml");if(/\+json$/.test(Ye))return E.findModeByMIME("application/json")},E.findModeByExtension=function(Ye){Ye=Ye.toLowerCase();for(var Ce=0;Ce<E.modeInfo.length;Ce++){var Se=E.modeInfo[Ce];if(Se.ext){for(var pe=0;pe<Se.ext.length;pe++)if(Se.ext[pe]==Ye)return Se}}},E.findModeByFileName=function(Ye){for(var Ce=0;Ce<E.modeInfo.length;Ce++){var Se=E.modeInfo[Ce];if(Se.file&&Se.file.test(Ye))return Se}var pe=Ye.lastIndexOf("."),be=pe>-1&&Ye.substring(pe+1,Ye.length);if(be)return E.findModeByExtension(be)},E.findModeByName=function(Ye){Ye=Ye.toLowerCase();for(var Ce=0;Ce<E.modeInfo.length;Ce++){var Se=E.modeInfo[Ce];if(Se.name.toLowerCase()==Ye)return Se;if(Se.alias){for(var pe=0;pe<Se.alias.length;pe++)if(Se.alias[pe].toLowerCase()==Ye)return Se}}}})},67549:function(An,tn,ne){(function(E){E(ne(89780))})(function(E){"use strict";E.defineMode("stex",function(ye,Ee){"use strict";function Ye(tt,ze){tt.cmdState.push(ze)}function Ce(tt){return tt.cmdState.length>0?tt.cmdState[tt.cmdState.length-1]:null}function Se(tt){var ze=tt.cmdState.pop();ze&&ze.closeBracket()}function pe(tt){for(var ze=tt.cmdState,We=ze.length-1;We>=0;We--){var lt=ze[We];if(lt.name!="DEFAULT")return lt}return{styleIdentifier:function(){return null}}}function be(tt,ze,We){return function(){this.name=tt,this.bracketNo=0,this.style=ze,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 De={};De.importmodule=be("importmodule","tag",["string","builtin"]),De.documentclass=be("documentclass","tag",["","atom"]),De.usepackage=be("usepackage","tag",["atom"]),De.begin=be("begin","tag",["atom"]),De.end=be("end","tag",["atom"]),De.label=be("label","tag",["atom"]),De.ref=be("ref","tag",["atom"]),De.eqref=be("eqref","tag",["atom"]),De.cite=be("cite","tag",["atom"]),De.bibitem=be("bibitem","tag",["atom"]),De.Bibitem=be("Bibitem","tag",["atom"]),De.RBibitem=be("RBibitem","tag",["atom"]),De.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Pe(tt,ze){tt.f=ze}function et(tt,ze){var We;if(tt.match(/^\\[a-zA-Z@]+/)){var lt=tt.current().slice(1);return We=De.hasOwnProperty(lt)?De[lt]:De.DEFAULT,We=new We,Ye(ze,We),Pe(ze,Ie),We.style}if(tt.match(/^\\[$&%#{}_]/)||tt.match(/^\\[,;!\/\\]/))return"tag";if(tt.match("\\["))return Pe(ze,function(Dt,dt){return Fe(Dt,dt,"\\]")}),"keyword";if(tt.match("\\("))return Pe(ze,function(Dt,dt){return Fe(Dt,dt,"\\)")}),"keyword";if(tt.match("$$"))return Pe(ze,function(Dt,dt){return Fe(Dt,dt,"$$")}),"keyword";if(tt.match("$"))return Pe(ze,function(Dt,dt){return Fe(Dt,dt,"$")}),"keyword";var Xe=tt.next();if(Xe=="%")return tt.skipToEnd(),"comment";if(Xe=="}"||Xe=="]"){if(We=Ce(ze),We)We.closeBracket(Xe),Pe(ze,Ie);else return"error";return"bracket"}else return Xe=="{"||Xe=="["?(We=De.DEFAULT,We=new We,Ye(ze,We),"bracket"):/\d/.test(Xe)?(tt.eatWhile(/[\w.%]/),"atom"):(tt.eatWhile(/[\w\-_]/),We=pe(ze),We.name=="begin"&&(We.argument=tt.current()),We.styleIdentifier())}function Fe(tt,ze,We){if(tt.eatSpace())return null;if(We&&tt.match(We))return Pe(ze,et),"keyword";if(tt.match(/^\\[a-zA-Z@]+/))return"tag";if(tt.match(/^[a-zA-Z]+/))return"variable-2";if(tt.match(/^\\[$&%#{}_]/)||tt.match(/^\\[,;!\/]/)||tt.match(/^[\^_&]/))return"tag";if(tt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(tt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var lt=tt.next();return lt=="{"||lt=="}"||lt=="["||lt=="]"||lt=="("||lt==")"?"bracket":lt=="%"?(tt.skipToEnd(),"comment"):"error"}function Ie(tt,ze){var We=tt.peek(),lt;return We=="{"||We=="["?(lt=Ce(ze),lt.openBracket(We),tt.eat(We),Pe(ze,et),"bracket"):/[ \t\r]/.test(We)?(tt.eat(We),null):(Pe(ze,et),Se(ze),et(tt,ze))}return{startState:function(){var tt=Ee.inMathMode?function(ze,We){return Fe(ze,We)}:et;return{cmdState:[],f:tt}},copyState:function(tt){return{cmdState:tt.cmdState.slice(),f:tt.f}},token:function(tt,ze){return ze.f(tt,ze)},blankLine:function(tt){tt.f=et,tt.cmdState.length=0},lineComment:"%"}}),E.defineMIME("text/x-stex","stex"),E.defineMIME("text/x-latex","stex")})},15525:function(An,tn,ne){(function(E){E(ne(89780))})(function(E){"use strict";var ye={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},Ee={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};E.defineMode("xml",function(Ye,Ce){var Se=Ye.indentUnit,pe={},be=Ce.htmlMode?ye:Ee;for(var De in be)pe[De]=be[De];for(var De in Ce)pe[De]=Ce[De];var Pe,et;function Fe(Be,xt){function Ve(wt){return xt.tokenize=wt,wt(Be,xt)}var Ot=Be.next();if(Ot=="<")return Be.eat("!")?Be.eat("[")?Be.match("CDATA[")?Ve(ze("atom","]]>")):null:Be.match("--")?Ve(ze("comment","-->")):Be.match("DOCTYPE",!0,!0)?(Be.eatWhile(/[\w\._\-]/),Ve(We(1))):null:Be.eat("?")?(Be.eatWhile(/[\w\._\-]/),xt.tokenize=ze("meta","?>"),"meta"):(Pe=Be.eat("/")?"closeTag":"openTag",xt.tokenize=Ie,"tag bracket");if(Ot=="&"){var nt;return Be.eat("#")?Be.eat("x")?nt=Be.eatWhile(/[a-fA-F\d]/)&&Be.eat(";"):nt=Be.eatWhile(/[\d]/)&&Be.eat(";"):nt=Be.eatWhile(/[\w\.\-:]/)&&Be.eat(";"),nt?"atom":"error"}else return Be.eatWhile(/[^&<]/),null}Fe.isInText=!0;function Ie(Be,xt){var Ve=Be.next();if(Ve==">"||Ve=="/"&&Be.eat(">"))return xt.tokenize=Fe,Pe=Ve==">"?"endTag":"selfcloseTag","tag bracket";if(Ve=="=")return Pe="equals",null;if(Ve=="<"){xt.tokenize=Fe,xt.state=dt,xt.tagName=xt.tagStart=null;var Ot=xt.tokenize(Be,xt);return Ot?Ot+" tag error":"tag error"}else return/[\'\"]/.test(Ve)?(xt.tokenize=tt(Ve),xt.stringStartCol=Be.column(),xt.tokenize(Be,xt)):(Be.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function tt(Be){var xt=function(Ve,Ot){for(;!Ve.eol();)if(Ve.next()==Be){Ot.tokenize=Ie;break}return"string"};return xt.isInAttribute=!0,xt}function ze(Be,xt){return function(Ve,Ot){for(;!Ve.eol();){if(Ve.match(xt)){Ot.tokenize=Fe;break}Ve.next()}return Be}}function We(Be){return function(xt,Ve){for(var Ot;(Ot=xt.next())!=null;){if(Ot=="<")return Ve.tokenize=We(Be+1),Ve.tokenize(xt,Ve);if(Ot==">")if(Be==1){Ve.tokenize=Fe;break}else return Ve.tokenize=We(Be-1),Ve.tokenize(xt,Ve)}return"meta"}}function lt(Be,xt,Ve){this.prev=Be.context,this.tagName=xt,this.indent=Be.indented,this.startOfLine=Ve,(pe.doNotIndent.hasOwnProperty(xt)||Be.context&&Be.context.noIndent)&&(this.noIndent=!0)}function Xe(Be){Be.context&&(Be.context=Be.context.prev)}function Dt(Be,xt){for(var Ve;;){if(!Be.context||(Ve=Be.context.tagName,!pe.contextGrabbers.hasOwnProperty(Ve)||!pe.contextGrabbers[Ve].hasOwnProperty(xt)))return;Xe(Be)}}function dt(Be,xt,Ve){return Be=="openTag"?(Ve.tagStart=xt.column(),Qe):Be=="closeTag"?Ze:dt}function Qe(Be,xt,Ve){return Be=="word"?(Ve.tagName=xt.current(),et="tag",Re):pe.allowMissingTagName&&Be=="endTag"?(et="tag bracket",Re(Be,xt,Ve)):(et="error",Qe)}function Ze(Be,xt,Ve){if(Be=="word"){var Ot=xt.current();return Ve.context&&Ve.context.tagName!=Ot&&pe.implicitlyClosed.hasOwnProperty(Ve.context.tagName)&&Xe(Ve),Ve.context&&Ve.context.tagName==Ot||pe.matchClosing===!1?(et="tag",Ae):(et="tag error",Je)}else return pe.allowMissingTagName&&Be=="endTag"?(et="tag bracket",Ae(Be,xt,Ve)):(et="error",Je)}function Ae(Be,xt,Ve){return Be!="endTag"?(et="error",Ae):(Xe(Ve),dt)}function Je(Be,xt,Ve){return et="error",Ae(Be,xt,Ve)}function Re(Be,xt,Ve){if(Be=="word")return et="attribute",vt;if(Be=="endTag"||Be=="selfcloseTag"){var Ot=Ve.tagName,nt=Ve.tagStart;return Ve.tagName=Ve.tagStart=null,Be=="selfcloseTag"||pe.autoSelfClosers.hasOwnProperty(Ot)?Dt(Ve,Ot):(Dt(Ve,Ot),Ve.context=new lt(Ve,Ot,nt==Ve.indented)),dt}return et="error",Re}function vt(Be,xt,Ve){return Be=="equals"?$e:(pe.allowMissing||(et="error"),Re(Be,xt,Ve))}function $e(Be,xt,Ve){return Be=="string"?mt:Be=="word"&&pe.allowUnquoted?(et="string",Re):(et="error",Re(Be,xt,Ve))}function mt(Be,xt,Ve){return Be=="string"?mt:Re(Be,xt,Ve)}return{startState:function(Be){var xt={tokenize:Fe,state:dt,indented:Be||0,tagName:null,tagStart:null,context:null};return Be!=null&&(xt.baseIndent=Be),xt},token:function(Be,xt){if(!xt.tagName&&Be.sol()&&(xt.indented=Be.indentation()),Be.eatSpace())return null;Pe=null;var Ve=xt.tokenize(Be,xt);return(Ve||Pe)&&Ve!="comment"&&(et=null,xt.state=xt.state(Pe||Ve,Be,xt),et&&(Ve=et=="error"?Ve+" error":et)),Ve},indent:function(Be,xt,Ve){var Ot=Be.context;if(Be.tokenize.isInAttribute)return Be.tagStart==Be.indented?Be.stringStartCol+1:Be.indented+Se;if(Ot&&Ot.noIndent)return E.Pass;if(Be.tokenize!=Ie&&Be.tokenize!=Fe)return Ve?Ve.match(/^(\s*)/)[0].length:0;if(Be.tagName)return pe.multilineTagIndentPastTag!==!1?Be.tagStart+Be.tagName.length+2:Be.tagStart+Se*(pe.multilineTagIndentFactor||1);if(pe.alignCDATA&&/<!\[CDATA\[/.test(xt))return 0;var nt=xt&&/^<(\/)?([\w_:\.-]*)/.exec(xt);if(nt&&nt[1])for(;Ot;)if(Ot.tagName==nt[2]){Ot=Ot.prev;break}else if(pe.implicitlyClosed.hasOwnProperty(Ot.tagName))Ot=Ot.prev;else break;else if(nt)for(;Ot;){var wt=pe.contextGrabbers[Ot.tagName];if(wt&&wt.hasOwnProperty(nt[2]))Ot=Ot.prev;else break}for(;Ot&&Ot.prev&&!Ot.startOfLine;)Ot=Ot.prev;return Ot?Ot.indent+Se:Be.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:pe.htmlMode?"html":"xml",helperType:pe.htmlMode?"html":"xml",skipAttribute:function(Be){Be.state==$e&&(Be.state=Re)},xmlCurrentTag:function(Be){return Be.tagName?{name:Be.tagName,close:Be.type=="closeTag"}:null},xmlCurrentContext:function(Be){for(var xt=[],Ve=Be.context;Ve;Ve=Ve.prev)Ve.tagName&&xt.push(Ve.tagName);return xt.reverse()}}}),E.defineMIME("text/xml","xml"),E.defineMIME("application/xml","xml"),E.mimeModes.hasOwnProperty("text/html")||E.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(An,tn,ne){var E,ye;(function(Ee,Ye){An.exports=Ye(Ee)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ne.g!="undefined"?ne.g:this,function(Ee){"use strict";Ee=Ee||{};var Ye=Ee.Base64,Ce="2.6.4",Se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pe=function(Ve){for(var Ot={},nt=0,wt=Ve.length;nt<wt;nt++)Ot[Ve.charAt(nt)]=nt;return Ot}(Se),be=String.fromCharCode,De=function(Ve){if(Ve.length<2){var Ot=Ve.charCodeAt(0);return Ot<128?Ve:Ot<2048?be(192|Ot>>>6)+be(128|Ot&63):be(224|Ot>>>12&15)+be(128|Ot>>>6&63)+be(128|Ot&63)}else{var Ot=65536+(Ve.charCodeAt(0)-55296)*1024+(Ve.charCodeAt(1)-56320);return be(240|Ot>>>18&7)+be(128|Ot>>>12&63)+be(128|Ot>>>6&63)+be(128|Ot&63)}},Pe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,et=function(Ve){return Ve.replace(Pe,De)},Fe=function(Ve){var Ot=[0,2,1][Ve.length%3],nt=Ve.charCodeAt(0)<<16|(Ve.length>1?Ve.charCodeAt(1):0)<<8|(Ve.length>2?Ve.charCodeAt(2):0),wt=[Se.charAt(nt>>>18),Se.charAt(nt>>>12&63),Ot>=2?"=":Se.charAt(nt>>>6&63),Ot>=1?"=":Se.charAt(nt&63)];return wt.join("")},Ie=Ee.btoa&&typeof Ee.btoa=="function"?function(Ve){return Ee.btoa(Ve)}:function(Ve){if(Ve.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ve.replace(/[\s\S]{1,3}/g,Fe)},tt=function(Ve){return Ie(et(String(Ve)))},ze=function(Ve){return Ve.replace(/[+\/]/g,function(Ot){return Ot=="+"?"-":"_"}).replace(/=/g,"")},We=function(Ve,Ot){return Ot?ze(tt(Ve)):tt(Ve)},lt=function(Ve){return We(Ve,!0)},Xe;Ee.Uint8Array&&(Xe=function(Ve,Ot){for(var nt="",wt=0,Mt=Ve.length;wt<Mt;wt+=3){var at=Ve[wt],Le=Ve[wt+1],Me=Ve[wt+2],st=at<<16|Le<<8|Me;nt+=Se.charAt(st>>>18)+Se.charAt(st>>>12&63)+(typeof Le!="undefined"?Se.charAt(st>>>6&63):"=")+(typeof Me!="undefined"?Se.charAt(st&63):"=")}return Ot?ze(nt):nt});var Dt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,dt=function(Ve){switch(Ve.length){case 4:var Ot=(7&Ve.charCodeAt(0))<<18|(63&Ve.charCodeAt(1))<<12|(63&Ve.charCodeAt(2))<<6|63&Ve.charCodeAt(3),nt=Ot-65536;return be((nt>>>10)+55296)+be((nt&1023)+56320);case 3:return be((15&Ve.charCodeAt(0))<<12|(63&Ve.charCodeAt(1))<<6|63&Ve.charCodeAt(2));default:return be((31&Ve.charCodeAt(0))<<6|63&Ve.charCodeAt(1))}},Qe=function(Ve){return Ve.replace(Dt,dt)},Ze=function(Ve){var Ot=Ve.length,nt=Ot%4,wt=(Ot>0?pe[Ve.charAt(0)]<<18:0)|(Ot>1?pe[Ve.charAt(1)]<<12:0)|(Ot>2?pe[Ve.charAt(2)]<<6:0)|(Ot>3?pe[Ve.charAt(3)]:0),Mt=[be(wt>>>16),be(wt>>>8&255),be(wt&255)];return Mt.length-=[0,0,2,1][nt],Mt.join("")},Ae=Ee.atob&&typeof Ee.atob=="function"?function(Ve){return Ee.atob(Ve)}:function(Ve){return Ve.replace(/\S{1,4}/g,Ze)},Je=function(Ve){return Ae(String(Ve).replace(/[^A-Za-z0-9\+\/]/g,""))},Re=function(Ve){return Qe(Ae(Ve))},vt=function(Ve){return String(Ve).replace(/[-_]/g,function(Ot){return Ot=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},$e=function(Ve){return Re(vt(Ve))},mt;Ee.Uint8Array&&(mt=function(Ve){return Uint8Array.from(Je(vt(Ve)),function(Ot){return Ot.charCodeAt(0)})});var Be=function(){var Ve=Ee.Base64;return Ee.Base64=Ye,Ve};if(Ee.Base64={VERSION:Ce,atob:Je,btoa:Ie,fromBase64:$e,toBase64:We,utob:et,encode:We,encodeURI:lt,btou:Qe,decode:$e,noConflict:Be,fromUint8Array:Xe,toUint8Array:mt},typeof Object.defineProperty=="function"){var xt=function(Ve){return{value:Ve,enumerable:!1,writable:!0,configurable:!0}};Ee.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",xt(function(){return $e(this)})),Object.defineProperty(String.prototype,"toBase64",xt(function(Ve){return We(this,Ve)})),Object.defineProperty(String.prototype,"toBase64URI",xt(function(){return We(this,!0)}))}}return Ee.Meteor&&(Base64=Ee.Base64),An.exports?An.exports.Base64=Ee.Base64:(E=[],ye=function(){return Ee.Base64}.apply(tn,E),ye!==void 0&&(An.exports=ye)),{Base64:Ee.Base64}})},2859:function(An,tn,ne){"use strict";ne.d(tn,{hP:function(){return ln}});var E=function(xe,fe){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,he){ue.__proto__=he}||function(ue,he){for(var me in he)Object.prototype.hasOwnProperty.call(he,me)&&(ue[me]=he[me])})(xe,fe)};function ye(xe,fe){function ue(){this.constructor=xe}E(xe,fe),xe.prototype=fe===null?Object.create(fe):(ue.prototype=fe.prototype,new ue)}function Ee(xe,fe,ue,he){return new(ue||(ue=Promise))(function(me,oe){function Ne(je){try{Ge(he.next(je))}catch(Pt){oe(Pt)}}function At(je){try{Ge(he.throw(je))}catch(Pt){oe(Pt)}}function Ge(je){var Pt;je.done?me(je.value):(Pt=je.value,Pt instanceof ue?Pt:new ue(function(Et){Et(Pt)})).then(Ne,At)}Ge((he=he.apply(xe,fe||[])).next())})}function Ye(xe,fe){var ue,he,me,oe,Ne={label:0,sent:function(){if(1&me[0])throw me[1];return me[1]},trys:[],ops:[]};return oe={next:At(0),throw:At(1),return:At(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function At(Ge){return function(je){return function(Pt){if(ue)throw new TypeError("Generator is already executing.");for(;Ne;)try{if(ue=1,he&&(me=2&Pt[0]?he.return:Pt[0]?he.throw||((me=he.return)&&me.call(he),0):he.next)&&!(me=me.call(he,Pt[1])).done)return me;switch(he=0,me&&(Pt=[2&Pt[0],me.value]),Pt[0]){case 0:case 1:me=Pt;break;case 4:return Ne.label++,{value:Pt[1],done:!1};case 5:Ne.label++,he=Pt[1],Pt=[0];continue;case 7:Pt=Ne.ops.pop(),Ne.trys.pop();continue;default:if(me=Ne.trys,!((me=me.length>0&&me[me.length-1])||Pt[0]!==6&&Pt[0]!==2)){Ne=0;continue}if(Pt[0]===3&&(!me||Pt[1]>me[0]&&Pt[1]<me[3])){Ne.label=Pt[1];break}if(Pt[0]===6&&Ne.label<me[1]){Ne.label=me[1],me=Pt;break}if(me&&Ne.label<me[2]){Ne.label=me[2],Ne.ops.push(Pt);break}me[2]&&Ne.ops.pop(),Ne.trys.pop();continue}Pt=fe.call(xe,Ne)}catch(Et){Pt=[6,Et],he=0}finally{ue=me=0}if(5&Pt[0])throw Pt[1];return{value:Pt[0]?Pt[1]:void 0,done:!0}}([Ge,je])}}}function Ce(){for(var xe=0,fe=0,ue=arguments.length;fe<ue;fe++)xe+=arguments[fe].length;var he=Array(xe),me=0;for(fe=0;fe<ue;fe++)for(var oe=arguments[fe],Ne=0,At=oe.length;Ne<At;Ne++,me++)he[me]=oe[Ne];return he}var Se=function(){function xe(){}return xe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},xe.setAttributes=function(fe,ue){for(var he=0,me=ue;he<me.length;he++){var oe=me[he],Ne=oe[0],At=oe[1];fe.setAttribute(Ne,At)}},xe.createRect=function(fe,ue,he){var me=document.createElementNS("http://www.w3.org/2000/svg","rect");return me.setAttribute("width",fe.toString()),me.setAttribute("height",ue.toString()),he&&xe.setAttributes(me,he),me},xe.createLine=function(fe,ue,he,me,oe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","line");return Ne.setAttribute("x1",fe.toString()),Ne.setAttribute("y1",ue.toString()),Ne.setAttribute("x2",he.toString()),Ne.setAttribute("y2",me.toString()),oe&&xe.setAttributes(Ne,oe),Ne},xe.createPolygon=function(fe,ue){var he=document.createElementNS("http://www.w3.org/2000/svg","polygon");return he.setAttribute("points",fe),ue&&xe.setAttributes(he,ue),he},xe.createCircle=function(fe,ue){var he=document.createElementNS("http://www.w3.org/2000/svg","circle");return he.setAttribute("cx",(fe/2).toString()),he.setAttribute("cy",(fe/2).toString()),he.setAttribute("r",fe.toString()),ue&&xe.setAttributes(he,ue),he},xe.createEllipse=function(fe,ue,he){var me=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return me.setAttribute("cx",(fe/2).toString()),me.setAttribute("cy",(ue/2).toString()),me.setAttribute("rx",(fe/2).toString()),me.setAttribute("ry",(ue/2).toString()),he&&xe.setAttributes(me,he),me},xe.createGroup=function(fe){var ue=document.createElementNS("http://www.w3.org/2000/svg","g");return fe&&xe.setAttributes(ue,fe),ue},xe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},xe.createMarker=function(fe,ue,he,me,oe,Ne,At){var Ge=document.createElementNS("http://www.w3.org/2000/svg","marker");return xe.setAttributes(Ge,[["id",fe],["orient",ue],["markerWidth",he.toString()],["markerHeight",me.toString()],["refX",oe.toString()],["refY",Ne.toString()]]),Ge.appendChild(At),Ge},xe.createText=function(fe){var ue=document.createElementNS("http://www.w3.org/2000/svg","text");return ue.setAttribute("x","0"),ue.setAttribute("y","0"),fe&&xe.setAttributes(ue,fe),ue},xe.createTSpan=function(fe,ue){var he=document.createElementNS("http://www.w3.org/2000/svg","tspan");return he.textContent=fe,ue&&xe.setAttributes(he,ue),he},xe.createImage=function(fe){var ue=document.createElementNS("http://www.w3.org/2000/svg","image");return fe&&xe.setAttributes(ue,fe),ue},xe.createPoint=function(fe,ue){var he=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return he.x=fe,he.y=ue,he},xe.createPath=function(fe,ue){var he=document.createElementNS("http://www.w3.org/2000/svg","path");return he.setAttribute("d",fe),ue&&xe.setAttributes(he,ue),he},xe}(),pe=function(){function xe(){}return xe.addKey=function(fe){xe.key=fe},Object.defineProperty(xe,"isLicensed",{get:function(){return!!xe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(xe.key)},enumerable:!1,configurable:!0}),xe}(),be=function(){function xe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return xe.prototype.rasterize=function(fe,ue,he){var me=this;return new Promise(function(oe){var Ne=he!==void 0?he:document.createElement("canvas");fe===null&&(me.markersOnly=!0,me.naturalSize=!1);var At=document.createElementNS("http://www.w3.org/2000/svg","svg");At.setAttribute("xmlns","http://www.w3.org/2000/svg"),At.setAttribute("width",ue.width.baseVal.valueAsString),At.setAttribute("height",ue.height.baseVal.valueAsString),At.setAttribute("viewBox","0 0 "+ue.viewBox.baseVal.width.toString()+" "+ue.viewBox.baseVal.height.toString()),At.innerHTML=ue.innerHTML,me.naturalSize===!0?(At.width.baseVal.value=fe.naturalWidth,At.height.baseVal.value=fe.naturalHeight):me.width!==void 0&&me.height!==void 0&&(At.width.baseVal.value=me.width,At.height.baseVal.value=me.height),Ne.width=At.width.baseVal.value,Ne.height=At.height.baseVal.value;var Ge=At.outerHTML,je=Ne.getContext("2d");me.markersOnly!==!0&&je.drawImage(fe,0,0,Ne.width,Ne.height);var Pt=window.URL,Et=new Image(Ne.width,Ne.height);Et.setAttribute("crossOrigin","anonymous");var ht=new Blob([Ge],{type:"image/svg+xml"}),Kt=Pt.createObjectURL(ht);Et.onload=function(){je.drawImage(Et,0,0),Pt.revokeObjectURL(Kt);var vn=Ne.toDataURL(me.imageType,me.imageQuality);oe(vn)},Et.src=Kt})},xe}(),De=function(){},Pe=function(){function xe(fe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+fe+"_"}return Object.defineProperty(xe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(xe.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(xe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),xe.prototype.addClass=function(fe){return this.styleSheet===void 0&&this.addStyleSheet(),fe.name=""+this.classNamePrefix+fe.localName,this.classes.push(fe),this.styleSheet.sheet.insertRule("."+fe.name+" {"+fe.style+"}",this.styleSheet.sheet.cssRules.length),fe},xe.prototype.addRule=function(fe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(fe),this.styleSheet.sheet.insertRule(fe.selector+" {"+fe.style+"}",this.styleSheet.sheet.cssRules.length)},xe.prototype.addStyleSheet=function(){var fe;this.styleSheet=document.createElement("style"),((fe=this.styleSheetRoot)!==null&&fe!==void 0?fe:document.head).appendChild(this.styleSheet),this.addRule(new et("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new et("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new et("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Fe("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Fe("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},xe.prototype.removeStyleSheet=function(){var fe;this.styleSheet&&(((fe=this.styleSheetRoot)!==null&&fe!==void 0?fe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},xe}(),et=function(xe,fe){this.selector=xe,this.style=fe},Fe=function(xe,fe){this.localName=xe,this.style=fe},Ie=function(){function xe(fe,ue,he,me,oe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=fe,this.displayMode=ue,this.markerItems=he,this.uiStyleSettings=me,this.styles=oe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return xe.prototype.show=function(fe){var ue=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=fe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var he=document.createElement("div");he.className=this.toolbarBlockStyleClass.name,he.style.whiteSpace="nowrap",this.uiContainer.appendChild(he),this.addActionButton(he,'<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(he,'<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(he,'<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(he,'<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(he,'<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(he,'<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(he,'<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(he,'<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(oe){var Ne=document.createElement("div");Ne.className=""+ue.toolbarButtonStyleClass.name,Ne.setAttribute("data-type-name",oe.typeName),Ne.innerHTML=oe.icon,Ne.addEventListener("click",function(){ue.markerToolbarButtonClicked(Ne,oe)}),ue.buttons.push(Ne),ue.markerButtons.push(Ne)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var me=document.createElement("div");me.className=this.toolbarBlockStyleClass.name,me.style.whiteSpace="nowrap",me.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(me),this.addActionButton(me,'<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(me,'<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()},xe.prototype.addButtonClickListener=function(fe){this.buttonClickListeners.push(fe)},xe.prototype.removeButtonClickListener=function(fe){this.buttonClickListeners.indexOf(fe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(fe),1)},xe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},xe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var fe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ue=0;ue<this.markerButtons.length;ue++)ue<fe||ue===fe&&this.markerButtons.length-1===fe?this.markerButtonBlock.appendChild(this.markerButtons[ue]):(ue===fe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ue]))}},xe.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")},xe.prototype.resetButtonStyles=function(){var fe=this;this.buttons.forEach(function(ue){ue.className=ue.className.replace(fe.uiStyleSettings.toolbarButtonStyleColorsClassName?fe.uiStyleSettings.toolbarButtonStyleColorsClassName:fe.toolbarButtonStyleColorsClass.name,"").trim(),ue.className=ue.className.replace(fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:fe.toolbarActiveButtonStyleColorsClass.name,"").trim(),ue.className+=" "+(fe.uiStyleSettings.toolbarButtonStyleColorsClassName?fe.uiStyleSettings.toolbarButtonStyleColorsClassName:fe.toolbarButtonStyleColorsClass.name)})},xe.prototype.addActionButton=function(fe,ue,he){var me=this,oe=document.createElement("div");switch(oe.className=""+this.toolbarButtonStyleClass.name,oe.innerHTML=ue,oe.setAttribute("data-action",he),oe.addEventListener("click",function(){me.actionToolbarButtonClicked(oe,he)}),he){case"select":oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":oe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":oe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":oe.style.fill=this.uiStyleSettings.closeButtonColor}fe.appendChild(oe),this.buttons.push(oe)},xe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Fe("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Fe("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Fe("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Fe("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Fe("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var fe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Fe("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*fe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*fe)+`px;
|
|
|
padding: `+fe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Fe("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Fe("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new et("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new et("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},xe.prototype.markerToolbarButtonClicked=function(fe,ue){this.setActiveButton(fe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(he){return he("marker",ue)}),this.markerButtonOverflowBlock.style.display="none"},xe.prototype.actionToolbarButtonClicked=function(fe,ue){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(he){return he("action",ue)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},xe.prototype.setActiveButton=function(fe){this.resetButtonStyles(),fe.className=fe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),fe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},xe.prototype.setActiveMarkerButton=function(fe){var ue=this.markerButtons.find(function(he){return he.getAttribute("data-type-name")===fe});ue&&this.setActiveButton(ue)},xe.prototype.setCurrentMarker=function(fe){var ue=this;this.currentMarker=fe,this.buttons.filter(function(he){return/delete|notes/.test(he.getAttribute("data-action"))}).forEach(function(he){ue.currentMarker===void 0?(he.style.fillOpacity="0.4",he.style.pointerEvents="none"):(he.style.fillOpacity="1",he.style.pointerEvents="all")})},xe}(),tt=function(){function xe(fe,ue,he,me){this.panels=[],this.panelButtons=[],this.markerjsContainer=fe,this.displayMode=ue,this.uiStyleSettings=he,this.styles=me,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return xe.prototype.addStyles=function(){var fe;this.toolboxStyleClass=this.styles.addClass(new Fe("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Fe("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ue=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Fe("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Fe("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Fe("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Fe("toolbox-panel-row_colors",`
|
|
|
background-color: `+((fe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&fe!==void 0?fe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Fe("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 Fe("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Fe("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new et("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new et("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},xe.prototype.show=function(fe){var ue;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=fe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ue=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ue!==void 0?ue:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},xe.prototype.setPanelButtons=function(fe){var ue,he,me=this;this.panels=fe,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+" "+((he=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&he!==void 0?he:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(oe){var Ne;oe.uiStyleSettings=me.uiStyleSettings;var At=document.createElement("div");At.className=me.toolboxButtonStyleClass.name+" "+((Ne=me.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ne!==void 0?Ne:me.toolboxButtonStyleColorsClass.name),At.innerHTML=oe.icon,At.title=oe.title,At.addEventListener("click",function(){me.panelButtonClick(oe)}),me.panelButtons.push(At),me.buttonRow.appendChild(At)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},xe.prototype.panelButtonClick=function(fe){var ue=this,he=-1;if(fe!==this.activePanel){he=this.panels.indexOf(fe),this.panelRow.innerHTML="";var me=fe.getUi();me.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(me),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=fe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ue.displayMode==="inline"?ue.panelRow.style.display="none":ue.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(oe,Ne){var At,Ge;oe.className=ue.toolboxButtonStyleClass.name+" "+(Ne===he?""+((At=ue.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&At!==void 0?At:ue.toolboxActiveButtonStyleColorsClass.name):""+((Ge=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ge!==void 0?Ge:ue.toolboxButtonStyleColorsClass.name))})},xe}(),ze=function(xe,fe){this.title=xe,this.icon=fe},We=function(xe){function fe(ue,he,me,oe){var Ne=xe.call(this,ue,oe||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Ne.colors=[],Ne.addTransparent=!1,Ne.colorBoxes=[],Ne.colors=he,Ne.currentColor=me,Ne.setCurrentColor=Ne.setCurrentColor.bind(Ne),Ne.getColorBox=Ne.getColorBox.bind(Ne),Ne}return ye(fe,xe),fe.prototype.getUi=function(){var ue=this,he=document.createElement("div");return he.style.overflow="hidden",he.style.whiteSpace="nowrap",this.colors.forEach(function(me){var oe=ue.getColorBox(me);he.appendChild(oe),ue.colorBoxes.push(oe)}),he},fe.prototype.getColorBox=function(ue){var he=this,me=this.uiStyleSettings.toolbarHeight/4,oe=this.uiStyleSettings.toolbarHeight-me,Ne=document.createElement("div");Ne.style.display="inline-block",Ne.style.boxSizing="content-box",Ne.style.width=oe-2+"px",Ne.style.height=oe-2+"px",Ne.style.padding="1px",Ne.style.marginRight="2px",Ne.style.marginBottom="2px",Ne.style.borderWidth="2px",Ne.style.borderStyle="solid",Ne.style.borderRadius=(oe+2)/2+"px",Ne.style.borderColor=ue===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ne.addEventListener("click",function(){he.setCurrentColor(ue,Ne)});var At=document.createElement("div");return At.style.display="inline-block",At.style.width=oe-2+"px",At.style.height=oe-2+"px",At.style.backgroundColor=ue,At.style.borderRadius=oe/2+"px",ue==="transparent"&&(At.style.fill=this.uiStyleSettings.toolboxAccentColor,At.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),Ne.appendChild(At),Ne},fe.prototype.setCurrentColor=function(ue,he){var me=this;this.currentColor=ue,this.colorBoxes.forEach(function(oe){oe.style.borderColor=oe===he?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ue)},fe}(ze),lt=function(){function xe(fe,ue,he){this._state="new",this._isSelected=!1,this._container=fe,this._overlayContainer=ue,this.globalSettings=he,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(xe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),xe.prototype.ownsTarget=function(fe){return!1},Object.defineProperty(xe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),xe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},xe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},xe.prototype.pointerDown=function(fe,ue){},xe.prototype.dblClick=function(fe,ue){},xe.prototype.manipulate=function(fe){},xe.prototype.pointerUp=function(fe){this.stateChanged()},xe.prototype.dispose=function(){},xe.prototype.addMarkerVisualToContainer=function(fe){this.container.childNodes.length>0?this.container.insertBefore(fe,this.container.childNodes[0]):this.container.appendChild(fe)},xe.prototype.getState=function(){return{typeName:xe.typeName,state:this.state,notes:this.notes}},xe.prototype.restoreState=function(fe){this._state=fe.state,this.notes=fe.notes},xe.prototype.scale=function(fe,ue){},xe.prototype.colorChanged=function(fe){this.onColorChanged&&this.onColorChanged(fe),this.stateChanged()},xe.prototype.fillColorChanged=function(fe){this.onFillColorChanged&&this.onFillColorChanged(fe),this.stateChanged()},xe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var fe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),fe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(fe)&&this.onStateChanged(this)}},xe.typeName="MarkerBase",xe}(),Xe=function(){function xe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return xe.prototype.findGripByVisual=function(fe){return this.topLeft.ownsTarget(fe)?this.topLeft:this.topCenter.ownsTarget(fe)?this.topCenter:this.topRight.ownsTarget(fe)?this.topRight:this.centerLeft.ownsTarget(fe)?this.centerLeft:this.centerRight.ownsTarget(fe)?this.centerRight:this.bottomLeft.ownsTarget(fe)?this.bottomLeft:this.bottomCenter.ownsTarget(fe)?this.bottomCenter:this.bottomRight.ownsTarget(fe)?this.bottomRight:void 0},xe}(),Dt=function(){function xe(){this.GRIP_SIZE=10,this.visual=Se.createGroup(),this.visual.appendChild(Se.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Se.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return xe.prototype.ownsTarget=function(fe){return fe===this.visual||fe===this.visual.childNodes[0]||fe===this.visual.childNodes[1]},xe}(),dt=function(){function xe(){}return xe.toITransformMatrix=function(fe){return{a:fe.a,b:fe.b,c:fe.c,d:fe.d,e:fe.e,f:fe.f}},xe.toSVGMatrix=function(fe,ue){return fe.a=ue.a,fe.b=ue.b,fe.c=ue.c,fe.d=ue.d,fe.e=ue.e,fe.f=ue.f,fe},xe}(),Qe=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.left=0,oe.top=0,oe.width=0,oe.height=0,oe.defaultSize={x:50,y:20},oe.offsetX=0,oe.offsetY=0,oe.rotationAngle=0,oe.CB_DISTANCE=10,oe._suppressMarkerCreateEvent=!1,oe.container.transform.baseVal.appendItem(Se.createTransform()),oe.setupControlBox(),oe}return ye(fe,xe),Object.defineProperty(fe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"visual",{get:function(){return this._visual},set:function(ue){this._visual=ue;var he=Se.createTransform();this._visual.transform.baseVal.appendItem(he)},enumerable:!1,configurable:!0}),fe.prototype.ownsTarget=function(ue){return!!xe.prototype.ownsTarget.call(this,ue)||!!(this.controlGrips.findGripByVisual(ue)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ue))},fe.prototype.pointerDown=function(ue,he){xe.prototype.pointerDown.call(this,ue,he),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 me=this.unrotatePoint(ue);if(this.manipulationStartX=me.x,this.manipulationStartY=me.y,this.offsetX=me.x-this.left,this.offsetY=me.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(he),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(he)){this.activeGrip=this.rotatorGrip;var oe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=oe.x-this.width/2,this.top=oe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ne=this.container.transform.baseVal.getItem(0);Ne.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ne,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},fe.prototype.pointerUp=function(ue){var he=this.state;xe.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",he==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},fe.prototype.moveVisual=function(ue){this.visual.style.transform="translate("+ue.x+"px, "+ue.y+"px)"},fe.prototype.manipulate=function(ue){var he=this.unrotatePoint(ue);this.state==="creating"?this.resize(ue):this.state==="move"?(this.left=this.manipulationStartLeft+(he.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(he.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(he):this.state==="rotate"&&this.rotate(ue)},fe.prototype.resize=function(ue){var he=this.manipulationStartLeft,me=this.manipulationStartWidth,oe=this.manipulationStartTop,Ne=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:he=this.manipulationStartLeft+ue.x-this.manipulationStartX,me=this.manipulationStartWidth+this.manipulationStartLeft-he;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:me=this.manipulationStartWidth+ue.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:oe=this.manipulationStartTop+ue.y-this.manipulationStartY,Ne=this.manipulationStartHeight+this.manipulationStartTop-oe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ne=this.manipulationStartHeight+ue.y-this.manipulationStartY}me>=0?(this.left=he,this.width=me):(this.left=he+me,this.width=-me),Ne>=0?(this.top=oe,this.height=Ne):(this.top=oe+Ne,this.height=-Ne),this.setSize()},fe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},fe.prototype.rotate=function(ue){if(Math.abs(ue.x-this.centerX)>.1){var he=Math.sign(ue.x-this.centerX);this.rotationAngle=180*Math.atan((ue.y-this.centerY)/(ue.x-this.centerX))/Math.PI+90*he,this.applyRotation()}},fe.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)},fe.prototype.rotatePoint=function(ue){if(this.rotationAngle===0)return ue;var he=this.container.getCTM(),me=Se.createPoint(ue.x,ue.y);return{x:(me=me.matrixTransform(he)).x,y:me.y}},fe.prototype.unrotatePoint=function(ue){if(this.rotationAngle===0)return ue;var he=this.container.getCTM();he=he.inverse();var me=Se.createPoint(ue.x,ue.y);return{x:(me=me.matrixTransform(he)).x,y:me.y}},fe.prototype.select=function(){xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},fe.prototype.deselect=function(){xe.prototype.deselect.call(this),this.controlBox.style.display="none"},fe.prototype.setupControlBox=function(){this.controlBox=Se.createGroup();var ue=Se.createTransform();ue.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ue),this.container.appendChild(this.controlBox),this.controlRect=Se.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=Se.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 Xe,this.addControlGrips(),this.controlBox.style.display="none"},fe.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()},fe.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},fe.prototype.createGrip=function(){var ue=new Dt;return ue.visual.transform.baseVal.appendItem(Se.createTransform()),this.controlBox.appendChild(ue.visual),ue},fe.prototype.positionGrips=function(){var ue=this.controlGrips.topLeft.GRIP_SIZE,he=-ue/2,me=he,oe=(this.width+this.CB_DISTANCE)/2-ue/2,Ne=(this.height+this.CB_DISTANCE)/2-ue/2,At=this.height+this.CB_DISTANCE-ue/2,Ge=this.width+this.CB_DISTANCE-ue/2;this.positionGrip(this.controlGrips.topLeft.visual,he,me),this.positionGrip(this.controlGrips.topCenter.visual,oe,me),this.positionGrip(this.controlGrips.topRight.visual,Ge,me),this.positionGrip(this.controlGrips.centerLeft.visual,he,Ne),this.positionGrip(this.controlGrips.centerRight.visual,Ge,Ne),this.positionGrip(this.controlGrips.bottomLeft.visual,he,At),this.positionGrip(this.controlGrips.bottomCenter.visual,oe,At),this.positionGrip(this.controlGrips.bottomRight.visual,Ge,At),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,oe,me-3*this.CB_DISTANCE)},fe.prototype.positionGrip=function(ue,he,me){var oe=ue.transform.baseVal.getItem(0);oe.setTranslate(he,me),ue.transform.baseVal.replaceItem(oe,0)},fe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},fe.prototype.showControlBox=function(){this.controlBox.style.display=""},fe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:dt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:dt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},xe.prototype.getState.call(this))},fe.prototype.restoreState=function(ue){xe.prototype.restoreState.call(this,ue);var he=ue;this.left=he.left,this.top=he.top,this.width=he.width,this.height=he.height,this.rotationAngle=he.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,he.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,he.containerTransformMatrix))},fe.prototype.scale=function(ue,he){xe.prototype.scale.call(this,ue,he);var me=this.rotatePoint({x:this.left,y:this.top}),oe=this.unrotatePoint({x:me.x*ue,y:me.y*he});this.left=oe.x,this.top=oe.y,this.width=this.width*ue,this.height=this.height*he,this.adjustControlBox()},fe}(lt),Ze=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.opacity=1,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe}return ye(fe,xe),fe.prototype.ownsTarget=function(ue){return!(!xe.prototype.ownsTarget.call(this,ue)&&ue!==this.visual)},fe.prototype.createVisual=function(){this.visual=Se.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ue,he){xe.prototype.pointerDown.call(this,ue,he),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},fe.prototype.manipulate=function(ue){xe.prototype.manipulate.call(this,ue)},fe.prototype.resize=function(ue){xe.prototype.resize.call(this,ue),this.setSize()},fe.prototype.setSize=function(){xe.prototype.setSize.call(this),Se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},fe.prototype.pointerUp=function(ue){xe.prototype.pointerUp.call(this,ue),this.setSize()},fe.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.visual&&Se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},fe.prototype.setFillColor=function(ue){this.fillColor=ue,this.visual&&Se.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},fe.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.visual&&Se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.visual&&Se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},fe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},xe.prototype.getState.call(this))},fe.prototype.restoreState=function(ue){var he=ue;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.opacity=he.opacity,this.createVisual(),xe.prototype.restoreState.call(this,ue),this.setSize()},fe.prototype.scale=function(ue,he){xe.prototype.scale.call(this,ue,he),this.setSize()},fe.title="Rectangle marker",fe}(Qe),Ae=function(xe){function fe(ue,he,me,oe){var Ne=xe.call(this,ue,oe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ne.widths=[],Ne.widthBoxes=[],Ne.widths=he,Ne.currentWidth=me,Ne.setCurrentWidth=Ne.setCurrentWidth.bind(Ne),Ne}return ye(fe,xe),fe.prototype.getUi=function(){var ue=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",this.widths.forEach(function(me){var oe=document.createElement("div");oe.style.display="flex",oe.style.flexGrow="2",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=me===ue.currentWidth?ue.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){ue.setCurrentWidth(me,oe)}),he.appendChild(oe);var Ne=document.createElement("div");Ne.innerText=me.toString(),Ne.style.marginRight="5px",oe.appendChild(Ne);var At=document.createElement("div");At.style.minHeight="20px",At.style.flexGrow="2",At.style.display="flex",At.style.alignItems="center";var Ge=document.createElement("hr");Ge.style.minWidth="20px",Ge.style.border="0px",Ge.style.borderTop=me+"px solid "+ue.uiStyleSettings.toolboxColor,Ge.style.flexGrow="2",At.appendChild(Ge),oe.appendChild(At),ue.widthBoxes.push(oe)}),he},fe.prototype.setCurrentWidth=function(ue,he){var me=this;this.currentWidth=ue,this.widthBoxes.forEach(function(oe){oe.style.borderColor=oe===he?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},fe}(ze),Je=function(xe){function fe(ue,he,me,oe){var Ne=xe.call(this,ue,oe||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Ne.styles=[],Ne.styleBoxes=[],Ne.styles=he,Ne.currentStyle=me,Ne.setCurrentStyle=Ne.setCurrentStyle.bind(Ne),Ne}return ye(fe,xe),fe.prototype.getUi=function(){var ue=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",this.styles.forEach(function(me){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/ue.styles.length-5+"%",oe.style.borderColor=me===ue.currentStyle?ue.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){ue.setCurrentStyle(me,oe)}),he.appendChild(oe);var Ne=document.createElement("div");Ne.style.minHeight="20px",Ne.style.flexGrow="2",Ne.style.overflow="hidden";var At=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ue.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(me!==""?'stroke-dasharray="'+me+'"':"")+` />
|
|
|
</svg>`;Ne.innerHTML=At,oe.appendChild(Ne),ue.styleBoxes.push(oe)}),he},fe.prototype.setCurrentStyle=function(ue,he){var me=this;this.currentStyle=ue,this.styleBoxes.forEach(function(oe){oe.style.borderColor=oe===he?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},fe}(ze),Re=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.strokeColor=me.defaultColor,oe.strokeWidth=me.defaultStrokeWidth,oe.strokeDasharray=me.defaultStrokeDasharray,oe.strokePanel=new We("Line color",me.defaultColorSet,me.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Ae("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Je("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return ye(fe,xe),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=xe.prototype.getState.call(this);return ue.typeName=fe.typeName,ue},fe.typeName="FrameMarker",fe.title="Frame marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',fe}(Ze),vt=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"},$e=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.x1=0,oe.y1=0,oe.x2=0,oe.y2=0,oe.defaultLength=50,oe.manipulationStartX=0,oe.manipulationStartY=0,oe.manipulationStartX1=0,oe.manipulationStartY1=0,oe.manipulationStartX2=0,oe.manipulationStartY2=0,oe.setupControlBox(),oe}return ye(fe,xe),fe.prototype.ownsTarget=function(ue){return!!xe.prototype.ownsTarget.call(this,ue)||!(!this.grip1.ownsTarget(ue)&&!this.grip2.ownsTarget(ue))},fe.prototype.pointerDown=function(ue,he){xe.prototype.pointerDown.call(this,ue,he),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(he)?this.activeGrip=this.grip1:this.grip2.ownsTarget(he)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},fe.prototype.pointerUp=function(ue){var he=this.state;xe.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",he==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},fe.prototype.adjustVisual=function(){},fe.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)},fe.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()},fe.prototype.select=function(){xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},fe.prototype.deselect=function(){xe.prototype.deselect.call(this),this.controlBox.style.display="none"},fe.prototype.setupControlBox=function(){this.controlBox=Se.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},fe.prototype.adjustControlBox=function(){this.positionGrips()},fe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},fe.prototype.createGrip=function(){var ue=new Dt;return ue.visual.transform.baseVal.appendItem(Se.createTransform()),this.controlBox.appendChild(ue.visual),ue},fe.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)},fe.prototype.positionGrip=function(ue,he,me){var oe=ue.transform.baseVal.getItem(0);oe.setTranslate(he,me),ue.transform.baseVal.replaceItem(oe,0)},fe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},xe.prototype.getState.call(this))},fe.prototype.restoreState=function(ue){xe.prototype.restoreState.call(this,ue);var he=ue;this.x1=he.x1,this.y1=he.y1,this.x2=he.x2,this.y2=he.y2},fe.prototype.scale=function(ue,he){xe.prototype.scale.call(this,ue,he),this.x1=this.x1*ue,this.y1=this.y1*he,this.x2=this.x2*ue,this.y2=this.y2*he,this.adjustVisual(),this.adjustControlBox()},fe}(lt),mt=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.strokeColor=me.defaultColor,oe.strokeWidth=me.defaultStrokeWidth,oe.strokeDasharray=me.defaultStrokeDasharray,oe.strokePanel=new We("Line color",me.defaultColorSet,me.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Ae("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Je("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return ye(fe,xe),fe.prototype.ownsTarget=function(ue){return!(!xe.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.selectorLine&&ue!==this.visibleLine)},fe.prototype.createVisual=function(){this.visual=Se.createGroup(),this.selectorLine=Se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ue,he){xe.prototype.pointerDown.call(this,ue,he),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},fe.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Se.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Se.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Se.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},fe.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.adjustVisual(),this.colorChanged(ue)},fe.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.adjustVisual()},fe.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.adjustVisual(),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},xe.prototype.getState.call(this));return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){xe.prototype.restoreState.call(this,ue);var he=ue;this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.createVisual(),this.adjustVisual()},fe.typeName="LineMarker",fe.title="Line marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',fe}($e),Be=function(xe){function fe(ue,he,me,oe){var Ne=xe.call(this,ue,oe||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Ne.fonts=[],Ne.fontBoxes=[],Ne.fonts=he,Ne.currentFont=me,Ne.setCurrentFont=Ne.setCurrentFont.bind(Ne),Ne}return ye(fe,xe),fe.prototype.getUi=function(){var ue=this,he=document.createElement("div");return he.style.overflow="hidden",he.style.flexGrow="2",this.fonts.forEach(function(me){var oe=document.createElement("div");oe.style.display="inline-block",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/ue.fonts.length-5+"%",oe.style.borderColor=me===ue.currentFont?ue.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){ue.setCurrentFont(me,oe)}),he.appendChild(oe);var Ne=document.createElement("div");Ne.style.display="flex",Ne.style.minHeight="20px",Ne.style.flexGrow="2",Ne.style.fontFamily=me,Ne.style.overflow="hidden";var At=document.createElement("div");At.style.whiteSpace="nowrap",At.style.overflow="hidden",At.style.textOverflow="ellipsis",At.innerHTML="The quick brown fox jumps over the lazy dog",Ne.appendChild(At),oe.appendChild(Ne),ue.fontBoxes.push(oe)}),he},fe.prototype.setCurrentFont=function(ue,he){var me=this;this.currentFont=ue,this.fontBoxes.forEach(function(oe){oe.style.borderColor=oe===he?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},fe}(ze),xt=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.color="transparent",oe.padding=5,oe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",oe.text=oe.DEFAULT_TEXT,oe.isMoved=!1,oe.color=me.defaultColor,oe.fontFamily=me.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setColor=oe.setColor.bind(oe),oe.setFont=oe.setFont.bind(oe),oe.renderText=oe.renderText.bind(oe),oe.sizeText=oe.sizeText.bind(oe),oe.textEditDivClicked=oe.textEditDivClicked.bind(oe),oe.showTextEditor=oe.showTextEditor.bind(oe),oe.setSize=oe.setSize.bind(oe),oe.positionTextEditor=oe.positionTextEditor.bind(oe),oe.colorPanel=new We("Color",me.defaultColorSet,me.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.fontFamilyPanel=new Be("Font",me.defaultFontFamilies,me.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe}return ye(fe,xe),fe.prototype.ownsTarget=function(ue){if(xe.prototype.ownsTarget.call(this,ue)||ue===this.visual||ue===this.textElement||ue===this.bgRectangle)return!0;var he=!1;return this.textElement.childNodes.forEach(function(me){me===ue&&(he=!0)}),he},fe.prototype.createVisual=function(){this.visual=Se.createGroup(),this.bgRectangle=Se.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Se.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Se.createTransform()),this.textElement.transform.baseVal.appendItem(Se.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},fe.prototype.pointerDown=function(ue,he){xe.prototype.pointerDown.call(this,ue,he),this.isMoved=!1,this.pointerDownPoint=ue,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},fe.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(he){ue.textElement.appendChild(Se.createTSpan(he.trim()===""?" ":he.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},fe.prototype.getTextScale=function(){var ue=this.textElement.getBBox(),he=1;if(ue.width>0&&ue.height>0){var me=(1*this.width-this.width*this.padding*2/100)/ue.width,oe=(1*this.height-this.height*this.padding*2/100)/ue.height;he=Math.min(me,oe)}return he},fe.prototype.getTextPosition=function(ue){var he=this.textElement.getBBox(),me=0,oe=0;return he.width>0&&he.height>0&&(me=(this.width-he.width*ue)/2,oe=this.height/2-he.height*ue/2),{x:me,y:oe}},fe.prototype.sizeText=function(){var ue=this.textElement.getBBox(),he=this.getTextScale(),me=this.getTextPosition(he);me.y-=ue.y*he,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+me.x+"px, "+me.y+"px) scale("+he+", "+he+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(me.x,me.y),this.textElement.transform.baseVal.getItem(1).setScale(he,he))},fe.prototype.manipulate=function(ue){xe.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)},fe.prototype.resize=function(ue){xe.prototype.resize.call(this,ue),this.isMoved=!0,this.setSize(),this.sizeText()},fe.prototype.setSize=function(){xe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Se.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},fe.prototype.pointerUp=function(ue){var he=this.state;he==="creating"&&(this._suppressMarkerCreateEvent=!0),xe.prototype.pointerUp.call(this,ue),this.setSize(),(he==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},fe.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(he){he.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var he=Number.parseFloat(ue.textEditor.style.fontSize);ue.textEditor.clientWidth>=Number.parseInt(ue.textEditor.style.maxWidth)&&he>.9;)he-=.1,ue.textEditor.style.fontSize=Math.max(he,.9)+"em"}),this.textEditor.addEventListener("keyup",function(he){he.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(he){if(he.clipboardData){var me=he.clipboardData.getData("text"),oe=window.getSelection();if(!oe.rangeCount)return!1;oe.deleteFromDocument(),oe.getRangeAt(0).insertNode(document.createTextNode(me)),he.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")},fe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ue=this.getTextScale(),he=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),me=this.textElement.getBBox(),oe={x:me.width*ue,y:me.height*ue};he.x-=oe.x/2,he.y-=oe.y/2,this.textEditor.style.top=he.y+"px",this.textEditor.style.left=he.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-he.x+"px",this.textEditor.style.fontSize=Math.max(16*ue,12)+"px",this.textElement.style.display="none"}},fe.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()},fe.prototype.select=function(){xe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},fe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),xe.prototype.deselect.call(this)},fe.prototype.dblClick=function(ue,he){xe.prototype.dblClick.call(this,ue,he),this.showTextEditor()},fe.prototype.setColor=function(ue){this.textElement&&Se.setAttributes(this.textElement,[["fill",ue]]),this.color=ue,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ue)},fe.prototype.setFont=function(ue){this.textElement&&Se.setAttributes(this.textElement,[["font-family",ue]]),this.fontFamily=ue,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},fe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},fe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},xe.prototype.getState.call(this));return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){var he=ue;this.color=he.color,this.fontFamily=he.fontFamily,this.padding=he.padding,this.text=he.text,this.createVisual(),xe.prototype.restoreState.call(this,ue),this.setSize()},fe.prototype.scale=function(ue,he){xe.prototype.scale.call(this,ue,he),this.setSize(),this.sizeText(),this.positionTextEditor()},fe.typeName="TextMarker",fe.title="Text marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',fe}(Qe),Ve=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.color="transparent",oe.lineWidth=3,oe.drawing=!1,oe.pixelRatio=1,oe.color=me.defaultColor,oe.lineWidth=me.defaultStrokeWidth,oe.pixelRatio=me.freehandPixelRatio,oe.setColor=oe.setColor.bind(oe),oe.addCanvas=oe.addCanvas.bind(oe),oe.finishCreation=oe.finishCreation.bind(oe),oe.setLineWidth=oe.setLineWidth.bind(oe),oe.colorPanel=new We("Color",me.defaultColorSet,me.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.lineWidthPanel=new Ae("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),oe.lineWidthPanel.onWidthChanged=oe.setLineWidth,oe}return ye(fe,xe),fe.prototype.ownsTarget=function(ue){return!(!xe.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.drawingImage)},fe.prototype.createVisual=function(){this.visual=Se.createGroup(),this.drawingImage=Se.createImage(),this.visual.appendChild(this.drawingImage);var ue=Se.createTransform();this.visual.transform.baseVal.appendItem(ue),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ue,he){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):xe.prototype.pointerDown.call(this,ue,he)},fe.prototype.manipulate=function(ue){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ue.x,ue.y),this.canvasContext.stroke()):xe.prototype.manipulate.call(this,ue)},fe.prototype.resize=function(ue){xe.prototype.resize.call(this,ue),Se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},fe.prototype.pointerUp=function(ue){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):xe.prototype.pointerUp.call(this,ue)},fe.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},fe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),xe.prototype.select.call(this)},fe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),xe.prototype.deselect.call(this)},fe.prototype.finishCreation=function(){for(var ue=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),he=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],me=he[0],oe=he[1],Ne=he[2],At=he[3],Ge=!1,je=0;je<this.canvasElement.height;je++)for(var Pt=0;Pt<this.canvasElement.width;Pt++)ue.data[je*this.canvasElement.width*4+4*Pt+3]>0&&(Ge=!0,je<oe&&(oe=je),Pt<me&&(me=Pt),je>At&&(At=je),Pt>Ne&&(Ne=Pt));if(Ge){this.left=me/this.pixelRatio,this.top=oe/this.pixelRatio,this.width=(Ne-me)/this.pixelRatio,this.height=(At-oe)/this.pixelRatio;var Et=document.createElement("canvas");Et.width=Ne-me,Et.height=At-oe,Et.getContext("2d").putImageData(this.canvasContext.getImageData(me,oe,Ne-me,At-oe),0,0),this.drawingImgUrl=Et.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},fe.prototype.setDrawingImage=function(){Se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Se.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},fe.prototype.setColor=function(ue){this.color=ue,this.colorChanged(ue)},fe.prototype.setLineWidth=function(ue){this.lineWidth=ue},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=Object.assign({drawingImgUrl:this.drawingImgUrl},xe.prototype.getState.call(this));return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){this.createVisual(),xe.prototype.restoreState.call(this,ue),this.drawingImgUrl=ue.drawingImgUrl,this.setDrawingImage()},fe.prototype.scale=function(ue,he){xe.prototype.scale.call(this,ue,he),this.setDrawingImage()},fe.typeName="FreehandMarker",fe.title="Freehand marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',fe}(Qe),Ot=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,me||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return oe.typeBoxes=[],oe.currentType=he,oe.setCurrentType=oe.setCurrentType.bind(oe),oe}return ye(fe,xe),fe.prototype.getUi=function(){var ue=this,he=document.createElement("div");he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2";for(var me=function(At){var Ge="both";switch(At){case 0:Ge="both";break;case 1:Ge="start";break;case 2:Ge="end";break;case 3:Ge="none"}var je=document.createElement("div");if(je.style.display="flex",je.style.flexGrow="2",je.style.alignItems="center",je.style.justifyContent="space-between",je.style.padding="5px",je.style.borderWidth="2px",je.style.borderStyle="solid",je.style.borderColor=Ge===oe.currentType?oe.uiStyleSettings.toolboxAccentColor:"transparent",je.addEventListener("click",function(){ue.setCurrentType(Ge,je)}),he.appendChild(je),Ge==="both"||Ge==="start"){var Pt=document.createElement("div");Pt.style.display="flex",Pt.style.alignItems="center",Pt.style.minHeight="20px",Pt.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="`+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Pt.style.marginLeft="5px",je.appendChild(Pt)}var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.minHeight="20px",Et.style.flexGrow="2";var ht=document.createElement("hr");if(ht.style.minWidth="20px",ht.style.border="0px",ht.style.borderTop="3px solid "+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee"),ht.style.flexGrow="2",Et.appendChild(ht),je.appendChild(Et),Ge==="both"||Ge==="end"){var Kt=document.createElement("div");Kt.style.display="flex",Kt.style.alignItems="center",Kt.style.minHeight="20px",Kt.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="`+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Kt.style.marginRight="5px",je.appendChild(Kt)}oe.typeBoxes.push(je)},oe=this,Ne=0;Ne<4;Ne++)me(Ne);return he},fe.prototype.setCurrentType=function(ue,he){var me=this;this.currentType=ue,this.typeBoxes.forEach(function(oe){oe.style.borderColor=oe===he?me.uiStyleSettings!==void 0?me.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},fe}(ze),nt=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.arrowType="end",oe.arrowBaseHeight=10,oe.arrowBaseWidth=10,oe.getArrowPoints=oe.getArrowPoints.bind(oe),oe.setArrowType=oe.setArrowType.bind(oe),oe.arrowTypePanel=new Ot("Arrow type","end"),oe.arrowTypePanel.onArrowTypeChanged=oe.setArrowType,oe}return ye(fe,xe),fe.prototype.ownsTarget=function(ue){return!(!xe.prototype.ownsTarget.call(this,ue)&&ue!==this.arrow1&&ue!==this.arrow2)},fe.prototype.getArrowPoints=function(ue,he){var me=this.arrowBaseWidth+2*this.strokeWidth,oe=this.arrowBaseHeight+2*this.strokeWidth;return ue-me/2+","+(he+oe/2)+" "+ue+","+(he-oe/2)+" "+(ue+me/2)+","+(he+oe/2)},fe.prototype.createTips=function(){this.arrow1=Se.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Se.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Se.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Se.createTransform()),this.visual.appendChild(this.arrow2)},fe.prototype.pointerDown=function(ue,he){xe.prototype.pointerDown.call(this,ue,he),this.state==="creating"&&this.createTips()},fe.prototype.adjustVisual=function(){if(xe.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",Se.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Se.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 he=this.arrow1.transform.baseVal.getItem(0);he.setRotate(ue,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(he,0);var me=this.arrow2.transform.baseVal.getItem(0);me.setRotate(ue+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(me,0)}},fe.prototype.setArrowType=function(ue){this.arrowType=ue,this.adjustVisual(),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=Object.assign({arrowType:this.arrowType},xe.prototype.getState.call(this));return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){xe.prototype.restoreState.call(this,ue);var he=ue;this.arrowType=he.arrowType,this.createTips(),this.adjustVisual()},fe.typeName="ArrowMarker",fe.title="Arrow marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',fe}(mt),wt=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.fillColor=me.defaultFillColor,oe.strokeWidth=0,oe.fillPanel=new We("Color",me.defaultColorSet,me.defaultFillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe}return ye(fe,xe),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=xe.prototype.getState.call(this);return ue.typeName=fe.typeName,ue},fe.typeName="CoverMarker",fe.title="Cover marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',fe}(Ze),Mt=function(xe){function fe(ue,he,me,oe){var Ne=xe.call(this,ue,oe||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Ne.opacities=[],Ne.opacityBoxes=[],Ne.opacities=he,Ne.currentOpacity=me,Ne.setCurrentOpacity=Ne.setCurrentOpacity.bind(Ne),Ne}return ye(fe,xe),fe.prototype.getUi=function(){var ue=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",he.style.justifyContent="space-between",this.opacities.forEach(function(me){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="center",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=me===ue.currentOpacity?ue.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){ue.setCurrentOpacity(me,oe)}),he.appendChild(oe);var Ne=document.createElement("div");Ne.innerText=100*me+"%",oe.appendChild(Ne),ue.opacityBoxes.push(oe)}),he},fe.prototype.setCurrentOpacity=function(ue,he){var me=this;this.currentOpacity=ue,this.opacityBoxes.forEach(function(oe){oe.style.borderColor=oe===he?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},fe}(ze),at=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.setOpacity=oe.setOpacity.bind(oe),oe.fillColor=me.defaultHighlightColor,oe.strokeWidth=0,oe.opacity=me.defaultHighlightOpacity,oe.fillPanel=new We("Color",me.defaultColorSet,oe.fillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe.opacityPanel=new Mt("Opacity",me.defaultOpacitySteps,oe.opacity),oe.opacityPanel.onOpacityChanged=oe.setOpacity,oe}return ye(fe,xe),fe.prototype.setOpacity=function(ue){this.opacity=ue,this.visual&&Se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=xe.prototype.getState.call(this);return ue.typeName=fe.typeName,ue},fe.typeName="HighlightMarker",fe.title="Highlight marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',fe}(wt),Le='<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>',Me='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',st=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.bgColor="transparent",oe.tipPosition={x:0,y:0},oe.tipBase1Position={x:0,y:0},oe.tipBase2Position={x:0,y:0},oe.tipMoving=!1,oe.color=me.defaultStrokeColor,oe.bgColor=me.defaultFillColor,oe.fontFamily=me.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setBgColor=oe.setBgColor.bind(oe),oe.getTipPoints=oe.getTipPoints.bind(oe),oe.positionTip=oe.positionTip.bind(oe),oe.setTipPoints=oe.setTipPoints.bind(oe),oe.colorPanel=new We("Text color",me.defaultColorSet,oe.color,Le),oe.colorPanel.onColorChanged=oe.setColor,oe.bgColorPanel=new We("Fill color",me.defaultColorSet,oe.bgColor,Me),oe.bgColorPanel.onColorChanged=oe.setBgColor,oe.fontFamilyPanel=new Be("Font",me.defaultFontFamilies,me.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe.tipGrip=new Dt,oe.tipGrip.visual.transform.baseVal.appendItem(Se.createTransform()),oe.controlBox.appendChild(oe.tipGrip.visual),oe}return ye(fe,xe),fe.prototype.ownsTarget=function(ue){return xe.prototype.ownsTarget.call(this,ue)||this.tipGrip.ownsTarget(ue)||this.tip===ue},fe.prototype.createTip=function(){Se.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Se.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},fe.prototype.pointerDown=function(ue,he){this.state==="new"&&xe.prototype.pointerDown.call(this,ue,he),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(he)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):xe.prototype.pointerDown.call(this,ue,he)},fe.prototype.pointerUp=function(ue){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,xe.prototype.pointerUp.call(this,ue);else{var he=this.state==="creating";xe.prototype.pointerUp.call(this,ue),this.setTipPoints(he),this.positionTip()}},fe.prototype.manipulate=function(ue){if(this.tipMoving){var he=this.unrotatePoint(ue);this.tipPosition={x:he.x-this.manipulationStartLeft,y:he.y-this.manipulationStartTop},this.positionTip()}else xe.prototype.manipulate.call(this,ue)},fe.prototype.setBgColor=function(ue){this.bgRectangle&&this.tip&&(Se.setAttributes(this.bgRectangle,[["fill",ue]]),Se.setAttributes(this.tip,[["fill",ue]])),this.bgColor=ue,this.fillColorChanged(ue)},fe.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},fe.prototype.setTipPoints=function(ue){ue===void 0&&(ue=!1);var he=Math.min(this.height/2,15),me=this.height/5;ue&&(this.tipPosition={x:he+me/2,y:this.height+20});var oe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?oe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(me=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:he,y:0},this.tipBase2Position={x:he+me,y:0}):(this.tipBase1Position={x:0,y:he},this.tipBase2Position={x:0,y:he+me}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?oe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(me=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-he-me,y:0},this.tipBase2Position={x:this.width-he,y:0}):(this.tipBase1Position={x:this.width,y:he},this.tipBase2Position={x:this.width,y:he+me}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?oe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(me=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-he-me,y:this.height},this.tipBase2Position={x:this.width-he,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-he-me},this.tipBase2Position={x:this.width,y:this.height-he}):oe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(me=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:he,y:this.height},this.tipBase2Position={x:he+me,y:this.height}):(this.tipBase1Position={x:0,y:this.height-he},this.tipBase2Position={x:0,y:this.height-he-me})},fe.prototype.resize=function(ue){xe.prototype.resize.call(this,ue),this.positionTip()},fe.prototype.positionTip=function(){Se.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(fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),fe.prototype.select=function(){this.positionTip(),xe.prototype.select.call(this)},fe.prototype.getState=function(){var ue=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},xe.prototype.getState.call(this));return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){var he=ue;this.bgColor=he.bgColor,this.tipPosition=he.tipPosition,xe.prototype.restoreState.call(this,ue),this.createTip(),this.setTipPoints()},fe.prototype.scale=function(ue,he){xe.prototype.scale.call(this,ue,he),this.tipPosition={x:this.tipPosition.x*ue,y:this.tipPosition.y*he},this.positionTip()},fe.typeName="CalloutMarker",fe.title="Callout marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',fe}(xt),Ht=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.opacity=1,oe.strokeColor=me.defaultColor,oe.strokeWidth=me.defaultStrokeWidth,oe.strokeDasharray=me.defaultStrokeDasharray,oe.fillColor=me.defaultFillColor,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.setOpacity=oe.setOpacity.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe.strokePanel=new We("Line color",Ce(me.defaultColorSet,["transparent"]),me.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.fillPanel=new We("Fill color",Ce(me.defaultColorSet,["transparent"]),oe.fillColor,Me),oe.fillPanel.onColorChanged=oe.setFillColor,oe.strokeWidthPanel=new Ae("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Je("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe.opacityPanel=new Mt("Opacity",me.defaultOpacitySteps,oe.opacity),oe.opacityPanel.onOpacityChanged=oe.setOpacity,oe}return ye(fe,xe),fe.prototype.ownsTarget=function(ue){return!(!xe.prototype.ownsTarget.call(this,ue)&&ue!==this.visual)},fe.prototype.createVisual=function(){this.visual=Se.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ue,he){xe.prototype.pointerDown.call(this,ue,he),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},fe.prototype.manipulate=function(ue){xe.prototype.manipulate.call(this,ue)},fe.prototype.resize=function(ue){xe.prototype.resize.call(this,ue),this.setSize()},fe.prototype.setSize=function(){xe.prototype.setSize.call(this),Se.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},fe.prototype.pointerUp=function(ue){xe.prototype.pointerUp.call(this,ue),this.setSize()},fe.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.visual&&Se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},fe.prototype.setFillColor=function(ue){this.fillColor=ue,this.visual&&Se.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ue),this.stateChanged()},fe.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.visual&&Se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.visual&&Se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},fe.prototype.setOpacity=function(ue){this.opacity=ue,this.visual&&Se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},xe.prototype.getState.call(this));return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){var he=ue;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.opacity=he.opacity,this.createVisual(),xe.prototype.restoreState.call(this,ue),this.setSize()},fe.prototype.scale=function(ue,he){xe.prototype.scale.call(this,ue,he),this.setSize()},fe.typeName="EllipseMarker",fe.title="Ellipse marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',fe}(Qe),Tt=function(xe){function fe(ue,he,me){return xe.call(this,ue,he,me)||this}return ye(fe,xe),Object.defineProperty(fe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),fe.prototype.ownsTarget=function(ue){return!(!xe.prototype.ownsTarget.call(this,ue)&&ue!==this.tip1&&ue!==this.tip2)},fe.prototype.createTips=function(){this.tip1=Se.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(Se.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Se.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(Se.createTransform()),this.visual.appendChild(this.tip2)},fe.prototype.pointerDown=function(ue,he){xe.prototype.pointerDown.call(this,ue,he),this.state==="creating"&&this.createTips()},fe.prototype.adjustVisual=function(){if(xe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Se.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()]]),Se.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),he=this.tip1.transform.baseVal.getItem(0);he.setRotate(ue,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(he,0);var me=this.tip2.transform.baseVal.getItem(0);me.setRotate(ue+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(me,0)}},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=xe.prototype.getState.call(this);return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){xe.prototype.restoreState.call(this,ue),this.createTips(),this.adjustVisual()},fe.typeName="MeasurementMarker",fe.title="Measurement marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',fe}(mt),ct=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.strokePanel.colors=me.defaultColorSet,oe.fillColor="transparent",oe}return ye(fe,xe),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=xe.prototype.getState.call(this);return ue.typeName=fe.typeName,ue},fe.typeName="EllipseFrameMarker",fe.title="Ellipse frame marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',fe}(Ht),Ct=function(){function xe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(xe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),xe.prototype.addUndoStep=function(fe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(fe)||(this.undoStack.push(fe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(fe)&&this.redoStack.splice(0,this.redoStack.length))},xe.prototype.replaceLastUndoStep=function(fe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=fe)},xe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},xe.prototype.undo=function(){if(this.undoStack.length>1){var fe=this.undoStack.pop();return fe!==void 0&&this.redoStack.push(fe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},xe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},xe}(),Zt=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.curveX=0,oe.curveY=0,oe.manipulationStartCurveX=0,oe.manipulationStartCurveY=0,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.positionGrips=oe.positionGrips.bind(oe),oe.addControlGrips=oe.addControlGrips.bind(oe),oe.adjustVisual=oe.adjustVisual.bind(oe),oe.setupControlBox=oe.setupControlBox.bind(oe),oe.resize=oe.resize.bind(oe),oe.strokeColor=me.defaultColor,oe.strokeWidth=me.defaultStrokeWidth,oe.strokeDasharray=me.defaultStrokeDasharray,oe.strokePanel=new We("Line color",me.defaultColorSet,me.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Ae("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Je("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return ye(fe,xe),fe.prototype.ownsTarget=function(ue){return!(!xe.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.selectorCurve&&ue!==this.visibleCurve&&!this.curveGrip.ownsTarget(ue))},fe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},fe.prototype.createVisual=function(){this.visual=Se.createGroup(),this.selectorCurve=Se.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Se.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ue,he){xe.prototype.pointerDown.call(this,ue,he),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(he)&&(this.activeGrip=this.curveGrip,this._state="resize")},fe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Se.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Se.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Se.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},fe.prototype.setupControlBox=function(){xe.prototype.setupControlBox.call(this),this.curveControlLine1=Se.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Se.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},fe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,xe.prototype.addControlGrips.call(this)},fe.prototype.positionGrips=function(){xe.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()))},fe.prototype.manipulate=function(ue){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ue.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ue.y-this.manipulationStartY),xe.prototype.manipulate.call(this,ue)},fe.prototype.resize=function(ue){this.activeGrip===this.curveGrip&&(this.curveX=ue.x,this.curveY=ue.y),xe.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)},fe.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.adjustVisual(),this.colorChanged(ue)},fe.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.adjustVisual()},fe.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.adjustVisual()},fe.prototype.scale=function(ue,he){this.curveX=this.curveX*ue,this.curveY=this.curveY*he,xe.prototype.scale.call(this,ue,he)},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},xe.prototype.getState.call(this));return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){xe.prototype.restoreState.call(this,ue);var he=ue;this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.curveX=he.curveX,this.curveY=he.curveY,this.createVisual(),this.adjustVisual()},fe.typeName="CurveMarker",fe.title="Curve marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',fe}($e),gn=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,he,me)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.textColor="transparent",oe.fontSize="1rem",oe.isMoved=!1,oe.captionText="Caption",oe.PADDING=5,oe.captionBoxWidth=0,oe.captionBoxHeight=0,oe.strokeColor=me.defaultColor,oe.strokeWidth=me.defaultStrokeWidth,oe.strokeDasharray=me.defaultStrokeDasharray,oe.fillColor=me.defaultFillColor,oe.textColor=me.defaultStrokeColor,oe.fontFamily=me.defaultFontFamily,oe.fontSize=me.defaultCaptionFontSize,oe.captionText=me.defaultCaptionText,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe.sizeCaption=oe.sizeCaption.bind(oe),oe.setCaptionText=oe.setCaptionText.bind(oe),oe.showTextEditor=oe.showTextEditor.bind(oe),oe.positionTextEditor=oe.positionTextEditor.bind(oe),oe.finishTextEditing=oe.finishTextEditing.bind(oe),oe.setFont=oe.setFont.bind(oe),oe.setTextColor=oe.setTextColor.bind(oe),oe.strokePanel=new We("Line color",Ce(me.defaultColorSet,["transparent"]),oe.strokeColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.fillPanel=new We("Fill color",Ce(me.defaultColorSet,["transparent"]),oe.fillColor,Me),oe.fillPanel.onColorChanged=oe.setFillColor,oe.strokeWidthPanel=new Ae("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Je("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe.fontFamilyPanel=new Be("Font",me.defaultFontFamilies,me.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe.textColorPanel=new We("Text color",me.defaultColorSet,oe.textColor,Le),oe.textColorPanel.onColorChanged=oe.setTextColor,oe}return ye(fe,xe),fe.prototype.ownsTarget=function(ue){return!(!xe.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.frame&&ue!==this.captionBg&&ue!==this.captionElement)},fe.prototype.createVisual=function(){this.visual=Se.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Se.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Se.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=Se.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},fe.prototype.setCaptionText=function(ue){this.captionText=ue,this.captionElement.textContent=this.captionText,this.sizeCaption()},fe.prototype.pointerDown=function(ue,he){xe.prototype.pointerDown.call(this,ue,he),this.isMoved=!1,this.pointerDownPoint=ue,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},fe.prototype.manipulate=function(ue){xe.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)},fe.prototype.resize=function(ue){xe.prototype.resize.call(this,ue),this.setSize()},fe.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),Se.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')"]]),Se.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},fe.prototype.showTextEditor=function(){var 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(he){he.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(he){he.key==="Enter"&&ue.finishTextEditing(ue.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(he){he.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()},fe.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},fe.prototype.finishTextEditing=function(ue){this.setCaptionText(ue.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},fe.prototype.setFont=function(ue){this.captionElement&&Se.setAttributes(this.captionElement,[["font-family",ue]]),this.fontFamily=ue,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},fe.prototype.setTextColor=function(ue){this.captionElement&&Se.setAttributes(this.captionElement,[["fill",ue]]),this.textColor=ue,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},fe.prototype.setSize=function(){xe.prototype.setSize.call(this),Se.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},fe.prototype.pointerUp=function(ue){xe.prototype.pointerUp.call(this,ue),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},fe.prototype.dblClick=function(ue,he){xe.prototype.dblClick.call(this,ue,he),this.showTextEditor()},fe.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.frame&&Se.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},fe.prototype.setFillColor=function(ue){this.fillColor=ue,this.captionBg&&Se.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ue),this.stateChanged()},fe.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.frame&&Se.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.frame&&Se.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var 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},xe.prototype.getState.call(this));return ue.typeName=this.typeName,ue},fe.prototype.restoreState=function(ue){var he=ue;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.textColor=he.textColor,this.fontFamily=he.fontFamily,this.captionText=he.captionText,this.fontSize=he.fontSize,this.createVisual(),xe.prototype.restoreState.call(this,ue),this.setSize()},fe.prototype.scale=function(ue,he){xe.prototype.scale.call(this,ue,he),this.setSize()},fe.typeName="CaptionFrameMarker",fe.title="Caption frame marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',fe}(Qe),$t=function(){function xe(fe,ue){ue===void 0&&(ue=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=fe,this.cancelable=ue}return Object.defineProperty(xe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),xe.prototype.preventDefault=function(){this._defaultPrevented=!0},xe}(),Wt=function(xe){function fe(ue,he,me){var oe=xe.call(this,ue,!1)||this;return oe.dataUrl=he,oe.state=me,oe}return ye(fe,xe),fe}($t),on=function(xe){function fe(ue,he,me){me===void 0&&(me=!1);var oe=xe.call(this,ue,me)||this;return oe.marker=he,oe}return ye(fe,xe),fe}($t),dn=function(){function xe(){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 xe.prototype.addEventListener=function(fe,ue){this[fe].push(ue)},xe.prototype.removeEventListener=function(fe,ue){var he=this[fe].indexOf(ue);he>-1&&this[fe].splice(he,1)},xe}(),ln=function(){function xe(fe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new vt,this._isOpen=!1,this.undoRedoManager=new Ct,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 dn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=xe.instanceCounter++,this.styles=new Pe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=fe,this.targetRoot=document.body,this.width=fe.clientWidth,this.height=fe.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(xe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Re,Ve,nt,xt,ct,Ht,at,st,Tt,wt,mt,Zt,gn]},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Re,Ve,nt,xt,Ht,at,st]},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Re,Ve,nt,xt,at]},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(fe){var ue=this;this._availableMarkerTypes.splice(0),fe.forEach(function(he){if(typeof he=="string"){var me=ue.ALL_MARKER_TYPES.find(function(oe){return oe.typeName===he});me!==void 0&&ue._availableMarkerTypes.push(me)}else ue._availableMarkerTypes.push(he)})},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(fe){this._zoomLevel=fe,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),xe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),pe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},xe.prototype.show=function(){var fe=this;this.styles.styleSheetRoot===void 0&&De.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=De.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ue){return ue(new $t(fe))})},xe.prototype.render=function(){return Ee(this,void 0,void 0,function(){var fe;return Ye(this,function(ue){switch(ue.label){case 0:return this.setCurrentMarker(),(fe=new be).naturalSize=this.renderAtNaturalSize,fe.imageType=this.renderImageType,fe.imageQuality=this.renderImageQuality,fe.markersOnly=this.renderMarkersOnly,fe.width=this.renderWidth,fe.height=this.renderHeight,[4,fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ue.sent(),[4,fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ue.sent()]}})})},xe.prototype.close=function(fe){var ue=this;if(fe===void 0&&(fe=!1),this.isOpen){var he=!1;fe||this.eventListeners.beforeclose.forEach(function(me){var oe=new $t(ue,!0);me(oe),oe.defaultPrevented&&(he=!0)}),he||(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(me){return me(new $t(ue))}),this.detachEvents(),this._isOpen=!1)}},xe.prototype.addMarkersToToolbar=function(){for(var fe,ue=[],he=0;he<arguments.length;he++)ue[he]=arguments[he];(fe=this._availableMarkerTypes).push.apply(fe,ue)},xe.prototype.addRenderEventListener=function(fe){this.addEventListener("render",function(ue){fe(ue.dataUrl,ue.state)})},xe.prototype.removeRenderEventListener=function(fe){},xe.prototype.addCloseEventListener=function(fe){this.addEventListener("close",function(){fe()})},xe.prototype.removeCloseEventListener=function(fe){},xe.prototype.setupResizeObserver=function(){var fe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){fe.resize(fe.target.clientWidth,fe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return fe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},xe.prototype.onPopupTargetResize=function(){var fe=1*this.target.clientWidth/this.target.clientHeight,ue=this.editorCanvas.clientWidth/fe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*fe:this.editorCanvas.clientWidth,he=ue<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/fe;this.resize(ue,he)},xe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},xe.prototype.resize=function(fe,ue){this._isResizing=!0;var he=fe/this.imageWidth,me=ue/this.imageHeight;this.imageWidth=Math.round(fe),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(he,me),this._isResizing=!1},xe.prototype.scaleMarkers=function(fe,ue){var he,me=this;this._currentMarker&&this._currentMarker instanceof xt?this._currentMarker.scale(fe,ue):(he=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(oe){oe!==me._currentMarker&&oe.scale(fe,ue)}),he!==void 0&&this.setCurrentMarker(he)},xe.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"},xe.prototype.setTopLeft=function(){var fe=this.editingTarget.getBoundingClientRect(),ue=this.editorCanvas.getBoundingClientRect();this.left=fe.left-ue.left,this.top=fe.top-ue.top},xe.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)},xe.prototype.addDefs=function(){for(var fe,ue=[],he=0;he<arguments.length;he++)ue[he]=arguments[he];this.defs=Se.createDefs(),this.addDefsToImage(),(fe=this.defs).append.apply(fe,ue)},xe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},xe.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)},xe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},xe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},xe.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)},xe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},xe.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)},xe.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var fe=document.createElement("a");fe.href="https://markerjs.com/",fe.target="_blank",fe.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',fe.title="Powered by marker.js",fe.style.display="grid",fe.style.alignItems="center",fe.style.justifyItems="center",fe.style.padding="3px",fe.style.width="20px",fe.style.height="20px",this.logoUI.appendChild(fe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},xe.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")},xe.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"},xe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},xe.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var fe=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=fe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Ie(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 tt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},xe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},xe.prototype.removeMarker=function(fe){this.markerImage.removeChild(fe.container),this.markers.indexOf(fe)>-1&&this.markers.splice(this.markers.indexOf(fe),1),fe.dispose()},xe.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())},xe.prototype.toolbarButtonClicked=function(fe,ue){if(fe==="marker"&&ue!==void 0)this.createNewMarker(ue);else if(fe==="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()}},xe.prototype.deleteSelectedMarker=function(){var fe=this;if(this._currentMarker!==void 0){var ue=!1;if(this.eventListeners.markerbeforedelete.forEach(function(me){var oe=new on(fe,fe._currentMarker,!0);me(oe),oe.defaultPrevented&&(ue=!0)}),!ue){var he=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(me){return me(new on(fe,he))})}}},xe.prototype.clear=function(){var fe=this,ue=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ne){var At=new on(fe,void 0,!0);Ne(At),At.defaultPrevented&&(ue=!0)}),!ue)){this.setCurrentMarker();for(var he=function(Ne){var At=me.markers[Ne];me.setCurrentMarker(me.markers[Ne]),me._currentMarker.dispose(),me.markerImage.removeChild(me._currentMarker.container),me.markers.splice(me.markers.indexOf(me._currentMarker),1),me.eventListeners.markerdelete.forEach(function(Ge){return Ge(new on(fe,At))})},me=this,oe=this.markers.length-1;oe>=0;oe--)he(oe);this.addUndoStep()}},Object.defineProperty(xe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),xe.prototype.showNotesEditor=function(){var fe;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(fe=this._currentMarker.notes)!==null&&fe!==void 0?fe:"",this.overlayContainer.appendChild(this.notesArea))},xe.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)},xe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},xe.prototype.addUndoStep=function(){var fe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ue=this.getState(),he=this.undoRedoManager.getLastUndoStep();if(!he||he.width===ue.width&&he.height===ue.height){var me=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ue),me<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(oe){return oe(new $t(fe))})}else this.undoRedoManager.replaceLastUndoStep(ue),this.eventListeners.statechange.forEach(function(oe){return oe(new $t(fe))})}},xe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},xe.prototype.undoStep=function(){var fe=this,ue=this.undoRedoManager.undo();ue!==void 0&&(this.restoreState(ue),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(he){return he(new $t(fe))}))},xe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},xe.prototype.redoStep=function(){var fe=this,ue=this.undoRedoManager.redo();ue!==void 0&&(this.restoreState(ue),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(he){return he(new $t(fe))}))},xe.prototype.stepZoom=function(){var fe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=fe<this.zoomSteps.length-1?this.zoomSteps[fe+1]:this.zoomSteps[0]},xe.prototype.panTo=function(fe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-fe.x,top:this.prevPanPoint.y-fe.y}),this.prevPanPoint=fe},xe.prototype.startRenderAndClose=function(){return Ee(this,void 0,void 0,function(){var fe,ue,he=this;return Ye(this,function(me){switch(me.label){case 0:return[4,this.render()];case 1:return fe=me.sent(),ue=this.getState(),this.eventListeners.render.forEach(function(oe){return oe(new Wt(he,fe,ue))}),this.close(!0),[2]}})})},xe.prototype.getState=function(fe){fe===!0&&this.setCurrentMarker();var ue={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(he){return ue.markers.push(he.getState())}),ue},xe.prototype.restoreState=function(fe){var ue=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);fe.markers.forEach(function(he){var me=ue._availableMarkerTypes.find(function(Ne){return Ne.typeName===he.typeName});if(me!==void 0){var oe=ue.addNewMarker(me);oe.restoreState(he),ue.markers.push(oe)}}),fe.width&&fe.height&&(fe.width!==this.imageWidth||fe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/fe.width,this.imageHeight/fe.height),this.eventListeners.restorestate.forEach(function(he){return he(new $t(ue))})},xe.prototype.addNewMarker=function(fe){var ue=Se.createGroup();return this.markerImage.appendChild(ue),new fe(ue,this.overlayContainer,this.settings)},xe.prototype.createNewMarker=function(fe){var ue,he=this;(ue=typeof fe=="string"?this._availableMarkerTypes.find(function(me){return me.typeName===fe}):fe)&&(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(me){return me(new on(he,he._currentMarker))}))},xe.prototype.markerCreated=function(fe){var ue=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(fe),this.setCurrentMarker(fe),fe instanceof Ve&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ve):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(he){return he(new on(ue,ue._currentMarker))})},xe.prototype.colorChanged=function(fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=fe,this.settings.defaultStrokeColor=fe)},xe.prototype.fillColorChanged=function(fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=fe)},xe.prototype.markerStateChanged=function(fe){var ue=this;this.eventListeners.markerchange.forEach(function(he){return he(new on(ue,fe))})},xe.prototype.setCurrentMarker=function(fe){var ue=this;this._currentMarker!==fe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(he){return he(new on(ue,ue._currentMarker))})),this._currentMarker=fe,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(he){return he(new on(ue,ue._currentMarker))}))},xe.prototype.onPointerDown=function(fe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||fe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ue=this.markers.find(function(he){return he.ownsTarget(fe.target)});ue!==void 0?(this.setCurrentMarker(ue),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(fe.clientX,fe.clientY),fe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:fe.clientX,y:fe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(fe.clientX,fe.clientY))},xe.prototype.onDblClick=function(fe){if(this._isFocused||this.focus(),this.mode==="select"){var ue=this.markers.find(function(he){return he.ownsTarget(fe.target)});ue!==void 0&&ue!==this._currentMarker&&this.setCurrentMarker(ue),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(fe.clientX,fe.clientY),fe.target):this.setCurrentMarker()}},xe.prototype.onPointerMove=function(fe){this.touchPoints!==1&&fe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||fe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(fe.clientX,fe.clientY)):this.zoomLevel>1&&this.panTo({x:fe.clientX,y:fe.clientY}))},xe.prototype.onPointerUp=function(fe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(fe.clientX,fe.clientY)),this.isDragging=!1,this.addUndoStep()},xe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},xe.prototype.onKeyUp=function(fe){this._currentMarker===void 0||this.notesArea!==void 0||fe.key!=="Delete"&&fe.key!=="Backspace"||this.deleteSelectedMarker()},xe.prototype.clientToLocalCoordinates=function(fe,ue){var he=this.markerImage.getBoundingClientRect();return{x:(fe-he.left)/this.zoomLevel,y:(ue-he.top)/this.zoomLevel}},xe.prototype.onWindowResize=function(){this.positionUI()},xe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var fe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=fe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},xe.prototype.addLicenseKey=function(fe){pe.addKey(fe)},xe.prototype.addEventListener=function(fe,ue){this.eventListeners.addEventListener(fe,ue)},xe.prototype.removeEventListener=function(fe,ue){this.eventListeners.removeEventListener(fe,ue)},xe.prototype.renderState=function(fe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(fe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(xe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),xe.prototype.focus=function(){var fe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ue){return ue(new $t(fe))}))},xe.prototype.blur=function(){var fe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ue){return ue(new $t(fe))}))},xe.instanceCounter=0,xe}()},5630:function(An,tn,ne){"use strict";var E=ne(60499),ye=ne(85899),Ee=ne(18642),Ye=ne(72190),Ce=ne(42244),Se=ne(92310),pe=ne.n(Se),be=ne(18929),De=ne(59301),Pe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],et=(0,De.forwardRef)(function(Fe,Ie){var tt,ze=Fe.prefixCls,We=ze===void 0?"rc-checkbox":ze,lt=Fe.className,Xe=Fe.style,Dt=Fe.checked,dt=Fe.disabled,Qe=Fe.defaultChecked,Ze=Qe===void 0?!1:Qe,Ae=Fe.type,Je=Ae===void 0?"checkbox":Ae,Re=Fe.title,vt=Fe.onChange,$e=(0,Ce.Z)(Fe,Pe),mt=(0,De.useRef)(null),Be=(0,be.Z)(Ze,{value:Dt}),xt=(0,Ye.Z)(Be,2),Ve=xt[0],Ot=xt[1];(0,De.useImperativeHandle)(Ie,function(){return{focus:function(){var at;(at=mt.current)===null||at===void 0||at.focus()},blur:function(){var at;(at=mt.current)===null||at===void 0||at.blur()},input:mt.current}});var nt=pe()(We,lt,(tt={},(0,Ee.Z)(tt,"".concat(We,"-checked"),Ve),(0,Ee.Z)(tt,"".concat(We,"-disabled"),dt),tt)),wt=function(at){dt||("checked"in Fe||Ot(at.target.checked),vt==null||vt({target:(0,ye.Z)((0,ye.Z)({},Fe),{},{type:Je,checked:at.target.checked}),stopPropagation:function(){at.stopPropagation()},preventDefault:function(){at.preventDefault()},nativeEvent:at.nativeEvent}))};return De.createElement("span",{className:nt,title:Re,style:Xe},De.createElement("input",(0,E.Z)({},$e,{className:"".concat(We,"-input"),ref:mt,onChange:wt,disabled:dt,checked:!!Ve,type:Je})),De.createElement("span",{className:"".concat(We,"-inner")}))});tn.Z=et},31561:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Je}});var E=ne(60499),ye=ne(18642),Ee=ne(72190),Ye=ne(42244),Ce=ne(35593),Se=ne(92310),pe=ne.n(Se),be=ne(8654),De=ne(59301),Pe=ne(10228),et=ne(16089),Fe=Pe.Z.ESC,Ie=Pe.Z.TAB;function tt(Re){var vt=Re.visible,$e=Re.triggerRef,mt=Re.onVisibleChange,Be=Re.autoFocus,xt=Re.overlayRef,Ve=De.useRef(!1),Ot=function(){if(vt){var at,Le;(at=$e.current)===null||at===void 0||(Le=at.focus)===null||Le===void 0||Le.call(at),mt==null||mt(!1)}},nt=function(){var at;return(at=xt.current)!==null&&at!==void 0&&at.focus?(xt.current.focus(),Ve.current=!0,!0):!1},wt=function(at){switch(at.keyCode){case Fe:Ot();break;case Ie:{var Le=!1;Ve.current||(Le=nt()),Le?at.preventDefault():Ot();break}}};De.useEffect(function(){return vt?(window.addEventListener("keydown",wt),Be&&(0,et.Z)(nt,3),function(){window.removeEventListener("keydown",wt),Ve.current=!1}):function(){Ve.current=!1}},[vt])}var ze=(0,De.forwardRef)(function(Re,vt){var $e=Re.overlay,mt=Re.arrow,Be=Re.prefixCls,xt=(0,De.useMemo)(function(){var Ot;return typeof $e=="function"?Ot=$e():Ot=$e,Ot},[$e]),Ve=(0,be.sQ)(vt,xt==null?void 0:xt.ref);return De.createElement(De.Fragment,null,mt&&De.createElement("div",{className:"".concat(Be,"-arrow")}),De.cloneElement(xt,{ref:(0,be.Yr)(xt)?Ve:void 0}))}),We=ze,lt={adjustX:1,adjustY:1},Xe=[0,0],Dt={topLeft:{points:["bl","tl"],overflow:lt,offset:[0,-4],targetOffset:Xe},top:{points:["bc","tc"],overflow:lt,offset:[0,-4],targetOffset:Xe},topRight:{points:["br","tr"],overflow:lt,offset:[0,-4],targetOffset:Xe},bottomLeft:{points:["tl","bl"],overflow:lt,offset:[0,4],targetOffset:Xe},bottom:{points:["tc","bc"],overflow:lt,offset:[0,4],targetOffset:Xe},bottomRight:{points:["tr","br"],overflow:lt,offset:[0,4],targetOffset:Xe}},dt=Dt,Qe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ze(Re,vt){var $e,mt=Re.arrow,Be=mt===void 0?!1:mt,xt=Re.prefixCls,Ve=xt===void 0?"rc-dropdown":xt,Ot=Re.transitionName,nt=Re.animation,wt=Re.align,Mt=Re.placement,at=Mt===void 0?"bottomLeft":Mt,Le=Re.placements,Me=Le===void 0?dt:Le,st=Re.getPopupContainer,Ht=Re.showAction,Tt=Re.hideAction,ct=Re.overlayClassName,Ct=Re.overlayStyle,Zt=Re.visible,gn=Re.trigger,$t=gn===void 0?["hover"]:gn,Wt=Re.autoFocus,on=Re.overlay,dn=Re.children,ln=Re.onVisibleChange,xe=(0,Ye.Z)(Re,Qe),fe=De.useState(),ue=(0,Ee.Z)(fe,2),he=ue[0],me=ue[1],oe="visible"in Re?Zt:he,Ne=De.useRef(null),At=De.useRef(null),Ge=De.useRef(null);De.useImperativeHandle(vt,function(){return Ne.current});var je=function(Bt){me(Bt),ln==null||ln(Bt)};tt({visible:oe,triggerRef:Ge,onVisibleChange:je,autoFocus:Wt,overlayRef:At});var Pt=function(Bt){var Ke=Re.onOverlayClick;me(!1),Ke&&Ke(Bt)},Et=function(){return De.createElement(We,{ref:At,overlay:on,prefixCls:Ve,arrow:Be})},ht=function(){return typeof on=="function"?Et:Et()},Kt=function(){var Bt=Re.minOverlayWidthMatchTrigger,Ke=Re.alignPoint;return"minOverlayWidthMatchTrigger"in Re?Bt:!Ke},vn=function(){var Bt=Re.openClassName;return Bt!==void 0?Bt:"".concat(Ve,"-open")},kt=De.cloneElement(dn,{className:pe()(($e=dn.props)===null||$e===void 0?void 0:$e.className,oe&&vn()),ref:(0,be.Yr)(dn)?(0,be.sQ)(Ge,dn.ref):void 0}),Ut=Tt;return!Ut&&$t.indexOf("contextMenu")!==-1&&(Ut=["click"]),De.createElement(Ce.Z,(0,E.Z)({builtinPlacements:Me},xe,{prefixCls:Ve,ref:Ne,popupClassName:pe()(ct,(0,ye.Z)({},"".concat(Ve,"-show-arrow"),Be)),popupStyle:Ct,action:$t,showAction:Ht,hideAction:Ut,popupPlacement:at,popupAlign:wt,popupTransitionName:Ot,popupAnimation:nt,popupVisible:oe,stretch:Kt()?"minWidth":"",popup:ht(),onPopupVisibleChange:je,onPopupClick:Pt,getPopupContainer:st}),kt)}var Ae=De.forwardRef(Ze),Je=Ae},93681:function(An,tn,ne){"use strict";ne.r(tn),ne.d(tn,{BaseInput:function(){return Pe},default:function(){return Dt}});var E=ne(60499),ye=ne(85899),Ee=ne(18642),Ye=ne(43749),Ce=ne(92310),Se=ne.n(Ce),pe=ne(59301),be=ne(5643),De=function(Qe){var Ze,Ae,Je=Qe.inputElement,Re=Qe.prefixCls,vt=Qe.prefix,$e=Qe.suffix,mt=Qe.addonBefore,Be=Qe.addonAfter,xt=Qe.className,Ve=Qe.style,Ot=Qe.disabled,nt=Qe.readOnly,wt=Qe.focused,Mt=Qe.triggerFocus,at=Qe.allowClear,Le=Qe.value,Me=Qe.handleReset,st=Qe.hidden,Ht=Qe.classes,Tt=Qe.classNames,ct=Qe.dataAttrs,Ct=Qe.styles,Zt=Qe.components,gn=(Zt==null?void 0:Zt.affixWrapper)||"span",$t=(Zt==null?void 0:Zt.groupWrapper)||"span",Wt=(Zt==null?void 0:Zt.wrapper)||"span",on=(Zt==null?void 0:Zt.groupAddon)||"span",dn=(0,pe.useRef)(null),ln=function(Et){var ht;(ht=dn.current)!==null&&ht!==void 0&&ht.contains(Et.target)&&(Mt==null||Mt())},xe=function(){var Et;if(!at)return null;var ht=!Ot&&!nt&&Le,Kt="".concat(Re,"-clear-icon"),vn=(0,Ye.Z)(at)==="object"&&at!==null&&at!==void 0&&at.clearIcon?at.clearIcon:"\u2716";return pe.createElement("span",{onClick:Me,onMouseDown:function(Ut){return Ut.preventDefault()},className:Se()(Kt,(Et={},(0,Ee.Z)(Et,"".concat(Kt,"-hidden"),!ht),(0,Ee.Z)(Et,"".concat(Kt,"-has-suffix"),!!$e),Et)),role:"button",tabIndex:-1},vn)},fe=(0,pe.cloneElement)(Je,{value:Le,hidden:st,className:Se()((Ze=Je.props)===null||Ze===void 0?void 0:Ze.className,!(0,be.X3)(Qe)&&!(0,be.He)(Qe)&&xt)||null,style:(0,ye.Z)((0,ye.Z)({},(Ae=Je.props)===null||Ae===void 0?void 0:Ae.style),!(0,be.X3)(Qe)&&!(0,be.He)(Qe)?Ve:{})});if((0,be.X3)(Qe)){var ue,he="".concat(Re,"-affix-wrapper"),me=Se()(he,(ue={},(0,Ee.Z)(ue,"".concat(he,"-disabled"),Ot),(0,Ee.Z)(ue,"".concat(he,"-focused"),wt),(0,Ee.Z)(ue,"".concat(he,"-readonly"),nt),(0,Ee.Z)(ue,"".concat(he,"-input-with-clear-btn"),$e&&at&&Le),ue),!(0,be.He)(Qe)&&xt,Ht==null?void 0:Ht.affixWrapper,Tt==null?void 0:Tt.affixWrapper),oe=($e||at)&&pe.createElement("span",{className:Se()("".concat(Re,"-suffix"),Tt==null?void 0:Tt.suffix),style:Ct==null?void 0:Ct.suffix},xe(),$e);fe=pe.createElement(gn,(0,E.Z)({className:me,style:(0,ye.Z)((0,ye.Z)({},(0,be.He)(Qe)?void 0:Ve),Ct==null?void 0:Ct.affixWrapper),hidden:!(0,be.He)(Qe)&&st,onClick:ln},ct==null?void 0:ct.affixWrapper,{ref:dn}),vt&&pe.createElement("span",{className:Se()("".concat(Re,"-prefix"),Tt==null?void 0:Tt.prefix),style:Ct==null?void 0:Ct.prefix},vt),(0,pe.cloneElement)(Je,{value:Le,hidden:null}),oe)}if((0,be.He)(Qe)){var Ne="".concat(Re,"-group"),At="".concat(Ne,"-addon"),Ge=Se()("".concat(Re,"-wrapper"),Ne,Ht==null?void 0:Ht.wrapper),je=Se()("".concat(Re,"-group-wrapper"),xt,Ht==null?void 0:Ht.group);return pe.createElement($t,{className:je,style:Ve,hidden:st},pe.createElement(Wt,{className:Ge},mt&&pe.createElement(on,{className:At},mt),(0,pe.cloneElement)(fe,{hidden:null}),Be&&pe.createElement(on,{className:At},Be)))}return fe},Pe=De,et=ne(77654),Fe=ne(72190),Ie=ne(42244),tt=ne(18929),ze=ne(2738),We=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],lt=(0,pe.forwardRef)(function(dt,Qe){var Ze=dt.autoComplete,Ae=dt.onChange,Je=dt.onFocus,Re=dt.onBlur,vt=dt.onPressEnter,$e=dt.onKeyDown,mt=dt.prefixCls,Be=mt===void 0?"rc-input":mt,xt=dt.disabled,Ve=dt.htmlSize,Ot=dt.className,nt=dt.maxLength,wt=dt.suffix,Mt=dt.showCount,at=dt.type,Le=at===void 0?"text":at,Me=dt.classes,st=dt.classNames,Ht=dt.styles,Tt=(0,Ie.Z)(dt,We),ct=(0,tt.Z)(dt.defaultValue,{value:dt.value}),Ct=(0,Fe.Z)(ct,2),Zt=Ct[0],gn=Ct[1],$t=(0,pe.useState)(!1),Wt=(0,Fe.Z)($t,2),on=Wt[0],dn=Wt[1],ln=(0,pe.useRef)(null),xe=function(je){ln.current&&(0,be.nH)(ln.current,je)};(0,pe.useImperativeHandle)(Qe,function(){return{focus:xe,blur:function(){var je;(je=ln.current)===null||je===void 0||je.blur()},setSelectionRange:function(je,Pt,Et){var ht;(ht=ln.current)===null||ht===void 0||ht.setSelectionRange(je,Pt,Et)},select:function(){var je;(je=ln.current)===null||je===void 0||je.select()},input:ln.current}}),(0,pe.useEffect)(function(){dn(function(Ge){return Ge&&xt?!1:Ge})},[xt]);var fe=function(je){dt.value===void 0&&gn(je.target.value),ln.current&&(0,be.rJ)(ln.current,je,Ae)},ue=function(je){vt&&je.key==="Enter"&&vt(je),$e==null||$e(je)},he=function(je){dn(!0),Je==null||Je(je)},me=function(je){dn(!1),Re==null||Re(je)},oe=function(je){gn(""),xe(),ln.current&&(0,be.rJ)(ln.current,je,Ae)},Ne=function(){var je=(0,ze.Z)(dt,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return pe.createElement("input",(0,E.Z)({autoComplete:Ze},je,{onChange:fe,onFocus:he,onBlur:me,onKeyDown:ue,className:Se()(Be,(0,Ee.Z)({},"".concat(Be,"-disabled"),xt),st==null?void 0:st.input),style:Ht==null?void 0:Ht.input,ref:ln,size:Ve,type:Le}))},At=function(){var je=Number(nt)>0;if(wt||Mt){var Pt=(0,be.D7)(Zt),Et=(0,et.Z)(Pt).length,ht=(0,Ye.Z)(Mt)==="object"?Mt.formatter({value:Pt,count:Et,maxLength:nt}):"".concat(Et).concat(je?" / ".concat(nt):"");return pe.createElement(pe.Fragment,null,!!Mt&&pe.createElement("span",{className:Se()("".concat(Be,"-show-count-suffix"),(0,Ee.Z)({},"".concat(Be,"-show-count-has-suffix"),!!wt),st==null?void 0:st.count),style:(0,ye.Z)({},Ht==null?void 0:Ht.count)},ht),wt)}return null};return pe.createElement(Pe,(0,E.Z)({},Tt,{prefixCls:Be,className:Ot,inputElement:Ne(),handleReset:oe,value:(0,be.D7)(Zt),focused:on,triggerFocus:xe,suffix:At(),disabled:xt,classes:Me,classNames:st,styles:Ht}))}),Xe=lt,Dt=Xe},5643:function(An,tn,ne){"use strict";ne.d(tn,{D7:function(){return Ce},He:function(){return E},X3:function(){return ye},nH:function(){return Ye},rJ:function(){return Ee}});function E(Se){return!!(Se.addonBefore||Se.addonAfter)}function ye(Se){return!!(Se.prefix||Se.suffix||Se.allowClear)}function Ee(Se,pe,be,De){if(be){var Pe=pe;if(pe.type==="click"){var et=Se.cloneNode(!0);Pe=Object.create(pe,{target:{value:et},currentTarget:{value:et}}),et.value="",be(Pe);return}if(De!==void 0){Pe=Object.create(pe,{target:{value:Se},currentTarget:{value:Se}}),Se.value=De,be(Pe);return}be(Pe)}}function Ye(Se,pe){if(Se){Se.focus(pe);var be=pe||{},De=be.cursor;if(De){var Pe=Se.value.length;switch(De){case"start":Se.setSelectionRange(0,0);break;case"end":Se.setSelectionRange(Pe,Pe);break;default:Se.setSelectionRange(0,Pe)}}}}function Ce(Se){return typeof Se=="undefined"||Se===null?"":String(Se)}},15285:function(An,tn,ne){"use strict";ne.d(tn,{iz:function(){return $n},ck:function(){return Xn},BW:function(){return cr},sN:function(){return Xn},Wd:function(){return Qt},ZP:function(){return fi},Xl:function(){return $e}});var E=ne(60499),ye=ne(18642),Ee=ne(85899),Ye=ne(77654),Ce=ne(72190),Se=ne(42244),pe=ne(92310),be=ne.n(pe),De=ne(83836),Pe=ne(18929),et=ne(13697),Fe=ne(48736),Ie=ne(59301),tt=ne(4676),ze=Ie.createContext(null);function We(Jt,On){return Jt===void 0?null:"".concat(Jt,"-").concat(On)}function lt(Jt){var On=Ie.useContext(ze);return We(On,Jt)}var Xe=ne(80547),Dt=["children","locked"],dt=Ie.createContext(null);function Qe(Jt,On){var Hn=(0,Ee.Z)({},Jt);return Object.keys(On).forEach(function(qn){var kn=On[qn];kn!==void 0&&(Hn[qn]=kn)}),Hn}function Ze(Jt){var On=Jt.children,Hn=Jt.locked,qn=(0,Se.Z)(Jt,Dt),kn=Ie.useContext(dt),Vn=(0,Xe.Z)(function(){return Qe(kn,qn)},[kn,qn],function(Pn,fr){return!Hn&&(Pn[0]!==fr[0]||!(0,et.Z)(Pn[1],fr[1],!0))});return Ie.createElement(dt.Provider,{value:Vn},On)}var Ae=[],Je=Ie.createContext(null);function Re(){return Ie.useContext(Je)}var vt=Ie.createContext(Ae);function $e(Jt){var On=Ie.useContext(vt);return Ie.useMemo(function(){return Jt!==void 0?[].concat((0,Ye.Z)(On),[Jt]):On},[On,Jt])}var mt=Ie.createContext(null),Be=Ie.createContext({}),xt=Be,Ve=ne(29194);function Ot(Jt){var On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,Ve.Z)(Jt)){var Hn=Jt.nodeName.toLowerCase(),qn=["input","select","textarea","button"].includes(Hn)||Jt.isContentEditable||Hn==="a"&&!!Jt.getAttribute("href"),kn=Jt.getAttribute("tabindex"),Vn=Number(kn),Pn=null;return kn&&!Number.isNaN(Vn)?Pn=Vn:qn&&Pn===null&&(Pn=0),qn&&Jt.disabled&&(Pn=null),Pn!==null&&(Pn>=0||On&&Pn<0)}return!1}function nt(Jt){var On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Hn=(0,Ye.Z)(Jt.querySelectorAll("*")).filter(function(qn){return Ot(qn,On)});return Ot(Jt,On)&&Hn.unshift(Jt),Hn}var wt=null;function Mt(){wt=document.activeElement}function at(){wt=null}function Le(){if(wt)try{wt.focus()}catch(Jt){}}function Me(Jt,On){if(On.keyCode===9){var Hn=nt(Jt),qn=Hn[On.shiftKey?0:Hn.length-1],kn=qn===document.activeElement||Jt===document.activeElement;if(kn){var Vn=Hn[On.shiftKey?Hn.length-1:0];Vn.focus(),On.preventDefault()}}}var st=ne(10228),Ht=ne(16089),Tt=st.Z.LEFT,ct=st.Z.RIGHT,Ct=st.Z.UP,Zt=st.Z.DOWN,gn=st.Z.ENTER,$t=st.Z.ESC,Wt=st.Z.HOME,on=st.Z.END,dn=[Ct,Zt,Tt,ct];function ln(Jt,On,Hn,qn){var kn,Vn,Pn,fr,Pr="prev",Gr="next",pi="children",gi="parent";if(Jt==="inline"&&qn===gn)return{inlineTrigger:!0};var Ri=(kn={},(0,ye.Z)(kn,Ct,Pr),(0,ye.Z)(kn,Zt,Gr),kn),Si=(Vn={},(0,ye.Z)(Vn,Tt,Hn?Gr:Pr),(0,ye.Z)(Vn,ct,Hn?Pr:Gr),(0,ye.Z)(Vn,Zt,pi),(0,ye.Z)(Vn,gn,pi),Vn),wi=(Pn={},(0,ye.Z)(Pn,Ct,Pr),(0,ye.Z)(Pn,Zt,Gr),(0,ye.Z)(Pn,gn,pi),(0,ye.Z)(Pn,$t,gi),(0,ye.Z)(Pn,Tt,Hn?pi:gi),(0,ye.Z)(Pn,ct,Hn?gi:pi),Pn),Zi={inline:Ri,horizontal:Si,vertical:wi,inlineSub:Ri,horizontalSub:wi,verticalSub:wi},ji=(fr=Zi["".concat(Jt).concat(On?"":"Sub")])===null||fr===void 0?void 0:fr[qn];switch(ji){case Pr:return{offset:-1,sibling:!0};case Gr:return{offset:1,sibling:!0};case gi:return{offset:-1,sibling:!1};case pi:return{offset:1,sibling:!1};default:return null}}function xe(Jt){for(var On=Jt;On;){if(On.getAttribute("data-menu-list"))return On;On=On.parentElement}return null}function fe(Jt,On){for(var Hn=Jt||document.activeElement;Hn;){if(On.has(Hn))return Hn;Hn=Hn.parentElement}return null}function ue(Jt,On){var Hn=nt(Jt,!0);return Hn.filter(function(qn){return On.has(qn)})}function he(Jt,On,Hn){var qn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Jt)return null;var kn=ue(Jt,On),Vn=kn.length,Pn=kn.findIndex(function(fr){return Hn===fr});return qn<0?Pn===-1?Pn=Vn-1:Pn-=1:qn>0&&(Pn+=1),Pn=(Pn+Vn)%Vn,kn[Pn]}var me=function(On,Hn){var qn=new Set,kn=new Map,Vn=new Map;return On.forEach(function(Pn){var fr=document.querySelector("[data-menu-id='".concat(We(Hn,Pn),"']"));fr&&(qn.add(fr),Vn.set(fr,Pn),kn.set(Pn,fr))}),{elements:qn,key2element:kn,element2key:Vn}};function oe(Jt,On,Hn,qn,kn,Vn,Pn,fr,Pr,Gr){var pi=Ie.useRef(),gi=Ie.useRef();gi.current=On;var Ri=function(){Ht.Z.cancel(pi.current)};return Ie.useEffect(function(){return function(){Ri()}},[]),function(Si){var wi=Si.which;if([].concat(dn,[gn,$t,Wt,on]).includes(wi)){var Zi=Vn(),ji=me(Zi,qn),Gi=ji,Bi=Gi.elements,Di=Gi.key2element,zr=Gi.element2key,li=Di.get(On),Ii=fe(li,Bi),ya=zr.get(Ii),vi=ln(Jt,Pn(ya,!0).length===1,Hn,wi);if(!vi&&wi!==Wt&&wi!==on)return;(dn.includes(wi)||[Wt,on].includes(wi))&&Si.preventDefault();var jr=function(Na){if(Na){var Po=Na,ki=Na.querySelector("a");ki!=null&&ki.getAttribute("href")&&(Po=ki);var Hi=zr.get(Na);fr(Hi),Ri(),pi.current=(0,Ht.Z)(function(){gi.current===Hi&&Po.focus()})}};if([Wt,on].includes(wi)||vi.sibling||!Ii){var Ir;!Ii||Jt==="inline"?Ir=kn.current:Ir=xe(Ii);var Vi,xi=ue(Ir,Bi);wi===Wt?Vi=xi[0]:wi===on?Vi=xi[xi.length-1]:Vi=he(Ir,Bi,Ii,vi.offset),jr(Vi)}else if(vi.inlineTrigger)Pr(ya);else if(vi.offset>0)Pr(ya,!0),Ri(),pi.current=(0,Ht.Z)(function(){ji=me(Zi,qn);var xa=Ii.getAttribute("aria-controls"),Na=document.getElementById(xa),Po=he(Na,ji.elements);jr(Po)},5);else if(vi.offset<0){var na=Pn(ya,!0),ba=na[na.length-2],oa=Di.get(ba);Pr(ba,!1),jr(oa)}}Gr==null||Gr(Si)}}function Ne(Jt){Promise.resolve().then(Jt)}var At="__RC_UTIL_PATH_SPLIT__",Ge=function(On){return On.join(At)},je=function(On){return On.split(At)},Pt="rc-menu-more";function Et(){var Jt=Ie.useState({}),On=(0,Ce.Z)(Jt,2),Hn=On[1],qn=(0,Ie.useRef)(new Map),kn=(0,Ie.useRef)(new Map),Vn=Ie.useState([]),Pn=(0,Ce.Z)(Vn,2),fr=Pn[0],Pr=Pn[1],Gr=(0,Ie.useRef)(0),pi=(0,Ie.useRef)(!1),gi=function(){pi.current||Hn({})},Ri=(0,Ie.useCallback)(function(Di,zr){var li=Ge(zr);kn.current.set(li,Di),qn.current.set(Di,li),Gr.current+=1;var Ii=Gr.current;Ne(function(){Ii===Gr.current&&gi()})},[]),Si=(0,Ie.useCallback)(function(Di,zr){var li=Ge(zr);kn.current.delete(li),qn.current.delete(Di)},[]),wi=(0,Ie.useCallback)(function(Di){Pr(Di)},[]),Zi=(0,Ie.useCallback)(function(Di,zr){var li=qn.current.get(Di)||"",Ii=je(li);return zr&&fr.includes(Ii[0])&&Ii.unshift(Pt),Ii},[fr]),ji=(0,Ie.useCallback)(function(Di,zr){return Di.some(function(li){var Ii=Zi(li,!0);return Ii.includes(zr)})},[Zi]),Gi=function(){var zr=(0,Ye.Z)(qn.current.keys());return fr.length&&zr.push(Pt),zr},Bi=(0,Ie.useCallback)(function(Di){var zr="".concat(qn.current.get(Di)).concat(At),li=new Set;return(0,Ye.Z)(kn.current.keys()).forEach(function(Ii){Ii.startsWith(zr)&&li.add(kn.current.get(Ii))}),li},[]);return Ie.useEffect(function(){return function(){pi.current=!0}},[]),{registerPath:Ri,unregisterPath:Si,refreshOverflowKeys:wi,isSubPathKey:ji,getKeyPath:Zi,getKeys:Gi,getSubPathKeys:Bi}}function ht(Jt){var On=Ie.useRef(Jt);On.current=Jt;var Hn=Ie.useCallback(function(){for(var qn,kn=arguments.length,Vn=new Array(kn),Pn=0;Pn<kn;Pn++)Vn[Pn]=arguments[Pn];return(qn=On.current)===null||qn===void 0?void 0:qn.call.apply(qn,[On].concat(Vn))},[]);return Jt?Hn:void 0}var Kt=Math.random().toFixed(5).toString().slice(2),vn=0;function kt(Jt){var On=(0,Pe.Z)(Jt,{value:Jt}),Hn=(0,Ce.Z)(On,2),qn=Hn[0],kn=Hn[1];return Ie.useEffect(function(){vn+=1;var Vn="".concat(Kt,"-").concat(vn);kn("rc-menu-uuid-".concat(Vn))},[]),qn}var Ut=ne(38705),yn=ne(17212),Bt=ne(39153),Ke=ne(55401),gt=ne(2738),Vt=ne(8654);function Nt(Jt,On,Hn,qn){var kn=Ie.useContext(dt),Vn=kn.activeKey,Pn=kn.onActive,fr=kn.onInactive,Pr={active:Vn===Jt};return On||(Pr.onMouseEnter=function(Gr){Hn==null||Hn({key:Jt,domEvent:Gr}),Pn(Jt)},Pr.onMouseLeave=function(Gr){qn==null||qn({key:Jt,domEvent:Gr}),fr(Jt)}),Pr}function Xt(Jt){var On=Ie.useContext(dt),Hn=On.mode,qn=On.rtl,kn=On.inlineIndent;if(Hn!=="inline")return null;var Vn=Jt;return qn?{paddingRight:Vn*kn}:{paddingLeft:Vn*kn}}function Mn(Jt){var On=Jt.icon,Hn=Jt.props,qn=Jt.children,kn;return On===null||On===!1?null:(typeof On=="function"?kn=Ie.createElement(On,(0,Ee.Z)({},Hn)):typeof On!="boolean"&&(kn=On),kn||qn||null)}var Tn=["item"];function Rn(Jt){var On=Jt.item,Hn=(0,Se.Z)(Jt,Tn);return Object.defineProperty(Hn,"item",{get:function(){return(0,Fe.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),On}}),Hn}var ur=["title","attribute","elementRef"],vr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],dr=["active"],mn=function(Jt){(0,Bt.Z)(Hn,Jt);var On=(0,Ke.Z)(Hn);function Hn(){return(0,Ut.Z)(this,Hn),On.apply(this,arguments)}return(0,yn.Z)(Hn,[{key:"render",value:function(){var kn=this.props,Vn=kn.title,Pn=kn.attribute,fr=kn.elementRef,Pr=(0,Se.Z)(kn,ur),Gr=(0,gt.Z)(Pr,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Fe.ZP)(!Pn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),Ie.createElement(De.Z.Item,(0,E.Z)({},Pn,{title:typeof Vn=="string"?Vn:void 0},Gr,{ref:fr}))}}]),Hn}(Ie.Component),zn=Ie.forwardRef(function(Jt,On){var Hn,qn=Jt.style,kn=Jt.className,Vn=Jt.eventKey,Pn=Jt.warnKey,fr=Jt.disabled,Pr=Jt.itemIcon,Gr=Jt.children,pi=Jt.role,gi=Jt.onMouseEnter,Ri=Jt.onMouseLeave,Si=Jt.onClick,wi=Jt.onKeyDown,Zi=Jt.onFocus,ji=(0,Se.Z)(Jt,vr),Gi=lt(Vn),Bi=Ie.useContext(dt),Di=Bi.prefixCls,zr=Bi.onItemClick,li=Bi.disabled,Ii=Bi.overflowDisabled,ya=Bi.itemIcon,vi=Bi.selectedKeys,jr=Bi.onActive,Ir=Ie.useContext(xt),Vi=Ir._internalRenderMenuItem,xi="".concat(Di,"-item"),na=Ie.useRef(),ba=Ie.useRef(),oa=li||fr,xa=(0,Vt.x1)(On,ba),Na=$e(Vn),Po=function(ri){return{key:Vn,keyPath:(0,Ye.Z)(Na).reverse(),item:na.current,domEvent:ri}},ki=Pr||ya,Hi=Nt(Vn,oa,gi,Ri),Aa=Hi.active,Ma=(0,Se.Z)(Hi,dr),lo=vi.includes(Vn),hl=Xt(Na.length),qo=function(ri){if(!oa){var hi=Po(ri);Si==null||Si(Rn(hi)),zr(hi)}},co=function(ri){if(wi==null||wi(ri),ri.which===st.Z.ENTER){var hi=Po(ri);Si==null||Si(Rn(hi)),zr(hi)}},Ho=function(ri){jr(Vn),Zi==null||Zi(ri)},Vo={};Jt.role==="option"&&(Vo["aria-selected"]=lo);var Qr=Ie.createElement(mn,(0,E.Z)({ref:na,elementRef:xa,role:pi===null?"none":pi||"menuitem",tabIndex:fr?null:-1,"data-menu-id":Ii&&Gi?null:Gi},ji,Ma,Vo,{component:"li","aria-disabled":fr,style:(0,Ee.Z)((0,Ee.Z)({},hl),qn),className:be()(xi,(Hn={},(0,ye.Z)(Hn,"".concat(xi,"-active"),Aa),(0,ye.Z)(Hn,"".concat(xi,"-selected"),lo),(0,ye.Z)(Hn,"".concat(xi,"-disabled"),oa),Hn),kn),onClick:qo,onKeyDown:co,onFocus:Ho}),Gr,Ie.createElement(Mn,{props:(0,Ee.Z)((0,Ee.Z)({},Jt),{},{isSelected:lo}),icon:ki}));return Vi&&(Qr=Vi(Qr,Jt,{selected:lo})),Qr});function jn(Jt,On){var Hn=Jt.eventKey,qn=Re(),kn=$e(Hn);return Ie.useEffect(function(){if(qn)return qn.registerPath(Hn,kn),function(){qn.unregisterPath(Hn,kn)}},[kn]),qn?null:Ie.createElement(zn,(0,E.Z)({},Jt,{ref:On}))}var Xn=Ie.forwardRef(jn),Sr=["className","children"],Kr=function(On,Hn){var qn=On.className,kn=On.children,Vn=(0,Se.Z)(On,Sr),Pn=Ie.useContext(dt),fr=Pn.prefixCls,Pr=Pn.mode,Gr=Pn.rtl;return Ie.createElement("ul",(0,E.Z)({className:be()(fr,Gr&&"".concat(fr,"-rtl"),"".concat(fr,"-sub"),"".concat(fr,"-").concat(Pr==="inline"?"inline":"vertical"),qn),role:"menu"},Vn,{"data-menu-list":!0,ref:Hn}),kn)},ar=Ie.forwardRef(Kr);ar.displayName="SubMenuList";var Zn=ar,Wr=ne(11592);function Gt(Jt,On){return(0,Wr.Z)(Jt).map(function(Hn,qn){if(Ie.isValidElement(Hn)){var kn,Vn,Pn=Hn.key,fr=(kn=(Vn=Hn.props)===null||Vn===void 0?void 0:Vn.eventKey)!==null&&kn!==void 0?kn:Pn,Pr=fr==null;Pr&&(fr="tmp_key-".concat([].concat((0,Ye.Z)(On),[qn]).join("-")));var Gr={key:fr,eventKey:fr};return Ie.cloneElement(Hn,Gr)}return Hn})}var or=ne(35593),er={adjustX:1,adjustY:1},Kn={topLeft:{points:["bl","tl"],overflow:er},topRight:{points:["br","tr"],overflow:er},bottomLeft:{points:["tl","bl"],overflow:er},bottomRight:{points:["tr","br"],overflow:er},leftTop:{points:["tr","tl"],overflow:er},leftBottom:{points:["br","bl"],overflow:er},rightTop:{points:["tl","tr"],overflow:er},rightBottom:{points:["bl","br"],overflow:er}},En={topLeft:{points:["bl","tl"],overflow:er},topRight:{points:["br","tr"],overflow:er},bottomLeft:{points:["tl","bl"],overflow:er},bottomRight:{points:["tr","br"],overflow:er},rightTop:{points:["tr","tl"],overflow:er},rightBottom:{points:["br","bl"],overflow:er},leftTop:{points:["tl","tr"],overflow:er},leftBottom:{points:["bl","br"],overflow:er}},nr=null;function lr(Jt,On,Hn){if(On)return On;if(Hn)return Hn[Jt]||Hn.other}var xr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function jt(Jt){var On=Jt.prefixCls,Hn=Jt.visible,qn=Jt.children,kn=Jt.popup,Vn=Jt.popupStyle,Pn=Jt.popupClassName,fr=Jt.popupOffset,Pr=Jt.disabled,Gr=Jt.mode,pi=Jt.onVisibleChange,gi=Ie.useContext(dt),Ri=gi.getPopupContainer,Si=gi.rtl,wi=gi.subMenuOpenDelay,Zi=gi.subMenuCloseDelay,ji=gi.builtinPlacements,Gi=gi.triggerSubMenuAction,Bi=gi.forceSubMenuRender,Di=gi.rootClassName,zr=gi.motion,li=gi.defaultMotions,Ii=Ie.useState(!1),ya=(0,Ce.Z)(Ii,2),vi=ya[0],jr=ya[1],Ir=Si?(0,Ee.Z)((0,Ee.Z)({},En),ji):(0,Ee.Z)((0,Ee.Z)({},Kn),ji),Vi=xr[Gr],xi=lr(Gr,zr,li),na=Ie.useRef(xi);Gr!=="inline"&&(na.current=xi);var ba=(0,Ee.Z)((0,Ee.Z)({},na.current),{},{leavedClassName:"".concat(On,"-hidden"),removeOnLeave:!1,motionAppear:!0}),oa=Ie.useRef();return Ie.useEffect(function(){return oa.current=(0,Ht.Z)(function(){jr(Hn)}),function(){Ht.Z.cancel(oa.current)}},[Hn]),Ie.createElement(or.Z,{prefixCls:On,popupClassName:be()("".concat(On,"-popup"),(0,ye.Z)({},"".concat(On,"-rtl"),Si),Pn,Di),stretch:Gr==="horizontal"?"minWidth":null,getPopupContainer:Ri,builtinPlacements:Ir,popupPlacement:Vi,popupVisible:vi,popup:kn,popupStyle:Vn,popupAlign:fr&&{offset:fr},action:Pr?[]:[Gi],mouseEnterDelay:wi,mouseLeaveDelay:Zi,onPopupVisibleChange:pi,forceRender:Bi,popupMotion:ba,fresh:!0},qn)}var Ue=ne(77900);function yt(Jt){var On=Jt.id,Hn=Jt.open,qn=Jt.keyPath,kn=Jt.children,Vn="inline",Pn=Ie.useContext(dt),fr=Pn.prefixCls,Pr=Pn.forceSubMenuRender,Gr=Pn.motion,pi=Pn.defaultMotions,gi=Pn.mode,Ri=Ie.useRef(!1);Ri.current=gi===Vn;var Si=Ie.useState(!Ri.current),wi=(0,Ce.Z)(Si,2),Zi=wi[0],ji=wi[1],Gi=Ri.current?Hn:!1;Ie.useEffect(function(){Ri.current&&ji(!1)},[gi]);var Bi=(0,Ee.Z)({},lr(Vn,Gr,pi));qn.length>1&&(Bi.motionAppear=!1);var Di=Bi.onVisibleChanged;return Bi.onVisibleChanged=function(zr){return!Ri.current&&!zr&&ji(!0),Di==null?void 0:Di(zr)},Zi?null:Ie.createElement(Ze,{mode:Vn,locked:!Ri.current},Ie.createElement(Ue.default,(0,E.Z)({visible:Gi},Bi,{forceRender:Pr,removeOnLeave:!1,leavedClassName:"".concat(fr,"-hidden")}),function(zr){var li=zr.className,Ii=zr.style;return Ie.createElement(Zn,{id:On,className:li,style:Ii},kn)}))}var ut=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],rt=["active"],_t=function(On){var Hn,qn=On.style,kn=On.className,Vn=On.title,Pn=On.eventKey,fr=On.warnKey,Pr=On.disabled,Gr=On.internalPopupClose,pi=On.children,gi=On.itemIcon,Ri=On.expandIcon,Si=On.popupClassName,wi=On.popupOffset,Zi=On.popupStyle,ji=On.onClick,Gi=On.onMouseEnter,Bi=On.onMouseLeave,Di=On.onTitleClick,zr=On.onTitleMouseEnter,li=On.onTitleMouseLeave,Ii=(0,Se.Z)(On,ut),ya=lt(Pn),vi=Ie.useContext(dt),jr=vi.prefixCls,Ir=vi.mode,Vi=vi.openKeys,xi=vi.disabled,na=vi.overflowDisabled,ba=vi.activeKey,oa=vi.selectedKeys,xa=vi.itemIcon,Na=vi.expandIcon,Po=vi.onItemClick,ki=vi.onOpenChange,Hi=vi.onActive,Aa=Ie.useContext(xt),Ma=Aa._internalRenderSubMenuItem,lo=Ie.useContext(mt),hl=lo.isSubPathKey,qo=$e(),co="".concat(jr,"-submenu"),Ho=xi||Pr,Vo=Ie.useRef(),Qr=Ie.useRef(),Ei=gi!=null?gi:xa,ri=Ri!=null?Ri:Na,hi=Vi.includes(Pn),Ta=!na&&hi,vo=hl(oa,Pn),go=Nt(Pn,Ho,zr,li),So=go.active,yo=(0,Se.Z)(go,rt),Lo=Ie.useState(!1),nl=(0,Ce.Z)(Lo,2),ea=nl[0],gl=nl[1],ol=function(Pa){Ho||gl(Pa)},pl=function(Pa){ol(!0),Gi==null||Gi({key:Pn,domEvent:Pa})},Xl=function(Pa){ol(!1),Bi==null||Bi({key:Pn,domEvent:Pa})},hr=Ie.useMemo(function(){return So||(Ir!=="inline"?ea||hl([ba],Pn):!1)},[Ir,So,ba,ea,Pn,hl]),Gn=Xt(qo.length),gr=function(Pa){Ho||(Di==null||Di({key:Pn,domEvent:Pa}),Ir==="inline"&&ki(Pn,!hi))},Vr=ht(function(mi){ji==null||ji(Rn(mi)),Po(mi)}),Xr=function(Pa){Ir!=="inline"&&ki(Pn,Pa)},si=function(){Hi(Pn)},pr=ya&&"".concat(ya,"-popup"),Jr=Ie.createElement("div",(0,E.Z)({role:"menuitem",style:Gn,className:"".concat(co,"-title"),tabIndex:Ho?null:-1,ref:Vo,title:typeof Vn=="string"?Vn:null,"data-menu-id":na&&ya?null:ya,"aria-expanded":Ta,"aria-haspopup":!0,"aria-controls":pr,"aria-disabled":Ho,onClick:gr,onFocus:si},yo),Vn,Ie.createElement(Mn,{icon:Ir!=="horizontal"?ri:void 0,props:(0,Ee.Z)((0,Ee.Z)({},On),{},{isOpen:Ta,isSubMenu:!0})},Ie.createElement("i",{className:"".concat(co,"-arrow")}))),Li=Ie.useRef(Ir);if(Ir!=="inline"&&qo.length>1?Li.current="vertical":Li.current=Ir,!na){var Oi=Li.current;Jr=Ie.createElement(jt,{mode:Oi,prefixCls:co,visible:!Gr&&Ta&&Ir!=="inline",popupClassName:Si,popupOffset:wi,popupStyle:Zi,popup:Ie.createElement(Ze,{mode:Oi==="horizontal"?"vertical":Oi},Ie.createElement(Zn,{id:pr,ref:Qr},pi)),disabled:Ho,onVisibleChange:Xr},Jr)}var la=Ie.createElement(De.Z.Item,(0,E.Z)({role:"none"},Ii,{component:"li",style:qn,className:be()(co,"".concat(co,"-").concat(Ir),kn,(Hn={},(0,ye.Z)(Hn,"".concat(co,"-open"),Ta),(0,ye.Z)(Hn,"".concat(co,"-active"),hr),(0,ye.Z)(Hn,"".concat(co,"-selected"),vo),(0,ye.Z)(Hn,"".concat(co,"-disabled"),Ho),Hn)),onMouseEnter:pl,onMouseLeave:Xl}),Jr,!na&&Ie.createElement(yt,{id:pr,open:Ta,keyPath:qo},pi));return Ma&&(la=Ma(la,On,{selected:vo,active:hr,open:Ta,disabled:Ho})),Ie.createElement(Ze,{onItemClick:Vr,mode:Ir==="horizontal"?"vertical":Ir,itemIcon:Ei,expandIcon:ri},la)};function Qt(Jt){var On=Jt.eventKey,Hn=Jt.children,qn=$e(On),kn=Gt(Hn,qn),Vn=Re();Ie.useEffect(function(){if(Vn)return Vn.registerPath(On,qn),function(){Vn.unregisterPath(On,qn)}},[qn]);var Pn;return Vn?Pn=kn:Pn=Ie.createElement(_t,Jt,kn),Ie.createElement(vt.Provider,{value:qn},Pn)}var pn=ne(43749),sn=["className","title","eventKey","children"],Bn=["children"],Yn=function(On){var Hn=On.className,qn=On.title,kn=On.eventKey,Vn=On.children,Pn=(0,Se.Z)(On,sn),fr=Ie.useContext(dt),Pr=fr.prefixCls,Gr="".concat(Pr,"-item-group");return Ie.createElement("li",(0,E.Z)({role:"presentation"},Pn,{onClick:function(gi){return gi.stopPropagation()},className:be()(Gr,Hn)}),Ie.createElement("div",{role:"presentation",className:"".concat(Gr,"-title"),title:typeof qn=="string"?qn:void 0},qn),Ie.createElement("ul",{role:"group",className:"".concat(Gr,"-list")},Vn))};function cr(Jt){var On=Jt.children,Hn=(0,Se.Z)(Jt,Bn),qn=$e(Hn.eventKey),kn=Gt(On,qn),Vn=Re();return Vn?kn:Ie.createElement(Yn,(0,gt.Z)(Hn,["warnKey"]),kn)}function $n(Jt){var On=Jt.className,Hn=Jt.style,qn=Ie.useContext(dt),kn=qn.prefixCls,Vn=Re();return Vn?null:Ie.createElement("li",{role:"separator",className:be()("".concat(kn,"-item-divider"),On),style:Hn})}var en=["label","children","key","type"];function rn(Jt){return(Jt||[]).map(function(On,Hn){if(On&&(0,pn.Z)(On)==="object"){var qn=On,kn=qn.label,Vn=qn.children,Pn=qn.key,fr=qn.type,Pr=(0,Se.Z)(qn,en),Gr=Pn!=null?Pn:"tmp-".concat(Hn);return Vn||fr==="group"?fr==="group"?Ie.createElement(cr,(0,E.Z)({key:Gr},Pr,{title:kn}),rn(Vn)):Ie.createElement(Qt,(0,E.Z)({key:Gr},Pr,{title:kn}),rn(Vn)):fr==="divider"?Ie.createElement($n,(0,E.Z)({key:Gr},Pr)):Ie.createElement(Xn,(0,E.Z)({key:Gr},Pr),kn)}return null}).filter(function(On){return On})}function Or(Jt,On,Hn){var qn=Jt;return On&&(qn=rn(On)),Gt(qn,Hn)}var kr=["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"],Cr=[],Dr=Ie.forwardRef(function(Jt,On){var Hn,qn,kn=Jt,Vn=kn.prefixCls,Pn=Vn===void 0?"rc-menu":Vn,fr=kn.rootClassName,Pr=kn.style,Gr=kn.className,pi=kn.tabIndex,gi=pi===void 0?0:pi,Ri=kn.items,Si=kn.children,wi=kn.direction,Zi=kn.id,ji=kn.mode,Gi=ji===void 0?"vertical":ji,Bi=kn.inlineCollapsed,Di=kn.disabled,zr=kn.disabledOverflow,li=kn.subMenuOpenDelay,Ii=li===void 0?.1:li,ya=kn.subMenuCloseDelay,vi=ya===void 0?.1:ya,jr=kn.forceSubMenuRender,Ir=kn.defaultOpenKeys,Vi=kn.openKeys,xi=kn.activeKey,na=kn.defaultActiveFirst,ba=kn.selectable,oa=ba===void 0?!0:ba,xa=kn.multiple,Na=xa===void 0?!1:xa,Po=kn.defaultSelectedKeys,ki=kn.selectedKeys,Hi=kn.onSelect,Aa=kn.onDeselect,Ma=kn.inlineIndent,lo=Ma===void 0?24:Ma,hl=kn.motion,qo=kn.defaultMotions,co=kn.triggerSubMenuAction,Ho=co===void 0?"hover":co,Vo=kn.builtinPlacements,Qr=kn.itemIcon,Ei=kn.expandIcon,ri=kn.overflowedIndicator,hi=ri===void 0?"...":ri,Ta=kn.overflowedIndicatorPopupClassName,vo=kn.getPopupContainer,go=kn.onClick,So=kn.onOpenChange,yo=kn.onKeyDown,Lo=kn.openAnimation,nl=kn.openTransitionName,ea=kn._internalRenderMenuItem,gl=kn._internalRenderSubMenuItem,ol=(0,Se.Z)(kn,kr),pl=Ie.useMemo(function(){return Or(Si,Ri,Cr)},[Si,Ri]),Xl=Ie.useState(!1),hr=(0,Ce.Z)(Xl,2),Gn=hr[0],gr=hr[1],Vr=Ie.useRef(),Xr=kt(Zi),si=wi==="rtl",pr=(0,Pe.Z)(Ir,{value:Vi,postState:function(ti){return ti||Cr}}),Jr=(0,Ce.Z)(pr,2),Li=Jr[0],Oi=Jr[1],la=function(ti){var Mi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function va(){Oi(ti),So==null||So(ti)}Mi?(0,tt.flushSync)(va):va()},mi=Ie.useState(Li),Pa=(0,Ce.Z)(mi,2),qa=Pa[0],Ka=Pa[1],Yi=Ie.useRef(!1),pa=Ie.useMemo(function(){return(Gi==="inline"||Gi==="vertical")&&Bi?["vertical",Bi]:[Gi,!1]},[Gi,Bi]),eo=(0,Ce.Z)(pa,2),ro=eo[0],xo=eo[1],Wl=ro==="inline",Qo=Ie.useState(ro),Cn=(0,Ce.Z)(Qo,2),wn=Cn[0],tr=Cn[1],Zr=Ie.useState(xo),_r=(0,Ce.Z)(Zr,2),Ar=_r[0],Mr=_r[1];Ie.useEffect(function(){tr(ro),Mr(xo),Yi.current&&(Wl?Oi(qa):la(Cr))},[ro,xo]);var Qn=Ie.useState(0),Er=(0,Ce.Z)(Qn,2),Yr=Er[0],yi=Er[1],ma=Yr>=pl.length-1||wn!=="horizontal"||zr;Ie.useEffect(function(){Wl&&Ka(Li)},[Li]),Ie.useEffect(function(){return Yi.current=!0,function(){Yi.current=!1}},[]);var Za=Et(),Ya=Za.registerPath,to=Za.unregisterPath,Ia=Za.refreshOverflowKeys,Xi=Za.isSubPathKey,Lr=Za.getKeyPath,aa=Za.getKeys,Ba=Za.getSubPathKeys,fo=Ie.useMemo(function(){return{registerPath:Ya,unregisterPath:to}},[Ya,to]),no=Ie.useMemo(function(){return{isSubPathKey:Xi}},[Xi]);Ie.useEffect(function(){Ia(ma?Cr:pl.slice(Yr+1).map(function(ir){return ir.key}))},[Yr,ma]);var ja=(0,Pe.Z)(xi||na&&((Hn=pl[0])===null||Hn===void 0?void 0:Hn.key),{value:xi}),Ao=(0,Ce.Z)(ja,2),Ua=Ao[0],Ni=Ao[1],Bo=ht(function(ir){Ni(ir)}),bo=ht(function(){Ni(void 0)});(0,Ie.useImperativeHandle)(On,function(){return{list:Vr.current,focus:function(ti){var Mi,va=aa(),ii=me(va,Xr),ca=ii.elements,Fi=ii.key2element,Hr=ii.element2key,Ur=ue(Vr.current,ca),ga=Ua!=null?Ua:Ur[0]?Hr.get(Ur[0]):(Mi=pl.find(function(wa){return!wa.props.disabled}))===null||Mi===void 0?void 0:Mi.key,Ga=Fi.get(ga);if(ga&&Ga){var Ci;Ga==null||(Ci=Ga.focus)===null||Ci===void 0||Ci.call(Ga,ti)}}}});var ll=(0,Pe.Z)(Po||[],{value:ki,postState:function(ti){return Array.isArray(ti)?ti:ti==null?Cr:[ti]}}),zl=(0,Ce.Z)(ll,2),Yt=zl[0],hn=zl[1],bn=function(ti){if(oa){var Mi=ti.key,va=Yt.includes(Mi),ii;Na?va?ii=Yt.filter(function(Fi){return Fi!==Mi}):ii=[].concat((0,Ye.Z)(Yt),[Mi]):ii=[Mi],hn(ii);var ca=(0,Ee.Z)((0,Ee.Z)({},ti),{},{selectedKeys:ii});va?Aa==null||Aa(ca):Hi==null||Hi(ca)}!Na&&Li.length&&wn!=="inline"&&la(Cr)},rr=ht(function(ir){go==null||go(Rn(ir)),bn(ir)}),Ki=ht(function(ir,ti){var Mi=Li.filter(function(ii){return ii!==ir});if(ti)Mi.push(ir);else if(wn!=="inline"){var va=Ba(ir);Mi=Mi.filter(function(ii){return!va.has(ii)})}(0,et.Z)(Li,Mi,!0)||la(Mi,!0)}),Br=function(ti,Mi){var va=Mi!=null?Mi:!Li.includes(ti);Ki(ti,va)},ai=oe(wn,Ua,si,Xr,Vr,aa,Lr,Ni,Br,yo);Ie.useEffect(function(){gr(!0)},[]);var ei=Ie.useMemo(function(){return{_internalRenderMenuItem:ea,_internalRenderSubMenuItem:gl}},[ea,gl]),ui=wn!=="horizontal"||zr?pl:pl.map(function(ir,ti){return Ie.createElement(Ze,{key:ir.key,overflowDisabled:ti>Yr},ir)}),Ai=Ie.createElement(De.Z,(0,E.Z)({id:Zi,ref:Vr,prefixCls:"".concat(Pn,"-overflow"),component:"ul",itemComponent:Xn,className:be()(Pn,"".concat(Pn,"-root"),"".concat(Pn,"-").concat(wn),Gr,(qn={},(0,ye.Z)(qn,"".concat(Pn,"-inline-collapsed"),Ar),(0,ye.Z)(qn,"".concat(Pn,"-rtl"),si),qn),fr),dir:wi,style:Pr,role:"menu",tabIndex:gi,data:ui,renderRawItem:function(ti){return ti},renderRawRest:function(ti){var Mi=ti.length,va=Mi?pl.slice(-Mi):null;return Ie.createElement(Qt,{eventKey:Pt,title:hi,disabled:ma,internalPopupClose:Mi===0,popupClassName:Ta},va)},maxCount:wn!=="horizontal"||zr?De.Z.INVALIDATE:De.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ti){yi(ti)},onKeyDown:ai},ol));return Ie.createElement(xt.Provider,{value:ei},Ie.createElement(ze.Provider,{value:Xr},Ie.createElement(Ze,{prefixCls:Pn,rootClassName:fr,mode:wn,openKeys:Li,rtl:si,disabled:Di,motion:Gn?hl:null,defaultMotions:Gn?qo:null,activeKey:Ua,onActive:Bo,onInactive:bo,selectedKeys:Yt,inlineIndent:lo,subMenuOpenDelay:Ii,subMenuCloseDelay:vi,forceSubMenuRender:jr,builtinPlacements:Vo,triggerSubMenuAction:Ho,getPopupContainer:vo,itemIcon:Qr,expandIcon:Ei,onItemClick:rr,onOpenChange:Ki},Ie.createElement(mt.Provider,{value:no},Ai),Ie.createElement("div",{style:{display:"none"},"aria-hidden":!0},Ie.createElement(Je.Provider,{value:fo},pl)))))}),qr=Dr,br=qr;br.Item=Xn,br.SubMenu=Qt,br.ItemGroup=cr,br.Divider=$n;var fi=br},83836:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Mt}});var E=ne(60499),ye=ne(85899),Ee=ne(72190),Ye=ne(42244),Ce=ne(59301),Se=ne(92310),pe=ne.n(Se),be=ne(29301),De=ne(34280),Pe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],et=void 0;function Fe(at,Le){var Me=at.prefixCls,st=at.invalidate,Ht=at.item,Tt=at.renderItem,ct=at.responsive,Ct=at.responsiveDisabled,Zt=at.registerSize,gn=at.itemKey,$t=at.className,Wt=at.style,on=at.children,dn=at.display,ln=at.order,xe=at.component,fe=xe===void 0?"div":xe,ue=(0,Ye.Z)(at,Pe),he=ct&&!dn;function me(je){Zt(gn,je)}Ce.useEffect(function(){return function(){me(null)}},[]);var oe=Tt&&Ht!==et?Tt(Ht,{index:ln}):on,Ne;st||(Ne={opacity:he?0:1,height:he?0:et,overflowY:he?"hidden":et,order:ct?ln:et,pointerEvents:he?"none":et,position:he?"absolute":et});var At={};he&&(At["aria-hidden"]=!0);var Ge=Ce.createElement(fe,(0,E.Z)({className:pe()(!st&&Me,$t),style:(0,ye.Z)((0,ye.Z)({},Ne),Wt)},At,ue,{ref:Le}),oe);return ct&&(Ge=Ce.createElement(be.Z,{onResize:function(Pt){var Et=Pt.offsetWidth;me(Et)},disabled:Ct},Ge)),Ge}var Ie=Ce.forwardRef(Fe);Ie.displayName="Item";var tt=Ie,ze=ne(6089),We=ne(4676),lt=ne(16089);function Xe(at){if(typeof MessageChannel=="undefined")(0,lt.Z)(at);else{var Le=new MessageChannel;Le.port1.onmessage=function(){return at()},Le.port2.postMessage(void 0)}}function Dt(){var at=Ce.useRef(null),Le=function(st){at.current||(at.current=[],Xe(function(){(0,We.unstable_batchedUpdates)(function(){at.current.forEach(function(Ht){Ht()}),at.current=null})})),at.current.push(st)};return Le}function dt(at,Le){var Me=Ce.useState(Le),st=(0,Ee.Z)(Me,2),Ht=st[0],Tt=st[1],ct=(0,ze.Z)(function(Ct){at(function(){Tt(Ct)})});return[Ht,ct]}var Qe=Ce.createContext(null),Ze=["component"],Ae=["className"],Je=["className"],Re=function(Le,Me){var st=Ce.useContext(Qe);if(!st){var Ht=Le.component,Tt=Ht===void 0?"div":Ht,ct=(0,Ye.Z)(Le,Ze);return Ce.createElement(Tt,(0,E.Z)({},ct,{ref:Me}))}var Ct=st.className,Zt=(0,Ye.Z)(st,Ae),gn=Le.className,$t=(0,Ye.Z)(Le,Je);return Ce.createElement(Qe.Provider,{value:null},Ce.createElement(tt,(0,E.Z)({ref:Me,className:pe()(Ct,gn)},Zt,$t)))},vt=Ce.forwardRef(Re);vt.displayName="RawItem";var $e=vt,mt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Be="responsive",xt="invalidate";function Ve(at){return"+ ".concat(at.length," ...")}function Ot(at,Le){var Me=at.prefixCls,st=Me===void 0?"rc-overflow":Me,Ht=at.data,Tt=Ht===void 0?[]:Ht,ct=at.renderItem,Ct=at.renderRawItem,Zt=at.itemKey,gn=at.itemWidth,$t=gn===void 0?10:gn,Wt=at.ssr,on=at.style,dn=at.className,ln=at.maxCount,xe=at.renderRest,fe=at.renderRawRest,ue=at.prefix,he=at.suffix,me=at.component,oe=me===void 0?"div":me,Ne=at.itemComponent,At=at.onVisibleChange,Ge=(0,Ye.Z)(at,mt),je=Wt==="full",Pt=Dt(),Et=dt(Pt,null),ht=(0,Ee.Z)(Et,2),Kt=ht[0],vn=ht[1],kt=Kt||0,Ut=dt(Pt,new Map),yn=(0,Ee.Z)(Ut,2),Bt=yn[0],Ke=yn[1],gt=dt(Pt,0),Vt=(0,Ee.Z)(gt,2),Nt=Vt[0],Xt=Vt[1],Mn=dt(Pt,0),Tn=(0,Ee.Z)(Mn,2),Rn=Tn[0],ur=Tn[1],vr=dt(Pt,0),dr=(0,Ee.Z)(vr,2),mn=dr[0],zn=dr[1],jn=dt(Pt,0),Xn=(0,Ee.Z)(jn,2),Sr=Xn[0],Kr=Xn[1],ar=(0,Ce.useState)(null),Zn=(0,Ee.Z)(ar,2),Wr=Zn[0],Gt=Zn[1],or=(0,Ce.useState)(null),er=(0,Ee.Z)(or,2),Kn=er[0],En=er[1],nr=Ce.useMemo(function(){return Kn===null&&je?Number.MAX_SAFE_INTEGER:Kn||0},[Kn,Kt]),lr=(0,Ce.useState)(!1),xr=(0,Ee.Z)(lr,2),jt=xr[0],Ue=xr[1],yt="".concat(st,"-item"),ut=Math.max(Nt,Rn),rt=ln===Be,_t=Tt.length&&rt,Qt=ln===xt,pn=_t||typeof ln=="number"&&Tt.length>ln,sn=(0,Ce.useMemo)(function(){var Vn=Tt;return _t?Kt===null&&je?Vn=Tt:Vn=Tt.slice(0,Math.min(Tt.length,kt/$t)):typeof ln=="number"&&(Vn=Tt.slice(0,ln)),Vn},[Tt,$t,Kt,ln,_t]),Bn=(0,Ce.useMemo)(function(){return _t?Tt.slice(nr+1):Tt.slice(sn.length)},[Tt,sn,_t,nr]),Yn=(0,Ce.useCallback)(function(Vn,Pn){var fr;return typeof Zt=="function"?Zt(Vn):(fr=Zt&&(Vn==null?void 0:Vn[Zt]))!==null&&fr!==void 0?fr:Pn},[Zt]),cr=(0,Ce.useCallback)(ct||function(Vn){return Vn},[ct]);function $n(Vn,Pn,fr){Kn===Vn&&(Pn===void 0||Pn===Wr)||(En(Vn),fr||(Ue(Vn<Tt.length-1),At==null||At(Vn)),Pn!==void 0&&Gt(Pn))}function en(Vn,Pn){vn(Pn.clientWidth)}function rn(Vn,Pn){Ke(function(fr){var Pr=new Map(fr);return Pn===null?Pr.delete(Vn):Pr.set(Vn,Pn),Pr})}function Or(Vn,Pn){ur(Pn),Xt(Rn)}function kr(Vn,Pn){zn(Pn)}function Cr(Vn,Pn){Kr(Pn)}function Dr(Vn){return Bt.get(Yn(sn[Vn],Vn))}(0,De.Z)(function(){if(kt&&typeof ut=="number"&&sn){var Vn=mn+Sr,Pn=sn.length,fr=Pn-1;if(!Pn){$n(0,null);return}for(var Pr=0;Pr<Pn;Pr+=1){var Gr=Dr(Pr);if(je&&(Gr=Gr||0),Gr===void 0){$n(Pr-1,void 0,!0);break}if(Vn+=Gr,fr===0&&Vn<=kt||Pr===fr-1&&Vn+Dr(fr)<=kt){$n(fr,null);break}else if(Vn+ut>kt){$n(Pr-1,Vn-Gr-Sr+Rn);break}}he&&Dr(0)+Sr>kt&&Gt(null)}},[kt,Bt,Rn,mn,Sr,Yn,sn]);var qr=jt&&!!Bn.length,br={};Wr!==null&&_t&&(br={position:"absolute",left:Wr,top:0});var fi={prefixCls:yt,responsive:_t,component:Ne,invalidate:Qt},Jt=Ct?function(Vn,Pn){var fr=Yn(Vn,Pn);return Ce.createElement(Qe.Provider,{key:fr,value:(0,ye.Z)((0,ye.Z)({},fi),{},{order:Pn,item:Vn,itemKey:fr,registerSize:rn,display:Pn<=nr})},Ct(Vn,Pn))}:function(Vn,Pn){var fr=Yn(Vn,Pn);return Ce.createElement(tt,(0,E.Z)({},fi,{order:Pn,key:fr,item:Vn,renderItem:cr,itemKey:fr,registerSize:rn,display:Pn<=nr}))},On={order:qr?nr:Number.MAX_SAFE_INTEGER,className:"".concat(yt,"-rest"),registerSize:Or,display:qr},Hn=xe||Ve,qn=fe?Ce.createElement(Qe.Provider,{value:(0,ye.Z)((0,ye.Z)({},fi),On)},fe(Bn)):Ce.createElement(tt,(0,E.Z)({},fi,On),typeof Hn=="function"?Hn(Bn):Hn),kn=Ce.createElement(oe,(0,E.Z)({className:pe()(!Qt&&st,dn),style:on,ref:Le},Ge),ue&&Ce.createElement(tt,(0,E.Z)({},fi,{responsive:rt,responsiveDisabled:!_t,order:-1,className:"".concat(yt,"-prefix"),registerSize:kr,display:!0}),ue),sn.map(Jt),pn?qn:null,he&&Ce.createElement(tt,(0,E.Z)({},fi,{responsive:rt,responsiveDisabled:!_t,order:nr,className:"".concat(yt,"-suffix"),registerSize:Cr,display:!0,style:br}),he));return rt?Ce.createElement(be.Z,{onResize:en,disabled:!_t},kn):kn}var nt=Ce.forwardRef(Ot);nt.displayName="Overflow",nt.Item=$e,nt.RESPONSIVE=Be,nt.INVALIDATE=xt;var wt=nt,Mt=wt},91735:function(An,tn){"use strict";tn.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},17115:function(An,tn,ne){"use strict";ne.d(tn,{ZP:function(){return pe}});var E=ne(72190),ye=ne(59301),Ee=ne(47273),Ye=0,Ce=(0,Ee.Z)();function Se(){var be;return Ce?(be=Ye,Ye+=1):be="TEST_OR_SSR",be}function pe(be){var De=ye.useState(),Pe=(0,E.Z)(De,2),et=Pe[0],Fe=Pe[1];return ye.useEffect(function(){Fe("rc_select_".concat(Se()))},[]),be||et}},77861:function(An,tn,ne){"use strict";ne.d(tn,{Ac:function(){return Kt},Xo:function(){return Rn},Wx:function(){return vr},ZP:function(){return yt},lk:function(){return Qe}});var E=ne(60499),ye=ne(77654),Ee=ne(18642),Ye=ne(85899),Ce=ne(72190),Se=ne(42244),pe=ne(43749),be=ne(18929),De=ne(48736),Pe=ne(59301),et=ne(92310),Fe=ne.n(et),Ie=ne(34280),tt=ne(49658),ze=ne(10228),We=ne(8654),lt=function(rt){var _t=rt.className,Qt=rt.customizeIcon,pn=rt.customizeIconProps,sn=rt.onMouseDown,Bn=rt.onClick,Yn=rt.children,cr;return typeof Qt=="function"?cr=Qt(pn):cr=Qt,Pe.createElement("span",{className:_t,onMouseDown:function(en){en.preventDefault(),sn&&sn(en)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Bn,"aria-hidden":!0},cr!==void 0?cr:Pe.createElement("span",{className:Fe()(_t.split(/\s+/).map(function($n){return"".concat($n,"-icon")}))},Yn))},Xe=lt;function Dt(ut,rt,_t,Qt,pn){var sn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Bn=arguments.length>6?arguments[6]:void 0,Yn=arguments.length>7?arguments[7]:void 0,cr=Pe.useMemo(function(){if((0,pe.Z)(Qt)==="object")return Qt.clearIcon;if(pn)return pn},[Qt,pn]),$n=Pe.useMemo(function(){return!!(!sn&&Qt&&(_t.length||Bn)&&!(Yn==="combobox"&&Bn===""))},[Qt,sn,_t.length,Bn,Yn]);return{allowClear:$n,clearIcon:Pe.createElement(Xe,{className:"".concat(ut,"-clear"),onMouseDown:rt,customizeIcon:cr},"\xD7")}}var dt=Pe.createContext(null);function Qe(){return Pe.useContext(dt)}function Ze(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,rt=Pe.useState(!1),_t=(0,Ce.Z)(rt,2),Qt=_t[0],pn=_t[1],sn=Pe.useRef(null),Bn=function(){window.clearTimeout(sn.current)};Pe.useEffect(function(){return Bn},[]);var Yn=function($n,en){Bn(),sn.current=window.setTimeout(function(){pn($n),en&&en()},ut)};return[Qt,Yn,Bn]}function Ae(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,rt=Pe.useRef(null),_t=Pe.useRef(null);Pe.useEffect(function(){return function(){window.clearTimeout(_t.current)}},[]);function Qt(pn){(pn||rt.current===null)&&(rt.current=pn),window.clearTimeout(_t.current),_t.current=window.setTimeout(function(){rt.current=null},ut)}return[function(){return rt.current},Qt]}function Je(ut,rt,_t,Qt){var pn=Pe.useRef(null);pn.current={open:rt,triggerOpen:_t,customizedTrigger:Qt},Pe.useEffect(function(){function sn(Bn){var Yn;if(!((Yn=pn.current)!==null&&Yn!==void 0&&Yn.customizedTrigger)){var cr=Bn.target;cr.shadowRoot&&Bn.composed&&(cr=Bn.composedPath()[0]||cr),pn.current.open&&ut().filter(function($n){return $n}).every(function($n){return!$n.contains(cr)&&$n!==cr})&&pn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",sn),function(){return window.removeEventListener("mousedown",sn)}},[])}var Re=ne(26112),vt=ne(83836),$e=function(rt,_t){var Qt,pn,sn=rt.prefixCls,Bn=rt.id,Yn=rt.inputElement,cr=rt.disabled,$n=rt.tabIndex,en=rt.autoFocus,rn=rt.autoComplete,Or=rt.editable,kr=rt.activeDescendantId,Cr=rt.value,Dr=rt.maxLength,qr=rt.onKeyDown,br=rt.onMouseDown,fi=rt.onChange,Jt=rt.onPaste,On=rt.onCompositionStart,Hn=rt.onCompositionEnd,qn=rt.open,kn=rt.attrs,Vn=Yn||Pe.createElement("input",null),Pn=Vn,fr=Pn.ref,Pr=Pn.props,Gr=Pr.onKeyDown,pi=Pr.onChange,gi=Pr.onMouseDown,Ri=Pr.onCompositionStart,Si=Pr.onCompositionEnd,wi=Pr.style;return(0,De.Kp)(!("maxLength"in Vn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Vn=Pe.cloneElement(Vn,(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({type:"search"},Pr),{},{id:Bn,ref:(0,We.sQ)(_t,fr),disabled:cr,tabIndex:$n,autoComplete:rn||"off",autoFocus:en,className:Fe()("".concat(sn,"-selection-search-input"),(Qt=Vn)===null||Qt===void 0||(pn=Qt.props)===null||pn===void 0?void 0:pn.className),role:"combobox","aria-label":"Search","aria-expanded":qn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Bn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Bn,"_list"),"aria-activedescendant":qn?kr:void 0},kn),{},{value:Or?Cr:"",maxLength:Dr,readOnly:!Or,unselectable:Or?null:"on",style:(0,Ye.Z)((0,Ye.Z)({},wi),{},{opacity:Or?null:0}),onKeyDown:function(ji){qr(ji),Gr&&Gr(ji)},onMouseDown:function(ji){br(ji),gi&&gi(ji)},onChange:function(ji){fi(ji),pi&&pi(ji)},onCompositionStart:function(ji){On(ji),Ri&&Ri(ji)},onCompositionEnd:function(ji){Hn(ji),Si&&Si(ji)},onPaste:Jt})),Vn},mt=Pe.forwardRef($e);mt.displayName="Input";var Be=mt;function xt(ut){return Array.isArray(ut)?ut:ut!==void 0?[ut]:[]}var Ve=typeof window!="undefined"&&window.document&&window.document.documentElement,Ot=Ve;function nt(ut){return ut!=null}function wt(ut){return!ut&&ut!==0}function Mt(ut){return["string","number"].includes((0,pe.Z)(ut))}function at(ut){var rt=void 0;return ut&&(Mt(ut.title)?rt=ut.title.toString():Mt(ut.label)&&(rt=ut.label.toString())),rt}function Le(ut,rt){Ot?Pe.useLayoutEffect(ut,rt):Pe.useEffect(ut,rt)}function Me(ut){var rt;return(rt=ut.key)!==null&&rt!==void 0?rt:ut.value}var st=function(rt){rt.preventDefault(),rt.stopPropagation()},Ht=function(rt){var _t=rt.id,Qt=rt.prefixCls,pn=rt.values,sn=rt.open,Bn=rt.searchValue,Yn=rt.autoClearSearchValue,cr=rt.inputRef,$n=rt.placeholder,en=rt.disabled,rn=rt.mode,Or=rt.showSearch,kr=rt.autoFocus,Cr=rt.autoComplete,Dr=rt.activeDescendantId,qr=rt.tabIndex,br=rt.removeIcon,fi=rt.maxTagCount,Jt=rt.maxTagTextLength,On=rt.maxTagPlaceholder,Hn=On===void 0?function(ba){return"+ ".concat(ba.length," ...")}:On,qn=rt.tagRender,kn=rt.onToggleOpen,Vn=rt.onRemove,Pn=rt.onInputChange,fr=rt.onInputPaste,Pr=rt.onInputKeyDown,Gr=rt.onInputMouseDown,pi=rt.onInputCompositionStart,gi=rt.onInputCompositionEnd,Ri=Pe.useRef(null),Si=(0,Pe.useState)(0),wi=(0,Ce.Z)(Si,2),Zi=wi[0],ji=wi[1],Gi=(0,Pe.useState)(!1),Bi=(0,Ce.Z)(Gi,2),Di=Bi[0],zr=Bi[1],li="".concat(Qt,"-selection"),Ii=sn||rn==="multiple"&&Yn===!1||rn==="tags"?Bn:"",ya=rn==="tags"||rn==="multiple"&&Yn===!1||Or&&(sn||Di);Le(function(){ji(Ri.current.scrollWidth)},[Ii]);function vi(ba,oa,xa,Na,Po){return Pe.createElement("span",{className:Fe()("".concat(li,"-item"),(0,Ee.Z)({},"".concat(li,"-item-disabled"),xa)),title:at(ba)},Pe.createElement("span",{className:"".concat(li,"-item-content")},oa),Na&&Pe.createElement(Xe,{className:"".concat(li,"-item-remove"),onMouseDown:st,onClick:Po,customizeIcon:br},"\xD7"))}function jr(ba,oa,xa,Na,Po){var ki=function(Aa){st(Aa),kn(!sn)};return Pe.createElement("span",{onMouseDown:ki},qn({label:oa,value:ba,disabled:xa,closable:Na,onClose:Po}))}function Ir(ba){var oa=ba.disabled,xa=ba.label,Na=ba.value,Po=!en&&!oa,ki=xa;if(typeof Jt=="number"&&(typeof xa=="string"||typeof xa=="number")){var Hi=String(ki);Hi.length>Jt&&(ki="".concat(Hi.slice(0,Jt),"..."))}var Aa=function(lo){lo&&lo.stopPropagation(),Vn(ba)};return typeof qn=="function"?jr(Na,ki,oa,Po,Aa):vi(ba,ki,oa,Po,Aa)}function Vi(ba){var oa=typeof Hn=="function"?Hn(ba):Hn;return vi({title:oa},oa,!1)}var xi=Pe.createElement("div",{className:"".concat(li,"-search"),style:{width:Zi},onFocus:function(){zr(!0)},onBlur:function(){zr(!1)}},Pe.createElement(Be,{ref:cr,open:sn,prefixCls:Qt,id:_t,inputElement:null,disabled:en,autoFocus:kr,autoComplete:Cr,editable:ya,activeDescendantId:Dr,value:Ii,onKeyDown:Pr,onMouseDown:Gr,onChange:Pn,onPaste:fr,onCompositionStart:pi,onCompositionEnd:gi,tabIndex:qr,attrs:(0,Re.Z)(rt,!0)}),Pe.createElement("span",{ref:Ri,className:"".concat(li,"-search-mirror"),"aria-hidden":!0},Ii,"\xA0")),na=Pe.createElement(vt.Z,{prefixCls:"".concat(li,"-overflow"),data:pn,renderItem:Ir,renderRest:Vi,suffix:xi,itemKey:Me,maxCount:fi});return Pe.createElement(Pe.Fragment,null,na,!pn.length&&!Ii&&Pe.createElement("span",{className:"".concat(li,"-placeholder")},$n))},Tt=Ht,ct=function(rt){var _t=rt.inputElement,Qt=rt.prefixCls,pn=rt.id,sn=rt.inputRef,Bn=rt.disabled,Yn=rt.autoFocus,cr=rt.autoComplete,$n=rt.activeDescendantId,en=rt.mode,rn=rt.open,Or=rt.values,kr=rt.placeholder,Cr=rt.tabIndex,Dr=rt.showSearch,qr=rt.searchValue,br=rt.activeValue,fi=rt.maxLength,Jt=rt.onInputKeyDown,On=rt.onInputMouseDown,Hn=rt.onInputChange,qn=rt.onInputPaste,kn=rt.onInputCompositionStart,Vn=rt.onInputCompositionEnd,Pn=rt.title,fr=Pe.useState(!1),Pr=(0,Ce.Z)(fr,2),Gr=Pr[0],pi=Pr[1],gi=en==="combobox",Ri=gi||Dr,Si=Or[0],wi=qr||"";gi&&br&&!Gr&&(wi=br),Pe.useEffect(function(){gi&&pi(!1)},[gi,br]);var Zi=en!=="combobox"&&!rn&&!Dr?!1:!!wi,ji=Pn===void 0?at(Si):Pn,Gi=function(){if(Si)return null;var Di=Zi?{visibility:"hidden"}:void 0;return Pe.createElement("span",{className:"".concat(Qt,"-selection-placeholder"),style:Di},kr)};return Pe.createElement(Pe.Fragment,null,Pe.createElement("span",{className:"".concat(Qt,"-selection-search")},Pe.createElement(Be,{ref:sn,prefixCls:Qt,id:pn,open:rn,inputElement:_t,disabled:Bn,autoFocus:Yn,autoComplete:cr,editable:Ri,activeDescendantId:$n,value:wi,onKeyDown:Jt,onMouseDown:On,onChange:function(Di){pi(!0),Hn(Di)},onPaste:qn,onCompositionStart:kn,onCompositionEnd:Vn,tabIndex:Cr,attrs:(0,Re.Z)(rt,!0),maxLength:gi?fi:void 0})),!gi&&Si?Pe.createElement("span",{className:"".concat(Qt,"-selection-item"),title:ji,style:Zi?{visibility:"hidden"}:void 0},Si.label):null,Gi())},Ct=ct;function Zt(ut){return![ze.Z.ESC,ze.Z.SHIFT,ze.Z.BACKSPACE,ze.Z.TAB,ze.Z.WIN_KEY,ze.Z.ALT,ze.Z.META,ze.Z.WIN_KEY_RIGHT,ze.Z.CTRL,ze.Z.SEMICOLON,ze.Z.EQUALS,ze.Z.CAPS_LOCK,ze.Z.CONTEXT_MENU,ze.Z.F1,ze.Z.F2,ze.Z.F3,ze.Z.F4,ze.Z.F5,ze.Z.F6,ze.Z.F7,ze.Z.F8,ze.Z.F9,ze.Z.F10,ze.Z.F11,ze.Z.F12].includes(ut)}var gn=function(rt,_t){var Qt=(0,Pe.useRef)(null),pn=(0,Pe.useRef)(!1),sn=rt.prefixCls,Bn=rt.open,Yn=rt.mode,cr=rt.showSearch,$n=rt.tokenWithEnter,en=rt.autoClearSearchValue,rn=rt.onSearch,Or=rt.onSearchSubmit,kr=rt.onToggleOpen,Cr=rt.onInputKeyDown,Dr=rt.domRef;Pe.useImperativeHandle(_t,function(){return{focus:function(){Qt.current.focus()},blur:function(){Qt.current.blur()}}});var qr=Ae(0),br=(0,Ce.Z)(qr,2),fi=br[0],Jt=br[1],On=function(wi){var Zi=wi.which;(Zi===ze.Z.UP||Zi===ze.Z.DOWN)&&wi.preventDefault(),Cr&&Cr(wi),Zi===ze.Z.ENTER&&Yn==="tags"&&!pn.current&&!Bn&&(Or==null||Or(wi.target.value)),Zt(Zi)&&kr(!0)},Hn=function(){Jt(!0)},qn=(0,Pe.useRef)(null),kn=function(wi){rn(wi,!0,pn.current)!==!1&&kr(!0)},Vn=function(){pn.current=!0},Pn=function(wi){pn.current=!1,Yn!=="combobox"&&kn(wi.target.value)},fr=function(wi){var Zi=wi.target.value;if($n&&qn.current&&/[\r\n]/.test(qn.current)){var ji=qn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Zi=Zi.replace(ji,qn.current)}qn.current=null,kn(Zi)},Pr=function(wi){var Zi=wi.clipboardData,ji=Zi.getData("text");qn.current=ji},Gr=function(wi){var Zi=wi.target;if(Zi!==Qt.current){var ji=document.body.style.msTouchAction!==void 0;ji?setTimeout(function(){Qt.current.focus()}):Qt.current.focus()}},pi=function(wi){var Zi=fi();wi.target!==Qt.current&&!Zi&&Yn!=="combobox"&&wi.preventDefault(),(Yn!=="combobox"&&(!cr||!Zi)||!Bn)&&(Bn&&en!==!1&&rn("",!0,!1),kr())},gi={inputRef:Qt,onInputKeyDown:On,onInputMouseDown:Hn,onInputChange:fr,onInputPaste:Pr,onInputCompositionStart:Vn,onInputCompositionEnd:Pn},Ri=Yn==="multiple"||Yn==="tags"?Pe.createElement(Tt,(0,E.Z)({},rt,gi)):Pe.createElement(Ct,(0,E.Z)({},rt,gi));return Pe.createElement("div",{ref:Dr,className:"".concat(sn,"-selector"),onClick:Gr,onMouseDown:pi},Ri)},$t=Pe.forwardRef(gn);$t.displayName="Selector";var Wt=$t,on=ne(35593),dn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ln=function(rt){var _t=rt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"}}},xe=function(rt,_t){var Qt=rt.prefixCls,pn=rt.disabled,sn=rt.visible,Bn=rt.children,Yn=rt.popupElement,cr=rt.animation,$n=rt.transitionName,en=rt.dropdownStyle,rn=rt.dropdownClassName,Or=rt.direction,kr=Or===void 0?"ltr":Or,Cr=rt.placement,Dr=rt.builtinPlacements,qr=rt.dropdownMatchSelectWidth,br=rt.dropdownRender,fi=rt.dropdownAlign,Jt=rt.getPopupContainer,On=rt.empty,Hn=rt.getTriggerDOMNode,qn=rt.onPopupVisibleChange,kn=rt.onPopupMouseEnter,Vn=(0,Se.Z)(rt,dn),Pn="".concat(Qt,"-dropdown"),fr=Yn;br&&(fr=br(Yn));var Pr=Pe.useMemo(function(){return Dr||ln(qr)},[Dr,qr]),Gr=cr?"".concat(Pn,"-").concat(cr):$n,pi=typeof qr=="number",gi=Pe.useMemo(function(){return pi?null:qr===!1?"minWidth":"width"},[qr,pi]),Ri=en;pi&&(Ri=(0,Ye.Z)((0,Ye.Z)({},Ri),{},{width:qr}));var Si=Pe.useRef(null);return Pe.useImperativeHandle(_t,function(){return{getPopupElement:function(){return Si.current}}}),Pe.createElement(on.Z,(0,E.Z)({},Vn,{showAction:qn?["click"]:[],hideAction:qn?["click"]:[],popupPlacement:Cr||(kr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Pr,prefixCls:Pn,popupTransitionName:Gr,popup:Pe.createElement("div",{ref:Si,onMouseEnter:kn},fr),stretch:gi,popupAlign:fi,popupVisible:sn,getPopupContainer:Jt,popupClassName:Fe()(rn,(0,Ee.Z)({},"".concat(Pn,"-empty"),On)),popupStyle:Ri,getTriggerDOMNode:Hn,onPopupVisibleChange:qn}),Bn)},fe=Pe.forwardRef(xe);fe.displayName="SelectTrigger";var ue=fe,he=ne(48745);function me(ut,rt){var _t=ut.key,Qt;return"value"in ut&&(Qt=ut.value),_t!=null?_t:Qt!==void 0?Qt:"rc-index-key-".concat(rt)}function oe(ut,rt){var _t=ut||{},Qt=_t.label,pn=_t.value,sn=_t.options,Bn=_t.groupLabel,Yn=Qt||(rt?"children":"label");return{label:Yn,value:pn||"value",options:sn||"options",groupLabel:Bn||Yn}}function Ne(ut){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_t=rt.fieldNames,Qt=rt.childrenAsData,pn=[],sn=oe(_t,!1),Bn=sn.label,Yn=sn.value,cr=sn.options,$n=sn.groupLabel;function en(rn,Or){rn.forEach(function(kr){if(Or||!(cr in kr)){var Cr=kr[Yn];pn.push({key:me(kr,pn.length),groupOption:Or,data:kr,label:kr[Bn],value:Cr})}else{var Dr=kr[$n];Dr===void 0&&Qt&&(Dr=kr.label),pn.push({key:me(kr,pn.length),group:!0,data:kr,label:Dr}),en(kr[cr],!0)}})}return en(ut,!1),pn}function At(ut){var rt=(0,Ye.Z)({},ut);return"props"in rt||Object.defineProperty(rt,"props",{get:function(){return(0,De.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),rt}}),rt}function Ge(ut,rt){if(!rt||!rt.length)return null;var _t=!1;function Qt(sn,Bn){var Yn=(0,he.Z)(Bn),cr=Yn[0],$n=Yn.slice(1);if(!cr)return[sn];var en=sn.split(cr);return _t=_t||en.length>1,en.reduce(function(rn,Or){return[].concat((0,ye.Z)(rn),(0,ye.Z)(Qt(Or,$n)))},[]).filter(function(rn){return rn})}var pn=Qt(ut,rt);return _t?pn:null}var je=["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"],Pt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Et(ut){return ut==="tags"||ut==="multiple"}var ht=Pe.forwardRef(function(ut,rt){var _t,Qt,pn=ut.id,sn=ut.prefixCls,Bn=ut.className,Yn=ut.showSearch,cr=ut.tagRender,$n=ut.direction,en=ut.omitDomProps,rn=ut.displayValues,Or=ut.onDisplayValuesChange,kr=ut.emptyOptions,Cr=ut.notFoundContent,Dr=Cr===void 0?"Not Found":Cr,qr=ut.onClear,br=ut.mode,fi=ut.disabled,Jt=ut.loading,On=ut.getInputElement,Hn=ut.getRawInputElement,qn=ut.open,kn=ut.defaultOpen,Vn=ut.onDropdownVisibleChange,Pn=ut.activeValue,fr=ut.onActiveValueChange,Pr=ut.activeDescendantId,Gr=ut.searchValue,pi=ut.autoClearSearchValue,gi=ut.onSearch,Ri=ut.onSearchSplit,Si=ut.tokenSeparators,wi=ut.allowClear,Zi=ut.suffixIcon,ji=ut.clearIcon,Gi=ut.OptionList,Bi=ut.animation,Di=ut.transitionName,zr=ut.dropdownStyle,li=ut.dropdownClassName,Ii=ut.dropdownMatchSelectWidth,ya=ut.dropdownRender,vi=ut.dropdownAlign,jr=ut.placement,Ir=ut.builtinPlacements,Vi=ut.getPopupContainer,xi=ut.showAction,na=xi===void 0?[]:xi,ba=ut.onFocus,oa=ut.onBlur,xa=ut.onKeyUp,Na=ut.onKeyDown,Po=ut.onMouseDown,ki=(0,Se.Z)(ut,je),Hi=Et(br),Aa=(Yn!==void 0?Yn:Hi)||br==="combobox",Ma=(0,Ye.Z)({},ki);Pt.forEach(function(Lr){delete Ma[Lr]}),en==null||en.forEach(function(Lr){delete Ma[Lr]});var lo=Pe.useState(!1),hl=(0,Ce.Z)(lo,2),qo=hl[0],co=hl[1];Pe.useEffect(function(){co((0,tt.Z)())},[]);var Ho=Pe.useRef(null),Vo=Pe.useRef(null),Qr=Pe.useRef(null),Ei=Pe.useRef(null),ri=Pe.useRef(null),hi=Ze(),Ta=(0,Ce.Z)(hi,3),vo=Ta[0],go=Ta[1],So=Ta[2];Pe.useImperativeHandle(rt,function(){var Lr,aa;return{focus:(Lr=Ei.current)===null||Lr===void 0?void 0:Lr.focus,blur:(aa=Ei.current)===null||aa===void 0?void 0:aa.blur,scrollTo:function(fo){var no;return(no=ri.current)===null||no===void 0?void 0:no.scrollTo(fo)}}});var yo=Pe.useMemo(function(){var Lr;if(br!=="combobox")return Gr;var aa=(Lr=rn[0])===null||Lr===void 0?void 0:Lr.value;return typeof aa=="string"||typeof aa=="number"?String(aa):""},[Gr,br,rn]),Lo=br==="combobox"&&typeof On=="function"&&On()||null,nl=typeof Hn=="function"&&Hn(),ea=(0,We.x1)(Vo,nl==null||(_t=nl.props)===null||_t===void 0?void 0:_t.ref),gl=Pe.useState(!1),ol=(0,Ce.Z)(gl,2),pl=ol[0],Xl=ol[1];(0,Ie.Z)(function(){Xl(!0)},[]);var hr=(0,be.Z)(!1,{defaultValue:kn,value:qn}),Gn=(0,Ce.Z)(hr,2),gr=Gn[0],Vr=Gn[1],Xr=pl?gr:!1,si=!Dr&&kr;(fi||si&&Xr&&br==="combobox")&&(Xr=!1);var pr=si?!1:Xr,Jr=Pe.useCallback(function(Lr){var aa=Lr!==void 0?Lr:!Xr;fi||(Vr(aa),Xr!==aa&&(Vn==null||Vn(aa)))},[fi,Xr,Vr,Vn]),Li=Pe.useMemo(function(){return(Si||[]).some(function(Lr){return[`
|
|
|
`,`\r
|
|
|
`].includes(Lr)})},[Si]),Oi=function(aa,Ba,fo){var no=!0,ja=aa;fr==null||fr(null);var Ao=fo?null:Ge(aa,Si);return br!=="combobox"&&Ao&&(ja="",Ri==null||Ri(Ao),Jr(!1),no=!1),gi&&yo!==ja&&gi(ja,{source:Ba?"typing":"effect"}),no},la=function(aa){!aa||!aa.trim()||gi(aa,{source:"submit"})};Pe.useEffect(function(){!Xr&&!Hi&&br!=="combobox"&&Oi("",!1,!1)},[Xr]),Pe.useEffect(function(){gr&&fi&&Vr(!1),fi&&go(!1)},[fi]);var mi=Ae(),Pa=(0,Ce.Z)(mi,2),qa=Pa[0],Ka=Pa[1],Yi=function(aa){var Ba=qa(),fo=aa.which;if(fo===ze.Z.ENTER&&(br!=="combobox"&&aa.preventDefault(),Xr||Jr(!0)),Ka(!!yo),fo===ze.Z.BACKSPACE&&!Ba&&Hi&&!yo&&rn.length){for(var no=(0,ye.Z)(rn),ja=null,Ao=no.length-1;Ao>=0;Ao-=1){var Ua=no[Ao];if(!Ua.disabled){no.splice(Ao,1),ja=Ua;break}}ja&&Or(no,{type:"remove",values:[ja]})}for(var Ni=arguments.length,Bo=new Array(Ni>1?Ni-1:0),bo=1;bo<Ni;bo++)Bo[bo-1]=arguments[bo];if(Xr&&ri.current){var ll;(ll=ri.current).onKeyDown.apply(ll,[aa].concat(Bo))}Na==null||Na.apply(void 0,[aa].concat(Bo))},pa=function(aa){for(var Ba=arguments.length,fo=new Array(Ba>1?Ba-1:0),no=1;no<Ba;no++)fo[no-1]=arguments[no];if(Xr&&ri.current){var ja;(ja=ri.current).onKeyUp.apply(ja,[aa].concat(fo))}xa==null||xa.apply(void 0,[aa].concat(fo))},eo=function(aa){var Ba=rn.filter(function(fo){return fo!==aa});Or(Ba,{type:"remove",values:[aa]})},ro=Pe.useRef(!1),xo=function(){go(!0),fi||(ba&&!ro.current&&ba.apply(void 0,arguments),na.includes("focus")&&Jr(!0)),ro.current=!0},Wl=function(){go(!1,function(){ro.current=!1,Jr(!1)}),!fi&&(yo&&(br==="tags"?gi(yo,{source:"submit"}):br==="multiple"&&gi("",{source:"blur"})),oa&&oa.apply(void 0,arguments))},Qo=[];Pe.useEffect(function(){return function(){Qo.forEach(function(Lr){return clearTimeout(Lr)}),Qo.splice(0,Qo.length)}},[]);var Cn=function(aa){var Ba,fo=aa.target,no=(Ba=Qr.current)===null||Ba===void 0?void 0:Ba.getPopupElement();if(no&&no.contains(fo)){var ja=setTimeout(function(){var Bo=Qo.indexOf(ja);if(Bo!==-1&&Qo.splice(Bo,1),So(),!qo&&!no.contains(document.activeElement)){var bo;(bo=Ei.current)===null||bo===void 0||bo.focus()}});Qo.push(ja)}for(var Ao=arguments.length,Ua=new Array(Ao>1?Ao-1:0),Ni=1;Ni<Ao;Ni++)Ua[Ni-1]=arguments[Ni];Po==null||Po.apply(void 0,[aa].concat(Ua))},wn=Pe.useState({}),tr=(0,Ce.Z)(wn,2),Zr=tr[1];function _r(){Zr({})}var Ar;nl&&(Ar=function(aa){Jr(aa)}),Je(function(){var Lr;return[Ho.current,(Lr=Qr.current)===null||Lr===void 0?void 0:Lr.getPopupElement()]},pr,Jr,!!nl);var Mr=Pe.useMemo(function(){return(0,Ye.Z)((0,Ye.Z)({},ut),{},{notFoundContent:Dr,open:Xr,triggerOpen:pr,id:pn,showSearch:Aa,multiple:Hi,toggleOpen:Jr})},[ut,Dr,pr,Xr,pn,Aa,Hi,Jr]),Qn=!!Zi||Jt,Er;Qn&&(Er=Pe.createElement(Xe,{className:Fe()("".concat(sn,"-arrow"),(0,Ee.Z)({},"".concat(sn,"-arrow-loading"),Jt)),customizeIcon:Zi,customizeIconProps:{loading:Jt,searchValue:yo,open:Xr,focused:vo,showSearch:Aa}}));var Yr=function(){var aa;qr==null||qr(),(aa=Ei.current)===null||aa===void 0||aa.focus(),Or([],{type:"clear",values:rn}),Oi("",!1,!1)},yi=Dt(sn,Yr,rn,wi,ji,fi,yo,br),ma=yi.allowClear,Za=yi.clearIcon,Ya=Pe.createElement(Gi,{ref:ri}),to=Fe()(sn,Bn,(Qt={},(0,Ee.Z)(Qt,"".concat(sn,"-focused"),vo),(0,Ee.Z)(Qt,"".concat(sn,"-multiple"),Hi),(0,Ee.Z)(Qt,"".concat(sn,"-single"),!Hi),(0,Ee.Z)(Qt,"".concat(sn,"-allow-clear"),wi),(0,Ee.Z)(Qt,"".concat(sn,"-show-arrow"),Qn),(0,Ee.Z)(Qt,"".concat(sn,"-disabled"),fi),(0,Ee.Z)(Qt,"".concat(sn,"-loading"),Jt),(0,Ee.Z)(Qt,"".concat(sn,"-open"),Xr),(0,Ee.Z)(Qt,"".concat(sn,"-customize-input"),Lo),(0,Ee.Z)(Qt,"".concat(sn,"-show-search"),Aa),Qt)),Ia=Pe.createElement(ue,{ref:Qr,disabled:fi,prefixCls:sn,visible:pr,popupElement:Ya,animation:Bi,transitionName:Di,dropdownStyle:zr,dropdownClassName:li,direction:$n,dropdownMatchSelectWidth:Ii,dropdownRender:ya,dropdownAlign:vi,placement:jr,builtinPlacements:Ir,getPopupContainer:Vi,empty:kr,getTriggerDOMNode:function(){return Vo.current},onPopupVisibleChange:Ar,onPopupMouseEnter:_r},nl?Pe.cloneElement(nl,{ref:ea}):Pe.createElement(Wt,(0,E.Z)({},ut,{domRef:Vo,prefixCls:sn,inputElement:Lo,ref:Ei,id:pn,showSearch:Aa,autoClearSearchValue:pi,mode:br,activeDescendantId:Pr,tagRender:cr,values:rn,open:Xr,onToggleOpen:Jr,activeValue:Pn,searchValue:yo,onSearch:Oi,onSearchSubmit:la,onRemove:eo,tokenWithEnter:Li}))),Xi;return nl?Xi=Ia:Xi=Pe.createElement("div",(0,E.Z)({className:to},Ma,{ref:Ho,onMouseDown:Cn,onKeyDown:Yi,onKeyUp:pa,onFocus:xo,onBlur:Wl}),vo&&!Xr&&Pe.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(rn.map(function(Lr){var aa=Lr.label,Ba=Lr.value;return["number","string"].includes((0,pe.Z)(aa))?aa:Ba}).join(", "))),Ia,Er,ma&&Za),Pe.createElement(dt.Provider,{value:Mr},Xi)}),Kt=ht,vn=function(ut,rt){var _t=Pe.useRef({values:new Map,options:new Map}),Qt=Pe.useMemo(function(){var sn=_t.current,Bn=sn.values,Yn=sn.options,cr=ut.map(function(rn){if(rn.label===void 0){var Or;return(0,Ye.Z)((0,Ye.Z)({},rn),{},{label:(Or=Bn.get(rn.value))===null||Or===void 0?void 0:Or.label})}return rn}),$n=new Map,en=new Map;return cr.forEach(function(rn){$n.set(rn.value,rn),en.set(rn.value,rt.get(rn.value)||Yn.get(rn.value))}),_t.current.values=$n,_t.current.options=en,cr},[ut,rt]),pn=Pe.useCallback(function(sn){return rt.get(sn)||_t.current.options.get(sn)},[rt]);return[Qt,pn]};function kt(ut,rt){return xt(ut).join("").toUpperCase().includes(rt)}var Ut=function(ut,rt,_t,Qt,pn){return Pe.useMemo(function(){if(!_t||Qt===!1)return ut;var sn=rt.options,Bn=rt.label,Yn=rt.value,cr=[],$n=typeof Qt=="function",en=_t.toUpperCase(),rn=$n?Qt:function(kr,Cr){return pn?kt(Cr[pn],en):Cr[sn]?kt(Cr[Bn!=="children"?Bn:"label"],en):kt(Cr[Yn],en)},Or=$n?function(kr){return At(kr)}:function(kr){return kr};return ut.forEach(function(kr){if(kr[sn]){var Cr=rn(_t,Or(kr));if(Cr)cr.push(kr);else{var Dr=kr[sn].filter(function(qr){return rn(_t,Or(qr))});Dr.length&&cr.push((0,Ye.Z)((0,Ye.Z)({},kr),{},(0,Ee.Z)({},sn,Dr)))}return}rn(_t,Or(kr))&&cr.push(kr)}),cr},[ut,Qt,pn,_t,rt])},yn=ne(17115),Bt=ne(11592),Ke=["children","value"],gt=["children"];function Vt(ut){var rt=ut,_t=rt.key,Qt=rt.props,pn=Qt.children,sn=Qt.value,Bn=(0,Se.Z)(Qt,Ke);return(0,Ye.Z)({key:_t,value:sn!==void 0?sn:_t,children:pn},Bn)}function Nt(ut){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Bt.Z)(ut).map(function(_t,Qt){if(!Pe.isValidElement(_t)||!_t.type)return null;var pn=_t,sn=pn.type.isSelectOptGroup,Bn=pn.key,Yn=pn.props,cr=Yn.children,$n=(0,Se.Z)(Yn,gt);return rt||!sn?Vt(_t):(0,Ye.Z)((0,Ye.Z)({key:"__RC_SELECT_GRP__".concat(Bn===null?Qt:Bn,"__"),label:Bn},$n),{},{options:Nt(cr)})}).filter(function(_t){return _t})}function Xt(ut,rt,_t,Qt,pn){return Pe.useMemo(function(){var sn=ut,Bn=!ut;Bn&&(sn=Nt(rt));var Yn=new Map,cr=new Map,$n=function(Or,kr,Cr){Cr&&typeof Cr=="string"&&Or.set(kr[Cr],kr)};function en(rn){for(var Or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,kr=0;kr<rn.length;kr+=1){var Cr=rn[kr];!Cr[_t.options]||Or?(Yn.set(Cr[_t.value],Cr),$n(cr,Cr,_t.label),$n(cr,Cr,Qt),$n(cr,Cr,pn)):en(Cr[_t.options],!0)}}return en(sn),{options:sn,valueOptions:Yn,labelOptions:cr}},[ut,rt,_t,Qt,pn])}function Mn(ut){var rt=Pe.useRef();rt.current=ut;var _t=Pe.useCallback(function(){return rt.current.apply(rt,arguments)},[]);return _t}var Tn=function(){return null};Tn.isSelectOptGroup=!0;var Rn=Tn,ur=function(){return null};ur.isSelectOption=!0;var vr=ur,dr=ne(80547),mn=ne(2738),zn=ne(48911),jn=Pe.createContext(null),Xn=jn;function Sr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Kr=["disabled","title","children","style","className"];function ar(ut){return typeof ut=="string"||typeof ut=="number"}var Zn=function(rt,_t){var Qt=Qe(),pn=Qt.prefixCls,sn=Qt.id,Bn=Qt.open,Yn=Qt.multiple,cr=Qt.mode,$n=Qt.searchValue,en=Qt.toggleOpen,rn=Qt.notFoundContent,Or=Qt.onPopupScroll,kr=Pe.useContext(Xn),Cr=kr.flattenOptions,Dr=kr.onActiveValue,qr=kr.defaultActiveFirstOption,br=kr.onSelect,fi=kr.menuItemSelectedIcon,Jt=kr.rawValues,On=kr.fieldNames,Hn=kr.virtual,qn=kr.direction,kn=kr.listHeight,Vn=kr.listItemHeight,Pn="".concat(pn,"-item"),fr=(0,dr.Z)(function(){return Cr},[Bn,Cr],function(vi,jr){return jr[0]&&vi[1]!==jr[1]}),Pr=Pe.useRef(null),Gr=function(jr){jr.preventDefault()},pi=function(jr){Pr.current&&Pr.current.scrollTo(typeof jr=="number"?{index:jr}:jr)},gi=function(jr){for(var Ir=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Vi=fr.length,xi=0;xi<Vi;xi+=1){var na=(jr+xi*Ir+Vi)%Vi,ba=fr[na],oa=ba.group,xa=ba.data;if(!oa&&!xa.disabled)return na}return-1},Ri=Pe.useState(function(){return gi(0)}),Si=(0,Ce.Z)(Ri,2),wi=Si[0],Zi=Si[1],ji=function(jr){var Ir=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Zi(jr);var Vi={source:Ir?"keyboard":"mouse"},xi=fr[jr];if(!xi){Dr(null,-1,Vi);return}Dr(xi.value,jr,Vi)};(0,Pe.useEffect)(function(){ji(qr!==!1?gi(0):-1)},[fr.length,$n]);var Gi=Pe.useCallback(function(vi){return Jt.has(vi)&&cr!=="combobox"},[cr,(0,ye.Z)(Jt).toString(),Jt.size]);(0,Pe.useEffect)(function(){var vi=setTimeout(function(){if(!Yn&&Bn&&Jt.size===1){var Ir=Array.from(Jt)[0],Vi=fr.findIndex(function(xi){var na=xi.data;return na.value===Ir});Vi!==-1&&(ji(Vi),pi(Vi))}});if(Bn){var jr;(jr=Pr.current)===null||jr===void 0||jr.scrollTo(void 0)}return function(){return clearTimeout(vi)}},[Bn,$n,Cr.length]);var Bi=function(jr){jr!==void 0&&br(jr,{selected:!Jt.has(jr)}),Yn||en(!1)};if(Pe.useImperativeHandle(_t,function(){return{onKeyDown:function(jr){var Ir=jr.which,Vi=jr.ctrlKey;switch(Ir){case ze.Z.N:case ze.Z.P:case ze.Z.UP:case ze.Z.DOWN:{var xi=0;if(Ir===ze.Z.UP?xi=-1:Ir===ze.Z.DOWN?xi=1:Sr()&&Vi&&(Ir===ze.Z.N?xi=1:Ir===ze.Z.P&&(xi=-1)),xi!==0){var na=gi(wi+xi,xi);pi(na),ji(na,!0)}break}case ze.Z.ENTER:{var ba=fr[wi];ba&&!ba.data.disabled?Bi(ba.value):Bi(void 0),Bn&&jr.preventDefault();break}case ze.Z.ESC:en(!1),Bn&&jr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(jr){pi(jr)}}}),fr.length===0)return Pe.createElement("div",{role:"listbox",id:"".concat(sn,"_list"),className:"".concat(Pn,"-empty"),onMouseDown:Gr},rn);var Di=Object.keys(On).map(function(vi){return On[vi]}),zr=function(jr){return jr.label};function li(vi,jr){var Ir=vi.group;return{role:Ir?"presentation":"option",id:"".concat(sn,"_list_").concat(jr)}}var Ii=function(jr){var Ir=fr[jr];if(!Ir)return null;var Vi=Ir.data||{},xi=Vi.value,na=Ir.group,ba=(0,Re.Z)(Vi,!0),oa=zr(Ir);return Ir?Pe.createElement("div",(0,E.Z)({"aria-label":typeof oa=="string"&&!na?oa:null},ba,{key:jr},li(Ir,jr),{"aria-selected":Gi(xi)}),xi):null},ya={role:"listbox",id:"".concat(sn,"_list")};return Pe.createElement(Pe.Fragment,null,Hn&&Pe.createElement("div",(0,E.Z)({},ya,{style:{height:0,width:0,overflow:"hidden"}}),Ii(wi-1),Ii(wi),Ii(wi+1)),Pe.createElement(zn.Z,{itemKey:"key",ref:Pr,data:fr,height:kn,itemHeight:Vn,fullHeight:!1,onMouseDown:Gr,onScroll:Or,virtual:Hn,direction:qn,innerProps:Hn?null:ya},function(vi,jr){var Ir,Vi=vi.group,xi=vi.groupOption,na=vi.data,ba=vi.label,oa=vi.value,xa=na.key;if(Vi){var Na,Po=(Na=na.title)!==null&&Na!==void 0?Na:ar(ba)?ba.toString():void 0;return Pe.createElement("div",{className:Fe()(Pn,"".concat(Pn,"-group")),title:Po},ba!==void 0?ba:xa)}var ki=na.disabled,Hi=na.title,Aa=na.children,Ma=na.style,lo=na.className,hl=(0,Se.Z)(na,Kr),qo=(0,mn.Z)(hl,Di),co=Gi(oa),Ho="".concat(Pn,"-option"),Vo=Fe()(Pn,Ho,lo,(Ir={},(0,Ee.Z)(Ir,"".concat(Ho,"-grouped"),xi),(0,Ee.Z)(Ir,"".concat(Ho,"-active"),wi===jr&&!ki),(0,Ee.Z)(Ir,"".concat(Ho,"-disabled"),ki),(0,Ee.Z)(Ir,"".concat(Ho,"-selected"),co),Ir)),Qr=zr(vi),Ei=!fi||typeof fi=="function"||co,ri=typeof Qr=="number"?Qr:Qr||oa,hi=ar(ri)?ri.toString():void 0;return Hi!==void 0&&(hi=Hi),Pe.createElement("div",(0,E.Z)({},(0,Re.Z)(qo),Hn?{}:li(vi,jr),{"aria-selected":co,className:Vo,title:hi,onMouseMove:function(){wi===jr||ki||ji(jr)},onClick:function(){ki||Bi(oa)},style:Ma}),Pe.createElement("div",{className:"".concat(Ho,"-content")},ri),Pe.isValidElement(fi)||co,Ei&&Pe.createElement(Xe,{className:"".concat(Pn,"-option-state"),customizeIcon:fi,customizeIconProps:{isSelected:co}},co?"\u2713":null))}))},Wr=Pe.forwardRef(Zn);Wr.displayName="OptionList";var Gt=Wr;function or(ut){var rt=ut.mode,_t=ut.options,Qt=ut.children,pn=ut.backfill,sn=ut.allowClear,Bn=ut.placeholder,Yn=ut.getInputElement,cr=ut.showSearch,$n=ut.onSearch,en=ut.defaultOpen,rn=ut.autoFocus,Or=ut.labelInValue,kr=ut.value,Cr=ut.inputValue,Dr=ut.optionLabelProp,qr=isMultiple(rt),br=cr!==void 0?cr:qr||rt==="combobox",fi=_t||convertChildrenToData(Qt);if(warning(rt!=="tags"||fi.every(function(qn){return!qn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),rt==="tags"||rt==="combobox"){var Jt=fi.some(function(qn){return qn.options?qn.options.some(function(kn){return typeof("value"in kn?kn.value:kn.key)=="number"}):typeof("value"in qn?qn.value:qn.key)=="number"});warning(!Jt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(rt!=="combobox"||!Dr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(rt==="combobox"||!pn,"`backfill` only works with `combobox` mode."),warning(rt==="combobox"||!Yn,"`getInputElement` only work with `combobox` mode."),noteOnce(rt!=="combobox"||!Yn||!sn||!Bn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),$n&&!br&&rt!=="combobox"&&rt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!en||rn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),kr!=null){var On=toArray(kr);warning(!Or||On.every(function(qn){return _typeof(qn)==="object"&&("key"in qn||"value"in qn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!qr||Array.isArray(kr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Qt){var Hn=null;toNodeArray(Qt).some(function(qn){if(!React.isValidElement(qn)||!qn.type)return!1;var kn=qn,Vn=kn.type;if(Vn.isSelectOption)return!1;if(Vn.isSelectOptGroup){var Pn=toNodeArray(qn.props.children).every(function(fr){return!React.isValidElement(fr)||!qn.type||fr.type.isSelectOption?!0:(Hn=fr.type,!1)});return!Pn}return Hn=Vn,!0}),Hn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Hn.displayName||Hn.name||Hn,"`.")),warning(Cr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function er(ut,rt){if(ut){var _t=function Qt(pn){for(var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bn=0;Bn<pn.length;Bn++){var Yn=pn[Bn];if(Yn[rt==null?void 0:rt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!sn&&Array.isArray(Yn[rt==null?void 0:rt.options])&&Qt(Yn[rt==null?void 0:rt.options],!0))break}};_t(ut)}}var Kn=null,En=["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"],nr=["inputValue"];function lr(ut){return!ut||(0,pe.Z)(ut)!=="object"}var xr=Pe.forwardRef(function(ut,rt){var _t=ut.id,Qt=ut.mode,pn=ut.prefixCls,sn=pn===void 0?"rc-select":pn,Bn=ut.backfill,Yn=ut.fieldNames,cr=ut.inputValue,$n=ut.searchValue,en=ut.onSearch,rn=ut.autoClearSearchValue,Or=rn===void 0?!0:rn,kr=ut.onSelect,Cr=ut.onDeselect,Dr=ut.dropdownMatchSelectWidth,qr=Dr===void 0?!0:Dr,br=ut.filterOption,fi=ut.filterSort,Jt=ut.optionFilterProp,On=ut.optionLabelProp,Hn=ut.options,qn=ut.children,kn=ut.defaultActiveFirstOption,Vn=ut.menuItemSelectedIcon,Pn=ut.virtual,fr=ut.direction,Pr=ut.listHeight,Gr=Pr===void 0?200:Pr,pi=ut.listItemHeight,gi=pi===void 0?20:pi,Ri=ut.value,Si=ut.defaultValue,wi=ut.labelInValue,Zi=ut.onChange,ji=(0,Se.Z)(ut,En),Gi=(0,yn.ZP)(_t),Bi=Et(Qt),Di=!!(!Hn&&qn),zr=Pe.useMemo(function(){return br===void 0&&Qt==="combobox"?!1:br},[br,Qt]),li=Pe.useMemo(function(){return oe(Yn,Di)},[JSON.stringify(Yn),Di]),Ii=(0,be.Z)("",{value:$n!==void 0?$n:cr,postState:function(si){return si||""}}),ya=(0,Ce.Z)(Ii,2),vi=ya[0],jr=ya[1],Ir=Xt(Hn,qn,li,Jt,On),Vi=Ir.valueOptions,xi=Ir.labelOptions,na=Ir.options,ba=Pe.useCallback(function(Xr){var si=xt(Xr);return si.map(function(pr){var Jr,Li,Oi,la,mi;if(lr(pr))Jr=pr;else{var Pa;Oi=pr.key,Li=pr.label,Jr=(Pa=pr.value)!==null&&Pa!==void 0?Pa:Oi}var qa=Vi.get(Jr);if(qa){var Ka;if(Li===void 0&&(Li=qa==null?void 0:qa[On||li.label]),Oi===void 0&&(Oi=(Ka=qa==null?void 0:qa.key)!==null&&Ka!==void 0?Ka:Jr),la=qa==null?void 0:qa.disabled,mi=qa==null?void 0:qa.title,0)var Yi}return{label:Li,value:Jr,key:Oi,disabled:la,title:mi}})},[li,On,Vi]),oa=(0,be.Z)(Si,{value:Ri}),xa=(0,Ce.Z)(oa,2),Na=xa[0],Po=xa[1],ki=Pe.useMemo(function(){var Xr,si=ba(Na);return Qt==="combobox"&&wt((Xr=si[0])===null||Xr===void 0?void 0:Xr.value)?[]:si},[Na,ba,Qt]),Hi=vn(ki,Vi),Aa=(0,Ce.Z)(Hi,2),Ma=Aa[0],lo=Aa[1],hl=Pe.useMemo(function(){if(!Qt&&Ma.length===1){var Xr=Ma[0];if(Xr.value===null&&(Xr.label===null||Xr.label===void 0))return[]}return Ma.map(function(si){var pr;return(0,Ye.Z)((0,Ye.Z)({},si),{},{label:(pr=si.label)!==null&&pr!==void 0?pr:si.value})})},[Qt,Ma]),qo=Pe.useMemo(function(){return new Set(Ma.map(function(Xr){return Xr.value}))},[Ma]);Pe.useEffect(function(){if(Qt==="combobox"){var Xr,si=(Xr=Ma[0])===null||Xr===void 0?void 0:Xr.value;jr(nt(si)?String(si):"")}},[Ma]);var co=Mn(function(Xr,si){var pr,Jr=si!=null?si:Xr;return pr={},(0,Ee.Z)(pr,li.value,Xr),(0,Ee.Z)(pr,li.label,Jr),pr}),Ho=Pe.useMemo(function(){if(Qt!=="tags")return na;var Xr=(0,ye.Z)(na),si=function(Jr){return Vi.has(Jr)};return(0,ye.Z)(Ma).sort(function(pr,Jr){return pr.value<Jr.value?-1:1}).forEach(function(pr){var Jr=pr.value;si(Jr)||Xr.push(co(Jr,pr.label))}),Xr},[co,na,Vi,Ma,Qt]),Vo=Ut(Ho,li,vi,zr,Jt),Qr=Pe.useMemo(function(){return Qt!=="tags"||!vi||Vo.some(function(Xr){return Xr[Jt||"value"]===vi})||Vo.some(function(Xr){return Xr[li.value]===vi})?Vo:[co(vi)].concat((0,ye.Z)(Vo))},[co,Jt,Qt,Vo,vi,li]),Ei=Pe.useMemo(function(){return fi?(0,ye.Z)(Qr).sort(function(Xr,si){return fi(Xr,si)}):Qr},[Qr,fi]),ri=Pe.useMemo(function(){return Ne(Ei,{fieldNames:li,childrenAsData:Di})},[Ei,li,Di]),hi=function(si){var pr=ba(si);if(Po(pr),Zi&&(pr.length!==Ma.length||pr.some(function(Oi,la){var mi;return((mi=Ma[la])===null||mi===void 0?void 0:mi.value)!==(Oi==null?void 0:Oi.value)}))){var Jr=wi?pr:pr.map(function(Oi){return Oi.value}),Li=pr.map(function(Oi){return At(lo(Oi.value))});Zi(Bi?Jr:Jr[0],Bi?Li:Li[0])}},Ta=Pe.useState(null),vo=(0,Ce.Z)(Ta,2),go=vo[0],So=vo[1],yo=Pe.useState(0),Lo=(0,Ce.Z)(yo,2),nl=Lo[0],ea=Lo[1],gl=kn!==void 0?kn:Qt!=="combobox",ol=Pe.useCallback(function(Xr,si){var pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jr=pr.source,Li=Jr===void 0?"keyboard":Jr;ea(si),Bn&&Qt==="combobox"&&Xr!==null&&Li==="keyboard"&&So(String(Xr))},[Bn,Qt]),pl=function(si,pr,Jr){var Li=function(){var ro,xo=lo(si);return[wi?{label:xo==null?void 0:xo[li.label],value:si,key:(ro=xo==null?void 0:xo.key)!==null&&ro!==void 0?ro:si}:si,At(xo)]};if(pr&&kr){var Oi=Li(),la=(0,Ce.Z)(Oi,2),mi=la[0],Pa=la[1];kr(mi,Pa)}else if(!pr&&Cr&&Jr!=="clear"){var qa=Li(),Ka=(0,Ce.Z)(qa,2),Yi=Ka[0],pa=Ka[1];Cr(Yi,pa)}},Xl=Mn(function(Xr,si){var pr,Jr=Bi?si.selected:!0;Jr?pr=Bi?[].concat((0,ye.Z)(Ma),[Xr]):[Xr]:pr=Ma.filter(function(Li){return Li.value!==Xr}),hi(pr),pl(Xr,Jr),Qt==="combobox"?So(""):(!Et||Or)&&(jr(""),So(""))}),hr=function(si,pr){hi(si);var Jr=pr.type,Li=pr.values;(Jr==="remove"||Jr==="clear")&&Li.forEach(function(Oi){pl(Oi.value,!1,Jr)})},Gn=function(si,pr){if(jr(si),So(null),pr.source==="submit"){var Jr=(si||"").trim();if(Jr){var Li=Array.from(new Set([].concat((0,ye.Z)(qo),[Jr])));hi(Li),pl(Jr,!0),jr("")}return}pr.source!=="blur"&&(Qt==="combobox"&&hi(si),en==null||en(si))},gr=function(si){var pr=si;Qt!=="tags"&&(pr=si.map(function(Li){var Oi=xi.get(Li);return Oi==null?void 0:Oi.value}).filter(function(Li){return Li!==void 0}));var Jr=Array.from(new Set([].concat((0,ye.Z)(qo),(0,ye.Z)(pr))));hi(Jr),Jr.forEach(function(Li){pl(Li,!0)})},Vr=Pe.useMemo(function(){var Xr=Pn!==!1&&qr!==!1;return(0,Ye.Z)((0,Ye.Z)({},Ir),{},{flattenOptions:ri,onActiveValue:ol,defaultActiveFirstOption:gl,onSelect:Xl,menuItemSelectedIcon:Vn,rawValues:qo,fieldNames:li,virtual:Xr,direction:fr,listHeight:Gr,listItemHeight:gi,childrenAsData:Di})},[Ir,ri,ol,gl,Xl,Vn,qo,li,Pn,qr,Gr,gi,Di]);return Pe.createElement(Xn.Provider,{value:Vr},Pe.createElement(Kt,(0,E.Z)({},ji,{id:Gi,prefixCls:sn,ref:rt,omitDomProps:nr,mode:Qt,displayValues:hl,onDisplayValuesChange:hr,direction:fr,searchValue:vi,onSearch:Gn,autoClearSearchValue:Or,onSearchSplit:gr,dropdownMatchSelectWidth:qr,OptionList:Gt,emptyOptions:!ri.length,activeValue:go,activeDescendantId:"".concat(Gi,"_list_").concat(nl)})))}),jt=xr;jt.Option=vr,jt.OptGroup=Rn;var Ue=jt,yt=Ue},9296:function(An,tn,ne){"use strict";ne.r(tn),ne.d(tn,{ResizableTextArea:function(){return mt},default:function(){return wt}});var E=ne(60499),ye=ne(85899),Ee=ne(18642),Ye=ne(43749),Ce=ne(72190),Se=ne(42244),pe=ne(77654),be=ne(92310),De=ne.n(be),Pe=ne(93681),et=ne(5643),Fe=ne(18929),Ie=ne(59301),tt=ne(29301),ze=ne(34280),We=ne(16089),lt=`
|
|
|
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;
|
|
|
`,Xe=["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"],Dt={},dt;function Qe(Mt){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Le=Mt.getAttribute("id")||Mt.getAttribute("data-reactid")||Mt.getAttribute("name");if(at&&Dt[Le])return Dt[Le];var Me=window.getComputedStyle(Mt),st=Me.getPropertyValue("box-sizing")||Me.getPropertyValue("-moz-box-sizing")||Me.getPropertyValue("-webkit-box-sizing"),Ht=parseFloat(Me.getPropertyValue("padding-bottom"))+parseFloat(Me.getPropertyValue("padding-top")),Tt=parseFloat(Me.getPropertyValue("border-bottom-width"))+parseFloat(Me.getPropertyValue("border-top-width")),ct=Xe.map(function(Zt){return"".concat(Zt,":").concat(Me.getPropertyValue(Zt))}).join(";"),Ct={sizingStyle:ct,paddingSize:Ht,borderSize:Tt,boxSizing:st};return at&&Le&&(Dt[Le]=Ct),Ct}function Ze(Mt){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;dt||(dt=document.createElement("textarea"),dt.setAttribute("tab-index","-1"),dt.setAttribute("aria-hidden","true"),document.body.appendChild(dt)),Mt.getAttribute("wrap")?dt.setAttribute("wrap",Mt.getAttribute("wrap")):dt.removeAttribute("wrap");var st=Qe(Mt,at),Ht=st.paddingSize,Tt=st.borderSize,ct=st.boxSizing,Ct=st.sizingStyle;dt.setAttribute("style","".concat(Ct,";").concat(lt)),dt.value=Mt.value||Mt.placeholder||"";var Zt=void 0,gn=void 0,$t,Wt=dt.scrollHeight;if(ct==="border-box"?Wt+=Tt:ct==="content-box"&&(Wt-=Ht),Le!==null||Me!==null){dt.value=" ";var on=dt.scrollHeight-Ht;Le!==null&&(Zt=on*Le,ct==="border-box"&&(Zt=Zt+Ht+Tt),Wt=Math.max(Zt,Wt)),Me!==null&&(gn=on*Me,ct==="border-box"&&(gn=gn+Ht+Tt),$t=Wt>gn?"":"hidden",Wt=Math.min(gn,Wt))}var dn={height:Wt,overflowY:$t,resize:"none"};return Zt&&(dn.minHeight=Zt),gn&&(dn.maxHeight=gn),dn}var Ae=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Je=0,Re=1,vt=2,$e=Ie.forwardRef(function(Mt,at){var Le=Mt,Me=Le.prefixCls,st=Le.onPressEnter,Ht=Le.defaultValue,Tt=Le.value,ct=Le.autoSize,Ct=Le.onResize,Zt=Le.className,gn=Le.style,$t=Le.disabled,Wt=Le.onChange,on=Le.onInternalAutoSize,dn=(0,Se.Z)(Le,Ae),ln=(0,Fe.Z)(Ht,{value:Tt,postState:function(Rn){return Rn!=null?Rn:""}}),xe=(0,Ce.Z)(ln,2),fe=xe[0],ue=xe[1],he=function(Rn){ue(Rn.target.value),Wt==null||Wt(Rn)},me=Ie.useRef();Ie.useImperativeHandle(at,function(){return{textArea:me.current}});var oe=Ie.useMemo(function(){return ct&&(0,Ye.Z)(ct)==="object"?[ct.minRows,ct.maxRows]:[]},[ct]),Ne=(0,Ce.Z)(oe,2),At=Ne[0],Ge=Ne[1],je=!!ct,Pt=function(){try{if(document.activeElement===me.current){var Rn=me.current,ur=Rn.selectionStart,vr=Rn.selectionEnd,dr=Rn.scrollTop;me.current.setSelectionRange(ur,vr),me.current.scrollTop=dr}}catch(mn){}},Et=Ie.useState(vt),ht=(0,Ce.Z)(Et,2),Kt=ht[0],vn=ht[1],kt=Ie.useState(),Ut=(0,Ce.Z)(kt,2),yn=Ut[0],Bt=Ut[1],Ke=function(){vn(Je)};(0,ze.Z)(function(){je&&Ke()},[Tt,At,Ge,je]),(0,ze.Z)(function(){if(Kt===Je)vn(Re);else if(Kt===Re){var Tn=Ze(me.current,!1,At,Ge);vn(vt),Bt(Tn)}else Pt()},[Kt]);var gt=Ie.useRef(),Vt=function(){We.Z.cancel(gt.current)},Nt=function(Rn){Kt===vt&&(Ct==null||Ct(Rn),ct&&(Vt(),gt.current=(0,We.Z)(function(){Ke()})))};Ie.useEffect(function(){return Vt},[]);var Xt=je?yn:null,Mn=(0,ye.Z)((0,ye.Z)({},gn),Xt);return(Kt===Je||Kt===Re)&&(Mn.overflowY="hidden",Mn.overflowX="hidden"),Ie.createElement(tt.Z,{onResize:Nt,disabled:!(ct||Ct)},Ie.createElement("textarea",(0,E.Z)({},dn,{ref:me,style:Mn,className:De()(Me,Zt,(0,Ee.Z)({},"".concat(Me,"-disabled"),$t)),disabled:$t,value:fe,onChange:he})))}),mt=$e,Be=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function xt(Mt,at){return(0,pe.Z)(Mt||"").slice(0,at).join("")}function Ve(Mt,at,Le,Me){var st=Le;return Mt?st=xt(Le,Me):(0,pe.Z)(at||"").length<Le.length&&(0,pe.Z)(Le||"").length>Me&&(st=at),st}var Ot=Ie.forwardRef(function(Mt,at){var Le,Me=Mt.defaultValue,st=Mt.value,Ht=Mt.onFocus,Tt=Mt.onBlur,ct=Mt.onChange,Ct=Mt.allowClear,Zt=Mt.maxLength,gn=Mt.onCompositionStart,$t=Mt.onCompositionEnd,Wt=Mt.suffix,on=Mt.prefixCls,dn=on===void 0?"rc-textarea":on,ln=Mt.classes,xe=Mt.showCount,fe=Mt.className,ue=Mt.style,he=Mt.disabled,me=Mt.hidden,oe=Mt.classNames,Ne=Mt.styles,At=Mt.onResize,Ge=(0,Se.Z)(Mt,Be),je=(0,Fe.Z)(Me,{value:st,defaultValue:Me}),Pt=(0,Ce.Z)(je,2),Et=Pt[0],ht=Pt[1],Kt=(0,Ie.useRef)(null),vn=Ie.useState(!1),kt=(0,Ce.Z)(vn,2),Ut=kt[0],yn=kt[1],Bt=Ie.useState(!1),Ke=(0,Ce.Z)(Bt,2),gt=Ke[0],Vt=Ke[1],Nt=Ie.useRef(),Xt=Ie.useRef(0),Mn=Ie.useState(null),Tn=(0,Ce.Z)(Mn,2),Rn=Tn[0],ur=Tn[1],vr=function(){var lr;(lr=Kt.current)===null||lr===void 0||lr.textArea.focus()};(0,Ie.useImperativeHandle)(at,function(){return{resizableTextArea:Kt.current,focus:vr,blur:function(){var lr;(lr=Kt.current)===null||lr===void 0||lr.textArea.blur()}}}),(0,Ie.useEffect)(function(){yn(function(nr){return!he&&nr})},[he]);var dr=Number(Zt)>0,mn=function(lr){Vt(!0),Nt.current=Et,Xt.current=lr.currentTarget.selectionStart,gn==null||gn(lr)},zn=function(lr){Vt(!1);var xr=lr.currentTarget.value;if(dr){var jt,Ue=Xt.current>=Zt+1||Xt.current===((jt=Nt.current)===null||jt===void 0?void 0:jt.length);xr=Ve(Ue,Nt.current,xr,Zt)}xr!==Et&&(ht(xr),(0,et.rJ)(lr.currentTarget,lr,ct,xr)),$t==null||$t(lr)},jn=function(lr){var xr=lr.target.value;if(!gt&&dr){var jt=lr.target.selectionStart>=Zt+1||lr.target.selectionStart===xr.length||!lr.target.selectionStart;xr=Ve(jt,Et,xr,Zt)}ht(xr),(0,et.rJ)(lr.currentTarget,lr,ct,xr)},Xn=function(lr){var xr=Ge.onPressEnter,jt=Ge.onKeyDown;lr.key==="Enter"&&xr&&xr(lr),jt==null||jt(lr)},Sr=function(lr){yn(!0),Ht==null||Ht(lr)},Kr=function(lr){yn(!1),Tt==null||Tt(lr)},ar=function(lr){var xr;ht(""),vr(),(0,et.rJ)((xr=Kt.current)===null||xr===void 0?void 0:xr.textArea,lr,ct)},Zn=(0,et.D7)(Et);!gt&&dr&&st==null&&(Zn=xt(Zn,Zt));var Wr=Wt,Gt;if(xe){var or=(0,pe.Z)(Zn).length;(0,Ye.Z)(xe)==="object"?Gt=xe.formatter({value:Zn,count:or,maxLength:Zt}):Gt="".concat(or).concat(dr?" / ".concat(Zt):""),Wr=Ie.createElement(Ie.Fragment,null,Wr,Ie.createElement("span",{className:De()("".concat(dn,"-data-count"),oe==null?void 0:oe.count),style:Ne==null?void 0:Ne.count},Gt))}var er=function(lr){var xr;At==null||At(lr),(xr=Kt.current)!==null&&xr!==void 0&&xr.textArea.style.height&&ur(!0)},Kn=!Ge.autoSize&&!xe&&!Ct,En=Ie.createElement(Pe.BaseInput,{value:Zn,allowClear:Ct,handleReset:ar,suffix:Wr,prefixCls:dn,classes:{affixWrapper:De()(ln==null?void 0:ln.affixWrapper,(Le={},(0,Ee.Z)(Le,"".concat(dn,"-show-count"),xe),(0,Ee.Z)(Le,"".concat(dn,"-textarea-allow-clear"),Ct),Le))},disabled:he,focused:Ut,className:fe,style:(0,ye.Z)((0,ye.Z)({},ue),Rn&&!Kn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Gt=="string"?Gt:void 0}},hidden:me,inputElement:Ie.createElement(mt,(0,E.Z)({},Ge,{onKeyDown:Xn,onChange:jn,onFocus:Sr,onBlur:Kr,onCompositionStart:mn,onCompositionEnd:zn,className:oe==null?void 0:oe.textarea,style:(0,ye.Z)((0,ye.Z)({},Ne==null?void 0:Ne.textarea),{},{resize:ue==null?void 0:ue.resize}),disabled:he,prefixCls:dn,onResize:er,ref:Kt}))});return En}),nt=Ot,wt=nt},39417:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return Re}});var E=ne(60499),ye=ne(18642),Ee=ne(42244),Ye=ne(85899),Ce=ne(38705),Se=ne(17212),pe=ne(15793),be=ne(39153),De=ne(55401),Pe=ne(92310),et=ne.n(Pe),Fe=ne(26112),Ie=ne(59301),tt=ne(39378),ze=function($e){for(var mt=$e.prefixCls,Be=$e.level,xt=$e.isStart,Ve=$e.isEnd,Ot="".concat(mt,"-indent-unit"),nt=[],wt=0;wt<Be;wt+=1){var Mt;nt.push(Ie.createElement("span",{key:wt,className:et()(Ot,(Mt={},(0,ye.Z)(Mt,"".concat(Ot,"-start"),xt[wt]),(0,ye.Z)(Mt,"".concat(Ot,"-end"),Ve[wt]),Mt))}))}return Ie.createElement("span",{"aria-hidden":"true",className:"".concat(mt,"-indent")},nt)},We=Ie.memo(ze),lt=ne(67841),Xe=ne(71430),Dt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],dt="open",Qe="close",Ze="---",Ae=function(vt){(0,be.Z)(mt,vt);var $e=(0,De.Z)(mt);function mt(){var Be;(0,Ce.Z)(this,mt);for(var xt=arguments.length,Ve=new Array(xt),Ot=0;Ot<xt;Ot++)Ve[Ot]=arguments[Ot];return Be=$e.call.apply($e,[this].concat(Ve)),Be.state={dragNodeHighlight:!1},Be.selectHandle=void 0,Be.cacheIndent=void 0,Be.onSelectorClick=function(nt){var wt=Be.props.context.onNodeClick;wt(nt,(0,Xe.F)(Be.props)),Be.isSelectable()?Be.onSelect(nt):Be.onCheck(nt)},Be.onSelectorDoubleClick=function(nt){var wt=Be.props.context.onNodeDoubleClick;wt(nt,(0,Xe.F)(Be.props))},Be.onSelect=function(nt){if(!Be.isDisabled()){var wt=Be.props.context.onNodeSelect;wt(nt,(0,Xe.F)(Be.props))}},Be.onCheck=function(nt){if(!Be.isDisabled()){var wt=Be.props,Mt=wt.disableCheckbox,at=wt.checked,Le=Be.props.context.onNodeCheck;if(!(!Be.isCheckable()||Mt)){var Me=!at;Le(nt,(0,Xe.F)(Be.props),Me)}}},Be.onMouseEnter=function(nt){var wt=Be.props.context.onNodeMouseEnter;wt(nt,(0,Xe.F)(Be.props))},Be.onMouseLeave=function(nt){var wt=Be.props.context.onNodeMouseLeave;wt(nt,(0,Xe.F)(Be.props))},Be.onContextMenu=function(nt){var wt=Be.props.context.onNodeContextMenu;wt(nt,(0,Xe.F)(Be.props))},Be.onDragStart=function(nt){var wt=Be.props.context.onNodeDragStart;nt.stopPropagation(),Be.setState({dragNodeHighlight:!0}),wt(nt,(0,pe.Z)(Be));try{nt.dataTransfer.setData("text/plain","")}catch(Mt){}},Be.onDragEnter=function(nt){var wt=Be.props.context.onNodeDragEnter;nt.preventDefault(),nt.stopPropagation(),wt(nt,(0,pe.Z)(Be))},Be.onDragOver=function(nt){var wt=Be.props.context.onNodeDragOver;nt.preventDefault(),nt.stopPropagation(),wt(nt,(0,pe.Z)(Be))},Be.onDragLeave=function(nt){var wt=Be.props.context.onNodeDragLeave;nt.stopPropagation(),wt(nt,(0,pe.Z)(Be))},Be.onDragEnd=function(nt){var wt=Be.props.context.onNodeDragEnd;nt.stopPropagation(),Be.setState({dragNodeHighlight:!1}),wt(nt,(0,pe.Z)(Be))},Be.onDrop=function(nt){var wt=Be.props.context.onNodeDrop;nt.preventDefault(),nt.stopPropagation(),Be.setState({dragNodeHighlight:!1}),wt(nt,(0,pe.Z)(Be))},Be.onExpand=function(nt){var wt=Be.props,Mt=wt.loading,at=wt.context.onNodeExpand;Mt||at(nt,(0,Xe.F)(Be.props))},Be.setSelectHandle=function(nt){Be.selectHandle=nt},Be.getNodeState=function(){var nt=Be.props.expanded;return Be.isLeaf()?null:nt?dt:Qe},Be.hasChildren=function(){var nt=Be.props.eventKey,wt=Be.props.context.keyEntities,Mt=(0,lt.Z)(wt,nt)||{},at=Mt.children;return!!(at||[]).length},Be.isLeaf=function(){var nt=Be.props,wt=nt.isLeaf,Mt=nt.loaded,at=Be.props.context.loadData,Le=Be.hasChildren();return wt===!1?!1:wt||!at&&!Le||at&&Mt&&!Le},Be.isDisabled=function(){var nt=Be.props.disabled,wt=Be.props.context.disabled;return!!(wt||nt)},Be.isCheckable=function(){var nt=Be.props.checkable,wt=Be.props.context.checkable;return!wt||nt===!1?!1:wt},Be.syncLoadData=function(nt){var wt=nt.expanded,Mt=nt.loading,at=nt.loaded,Le=Be.props.context,Me=Le.loadData,st=Le.onNodeLoad;Mt||Me&&wt&&!Be.isLeaf()&&!Be.hasChildren()&&!at&&st((0,Xe.F)(Be.props))},Be.isDraggable=function(){var nt=Be.props,wt=nt.data,Mt=nt.context.draggable;return!!(Mt&&(!Mt.nodeDraggable||Mt.nodeDraggable(wt)))},Be.renderDragHandler=function(){var nt=Be.props.context,wt=nt.draggable,Mt=nt.prefixCls;return wt!=null&&wt.icon?Ie.createElement("span",{className:"".concat(Mt,"-draggable-icon")},wt.icon):null},Be.renderSwitcherIconDom=function(nt){var wt=Be.props.switcherIcon,Mt=Be.props.context.switcherIcon,at=wt||Mt;return typeof at=="function"?at((0,Ye.Z)((0,Ye.Z)({},Be.props),{},{isLeaf:nt})):at},Be.renderSwitcher=function(){var nt=Be.props.expanded,wt=Be.props.context.prefixCls;if(Be.isLeaf()){var Mt=Be.renderSwitcherIconDom(!0);return Mt!==!1?Ie.createElement("span",{className:et()("".concat(wt,"-switcher"),"".concat(wt,"-switcher-noop"))},Mt):null}var at=et()("".concat(wt,"-switcher"),"".concat(wt,"-switcher_").concat(nt?dt:Qe)),Le=Be.renderSwitcherIconDom(!1);return Le!==!1?Ie.createElement("span",{onClick:Be.onExpand,className:at},Le):null},Be.renderCheckbox=function(){var nt=Be.props,wt=nt.checked,Mt=nt.halfChecked,at=nt.disableCheckbox,Le=Be.props.context.prefixCls,Me=Be.isDisabled(),st=Be.isCheckable();if(!st)return null;var Ht=typeof st!="boolean"?st:null;return Ie.createElement("span",{className:et()("".concat(Le,"-checkbox"),wt&&"".concat(Le,"-checkbox-checked"),!wt&&Mt&&"".concat(Le,"-checkbox-indeterminate"),(Me||at)&&"".concat(Le,"-checkbox-disabled")),onClick:Be.onCheck},Ht)},Be.renderIcon=function(){var nt=Be.props.loading,wt=Be.props.context.prefixCls;return Ie.createElement("span",{className:et()("".concat(wt,"-iconEle"),"".concat(wt,"-icon__").concat(Be.getNodeState()||"docu"),nt&&"".concat(wt,"-icon_loading"))})},Be.renderSelector=function(){var nt=Be.state.dragNodeHighlight,wt=Be.props,Mt=wt.title,at=Mt===void 0?Ze:Mt,Le=wt.selected,Me=wt.icon,st=wt.loading,Ht=wt.data,Tt=Be.props.context,ct=Tt.prefixCls,Ct=Tt.showIcon,Zt=Tt.icon,gn=Tt.loadData,$t=Tt.titleRender,Wt=Be.isDisabled(),on="".concat(ct,"-node-content-wrapper"),dn;if(Ct){var ln=Me||Zt;dn=ln?Ie.createElement("span",{className:et()("".concat(ct,"-iconEle"),"".concat(ct,"-icon__customize"))},typeof ln=="function"?ln(Be.props):ln):Be.renderIcon()}else gn&&st&&(dn=Be.renderIcon());var xe;typeof at=="function"?xe=at(Ht):$t?xe=$t(Ht):xe=at;var fe=Ie.createElement("span",{className:"".concat(ct,"-title")},xe);return Ie.createElement("span",{ref:Be.setSelectHandle,title:typeof at=="string"?at:"",className:et()("".concat(on),"".concat(on,"-").concat(Be.getNodeState()||"normal"),!Wt&&(Le||nt)&&"".concat(ct,"-node-selected")),onMouseEnter:Be.onMouseEnter,onMouseLeave:Be.onMouseLeave,onContextMenu:Be.onContextMenu,onClick:Be.onSelectorClick,onDoubleClick:Be.onSelectorDoubleClick},dn,fe,Be.renderDropIndicator())},Be.renderDropIndicator=function(){var nt=Be.props,wt=nt.disabled,Mt=nt.eventKey,at=Be.props.context,Le=at.draggable,Me=at.dropLevelOffset,st=at.dropPosition,Ht=at.prefixCls,Tt=at.indent,ct=at.dropIndicatorRender,Ct=at.dragOverNodeKey,Zt=at.direction,gn=!!Le,$t=!wt&&gn&&Ct===Mt,Wt=Tt!=null?Tt:Be.cacheIndent;return Be.cacheIndent=Tt,$t?ct({dropPosition:st,dropLevelOffset:Me,indent:Wt,prefixCls:Ht,direction:Zt}):null},Be}return(0,Se.Z)(mt,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var xt=this.props.selectable,Ve=this.props.context.selectable;return typeof xt=="boolean"?xt:Ve}},{key:"render",value:function(){var xt,Ve=this.props,Ot=Ve.eventKey,nt=Ve.className,wt=Ve.style,Mt=Ve.dragOver,at=Ve.dragOverGapTop,Le=Ve.dragOverGapBottom,Me=Ve.isLeaf,st=Ve.isStart,Ht=Ve.isEnd,Tt=Ve.expanded,ct=Ve.selected,Ct=Ve.checked,Zt=Ve.halfChecked,gn=Ve.loading,$t=Ve.domRef,Wt=Ve.active,on=Ve.data,dn=Ve.onMouseMove,ln=Ve.selectable,xe=(0,Ee.Z)(Ve,Dt),fe=this.props.context,ue=fe.prefixCls,he=fe.filterTreeNode,me=fe.keyEntities,oe=fe.dropContainerKey,Ne=fe.dropTargetKey,At=fe.draggingNodeKey,Ge=this.isDisabled(),je=(0,Fe.Z)(xe,{aria:!0,data:!0}),Pt=(0,lt.Z)(me,Ot)||{},Et=Pt.level,ht=Ht[Ht.length-1],Kt=this.isDraggable(),vn=!Ge&&Kt,kt=At===Ot,Ut=ln!==void 0?{"aria-selected":!!ln}:void 0;return Ie.createElement("div",(0,E.Z)({ref:$t,className:et()(nt,"".concat(ue,"-treenode"),(xt={},(0,ye.Z)(xt,"".concat(ue,"-treenode-disabled"),Ge),(0,ye.Z)(xt,"".concat(ue,"-treenode-switcher-").concat(Tt?"open":"close"),!Me),(0,ye.Z)(xt,"".concat(ue,"-treenode-checkbox-checked"),Ct),(0,ye.Z)(xt,"".concat(ue,"-treenode-checkbox-indeterminate"),Zt),(0,ye.Z)(xt,"".concat(ue,"-treenode-selected"),ct),(0,ye.Z)(xt,"".concat(ue,"-treenode-loading"),gn),(0,ye.Z)(xt,"".concat(ue,"-treenode-active"),Wt),(0,ye.Z)(xt,"".concat(ue,"-treenode-leaf-last"),ht),(0,ye.Z)(xt,"".concat(ue,"-treenode-draggable"),Kt),(0,ye.Z)(xt,"dragging",kt),(0,ye.Z)(xt,"drop-target",Ne===Ot),(0,ye.Z)(xt,"drop-container",oe===Ot),(0,ye.Z)(xt,"drag-over",!Ge&&Mt),(0,ye.Z)(xt,"drag-over-gap-top",!Ge&&at),(0,ye.Z)(xt,"drag-over-gap-bottom",!Ge&&Le),(0,ye.Z)(xt,"filter-node",he&&he((0,Xe.F)(this.props))),xt)),style:wt,draggable:vn,"aria-grabbed":kt,onDragStart:vn?this.onDragStart:void 0,onDragEnter:Kt?this.onDragEnter:void 0,onDragOver:Kt?this.onDragOver:void 0,onDragLeave:Kt?this.onDragLeave:void 0,onDrop:Kt?this.onDrop:void 0,onDragEnd:Kt?this.onDragEnd:void 0,onMouseMove:dn},Ut,je),Ie.createElement(We,{prefixCls:ue,level:Et,isStart:st,isEnd:Ht}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),mt}(Ie.Component),Je=function($e){return Ie.createElement(tt.k.Consumer,null,function(mt){return Ie.createElement(Ae,(0,E.Z)({},$e,{context:mt}))})};Je.displayName="TreeNode",Je.isTreeNode=1;var Re=Je},39378:function(An,tn,ne){"use strict";ne.d(tn,{k:function(){return ye}});var E=ne(59301),ye=E.createContext(null)},38028:function(An,tn,ne){"use strict";ne.d(tn,{O:function(){return Re.Z},Z:function(){return fe}});var E=ne(60499),ye=ne(18642),Ee=ne(43749),Ye=ne(85899),Ce=ne(77654),Se=ne(38705),pe=ne(17212),be=ne(15793),De=ne(39153),Pe=ne(55401),et=ne(92310),Fe=ne.n(et),Ie=ne(10228),tt=ne(26112),ze=ne(48736),We=ne(59301),lt=ne(39378);function Xe(ue){var he=ue.dropPosition,me=ue.dropLevelOffset,oe=ue.indent,Ne={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(he){case-1:Ne.top=0,Ne.left=-me*oe;break;case 1:Ne.bottom=0,Ne.left=-me*oe;break;case 0:Ne.bottom=0,Ne.left=oe;break}return We.createElement("div",{style:Ne})}function Dt(ue){if(ue==null)throw new TypeError("Cannot destructure "+ue)}var dt=ne(72190),Qe=ne(42244),Ze=ne(34280),Ae=ne(48911),Je=ne(77900),Re=ne(39417);function vt(ue,he){var me=We.useState(!1),oe=(0,dt.Z)(me,2),Ne=oe[0],At=oe[1];We.useLayoutEffect(function(){if(Ne)return ue(),function(){he()}},[Ne]),We.useLayoutEffect(function(){return At(!0),function(){At(!1)}},[])}var $e=ne(71430),mt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Be=function(he,me){var oe=he.className,Ne=he.style,At=he.motion,Ge=he.motionNodes,je=he.motionType,Pt=he.onMotionStart,Et=he.onMotionEnd,ht=he.active,Kt=he.treeNodeRequiredProps,vn=(0,Qe.Z)(he,mt),kt=We.useState(!0),Ut=(0,dt.Z)(kt,2),yn=Ut[0],Bt=Ut[1],Ke=We.useContext(lt.k),gt=Ke.prefixCls,Vt=Ge&&je!=="hide";(0,Ze.Z)(function(){Ge&&Vt!==yn&&Bt(Vt)},[Ge]);var Nt=function(){Ge&&Pt()},Xt=We.useRef(!1),Mn=function(){Ge&&!Xt.current&&(Xt.current=!0,Et())};vt(Nt,Mn);var Tn=function(ur){Vt===ur&&Mn()};return Ge?We.createElement(Je.default,(0,E.Z)({ref:me,visible:yn},At,{motionAppear:je==="show",onVisibleChanged:Tn}),function(Rn,ur){var vr=Rn.className,dr=Rn.style;return We.createElement("div",{ref:ur,className:Fe()("".concat(gt,"-treenode-motion"),vr),style:dr},Ge.map(function(mn){var zn=(0,E.Z)({},(Dt(mn.data),mn.data)),jn=mn.title,Xn=mn.key,Sr=mn.isStart,Kr=mn.isEnd;delete zn.children;var ar=(0,$e.H8)(Xn,Kt);return We.createElement(Re.Z,(0,E.Z)({},zn,ar,{title:jn,active:ht,data:mn.data,key:Xn,isStart:Sr,isEnd:Kr}))}))}):We.createElement(Re.Z,(0,E.Z)({domRef:me,className:oe,style:Ne},vn,{active:ht}))};Be.displayName="MotionTreeNode";var xt=We.forwardRef(Be),Ve=xt;function Ot(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],me=ue.length,oe=he.length;if(Math.abs(me-oe)!==1)return{add:!1,key:null};function Ne(At,Ge){var je=new Map;At.forEach(function(Et){je.set(Et,!0)});var Pt=Ge.filter(function(Et){return!je.has(Et)});return Pt.length===1?Pt[0]:null}return me<oe?{add:!0,key:Ne(ue,he)}:{add:!1,key:Ne(he,ue)}}function nt(ue,he,me){var oe=ue.findIndex(function(je){return je.key===me}),Ne=ue[oe+1],At=he.findIndex(function(je){return je.key===me});if(Ne){var Ge=he.findIndex(function(je){return je.key===Ne.key});return he.slice(At+1,Ge)}return he.slice(At+1)}var wt=["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"],Mt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},at=function(){},Le="RC_TREE_MOTION_".concat(Math.random()),Me={key:Le},st={key:Le,level:0,index:0,pos:"0",node:Me,nodes:[Me]},Ht={parent:null,children:[],pos:st.pos,data:Me,title:null,key:Le,isStart:[],isEnd:[]};function Tt(ue,he,me,oe){return he===!1||!me?ue:ue.slice(0,Math.ceil(me/oe)+1)}function ct(ue){var he=ue.key,me=ue.pos;return(0,$e.km)(he,me)}function Ct(ue){for(var he=String(ue.data.key),me=ue;me.parent;)me=me.parent,he="".concat(me.data.key," > ").concat(he);return he}var Zt=We.forwardRef(function(ue,he){var me=ue.prefixCls,oe=ue.data,Ne=ue.selectable,At=ue.checkable,Ge=ue.expandedKeys,je=ue.selectedKeys,Pt=ue.checkedKeys,Et=ue.loadedKeys,ht=ue.loadingKeys,Kt=ue.halfCheckedKeys,vn=ue.keyEntities,kt=ue.disabled,Ut=ue.dragging,yn=ue.dragOverNodeKey,Bt=ue.dropPosition,Ke=ue.motion,gt=ue.height,Vt=ue.itemHeight,Nt=ue.virtual,Xt=ue.focusable,Mn=ue.activeItem,Tn=ue.focused,Rn=ue.tabIndex,ur=ue.onKeyDown,vr=ue.onFocus,dr=ue.onBlur,mn=ue.onActiveChange,zn=ue.onListChangeStart,jn=ue.onListChangeEnd,Xn=(0,Qe.Z)(ue,wt),Sr=We.useRef(null),Kr=We.useRef(null);We.useImperativeHandle(he,function(){return{scrollTo:function(rn){Sr.current.scrollTo(rn)},getIndentWidth:function(){return Kr.current.offsetWidth}}});var ar=We.useState(Ge),Zn=(0,dt.Z)(ar,2),Wr=Zn[0],Gt=Zn[1],or=We.useState(oe),er=(0,dt.Z)(or,2),Kn=er[0],En=er[1],nr=We.useState(oe),lr=(0,dt.Z)(nr,2),xr=lr[0],jt=lr[1],Ue=We.useState([]),yt=(0,dt.Z)(Ue,2),ut=yt[0],rt=yt[1],_t=We.useState(null),Qt=(0,dt.Z)(_t,2),pn=Qt[0],sn=Qt[1],Bn=We.useRef(oe);Bn.current=oe;function Yn(){var en=Bn.current;En(en),jt(en),rt([]),sn(null),jn()}(0,Ze.Z)(function(){Gt(Ge);var en=Ot(Wr,Ge);if(en.key!==null)if(en.add){var rn=Kn.findIndex(function(br){var fi=br.key;return fi===en.key}),Or=Tt(nt(Kn,oe,en.key),Nt,gt,Vt),kr=Kn.slice();kr.splice(rn+1,0,Ht),jt(kr),rt(Or),sn("show")}else{var Cr=oe.findIndex(function(br){var fi=br.key;return fi===en.key}),Dr=Tt(nt(oe,Kn,en.key),Nt,gt,Vt),qr=oe.slice();qr.splice(Cr+1,0,Ht),jt(qr),rt(Dr),sn("hide")}else Kn!==oe&&(En(oe),jt(oe))},[Ge,oe]),We.useEffect(function(){Ut||Yn()},[Ut]);var cr=Ke?xr:oe,$n={expandedKeys:Ge,selectedKeys:je,loadedKeys:Et,loadingKeys:ht,checkedKeys:Pt,halfCheckedKeys:Kt,dragOverNodeKey:yn,dropPosition:Bt,keyEntities:vn};return We.createElement(We.Fragment,null,Tn&&Mn&&We.createElement("span",{style:Mt,"aria-live":"assertive"},Ct(Mn)),We.createElement("div",null,We.createElement("input",{style:Mt,disabled:Xt===!1||kt,tabIndex:Xt!==!1?Rn:null,onKeyDown:ur,onFocus:vr,onBlur:dr,value:"",onChange:at,"aria-label":"for screen reader"})),We.createElement("div",{className:"".concat(me,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},We.createElement("div",{className:"".concat(me,"-indent")},We.createElement("div",{ref:Kr,className:"".concat(me,"-indent-unit")}))),We.createElement(Ae.Z,(0,E.Z)({},Xn,{data:cr,itemKey:ct,height:gt,fullHeight:!1,virtual:Nt,itemHeight:Vt,prefixCls:"".concat(me,"-list"),ref:Sr,onVisibleChange:function(rn,Or){var kr=new Set(rn),Cr=Or.filter(function(Dr){return!kr.has(Dr)});Cr.some(function(Dr){return ct(Dr)===Le})&&Yn()}}),function(en){var rn=en.pos,Or=(0,E.Z)({},(Dt(en.data),en.data)),kr=en.title,Cr=en.key,Dr=en.isStart,qr=en.isEnd,br=(0,$e.km)(Cr,rn);delete Or.key,delete Or.children;var fi=(0,$e.H8)(br,$n);return We.createElement(Ve,(0,E.Z)({},Or,fi,{title:kr,active:!!Mn&&Cr===Mn.key,pos:rn,data:en.data,isStart:Dr,isEnd:qr,motion:Ke,motionNodes:Cr===Le?ut:null,motionType:pn,onMotionStart:zn,onMotionEnd:Yn,treeNodeRequiredProps:$n,onMouseMove:function(){mn(null)}}))}))});Zt.displayName="NodeList";var gn=Zt,$t=ne(35654),Wt=ne(90782),on=ne(67841),dn=10,ln=function(ue){(0,De.Z)(me,ue);var he=(0,Pe.Z)(me);function me(){var oe;(0,Se.Z)(this,me);for(var Ne=arguments.length,At=new Array(Ne),Ge=0;Ge<Ne;Ge++)At[Ge]=arguments[Ge];return oe=he.call.apply(he,[this].concat(At)),oe.destroyed=!1,oe.delayedDragEnterLogic=void 0,oe.loadingRetryTimes={},oe.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,$e.w$)()},oe.dragStartMousePosition=null,oe.dragNode=void 0,oe.currentMouseOverDroppableNodeKey=null,oe.listRef=We.createRef(),oe.onNodeDragStart=function(je,Pt){var Et=oe.state,ht=Et.expandedKeys,Kt=Et.keyEntities,vn=oe.props.onDragStart,kt=Pt.props.eventKey;oe.dragNode=Pt,oe.dragStartMousePosition={x:je.clientX,y:je.clientY};var Ut=(0,$t._5)(ht,kt);oe.setState({draggingNodeKey:kt,dragChildrenKeys:(0,$t.wA)(kt,Kt),indent:oe.listRef.current.getIndentWidth()}),oe.setExpandedKeys(Ut),window.addEventListener("dragend",oe.onWindowDragEnd),vn==null||vn({event:je,node:(0,$e.F)(Pt.props)})},oe.onNodeDragEnter=function(je,Pt){var Et=oe.state,ht=Et.expandedKeys,Kt=Et.keyEntities,vn=Et.dragChildrenKeys,kt=Et.flattenNodes,Ut=Et.indent,yn=oe.props,Bt=yn.onDragEnter,Ke=yn.onExpand,gt=yn.allowDrop,Vt=yn.direction,Nt=Pt.props,Xt=Nt.pos,Mn=Nt.eventKey,Tn=(0,be.Z)(oe),Rn=Tn.dragNode;if(oe.currentMouseOverDroppableNodeKey!==Mn&&(oe.currentMouseOverDroppableNodeKey=Mn),!Rn){oe.resetDragState();return}var ur=(0,$t.OM)(je,Rn,Pt,Ut,oe.dragStartMousePosition,gt,kt,Kt,ht,Vt),vr=ur.dropPosition,dr=ur.dropLevelOffset,mn=ur.dropTargetKey,zn=ur.dropContainerKey,jn=ur.dropTargetPos,Xn=ur.dropAllowed,Sr=ur.dragOverNodeKey;if(vn.indexOf(mn)!==-1||!Xn){oe.resetDragState();return}if(oe.delayedDragEnterLogic||(oe.delayedDragEnterLogic={}),Object.keys(oe.delayedDragEnterLogic).forEach(function(Kr){clearTimeout(oe.delayedDragEnterLogic[Kr])}),Rn.props.eventKey!==Pt.props.eventKey&&(je.persist(),oe.delayedDragEnterLogic[Xt]=window.setTimeout(function(){if(oe.state.draggingNodeKey!==null){var Kr=(0,Ce.Z)(ht),ar=(0,on.Z)(Kt,Pt.props.eventKey);ar&&(ar.children||[]).length&&(Kr=(0,$t.L0)(ht,Pt.props.eventKey)),"expandedKeys"in oe.props||oe.setExpandedKeys(Kr),Ke==null||Ke(Kr,{node:(0,$e.F)(Pt.props),expanded:!0,nativeEvent:je.nativeEvent})}},800)),Rn.props.eventKey===mn&&dr===0){oe.resetDragState();return}oe.setState({dragOverNodeKey:Sr,dropPosition:vr,dropLevelOffset:dr,dropTargetKey:mn,dropContainerKey:zn,dropTargetPos:jn,dropAllowed:Xn}),Bt==null||Bt({event:je,node:(0,$e.F)(Pt.props),expandedKeys:ht})},oe.onNodeDragOver=function(je,Pt){var Et=oe.state,ht=Et.dragChildrenKeys,Kt=Et.flattenNodes,vn=Et.keyEntities,kt=Et.expandedKeys,Ut=Et.indent,yn=oe.props,Bt=yn.onDragOver,Ke=yn.allowDrop,gt=yn.direction,Vt=(0,be.Z)(oe),Nt=Vt.dragNode;if(Nt){var Xt=(0,$t.OM)(je,Nt,Pt,Ut,oe.dragStartMousePosition,Ke,Kt,vn,kt,gt),Mn=Xt.dropPosition,Tn=Xt.dropLevelOffset,Rn=Xt.dropTargetKey,ur=Xt.dropContainerKey,vr=Xt.dropAllowed,dr=Xt.dropTargetPos,mn=Xt.dragOverNodeKey;ht.indexOf(Rn)!==-1||!vr||(Nt.props.eventKey===Rn&&Tn===0?oe.state.dropPosition===null&&oe.state.dropLevelOffset===null&&oe.state.dropTargetKey===null&&oe.state.dropContainerKey===null&&oe.state.dropTargetPos===null&&oe.state.dropAllowed===!1&&oe.state.dragOverNodeKey===null||oe.resetDragState():Mn===oe.state.dropPosition&&Tn===oe.state.dropLevelOffset&&Rn===oe.state.dropTargetKey&&ur===oe.state.dropContainerKey&&dr===oe.state.dropTargetPos&&vr===oe.state.dropAllowed&&mn===oe.state.dragOverNodeKey||oe.setState({dropPosition:Mn,dropLevelOffset:Tn,dropTargetKey:Rn,dropContainerKey:ur,dropTargetPos:dr,dropAllowed:vr,dragOverNodeKey:mn}),Bt==null||Bt({event:je,node:(0,$e.F)(Pt.props)}))}},oe.onNodeDragLeave=function(je,Pt){oe.currentMouseOverDroppableNodeKey===Pt.props.eventKey&&!je.currentTarget.contains(je.relatedTarget)&&(oe.resetDragState(),oe.currentMouseOverDroppableNodeKey=null);var Et=oe.props.onDragLeave;Et==null||Et({event:je,node:(0,$e.F)(Pt.props)})},oe.onWindowDragEnd=function(je){oe.onNodeDragEnd(je,null,!0),window.removeEventListener("dragend",oe.onWindowDragEnd)},oe.onNodeDragEnd=function(je,Pt){var Et=oe.props.onDragEnd;oe.setState({dragOverNodeKey:null}),oe.cleanDragState(),Et==null||Et({event:je,node:(0,$e.F)(Pt.props)}),oe.dragNode=null,window.removeEventListener("dragend",oe.onWindowDragEnd)},oe.onNodeDrop=function(je,Pt){var Et,ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Kt=oe.state,vn=Kt.dragChildrenKeys,kt=Kt.dropPosition,Ut=Kt.dropTargetKey,yn=Kt.dropTargetPos,Bt=Kt.dropAllowed;if(Bt){var Ke=oe.props.onDrop;if(oe.setState({dragOverNodeKey:null}),oe.cleanDragState(),Ut!==null){var gt=(0,Ye.Z)((0,Ye.Z)({},(0,$e.H8)(Ut,oe.getTreeNodeRequiredProps())),{},{active:((Et=oe.getActiveItem())===null||Et===void 0?void 0:Et.key)===Ut,data:(0,on.Z)(oe.state.keyEntities,Ut).node}),Vt=vn.indexOf(Ut)!==-1;(0,ze.ZP)(!Vt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Nt=(0,$t.yx)(yn),Xt={event:je,node:(0,$e.F)(gt),dragNode:oe.dragNode?(0,$e.F)(oe.dragNode.props):null,dragNodesKeys:[oe.dragNode.props.eventKey].concat(vn),dropToGap:kt!==0,dropPosition:kt+Number(Nt[Nt.length-1])};ht||Ke==null||Ke(Xt),oe.dragNode=null}}},oe.cleanDragState=function(){var je=oe.state.draggingNodeKey;je!==null&&oe.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),oe.dragStartMousePosition=null,oe.currentMouseOverDroppableNodeKey=null},oe.triggerExpandActionExpand=function(je,Pt){var Et=oe.state,ht=Et.expandedKeys,Kt=Et.flattenNodes,vn=Pt.expanded,kt=Pt.key,Ut=Pt.isLeaf;if(!(Ut||je.shiftKey||je.metaKey||je.ctrlKey)){var yn=Kt.filter(function(Ke){return Ke.key===kt})[0],Bt=(0,$e.F)((0,Ye.Z)((0,Ye.Z)({},(0,$e.H8)(kt,oe.getTreeNodeRequiredProps())),{},{data:yn.data}));oe.setExpandedKeys(vn?(0,$t._5)(ht,kt):(0,$t.L0)(ht,kt)),oe.onNodeExpand(je,Bt)}},oe.onNodeClick=function(je,Pt){var Et=oe.props,ht=Et.onClick,Kt=Et.expandAction;Kt==="click"&&oe.triggerExpandActionExpand(je,Pt),ht==null||ht(je,Pt)},oe.onNodeDoubleClick=function(je,Pt){var Et=oe.props,ht=Et.onDoubleClick,Kt=Et.expandAction;Kt==="doubleClick"&&oe.triggerExpandActionExpand(je,Pt),ht==null||ht(je,Pt)},oe.onNodeSelect=function(je,Pt){var Et=oe.state.selectedKeys,ht=oe.state,Kt=ht.keyEntities,vn=ht.fieldNames,kt=oe.props,Ut=kt.onSelect,yn=kt.multiple,Bt=Pt.selected,Ke=Pt[vn.key],gt=!Bt;gt?yn?Et=(0,$t.L0)(Et,Ke):Et=[Ke]:Et=(0,$t._5)(Et,Ke);var Vt=Et.map(function(Nt){var Xt=(0,on.Z)(Kt,Nt);return Xt?Xt.node:null}).filter(function(Nt){return Nt});oe.setUncontrolledState({selectedKeys:Et}),Ut==null||Ut(Et,{event:"select",selected:gt,node:Pt,selectedNodes:Vt,nativeEvent:je.nativeEvent})},oe.onNodeCheck=function(je,Pt,Et){var ht=oe.state,Kt=ht.keyEntities,vn=ht.checkedKeys,kt=ht.halfCheckedKeys,Ut=oe.props,yn=Ut.checkStrictly,Bt=Ut.onCheck,Ke=Pt.key,gt,Vt={event:"check",node:Pt,checked:Et,nativeEvent:je.nativeEvent};if(yn){var Nt=Et?(0,$t.L0)(vn,Ke):(0,$t._5)(vn,Ke),Xt=(0,$t._5)(kt,Ke);gt={checked:Nt,halfChecked:Xt},Vt.checkedNodes=Nt.map(function(dr){return(0,on.Z)(Kt,dr)}).filter(function(dr){return dr}).map(function(dr){return dr.node}),oe.setUncontrolledState({checkedKeys:Nt})}else{var Mn=(0,Wt.S)([].concat((0,Ce.Z)(vn),[Ke]),!0,Kt),Tn=Mn.checkedKeys,Rn=Mn.halfCheckedKeys;if(!Et){var ur=new Set(Tn);ur.delete(Ke);var vr=(0,Wt.S)(Array.from(ur),{checked:!1,halfCheckedKeys:Rn},Kt);Tn=vr.checkedKeys,Rn=vr.halfCheckedKeys}gt=Tn,Vt.checkedNodes=[],Vt.checkedNodesPositions=[],Vt.halfCheckedKeys=Rn,Tn.forEach(function(dr){var mn=(0,on.Z)(Kt,dr);if(mn){var zn=mn.node,jn=mn.pos;Vt.checkedNodes.push(zn),Vt.checkedNodesPositions.push({node:zn,pos:jn})}}),oe.setUncontrolledState({checkedKeys:Tn},!1,{halfCheckedKeys:Rn})}Bt==null||Bt(gt,Vt)},oe.onNodeLoad=function(je){var Pt=je.key,Et=new Promise(function(ht,Kt){oe.setState(function(vn){var kt=vn.loadedKeys,Ut=kt===void 0?[]:kt,yn=vn.loadingKeys,Bt=yn===void 0?[]:yn,Ke=oe.props,gt=Ke.loadData,Vt=Ke.onLoad;if(!gt||Ut.indexOf(Pt)!==-1||Bt.indexOf(Pt)!==-1)return null;var Nt=gt(je);return Nt.then(function(){var Xt=oe.state.loadedKeys,Mn=(0,$t.L0)(Xt,Pt);Vt==null||Vt(Mn,{event:"load",node:je}),oe.setUncontrolledState({loadedKeys:Mn}),oe.setState(function(Tn){return{loadingKeys:(0,$t._5)(Tn.loadingKeys,Pt)}}),ht()}).catch(function(Xt){if(oe.setState(function(Tn){return{loadingKeys:(0,$t._5)(Tn.loadingKeys,Pt)}}),oe.loadingRetryTimes[Pt]=(oe.loadingRetryTimes[Pt]||0)+1,oe.loadingRetryTimes[Pt]>=dn){var Mn=oe.state.loadedKeys;(0,ze.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),oe.setUncontrolledState({loadedKeys:(0,$t.L0)(Mn,Pt)}),ht()}Kt(Xt)}),{loadingKeys:(0,$t.L0)(Bt,Pt)}})});return Et.catch(function(){}),Et},oe.onNodeMouseEnter=function(je,Pt){var Et=oe.props.onMouseEnter;Et==null||Et({event:je,node:Pt})},oe.onNodeMouseLeave=function(je,Pt){var Et=oe.props.onMouseLeave;Et==null||Et({event:je,node:Pt})},oe.onNodeContextMenu=function(je,Pt){var Et=oe.props.onRightClick;Et&&(je.preventDefault(),Et({event:je,node:Pt}))},oe.onFocus=function(){var je=oe.props.onFocus;oe.setState({focused:!0});for(var Pt=arguments.length,Et=new Array(Pt),ht=0;ht<Pt;ht++)Et[ht]=arguments[ht];je==null||je.apply(void 0,Et)},oe.onBlur=function(){var je=oe.props.onBlur;oe.setState({focused:!1}),oe.onActiveChange(null);for(var Pt=arguments.length,Et=new Array(Pt),ht=0;ht<Pt;ht++)Et[ht]=arguments[ht];je==null||je.apply(void 0,Et)},oe.getTreeNodeRequiredProps=function(){var je=oe.state,Pt=je.expandedKeys,Et=je.selectedKeys,ht=je.loadedKeys,Kt=je.loadingKeys,vn=je.checkedKeys,kt=je.halfCheckedKeys,Ut=je.dragOverNodeKey,yn=je.dropPosition,Bt=je.keyEntities;return{expandedKeys:Pt||[],selectedKeys:Et||[],loadedKeys:ht||[],loadingKeys:Kt||[],checkedKeys:vn||[],halfCheckedKeys:kt||[],dragOverNodeKey:Ut,dropPosition:yn,keyEntities:Bt}},oe.setExpandedKeys=function(je){var Pt=oe.state,Et=Pt.treeData,ht=Pt.fieldNames,Kt=(0,$e.oH)(Et,je,ht);oe.setUncontrolledState({expandedKeys:je,flattenNodes:Kt},!0)},oe.onNodeExpand=function(je,Pt){var Et=oe.state.expandedKeys,ht=oe.state,Kt=ht.listChanging,vn=ht.fieldNames,kt=oe.props,Ut=kt.onExpand,yn=kt.loadData,Bt=Pt.expanded,Ke=Pt[vn.key];if(!Kt){var gt=Et.indexOf(Ke),Vt=!Bt;if((0,ze.ZP)(Bt&>!==-1||!Bt&>===-1,"Expand state not sync with index check"),Vt?Et=(0,$t.L0)(Et,Ke):Et=(0,$t._5)(Et,Ke),oe.setExpandedKeys(Et),Ut==null||Ut(Et,{node:Pt,expanded:Vt,nativeEvent:je.nativeEvent}),Vt&&yn){var Nt=oe.onNodeLoad(Pt);Nt&&Nt.then(function(){var Xt=(0,$e.oH)(oe.state.treeData,Et,vn);oe.setUncontrolledState({flattenNodes:Xt})}).catch(function(){var Xt=oe.state.expandedKeys,Mn=(0,$t._5)(Xt,Ke);oe.setExpandedKeys(Mn)})}}},oe.onListChangeStart=function(){oe.setUncontrolledState({listChanging:!0})},oe.onListChangeEnd=function(){setTimeout(function(){oe.setUncontrolledState({listChanging:!1})})},oe.onActiveChange=function(je){var Pt=oe.state.activeKey,Et=oe.props.onActiveChange;Pt!==je&&(oe.setState({activeKey:je}),je!==null&&oe.scrollTo({key:je}),Et==null||Et(je))},oe.getActiveItem=function(){var je=oe.state,Pt=je.activeKey,Et=je.flattenNodes;return Pt===null?null:Et.find(function(ht){var Kt=ht.key;return Kt===Pt})||null},oe.offsetActiveKey=function(je){var Pt=oe.state,Et=Pt.flattenNodes,ht=Pt.activeKey,Kt=Et.findIndex(function(Ut){var yn=Ut.key;return yn===ht});Kt===-1&&je<0&&(Kt=Et.length),Kt=(Kt+je+Et.length)%Et.length;var vn=Et[Kt];if(vn){var kt=vn.key;oe.onActiveChange(kt)}else oe.onActiveChange(null)},oe.onKeyDown=function(je){var Pt=oe.state,Et=Pt.activeKey,ht=Pt.expandedKeys,Kt=Pt.checkedKeys,vn=Pt.fieldNames,kt=oe.props,Ut=kt.onKeyDown,yn=kt.checkable,Bt=kt.selectable;switch(je.which){case Ie.Z.UP:{oe.offsetActiveKey(-1),je.preventDefault();break}case Ie.Z.DOWN:{oe.offsetActiveKey(1),je.preventDefault();break}}var Ke=oe.getActiveItem();if(Ke&&Ke.data){var gt=oe.getTreeNodeRequiredProps(),Vt=Ke.data.isLeaf===!1||!!(Ke.data[vn.children]||[]).length,Nt=(0,$e.F)((0,Ye.Z)((0,Ye.Z)({},(0,$e.H8)(Et,gt)),{},{data:Ke.data,active:!0}));switch(je.which){case Ie.Z.LEFT:{Vt&&ht.includes(Et)?oe.onNodeExpand({},Nt):Ke.parent&&oe.onActiveChange(Ke.parent.key),je.preventDefault();break}case Ie.Z.RIGHT:{Vt&&!ht.includes(Et)?oe.onNodeExpand({},Nt):Ke.children&&Ke.children.length&&oe.onActiveChange(Ke.children[0].key),je.preventDefault();break}case Ie.Z.ENTER:case Ie.Z.SPACE:{yn&&!Nt.disabled&&Nt.checkable!==!1&&!Nt.disableCheckbox?oe.onNodeCheck({},Nt,!Kt.includes(Et)):!yn&&Bt&&!Nt.disabled&&Nt.selectable!==!1&&oe.onNodeSelect({},Nt);break}}}Ut==null||Ut(je)},oe.setUncontrolledState=function(je){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!oe.destroyed){var ht=!1,Kt=!0,vn={};Object.keys(je).forEach(function(kt){if(kt in oe.props){Kt=!1;return}ht=!0,vn[kt]=je[kt]}),ht&&(!Pt||Kt)&&oe.setState((0,Ye.Z)((0,Ye.Z)({},vn),Et))}},oe.scrollTo=function(je){oe.listRef.current.scrollTo(je)},oe}return(0,pe.Z)(me,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ne=this.props.activeKey;Ne!==void 0&&Ne!==this.state.activeKey&&(this.setState({activeKey:Ne}),Ne!==null&&this.scrollTo({key:Ne}))}},{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 Ne,At=this.state,Ge=At.focused,je=At.flattenNodes,Pt=At.keyEntities,Et=At.draggingNodeKey,ht=At.activeKey,Kt=At.dropLevelOffset,vn=At.dropContainerKey,kt=At.dropTargetKey,Ut=At.dropPosition,yn=At.dragOverNodeKey,Bt=At.indent,Ke=this.props,gt=Ke.prefixCls,Vt=Ke.className,Nt=Ke.style,Xt=Ke.showLine,Mn=Ke.focusable,Tn=Ke.tabIndex,Rn=Tn===void 0?0:Tn,ur=Ke.selectable,vr=Ke.showIcon,dr=Ke.icon,mn=Ke.switcherIcon,zn=Ke.draggable,jn=Ke.checkable,Xn=Ke.checkStrictly,Sr=Ke.disabled,Kr=Ke.motion,ar=Ke.loadData,Zn=Ke.filterTreeNode,Wr=Ke.height,Gt=Ke.itemHeight,or=Ke.virtual,er=Ke.titleRender,Kn=Ke.dropIndicatorRender,En=Ke.onContextMenu,nr=Ke.onScroll,lr=Ke.direction,xr=Ke.rootClassName,jt=Ke.rootStyle,Ue=(0,tt.Z)(this.props,{aria:!0,data:!0}),yt;return zn&&((0,Ee.Z)(zn)==="object"?yt=zn:typeof zn=="function"?yt={nodeDraggable:zn}:yt={}),We.createElement(lt.k.Provider,{value:{prefixCls:gt,selectable:ur,showIcon:vr,icon:dr,switcherIcon:mn,draggable:yt,draggingNodeKey:Et,checkable:jn,checkStrictly:Xn,disabled:Sr,keyEntities:Pt,dropLevelOffset:Kt,dropContainerKey:vn,dropTargetKey:kt,dropPosition:Ut,dragOverNodeKey:yn,indent:Bt,direction:lr,dropIndicatorRender:Kn,loadData:ar,filterTreeNode:Zn,titleRender:er,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:Fe()(gt,Vt,xr,(Ne={},(0,ye.Z)(Ne,"".concat(gt,"-show-line"),Xt),(0,ye.Z)(Ne,"".concat(gt,"-focused"),Ge),(0,ye.Z)(Ne,"".concat(gt,"-active-focused"),ht!==null),Ne)),style:jt},We.createElement(gn,(0,E.Z)({ref:this.listRef,prefixCls:gt,style:Nt,data:je,disabled:Sr,selectable:ur,checkable:!!jn,motion:Kr,dragging:Et!==null,height:Wr,itemHeight:Gt,virtual:or,focusable:Mn,focused:Ge,tabIndex:Rn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:En,onScroll:nr},this.getTreeNodeRequiredProps(),Ue))))}}],[{key:"getDerivedStateFromProps",value:function(Ne,At){var Ge=At.prevProps,je={prevProps:Ne};function Pt(Mn){return!Ge&&Mn in Ne||Ge&&Ge[Mn]!==Ne[Mn]}var Et,ht=At.fieldNames;if(Pt("fieldNames")&&(ht=(0,$e.w$)(Ne.fieldNames),je.fieldNames=ht),Pt("treeData")?Et=Ne.treeData:Pt("children")&&((0,ze.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Et=(0,$e.zn)(Ne.children)),Et){je.treeData=Et;var Kt=(0,$e.I8)(Et,{fieldNames:ht});je.keyEntities=(0,Ye.Z)((0,ye.Z)({},Le,st),Kt.keyEntities)}var vn=je.keyEntities||At.keyEntities;if(Pt("expandedKeys")||Ge&&Pt("autoExpandParent"))je.expandedKeys=Ne.autoExpandParent||!Ge&&Ne.defaultExpandParent?(0,$t.r7)(Ne.expandedKeys,vn):Ne.expandedKeys;else if(!Ge&&Ne.defaultExpandAll){var kt=(0,Ye.Z)({},vn);delete kt[Le],je.expandedKeys=Object.keys(kt).map(function(Mn){return kt[Mn].key})}else!Ge&&Ne.defaultExpandedKeys&&(je.expandedKeys=Ne.autoExpandParent||Ne.defaultExpandParent?(0,$t.r7)(Ne.defaultExpandedKeys,vn):Ne.defaultExpandedKeys);if(je.expandedKeys||delete je.expandedKeys,Et||je.expandedKeys){var Ut=(0,$e.oH)(Et||At.treeData,je.expandedKeys||At.expandedKeys,ht);je.flattenNodes=Ut}if(Ne.selectable&&(Pt("selectedKeys")?je.selectedKeys=(0,$t.BT)(Ne.selectedKeys,Ne):!Ge&&Ne.defaultSelectedKeys&&(je.selectedKeys=(0,$t.BT)(Ne.defaultSelectedKeys,Ne))),Ne.checkable){var yn;if(Pt("checkedKeys")?yn=(0,$t.E6)(Ne.checkedKeys)||{}:!Ge&&Ne.defaultCheckedKeys?yn=(0,$t.E6)(Ne.defaultCheckedKeys)||{}:Et&&(yn=(0,$t.E6)(Ne.checkedKeys)||{checkedKeys:At.checkedKeys,halfCheckedKeys:At.halfCheckedKeys}),yn){var Bt=yn,Ke=Bt.checkedKeys,gt=Ke===void 0?[]:Ke,Vt=Bt.halfCheckedKeys,Nt=Vt===void 0?[]:Vt;if(!Ne.checkStrictly){var Xt=(0,Wt.S)(gt,!0,vn);gt=Xt.checkedKeys,Nt=Xt.halfCheckedKeys}je.checkedKeys=gt,je.halfCheckedKeys=Nt}}return Pt("loadedKeys")&&(je.loadedKeys=Ne.loadedKeys),je}}]),me}(We.Component);ln.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:Xe,allowDrop:function(){return!0},expandAction:!1},ln.TreeNode=Re.Z;var xe=ln,fe=xe},35654:function(An,tn,ne){"use strict";ne.d(tn,{BT:function(){return We},E6:function(){return Dt},L0:function(){return Pe},OM:function(){return ze},_5:function(){return De},r7:function(){return dt},wA:function(){return Fe},yx:function(){return et}});var E=ne(77654),ye=ne(43749),Ee=ne(48736),Ye=ne(59301),Ce=ne(39417),Se=ne(67841),pe=ne(71430),be=null;function De(Qe,Ze){if(!Qe)return[];var Ae=Qe.slice(),Je=Ae.indexOf(Ze);return Je>=0&&Ae.splice(Je,1),Ae}function Pe(Qe,Ze){var Ae=(Qe||[]).slice();return Ae.indexOf(Ze)===-1&&Ae.push(Ze),Ae}function et(Qe){return Qe.split("-")}function Fe(Qe,Ze){var Ae=[],Je=(0,Se.Z)(Ze,Qe);function Re(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];vt.forEach(function($e){var mt=$e.key,Be=$e.children;Ae.push(mt),Re(Be)})}return Re(Je.children),Ae}function Ie(Qe){if(Qe.parent){var Ze=et(Qe.pos);return Number(Ze[Ze.length-1])===Qe.parent.children.length-1}return!1}function tt(Qe){var Ze=et(Qe.pos);return Number(Ze[Ze.length-1])===0}function ze(Qe,Ze,Ae,Je,Re,vt,$e,mt,Be,xt){var Ve,Ot=Qe.clientX,nt=Qe.clientY,wt=Qe.target.getBoundingClientRect(),Mt=wt.top,at=wt.height,Le=(xt==="rtl"?-1:1)*(((Re==null?void 0:Re.x)||0)-Ot),Me=(Le-12)/Je,st=(0,Se.Z)(mt,Ae.props.eventKey);if(nt<Mt+at/2){var Ht=$e.findIndex(function(fe){return fe.key===st.key}),Tt=Ht<=0?0:Ht-1,ct=$e[Tt].key;st=(0,Se.Z)(mt,ct)}var Ct=st.key,Zt=st,gn=st.key,$t=0,Wt=0;if(!Be.includes(Ct))for(var on=0;on<Me&&Ie(st);on+=1)st=st.parent,Wt+=1;var dn=Ze.props.data,ln=st.node,xe=!0;return tt(st)&&st.level===0&&nt<Mt+at/2&&vt({dragNode:dn,dropNode:ln,dropPosition:-1})&&st.key===Ae.props.eventKey?$t=-1:(Zt.children||[]).length&&Be.includes(gn)?vt({dragNode:dn,dropNode:ln,dropPosition:0})?$t=0:xe=!1:Wt===0?Me>-1.5?vt({dragNode:dn,dropNode:ln,dropPosition:1})?$t=1:xe=!1:vt({dragNode:dn,dropNode:ln,dropPosition:0})?$t=0:vt({dragNode:dn,dropNode:ln,dropPosition:1})?$t=1:xe=!1:vt({dragNode:dn,dropNode:ln,dropPosition:1})?$t=1:xe=!1,{dropPosition:$t,dropLevelOffset:Wt,dropTargetKey:st.key,dropTargetPos:st.pos,dragOverNodeKey:gn,dropContainerKey:$t===0?null:((Ve=st.parent)===null||Ve===void 0?void 0:Ve.key)||null,dropAllowed:xe}}function We(Qe,Ze){if(Qe){var Ae=Ze.multiple;return Ae?Qe.slice():Qe.length?[Qe[0]]:Qe}}var lt=function(Ze){return Ze};function Xe(Qe,Ze){if(!Qe)return[];var Ae=Ze||{},Je=Ae.processProps,Re=Je===void 0?lt:Je,vt=Array.isArray(Qe)?Qe:[Qe];return vt.map(function($e){var mt=$e.children,Be=_objectWithoutProperties($e,be),xt=Xe(mt,Ze);return React.createElement(TreeNode,_extends({key:Be.key},Re(Be)),xt)})}function Dt(Qe){if(!Qe)return null;var Ze;if(Array.isArray(Qe))Ze={checkedKeys:Qe,halfCheckedKeys:void 0};else if((0,ye.Z)(Qe)==="object")Ze={checkedKeys:Qe.checked||void 0,halfCheckedKeys:Qe.halfChecked||void 0};else return(0,Ee.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ze}function dt(Qe,Ze){var Ae=new Set;function Je(Re){if(!Ae.has(Re)){var vt=(0,Se.Z)(Ze,Re);if(vt){Ae.add(Re);var $e=vt.parent,mt=vt.node;mt.disabled||$e&&Je($e.key)}}}return(Qe||[]).forEach(function(Re){Je(Re)}),(0,E.Z)(Ae)}},90782:function(An,tn,ne){"use strict";ne.d(tn,{S:function(){return pe}});var E=ne(48736),ye=ne(67841);function Ee(be,De){var Pe=new Set;return be.forEach(function(et){De.has(et)||Pe.add(et)}),Pe}function Ye(be){var De=be||{},Pe=De.disabled,et=De.disableCheckbox,Fe=De.checkable;return!!(Pe||et)||Fe===!1}function Ce(be,De,Pe,et){for(var Fe=new Set(be),Ie=new Set,tt=0;tt<=Pe;tt+=1){var ze=De.get(tt)||new Set;ze.forEach(function(Dt){var dt=Dt.key,Qe=Dt.node,Ze=Dt.children,Ae=Ze===void 0?[]:Ze;Fe.has(dt)&&!et(Qe)&&Ae.filter(function(Je){return!et(Je.node)}).forEach(function(Je){Fe.add(Je.key)})})}for(var We=new Set,lt=Pe;lt>=0;lt-=1){var Xe=De.get(lt)||new Set;Xe.forEach(function(Dt){var dt=Dt.parent,Qe=Dt.node;if(!(et(Qe)||!Dt.parent||We.has(Dt.parent.key))){if(et(Dt.parent.node)){We.add(dt.key);return}var Ze=!0,Ae=!1;(dt.children||[]).filter(function(Je){return!et(Je.node)}).forEach(function(Je){var Re=Je.key,vt=Fe.has(Re);Ze&&!vt&&(Ze=!1),!Ae&&(vt||Ie.has(Re))&&(Ae=!0)}),Ze&&Fe.add(dt.key),Ae&&Ie.add(dt.key),We.add(dt.key)}})}return{checkedKeys:Array.from(Fe),halfCheckedKeys:Array.from(Ee(Ie,Fe))}}function Se(be,De,Pe,et,Fe){for(var Ie=new Set(be),tt=new Set(De),ze=0;ze<=et;ze+=1){var We=Pe.get(ze)||new Set;We.forEach(function(dt){var Qe=dt.key,Ze=dt.node,Ae=dt.children,Je=Ae===void 0?[]:Ae;!Ie.has(Qe)&&!tt.has(Qe)&&!Fe(Ze)&&Je.filter(function(Re){return!Fe(Re.node)}).forEach(function(Re){Ie.delete(Re.key)})})}tt=new Set;for(var lt=new Set,Xe=et;Xe>=0;Xe-=1){var Dt=Pe.get(Xe)||new Set;Dt.forEach(function(dt){var Qe=dt.parent,Ze=dt.node;if(!(Fe(Ze)||!dt.parent||lt.has(dt.parent.key))){if(Fe(dt.parent.node)){lt.add(Qe.key);return}var Ae=!0,Je=!1;(Qe.children||[]).filter(function(Re){return!Fe(Re.node)}).forEach(function(Re){var vt=Re.key,$e=Ie.has(vt);Ae&&!$e&&(Ae=!1),!Je&&($e||tt.has(vt))&&(Je=!0)}),Ae||Ie.delete(Qe.key),Je&&tt.add(Qe.key),lt.add(Qe.key)}})}return{checkedKeys:Array.from(Ie),halfCheckedKeys:Array.from(Ee(tt,Ie))}}function pe(be,De,Pe,et){var Fe=[],Ie;et?Ie=et:Ie=Ye;var tt=new Set(be.filter(function(Xe){var Dt=!!(0,ye.Z)(Pe,Xe);return Dt||Fe.push(Xe),Dt})),ze=new Map,We=0;Object.keys(Pe).forEach(function(Xe){var Dt=Pe[Xe],dt=Dt.level,Qe=ze.get(dt);Qe||(Qe=new Set,ze.set(dt,Qe)),Qe.add(Dt),We=Math.max(We,dt)}),(0,E.ZP)(!Fe.length,"Tree missing follow keys: ".concat(Fe.slice(0,100).map(function(Xe){return"'".concat(Xe,"'")}).join(", ")));var lt;return De===!0?lt=Ce(tt,ze,We,Ie):lt=Se(tt,De.halfCheckedKeys,ze,We,Ie),lt}},67841:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return E}});function E(ye,Ee){return ye[Ee]}},71430:function(An,tn,ne){"use strict";ne.d(tn,{F:function(){return dt},H8:function(){return Dt},I8:function(){return Xe},km:function(){return Fe},oH:function(){return We},w$:function(){return Ie},zn:function(){return ze}});var E=ne(43749),ye=ne(77654),Ee=ne(85899),Ye=ne(42244),Ce=ne(11592),Se=ne(2738),pe=ne(48736),be=ne(67841),De=["children"];function Pe(Qe,Ze){return"".concat(Qe,"-").concat(Ze)}function et(Qe){return Qe&&Qe.type&&Qe.type.isTreeNode}function Fe(Qe,Ze){return Qe!=null?Qe:Ze}function Ie(Qe){var Ze=Qe||{},Ae=Ze.title,Je=Ze._title,Re=Ze.key,vt=Ze.children,$e=Ae||"title";return{title:$e,_title:Je||[$e],key:Re||"key",children:vt||"children"}}function tt(Qe,Ze){var Ae=new Map;function Je(Re){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Re||[]).forEach(function($e){var mt=$e[Ze.key],Be=$e[Ze.children];warning(mt!=null,"Tree node must have a certain key: [".concat(vt).concat(mt,"]"));var xt=String(mt);warning(!Ae.has(xt)||mt===null||mt===void 0,"Same 'key' exist in the Tree: ".concat(xt)),Ae.set(xt,!0),Je(Be,"".concat(vt).concat(xt," > "))})}Je(Qe)}function ze(Qe){function Ze(Ae){var Je=(0,Ce.Z)(Ae);return Je.map(function(Re){if(!et(Re))return(0,pe.ZP)(!Re,"Tree/TreeNode can only accept TreeNode as children."),null;var vt=Re.key,$e=Re.props,mt=$e.children,Be=(0,Ye.Z)($e,De),xt=(0,Ee.Z)({key:vt},Be),Ve=Ze(mt);return Ve.length&&(xt.children=Ve),xt}).filter(function(Re){return Re})}return Ze(Qe)}function We(Qe,Ze,Ae){var Je=Ie(Ae),Re=Je._title,vt=Je.key,$e=Je.children,mt=new Set(Ze===!0?[]:Ze),Be=[];function xt(Ve){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ve.map(function(nt,wt){for(var Mt=Pe(Ot?Ot.pos:"0",wt),at=Fe(nt[vt],Mt),Le,Me=0;Me<Re.length;Me+=1){var st=Re[Me];if(nt[st]!==void 0){Le=nt[st];break}}var Ht=(0,Ee.Z)((0,Ee.Z)({},(0,Se.Z)(nt,[].concat((0,ye.Z)(Re),[vt,$e]))),{},{title:Le,key:at,parent:Ot,pos:Mt,children:null,data:nt,isStart:[].concat((0,ye.Z)(Ot?Ot.isStart:[]),[wt===0]),isEnd:[].concat((0,ye.Z)(Ot?Ot.isEnd:[]),[wt===Ve.length-1])});return Be.push(Ht),Ze===!0||mt.has(at)?Ht.children=xt(nt[$e]||[],Ht):Ht.children=[],Ht})}return xt(Qe),Be}function lt(Qe,Ze,Ae){var Je={};(0,E.Z)(Ae)==="object"?Je=Ae:Je={externalGetKey:Ae},Je=Je||{};var Re=Je,vt=Re.childrenPropName,$e=Re.externalGetKey,mt=Re.fieldNames,Be=Ie(mt),xt=Be.key,Ve=Be.children,Ot=vt||Ve,nt;$e?typeof $e=="string"?nt=function(at){return at[$e]}:typeof $e=="function"&&(nt=function(at){return $e(at)}):nt=function(at,Le){return Fe(at[xt],Le)};function wt(Mt,at,Le,Me){var st=Mt?Mt[Ot]:Qe,Ht=Mt?Pe(Le.pos,at):"0",Tt=Mt?[].concat((0,ye.Z)(Me),[Mt]):[];if(Mt){var ct=nt(Mt,Ht),Ct={node:Mt,index:at,pos:Ht,key:ct,parentPos:Le.node?Le.pos:null,level:Le.level+1,nodes:Tt};Ze(Ct)}st&&st.forEach(function(Zt,gn){wt(Zt,gn,{node:Mt,pos:Ht,level:Le?Le.level+1:-1},Tt)})}wt(null)}function Xe(Qe){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ae=Ze.initWrapper,Je=Ze.processEntity,Re=Ze.onProcessFinished,vt=Ze.externalGetKey,$e=Ze.childrenPropName,mt=Ze.fieldNames,Be=arguments.length>2?arguments[2]:void 0,xt=vt||Be,Ve={},Ot={},nt={posEntities:Ve,keyEntities:Ot};return Ae&&(nt=Ae(nt)||nt),lt(Qe,function(wt){var Mt=wt.node,at=wt.index,Le=wt.pos,Me=wt.key,st=wt.parentPos,Ht=wt.level,Tt=wt.nodes,ct={node:Mt,nodes:Tt,index:at,key:Me,pos:Le,level:Ht},Ct=Fe(Me,Le);Ve[Le]=ct,Ot[Ct]=ct,ct.parent=Ve[st],ct.parent&&(ct.parent.children=ct.parent.children||[],ct.parent.children.push(ct)),Je&&Je(ct,nt)},{externalGetKey:xt,childrenPropName:$e,fieldNames:mt}),Re&&Re(nt),nt}function Dt(Qe,Ze){var Ae=Ze.expandedKeys,Je=Ze.selectedKeys,Re=Ze.loadedKeys,vt=Ze.loadingKeys,$e=Ze.checkedKeys,mt=Ze.halfCheckedKeys,Be=Ze.dragOverNodeKey,xt=Ze.dropPosition,Ve=Ze.keyEntities,Ot=(0,be.Z)(Ve,Qe),nt={eventKey:Qe,expanded:Ae.indexOf(Qe)!==-1,selected:Je.indexOf(Qe)!==-1,loaded:Re.indexOf(Qe)!==-1,loading:vt.indexOf(Qe)!==-1,checked:$e.indexOf(Qe)!==-1,halfChecked:mt.indexOf(Qe)!==-1,pos:String(Ot?Ot.pos:""),dragOver:Be===Qe&&xt===0,dragOverGapTop:Be===Qe&&xt===-1,dragOverGapBottom:Be===Qe&&xt===1};return nt}function dt(Qe){var Ze=Qe.data,Ae=Qe.expanded,Je=Qe.selected,Re=Qe.checked,vt=Qe.loaded,$e=Qe.loading,mt=Qe.halfChecked,Be=Qe.dragOver,xt=Qe.dragOverGapTop,Ve=Qe.dragOverGapBottom,Ot=Qe.pos,nt=Qe.active,wt=Qe.eventKey,Mt=(0,Ee.Z)((0,Ee.Z)({},Ze),{},{expanded:Ae,selected:Je,checked:Re,loaded:vt,loading:$e,halfChecked:mt,dragOver:Be,dragOverGapTop:xt,dragOverGapBottom:Ve,pos:Ot,active:nt,key:wt});return"props"in Mt||Object.defineProperty(Mt,"props",{get:function(){return(0,pe.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Qe}}),Mt}},8224:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return ye}});var E=ne(4676);function ye(Ee,Ye,Ce,Se){var pe=E.unstable_batchedUpdates?function(De){E.unstable_batchedUpdates(Ce,De)}:Ce;return Ee!=null&&Ee.addEventListener&&Ee.addEventListener(Ye,pe,Se),{remove:function(){Ee!=null&&Ee.removeEventListener&&Ee.removeEventListener(Ye,pe,Se)}}}},55468:function(An,tn,ne){"use strict";ne.d(tn,{g1:function(){return et},os:function(){return Ie}});var E=/margin|padding|width|height|max|min|offset/,ye={left:!0,top:!0},Ee={cssFloat:1,styleFloat:1,float:1};function Ye(tt){return tt.nodeType===1?tt.ownerDocument.defaultView.getComputedStyle(tt,null):{}}function Ce(tt,ze,We){if(ze=ze.toLowerCase(),We==="auto"){if(ze==="height")return tt.offsetHeight;if(ze==="width")return tt.offsetWidth}return ze in ye||(ye[ze]=E.test(ze)),ye[ze]?parseFloat(We)||0:We}function Se(tt,ze){var We=arguments.length,lt=Ye(tt);return ze=Ee[ze]?"cssFloat"in tt.style?"cssFloat":"styleFloat":ze,We===1?lt:Ce(tt,ze,lt[ze]||tt.style[ze])}function pe(tt,ze,We){var lt=arguments.length;if(ze=Ee[ze]?"cssFloat"in tt.style?"cssFloat":"styleFloat":ze,lt===3)return typeof We=="number"&&E.test(ze)&&(We="".concat(We,"px")),tt.style[ze]=We,We;for(var Xe in ze)ze.hasOwnProperty(Xe)&&pe(tt,Xe,ze[Xe]);return Ye(tt)}function be(tt){return tt===document.body?document.documentElement.clientWidth:tt.offsetWidth}function De(tt){return tt===document.body?window.innerHeight||document.documentElement.clientHeight:tt.offsetHeight}function Pe(){var tt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),ze=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:tt,height:ze}}function et(){var tt=document.documentElement.clientWidth,ze=window.innerHeight||document.documentElement.clientHeight;return{width:tt,height:ze}}function Fe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ie(tt){var ze=tt.getBoundingClientRect(),We=document.documentElement;return{left:ze.left+(window.pageXOffset||We.scrollLeft)-(We.clientLeft||document.body.clientLeft||0),top:ze.top+(window.pageYOffset||We.scrollTop)-(We.clientTop||document.body.clientTop||0)}}},24514:function(An,tn,ne){"use strict";ne.d(tn,{G:function(){return Ye}});var E=ne(47273),ye=function(Se){if((0,E.Z)()&&window.document.documentElement){var pe=Array.isArray(Se)?Se:[Se],be=window.document.documentElement;return pe.some(function(De){return De in be.style})}return!1},Ee=function(Se,pe){if(!ye(Se))return!1;var be=document.createElement("div"),De=be.style[Se];return be.style[Se]=pe,be.style[Se]!==De};function Ye(Ce,Se){return!Array.isArray(Ce)&&Se!==void 0?Ee(Ce,Se):ye(Ce)}},48911:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return ln}});var E=ne(60499),ye=ne(43749),Ee=ne(85899),Ye=ne(18642),Ce=ne(72190),Se=ne(42244),pe=ne(92310),be=ne.n(pe),De=ne(29301),Pe=ne(70425),et=ne(34280),Fe=ne(59301),Ie=ne(4676),tt=Fe.forwardRef(function(xe,fe){var ue=xe.height,he=xe.offsetY,me=xe.offsetX,oe=xe.children,Ne=xe.prefixCls,At=xe.onInnerResize,Ge=xe.innerProps,je=xe.rtl,Pt=xe.extra,Et={},ht={display:"flex",flexDirection:"column"};return he!==void 0&&(Et={height:ue,position:"relative",overflow:"hidden"},ht=(0,Ee.Z)((0,Ee.Z)({},ht),{},(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({transform:"translateY(".concat(he,"px)")},je?"marginRight":"marginLeft",-me),"position","absolute"),"left",0),"right",0),"top",0))),Fe.createElement("div",{style:Et},Fe.createElement(De.Z,{onResize:function(vn){var kt=vn.offsetHeight;kt&&At&&At()}},Fe.createElement("div",(0,E.Z)({style:ht,className:be()((0,Ye.Z)({},"".concat(Ne,"-holder-inner"),Ne)),ref:fe},Ge),oe,Pt)))});tt.displayName="Filler";var ze=tt;function We(xe){var fe=xe.children,ue=xe.setRef,he=Fe.useCallback(function(me){ue(me)},[]);return Fe.cloneElement(fe,{ref:he})}function lt(xe,fe,ue,he,me,oe,Ne,At){var Ge=At.getKey;return xe.slice(fe,ue+1).map(function(je,Pt){var Et=fe+Pt,ht=Ne(je,Et,{style:{width:he},offsetX:me}),Kt=Ge(je);return Fe.createElement(We,{key:Kt,setRef:function(kt){return oe(je,kt)}},ht)})}function Xe(xe,fe,ue,he){var me=ue-xe,oe=fe-ue,Ne=Math.min(me,oe)*2;if(he<=Ne){var At=Math.floor(he/2);return he%2?ue+At+1:ue-At}return me>oe?ue-(he-oe):ue+(he-me)}function Dt(xe,fe,ue){var he=xe.length,me=fe.length,oe,Ne;if(he===0&&me===0)return null;he<me?(oe=xe,Ne=fe):(oe=fe,Ne=xe);var At={__EMPTY_ITEM__:!0};function Ge(vn){return vn!==void 0?ue(vn):At}for(var je=null,Pt=Math.abs(he-me)!==1,Et=0;Et<Ne.length;Et+=1){var ht=Ge(oe[Et]),Kt=Ge(Ne[Et]);if(ht!==Kt){je=Et,Pt=Pt||ht!==Ge(Ne[Et+1]);break}}return je===null?null:{index:je,multiple:Pt}}function dt(xe,fe,ue){var he=Fe.useState(xe),me=(0,Ce.Z)(he,2),oe=me[0],Ne=me[1],At=Fe.useState(null),Ge=(0,Ce.Z)(At,2),je=Ge[0],Pt=Ge[1];return Fe.useEffect(function(){var Et=Dt(oe||[],xe||[],fe);(Et==null?void 0:Et.index)!==void 0&&(ue==null||ue(Et.index),Pt(xe[Et.index])),Ne(xe)},[xe]),[je]}var Qe=ne(16089),Ze=(typeof navigator=="undefined"?"undefined":(0,ye.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ae=Ze,Je=function(xe,fe,ue,he){var me=(0,Fe.useRef)(!1),oe=(0,Fe.useRef)(null);function Ne(){clearTimeout(oe.current),me.current=!0,oe.current=setTimeout(function(){me.current=!1},50)}var At=(0,Fe.useRef)({top:xe,bottom:fe,left:ue,right:he});return At.current.top=xe,At.current.bottom=fe,At.current.left=ue,At.current.right=he,function(Ge,je){var Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Et=Ge?je<0&&At.current.left||je>0&&At.current.right:je<0&&At.current.top||je>0&&At.current.bottom;return Pt&&Et?(clearTimeout(oe.current),me.current=!1):(!Et||me.current)&&Ne(),!me.current&&Et}};function Re(xe,fe,ue,he,me,oe,Ne){var At=(0,Fe.useRef)(0),Ge=(0,Fe.useRef)(null),je=(0,Fe.useRef)(null),Pt=(0,Fe.useRef)(!1),Et=Je(fe,ue,he,me);function ht(Bt,Ke){if(Qe.Z.cancel(Ge.current),!Et(!1,Ke)){var gt=Bt;if(!gt._virtualHandled)gt._virtualHandled=!0;else return;At.current+=Ke,je.current=Ke,Ae||gt.preventDefault(),Ge.current=(0,Qe.Z)(function(){var Vt=Pt.current?10:1;Ne(At.current*Vt,!1),At.current=0})}}function Kt(Bt,Ke){Ne(Ke,!0),Ae||Bt.preventDefault()}var vn=(0,Fe.useRef)(null),kt=(0,Fe.useRef)(null);function Ut(Bt){if(xe){Qe.Z.cancel(kt.current),kt.current=(0,Qe.Z)(function(){vn.current=null},2);var Ke=Bt.deltaX,gt=Bt.deltaY,Vt=Bt.shiftKey,Nt=Ke,Xt=gt;(vn.current==="sx"||!vn.current&&Vt&>&&!Ke)&&(Nt=gt,Xt=0,vn.current="sx");var Mn=Math.abs(Nt),Tn=Math.abs(Xt);vn.current===null&&(vn.current=oe&&Mn>Tn?"x":"y"),vn.current==="y"?ht(Bt,Xt):Kt(Bt,Nt)}}function yn(Bt){xe&&(Pt.current=Bt.detail===je.current)}return[Ut,yn]}function vt(xe,fe,ue,he){var me=Fe.useMemo(function(){return[new Map,[]]},[xe,ue.id,he]),oe=(0,Ce.Z)(me,2),Ne=oe[0],At=oe[1],Ge=function(Pt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pt,ht=Ne.get(Pt),Kt=Ne.get(Et);if(ht===void 0||Kt===void 0)for(var vn=xe.length,kt=At.length;kt<vn;kt+=1){var Ut,yn=xe[kt],Bt=fe(yn);Ne.set(Bt,kt);var Ke=(Ut=ue.get(Bt))!==null&&Ut!==void 0?Ut:he;if(At[kt]=(At[kt-1]||0)+Ke,Bt===Pt&&(ht=kt),Bt===Et&&(Kt=kt),ht!==void 0&&Kt!==void 0)break}return{top:At[ht-1]||0,bottom:At[Kt]}};return Ge}var $e=ne(38705),mt=ne(17212),Be=function(){function xe(){(0,$e.Z)(this,xe),(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,mt.Z)(xe,[{key:"set",value:function(ue,he){this.diffRecords.set(ue,this.maps[ue]),this.maps[ue]=he,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}}]),xe}(),xt=Be;function Ve(xe){var fe=parseFloat(xe);return isNaN(fe)?0:fe}function Ot(xe,fe,ue){var he=Fe.useState(0),me=(0,Ce.Z)(he,2),oe=me[0],Ne=me[1],At=(0,Fe.useRef)(new Map),Ge=(0,Fe.useRef)(new xt),je=(0,Fe.useRef)(0);function Pt(){je.current+=1}function Et(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Pt();var vn=function(){var yn=!1;At.current.forEach(function(Bt,Ke){if(Bt&&Bt.offsetParent){var gt=Bt.offsetHeight,Vt=getComputedStyle(Bt),Nt=Vt.marginTop,Xt=Vt.marginBottom,Mn=Ve(Nt),Tn=Ve(Xt),Rn=gt+Mn+Tn;Ge.current.get(Ke)!==Rn&&(Ge.current.set(Ke,Rn),yn=!0)}}),yn&&Ne(function(Bt){return Bt+1})};if(Kt)vn();else{je.current+=1;var kt=je.current;Promise.resolve().then(function(){kt===je.current&&vn()})}}function ht(Kt,vn){var kt=xe(Kt),Ut=At.current.get(kt);vn?(At.current.set(kt,vn),Et()):At.current.delete(kt),!Ut!=!vn&&(vn?fe==null||fe(Kt):ue==null||ue(Kt))}return(0,Fe.useEffect)(function(){return Pt},[]),[ht,Et,Ge.current,oe]}var nt=14/15;function wt(xe,fe,ue){var he=(0,Fe.useRef)(!1),me=(0,Fe.useRef)(0),oe=(0,Fe.useRef)(0),Ne=(0,Fe.useRef)(null),At=(0,Fe.useRef)(null),Ge,je=function(Kt){if(he.current){var vn=Math.ceil(Kt.touches[0].pageX),kt=Math.ceil(Kt.touches[0].pageY),Ut=me.current-vn,yn=oe.current-kt,Bt=Math.abs(Ut)>Math.abs(yn);Bt?me.current=vn:oe.current=kt;var Ke=ue(Bt,Bt?Ut:yn,!1,Kt);Ke&&Kt.preventDefault(),clearInterval(At.current),Ke&&(At.current=setInterval(function(){Bt?Ut*=nt:yn*=nt;var gt=Math.floor(Bt?Ut:yn);(!ue(Bt,gt,!0)||Math.abs(gt)<=.1)&&clearInterval(At.current)},16))}},Pt=function(){he.current=!1,Ge()},Et=function(Kt){Ge(),Kt.touches.length===1&&!he.current&&(he.current=!0,me.current=Math.ceil(Kt.touches[0].pageX),oe.current=Math.ceil(Kt.touches[0].pageY),Ne.current=Kt.target,Ne.current.addEventListener("touchmove",je,{passive:!1}),Ne.current.addEventListener("touchend",Pt,{passive:!0}))};Ge=function(){Ne.current&&(Ne.current.removeEventListener("touchmove",je),Ne.current.removeEventListener("touchend",Pt))},(0,et.Z)(function(){return xe&&fe.current.addEventListener("touchstart",Et,{passive:!0}),function(){var ht;(ht=fe.current)===null||ht===void 0||ht.removeEventListener("touchstart",Et),Ge(),clearInterval(At.current)}},[xe])}function Mt(xe){return Math.floor(Math.pow(xe,.5))}function at(xe,fe){var ue="touches"in xe?xe.touches[0]:xe;return ue[fe?"pageX":"pageY"]-window[fe?"scrollX":"scrollY"]}function Le(xe,fe,ue){Fe.useEffect(function(){var he=fe.current;if(xe&&he){var me=!1,oe,Ne,At=function(){Qe.Z.cancel(oe)},Ge=function ht(){At(),oe=(0,Qe.Z)(function(){ue(Ne),ht()})},je=function(){me=!1,At()},Pt=function(Kt){if(!(Kt.target.draggable||Kt.button!==0)){var vn=Kt;vn._virtualHandled||(vn._virtualHandled=!0,me=!0)}},Et=function(Kt){if(me){var vn=at(Kt,!1),kt=he.getBoundingClientRect(),Ut=kt.top,yn=kt.bottom;if(vn<=Ut){var Bt=Ut-vn;Ne=-Mt(Bt),Ge()}else if(vn>=yn){var Ke=vn-yn;Ne=Mt(Ke),Ge()}else At()}};return he.addEventListener("mousedown",Pt),he.ownerDocument.addEventListener("mouseup",je),he.ownerDocument.addEventListener("mousemove",Et),he.ownerDocument.addEventListener("dragend",je),function(){he.removeEventListener("mousedown",Pt),he.ownerDocument.removeEventListener("mouseup",je),he.ownerDocument.removeEventListener("mousemove",Et),he.ownerDocument.removeEventListener("dragend",je),At()}}},[xe])}var Me=10;function st(xe,fe,ue,he,me,oe,Ne,At){var Ge=Fe.useRef(),je=Fe.useState(null),Pt=(0,Ce.Z)(je,2),Et=Pt[0],ht=Pt[1];return(0,et.Z)(function(){if(Et&&Et.times<Me){if(!xe.current){ht(function(Kr){return(0,Ee.Z)({},Kr)});return}oe();var Kt=Et.targetAlign,vn=Et.originAlign,kt=Et.index,Ut=Et.offset,yn=xe.current.clientHeight,Bt=!1,Ke=Kt,gt=null;if(yn){for(var Vt=Kt||vn,Nt=0,Xt=0,Mn=0,Tn=Math.min(fe.length-1,kt),Rn=0;Rn<=Tn;Rn+=1){var ur=me(fe[Rn]);Xt=Nt;var vr=ue.get(ur);Mn=Xt+(vr===void 0?he:vr),Nt=Mn}for(var dr=Vt==="top"?Ut:yn-Ut,mn=Tn;mn>=0;mn-=1){var zn=me(fe[mn]),jn=ue.get(zn);if(jn===void 0){Bt=!0;break}if(dr-=jn,dr<=0)break}switch(Vt){case"top":gt=Xt-Ut;break;case"bottom":gt=Mn-yn+Ut;break;default:{var Xn=xe.current.scrollTop,Sr=Xn+yn;Xt<Xn?Ke="top":Mn>Sr&&(Ke="bottom")}}gt!==null&&Ne(gt),gt!==Et.lastTop&&(Bt=!0)}Bt&&ht((0,Ee.Z)((0,Ee.Z)({},Et),{},{times:Et.times+1,targetAlign:Ke,lastTop:gt}))}},[Et,xe.current]),function(Kt){if(Kt==null){At();return}if(Qe.Z.cancel(Ge.current),typeof Kt=="number")Ne(Kt);else if(Kt&&(0,ye.Z)(Kt)==="object"){var vn,kt=Kt.align;"index"in Kt?vn=Kt.index:vn=fe.findIndex(function(Bt){return me(Bt)===Kt.key});var Ut=Kt.offset,yn=Ut===void 0?0:Ut;ht({times:0,index:vn,offset:yn,originAlign:kt})}}}var Ht=Fe.forwardRef(function(xe,fe){var ue=xe.prefixCls,he=xe.rtl,me=xe.scrollOffset,oe=xe.scrollRange,Ne=xe.onStartMove,At=xe.onStopMove,Ge=xe.onScroll,je=xe.horizontal,Pt=xe.spinSize,Et=xe.containerSize,ht=xe.style,Kt=xe.thumbStyle,vn=xe.showScrollBar,kt=Fe.useState(!1),Ut=(0,Ce.Z)(kt,2),yn=Ut[0],Bt=Ut[1],Ke=Fe.useState(null),gt=(0,Ce.Z)(Ke,2),Vt=gt[0],Nt=gt[1],Xt=Fe.useState(null),Mn=(0,Ce.Z)(Xt,2),Tn=Mn[0],Rn=Mn[1],ur=!he,vr=Fe.useRef(),dr=Fe.useRef(),mn=Fe.useState(vn),zn=(0,Ce.Z)(mn,2),jn=zn[0],Xn=zn[1],Sr=Fe.useRef(),Kr=function(){vn===!0||vn===!1||(clearTimeout(Sr.current),Xn(!0),Sr.current=setTimeout(function(){Xn(!1)},3e3))},ar=oe-Et||0,Zn=Et-Pt||0,Wr=Fe.useMemo(function(){if(me===0||ar===0)return 0;var jt=me/ar;return jt*Zn},[me,ar,Zn]),Gt=function(Ue){Ue.stopPropagation(),Ue.preventDefault()},or=Fe.useRef({top:Wr,dragging:yn,pageY:Vt,startTop:Tn});or.current={top:Wr,dragging:yn,pageY:Vt,startTop:Tn};var er=function(Ue){Bt(!0),Nt(at(Ue,je)),Rn(or.current.top),Ne(),Ue.stopPropagation(),Ue.preventDefault()};Fe.useEffect(function(){var jt=function(rt){rt.preventDefault()},Ue=vr.current,yt=dr.current;return Ue.addEventListener("touchstart",jt,{passive:!1}),yt.addEventListener("touchstart",er,{passive:!1}),function(){Ue.removeEventListener("touchstart",jt),yt.removeEventListener("touchstart",er)}},[]);var Kn=Fe.useRef();Kn.current=ar;var En=Fe.useRef();En.current=Zn,Fe.useEffect(function(){if(yn){var jt,Ue=function(rt){var _t=or.current,Qt=_t.dragging,pn=_t.pageY,sn=_t.startTop;Qe.Z.cancel(jt);var Bn=vr.current.getBoundingClientRect(),Yn=Et/(je?Bn.width:Bn.height);if(Qt){var cr=(at(rt,je)-pn)*Yn,$n=sn;!ur&&je?$n-=cr:$n+=cr;var en=Kn.current,rn=En.current,Or=rn?$n/rn:0,kr=Math.ceil(Or*en);kr=Math.max(kr,0),kr=Math.min(kr,en),jt=(0,Qe.Z)(function(){Ge(kr,je)})}},yt=function(){Bt(!1),At()};return window.addEventListener("mousemove",Ue,{passive:!0}),window.addEventListener("touchmove",Ue,{passive:!0}),window.addEventListener("mouseup",yt,{passive:!0}),window.addEventListener("touchend",yt,{passive:!0}),function(){window.removeEventListener("mousemove",Ue),window.removeEventListener("touchmove",Ue),window.removeEventListener("mouseup",yt),window.removeEventListener("touchend",yt),Qe.Z.cancel(jt)}}},[yn]),Fe.useEffect(function(){return Kr(),function(){clearTimeout(Sr.current)}},[me]),Fe.useImperativeHandle(fe,function(){return{delayHidden:Kr}});var nr="".concat(ue,"-scrollbar"),lr={position:"absolute",visibility:jn?null:"hidden"},xr={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return je?(Object.assign(lr,{height:8,left:0,right:0,bottom:0}),Object.assign(xr,(0,Ye.Z)({height:"100%",width:Pt},ur?"left":"right",Wr))):(Object.assign(lr,(0,Ye.Z)({width:8,top:0,bottom:0},ur?"right":"left",0)),Object.assign(xr,{width:"100%",height:Pt,top:Wr})),Fe.createElement("div",{ref:vr,className:be()(nr,(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},"".concat(nr,"-horizontal"),je),"".concat(nr,"-vertical"),!je),"".concat(nr,"-visible"),jn)),style:(0,Ee.Z)((0,Ee.Z)({},lr),ht),onMouseDown:Gt,onMouseMove:Kr},Fe.createElement("div",{ref:dr,className:be()("".concat(nr,"-thumb"),(0,Ye.Z)({},"".concat(nr,"-thumb-moving"),yn)),style:(0,Ee.Z)((0,Ee.Z)({},xr),Kt),onMouseDown:er}))}),Tt=Ht,ct=20;function Ct(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ue=xe/fe*xe;return isNaN(ue)&&(ue=0),ue=Math.max(ue,ct),Math.floor(ue)}var Zt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],gn=[],$t={overflowY:"auto",overflowAnchor:"none"};function Wt(xe,fe){var ue=xe.prefixCls,he=ue===void 0?"rc-virtual-list":ue,me=xe.className,oe=xe.height,Ne=xe.itemHeight,At=xe.fullHeight,Ge=At===void 0?!0:At,je=xe.style,Pt=xe.data,Et=xe.children,ht=xe.itemKey,Kt=xe.virtual,vn=xe.direction,kt=xe.scrollWidth,Ut=xe.component,yn=Ut===void 0?"div":Ut,Bt=xe.onScroll,Ke=xe.onVirtualScroll,gt=xe.onVisibleChange,Vt=xe.innerProps,Nt=xe.extraRender,Xt=xe.styles,Mn=xe.showScrollBar,Tn=Mn===void 0?"optional":Mn,Rn=(0,Se.Z)(xe,Zt),ur=Fe.useCallback(function(ki){return typeof ht=="function"?ht(ki):ki==null?void 0:ki[ht]},[ht]),vr=Ot(ur,null,null),dr=(0,Ce.Z)(vr,4),mn=dr[0],zn=dr[1],jn=dr[2],Xn=dr[3],Sr=!!(Kt!==!1&&oe&&Ne),Kr=Fe.useMemo(function(){return Object.values(jn.maps).reduce(function(ki,Hi){return ki+Hi},0)},[jn.id,jn.maps]),ar=Sr&&Pt&&(Math.max(Ne*Pt.length,Kr)>oe||!!kt),Zn=vn==="rtl",Wr=be()(he,(0,Ye.Z)({},"".concat(he,"-rtl"),Zn),me),Gt=Pt||gn,or=(0,Fe.useRef)(),er=(0,Fe.useRef)(),Kn=(0,Fe.useRef)(),En=(0,Fe.useState)(0),nr=(0,Ce.Z)(En,2),lr=nr[0],xr=nr[1],jt=(0,Fe.useState)(0),Ue=(0,Ce.Z)(jt,2),yt=Ue[0],ut=Ue[1],rt=(0,Fe.useState)(!1),_t=(0,Ce.Z)(rt,2),Qt=_t[0],pn=_t[1],sn=function(){pn(!0)},Bn=function(){pn(!1)},Yn={getKey:ur};function cr(ki){xr(function(Hi){var Aa;typeof ki=="function"?Aa=ki(Hi):Aa=ki;var Ma=gi(Aa);return or.current.scrollTop=Ma,Ma})}var $n=(0,Fe.useRef)({start:0,end:Gt.length}),en=(0,Fe.useRef)(),rn=dt(Gt,ur),Or=(0,Ce.Z)(rn,1),kr=Or[0];en.current=kr;var Cr=Fe.useMemo(function(){if(!Sr)return{scrollHeight:void 0,start:0,end:Gt.length-1,offset:void 0};if(!ar){var ki;return{scrollHeight:((ki=er.current)===null||ki===void 0?void 0:ki.offsetHeight)||0,start:0,end:Gt.length-1,offset:void 0}}for(var Hi=0,Aa,Ma,lo,hl=Gt.length,qo=0;qo<hl;qo+=1){var co=Gt[qo],Ho=ur(co),Vo=jn.get(Ho),Qr=Hi+(Vo===void 0?Ne:Vo);Qr>=lr&&Aa===void 0&&(Aa=qo,Ma=Hi),Qr>lr+oe&&lo===void 0&&(lo=qo),Hi=Qr}return Aa===void 0&&(Aa=0,Ma=0,lo=Math.ceil(oe/Ne)),lo===void 0&&(lo=Gt.length-1),lo=Math.min(lo+1,Gt.length-1),{scrollHeight:Hi,start:Aa,end:lo,offset:Ma}},[ar,Sr,lr,Gt,Xn,oe]),Dr=Cr.scrollHeight,qr=Cr.start,br=Cr.end,fi=Cr.offset;$n.current.start=qr,$n.current.end=br,Fe.useLayoutEffect(function(){var ki=jn.getRecord();if(ki.size===1){var Hi=Array.from(ki.keys())[0],Aa=ki.get(Hi),Ma=Gt[qr];if(Ma&&Aa===void 0){var lo=ur(Ma);if(lo===Hi){var hl=jn.get(Hi),qo=hl-Ne;cr(function(co){return co+qo})}}}jn.resetRecord()},[Dr]);var Jt=Fe.useState({width:0,height:oe}),On=(0,Ce.Z)(Jt,2),Hn=On[0],qn=On[1],kn=function(Hi){qn({width:Hi.offsetWidth,height:Hi.offsetHeight})},Vn=(0,Fe.useRef)(),Pn=(0,Fe.useRef)(),fr=Fe.useMemo(function(){return Ct(Hn.width,kt)},[Hn.width,kt]),Pr=Fe.useMemo(function(){return Ct(Hn.height,Dr)},[Hn.height,Dr]),Gr=Dr-oe,pi=(0,Fe.useRef)(Gr);pi.current=Gr;function gi(ki){var Hi=ki;return Number.isNaN(pi.current)||(Hi=Math.min(Hi,pi.current)),Hi=Math.max(Hi,0),Hi}var Ri=lr<=0,Si=lr>=Gr,wi=yt<=0,Zi=yt>=kt,ji=Je(Ri,Si,wi,Zi),Gi=function(){return{x:Zn?-yt:yt,y:lr}},Bi=(0,Fe.useRef)(Gi()),Di=(0,Pe.useEvent)(function(ki){if(Ke){var Hi=(0,Ee.Z)((0,Ee.Z)({},Gi()),ki);(Bi.current.x!==Hi.x||Bi.current.y!==Hi.y)&&(Ke(Hi),Bi.current=Hi)}});function zr(ki,Hi){var Aa=ki;Hi?((0,Ie.flushSync)(function(){ut(Aa)}),Di()):cr(Aa)}function li(ki){var Hi=ki.currentTarget.scrollTop;Hi!==lr&&cr(Hi),Bt==null||Bt(ki),Di()}var Ii=function(Hi){var Aa=Hi,Ma=kt?kt-Hn.width:0;return Aa=Math.max(Aa,0),Aa=Math.min(Aa,Ma),Aa},ya=(0,Pe.useEvent)(function(ki,Hi){Hi?((0,Ie.flushSync)(function(){ut(function(Aa){var Ma=Aa+(Zn?-ki:ki);return Ii(Ma)})}),Di()):cr(function(Aa){var Ma=Aa+ki;return Ma})}),vi=Re(Sr,Ri,Si,wi,Zi,!!kt,ya),jr=(0,Ce.Z)(vi,2),Ir=jr[0],Vi=jr[1];wt(Sr,or,function(ki,Hi,Aa,Ma){var lo=Ma;return ji(ki,Hi,Aa)?!1:!lo||!lo._virtualHandled?(lo&&(lo._virtualHandled=!0),Ir({preventDefault:function(){},deltaX:ki?Hi:0,deltaY:ki?0:Hi}),!0):!1}),Le(ar,or,function(ki){cr(function(Hi){return Hi+ki})}),(0,et.Z)(function(){function ki(Aa){var Ma=Ri&&Aa.detail<0,lo=Si&&Aa.detail>0;Sr&&!Ma&&!lo&&Aa.preventDefault()}var Hi=or.current;return Hi.addEventListener("wheel",Ir,{passive:!1}),Hi.addEventListener("DOMMouseScroll",Vi,{passive:!0}),Hi.addEventListener("MozMousePixelScroll",ki,{passive:!1}),function(){Hi.removeEventListener("wheel",Ir),Hi.removeEventListener("DOMMouseScroll",Vi),Hi.removeEventListener("MozMousePixelScroll",ki)}},[Sr,Ri,Si]),(0,et.Z)(function(){if(kt){var ki=Ii(yt);ut(ki),Di({x:ki})}},[Hn.width,kt]);var xi=function(){var Hi,Aa;(Hi=Vn.current)===null||Hi===void 0||Hi.delayHidden(),(Aa=Pn.current)===null||Aa===void 0||Aa.delayHidden()},na=st(or,Gt,jn,Ne,ur,function(){return zn(!0)},cr,xi);Fe.useImperativeHandle(fe,function(){return{nativeElement:Kn.current,getScrollInfo:Gi,scrollTo:function(Hi){function Aa(Ma){return Ma&&(0,ye.Z)(Ma)==="object"&&("left"in Ma||"top"in Ma)}Aa(Hi)?(Hi.left!==void 0&&ut(Ii(Hi.left)),na(Hi.top)):na(Hi)}}}),(0,et.Z)(function(){if(gt){var ki=Gt.slice(qr,br+1);gt(ki,Gt)}},[qr,br,Gt]);var ba=vt(Gt,ur,jn,Ne),oa=Nt==null?void 0:Nt({start:qr,end:br,virtual:ar,offsetX:yt,offsetY:fi,rtl:Zn,getSize:ba}),xa=lt(Gt,qr,br,kt,yt,mn,Et,Yn),Na=null;oe&&(Na=(0,Ee.Z)((0,Ye.Z)({},Ge?"height":"maxHeight",oe),$t),Sr&&(Na.overflowY="hidden",kt&&(Na.overflowX="hidden"),Qt&&(Na.pointerEvents="none")));var Po={};return Zn&&(Po.dir="rtl"),Fe.createElement("div",(0,E.Z)({ref:Kn,style:(0,Ee.Z)((0,Ee.Z)({},je),{},{position:"relative"}),className:Wr},Po,Rn),Fe.createElement(De.Z,{onResize:kn},Fe.createElement(yn,{className:"".concat(he,"-holder"),style:Na,ref:or,onScroll:li,onMouseEnter:xi},Fe.createElement(ze,{prefixCls:he,height:Dr,offsetX:yt,offsetY:fi,scrollWidth:kt,onInnerResize:zn,ref:er,innerProps:Vt,rtl:Zn,extra:oa},xa))),ar&&Dr>oe&&Fe.createElement(Tt,{ref:Vn,prefixCls:he,scrollOffset:lr,scrollRange:Dr,rtl:Zn,onScroll:zr,onStartMove:sn,onStopMove:Bn,spinSize:Pr,containerSize:Hn.height,style:Xt==null?void 0:Xt.verticalScrollBar,thumbStyle:Xt==null?void 0:Xt.verticalScrollBarThumb,showScrollBar:Tn}),ar&&kt>Hn.width&&Fe.createElement(Tt,{ref:Pn,prefixCls:he,scrollOffset:yt,scrollRange:kt,rtl:Zn,onScroll:zr,onStartMove:sn,onStopMove:Bn,spinSize:fr,containerSize:Hn.width,horizontal:!0,style:Xt==null?void 0:Xt.horizontalScrollBar,thumbStyle:Xt==null?void 0:Xt.horizontalScrollBarThumb,showScrollBar:Tn}))}var on=Fe.forwardRef(Wt);on.displayName="List";var dn=on,ln=dn},22061:function(An,tn,ne){"use strict";ne.d(tn,{Z5:function(){return Ec},_l:function(){return su},bK:function(){return Ts}});var E=ne(59301),ye=ne(84255),Ee=ne(60499),Ye=ne(59781),Ce=E.createContext(null),Se=null;function pe(se){se()}var be=pe,De=function(de){return be=de},Pe=function(){return be};function et(){var se=Pe(),de=null,ve=null;return{clear:function(){de=null,ve=null},notify:function(){se(function(){for(var ft=de;ft;)ft.callback(),ft=ft.next})},get:function(){for(var ft=[],pt=de;pt;)ft.push(pt),pt=pt.next;return ft},subscribe:function(ft){var pt=!0,St=ve={callback:ft,next:null,prev:ve};return St.prev?St.prev.next=St:de=St,function(){!pt||de===null||(pt=!1,St.next?St.next.prev=St.prev:ve=St.prev,St.prev?St.prev.next=St.next:de=St.next)}}}}var Fe={notify:function(){},get:function(){return[]}};function Ie(se,de){var ve,Oe=Fe;function ft(zt){return un(),Oe.subscribe(zt)}function pt(){Oe.notify()}function St(){Dn.onStateChange&&Dn.onStateChange()}function Lt(){return!!ve}function un(){ve||(ve=de?de.addNestedSub(St):se.subscribe(St),Oe=et())}function Nn(){ve&&(ve(),ve=void 0,Oe.clear(),Oe=Fe)}var Dn={addNestedSub:ft,notifyNestedSubs:pt,handleChangeWrapper:St,isSubscribed:Lt,trySubscribe:un,tryUnsubscribe:Nn,getListeners:function(){return Oe}};return Dn}var tt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?E.useLayoutEffect:E.useEffect;function ze(se){var de=se.store,ve=se.context,Oe=se.children,ft=(0,E.useMemo)(function(){var Lt=Ie(de);return{store:de,subscription:Lt}},[de]),pt=(0,E.useMemo)(function(){return de.getState()},[de]);tt(function(){var Lt=ft.subscription;return Lt.onStateChange=Lt.notifyNestedSubs,Lt.trySubscribe(),pt!==de.getState()&&Lt.notifyNestedSubs(),function(){Lt.tryUnsubscribe(),Lt.onStateChange=null}},[ft,pt]);var St=ve||Ce;return E.createElement(St.Provider,{value:ft},Oe)}var We=ze,lt=ne(69010),Xe=ne(94266),Dt=ne.n(Xe),dt=ne(53410),Qe=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Ze=["reactReduxForwardedRef"],Ae=[],Je=[null,null],Re=function(de){try{return JSON.stringify(de)}catch(ve){return String(de)}};function vt(se,de){var ve=se[1];return[de.payload,ve+1]}function $e(se,de,ve){tt(function(){return se.apply(void 0,de)},ve)}function mt(se,de,ve,Oe,ft,pt,St){se.current=Oe,de.current=ft,ve.current=!1,pt.current&&(pt.current=null,St())}function Be(se,de,ve,Oe,ft,pt,St,Lt,un,Nn){if(se){var Dn=!1,zt=null,fn=function(){if(!Dn){var ra=de.getState(),fa,ha;try{fa=Oe(ra,ft.current)}catch(za){ha=za,zt=za}ha||(zt=null),fa===pt.current?St.current||un():(pt.current=fa,Lt.current=fa,St.current=!0,Nn({type:"STORE_UPDATED",payload:{error:ha}}))}};ve.onStateChange=fn,ve.trySubscribe(),fn();var Jn=function(){if(Dn=!0,ve.tryUnsubscribe(),ve.onStateChange=null,zt)throw zt};return Jn}}var xt=function(){return[null,0]};function Ve(se,de){de===void 0&&(de={});var ve=de,Oe=ve.getDisplayName,ft=Oe===void 0?function(Uo){return"ConnectAdvanced("+Uo+")"}:Oe,pt=ve.methodName,St=pt===void 0?"connectAdvanced":pt,Lt=ve.renderCountProp,un=Lt===void 0?void 0:Lt,Nn=ve.shouldHandleStateChanges,Dn=Nn===void 0?!0:Nn,zt=ve.storeKey,fn=zt===void 0?"store":zt,Jn=ve.withRef,Tr=Jn===void 0?!1:Jn,ra=ve.forwardRef,fa=ra===void 0?!1:ra,ha=ve.context,za=ha===void 0?Ce:ha,uo=(0,lt.Z)(ve,Qe);if(0)var Eo;var tl=za;return function(Zo){var fs=Zo.displayName||Zo.name||"Component",Sl=ft(fs),ql=(0,Ee.Z)({},uo,{getDisplayName:ft,methodName:St,renderCountProp:un,shouldHandleStateChanges:Dn,storeKey:fn,displayName:Sl,wrappedComponentName:fs,WrappedComponent:Zo}),es=uo.pure;function uu(Ks){return se(Ks.dispatch,ql)}var Ou=es?E.useMemo:function(Ks){return Ks()};function Su(Ks){var Wc=(0,E.useMemo)(function(){var jd=Ks.reactReduxForwardedRef,Kf=(0,lt.Z)(Ks,Ze);return[Ks.context,jd,Kf]},[Ks]),wc=Wc[0],Wd=Wc[1],cc=Wc[2],tc=(0,E.useMemo)(function(){return wc&&wc.Consumer&&(0,dt.isContextConsumer)(E.createElement(wc.Consumer,null))?wc:tl},[wc,tl]),nc=(0,E.useContext)(tc),Ku=!!Ks.store&&!!Ks.store.getState&&!!Ks.store.dispatch,dc=!!nc&&!!nc.store,Sc=Ku?Ks.store:nc.store,Sd=(0,E.useMemo)(function(){return uu(Sc)},[Sc]),Ad=(0,E.useMemo)(function(){if(!Dn)return Je;var jd=Ie(Sc,Ku?null:nc.subscription),Kf=jd.notifyNestedSubs.bind(jd);return[jd,Kf]},[Sc,Ku,nc]),fd=Ad[0],df=Ad[1],ff=(0,E.useMemo)(function(){return Ku?nc:(0,Ee.Z)({},nc,{subscription:fd})},[Ku,nc,fd]),uh=(0,E.useReducer)(vt,Ae,xt),Uh=uh[0],hf=Uh[0],ch=uh[1];if(hf&&hf.error)throw hf.error;var dh=(0,E.useRef)(),Zf=(0,E.useRef)(cc),pf=(0,E.useRef)(),fh=(0,E.useRef)(!1),Hf=Ou(function(){return pf.current&&cc===Zf.current?pf.current:Sd(Sc.getState(),cc)},[Sc,hf,cc]);$e(mt,[Zf,dh,fh,cc,Hf,pf,df]),$e(Be,[Dn,Sc,fd,Sd,Zf,dh,fh,pf,df,ch],[Sc,fd,Sd]);var mf=(0,E.useMemo)(function(){return E.createElement(Zo,(0,Ee.Z)({},Hf,{ref:Wd}))},[Wd,Zo,Hf]),Gh=(0,E.useMemo)(function(){return Dn?E.createElement(tc.Provider,{value:ff},mf):mf},[tc,mf,ff]);return Gh}var Lu=es?E.memo(Su):Su;if(Lu.WrappedComponent=Zo,Lu.displayName=Su.displayName=Sl,fa){var Cc=E.forwardRef(function(Wc,wc){return E.createElement(Lu,(0,Ee.Z)({},Wc,{reactReduxForwardedRef:wc}))});return Cc.displayName=Sl,Cc.WrappedComponent=Zo,Dt()(Cc,Zo)}return Dt()(Lu,Zo)}}function Ot(se,de){return se===de?se!==0||de!==0||1/se===1/de:se!==se&&de!==de}function nt(se,de){if(Ot(se,de))return!0;if(typeof se!="object"||se===null||typeof de!="object"||de===null)return!1;var ve=Object.keys(se),Oe=Object.keys(de);if(ve.length!==Oe.length)return!1;for(var ft=0;ft<ve.length;ft++)if(!Object.prototype.hasOwnProperty.call(de,ve[ft])||!Ot(se[ve[ft]],de[ve[ft]]))return!1;return!0}function wt(se,de){var ve={},Oe=function(St){var Lt=se[St];typeof Lt=="function"&&(ve[St]=function(){return de(Lt.apply(void 0,arguments))})};for(var ft in se)Oe(ft);return ve}function Mt(se){return function(ve,Oe){var ft=se(ve,Oe);function pt(){return ft}return pt.dependsOnOwnProps=!1,pt}}function at(se){return se.dependsOnOwnProps!==null&&se.dependsOnOwnProps!==void 0?!!se.dependsOnOwnProps:se.length!==1}function Le(se,de){return function(Oe,ft){var pt=ft.displayName,St=function(un,Nn){return St.dependsOnOwnProps?St.mapToProps(un,Nn):St.mapToProps(un)};return St.dependsOnOwnProps=!0,St.mapToProps=function(un,Nn){St.mapToProps=se,St.dependsOnOwnProps=at(se);var Dn=St(un,Nn);return typeof Dn=="function"&&(St.mapToProps=Dn,St.dependsOnOwnProps=at(Dn),Dn=St(un,Nn)),Dn},St}}function Me(se){return typeof se=="function"?Le(se,"mapDispatchToProps"):void 0}function st(se){return se?void 0:Mt(function(de){return{dispatch:de}})}function Ht(se){return se&&typeof se=="object"?Mt(function(de){return wt(se,de)}):void 0}var Tt=[Me,st,Ht];function ct(se){return typeof se=="function"?Le(se,"mapStateToProps"):void 0}function Ct(se){return se?void 0:Mt(function(){return{}})}var Zt=[ct,Ct];function gn(se,de,ve){return(0,Ee.Z)({},ve,se,de)}function $t(se){return function(ve,Oe){var ft=Oe.displayName,pt=Oe.pure,St=Oe.areMergedPropsEqual,Lt=!1,un;return function(Dn,zt,fn){var Jn=se(Dn,zt,fn);return Lt?(!pt||!St(Jn,un))&&(un=Jn):(Lt=!0,un=Jn),un}}}function Wt(se){return typeof se=="function"?$t(se):void 0}function on(se){return se?void 0:function(){return gn}}var dn=[Wt,on],ln=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function xe(se,de,ve,Oe){return function(pt,St){return ve(se(pt,St),de(Oe,St),St)}}function fe(se,de,ve,Oe,ft){var pt=ft.areStatesEqual,St=ft.areOwnPropsEqual,Lt=ft.areStatePropsEqual,un=!1,Nn,Dn,zt,fn,Jn;function Tr(uo,Eo){return Nn=uo,Dn=Eo,zt=se(Nn,Dn),fn=de(Oe,Dn),Jn=ve(zt,fn,Dn),un=!0,Jn}function ra(){return zt=se(Nn,Dn),de.dependsOnOwnProps&&(fn=de(Oe,Dn)),Jn=ve(zt,fn,Dn),Jn}function fa(){return se.dependsOnOwnProps&&(zt=se(Nn,Dn)),de.dependsOnOwnProps&&(fn=de(Oe,Dn)),Jn=ve(zt,fn,Dn),Jn}function ha(){var uo=se(Nn,Dn),Eo=!Lt(uo,zt);return zt=uo,Eo&&(Jn=ve(zt,fn,Dn)),Jn}function za(uo,Eo){var tl=!St(Eo,Dn),Uo=!pt(uo,Nn,Eo,Dn);return Nn=uo,Dn=Eo,tl&&Uo?ra():tl?fa():Uo?ha():Jn}return function(Eo,tl){return un?za(Eo,tl):Tr(Eo,tl)}}function ue(se,de){var ve=de.initMapStateToProps,Oe=de.initMapDispatchToProps,ft=de.initMergeProps,pt=(0,lt.Z)(de,ln),St=ve(se,pt),Lt=Oe(se,pt),un=ft(se,pt),Nn=pt.pure?fe:xe;return Nn(St,Lt,un,se,pt)}var he=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function me(se,de,ve){for(var Oe=de.length-1;Oe>=0;Oe--){var ft=de[Oe](se);if(ft)return ft}return function(pt,St){throw new Error("Invalid value of type "+typeof se+" for "+ve+" argument when connecting component "+St.wrappedComponentName+".")}}function oe(se,de){return se===de}function Ne(se){var de=se===void 0?{}:se,ve=de.connectHOC,Oe=ve===void 0?Ve:ve,ft=de.mapStateToPropsFactories,pt=ft===void 0?Zt:ft,St=de.mapDispatchToPropsFactories,Lt=St===void 0?Tt:St,un=de.mergePropsFactories,Nn=un===void 0?dn:un,Dn=de.selectorFactory,zt=Dn===void 0?ue:Dn;return function(Jn,Tr,ra,fa){fa===void 0&&(fa={});var ha=fa,za=ha.pure,uo=za===void 0?!0:za,Eo=ha.areStatesEqual,tl=Eo===void 0?oe:Eo,Uo=ha.areOwnPropsEqual,Zo=Uo===void 0?nt:Uo,fs=ha.areStatePropsEqual,Sl=fs===void 0?nt:fs,ql=ha.areMergedPropsEqual,es=ql===void 0?nt:ql,uu=(0,lt.Z)(ha,he),Ou=me(Jn,pt,"mapStateToProps"),Su=me(Tr,Lt,"mapDispatchToProps"),Lu=me(ra,Nn,"mergeProps");return Oe(zt,(0,Ee.Z)({methodName:"connect",getDisplayName:function(Ks){return"Connect("+Ks+")"},shouldHandleStateChanges:!!Jn,initMapStateToProps:Ou,initMapDispatchToProps:Su,initMergeProps:Lu,pure:uo,areStatesEqual:tl,areOwnPropsEqual:Zo,areStatePropsEqual:Sl,areMergedPropsEqual:es},uu))}}var At=Ne();function Ge(){var se=useContext(ReactReduxContext);return se}function je(se){se===void 0&&(se=ReactReduxContext);var de=se===ReactReduxContext?useDefaultReduxContext:function(){return useContext(se)};return function(){var Oe=de(),ft=Oe.store;return ft}}var Pt=null;function Et(se){se===void 0&&(se=ReactReduxContext);var de=se===ReactReduxContext?useDefaultStore:createStoreHook(se);return function(){var Oe=de();return Oe.dispatch}}var ht=null,Kt=function(de,ve){return de===ve};function vn(se,de,ve,Oe){var ft=useReducer(function(Tr){return Tr+1},0),pt=ft[1],St=useMemo(function(){return createSubscription(ve,Oe)},[ve,Oe]),Lt=useRef(),un=useRef(),Nn=useRef(),Dn=useRef(),zt=ve.getState(),fn;try{if(se!==un.current||zt!==Nn.current||Lt.current){var Jn=se(zt);Dn.current===void 0||!de(Jn,Dn.current)?fn=Jn:fn=Dn.current}else fn=Dn.current}catch(Tr){throw Lt.current&&(Tr.message+=`
|
|
|
The error may be correlated with this previous error:
|
|
|
`+Lt.current.stack+`
|
|
|
|
|
|
`),Tr}return useIsomorphicLayoutEffect(function(){un.current=se,Nn.current=zt,Dn.current=fn,Lt.current=void 0}),useIsomorphicLayoutEffect(function(){function Tr(){try{var ra=ve.getState();if(ra===Nn.current)return;var fa=un.current(ra);if(de(fa,Dn.current))return;Dn.current=fa,Nn.current=ra}catch(ha){Lt.current=ha}pt()}return St.onStateChange=Tr,St.trySubscribe(),Tr(),function(){return St.tryUnsubscribe()}},[ve,St]),fn}function kt(se){se===void 0&&(se=ReactReduxContext);var de=se===ReactReduxContext?useDefaultReduxContext:function(){return useContext(se)};return function(Oe,ft){ft===void 0&&(ft=Kt);var pt=de(),St=pt.store,Lt=pt.subscription,un=vn(Oe,ft,St,Lt);return useDebugValue(un),un}}var Ut=null,yn=ne(4676);De(yn.unstable_batchedUpdates);function Bt(se,de){if(se.length!==de.length)return!1;for(var ve=0;ve<se.length;ve++)if(se[ve]!==de[ve])return!1;return!0}function Ke(se,de){var ve=(0,E.useState)(function(){return{inputs:de,result:se()}})[0],Oe=(0,E.useRef)(!0),ft=(0,E.useRef)(ve),pt=Oe.current||!!(de&&ft.current.inputs&&Bt(de,ft.current.inputs)),St=pt?ft.current:{inputs:de,result:se()};return(0,E.useEffect)(function(){Oe.current=!1,ft.current=St},[St]),St.result}function gt(se,de){return Ke(function(){return se},de)}var Vt=Ke,Nt=gt,Xt=!0,Mn="Invariant failed";function Tn(se,de){if(!se){if(Xt)throw new Error(Mn);var ve=typeof de=="function"?de():de,Oe=ve?"".concat(Mn,": ").concat(ve):Mn;throw new Error(Oe)}}var Rn=function(de){var ve=de.top,Oe=de.right,ft=de.bottom,pt=de.left,St=Oe-pt,Lt=ft-ve,un={top:ve,right:Oe,bottom:ft,left:pt,width:St,height:Lt,x:pt,y:ve,center:{x:(Oe+pt)/2,y:(ft+ve)/2}};return un},ur=function(de,ve){return{top:de.top-ve.top,left:de.left-ve.left,bottom:de.bottom+ve.bottom,right:de.right+ve.right}},vr=function(de,ve){return{top:de.top+ve.top,left:de.left+ve.left,bottom:de.bottom-ve.bottom,right:de.right-ve.right}},dr=function(de,ve){return{top:de.top+ve.y,left:de.left+ve.x,bottom:de.bottom+ve.y,right:de.right+ve.x}},mn={top:0,right:0,bottom:0,left:0},zn=function(de){var ve=de.borderBox,Oe=de.margin,ft=Oe===void 0?mn:Oe,pt=de.border,St=pt===void 0?mn:pt,Lt=de.padding,un=Lt===void 0?mn:Lt,Nn=Rn(ur(ve,ft)),Dn=Rn(vr(ve,St)),zt=Rn(vr(Dn,un));return{marginBox:Nn,borderBox:Rn(ve),paddingBox:Dn,contentBox:zt,margin:ft,border:St,padding:un}},jn=function(de){var ve=de.slice(0,-2),Oe=de.slice(-2);if(Oe!=="px")return 0;var ft=Number(ve);return isNaN(ft)&&Tn(!1),ft},Xn=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Sr=function(de,ve){var Oe=de.borderBox,ft=de.border,pt=de.margin,St=de.padding,Lt=dr(Oe,ve);return zn({borderBox:Lt,border:ft,margin:pt,padding:St})},Kr=function(de,ve){return ve===void 0&&(ve=Xn()),Sr(de,ve)},ar=function(de,ve){var Oe={top:jn(ve.marginTop),right:jn(ve.marginRight),bottom:jn(ve.marginBottom),left:jn(ve.marginLeft)},ft={top:jn(ve.paddingTop),right:jn(ve.paddingRight),bottom:jn(ve.paddingBottom),left:jn(ve.paddingLeft)},pt={top:jn(ve.borderTopWidth),right:jn(ve.borderRightWidth),bottom:jn(ve.borderBottomWidth),left:jn(ve.borderLeftWidth)};return zn({borderBox:de,margin:Oe,padding:ft,border:pt})},Zn=function(de){var ve=de.getBoundingClientRect(),Oe=window.getComputedStyle(de);return ar(ve,Oe)},Wr=Number.isNaN||function(de){return typeof de=="number"&&de!==de};function Gt(se,de){return!!(se===de||Wr(se)&&Wr(de))}function or(se,de){if(se.length!==de.length)return!1;for(var ve=0;ve<se.length;ve++)if(!Gt(se[ve],de[ve]))return!1;return!0}function er(se,de){de===void 0&&(de=or);var ve,Oe=[],ft,pt=!1;function St(){for(var Lt=[],un=0;un<arguments.length;un++)Lt[un]=arguments[un];return pt&&ve===this&&de(Lt,Oe)||(ft=se.apply(this,Lt),pt=!0,ve=this,Oe=Lt),ft}return St}var Kn=er,En=function(de){var ve=[],Oe=null,ft=function(){for(var St=arguments.length,Lt=new Array(St),un=0;un<St;un++)Lt[un]=arguments[un];ve=Lt,!Oe&&(Oe=requestAnimationFrame(function(){Oe=null,de.apply(void 0,ve)}))};return ft.cancel=function(){Oe&&(cancelAnimationFrame(Oe),Oe=null)},ft},nr=En,lr=!0,xr=/[ \t]{2,}/g,jt=/^[ \t]*/gm,Ue=function(de){return de.replace(xr," ").replace(jt,"").trim()},yt=function(de){return Ue(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+Ue(de)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},ut=function(de){return[yt(de),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},rt="__react-beautiful-dnd-disable-dev-warnings";function _t(se,de){var ve;lr||typeof window!="undefined"&&window[rt]||(ve=console)[se].apply(ve,ut(de))}var Qt=_t.bind(null,"warn"),pn=_t.bind(null,"error");function sn(){}function Bn(se,de){return(0,Ee.Z)({},se,{},de)}function Yn(se,de,ve){var Oe=de.map(function(ft){var pt=Bn(ve,ft.options);return se.addEventListener(ft.eventName,ft.fn,pt),function(){se.removeEventListener(ft.eventName,ft.fn,pt)}});return function(){Oe.forEach(function(pt){pt()})}}var cr=!0,$n="Invariant failed";function en(se){this.message=se}en.prototype.toString=function(){return this.message};function rn(se,de){if(!se)throw cr?new en($n):new en($n+": "+(de||""))}var Or=function(se){(0,ye.Z)(de,se);function de(){for(var Oe,ft=arguments.length,pt=new Array(ft),St=0;St<ft;St++)pt[St]=arguments[St];return Oe=se.call.apply(se,[this].concat(pt))||this,Oe.callbacks=null,Oe.unbind=sn,Oe.onWindowError=function(Lt){var un=Oe.getCallbacks();un.isDragging()&&un.tryAbort();var Nn=Lt.error;Nn instanceof en&&Lt.preventDefault()},Oe.getCallbacks=function(){if(!Oe.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return Oe.callbacks},Oe.setCallbacks=function(Lt){Oe.callbacks=Lt},Oe}var ve=de.prototype;return ve.componentDidMount=function(){this.unbind=Yn(window,[{eventName:"error",fn:this.onWindowError}])},ve.componentWillUnmount=function(){this.unbind()},ve.componentDidCatch=function(ft){if(ft instanceof en){this.setState({});return}throw ft},ve.render=function(){return this.props.children(this.setCallbacks)},de}(E.Component),kr=`
|
|
|
Press space bar to start a drag.
|
|
|
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
|
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
|
`,Cr=function(de){return de+1},Dr=function(de){return`
|
|
|
You have lifted an item in position `+Cr(de.source.index)+`
|
|
|
`},qr=function(de,ve){var Oe=de.droppableId===ve.droppableId,ft=Cr(de.index),pt=Cr(ve.index);return Oe?`
|
|
|
You have moved the item from position `+ft+`
|
|
|
to position `+pt+`
|
|
|
`:`
|
|
|
You have moved the item from position `+ft+`
|
|
|
in list `+de.droppableId+`
|
|
|
to list `+ve.droppableId+`
|
|
|
in position `+pt+`
|
|
|
`},br=function(de,ve,Oe){var ft=ve.droppableId===Oe.droppableId;return ft?`
|
|
|
The item `+de+`
|
|
|
has been combined with `+Oe.draggableId:`
|
|
|
The item `+de+`
|
|
|
in list `+ve.droppableId+`
|
|
|
has been combined with `+Oe.draggableId+`
|
|
|
in list `+Oe.droppableId+`
|
|
|
`},fi=function(de){var ve=de.destination;if(ve)return qr(de.source,ve);var Oe=de.combine;return Oe?br(de.draggableId,de.source,Oe):"You are over an area that cannot be dropped on"},Jt=function(de){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+Cr(de.index)+`
|
|
|
`},On=function(de){if(de.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+Jt(de.source)+`
|
|
|
`;var ve=de.destination,Oe=de.combine;return ve?`
|
|
|
You have dropped the item.
|
|
|
`+qr(de.source,ve)+`
|
|
|
`:Oe?`
|
|
|
You have dropped the item.
|
|
|
`+br(de.draggableId,de.source,Oe)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+Jt(de.source)+`
|
|
|
`},Hn={dragHandleUsageInstructions:kr,onDragStart:Dr,onDragUpdate:fi,onDragEnd:On},qn={x:0,y:0},kn=function(de,ve){return{x:de.x+ve.x,y:de.y+ve.y}},Vn=function(de,ve){return{x:de.x-ve.x,y:de.y-ve.y}},Pn=function(de,ve){return de.x===ve.x&&de.y===ve.y},fr=function(de){return{x:de.x!==0?-de.x:0,y:de.y!==0?-de.y:0}},Pr=function(de,ve,Oe){var ft;return Oe===void 0&&(Oe=0),ft={},ft[de]=ve,ft[de==="x"?"y":"x"]=Oe,ft},Gr=function(de,ve){return Math.sqrt(Math.pow(ve.x-de.x,2)+Math.pow(ve.y-de.y,2))},pi=function(de,ve){return Math.min.apply(Math,ve.map(function(Oe){return Gr(de,Oe)}))},gi=function(de){return function(ve){return{x:de(ve.x),y:de(ve.y)}}},Ri=function(se,de){var ve=Rn({top:Math.max(de.top,se.top),right:Math.min(de.right,se.right),bottom:Math.min(de.bottom,se.bottom),left:Math.max(de.left,se.left)});return ve.width<=0||ve.height<=0?null:ve},Si=function(de,ve){return{top:de.top+ve.y,left:de.left+ve.x,bottom:de.bottom+ve.y,right:de.right+ve.x}},wi=function(de){return[{x:de.left,y:de.top},{x:de.right,y:de.top},{x:de.left,y:de.bottom},{x:de.right,y:de.bottom}]},Zi={top:0,right:0,bottom:0,left:0},ji=function(de,ve){return ve?Si(de,ve.scroll.diff.displacement):de},Gi=function(de,ve,Oe){if(Oe&&Oe.increasedBy){var ft;return(0,Ee.Z)({},de,(ft={},ft[ve.end]=de[ve.end]+Oe.increasedBy[ve.line],ft))}return de},Bi=function(de,ve){return ve&&ve.shouldClipSubject?Ri(ve.pageMarginBox,de):Rn(de)},Di=function(se){var de=se.page,ve=se.withPlaceholder,Oe=se.axis,ft=se.frame,pt=ji(de.marginBox,ft),St=Gi(pt,Oe,ve),Lt=Bi(St,ft);return{page:de,withPlaceholder:ve,active:Lt}},zr=function(se,de){se.frame||rn(!1);var ve=se.frame,Oe=Vn(de,ve.scroll.initial),ft=fr(Oe),pt=(0,Ee.Z)({},ve,{scroll:{initial:ve.scroll.initial,current:de,diff:{value:Oe,displacement:ft},max:ve.scroll.max}}),St=Di({page:se.subject.page,withPlaceholder:se.subject.withPlaceholder,axis:se.axis,frame:pt}),Lt=(0,Ee.Z)({},se,{frame:pt,subject:St});return Lt};function li(se){return Number.isInteger?Number.isInteger(se):typeof se=="number"&&isFinite(se)&&Math.floor(se)===se}function Ii(se){return Object.values?Object.values(se):Object.keys(se).map(function(de){return se[de]})}function ya(se,de){if(se.findIndex)return se.findIndex(de);for(var ve=0;ve<se.length;ve++)if(de(se[ve]))return ve;return-1}function vi(se,de){if(se.find)return se.find(de);var ve=ya(se,de);if(ve!==-1)return se[ve]}function jr(se){return Array.prototype.slice.call(se)}var Ir=Kn(function(se){return se.reduce(function(de,ve){return de[ve.descriptor.id]=ve,de},{})}),Vi=Kn(function(se){return se.reduce(function(de,ve){return de[ve.descriptor.id]=ve,de},{})}),xi=Kn(function(se){return Ii(se)}),na=Kn(function(se){return Ii(se)}),ba=Kn(function(se,de){var ve=na(de).filter(function(Oe){return se===Oe.descriptor.droppableId}).sort(function(Oe,ft){return Oe.descriptor.index-ft.descriptor.index});return ve});function oa(se){return se.at&&se.at.type==="REORDER"?se.at.destination:null}function xa(se){return se.at&&se.at.type==="COMBINE"?se.at.combine:null}var Na=Kn(function(se,de){return de.filter(function(ve){return ve.descriptor.id!==se.descriptor.id})}),Po=function(se){var de=se.isMovingForward,ve=se.draggable,Oe=se.destination,ft=se.insideDestination,pt=se.previousImpact;if(!Oe.isCombineEnabled)return null;var St=oa(pt);if(!St)return null;function Lt(ra){var fa={type:"COMBINE",combine:{draggableId:ra,droppableId:Oe.descriptor.id}};return(0,Ee.Z)({},pt,{at:fa})}var un=pt.displaced.all,Nn=un.length?un[0]:null;if(de)return Nn?Lt(Nn):null;var Dn=Na(ve,ft);if(!Nn){if(!Dn.length)return null;var zt=Dn[Dn.length-1];return Lt(zt.descriptor.id)}var fn=ya(Dn,function(ra){return ra.descriptor.id===Nn});fn===-1&&rn(!1);var Jn=fn-1;if(Jn<0)return null;var Tr=Dn[Jn];return Lt(Tr.descriptor.id)},ki=function(se,de){return se.descriptor.droppableId===de.descriptor.id},Hi={point:qn,value:0},Aa={invisible:{},visible:{},all:[]},Ma={displaced:Aa,displacedBy:Hi,at:null},lo=function(se,de){return function(ve){return se<=ve&&ve<=de}},hl=function(se){var de=lo(se.top,se.bottom),ve=lo(se.left,se.right);return function(Oe){var ft=de(Oe.top)&&de(Oe.bottom)&&ve(Oe.left)&&ve(Oe.right);if(ft)return!0;var pt=de(Oe.top)||de(Oe.bottom),St=ve(Oe.left)||ve(Oe.right),Lt=pt&&St;if(Lt)return!0;var un=Oe.top<se.top&&Oe.bottom>se.bottom,Nn=Oe.left<se.left&&Oe.right>se.right,Dn=un&&Nn;if(Dn)return!0;var zt=un&&St||Nn&&pt;return zt}},qo=function(se){var de=lo(se.top,se.bottom),ve=lo(se.left,se.right);return function(Oe){var ft=de(Oe.top)&&de(Oe.bottom)&&ve(Oe.left)&&ve(Oe.right);return ft}},co={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Ho={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Vo=function(se){return function(de){var ve=lo(de.top,de.bottom),Oe=lo(de.left,de.right);return function(ft){return se===co?ve(ft.top)&&ve(ft.bottom):Oe(ft.left)&&Oe(ft.right)}}},Qr=function(de,ve){var Oe=ve.frame?ve.frame.scroll.diff.displacement:qn;return Si(de,Oe)},Ei=function(de,ve,Oe){return ve.subject.active?Oe(ve.subject.active)(de):!1},ri=function(de,ve,Oe){return Oe(ve)(de)},hi=function(de){var ve=de.target,Oe=de.destination,ft=de.viewport,pt=de.withDroppableDisplacement,St=de.isVisibleThroughFrameFn,Lt=pt?Qr(ve,Oe):ve;return Ei(Lt,Oe,St)&&ri(Lt,ft,St)},Ta=function(de){return hi((0,Ee.Z)({},de,{isVisibleThroughFrameFn:hl}))},vo=function(de){return hi((0,Ee.Z)({},de,{isVisibleThroughFrameFn:qo}))},go=function(de){return hi((0,Ee.Z)({},de,{isVisibleThroughFrameFn:Vo(de.destination.axis)}))},So=function(de,ve,Oe){if(typeof Oe=="boolean")return Oe;if(!ve)return!0;var ft=ve.invisible,pt=ve.visible;if(ft[de])return!1;var St=pt[de];return St?St.shouldAnimate:!0};function yo(se,de){var ve=se.page.marginBox,Oe={top:de.point.y,right:0,bottom:0,left:de.point.x};return Rn(ur(ve,Oe))}function Lo(se){var de=se.afterDragging,ve=se.destination,Oe=se.displacedBy,ft=se.viewport,pt=se.forceShouldAnimate,St=se.last;return de.reduce(function(un,Nn){var Dn=yo(Nn,Oe),zt=Nn.descriptor.id;un.all.push(zt);var fn=Ta({target:Dn,destination:ve,viewport:ft,withDroppableDisplacement:!0});if(!fn)return un.invisible[Nn.descriptor.id]=!0,un;var Jn=So(zt,St,pt),Tr={draggableId:zt,shouldAnimate:Jn};return un.visible[zt]=Tr,un},{all:[],visible:{},invisible:{}})}function nl(se,de){if(!se.length)return 0;var ve=se[se.length-1].descriptor.index;return de.inHomeList?ve:ve+1}function ea(se){var de=se.insideDestination,ve=se.inHomeList,Oe=se.displacedBy,ft=se.destination,pt=nl(de,{inHomeList:ve});return{displaced:Aa,displacedBy:Oe,at:{type:"REORDER",destination:{droppableId:ft.descriptor.id,index:pt}}}}function gl(se){var de=se.draggable,ve=se.insideDestination,Oe=se.destination,ft=se.viewport,pt=se.displacedBy,St=se.last,Lt=se.index,un=se.forceShouldAnimate,Nn=ki(de,Oe);if(Lt==null)return ea({insideDestination:ve,inHomeList:Nn,displacedBy:pt,destination:Oe});var Dn=vi(ve,function(ra){return ra.descriptor.index===Lt});if(!Dn)return ea({insideDestination:ve,inHomeList:Nn,displacedBy:pt,destination:Oe});var zt=Na(de,ve),fn=ve.indexOf(Dn),Jn=zt.slice(fn),Tr=Lo({afterDragging:Jn,destination:Oe,displacedBy:pt,last:St,viewport:ft.frame,forceShouldAnimate:un});return{displaced:Tr,displacedBy:pt,at:{type:"REORDER",destination:{droppableId:Oe.descriptor.id,index:Lt}}}}function ol(se,de){return!!de.effected[se]}var pl=function(se){var de=se.isMovingForward,ve=se.destination,Oe=se.draggables,ft=se.combine,pt=se.afterCritical;if(!ve.isCombineEnabled)return null;var St=ft.draggableId,Lt=Oe[St],un=Lt.descriptor.index,Nn=ol(St,pt);return Nn?de?un:un-1:de?un+1:un},Xl=function(se){var de=se.isMovingForward,ve=se.isInHomeList,Oe=se.insideDestination,ft=se.location;if(!Oe.length)return null;var pt=ft.index,St=de?pt+1:pt-1,Lt=Oe[0].descriptor.index,un=Oe[Oe.length-1].descriptor.index,Nn=ve?un:un+1;return St<Lt||St>Nn?null:St},hr=function(se){var de=se.isMovingForward,ve=se.isInHomeList,Oe=se.draggable,ft=se.draggables,pt=se.destination,St=se.insideDestination,Lt=se.previousImpact,un=se.viewport,Nn=se.afterCritical,Dn=Lt.at;if(Dn||rn(!1),Dn.type==="REORDER"){var zt=Xl({isMovingForward:de,isInHomeList:ve,location:Dn.destination,insideDestination:St});return zt==null?null:gl({draggable:Oe,insideDestination:St,destination:pt,viewport:un,last:Lt.displaced,displacedBy:Lt.displacedBy,index:zt})}var fn=pl({isMovingForward:de,destination:pt,displaced:Lt.displaced,draggables:ft,combine:Dn.combine,afterCritical:Nn});return fn==null?null:gl({draggable:Oe,insideDestination:St,destination:pt,viewport:un,last:Lt.displaced,displacedBy:Lt.displacedBy,index:fn})},Gn=function(se){var de=se.displaced,ve=se.afterCritical,Oe=se.combineWith,ft=se.displacedBy,pt=!!(de.visible[Oe]||de.invisible[Oe]);return ol(Oe,ve)?pt?qn:fr(ft.point):pt?ft.point:qn},gr=function(se){var de=se.afterCritical,ve=se.impact,Oe=se.draggables,ft=xa(ve);ft||rn(!1);var pt=ft.draggableId,St=Oe[pt].page.borderBox.center,Lt=Gn({displaced:ve.displaced,afterCritical:de,combineWith:pt,displacedBy:ve.displacedBy});return kn(St,Lt)},Vr=function(de,ve){return ve.margin[de.start]+ve.borderBox[de.size]/2},Xr=function(de,ve){return ve.margin[de.end]+ve.borderBox[de.size]/2},si=function(de,ve,Oe){return ve[de.crossAxisStart]+Oe.margin[de.crossAxisStart]+Oe.borderBox[de.crossAxisSize]/2},pr=function(de){var ve=de.axis,Oe=de.moveRelativeTo,ft=de.isMoving;return Pr(ve.line,Oe.marginBox[ve.end]+Vr(ve,ft),si(ve,Oe.marginBox,ft))},Jr=function(de){var ve=de.axis,Oe=de.moveRelativeTo,ft=de.isMoving;return Pr(ve.line,Oe.marginBox[ve.start]-Xr(ve,ft),si(ve,Oe.marginBox,ft))},Li=function(de){var ve=de.axis,Oe=de.moveInto,ft=de.isMoving;return Pr(ve.line,Oe.contentBox[ve.start]+Vr(ve,ft),si(ve,Oe.contentBox,ft))},Oi=function(se){var de=se.impact,ve=se.draggable,Oe=se.draggables,ft=se.droppable,pt=se.afterCritical,St=ba(ft.descriptor.id,Oe),Lt=ve.page,un=ft.axis;if(!St.length)return Li({axis:un,moveInto:ft.page,isMoving:Lt});var Nn=de.displaced,Dn=de.displacedBy,zt=Nn.all[0];if(zt){var fn=Oe[zt];if(ol(zt,pt))return Jr({axis:un,moveRelativeTo:fn.page,isMoving:Lt});var Jn=Sr(fn.page,Dn.point);return Jr({axis:un,moveRelativeTo:Jn,isMoving:Lt})}var Tr=St[St.length-1];if(Tr.descriptor.id===ve.descriptor.id)return Lt.borderBox.center;if(ol(Tr.descriptor.id,pt)){var ra=Sr(Tr.page,fr(pt.displacedBy.point));return pr({axis:un,moveRelativeTo:ra,isMoving:Lt})}return pr({axis:un,moveRelativeTo:Tr.page,isMoving:Lt})},la=function(se,de){var ve=se.frame;return ve?kn(de,ve.scroll.diff.displacement):de},mi=function(de){var ve=de.impact,Oe=de.draggable,ft=de.droppable,pt=de.draggables,St=de.afterCritical,Lt=Oe.page.borderBox.center,un=ve.at;return!ft||!un?Lt:un.type==="REORDER"?Oi({impact:ve,draggable:Oe,draggables:pt,droppable:ft,afterCritical:St}):gr({impact:ve,draggables:pt,afterCritical:St})},Pa=function(se){var de=mi(se),ve=se.droppable,Oe=ve?la(ve,de):de;return Oe},qa=function(se,de){var ve=Vn(de,se.scroll.initial),Oe=fr(ve),ft=Rn({top:de.y,bottom:de.y+se.frame.height,left:de.x,right:de.x+se.frame.width}),pt={frame:ft,scroll:{initial:se.scroll.initial,max:se.scroll.max,current:de,diff:{value:ve,displacement:Oe}}};return pt};function Ka(se,de){return se.map(function(ve){return de[ve]})}function Yi(se,de){for(var ve=0;ve<de.length;ve++){var Oe=de[ve].visible[se];if(Oe)return Oe}return null}var pa=function(se){var de=se.impact,ve=se.viewport,Oe=se.destination,ft=se.draggables,pt=se.maxScrollChange,St=qa(ve,kn(ve.scroll.current,pt)),Lt=Oe.frame?zr(Oe,kn(Oe.frame.scroll.current,pt)):Oe,un=de.displaced,Nn=Lo({afterDragging:Ka(un.all,ft),destination:Oe,displacedBy:de.displacedBy,viewport:St.frame,last:un,forceShouldAnimate:!1}),Dn=Lo({afterDragging:Ka(un.all,ft),destination:Lt,displacedBy:de.displacedBy,viewport:ve.frame,last:un,forceShouldAnimate:!1}),zt={},fn={},Jn=[un,Nn,Dn];un.all.forEach(function(ra){var fa=Yi(ra,Jn);if(fa){fn[ra]=fa;return}zt[ra]=!0});var Tr=(0,Ee.Z)({},de,{displaced:{all:un.all,invisible:zt,visible:fn}});return Tr},eo=function(se,de){return kn(se.scroll.diff.displacement,de)},ro=function(se){var de=se.pageBorderBoxCenter,ve=se.draggable,Oe=se.viewport,ft=eo(Oe,de),pt=Vn(ft,ve.page.borderBox.center);return kn(ve.client.borderBox.center,pt)},xo=function(se){var de=se.draggable,ve=se.destination,Oe=se.newPageBorderBoxCenter,ft=se.viewport,pt=se.withDroppableDisplacement,St=se.onlyOnMainAxis,Lt=St===void 0?!1:St,un=Vn(Oe,de.page.borderBox.center),Nn=Si(de.page.borderBox,un),Dn={target:Nn,destination:ve,withDroppableDisplacement:pt,viewport:ft};return Lt?go(Dn):vo(Dn)},Wl=function(se){var de=se.isMovingForward,ve=se.draggable,Oe=se.destination,ft=se.draggables,pt=se.previousImpact,St=se.viewport,Lt=se.previousPageBorderBoxCenter,un=se.previousClientSelection,Nn=se.afterCritical;if(!Oe.isEnabled)return null;var Dn=ba(Oe.descriptor.id,ft),zt=ki(ve,Oe),fn=Po({isMovingForward:de,draggable:ve,destination:Oe,insideDestination:Dn,previousImpact:pt})||hr({isMovingForward:de,isInHomeList:zt,draggable:ve,draggables:ft,destination:Oe,insideDestination:Dn,previousImpact:pt,viewport:St,afterCritical:Nn});if(!fn)return null;var Jn=Pa({impact:fn,draggable:ve,droppable:Oe,draggables:ft,afterCritical:Nn}),Tr=xo({draggable:ve,destination:Oe,newPageBorderBoxCenter:Jn,viewport:St.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(Tr){var ra=ro({pageBorderBoxCenter:Jn,draggable:ve,viewport:St});return{clientSelection:ra,impact:fn,scrollJumpRequest:null}}var fa=Vn(Jn,Lt),ha=pa({impact:fn,viewport:St,destination:Oe,draggables:ft,maxScrollChange:fa});return{clientSelection:un,impact:ha,scrollJumpRequest:fa}},Qo=function(de){var ve=de.subject.active;return ve||rn(!1),ve},Cn=function(se){var de=se.isMovingForward,ve=se.pageBorderBoxCenter,Oe=se.source,ft=se.droppables,pt=se.viewport,St=Oe.subject.active;if(!St)return null;var Lt=Oe.axis,un=lo(St[Lt.start],St[Lt.end]),Nn=xi(ft).filter(function(zt){return zt!==Oe}).filter(function(zt){return zt.isEnabled}).filter(function(zt){return!!zt.subject.active}).filter(function(zt){return hl(pt.frame)(Qo(zt))}).filter(function(zt){var fn=Qo(zt);return de?St[Lt.crossAxisEnd]<fn[Lt.crossAxisEnd]:fn[Lt.crossAxisStart]<St[Lt.crossAxisStart]}).filter(function(zt){var fn=Qo(zt),Jn=lo(fn[Lt.start],fn[Lt.end]);return un(fn[Lt.start])||un(fn[Lt.end])||Jn(St[Lt.start])||Jn(St[Lt.end])}).sort(function(zt,fn){var Jn=Qo(zt)[Lt.crossAxisStart],Tr=Qo(fn)[Lt.crossAxisStart];return de?Jn-Tr:Tr-Jn}).filter(function(zt,fn,Jn){return Qo(zt)[Lt.crossAxisStart]===Qo(Jn[0])[Lt.crossAxisStart]});if(!Nn.length)return null;if(Nn.length===1)return Nn[0];var Dn=Nn.filter(function(zt){var fn=lo(Qo(zt)[Lt.start],Qo(zt)[Lt.end]);return fn(ve[Lt.line])});return Dn.length===1?Dn[0]:Dn.length>1?Dn.sort(function(zt,fn){return Qo(zt)[Lt.start]-Qo(fn)[Lt.start]})[0]:Nn.sort(function(zt,fn){var Jn=pi(ve,wi(Qo(zt))),Tr=pi(ve,wi(Qo(fn)));return Jn!==Tr?Jn-Tr:Qo(zt)[Lt.start]-Qo(fn)[Lt.start]})[0]},wn=function(de,ve){var Oe=de.page.borderBox.center;return ol(de.descriptor.id,ve)?Vn(Oe,ve.displacedBy.point):Oe},tr=function(de,ve){var Oe=de.page.borderBox;return ol(de.descriptor.id,ve)?Si(Oe,fr(ve.displacedBy.point)):Oe},Zr=function(se){var de=se.pageBorderBoxCenter,ve=se.viewport,Oe=se.destination,ft=se.insideDestination,pt=se.afterCritical,St=ft.filter(function(Lt){return vo({target:tr(Lt,pt),destination:Oe,viewport:ve.frame,withDroppableDisplacement:!0})}).sort(function(Lt,un){var Nn=Gr(de,la(Oe,wn(Lt,pt))),Dn=Gr(de,la(Oe,wn(un,pt)));return Nn<Dn?-1:Dn<Nn?1:Lt.descriptor.index-un.descriptor.index});return St[0]||null},_r=Kn(function(de,ve){var Oe=ve[de.line];return{value:Oe,point:Pr(de.line,Oe)}}),Ar=function(de,ve,Oe){var ft=de.axis;if(de.descriptor.mode==="virtual")return Pr(ft.line,ve[ft.line]);var pt=de.subject.page.contentBox[ft.size],St=ba(de.descriptor.id,Oe),Lt=St.reduce(function(Dn,zt){return Dn+zt.client.marginBox[ft.size]},0),un=Lt+ve[ft.line],Nn=un-pt;return Nn<=0?null:Pr(ft.line,Nn)},Mr=function(de,ve){return(0,Ee.Z)({},de,{scroll:(0,Ee.Z)({},de.scroll,{max:ve})})},Qn=function(de,ve,Oe){var ft=de.frame;ki(ve,de)&&rn(!1),de.subject.withPlaceholder&&rn(!1);var pt=_r(de.axis,ve.displaceBy).point,St=Ar(de,pt,Oe),Lt={placeholderSize:pt,increasedBy:St,oldFrameMaxScroll:de.frame?de.frame.scroll.max:null};if(!ft){var un=Di({page:de.subject.page,withPlaceholder:Lt,axis:de.axis,frame:de.frame});return(0,Ee.Z)({},de,{subject:un})}var Nn=St?kn(ft.scroll.max,St):ft.scroll.max,Dn=Mr(ft,Nn),zt=Di({page:de.subject.page,withPlaceholder:Lt,axis:de.axis,frame:Dn});return(0,Ee.Z)({},de,{subject:zt,frame:Dn})},Er=function(de){var ve=de.subject.withPlaceholder;ve||rn(!1);var Oe=de.frame;if(!Oe){var ft=Di({page:de.subject.page,axis:de.axis,frame:null,withPlaceholder:null});return(0,Ee.Z)({},de,{subject:ft})}var pt=ve.oldFrameMaxScroll;pt||rn(!1);var St=Mr(Oe,pt),Lt=Di({page:de.subject.page,axis:de.axis,frame:St,withPlaceholder:null});return(0,Ee.Z)({},de,{subject:Lt,frame:St})},Yr=function(se){var de=se.previousPageBorderBoxCenter,ve=se.moveRelativeTo,Oe=se.insideDestination,ft=se.draggable,pt=se.draggables,St=se.destination,Lt=se.viewport,un=se.afterCritical;if(!ve){if(Oe.length)return null;var Nn={displaced:Aa,displacedBy:Hi,at:{type:"REORDER",destination:{droppableId:St.descriptor.id,index:0}}},Dn=Pa({impact:Nn,draggable:ft,droppable:St,draggables:pt,afterCritical:un}),zt=ki(ft,St)?St:Qn(St,ft,pt),fn=xo({draggable:ft,destination:zt,newPageBorderBoxCenter:Dn,viewport:Lt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return fn?Nn:null}var Jn=de[St.axis.line]<=ve.page.borderBox.center[St.axis.line],Tr=function(){var fa=ve.descriptor.index;return ve.descriptor.id===ft.descriptor.id||Jn?fa:fa+1}(),ra=_r(St.axis,ft.displaceBy);return gl({draggable:ft,insideDestination:Oe,destination:St,viewport:Lt,displacedBy:ra,last:Aa,index:Tr})},yi=function(se){var de=se.isMovingForward,ve=se.previousPageBorderBoxCenter,Oe=se.draggable,ft=se.isOver,pt=se.draggables,St=se.droppables,Lt=se.viewport,un=se.afterCritical,Nn=Cn({isMovingForward:de,pageBorderBoxCenter:ve,source:ft,droppables:St,viewport:Lt});if(!Nn)return null;var Dn=ba(Nn.descriptor.id,pt),zt=Zr({pageBorderBoxCenter:ve,viewport:Lt,destination:Nn,insideDestination:Dn,afterCritical:un}),fn=Yr({previousPageBorderBoxCenter:ve,destination:Nn,draggable:Oe,draggables:pt,moveRelativeTo:zt,insideDestination:Dn,viewport:Lt,afterCritical:un});if(!fn)return null;var Jn=Pa({impact:fn,draggable:Oe,droppable:Nn,draggables:pt,afterCritical:un}),Tr=ro({pageBorderBoxCenter:Jn,draggable:Oe,viewport:Lt});return{clientSelection:Tr,impact:fn,scrollJumpRequest:null}},ma=function(se){var de=se.at;return de?de.type==="REORDER"?de.destination.droppableId:de.combine.droppableId:null},Za=function(de,ve){var Oe=ma(de);return Oe?ve[Oe]:null},Ya=function(se){var de=se.state,ve=se.type,Oe=Za(de.impact,de.dimensions.droppables),ft=!!Oe,pt=de.dimensions.droppables[de.critical.droppable.id],St=Oe||pt,Lt=St.axis.direction,un=Lt==="vertical"&&(ve==="MOVE_UP"||ve==="MOVE_DOWN")||Lt==="horizontal"&&(ve==="MOVE_LEFT"||ve==="MOVE_RIGHT");if(un&&!ft)return null;var Nn=ve==="MOVE_DOWN"||ve==="MOVE_RIGHT",Dn=de.dimensions.draggables[de.critical.draggable.id],zt=de.current.page.borderBoxCenter,fn=de.dimensions,Jn=fn.draggables,Tr=fn.droppables;return un?Wl({isMovingForward:Nn,previousPageBorderBoxCenter:zt,draggable:Dn,destination:St,draggables:Jn,viewport:de.viewport,previousClientSelection:de.current.client.selection,previousImpact:de.impact,afterCritical:de.afterCritical}):yi({isMovingForward:Nn,previousPageBorderBoxCenter:zt,draggable:Dn,isOver:St,draggables:Jn,droppables:Tr,viewport:de.viewport,afterCritical:de.afterCritical})};function to(se){return se.phase==="DRAGGING"||se.phase==="COLLECTING"}function Ia(se){var de=lo(se.top,se.bottom),ve=lo(se.left,se.right);return function(ft){return de(ft.y)&&ve(ft.x)}}function Xi(se,de){return se.left<de.right&&se.right>de.left&&se.top<de.bottom&&se.bottom>de.top}function Lr(se){var de=se.pageBorderBox,ve=se.draggable,Oe=se.candidates,ft=ve.page.borderBox.center,pt=Oe.map(function(St){var Lt=St.axis,un=Pr(St.axis.line,de.center[Lt.line],St.page.borderBox.center[Lt.crossAxisLine]);return{id:St.descriptor.id,distance:Gr(ft,un)}}).sort(function(St,Lt){return Lt.distance-St.distance});return pt[0]?pt[0].id:null}function aa(se){var de=se.pageBorderBox,ve=se.draggable,Oe=se.droppables,ft=xi(Oe).filter(function(pt){if(!pt.isEnabled)return!1;var St=pt.subject.active;if(!St||!Xi(de,St))return!1;if(Ia(St)(de.center))return!0;var Lt=pt.axis,un=St.center[Lt.crossAxisLine],Nn=de[Lt.crossAxisStart],Dn=de[Lt.crossAxisEnd],zt=lo(St[Lt.crossAxisStart],St[Lt.crossAxisEnd]),fn=zt(Nn),Jn=zt(Dn);return!fn&&!Jn?!0:fn?Nn<un:Dn>un});return ft.length?ft.length===1?ft[0].descriptor.id:Lr({pageBorderBox:de,draggable:ve,candidates:ft}):null}var Ba=function(de,ve){return Rn(Si(de,ve))},fo=function(se,de){var ve=se.frame;return ve?Ba(de,ve.scroll.diff.value):de};function no(se){var de=se.displaced,ve=se.id;return!!(de.visible[ve]||de.invisible[ve])}function ja(se){var de=se.draggable,ve=se.closest,Oe=se.inHomeList;return ve?Oe&&ve.descriptor.index>de.descriptor.index?ve.descriptor.index-1:ve.descriptor.index:null}var Ao=function(se){var de=se.pageBorderBoxWithDroppableScroll,ve=se.draggable,Oe=se.destination,ft=se.insideDestination,pt=se.last,St=se.viewport,Lt=se.afterCritical,un=Oe.axis,Nn=_r(Oe.axis,ve.displaceBy),Dn=Nn.value,zt=de[un.start],fn=de[un.end],Jn=Na(ve,ft),Tr=vi(Jn,function(fa){var ha=fa.descriptor.id,za=fa.page.borderBox.center[un.line],uo=ol(ha,Lt),Eo=no({displaced:pt,id:ha});return uo?Eo?fn<=za:zt<za-Dn:Eo?fn<=za+Dn:zt<za}),ra=ja({draggable:ve,closest:Tr,inHomeList:ki(ve,Oe)});return gl({draggable:ve,insideDestination:ft,destination:Oe,viewport:St,last:pt,displacedBy:Nn,index:ra})},Ua=4,Ni=function(se){var de=se.draggable,ve=se.pageBorderBoxWithDroppableScroll,Oe=se.previousImpact,ft=se.destination,pt=se.insideDestination,St=se.afterCritical;if(!ft.isCombineEnabled)return null;var Lt=ft.axis,un=_r(ft.axis,de.displaceBy),Nn=un.value,Dn=ve[Lt.start],zt=ve[Lt.end],fn=Na(de,pt),Jn=vi(fn,function(ra){var fa=ra.descriptor.id,ha=ra.page.borderBox,za=ha[Lt.size],uo=za/Ua,Eo=ol(fa,St),tl=no({displaced:Oe.displaced,id:fa});return Eo?tl?zt>ha[Lt.start]+uo&&zt<ha[Lt.end]-uo:Dn>ha[Lt.start]-Nn+uo&&Dn<ha[Lt.end]-Nn-uo:tl?zt>ha[Lt.start]+Nn+uo&&zt<ha[Lt.end]+Nn-uo:Dn>ha[Lt.start]+uo&&Dn<ha[Lt.end]-uo});if(!Jn)return null;var Tr={displacedBy:un,displaced:Oe.displaced,at:{type:"COMBINE",combine:{draggableId:Jn.descriptor.id,droppableId:ft.descriptor.id}}};return Tr},Bo=function(se){var de=se.pageOffset,ve=se.draggable,Oe=se.draggables,ft=se.droppables,pt=se.previousImpact,St=se.viewport,Lt=se.afterCritical,un=Ba(ve.page.borderBox,de),Nn=aa({pageBorderBox:un,draggable:ve,droppables:ft});if(!Nn)return Ma;var Dn=ft[Nn],zt=ba(Dn.descriptor.id,Oe),fn=fo(Dn,un);return Ni({pageBorderBoxWithDroppableScroll:fn,draggable:ve,previousImpact:pt,destination:Dn,insideDestination:zt,afterCritical:Lt})||Ao({pageBorderBoxWithDroppableScroll:fn,draggable:ve,destination:Dn,insideDestination:zt,last:pt.displaced,viewport:St,afterCritical:Lt})},bo=function(se,de){var ve;return(0,Ee.Z)({},se,(ve={},ve[de.descriptor.id]=de,ve))},ll=function(de){var ve=de.previousImpact,Oe=de.impact,ft=de.droppables,pt=ma(ve),St=ma(Oe);if(!pt||pt===St)return ft;var Lt=ft[pt];if(!Lt.subject.withPlaceholder)return ft;var un=Er(Lt);return bo(ft,un)},zl=function(se){var de=se.draggable,ve=se.draggables,Oe=se.droppables,ft=se.previousImpact,pt=se.impact,St=ll({previousImpact:ft,impact:pt,droppables:Oe}),Lt=ma(pt);if(!Lt)return St;var un=Oe[Lt];if(ki(de,un)||un.subject.withPlaceholder)return St;var Nn=Qn(un,de,ve);return bo(St,Nn)},Yt=function(se){var de=se.state,ve=se.clientSelection,Oe=se.dimensions,ft=se.viewport,pt=se.impact,St=se.scrollJumpRequest,Lt=ft||de.viewport,un=Oe||de.dimensions,Nn=ve||de.current.client.selection,Dn=Vn(Nn,de.initial.client.selection),zt={offset:Dn,selection:Nn,borderBoxCenter:kn(de.initial.client.borderBoxCenter,Dn)},fn={selection:kn(zt.selection,Lt.scroll.current),borderBoxCenter:kn(zt.borderBoxCenter,Lt.scroll.current),offset:kn(zt.offset,Lt.scroll.diff.value)},Jn={client:zt,page:fn};if(de.phase==="COLLECTING")return(0,Ee.Z)({phase:"COLLECTING"},de,{dimensions:un,viewport:Lt,current:Jn});var Tr=un.draggables[de.critical.draggable.id],ra=pt||Bo({pageOffset:fn.offset,draggable:Tr,draggables:un.draggables,droppables:un.droppables,previousImpact:de.impact,viewport:Lt,afterCritical:de.afterCritical}),fa=zl({draggable:Tr,impact:ra,previousImpact:de.impact,draggables:un.draggables,droppables:un.droppables}),ha=(0,Ee.Z)({},de,{current:Jn,dimensions:{draggables:un.draggables,droppables:fa},impact:ra,viewport:Lt,scrollJumpRequest:St||null,forceShouldAnimate:St?!1:null});return ha};function hn(se,de){return se.map(function(ve){return de[ve]})}var bn=function(se){var de=se.impact,ve=se.viewport,Oe=se.draggables,ft=se.destination,pt=se.forceShouldAnimate,St=de.displaced,Lt=hn(St.all,Oe),un=Lo({afterDragging:Lt,destination:ft,displacedBy:de.displacedBy,viewport:ve.frame,forceShouldAnimate:pt,last:St});return(0,Ee.Z)({},de,{displaced:un})},rr=function(se){var de=se.impact,ve=se.draggable,Oe=se.droppable,ft=se.draggables,pt=se.viewport,St=se.afterCritical,Lt=Pa({impact:de,draggable:ve,draggables:ft,droppable:Oe,afterCritical:St});return ro({pageBorderBoxCenter:Lt,draggable:ve,viewport:pt})},Ki=function(se){var de=se.state,ve=se.dimensions,Oe=se.viewport;de.movementMode!=="SNAP"&&rn(!1);var ft=de.impact,pt=Oe||de.viewport,St=ve||de.dimensions,Lt=St.draggables,un=St.droppables,Nn=Lt[de.critical.draggable.id],Dn=ma(ft);Dn||rn(!1);var zt=un[Dn],fn=bn({impact:ft,viewport:pt,destination:zt,draggables:Lt}),Jn=rr({impact:fn,draggable:Nn,droppable:zt,draggables:Lt,viewport:pt,afterCritical:de.afterCritical});return Yt({impact:fn,clientSelection:Jn,state:de,dimensions:St,viewport:pt})},Br=function(se){return{index:se.index,droppableId:se.droppableId}},ai=function(se){var de=se.draggable,ve=se.home,Oe=se.draggables,ft=se.viewport,pt=_r(ve.axis,de.displaceBy),St=ba(ve.descriptor.id,Oe),Lt=St.indexOf(de);Lt===-1&&rn(!1);var un=St.slice(Lt+1),Nn=un.reduce(function(Jn,Tr){return Jn[Tr.descriptor.id]=!0,Jn},{}),Dn={inVirtualList:ve.descriptor.mode==="virtual",displacedBy:pt,effected:Nn},zt=Lo({afterDragging:un,destination:ve,displacedBy:pt,last:null,viewport:ft.frame,forceShouldAnimate:!1}),fn={displaced:zt,displacedBy:pt,at:{type:"REORDER",destination:Br(de.descriptor)}};return{impact:fn,afterCritical:Dn}},ei=function(se,de){return{draggables:se.draggables,droppables:bo(se.droppables,de)}},ui=function(de){},Ai=function(de){},ir=function(se){var de=se.draggable,ve=se.offset,Oe=se.initialWindowScroll,ft=Sr(de.client,ve),pt=Kr(ft,Oe),St=(0,Ee.Z)({},de,{placeholder:(0,Ee.Z)({},de.placeholder,{client:ft}),client:ft,page:pt});return St},ti=function(se){var de=se.frame;return de||rn(!1),de},Mi=function(se){var de=se.additions,ve=se.updatedDroppables,Oe=se.viewport,ft=Oe.scroll.diff.value;return de.map(function(pt){var St=pt.descriptor.droppableId,Lt=ve[St],un=ti(Lt),Nn=un.scroll.diff.value,Dn=kn(ft,Nn),zt=ir({draggable:pt,offset:Dn,initialWindowScroll:Oe.scroll.initial});return zt})},va=function(se){var de=se.state,ve=se.published;ui();var Oe=ve.modified.map(function(uo){var Eo=de.dimensions.droppables[uo.droppableId],tl=zr(Eo,uo.scroll);return tl}),ft=(0,Ee.Z)({},de.dimensions.droppables,{},Ir(Oe)),pt=Vi(Mi({additions:ve.additions,updatedDroppables:ft,viewport:de.viewport})),St=(0,Ee.Z)({},de.dimensions.draggables,{},pt);ve.removals.forEach(function(uo){delete St[uo]});var Lt={droppables:ft,draggables:St},un=ma(de.impact),Nn=un?Lt.droppables[un]:null,Dn=Lt.draggables[de.critical.draggable.id],zt=Lt.droppables[de.critical.droppable.id],fn=ai({draggable:Dn,home:zt,draggables:St,viewport:de.viewport}),Jn=fn.impact,Tr=fn.afterCritical,ra=Nn&&Nn.isCombineEnabled?de.impact:Jn,fa=Bo({pageOffset:de.current.page.offset,draggable:Lt.draggables[de.critical.draggable.id],draggables:Lt.draggables,droppables:Lt.droppables,previousImpact:ra,viewport:de.viewport,afterCritical:Tr});Ai();var ha=(0,Ee.Z)({phase:"DRAGGING"},de,{phase:"DRAGGING",impact:fa,onLiftImpact:Jn,dimensions:Lt,afterCritical:Tr,forceShouldAnimate:!1});if(de.phase==="COLLECTING")return ha;var za=(0,Ee.Z)({phase:"DROP_PENDING"},ha,{phase:"DROP_PENDING",reason:de.reason,isWaiting:!1});return za},ii=function(de){return de.movementMode==="SNAP"},ca=function(de,ve,Oe){var ft=ei(de.dimensions,ve);return!ii(de)||Oe?Yt({state:de,dimensions:ft}):Ki({state:de,dimensions:ft})};function Fi(se){return se.isDragging&&se.movementMode==="SNAP"?(0,Ee.Z)({phase:"DRAGGING"},se,{scrollJumpRequest:null}):se}var Hr={phase:"IDLE",completed:null,shouldFlush:!1},Ur=function(se,de){if(se===void 0&&(se=Hr),de.type==="FLUSH")return(0,Ee.Z)({},Hr,{shouldFlush:!0});if(de.type==="INITIAL_PUBLISH"){se.phase!=="IDLE"&&rn(!1);var ve=de.payload,Oe=ve.critical,ft=ve.clientSelection,pt=ve.viewport,St=ve.dimensions,Lt=ve.movementMode,un=St.draggables[Oe.draggable.id],Nn=St.droppables[Oe.droppable.id],Dn={selection:ft,borderBoxCenter:un.client.borderBox.center,offset:qn},zt={client:Dn,page:{selection:kn(Dn.selection,pt.scroll.initial),borderBoxCenter:kn(Dn.selection,pt.scroll.initial),offset:kn(Dn.selection,pt.scroll.diff.value)}},fn=xi(St.droppables).every(function(ff){return!ff.isFixedOnPage}),Jn=ai({draggable:un,home:Nn,draggables:St.draggables,viewport:pt}),Tr=Jn.impact,ra=Jn.afterCritical,fa={phase:"DRAGGING",isDragging:!0,critical:Oe,movementMode:Lt,dimensions:St,initial:zt,current:zt,isWindowScrollAllowed:fn,impact:Tr,afterCritical:ra,onLiftImpact:Tr,viewport:pt,scrollJumpRequest:null,forceShouldAnimate:null};return fa}if(de.type==="COLLECTION_STARTING"){if(se.phase==="COLLECTING"||se.phase==="DROP_PENDING")return se;se.phase!=="DRAGGING"&&rn(!1);var ha=(0,Ee.Z)({phase:"COLLECTING"},se,{phase:"COLLECTING"});return ha}if(de.type==="PUBLISH_WHILE_DRAGGING")return se.phase==="COLLECTING"||se.phase==="DROP_PENDING"||rn(!1),va({state:se,published:de.payload});if(de.type==="MOVE"){if(se.phase==="DROP_PENDING")return se;to(se)||rn(!1);var za=de.payload.client;return Pn(za,se.current.client.selection)?se:Yt({state:se,clientSelection:za,impact:ii(se)?se.impact:null})}if(de.type==="UPDATE_DROPPABLE_SCROLL"){if(se.phase==="DROP_PENDING"||se.phase==="COLLECTING")return Fi(se);to(se)||rn(!1);var uo=de.payload,Eo=uo.id,tl=uo.newScroll,Uo=se.dimensions.droppables[Eo];if(!Uo)return se;var Zo=zr(Uo,tl);return ca(se,Zo,!1)}if(de.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(se.phase==="DROP_PENDING")return se;to(se)||rn(!1);var fs=de.payload,Sl=fs.id,ql=fs.isEnabled,es=se.dimensions.droppables[Sl];es||rn(!1),es.isEnabled===ql&&rn(!1);var uu=(0,Ee.Z)({},es,{isEnabled:ql});return ca(se,uu,!0)}if(de.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(se.phase==="DROP_PENDING")return se;to(se)||rn(!1);var Ou=de.payload,Su=Ou.id,Lu=Ou.isCombineEnabled,Cc=se.dimensions.droppables[Su];Cc||rn(!1),Cc.isCombineEnabled===Lu&&rn(!1);var Ks=(0,Ee.Z)({},Cc,{isCombineEnabled:Lu});return ca(se,Ks,!0)}if(de.type==="MOVE_BY_WINDOW_SCROLL"){if(se.phase==="DROP_PENDING"||se.phase==="DROP_ANIMATING")return se;to(se)||rn(!1),se.isWindowScrollAllowed||rn(!1);var Wc=de.payload.newScroll;if(Pn(se.viewport.scroll.current,Wc))return Fi(se);var wc=qa(se.viewport,Wc);return ii(se)?Ki({state:se,viewport:wc}):Yt({state:se,viewport:wc})}if(de.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!to(se))return se;var Wd=de.payload.maxScroll;if(Pn(Wd,se.viewport.scroll.max))return se;var cc=(0,Ee.Z)({},se.viewport,{scroll:(0,Ee.Z)({},se.viewport.scroll,{max:Wd})});return(0,Ee.Z)({phase:"DRAGGING"},se,{viewport:cc})}if(de.type==="MOVE_UP"||de.type==="MOVE_DOWN"||de.type==="MOVE_LEFT"||de.type==="MOVE_RIGHT"){if(se.phase==="COLLECTING"||se.phase==="DROP_PENDING")return se;se.phase!=="DRAGGING"&&rn(!1);var tc=Ya({state:se,type:de.type});return tc?Yt({state:se,impact:tc.impact,clientSelection:tc.clientSelection,scrollJumpRequest:tc.scrollJumpRequest}):se}if(de.type==="DROP_PENDING"){var nc=de.payload.reason;se.phase!=="COLLECTING"&&rn(!1);var Ku=(0,Ee.Z)({phase:"DROP_PENDING"},se,{phase:"DROP_PENDING",isWaiting:!0,reason:nc});return Ku}if(de.type==="DROP_ANIMATE"){var dc=de.payload,Sc=dc.completed,Sd=dc.dropDuration,Ad=dc.newHomeClientOffset;se.phase==="DRAGGING"||se.phase==="DROP_PENDING"||rn(!1);var fd={phase:"DROP_ANIMATING",completed:Sc,dropDuration:Sd,newHomeClientOffset:Ad,dimensions:se.dimensions};return fd}if(de.type==="DROP_COMPLETE"){var df=de.payload.completed;return{phase:"IDLE",completed:df,shouldFlush:!1}}return se},ga=function(de){return{type:"BEFORE_INITIAL_CAPTURE",payload:de}},Ga=function(de){return{type:"LIFT",payload:de}},Ci=function(de){return{type:"INITIAL_PUBLISH",payload:de}},wa=function(de){return{type:"PUBLISH_WHILE_DRAGGING",payload:de}},Qi=function(){return{type:"COLLECTION_STARTING",payload:null}},Ea=function(de){return{type:"UPDATE_DROPPABLE_SCROLL",payload:de}},dl=function(de){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:de}},Dl=function(de){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:de}},Zl=function(de){return{type:"MOVE",payload:de}},rs=function(de){return{type:"MOVE_BY_WINDOW_SCROLL",payload:de}},ho=function(de){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:de}},Bs=function(){return{type:"MOVE_UP",payload:null}},xs=function(){return{type:"MOVE_DOWN",payload:null}},No=function(){return{type:"MOVE_RIGHT",payload:null}},yl=function(){return{type:"MOVE_LEFT",payload:null}},ml=function(){return{type:"FLUSH",payload:null}},Ko=function(de){return{type:"DROP_ANIMATE",payload:de}},_l=function(de){return{type:"DROP_COMPLETE",payload:de}},js=function(de){return{type:"DROP",payload:de}},Vu=function(de){return{type:"DROP_PENDING",payload:de}},Au=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function _u(se){if(!(se.length<=1)){for(var de=se.map(function(Lt){return Lt.descriptor.index}),ve={},Oe=1;Oe<de.length;Oe++){var ft=de[Oe],pt=de[Oe-1];ft!==pt+1&&(ve[ft]=!0)}if(Object.keys(ve).length)var St=de.map(function(Lt){var un=!!ve[Lt];return un?"[\u{1F525}"+Lt+"]":""+Lt}).join(", ")}}function xu(se,de){if(0)var ve}var du=function(se){return function(de){var ve=de.getState,Oe=de.dispatch;return function(ft){return function(pt){if(pt.type!=="LIFT"){ft(pt);return}var St=pt.payload,Lt=St.id,un=St.clientSelection,Nn=St.movementMode,Dn=ve();Dn.phase==="DROP_ANIMATING"&&Oe(_l({completed:Dn.completed})),ve().phase!=="IDLE"&&rn(!1),Oe(ml()),Oe(ga({draggableId:Lt,movementMode:Nn}));var zt={shouldPublishImmediately:Nn==="SNAP"},fn={draggableId:Lt,scrollOptions:zt},Jn=se.startPublishing(fn),Tr=Jn.critical,ra=Jn.dimensions,fa=Jn.viewport;xu(Tr,ra),Oe(Ci({critical:Tr,dimensions:ra,clientSelection:un,movementMode:Nn,viewport:fa}))}}}},Uu=function(se){return function(){return function(de){return function(ve){ve.type==="INITIAL_PUBLISH"&&se.dragging(),ve.type==="DROP_ANIMATE"&&se.dropping(ve.payload.completed.result.reason),(ve.type==="FLUSH"||ve.type==="DROP_COMPLETE")&&se.resting(),de(ve)}}}},fu={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Gu={opacity:{drop:0,combining:.7},scale:{drop:.75}},hu={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Bu=hu.outOfTheWay+"s "+fu.outOfTheWay,Vs={fluid:"opacity "+Bu,snap:"transform "+Bu+", opacity "+Bu,drop:function(de){var ve=de+"s "+fu.drop;return"transform "+ve+", opacity "+ve},outOfTheWay:"transform "+Bu,placeholder:"height "+Bu+", width "+Bu+", margin "+Bu},pu=function(de){return Pn(de,qn)?null:"translate("+de.x+"px, "+de.y+"px)"},eu={moveTo:pu,drop:function(de,ve){var Oe=pu(de);return Oe?ve?Oe+" scale("+Gu.scale.drop+")":Oe:null}},ks=hu.minDropTime,Eu=hu.maxDropTime,ic=Eu-ks,Tu=1500,vc=.6,sr=function(se){var de=se.current,ve=se.destination,Oe=se.reason,ft=Gr(de,ve);if(ft<=0)return ks;if(ft>=Tu)return Eu;var pt=ft/Tu,St=ks+ic*pt,Lt=Oe==="CANCEL"?St*vc:St;return Number(Lt.toFixed(2))},Ui=function(se){var de=se.impact,ve=se.draggable,Oe=se.dimensions,ft=se.viewport,pt=se.afterCritical,St=Oe.draggables,Lt=Oe.droppables,un=ma(de),Nn=un?Lt[un]:null,Dn=Lt[ve.descriptor.droppableId],zt=rr({impact:de,draggable:ve,draggables:St,afterCritical:pt,droppable:Nn||Dn,viewport:ft}),fn=Vn(zt,ve.client.borderBox.center);return fn},Co=function(se){var de=se.draggables,ve=se.reason,Oe=se.lastImpact,ft=se.home,pt=se.viewport,St=se.onLiftImpact;if(!Oe.at||ve!=="DROP"){var Lt=bn({draggables:de,impact:St,destination:ft,viewport:pt,forceShouldAnimate:!0});return{impact:Lt,didDropInsideDroppable:!1}}if(Oe.at.type==="REORDER")return{impact:Oe,didDropInsideDroppable:!0};var un=(0,Ee.Z)({},Oe,{displaced:Aa});return{impact:un,didDropInsideDroppable:!0}},Wa=function(se){var de=se.getState,ve=se.dispatch;return function(Oe){return function(ft){if(ft.type!=="DROP"){Oe(ft);return}var pt=de(),St=ft.payload.reason;if(pt.phase==="COLLECTING"){ve(Vu({reason:St}));return}if(pt.phase!=="IDLE"){var Lt=pt.phase==="DROP_PENDING"&&pt.isWaiting;Lt&&rn(!1),pt.phase==="DRAGGING"||pt.phase==="DROP_PENDING"||rn(!1);var un=pt.critical,Nn=pt.dimensions,Dn=Nn.draggables[pt.critical.draggable.id],zt=Co({reason:St,lastImpact:pt.impact,afterCritical:pt.afterCritical,onLiftImpact:pt.onLiftImpact,home:pt.dimensions.droppables[pt.critical.droppable.id],viewport:pt.viewport,draggables:pt.dimensions.draggables}),fn=zt.impact,Jn=zt.didDropInsideDroppable,Tr=Jn?oa(fn):null,ra=Jn?xa(fn):null,fa={index:un.draggable.index,droppableId:un.droppable.id},ha={draggableId:Dn.descriptor.id,type:Dn.descriptor.type,source:fa,reason:St,mode:pt.movementMode,destination:Tr,combine:ra},za=Ui({impact:fn,draggable:Dn,dimensions:Nn,viewport:pt.viewport,afterCritical:pt.afterCritical}),uo={critical:pt.critical,afterCritical:pt.afterCritical,result:ha,impact:fn},Eo=!Pn(pt.current.client.offset,za)||!!ha.combine;if(!Eo){ve(_l({completed:uo}));return}var tl=sr({current:pt.current.client.offset,destination:za,reason:St}),Uo={newHomeClientOffset:za,dropDuration:tl,completed:uo};ve(Ko(Uo))}}}},Te=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function ot(se){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ve){ve.target!==window&&ve.target!==window.document||se()}}}function Rt(se){var de=se.onWindowScroll;function ve(){de(Te())}var Oe=nr(ve),ft=ot(Oe),pt=sn;function St(){return pt!==sn}function Lt(){St()&&rn(!1),pt=Yn(window,[ft])}function un(){St()||rn(!1),Oe.cancel(),pt(),pt=sn}return{start:Lt,stop:un,isActive:St}}var qt=function(de){return de.type==="DROP_COMPLETE"||de.type==="DROP_ANIMATE"||de.type==="FLUSH"},an=function(se){var de=Rt({onWindowScroll:function(Oe){se.dispatch(rs({newScroll:Oe}))}});return function(ve){return function(Oe){!de.isActive()&&Oe.type==="INITIAL_PUBLISH"&&de.start(),de.isActive()&&qt(Oe)&&de.stop(),ve(Oe)}}},cn=function(se){var de=!1,ve=!1,Oe=setTimeout(function(){ve=!0}),ft=function(St){de||ve||(de=!0,se(St),clearTimeout(Oe))};return ft.wasCalled=function(){return de},ft},Fn=function(){var se=[],de=function(pt){var St=ya(se,function(Nn){return Nn.timerId===pt});St===-1&&rn(!1);var Lt=se.splice(St,1),un=Lt[0];un.callback()},ve=function(pt){var St=setTimeout(function(){return de(St)}),Lt={timerId:St,callback:pt};se.push(Lt)},Oe=function(){if(se.length){var pt=[].concat(se);se.length=0,pt.forEach(function(St){clearTimeout(St.timerId),St.callback()})}};return{add:ve,flush:Oe}},Un=function(de,ve){return de==null&&ve==null?!0:de==null||ve==null?!1:de.droppableId===ve.droppableId&&de.index===ve.index},Wn=function(de,ve){return de==null&&ve==null?!0:de==null||ve==null?!1:de.draggableId===ve.draggableId&&de.droppableId===ve.droppableId},_n=function(de,ve){if(de===ve)return!0;var Oe=de.draggable.id===ve.draggable.id&&de.draggable.droppableId===ve.draggable.droppableId&&de.draggable.type===ve.draggable.type&&de.draggable.index===ve.draggable.index,ft=de.droppable.id===ve.droppable.id&&de.droppable.type===ve.droppable.type;return Oe&&ft},Fr=function(de,ve){ui(),ve(),Ai()},yr=function(de,ve){return{draggableId:de.draggable.id,type:de.droppable.type,source:{droppableId:de.droppable.id,index:de.draggable.index},mode:ve}},$r=function(de,ve,Oe,ft){if(!de){Oe(ft(ve));return}var pt=cn(Oe),St={announce:pt};de(ve,St),pt.wasCalled()||Oe(ft(ve))},ni=function(se,de){var ve=Fn(),Oe=null,ft=function(fn,Jn){Oe&&rn(!1),Fr("onBeforeCapture",function(){var Tr=se().onBeforeCapture;if(Tr){var ra={draggableId:fn,mode:Jn};Tr(ra)}})},pt=function(fn,Jn){Oe&&rn(!1),Fr("onBeforeDragStart",function(){var Tr=se().onBeforeDragStart;Tr&&Tr(yr(fn,Jn))})},St=function(fn,Jn){Oe&&rn(!1);var Tr=yr(fn,Jn);Oe={mode:Jn,lastCritical:fn,lastLocation:Tr.source,lastCombine:null},ve.add(function(){Fr("onDragStart",function(){return $r(se().onDragStart,Tr,de,Hn.onDragStart)})})},Lt=function(fn,Jn){var Tr=oa(Jn),ra=xa(Jn);Oe||rn(!1);var fa=!_n(fn,Oe.lastCritical);fa&&(Oe.lastCritical=fn);var ha=!Un(Oe.lastLocation,Tr);ha&&(Oe.lastLocation=Tr);var za=!Wn(Oe.lastCombine,ra);if(za&&(Oe.lastCombine=ra),!(!fa&&!ha&&!za)){var uo=(0,Ee.Z)({},yr(fn,Oe.mode),{combine:ra,destination:Tr});ve.add(function(){Fr("onDragUpdate",function(){return $r(se().onDragUpdate,uo,de,Hn.onDragUpdate)})})}},un=function(){Oe||rn(!1),ve.flush()},Nn=function(fn){Oe||rn(!1),Oe=null,Fr("onDragEnd",function(){return $r(se().onDragEnd,fn,de,Hn.onDragEnd)})},Dn=function(){if(Oe){var fn=(0,Ee.Z)({},yr(Oe.lastCritical,Oe.mode),{combine:null,destination:null,reason:"CANCEL"});Nn(fn)}};return{beforeCapture:ft,beforeStart:pt,start:St,update:Lt,flush:un,drop:Nn,abort:Dn}},ci=function(se,de){var ve=ni(se,de);return function(Oe){return function(ft){return function(pt){if(pt.type==="BEFORE_INITIAL_CAPTURE"){ve.beforeCapture(pt.payload.draggableId,pt.payload.movementMode);return}if(pt.type==="INITIAL_PUBLISH"){var St=pt.payload.critical;ve.beforeStart(St,pt.payload.movementMode),ft(pt),ve.start(St,pt.payload.movementMode);return}if(pt.type==="DROP_COMPLETE"){var Lt=pt.payload.completed.result;ve.flush(),ft(pt),ve.drop(Lt);return}if(ft(pt),pt.type==="FLUSH"){ve.abort();return}var un=Oe.getState();un.phase==="DRAGGING"&&ve.update(un.critical,un.impact)}}}},Ji=function(se){return function(de){return function(ve){if(ve.type!=="DROP_ANIMATION_FINISHED"){de(ve);return}var Oe=se.getState();Oe.phase!=="DROP_ANIMATING"&&rn(!1),se.dispatch(_l({completed:Oe.completed}))}}},Pi=function(se){var de=null,ve=null;function Oe(){ve&&(cancelAnimationFrame(ve),ve=null),de&&(de(),de=null)}return function(ft){return function(pt){if((pt.type==="FLUSH"||pt.type==="DROP_COMPLETE"||pt.type==="DROP_ANIMATION_FINISHED")&&Oe(),ft(pt),pt.type==="DROP_ANIMATE"){var St={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var un=se.getState();un.phase==="DROP_ANIMATING"&&se.dispatch(Au())}};ve=requestAnimationFrame(function(){ve=null,de=Yn(window,[St])})}}}},$i=function(se){return function(){return function(de){return function(ve){(ve.type==="DROP_COMPLETE"||ve.type==="FLUSH"||ve.type==="DROP_ANIMATE")&&se.stopPublishing(),de(ve)}}}},qi=function(se){var de=!1;return function(){return function(ve){return function(Oe){if(Oe.type==="INITIAL_PUBLISH"){de=!0,se.tryRecordFocus(Oe.payload.critical.draggable.id),ve(Oe),se.tryRestoreFocusRecorded();return}if(ve(Oe),!!de){if(Oe.type==="FLUSH"){de=!1,se.tryRestoreFocusRecorded();return}if(Oe.type==="DROP_COMPLETE"){de=!1;var ft=Oe.payload.completed.result;ft.combine&&se.tryShiftRecord(ft.draggableId,ft.combine.draggableId),se.tryRestoreFocusRecorded()}}}}}},Sa=function(de){return de.type==="DROP_COMPLETE"||de.type==="DROP_ANIMATE"||de.type==="FLUSH"},Xa=function(se){return function(de){return function(ve){return function(Oe){if(Sa(Oe)){se.stop(),ve(Oe);return}if(Oe.type==="INITIAL_PUBLISH"){ve(Oe);var ft=de.getState();ft.phase!=="DRAGGING"&&rn(!1),se.start(ft);return}ve(Oe),se.scroll(de.getState())}}}},io=function(se){return function(de){return function(ve){if(de(ve),ve.type==="PUBLISH_WHILE_DRAGGING"){var Oe=se.getState();Oe.phase==="DROP_PENDING"&&(Oe.isWaiting||se.dispatch(js({reason:Oe.reason})))}}}},_a=Ye.qC,Do=function(se){var de=se.dimensionMarshal,ve=se.focusMarshal,Oe=se.styleMarshal,ft=se.getResponders,pt=se.announce,St=se.autoScroller;return(0,Ye.MT)(Ur,_a((0,Ye.md)(Uu(Oe),$i(de),du(de),Wa,Ji,Pi,io,Xa(St),an,qi(ve),ci(ft,pt))))},To=function(){return{additions:{},removals:{},modified:{}}};function ka(se){var de=se.registry,ve=se.callbacks,Oe=To(),ft=null,pt=function(){ft||(ve.collectionStarting(),ft=requestAnimationFrame(function(){ft=null,ui();var Dn=Oe,zt=Dn.additions,fn=Dn.removals,Jn=Dn.modified,Tr=Object.keys(zt).map(function(ha){return de.draggable.getById(ha).getDimension(qn)}).sort(function(ha,za){return ha.descriptor.index-za.descriptor.index}),ra=Object.keys(Jn).map(function(ha){var za=de.droppable.getById(ha),uo=za.callbacks.getScrollWhileDragging();return{droppableId:ha,scroll:uo}}),fa={additions:Tr,removals:Object.keys(fn),modified:ra};Oe=To(),Ai(),ve.publish(fa)}))},St=function(Dn){var zt=Dn.descriptor.id;Oe.additions[zt]=Dn,Oe.modified[Dn.descriptor.droppableId]=!0,Oe.removals[zt]&&delete Oe.removals[zt],pt()},Lt=function(Dn){var zt=Dn.descriptor;Oe.removals[zt.id]=!0,Oe.modified[zt.droppableId]=!0,Oe.additions[zt.id]&&delete Oe.additions[zt.id],pt()},un=function(){ft&&(cancelAnimationFrame(ft),ft=null,Oe=To())};return{add:St,remove:Lt,stop:un}}var Ha=function(se){var de=se.scrollHeight,ve=se.scrollWidth,Oe=se.height,ft=se.width,pt=Vn({x:ve,y:de},{x:ft,y:Oe}),St={x:Math.max(0,pt.x),y:Math.max(0,pt.y)};return St},Fa=function(){var se=document.documentElement;return se||rn(!1),se},Wi=function(){var se=Fa(),de=Ha({scrollHeight:se.scrollHeight,scrollWidth:se.scrollWidth,width:se.clientWidth,height:se.clientHeight});return de},Oa=function(){var se=Te(),de=Wi(),ve=se.y,Oe=se.x,ft=Fa(),pt=ft.clientWidth,St=ft.clientHeight,Lt=Oe+pt,un=ve+St,Nn=Rn({top:ve,left:Oe,right:Lt,bottom:un}),Dn={frame:Nn,scroll:{initial:se,current:se,max:de,diff:{value:qn,displacement:qn}}};return Dn},wo=function(se){var de=se.critical,ve=se.scrollOptions,Oe=se.registry;ui();var ft=Oa(),pt=ft.scroll.current,St=de.droppable,Lt=Oe.droppable.getAllByType(St.type).map(function(zt){return zt.callbacks.getDimensionAndWatchScroll(pt,ve)}),un=Oe.draggable.getAllByType(de.draggable.type).map(function(zt){return zt.getDimension(pt)}),Nn={draggables:Vi(un),droppables:Ir(Lt)};Ai();var Dn={dimensions:Nn,critical:de,viewport:ft};return Dn};function Wo(se,de,ve){if(ve.descriptor.id===de.id||ve.descriptor.type!==de.type)return!1;var Oe=se.droppable.getById(ve.descriptor.droppableId);return Oe.descriptor.mode==="virtual"}var po=function(se,de){var ve=null,Oe=ka({callbacks:{publish:de.publishWhileDragging,collectionStarting:de.collectionStarting},registry:se}),ft=function(Jn,Tr){se.droppable.exists(Jn)||rn(!1),ve&&de.updateDroppableIsEnabled({id:Jn,isEnabled:Tr})},pt=function(Jn,Tr){ve&&(se.droppable.exists(Jn)||rn(!1),de.updateDroppableIsCombineEnabled({id:Jn,isCombineEnabled:Tr}))},St=function(Jn,Tr){ve&&(se.droppable.exists(Jn)||rn(!1),de.updateDroppableScroll({id:Jn,newScroll:Tr}))},Lt=function(Jn,Tr){ve&&se.droppable.getById(Jn).callbacks.scroll(Tr)},un=function(){if(ve){Oe.stop();var Jn=ve.critical.droppable;se.droppable.getAllByType(Jn.type).forEach(function(Tr){return Tr.callbacks.dragStopped()}),ve.unsubscribe(),ve=null}},Nn=function(Jn){ve||rn(!1);var Tr=ve.critical.draggable;Jn.type==="ADDITION"&&Wo(se,Tr,Jn.value)&&Oe.add(Jn.value),Jn.type==="REMOVAL"&&Wo(se,Tr,Jn.value)&&Oe.remove(Jn.value)},Dn=function(Jn){ve&&rn(!1);var Tr=se.draggable.getById(Jn.draggableId),ra=se.droppable.getById(Tr.descriptor.droppableId),fa={draggable:Tr.descriptor,droppable:ra.descriptor},ha=se.subscribe(Nn);return ve={critical:fa,unsubscribe:ha},wo({critical:fa,registry:se,scrollOptions:Jn.scrollOptions})},zt={updateDroppableIsEnabled:ft,updateDroppableIsCombineEnabled:pt,scrollDroppable:Lt,updateDroppableScroll:St,startPublishing:Dn,stopPublishing:un};return zt},sa=function(se,de){return se.phase==="IDLE"?!0:se.phase!=="DROP_ANIMATING"||se.completed.result.draggableId===de?!1:se.completed.result.reason==="DROP"},_o=function(se){window.scrollBy(se.x,se.y)},zo=Kn(function(se){return xi(se).filter(function(de){return!(!de.isEnabled||!de.frame)})}),fl=function(de,ve){var Oe=vi(zo(ve),function(ft){return ft.frame||rn(!1),Ia(ft.frame.pageMarginBox)(de)});return Oe},sl=function(se){var de=se.center,ve=se.destination,Oe=se.droppables;if(ve){var ft=Oe[ve];return ft.frame?ft:null}var pt=fl(de,Oe);return pt},El={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(de){return Math.pow(de,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Fl=function(se,de){var ve=se[de.size]*El.startFromPercentage,Oe=se[de.size]*El.maxScrollAtPercentage,ft={startScrollingFrom:ve,maxScrollValueAt:Oe};return ft},Ro=function(se){var de=se.startOfRange,ve=se.endOfRange,Oe=se.current,ft=ve-de;if(ft===0)return 0;var pt=Oe-de,St=pt/ft;return St},Hl=1,Jo=function(se,de){if(se>de.startScrollingFrom)return 0;if(se<=de.maxScrollValueAt)return El.maxPixelScroll;if(se===de.startScrollingFrom)return Hl;var ve=Ro({startOfRange:de.maxScrollValueAt,endOfRange:de.startScrollingFrom,current:se}),Oe=1-ve,ft=El.maxPixelScroll*El.ease(Oe);return Math.ceil(ft)},Il=El.durationDampening.accelerateAt,Ml=El.durationDampening.stopDampeningAt,as=function(se,de){var ve=de,Oe=Ml,ft=Date.now(),pt=ft-ve;if(pt>=Ml)return se;if(pt<Il)return Hl;var St=Ro({startOfRange:Il,endOfRange:Oe,current:pt}),Lt=se*El.ease(St);return Math.ceil(Lt)},so=function(se){var de=se.distanceToEdge,ve=se.thresholds,Oe=se.dragStartTime,ft=se.shouldUseTimeDampening,pt=Jo(de,ve);return pt===0?0:ft?Math.max(as(pt,Oe),Hl):pt},ao=function(se){var de=se.container,ve=se.distanceToEdges,Oe=se.dragStartTime,ft=se.axis,pt=se.shouldUseTimeDampening,St=Fl(de,ft),Lt=ve[ft.end]<ve[ft.start];return Lt?so({distanceToEdge:ve[ft.end],thresholds:St,dragStartTime:Oe,shouldUseTimeDampening:pt}):-1*so({distanceToEdge:ve[ft.start],thresholds:St,dragStartTime:Oe,shouldUseTimeDampening:pt})},oo=function(se){var de=se.container,ve=se.subject,Oe=se.proposedScroll,ft=ve.height>de.height,pt=ve.width>de.width;return!pt&&!ft?Oe:pt&&ft?null:{x:pt?0:Oe.x,y:ft?0:Oe.y}},Qa=gi(function(se){return se===0?0:se}),rl=function(se){var de=se.dragStartTime,ve=se.container,Oe=se.subject,ft=se.center,pt=se.shouldUseTimeDampening,St={top:ft.y-ve.top,right:ve.right-ft.x,bottom:ve.bottom-ft.y,left:ft.x-ve.left},Lt=ao({container:ve,distanceToEdges:St,dragStartTime:de,axis:co,shouldUseTimeDampening:pt}),un=ao({container:ve,distanceToEdges:St,dragStartTime:de,axis:Ho,shouldUseTimeDampening:pt}),Nn=Qa({x:un,y:Lt});if(Pn(Nn,qn))return null;var Dn=oo({container:ve,subject:Oe,proposedScroll:Nn});return Dn?Pn(Dn,qn)?null:Dn:null},Ja=gi(function(se){return se===0?0:se>0?1:-1}),Io=function(){var se=function(ve,Oe){return ve<0?ve:ve>Oe?ve-Oe:0};return function(de){var ve=de.current,Oe=de.max,ft=de.change,pt=kn(ve,ft),St={x:se(pt.x,Oe.x),y:se(pt.y,Oe.y)};return Pn(St,qn)?null:St}}(),Xo=function(de){var ve=de.max,Oe=de.current,ft=de.change,pt={x:Math.max(Oe.x,ve.x),y:Math.max(Oe.y,ve.y)},St=Ja(ft),Lt=Io({max:pt,current:Oe,change:St});return!Lt||St.x!==0&&Lt.x===0||St.y!==0&&Lt.y===0},Yo=function(de,ve){return Xo({current:de.scroll.current,max:de.scroll.max,change:ve})},Es=function(de,ve){if(!Yo(de,ve))return null;var Oe=de.scroll.max,ft=de.scroll.current;return Io({current:ft,max:Oe,change:ve})},Jl=function(de,ve){var Oe=de.frame;return Oe?Xo({current:Oe.scroll.current,max:Oe.scroll.max,change:ve}):!1},Ys=function(de,ve){var Oe=de.frame;return!Oe||!Jl(de,ve)?null:Io({current:Oe.scroll.current,max:Oe.scroll.max,change:ve})},Ul=function(se){var de=se.viewport,ve=se.subject,Oe=se.center,ft=se.dragStartTime,pt=se.shouldUseTimeDampening,St=rl({dragStartTime:ft,container:de.frame,subject:ve,center:Oe,shouldUseTimeDampening:pt});return St&&Yo(de,St)?St:null},tu=function(se){var de=se.droppable,ve=se.subject,Oe=se.center,ft=se.dragStartTime,pt=se.shouldUseTimeDampening,St=de.frame;if(!St)return null;var Lt=rl({dragStartTime:ft,container:St.pageMarginBox,subject:ve,center:Oe,shouldUseTimeDampening:pt});return Lt&&Jl(de,Lt)?Lt:null},Gl=function(se){var de=se.state,ve=se.dragStartTime,Oe=se.shouldUseTimeDampening,ft=se.scrollWindow,pt=se.scrollDroppable,St=de.current.page.borderBoxCenter,Lt=de.dimensions.draggables[de.critical.draggable.id],un=Lt.page.marginBox;if(de.isWindowScrollAllowed){var Nn=de.viewport,Dn=Ul({dragStartTime:ve,viewport:Nn,subject:un,center:St,shouldUseTimeDampening:Oe});if(Dn){ft(Dn);return}}var zt=sl({center:St,destination:ma(de.impact),droppables:de.dimensions.droppables});if(zt){var fn=tu({dragStartTime:ve,droppable:zt,subject:un,center:St,shouldUseTimeDampening:Oe});fn&&pt(zt.descriptor.id,fn)}},ys=function(se){var de=se.scrollWindow,ve=se.scrollDroppable,Oe=nr(de),ft=nr(ve),pt=null,St=function(Dn){pt||rn(!1);var zt=pt,fn=zt.shouldUseTimeDampening,Jn=zt.dragStartTime;Gl({state:Dn,scrollWindow:Oe,scrollDroppable:ft,dragStartTime:Jn,shouldUseTimeDampening:fn})},Lt=function(Dn){ui(),pt&&rn(!1);var zt=Date.now(),fn=!1,Jn=function(){fn=!0};Gl({state:Dn,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Jn,scrollDroppable:Jn}),pt={dragStartTime:zt,shouldUseTimeDampening:fn},Ai(),fn&&St(Dn)},un=function(){pt&&(Oe.cancel(),ft.cancel(),pt=null)};return{start:Lt,stop:un,scroll:St}},Du=function(se){var de=se.move,ve=se.scrollDroppable,Oe=se.scrollWindow,ft=function(Nn,Dn){var zt=kn(Nn.current.client.selection,Dn);de({client:zt})},pt=function(Nn,Dn){if(!Jl(Nn,Dn))return Dn;var zt=Ys(Nn,Dn);if(!zt)return ve(Nn.descriptor.id,Dn),null;var fn=Vn(Dn,zt);ve(Nn.descriptor.id,fn);var Jn=Vn(Dn,fn);return Jn},St=function(Nn,Dn,zt){if(!Nn||!Yo(Dn,zt))return zt;var fn=Es(Dn,zt);if(!fn)return Oe(zt),null;var Jn=Vn(zt,fn);Oe(Jn);var Tr=Vn(zt,Jn);return Tr},Lt=function(Nn){var Dn=Nn.scrollJumpRequest;if(Dn){var zt=ma(Nn.impact);zt||rn(!1);var fn=pt(Nn.dimensions.droppables[zt],Dn);if(fn){var Jn=Nn.viewport,Tr=St(Nn.isWindowScrollAllowed,Jn,fn);Tr&&ft(Nn,Tr)}}};return Lt},il=function(se){var de=se.scrollDroppable,ve=se.scrollWindow,Oe=se.move,ft=ys({scrollWindow:ve,scrollDroppable:de}),pt=Du({move:Oe,scrollWindow:ve,scrollDroppable:de}),St=function(Nn){if(Nn.phase==="DRAGGING"){if(Nn.movementMode==="FLUID"){ft.scroll(Nn);return}Nn.scrollJumpRequest&&pt(Nn)}},Lt={scroll:St,start:ft.start,stop:ft.stop};return Lt},_i="data-rbd",$o=function(){var se=_i+"-drag-handle";return{base:se,draggableId:se+"-draggable-id",contextId:se+"-context-id"}}(),Ql=function(){var se=_i+"-draggable";return{base:se,contextId:se+"-context-id",id:se+"-id"}}(),os=function(){var se=_i+"-droppable";return{base:se,contextId:se+"-context-id",id:se+"-id"}}(),Fo={contextId:_i+"-scroll-container-context-id"},Cl=function(de){return function(ve){return"["+ve+'="'+de+'"]'}},$l=function(de,ve){return de.map(function(Oe){var ft=Oe.styles[ve];return ft?Oe.selector+" { "+ft+" }":""}).join(" ")},Us="pointer-events: none;",Cu=function(se){var de=Cl(se),ve=function(){var Lt=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:de($o.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:Lt,dragging:Us,dropAnimating:Lt}}}(),Oe=function(){var Lt=`
|
|
|
transition: `+Vs.outOfTheWay+`;
|
|
|
`;return{selector:de(Ql.contextId),styles:{dragging:Lt,dropAnimating:Lt,userCancel:Lt}}}(),ft={selector:de(os.contextId),styles:{always:"overflow-anchor: none;"}},pt={selector:"body",styles:{dragging:`
|
|
|
cursor: grabbing;
|
|
|
cursor: -webkit-grabbing;
|
|
|
user-select: none;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
overflow-anchor: none;
|
|
|
`}},St=[Oe,ve,ft,pt];return{always:$l(St,"always"),resting:$l(St,"resting"),dragging:$l(St,"dragging"),dropAnimating:$l(St,"dropAnimating"),userCancel:$l(St,"userCancel")}},Tl=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?E.useLayoutEffect:E.useEffect,ps=function(){var de=document.querySelector("head");return de||rn(!1),de},nu=function(de){var ve=document.createElement("style");return de&&ve.setAttribute("nonce",de),ve.type="text/css",ve};function Cs(se,de){var ve=Vt(function(){return Cu(se)},[se]),Oe=(0,E.useRef)(null),ft=(0,E.useRef)(null),pt=Nt(Kn(function(zt){var fn=ft.current;fn||rn(!1),fn.textContent=zt}),[]),St=Nt(function(zt){var fn=Oe.current;fn||rn(!1),fn.textContent=zt},[]);Tl(function(){!Oe.current&&!ft.current||rn(!1);var zt=nu(de),fn=nu(de);return Oe.current=zt,ft.current=fn,zt.setAttribute(_i+"-always",se),fn.setAttribute(_i+"-dynamic",se),ps().appendChild(zt),ps().appendChild(fn),St(ve.always),pt(ve.resting),function(){var Jn=function(ra){var fa=ra.current;fa||rn(!1),ps().removeChild(fa),ra.current=null};Jn(Oe),Jn(ft)}},[de,St,pt,ve.always,ve.resting,se]);var Lt=Nt(function(){return pt(ve.dragging)},[pt,ve.dragging]),un=Nt(function(zt){if(zt==="DROP"){pt(ve.dropAnimating);return}pt(ve.userCancel)},[pt,ve.dropAnimating,ve.userCancel]),Nn=Nt(function(){ft.current&&pt(ve.resting)},[pt,ve.resting]),Dn=Vt(function(){return{dragging:Lt,dropping:un,resting:Nn}},[Lt,un,Nn]);return Dn}var Fs=function(se){return se&&se.ownerDocument?se.ownerDocument.defaultView:window};function ls(se){return se instanceof Fs(se).HTMLElement}function Ll(se,de){var ve="["+$o.contextId+'="'+se+'"]',Oe=jr(document.querySelectorAll(ve));if(!Oe.length)return null;var ft=vi(Oe,function(pt){return pt.getAttribute($o.draggableId)===de});return!ft||!ls(ft)?null:ft}function Rl(se){var de=(0,E.useRef)({}),ve=(0,E.useRef)(null),Oe=(0,E.useRef)(null),ft=(0,E.useRef)(!1),pt=Nt(function(fn,Jn){var Tr={id:fn,focus:Jn};return de.current[fn]=Tr,function(){var fa=de.current,ha=fa[fn];ha!==Tr&&delete fa[fn]}},[]),St=Nt(function(fn){var Jn=Ll(se,fn);Jn&&Jn!==document.activeElement&&Jn.focus()},[se]),Lt=Nt(function(fn,Jn){ve.current===fn&&(ve.current=Jn)},[]),un=Nt(function(){Oe.current||ft.current&&(Oe.current=requestAnimationFrame(function(){Oe.current=null;var fn=ve.current;fn&&St(fn)}))},[St]),Nn=Nt(function(fn){ve.current=null;var Jn=document.activeElement;Jn&&Jn.getAttribute($o.draggableId)===fn&&(ve.current=fn)},[]);Tl(function(){return ft.current=!0,function(){ft.current=!1;var fn=Oe.current;fn&&cancelAnimationFrame(fn)}},[]);var Dn=Vt(function(){return{register:pt,tryRecordFocus:Nn,tryRestoreFocusRecorded:un,tryShiftRecord:Lt}},[pt,Nn,un,Lt]);return Dn}function Ps(){var se={draggables:{},droppables:{}},de=[];function ve(zt){return de.push(zt),function(){var Jn=de.indexOf(zt);Jn!==-1&&de.splice(Jn,1)}}function Oe(zt){de.length&&de.forEach(function(fn){return fn(zt)})}function ft(zt){return se.draggables[zt]||null}function pt(zt){var fn=ft(zt);return fn||rn(!1),fn}var St={register:function(fn){se.draggables[fn.descriptor.id]=fn,Oe({type:"ADDITION",value:fn})},update:function(fn,Jn){var Tr=se.draggables[Jn.descriptor.id];Tr&&Tr.uniqueId===fn.uniqueId&&(delete se.draggables[Jn.descriptor.id],se.draggables[fn.descriptor.id]=fn)},unregister:function(fn){var Jn=fn.descriptor.id,Tr=ft(Jn);Tr&&fn.uniqueId===Tr.uniqueId&&(delete se.draggables[Jn],Oe({type:"REMOVAL",value:fn}))},getById:pt,findById:ft,exists:function(fn){return!!ft(fn)},getAllByType:function(fn){return Ii(se.draggables).filter(function(Jn){return Jn.descriptor.type===fn})}};function Lt(zt){return se.droppables[zt]||null}function un(zt){var fn=Lt(zt);return fn||rn(!1),fn}var Nn={register:function(fn){se.droppables[fn.descriptor.id]=fn},unregister:function(fn){var Jn=Lt(fn.descriptor.id);Jn&&fn.uniqueId===Jn.uniqueId&&delete se.droppables[fn.descriptor.id]},getById:un,findById:Lt,exists:function(fn){return!!Lt(fn)},getAllByType:function(fn){return Ii(se.droppables).filter(function(Jn){return Jn.descriptor.type===fn})}};function Dn(){se.draggables={},se.droppables={},de.length=0}return{draggable:St,droppable:Nn,subscribe:ve,clean:Dn}}function Mu(){var se=Vt(Ps,[]);return(0,E.useEffect)(function(){return function(){requestAnimationFrame(se.clean)}},[se]),se}var Rs=E.createContext(null),Gs=function(){var se=document.body;return se||rn(!1),se},Ru={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},_c=function(de){return"rbd-announcement-"+de};function ul(se){var de=Vt(function(){return _c(se)},[se]),ve=(0,E.useRef)(null);(0,E.useEffect)(function(){var pt=document.createElement("div");return ve.current=pt,pt.id=de,pt.setAttribute("aria-live","assertive"),pt.setAttribute("aria-atomic","true"),(0,Ee.Z)(pt.style,Ru),Gs().appendChild(pt),function(){setTimeout(function(){var un=Gs();un.contains(pt)&&un.removeChild(pt),pt===ve.current&&(ve.current=null)})}},[de]);var Oe=Nt(function(ft){var pt=ve.current;if(pt){pt.textContent=ft;return}},[]);return Oe}var wl=0,ms={separator:"::"};function Bl(){wl=0}function is(se,de){return de===void 0&&(de=ms),Vt(function(){return""+se+de.separator+wl++},[de.separator,se])}function ws(se){var de=se.contextId,ve=se.uniqueId;return"rbd-hidden-text-"+de+"-"+ve}function zs(se){var de=se.contextId,ve=se.text,Oe=is("hidden-text",{separator:"-"}),ft=Vt(function(){return ws({contextId:de,uniqueId:Oe})},[Oe,de]);return(0,E.useEffect)(function(){var St=document.createElement("div");return St.id=ft,St.textContent=ve,St.style.display="none",Gs().appendChild(St),function(){var un=Gs();un.contains(St)&&un.removeChild(St)}},[ft,ve]),ft}var ru=E.createContext(null),nd={react:"^16.8.5","react-dom":"^16.8.5"},Qu=/(\d+)\.(\d+)\.(\d+)/,wu=function(de){var ve=Qu.exec(de);ve==null&&rn(!1);var Oe=Number(ve[1]),ft=Number(ve[2]),pt=Number(ve[3]);return{major:Oe,minor:ft,patch:pt,raw:de}},el=function(de,ve){return ve.major>de.major?!0:ve.major<de.major?!1:ve.minor>de.minor?!0:ve.minor<de.minor?!1:ve.patch>=de.patch},Kl=function(se,de){var ve=wu(se),Oe=wu(de);el(ve,Oe)},ku=`
|
|
|
We expect a html5 doctype: <!doctype html>
|
|
|
This is to ensure consistent browser layout and measurement
|
|
|
|
|
|
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
|
|
|
`,ac=function(se){var de=se.doctype;de&&(de.name.toLowerCase(),de.publicId)};function iu(se){}function gc(se,de){}function ss(){gc(function(){Kl(nd.react,E.version),ac(document)},[])}function Mc(se){var de=(0,E.useRef)(se);return(0,E.useEffect)(function(){de.current=se}),de}function gd(){var se=null;function de(){return!!se}function ve(St){return St===se}function Oe(St){se&&rn(!1);var Lt={abandon:St};return se=Lt,Lt}function ft(){se||rn(!1),se=null}function pt(){se&&(se.abandon(),ft())}return{isClaimed:de,isActive:ve,claim:Oe,release:ft,tryAbandon:pt}}var Tc=9,Rc=13,Yu=27,Xu=32,ta=33,rd=34,zc=35,Zc=36,mu=37,Ju=38,yc=39,oc=40,kl,yd=(kl={},kl[Rc]=!0,kl[Tc]=!0,kl),kc=function(se){yd[se.keyCode]&&se.preventDefault()},au=function(){var se="visibilitychange";if(typeof document=="undefined")return se;var de=[se,"ms"+se,"webkit"+se,"moz"+se,"o"+se],ve=vi(de,function(Oe){return"on"+Oe in document});return ve||se}(),bc=0,Fu=5;function zu(se,de){return Math.abs(de.x-se.x)>=Fu||Math.abs(de.y-se.y)>=Fu}var Is={type:"IDLE"};function Xs(se){var de=se.cancel,ve=se.completed,Oe=se.getPhase,ft=se.setPhase;return[{eventName:"mousemove",fn:function(St){var Lt=St.button,un=St.clientX,Nn=St.clientY;if(Lt===bc){var Dn={x:un,y:Nn},zt=Oe();if(zt.type==="DRAGGING"){St.preventDefault(),zt.actions.move(Dn);return}zt.type!=="PENDING"&&rn(!1);var fn=zt.point;if(zu(fn,Dn)){St.preventDefault();var Jn=zt.actions.fluidLift(Dn);ft({type:"DRAGGING",actions:Jn})}}}},{eventName:"mouseup",fn:function(St){var Lt=Oe();if(Lt.type!=="DRAGGING"){de();return}St.preventDefault(),Lt.actions.drop({shouldBlockNextClick:!0}),ve()}},{eventName:"mousedown",fn:function(St){Oe().type==="DRAGGING"&&St.preventDefault(),de()}},{eventName:"keydown",fn:function(St){var Lt=Oe();if(Lt.type==="PENDING"){de();return}if(St.keyCode===Yu){St.preventDefault(),de();return}kc(St)}},{eventName:"resize",fn:de},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){Oe().type==="PENDING"&&de()}},{eventName:"webkitmouseforcedown",fn:function(St){var Lt=Oe();if(Lt.type==="IDLE"&&rn(!1),Lt.actions.shouldRespectForcePress()){de();return}St.preventDefault()}},{eventName:au,fn:de}]}function Ds(se){var de=(0,E.useRef)(Is),ve=(0,E.useRef)(sn),Oe=Vt(function(){return{eventName:"mousedown",fn:function(zt){if(!zt.defaultPrevented&&zt.button===bc&&!(zt.ctrlKey||zt.metaKey||zt.shiftKey||zt.altKey)){var fn=se.findClosestDraggableId(zt);if(fn){var Jn=se.tryGetLock(fn,St,{sourceEvent:zt});if(Jn){zt.preventDefault();var Tr={x:zt.clientX,y:zt.clientY};ve.current(),Nn(Jn,Tr)}}}}}},[se]),ft=Vt(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(zt){if(!zt.defaultPrevented){var fn=se.findClosestDraggableId(zt);if(fn){var Jn=se.findOptionsForDraggable(fn);Jn&&(Jn.shouldRespectForcePress||se.canGetLock(fn)&&zt.preventDefault())}}}}},[se]),pt=Nt(function(){var zt={passive:!1,capture:!0};ve.current=Yn(window,[ft,Oe],zt)},[ft,Oe]),St=Nt(function(){var Dn=de.current;Dn.type!=="IDLE"&&(de.current=Is,ve.current(),pt())},[pt]),Lt=Nt(function(){var Dn=de.current;St(),Dn.type==="DRAGGING"&&Dn.actions.cancel({shouldBlockNextClick:!0}),Dn.type==="PENDING"&&Dn.actions.abort()},[St]),un=Nt(function(){var zt={capture:!0,passive:!1},fn=Xs({cancel:Lt,completed:St,getPhase:function(){return de.current},setPhase:function(Tr){de.current=Tr}});ve.current=Yn(window,fn,zt)},[Lt,St]),Nn=Nt(function(zt,fn){de.current.type!=="IDLE"&&rn(!1),de.current={type:"PENDING",point:fn,actions:zt},un()},[un]);Tl(function(){return pt(),function(){ve.current()}},[pt])}var Qs;function cl(){}var bl=(Qs={},Qs[rd]=!0,Qs[ta]=!0,Qs[Zc]=!0,Qs[zc]=!0,Qs);function Ns(se,de){function ve(){de(),se.cancel()}function Oe(){de(),se.drop()}return[{eventName:"keydown",fn:function(pt){if(pt.keyCode===Yu){pt.preventDefault(),ve();return}if(pt.keyCode===Xu){pt.preventDefault(),Oe();return}if(pt.keyCode===oc){pt.preventDefault(),se.moveDown();return}if(pt.keyCode===Ju){pt.preventDefault(),se.moveUp();return}if(pt.keyCode===yc){pt.preventDefault(),se.moveRight();return}if(pt.keyCode===mu){pt.preventDefault(),se.moveLeft();return}if(bl[pt.keyCode]){pt.preventDefault();return}kc(pt)}},{eventName:"mousedown",fn:ve},{eventName:"mouseup",fn:ve},{eventName:"click",fn:ve},{eventName:"touchstart",fn:ve},{eventName:"resize",fn:ve},{eventName:"wheel",fn:ve,options:{passive:!0}},{eventName:au,fn:ve}]}function Pu(se){var de=(0,E.useRef)(cl),ve=Vt(function(){return{eventName:"keydown",fn:function(pt){if(pt.defaultPrevented||pt.keyCode!==Xu)return;var St=se.findClosestDraggableId(pt);if(!St)return;var Lt=se.tryGetLock(St,Dn,{sourceEvent:pt});if(!Lt)return;pt.preventDefault();var un=!0,Nn=Lt.snapLift();de.current();function Dn(){un||rn(!1),un=!1,de.current(),Oe()}de.current=Yn(window,Ns(Nn,Dn),{capture:!0,passive:!1})}}},[se]),Oe=Nt(function(){var pt={passive:!1,capture:!0};de.current=Yn(window,[ve],pt)},[ve]);Tl(function(){return Oe(),function(){de.current()}},[Oe])}var vu={type:"IDLE"},id=120,us=.15;function gu(se){var de=se.cancel,ve=se.getPhase;return[{eventName:"orientationchange",fn:de},{eventName:"resize",fn:de},{eventName:"contextmenu",fn:function(ft){ft.preventDefault()}},{eventName:"keydown",fn:function(ft){if(ve().type!=="DRAGGING"){de();return}ft.keyCode===Yu&&ft.preventDefault(),de()}},{eventName:au,fn:de}]}function ad(se){var de=se.cancel,ve=se.completed,Oe=se.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(pt){var St=Oe();if(St.type!=="DRAGGING"){de();return}St.hasMoved=!0;var Lt=pt.touches[0],un=Lt.clientX,Nn=Lt.clientY,Dn={x:un,y:Nn};pt.preventDefault(),St.actions.move(Dn)}},{eventName:"touchend",fn:function(pt){var St=Oe();if(St.type!=="DRAGGING"){de();return}pt.preventDefault(),St.actions.drop({shouldBlockNextClick:!0}),ve()}},{eventName:"touchcancel",fn:function(pt){if(Oe().type!=="DRAGGING"){de();return}pt.preventDefault(),de()}},{eventName:"touchforcechange",fn:function(pt){var St=Oe();St.type==="IDLE"&&rn(!1);var Lt=pt.touches[0];if(Lt){var un=Lt.force>=us;if(un){var Nn=St.actions.shouldRespectForcePress();if(St.type==="PENDING"){Nn&&de();return}if(Nn){if(St.hasMoved){pt.preventDefault();return}de();return}pt.preventDefault()}}}},{eventName:au,fn:de}]}function $u(se){var de=(0,E.useRef)(vu),ve=(0,E.useRef)(sn),Oe=Nt(function(){return de.current},[]),ft=Nt(function(Jn){de.current=Jn},[]),pt=Vt(function(){return{eventName:"touchstart",fn:function(Jn){if(!Jn.defaultPrevented){var Tr=se.findClosestDraggableId(Jn);if(Tr){var ra=se.tryGetLock(Tr,Lt,{sourceEvent:Jn});if(ra){var fa=Jn.touches[0],ha=fa.clientX,za=fa.clientY,uo={x:ha,y:za};ve.current(),zt(ra,uo)}}}}}},[se]),St=Nt(function(){var Jn={capture:!0,passive:!1};ve.current=Yn(window,[pt],Jn)},[pt]),Lt=Nt(function(){var fn=de.current;fn.type!=="IDLE"&&(fn.type==="PENDING"&&clearTimeout(fn.longPressTimerId),ft(vu),ve.current(),St())},[St,ft]),un=Nt(function(){var fn=de.current;Lt(),fn.type==="DRAGGING"&&fn.actions.cancel({shouldBlockNextClick:!0}),fn.type==="PENDING"&&fn.actions.abort()},[Lt]),Nn=Nt(function(){var Jn={capture:!0,passive:!1},Tr={cancel:un,completed:Lt,getPhase:Oe},ra=Yn(window,ad(Tr),Jn),fa=Yn(window,gu(Tr),Jn);ve.current=function(){ra(),fa()}},[un,Oe,Lt]),Dn=Nt(function(){var Jn=Oe();Jn.type!=="PENDING"&&rn(!1);var Tr=Jn.actions.fluidLift(Jn.point);ft({type:"DRAGGING",actions:Tr,hasMoved:!1})},[Oe,ft]),zt=Nt(function(Jn,Tr){Oe().type!=="IDLE"&&rn(!1);var ra=setTimeout(Dn,id);ft({type:"PENDING",point:Tr,actions:Jn,longPressTimerId:ra}),Nn()},[Nn,Oe,ft,Dn]);Tl(function(){return St(),function(){ve.current();var Tr=Oe();Tr.type==="PENDING"&&(clearTimeout(Tr.longPressTimerId),ft(vu))}},[Oe,St,ft]),Tl(function(){var Jn=Yn(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Jn},[])}function bd(se){}var vl={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Fc(se,de){if(de==null)return!1;var ve=!!vl[de.tagName.toLowerCase()];if(ve)return!0;var Oe=de.getAttribute("contenteditable");return Oe==="true"||Oe===""?!0:de===se?!1:Fc(se,de.parentElement)}function lc(se,de){var ve=de.target;return ls(ve)?Fc(se,ve):!1}var od=function(se){return Rn(se.getBoundingClientRect()).center};function oi(se){return se instanceof Fs(se).Element}var rf=function(){var se="matches";if(typeof document=="undefined")return se;var de=[se,"msMatchesSelector","webkitMatchesSelector"],ve=vi(de,function(Oe){return Oe in Element.prototype});return ve||se}();function Pd(se,de){return se==null?null:se[rf](de)?se:Pd(se.parentElement,de)}function Id(se,de){return se.closest?se.closest(de):Pd(se,de)}function Od(se){return"["+$o.contextId+'="'+se+'"]'}function sc(se,de){var ve=de.target;if(!oi(ve))return null;var Oe=Od(se),ft=Id(ve,Oe);return!ft||!ls(ft)?null:ft}function ld(se,de){var ve=sc(se,de);return ve?ve.getAttribute($o.draggableId):null}function Lf(se,de){var ve="["+Ql.contextId+'="'+se+'"]',Oe=jr(document.querySelectorAll(ve)),ft=vi(Oe,function(pt){return pt.getAttribute(Ql.id)===de});return!ft||!ls(ft)?null:ft}function Zs(se){se.preventDefault()}function Zu(se){var de=se.expected,ve=se.phase,Oe=se.isLockActive,ft=se.shouldWarn;return!(!Oe()||de!==ve)}function sd(se){var de=se.lockAPI,ve=se.store,Oe=se.registry,ft=se.draggableId;if(de.isClaimed())return!1;var pt=Oe.draggable.findById(ft);return!(!pt||!pt.options.isEnabled||!sa(ve.getState(),ft))}function xd(se){var de=se.lockAPI,ve=se.contextId,Oe=se.store,ft=se.registry,pt=se.draggableId,St=se.forceSensorStop,Lt=se.sourceEvent,un=sd({lockAPI:de,store:Oe,registry:ft,draggableId:pt});if(!un)return null;var Nn=ft.draggable.getById(pt),Dn=Lf(ve,Nn.descriptor.id);if(!Dn||Lt&&!Nn.options.canDragInteractiveElements&&lc(Dn,Lt))return null;var zt=de.claim(St||sn),fn="PRE_DRAG";function Jn(){return Nn.options.shouldRespectForcePress}function Tr(){return de.isActive(zt)}function ra(Uo,Zo){Zu({expected:Uo,phase:fn,isLockActive:Tr,shouldWarn:!0})&&Oe.dispatch(Zo())}var fa=ra.bind(null,"DRAGGING");function ha(Uo){function Zo(){de.release(),fn="COMPLETED"}fn!=="PRE_DRAG"&&(Zo(),fn!=="PRE_DRAG"&&rn(!1)),Oe.dispatch(Ga(Uo.liftActionArgs)),fn="DRAGGING";function fs(Sl,ql){if(ql===void 0&&(ql={shouldBlockNextClick:!1}),Uo.cleanup(),ql.shouldBlockNextClick){var es=Yn(window,[{eventName:"click",fn:Zs,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(es)}Zo(),Oe.dispatch(js({reason:Sl}))}return(0,Ee.Z)({isActive:function(){return Zu({expected:"DRAGGING",phase:fn,isLockActive:Tr,shouldWarn:!1})},shouldRespectForcePress:Jn,drop:function(ql){return fs("DROP",ql)},cancel:function(ql){return fs("CANCEL",ql)}},Uo.actions)}function za(Uo){var Zo=nr(function(Sl){fa(function(){return Zl({client:Sl})})}),fs=ha({liftActionArgs:{id:pt,clientSelection:Uo,movementMode:"FLUID"},cleanup:function(){return Zo.cancel()},actions:{move:Zo}});return(0,Ee.Z)({},fs,{move:Zo})}function uo(){var Uo={moveUp:function(){return fa(Bs)},moveRight:function(){return fa(No)},moveDown:function(){return fa(xs)},moveLeft:function(){return fa(yl)}};return ha({liftActionArgs:{id:pt,clientSelection:od(Dn),movementMode:"SNAP"},cleanup:sn,actions:Uo})}function Eo(){var Uo=Zu({expected:"PRE_DRAG",phase:fn,isLockActive:Tr,shouldWarn:!0});Uo&&de.release()}var tl={isActive:function(){return Zu({expected:"PRE_DRAG",phase:fn,isLockActive:Tr,shouldWarn:!1})},shouldRespectForcePress:Jn,fluidLift:za,snapLift:uo,abort:Eo};return tl}var Nf=[Ds,Pu,$u];function af(se){var de=se.contextId,ve=se.store,Oe=se.registry,ft=se.customSensors,pt=se.enableDefaultSensors,St=[].concat(pt?Nf:[],ft||[]),Lt=(0,E.useState)(function(){return gd()})[0],un=Nt(function(za,uo){za.isDragging&&!uo.isDragging&&Lt.tryAbandon()},[Lt]);Tl(function(){var za=ve.getState(),uo=ve.subscribe(function(){var Eo=ve.getState();un(za,Eo),za=Eo});return uo},[Lt,ve,un]),Tl(function(){return Lt.tryAbandon},[Lt.tryAbandon]);var Nn=Nt(function(ha){return sd({lockAPI:Lt,registry:Oe,store:ve,draggableId:ha})},[Lt,Oe,ve]),Dn=Nt(function(ha,za,uo){return xd({lockAPI:Lt,registry:Oe,contextId:de,store:ve,draggableId:ha,forceSensorStop:za,sourceEvent:uo&&uo.sourceEvent?uo.sourceEvent:null})},[de,Lt,Oe,ve]),zt=Nt(function(ha){return ld(de,ha)},[de]),fn=Nt(function(ha){var za=Oe.draggable.findById(ha);return za?za.options:null},[Oe.draggable]),Jn=Nt(function(){Lt.isClaimed()&&(Lt.tryAbandon(),ve.getState().phase!=="IDLE"&&ve.dispatch(ml()))},[Lt,ve]),Tr=Nt(Lt.isClaimed,[Lt]),ra=Vt(function(){return{canGetLock:Nn,tryGetLock:Dn,findClosestDraggableId:zt,findOptionsForDraggable:fn,tryReleaseLock:Jn,isLockClaimed:Tr}},[Nn,Dn,zt,fn,Jn,Tr]);bd(St);for(var fa=0;fa<St.length;fa++)St[fa](ra)}var Ld=function(de){return{onBeforeCapture:de.onBeforeCapture,onBeforeDragStart:de.onBeforeDragStart,onDragStart:de.onDragStart,onDragEnd:de.onDragEnd,onDragUpdate:de.onDragUpdate}};function Hc(se){return se.current||rn(!1),se.current}function ud(se){var de=se.contextId,ve=se.setCallbacks,Oe=se.sensors,ft=se.nonce,pt=se.dragHandleUsageInstructions,St=(0,E.useRef)(null);ss();var Lt=Mc(se),un=Nt(function(){return Ld(Lt.current)},[Lt]),Nn=ul(de),Dn=zs({contextId:de,text:pt}),zt=Cs(de,ft),fn=Nt(function(Sl){Hc(St).dispatch(Sl)},[]),Jn=Vt(function(){return(0,Ye.DE)({publishWhileDragging:wa,updateDroppableScroll:Ea,updateDroppableIsEnabled:dl,updateDroppableIsCombineEnabled:Dl,collectionStarting:Qi},fn)},[fn]),Tr=Mu(),ra=Vt(function(){return po(Tr,Jn)},[Tr,Jn]),fa=Vt(function(){return il((0,Ee.Z)({scrollWindow:_o,scrollDroppable:ra.scrollDroppable},(0,Ye.DE)({move:Zl},fn)))},[ra.scrollDroppable,fn]),ha=Rl(de),za=Vt(function(){return Do({announce:Nn,autoScroller:fa,dimensionMarshal:ra,focusMarshal:ha,getResponders:un,styleMarshal:zt})},[Nn,fa,ra,ha,un,zt]);St.current=za;var uo=Nt(function(){var Sl=Hc(St),ql=Sl.getState();ql.phase!=="IDLE"&&Sl.dispatch(ml())},[]),Eo=Nt(function(){var Sl=Hc(St).getState();return Sl.isDragging||Sl.phase==="DROP_ANIMATING"},[]),tl=Vt(function(){return{isDragging:Eo,tryAbort:uo}},[Eo,uo]);ve(tl);var Uo=Nt(function(Sl){return sa(Hc(St).getState(),Sl)},[]),Zo=Nt(function(){return to(Hc(St).getState())},[]),fs=Vt(function(){return{marshal:ra,focus:ha,contextId:de,canLift:Uo,isMovementAllowed:Zo,dragHandleUsageInstructionsId:Dn,registry:Tr}},[de,ra,Dn,ha,Uo,Zo,Tr]);return af({contextId:de,store:za,registry:Tr,customSensors:Oe,enableDefaultSensors:se.enableDefaultSensors!==!1}),(0,E.useEffect)(function(){return uo},[uo]),E.createElement(ru.Provider,{value:fs},E.createElement(We,{context:Rs,store:za},se.children))}var Hs=0;function xc(){Hs=0}function of(){return Vt(function(){return""+Hs++},[])}function lf(){xc(),Bl()}function Ec(se){var de=of(),ve=se.dragHandleUsageInstructions||Hn.dragHandleUsageInstructions;return E.createElement(Or,null,function(Oe){return E.createElement(ud,{nonce:se.nonce,contextId:de,setCallbacks:Oe,dragHandleUsageInstructions:ve,enableDefaultSensors:se.enableDefaultSensors,sensors:se.sensors,onBeforeCapture:se.onBeforeCapture,onBeforeDragStart:se.onBeforeDragStart,onDragStart:se.onDragStart,onDragUpdate:se.onDragUpdate,onDragEnd:se.onDragEnd},se.children)})}var Ed=function(de){return function(ve){return de===ve}},Cd=Ed("scroll"),_f=Ed("auto"),Tf=Ed("visible"),Nd=function(de,ve){return ve(de.overflowX)||ve(de.overflowY)},jo=function(de,ve){return ve(de.overflowX)&&ve(de.overflowY)},sf=function(de){var ve=window.getComputedStyle(de),Oe={overflowX:ve.overflowX,overflowY:ve.overflowY};return Nd(Oe,Cd)||Nd(Oe,_f)},_d=function(){return!1;var de,ve,Oe,ft},Iu=function se(de){return de==null?null:de===document.body?_d()?de:null:de===document.documentElement?null:sf(de)?de:se(de.parentElement)},qu=function(se){if(se)var de=Iu(se.parentElement)},ec=function(se){return{x:se.scrollLeft,y:se.scrollTop}},Td=function se(de){if(!de)return!1;var ve=window.getComputedStyle(de);return ve.position==="fixed"?!0:se(de.parentElement)},Rd=function(se){var de=Iu(se),ve=Td(se);return{closestScrollable:de,isFixedOnPage:ve}},zd=function(se){var de=se.descriptor,ve=se.isEnabled,Oe=se.isCombineEnabled,ft=se.isFixedOnPage,pt=se.direction,St=se.client,Lt=se.page,un=se.closest,Nn=function(){if(!un)return null;var Jn=un.scrollSize,Tr=un.client,ra=Ha({scrollHeight:Jn.scrollHeight,scrollWidth:Jn.scrollWidth,height:Tr.paddingBox.height,width:Tr.paddingBox.width});return{pageMarginBox:un.page.marginBox,frameClient:Tr,scrollSize:Jn,shouldClipSubject:un.shouldClipSubject,scroll:{initial:un.scroll,current:un.scroll,max:ra,diff:{value:qn,displacement:qn}}}}(),Dn=pt==="vertical"?co:Ho,zt=Di({page:Lt,withPlaceholder:null,axis:Dn,frame:Nn}),fn={descriptor:de,isCombineEnabled:Oe,isFixedOnPage:ft,axis:Dn,isEnabled:ve,client:St,page:Lt,frame:Nn,subject:zt};return fn},Kc=function(de,ve){var Oe=Zn(de);if(!ve||de!==ve)return Oe;var ft=Oe.paddingBox.top-ve.scrollTop,pt=Oe.paddingBox.left-ve.scrollLeft,St=ft+ve.scrollHeight,Lt=pt+ve.scrollWidth,un={top:ft,right:Lt,bottom:St,left:pt},Nn=ur(un,Oe.border),Dn=zn({borderBox:Nn,margin:Oe.margin,border:Oe.border,padding:Oe.padding});return Dn},uf=function(se){var de=se.ref,ve=se.descriptor,Oe=se.env,ft=se.windowScroll,pt=se.direction,St=se.isDropDisabled,Lt=se.isCombineEnabled,un=se.shouldClipSubject,Nn=Oe.closestScrollable,Dn=Kc(de,Nn),zt=Kr(Dn,ft),fn=function(){if(!Nn)return null;var Tr=Zn(Nn),ra={scrollHeight:Nn.scrollHeight,scrollWidth:Nn.scrollWidth};return{client:Tr,page:Kr(Tr,ft),scroll:ec(Nn),scrollSize:ra,shouldClipSubject:un}}(),Jn=zd({descriptor:ve,isEnabled:!St,isCombineEnabled:Lt,isFixedOnPage:Oe.isFixedOnPage,direction:pt,client:Dn,page:zt,closest:fn});return Jn},Zd={passive:!1},Hd={passive:!0},cd=function(se){return se.shouldPublishImmediately?Zd:Hd};function dd(se){var de=(0,E.useContext)(se);return de||rn(!1),de}var Ol=function(de){return de&&de.env.closestScrollable||null};function cf(se){var de=(0,E.useRef)(null),ve=dd(ru),Oe=is("droppable"),ft=ve.registry,pt=ve.marshal,St=Mc(se),Lt=Vt(function(){return{id:se.droppableId,type:se.type,mode:se.mode}},[se.droppableId,se.mode,se.type]),un=(0,E.useRef)(Lt),Nn=Vt(function(){return Kn(function(Eo,tl){de.current||rn(!1);var Uo={x:Eo,y:tl};pt.updateDroppableScroll(Lt.id,Uo)})},[Lt.id,pt]),Dn=Nt(function(){var Eo=de.current;return!Eo||!Eo.env.closestScrollable?qn:ec(Eo.env.closestScrollable)},[]),zt=Nt(function(){var Eo=Dn();Nn(Eo.x,Eo.y)},[Dn,Nn]),fn=Vt(function(){return nr(zt)},[zt]),Jn=Nt(function(){var Eo=de.current,tl=Ol(Eo);Eo&&tl||rn(!1);var Uo=Eo.scrollOptions;if(Uo.shouldPublishImmediately){zt();return}fn()},[fn,zt]),Tr=Nt(function(Eo,tl){de.current&&rn(!1);var Uo=St.current,Zo=Uo.getDroppableRef();Zo||rn(!1);var fs=Rd(Zo),Sl={ref:Zo,descriptor:Lt,env:fs,scrollOptions:tl};de.current=Sl;var ql=uf({ref:Zo,descriptor:Lt,env:fs,windowScroll:Eo,direction:Uo.direction,isDropDisabled:Uo.isDropDisabled,isCombineEnabled:Uo.isCombineEnabled,shouldClipSubject:!Uo.ignoreContainerClipping}),es=fs.closestScrollable;return es&&(es.setAttribute(Fo.contextId,ve.contextId),es.addEventListener("scroll",Jn,cd(Sl.scrollOptions))),ql},[ve.contextId,Lt,Jn,St]),ra=Nt(function(){var Eo=de.current,tl=Ol(Eo);return Eo&&tl||rn(!1),ec(tl)},[]),fa=Nt(function(){var Eo=de.current;Eo||rn(!1);var tl=Ol(Eo);de.current=null,tl&&(fn.cancel(),tl.removeAttribute(Fo.contextId),tl.removeEventListener("scroll",Jn,cd(Eo.scrollOptions)))},[Jn,fn]),ha=Nt(function(Eo){var tl=de.current;tl||rn(!1);var Uo=Ol(tl);Uo||rn(!1),Uo.scrollTop+=Eo.y,Uo.scrollLeft+=Eo.x},[]),za=Vt(function(){return{getDimensionAndWatchScroll:Tr,getScrollWhileDragging:ra,dragStopped:fa,scroll:ha}},[fa,Tr,ra,ha]),uo=Vt(function(){return{uniqueId:Oe,descriptor:Lt,callbacks:za}},[za,Lt,Oe]);Tl(function(){return un.current=uo.descriptor,ft.droppable.register(uo),function(){de.current&&fa(),ft.droppable.unregister(uo)}},[za,Lt,fa,uo,pt,ft.droppable]),Tl(function(){de.current&&pt.updateDroppableIsEnabled(un.current.id,!se.isDropDisabled)},[se.isDropDisabled,pt]),Tl(function(){de.current&&pt.updateDroppableIsCombineEnabled(un.current.id,se.isCombineEnabled)},[se.isCombineEnabled,pt])}function Kd(){}var Pc={width:0,height:0,margin:Zi},Rf=function(de){var ve=de.isAnimatingOpenOnMount,Oe=de.placeholder,ft=de.animate;return ve||ft==="close"?Pc:{height:Oe.client.borderBox.height,width:Oe.client.borderBox.width,margin:Oe.client.margin}},wd=function(de){var ve=de.isAnimatingOpenOnMount,Oe=de.placeholder,ft=de.animate,pt=Rf({isAnimatingOpenOnMount:ve,placeholder:Oe,animate:ft});return{display:Oe.display,boxSizing:"border-box",width:pt.width,height:pt.height,marginTop:pt.margin.top,marginRight:pt.margin.right,marginBottom:pt.margin.bottom,marginLeft:pt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:ft!=="none"?Vs.placeholder:null}};function zf(se){var de=(0,E.useRef)(null),ve=Nt(function(){de.current&&(clearTimeout(de.current),de.current=null)},[]),Oe=se.animate,ft=se.onTransitionEnd,pt=se.onClose,St=se.contextId,Lt=(0,E.useState)(se.animate==="open"),un=Lt[0],Nn=Lt[1];(0,E.useEffect)(function(){return un?Oe!=="open"?(ve(),Nn(!1),Kd):de.current?Kd:(de.current=setTimeout(function(){de.current=null,Nn(!1)}),ve):Kd},[Oe,un,ve]);var Dn=Nt(function(fn){fn.propertyName==="height"&&(ft(),Oe==="close"&&pt())},[Oe,pt,ft]),zt=wd({isAnimatingOpenOnMount:un,animate:se.animate,placeholder:se.placeholder});return E.createElement(se.placeholder.tagName,{style:zt,"data-rbd-placeholder-context-id":St,onTransitionEnd:Dn,ref:se.innerRef})}var jl=E.memo(zf),uc=E.createContext(null);function Ic(se){se&&ls(se)||rn(!1)}function Hu(se){return typeof se=="boolean"}function yu(se,de){de.forEach(function(ve){return ve(se)})}var x=[function(de){var ve=de.props;ve.droppableId||rn(!1),typeof ve.droppableId!="string"&&rn(!1)},function(de){var ve=de.props;Hu(ve.isDropDisabled)||rn(!1),Hu(ve.isCombineEnabled)||rn(!1),Hu(ve.ignoreContainerClipping)||rn(!1)},function(de){var ve=de.getDroppableRef;Ic(ve())}],ee=[function(de){var ve=de.props,Oe=de.getPlaceholderRef;if(ve.placeholder)var ft=Oe()}],ie=[function(de){var ve=de.props;ve.renderClone||rn(!1)},function(de){var ve=de.getPlaceholderRef;ve()&&rn(!1)}];function re(se){gc(function(){yu(se,x),se.props.mode==="standard"&&yu(se,ee),se.props.mode==="virtual"&&yu(se,ie)})}var le=function(se){(0,ye.Z)(de,se);function de(){for(var Oe,ft=arguments.length,pt=new Array(ft),St=0;St<ft;St++)pt[St]=arguments[St];return Oe=se.call.apply(se,[this].concat(pt))||this,Oe.state={isVisible:!!Oe.props.on,data:Oe.props.on,animate:Oe.props.shouldAnimate&&Oe.props.on?"open":"none"},Oe.onClose=function(){Oe.state.animate==="close"&&Oe.setState({isVisible:!1})},Oe}de.getDerivedStateFromProps=function(ft,pt){return ft.shouldAnimate?ft.on?{isVisible:!0,data:ft.on,animate:"open"}:pt.isVisible?{isVisible:!0,data:pt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!ft.on,data:ft.on,animate:"none"}};var ve=de.prototype;return ve.render=function(){if(!this.state.isVisible)return null;var ft={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(ft)},de}(E.PureComponent),ge={dragging:5e3,dropAnimating:4500},_e=function(de,ve){return ve?Vs.drop(ve.duration):de?Vs.snap:Vs.fluid},it=function(de,ve){return de?ve?Gu.opacity.drop:Gu.opacity.combining:null},bt=function(de){return de.forceShouldAnimate!=null?de.forceShouldAnimate:de.mode==="SNAP"};function Ft(se){var de=se.dimension,ve=de.client,Oe=se.offset,ft=se.combineWith,pt=se.dropping,St=!!ft,Lt=bt(se),un=!!pt,Nn=un?eu.drop(Oe,St):eu.moveTo(Oe),Dn={position:"fixed",top:ve.marginBox.top,left:ve.marginBox.left,boxSizing:"border-box",width:ve.borderBox.width,height:ve.borderBox.height,transition:_e(Lt,pt),transform:Nn,opacity:it(St,un),zIndex:un?ge.dropAnimating:ge.dragging,pointerEvents:"none"};return Dn}function xn(se){return{transform:eu.moveTo(se.offset),transition:se.shouldAnimateDisplacement?null:"none"}}function Ln(se){return se.type==="DRAGGING"?Ft(se):xn(se)}function wr(se,de,ve){ve===void 0&&(ve=qn);var Oe=window.getComputedStyle(de),ft=de.getBoundingClientRect(),pt=ar(ft,Oe),St=Kr(pt,ve),Lt={client:pt,tagName:de.tagName.toLowerCase(),display:Oe.display},un={x:pt.marginBox.width,y:pt.marginBox.height},Nn={descriptor:se,placeholder:Lt,displaceBy:un,client:pt,page:St};return Nn}function mr(se){var de=is("draggable"),ve=se.descriptor,Oe=se.registry,ft=se.getDraggableRef,pt=se.canDragInteractiveElements,St=se.shouldRespectForcePress,Lt=se.isEnabled,un=Vt(function(){return{canDragInteractiveElements:pt,shouldRespectForcePress:St,isEnabled:Lt}},[pt,Lt,St]),Nn=Nt(function(Jn){var Tr=ft();return Tr||rn(!1),wr(ve,Tr,Jn)},[ve,ft]),Dn=Vt(function(){return{uniqueId:de,descriptor:ve,options:un,getDimension:Nn}},[ve,Nn,un,de]),zt=(0,E.useRef)(Dn),fn=(0,E.useRef)(!0);Tl(function(){return Oe.draggable.register(zt.current),function(){return Oe.draggable.unregister(zt.current)}},[Oe.draggable]),Tl(function(){if(fn.current){fn.current=!1;return}var Jn=zt.current;zt.current=Dn,Oe.draggable.update(Dn,Jn)},[Dn,Oe.draggable])}function di(se,de,ve){gc(function(){function Oe(pt){return"Draggable[id: "+pt+"]: "}var ft=se.draggableId;ft||rn(!1),typeof ft!="string"&&rn(!1),li(se.index)||rn(!1),se.mapped.type!=="DRAGGING"&&(Ic(ve()),se.isEnabled&&(Ll(de,ft)||rn(!1)))})}function zi(se){}function da(se){se.preventDefault()}function La(se){var de=(0,E.useRef)(null),ve=Nt(function(Sl){de.current=Sl},[]),Oe=Nt(function(){return de.current},[]),ft=dd(ru),pt=ft.contextId,St=ft.dragHandleUsageInstructionsId,Lt=ft.registry,un=dd(uc),Nn=un.type,Dn=un.droppableId,zt=Vt(function(){return{id:se.draggableId,index:se.index,type:Nn,droppableId:Dn}},[se.draggableId,se.index,Nn,Dn]),fn=se.children,Jn=se.draggableId,Tr=se.isEnabled,ra=se.shouldRespectForcePress,fa=se.canDragInteractiveElements,ha=se.isClone,za=se.mapped,uo=se.dropAnimationFinished;if(di(se,pt,Oe),zi(ha),!ha){var Eo=Vt(function(){return{descriptor:zt,registry:Lt,getDraggableRef:Oe,canDragInteractiveElements:fa,shouldRespectForcePress:ra,isEnabled:Tr}},[zt,Lt,Oe,fa,ra,Tr]);mr(Eo)}var tl=Vt(function(){return Tr?{tabIndex:0,role:"button","aria-describedby":St,"data-rbd-drag-handle-draggable-id":Jn,"data-rbd-drag-handle-context-id":pt,draggable:!1,onDragStart:da}:null},[pt,St,Jn,Tr]),Uo=Nt(function(Sl){za.type==="DRAGGING"&&za.dropping&&Sl.propertyName==="transform"&&uo()},[uo,za]),Zo=Vt(function(){var Sl=Ln(za),ql=za.type==="DRAGGING"&&za.dropping?Uo:null,es={innerRef:ve,draggableProps:{"data-rbd-draggable-context-id":pt,"data-rbd-draggable-id":Jn,style:Sl,onTransitionEnd:ql},dragHandleProps:tl};return es},[pt,tl,Jn,za,Uo,ve]),fs=Vt(function(){return{draggableId:zt.id,type:zt.type,source:{index:zt.index,droppableId:zt.droppableId}}},[zt.droppableId,zt.id,zt.index,zt.type]);return fn(Zo,za.snapshot,fs)}var Ra=function(se,de){return se===de},Da=function(se){var de=se.combine,ve=se.destination;return ve?ve.droppableId:de?de.droppableId:null},Va=function(de){return de.combine?de.combine.draggableId:null},Mo=function(de){return de.at&&de.at.type==="COMBINE"?de.at.combine.draggableId:null};function Oo(){var se=Kn(function(ft,pt){return{x:ft,y:pt}}),de=Kn(function(ft,pt,St,Lt,un){return{isDragging:!0,isClone:pt,isDropAnimating:!!un,dropAnimation:un,mode:ft,draggingOver:St,combineWith:Lt,combineTargetFor:null}}),ve=Kn(function(ft,pt,St,Lt,un,Nn,Dn){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:un,combineWith:Nn,mode:pt,offset:ft,dimension:St,forceShouldAnimate:Dn,snapshot:de(pt,Lt,un,Nn,null)}}}),Oe=function(pt,St){if(pt.isDragging){if(pt.critical.draggable.id!==St.draggableId)return null;var Lt=pt.current.client.offset,un=pt.dimensions.draggables[St.draggableId],Nn=ma(pt.impact),Dn=Mo(pt.impact),zt=pt.forceShouldAnimate;return ve(se(Lt.x,Lt.y),pt.movementMode,un,St.isClone,Nn,Dn,zt)}if(pt.phase==="DROP_ANIMATING"){var fn=pt.completed;if(fn.result.draggableId!==St.draggableId)return null;var Jn=St.isClone,Tr=pt.dimensions.draggables[St.draggableId],ra=fn.result,fa=ra.mode,ha=Da(ra),za=Va(ra),uo=pt.dropDuration,Eo={duration:uo,curve:fu.drop,moveTo:pt.newHomeClientOffset,opacity:za?Gu.opacity.drop:null,scale:za?Gu.scale.drop:null};return{mapped:{type:"DRAGGING",offset:pt.newHomeClientOffset,dimension:Tr,dropping:Eo,draggingOver:ha,combineWith:za,mode:fa,forceShouldAnimate:null,snapshot:de(fa,Jn,ha,za,Eo)}}}return null};return Oe}function al(se){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:se,combineWith:null}}var Vl={mapped:{type:"SECONDARY",offset:qn,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:al(null)}};function _s(){var se=Kn(function(St,Lt){return{x:St,y:Lt}}),de=Kn(al),ve=Kn(function(St,Lt,un){return Lt===void 0&&(Lt=null),{mapped:{type:"SECONDARY",offset:St,combineTargetFor:Lt,shouldAnimateDisplacement:un,snapshot:de(Lt)}}}),Oe=function(Lt){return Lt?ve(qn,Lt,!0):null},ft=function(Lt,un,Nn,Dn){var zt=Nn.displaced.visible[Lt],fn=!!(Dn.inVirtualList&&Dn.effected[Lt]),Jn=xa(Nn),Tr=Jn&&Jn.draggableId===Lt?un:null;if(!zt){if(!fn)return Oe(Tr);if(Nn.displaced.invisible[Lt])return null;var ra=fr(Dn.displacedBy.point),fa=se(ra.x,ra.y);return ve(fa,Tr,!0)}if(fn)return Oe(Tr);var ha=Nn.displacedBy.point,za=se(ha.x,ha.y);return ve(za,Tr,zt.shouldAnimate)},pt=function(Lt,un){if(Lt.isDragging)return Lt.critical.draggable.id===un.draggableId?null:ft(un.draggableId,Lt.critical.draggable.id,Lt.impact,Lt.afterCritical);if(Lt.phase==="DROP_ANIMATING"){var Nn=Lt.completed;return Nn.result.draggableId===un.draggableId?null:ft(un.draggableId,Nn.result.draggableId,Nn.impact,Nn.afterCritical)}return null};return pt}var vs=function(){var de=Oo(),ve=_s(),Oe=function(pt,St){return de(pt,St)||ve(pt,St)||Vl};return Oe},ou={dropAnimationFinished:Au},lu=At(vs,ou,null,{context:Rs,pure:!0,areStatePropsEqual:Ra})(La);function Ss(se){var de=dd(uc),ve=de.isUsingCloneFor;return ve===se.draggableId&&!se.isClone?null:E.createElement(lu,se)}function su(se){var de=typeof se.isDragDisabled=="boolean"?!se.isDragDisabled:!0,ve=!!se.disableInteractiveElementBlocking,Oe=!!se.shouldRespectForcePress;return E.createElement(Ss,(0,Ee.Z)({},se,{isClone:!1,isEnabled:de,canDragInteractiveElements:ve,shouldRespectForcePress:Oe}))}function Go(se){var de=(0,E.useContext)(ru);de||rn(!1);var ve=de.contextId,Oe=de.isMovementAllowed,ft=(0,E.useRef)(null),pt=(0,E.useRef)(null),St=se.children,Lt=se.droppableId,un=se.type,Nn=se.mode,Dn=se.direction,zt=se.ignoreContainerClipping,fn=se.isDropDisabled,Jn=se.isCombineEnabled,Tr=se.snapshot,ra=se.useClone,fa=se.updateViewportMaxScroll,ha=se.getContainerForClone,za=Nt(function(){return ft.current},[]),uo=Nt(function(uu){ft.current=uu},[]),Eo=Nt(function(){return pt.current},[]),tl=Nt(function(uu){pt.current=uu},[]);re({props:se,getDroppableRef:za,getPlaceholderRef:Eo});var Uo=Nt(function(){Oe()&&fa({maxScroll:Wi()})},[Oe,fa]);cf({droppableId:Lt,type:un,mode:Nn,direction:Dn,isDropDisabled:fn,isCombineEnabled:Jn,ignoreContainerClipping:zt,getDroppableRef:za});var Zo=E.createElement(le,{on:se.placeholder,shouldAnimate:se.shouldAnimatePlaceholder},function(uu){var Ou=uu.onClose,Su=uu.data,Lu=uu.animate;return E.createElement(jl,{placeholder:Su,onClose:Ou,innerRef:tl,animate:Lu,contextId:ve,onTransitionEnd:Uo})}),fs=Vt(function(){return{innerRef:uo,placeholder:Zo,droppableProps:{"data-rbd-droppable-id":Lt,"data-rbd-droppable-context-id":ve}}},[ve,Lt,Zo,uo]),Sl=ra?ra.dragging.draggableId:null,ql=Vt(function(){return{droppableId:Lt,type:un,isUsingCloneFor:Sl}},[Lt,Sl,un]);function es(){if(!ra)return null;var uu=ra.dragging,Ou=ra.render,Su=E.createElement(Ss,{draggableId:uu.draggableId,index:uu.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Lu,Cc){return Ou(Lu,Cc,uu)});return yn.createPortal(Su,ha())}return E.createElement(uc.Provider,{value:ql},St(fs,Tr),es())}var cs=function(de,ve){return de===ve.droppable.type},ds=function(de,ve){return ve.draggables[de.draggable.id]},bs=function(){var de={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},ve=(0,Ee.Z)({},de,{shouldAnimatePlaceholder:!1}),Oe=Kn(function(St){return{draggableId:St.id,type:St.type,source:{index:St.index,droppableId:St.droppableId}}}),ft=Kn(function(St,Lt,un,Nn,Dn,zt){var fn=Dn.descriptor.id,Jn=Dn.descriptor.droppableId===St;if(Jn){var Tr=zt?{render:zt,dragging:Oe(Dn.descriptor)}:null,ra={isDraggingOver:un,draggingOverWith:un?fn:null,draggingFromThisWith:fn,isUsingPlaceholder:!0};return{placeholder:Dn.placeholder,shouldAnimatePlaceholder:!1,snapshot:ra,useClone:Tr}}if(!Lt)return ve;if(!Nn)return de;var fa={isDraggingOver:un,draggingOverWith:fn,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Dn.placeholder,shouldAnimatePlaceholder:!0,snapshot:fa,useClone:null}}),pt=function(Lt,un){var Nn=un.droppableId,Dn=un.type,zt=!un.isDropDisabled,fn=un.renderClone;if(Lt.isDragging){var Jn=Lt.critical;if(!cs(Dn,Jn))return ve;var Tr=ds(Jn,Lt.dimensions),ra=ma(Lt.impact)===Nn;return ft(Nn,zt,ra,ra,Tr,fn)}if(Lt.phase==="DROP_ANIMATING"){var fa=Lt.completed;if(!cs(Dn,fa.critical))return ve;var ha=ds(fa.critical,Lt.dimensions);return ft(Nn,zt,Da(fa.result)===Nn,ma(fa.impact)===Nn,ha,fn)}if(Lt.phase==="IDLE"&&Lt.completed&&!Lt.shouldFlush){var za=Lt.completed;if(!cs(Dn,za.critical))return ve;var uo=ma(za.impact)===Nn,Eo=!!(za.impact.at&&za.impact.at.type==="COMBINE"),tl=za.critical.droppable.id===Nn;return uo?Eo?de:ve:tl?de:ve}return ve};return pt},As={updateViewportMaxScroll:ho};function Oc(){return document.body||rn(!1),document.body}var bu={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Oc},Ts=At(bs,As,null,{context:Rs,pure:!0,areStatePropsEqual:Ra})(Go);Ts.defaultProps=bu},38486:function(An,tn){"use strict";var ne;var E=60103,ye=60106,Ee=60107,Ye=60108,Ce=60114,Se=60109,pe=60110,be=60112,De=60113,Pe=60120,et=60115,Fe=60116,Ie=60121,tt=60122,ze=60117,We=60129,lt=60131;if(typeof Symbol=="function"&&Symbol.for){var Xe=Symbol.for;E=Xe("react.element"),ye=Xe("react.portal"),Ee=Xe("react.fragment"),Ye=Xe("react.strict_mode"),Ce=Xe("react.profiler"),Se=Xe("react.provider"),pe=Xe("react.context"),be=Xe("react.forward_ref"),De=Xe("react.suspense"),Pe=Xe("react.suspense_list"),et=Xe("react.memo"),Fe=Xe("react.lazy"),Ie=Xe("react.block"),tt=Xe("react.server.block"),ze=Xe("react.fundamental"),We=Xe("react.debug_trace_mode"),lt=Xe("react.legacy_hidden")}function Dt(xt){if(typeof xt=="object"&&xt!==null){var Ve=xt.$$typeof;switch(Ve){case E:switch(xt=xt.type,xt){case Ee:case Ce:case Ye:case De:case Pe:return xt;default:switch(xt=xt&&xt.$$typeof,xt){case pe:case be:case Fe:case et:case Se:return xt;default:return Ve}}case ye:return Ve}}}var dt=Se,Qe=E,Ze=be,Ae=Ee,Je=Fe,Re=et,vt=ye,$e=Ce,mt=Ye,Be=De;ne=pe,ne=dt,ne=Qe,ne=Ze,ne=Ae,ne=Je,ne=Re,ne=vt,ne=$e,ne=mt,ne=Be,ne=function(){return!1},ne=function(){return!1},tn.isContextConsumer=function(xt){return Dt(xt)===pe},ne=function(xt){return Dt(xt)===Se},ne=function(xt){return typeof xt=="object"&&xt!==null&&xt.$$typeof===E},ne=function(xt){return Dt(xt)===be},ne=function(xt){return Dt(xt)===Ee},ne=function(xt){return Dt(xt)===Fe},ne=function(xt){return Dt(xt)===et},ne=function(xt){return Dt(xt)===ye},ne=function(xt){return Dt(xt)===Ce},ne=function(xt){return Dt(xt)===Ye},ne=function(xt){return Dt(xt)===De},ne=function(xt){return typeof xt=="string"||typeof xt=="function"||xt===Ee||xt===Ce||xt===We||xt===Ye||xt===De||xt===Pe||xt===lt||typeof xt=="object"&&xt!==null&&(xt.$$typeof===Fe||xt.$$typeof===et||xt.$$typeof===Se||xt.$$typeof===pe||xt.$$typeof===be||xt.$$typeof===ze||xt.$$typeof===Ie||xt[0]===tt)},ne=Dt},53410:function(An,tn,ne){"use strict";An.exports=ne(38486)},32637:function(An){"use strict";An.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAtKADAAQAAAABAAAAtAAAAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/8IAEQgAtAC0AwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAMCBAEFAAYHCAkKC//EAMMQAAEDAwIEAwQGBAcGBAgGcwECAAMRBBIhBTETIhAGQVEyFGFxIweBIJFCFaFSM7EkYjAWwXLRQ5I0ggjhU0AlYxc18JNzolBEsoPxJlQ2ZJR0wmDShKMYcOInRTdls1V1pJXDhfLTRnaA40dWZrQJChkaKCkqODk6SElKV1hZWmdoaWp3eHl6hoeIiYqQlpeYmZqgpaanqKmqsLW2t7i5usDExcbHyMnK0NTV1tfY2drg5OXm5+jp6vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAQIAAwQFBgcICQoL/8QAwxEAAgIBAwMDAgMFAgUCBASHAQACEQMQEiEEIDFBEwUwIjJRFEAGMyNhQhVx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0fn/dYP91JJ/ko0ftUDL7NXkoLov8AdViuZJvZKfcTWgeQNIjFyFhzv8chScx5/wBWosYw/wCnZkynIS/m+4C3eHlqSzUEIgI//gj7DyhZLC+0NkhTIKUCXKe0/pV//wAFBIgR1f8AEKN6qX/qKK0Acv8ANBwqHhrAqgVAOQV/CbB8YoDiACdJM/8A2J//2Q=="},73631:function(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},31328:function(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAodJREFUOBGtU0trFEEQ/qZnM5NsWBCfSEjwQdSggmAieAv4uOnFg5eIXgTvEY+ePJqToDf9AcZDFAUF8SgEQUxAjC6+QlhX4xo0G93ZnRnr697umSyKBCyY/aq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Jc3f2cS5vMcnu7ryCpE0XeWv42UCicSovLQ3ZOneAalzZOiPNMIyq0uA0i0XEsebjZCNOHlMSk+RkqpLtzoafGowsYQhFMNZSivcHSdXyZPFVSpX7zNwxo0nhQHOkTO0JTO0xSax4VeS0mne2rqya0nHGEieT9DFkWbnmLk7ONoi6E9uWbqT+PmOZSaO/lsyWA/CWXKYyg8dolgUU38+P91HDI7wk5OjKMpBU61yyThtCUedwcGy/IVjozd2peQrmCrkroJyu1Ne/xSQxbOJo+CklKHMbFJcQZzRgaYxLAmnlXwokwSKYWG5ciZtZA8VmMmCGKaktjEQOyzZpKguYmtHVtI8OBuvK8u/eurJkeMd8gy0WCRXJwXGMIOuukmrNHAy9uEqnM3vKRVUKSiVPr4oSDw1oiHagPu/A2kmih6OXasidlejC7CBZfyVhB0nEpKwABDSlNcZAMtzuWaaJLtLdSTdlgWRnkZ0ZcrXrMYa3z+8Lkoox+jiXAEVNEwmGaX9VwRwSFzOlg/QgTCodJDnGZQfJXtS0/1XF/UCy/pRFMknLv4B0mO7tAcV+E4LavnLlX3lTS/GLYAyLAAAAAElFTkSuQmCC"},71979:function(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAqCAYAAABfjB7GAAAAAXNSR0IArs4c6QAAEy5JREFUeF7tW2l0VFW2/m4FkhBmQ5iEJEwBMcgoElwMMoOg0q20ywkJQj/1MXTjoxVlkjm0QNs2AgIapNW2gRYRbGRMCDJGmWcIUxISyASBhITUfevsM9xzb91UgM567w8lrqq6de+puvs7397fHmJcPxJvGoYBGAYMw8Of2X/sGNhb+Rm9Ecedz/w8E4BpGPDQlYDpEWuYdCl9VtbD42WriOvZivwfYJrqmR0xTfo2fpxe8uvYcfpfXsuOm16Yppc+97JndqrXBPvFpleuJc6R14tntq5BX8Ov4+uz1/J7vfy+tfP572Hr8d8oP2N3T8e03yruzro/IN0D73bDCBjfYMDUy0be4S8IIA6ExwJEgsQOww4SHaHz2T9+DfspHA8DX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Li33T6QYY7owdkh+WaNPUwukDGyG0ESMr9eXVl2fAB8w2uRcJWNufzPMAyGn7qXrllIZnDnVbF/HrIVPf0qgzYPKAhmxjGvAP3/GQPR5dndAOvLhfmBslJZJ0GnaHuCsMQ1tfK3DxfthsMIxhAOSC5WeSOMepcJQSEexJskiu5LiZp92UIBzW8r/+7i1J9zv+qIIckxpVlHJELKhCka2FS/SDJFkYASO6ipmSQ2eupM87IZpxqypkTriKZzoPtTwyrCZkWcefkbCtpxaQVAKbUtcjumrr6at78Ks7++tcNsYB1ZO3ckJKirETAHuh1oesANcS8DT+X2bF/xZS2VahJBey2gZe8DlDDjdyQK2j3lbxq0kB/DRJtG66pvusANcS8DT/XFV/2fvTMFL/fTzFJb9cBariRG3KFWgIgUDRcB6gh5m34ubUAChQN1wFquJEbcgVPCW2KhusANcS8DT+3zhxHiYaBU1bT/5K6vv1EFqg3CSXRcOfklR/+RPd2/Wf/2wL/BGiui/tFFRS/AAAAAElFTkSuQmCC"},79005:function(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAgCAYAAAD+Fz2gAAAAAXNSR0IArs4c6QAAEx5JREFUaEPFWwd4FWW6fueE9NATIEAoKkWKgIKVEkBgl2LB6159EFdRwHVd9a67SC+ryFVBEDGAUq57d0WUK6DuigYSeglFMJQIhBJSIIYUQgohObPP9/1l/pmcE7h9nvCcc+bMzJn53v/9vvcrWABQfuovrf3VeMeClWhbVrwFC5Zl0Vfi1aLP/EHu976K42wAtmXBx2cCtk9ew+ZT+bsbbT4/XUWeT1cUf4Bt61faY9v8a2I/vxXn0X7+p86l/bYftu3n7/30Sof6bdAd2351LXmMOl++0nUt/hlxnrg+vVe/6xfPbRwv7oeuJ+5RfUdPz/uMe5VP5zwfkOeDf6tlhUxqPXxOtkXgVFfVHLFgNYHlcwBRIBE+cIPEexg4+hPn0K0IPCz4A4GkrH4DkCxpEDa2fCAFqzC8AsMBifYLI6p93vdkUGUwtzEtCZC4bg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AH7OgFm7hSoQrGZMUkUWN1TquIY77Eqjlk5W/5VVxIUSK6YpBSe2RsSS9sI9ka1gUo2HlAdIBRIXgFijHMZosE7c+cF6WbmGwIHHtGmoM09ziVVmxYTNwmSMV3knZXj2OcadKQOb3B15y0BWdmb5+ValhWvDM6zWEwcZz5O+ikNSjAmqclULdu9DT89GBl4CIWvy0xUSlFGGGMwMhCT9P2peMS0vUEUNJjETXFS+oa7c5gkV7wuchoGl0C62g6GBA/MJHMMWVWunf6PqlZIUPOsnC3zPrV59NeR2WoA3qkocJmh1miWmxmq0h0ihx7lsHwgkHTrXAAlCGlMq3qnWlUcM2KS192p3IqhFa5AJ7dBoXKBJIN7QJCcEWPvpJDAyIhV1N81GOOIAZNJDkhmYZTdrTFUAhtrrOzUt1ujxj4C2E201JZgcZ/VNWkawOh62secBqLWufgcqCvLDs0z3+CAZIwYe9xdLVepXJScFOKWhWQOd1rVoqqDTMGnV2U85AEN2cQw5h245yd7OLo8oxt4wVyYGyQnkXUadIa6K4xARA9+HALJ8vvfsW0kKnen3JQDkptFyiUKAIUrctSaSGh56uZGIGn3ZTLJ+99dlOpz/lcFOSQxrizjSBCQboZJdYMkWxgekNxFTckgs9cTNM7IZpxqypkTriKZzoPt3xpREzYp6t7x2f8ARtZc8eay0EoAAAAASUVORK5CYII="},39057:function(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7svWuXJMdxJWgRmVmP7gYIgEOOtLMjUY/R7v//OfthZ85KsyNRIgg0+lFVmRkx59o1czf38HhkVjXQAFE8TVRlRvjD3Nzsur28k19/fqXArxT4lQK/UuBXCvxKgV8p8EIU6F6onV+b+ZUCv1LgVwr8SoFfKfArBX6lgHT//O15/DHpUCOZH7Xz2Ylei68w+va7+LScG/9qv+FtxDc6GcdRm++ks7bGutH1pbt2amst21AxNv15Rj959hXFjFjPaNpmUbYwppVJozcK87l5npxf75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TnueUhsGhU8ni6d8TEGURGRbere4Ij9K42m3d0kEdCeeVUX/bYIBpqqaGYO8QBJ1/fODX+U8Bi9SQqU8++LS5fgldPr8m9LHTGntaz3obr9HT79TTHVjrdanhYdiI+XDOuKjsmzyk7s4gR3Cck1k3g01eiWO4KCDjzqTBnTPO3OO4PnuDo4/O2PBjNdqrjkMJeXRCmRFLMcQEVOwgJONs7WMoRk/uRNH8p72je4x+xBEn2CjyIg2UsoN2kZ8yJsK6lIEYNv61Ol0AY0s40gKDRJ6PWhVbAfnokh/+f17oKelHNP2kwROsZoa+DDnL4JaDI+U/UejzbXSaxR/K5ygXVan6UasJJiI6AV8jKgQWdQh+P8NewCBXTkFh5dNNOoB4NwLLtSc05opxCA5sQ2qkzqjlkPGndvq4I2alefyPfrwQWLWvK26J+U4VPtymGNvr6jJCkpX+Gv4bASrciDcnqMQ62IDT82UnbIvbP3v2aDjMISHRqDvhU/jScZAIuZpF7urMIRHhxMtxaDVxkP5s6/PTemjld9JmqnoUAXdp76ZqangOGXnmbuSSwINlw66vnonq757l0gHwoTNt7cz8nd3Yz4f/0XK6vduVqt42shwKRVC5U58oEJnXL9FPjpcPhFGHaBhdxW4sOsYHZjZGul8dDeXg4eBKtw86VGhGVwicBOpT6OxwMMV/3EQg6AWKIUvH5RNolA29CDT3wmNspggFJXkNUkl1IuQKnQixEgIwkJ5MjBYF/fTCG7E6XWDeW06oJpdinfW8BEx7JYaHE0aM0JdIN1IOF8WgwFO5YnABqrkUiiFDCsnyPqU9PKWXmCwc5De9OC0XNdja1QysjHUcte17BFMJCEZ5K6RCDwN/tGnKlws/cKIg8Kj4vMASYVKjdqXExZzAh8op+/5zRwrdHv1HgGwW+UeAbBb5R4BsFvlGgpcA3YPFtR3yjwDcKfKPANwp8o8A3ClyMAv8DD8nJIGmcntAAAAAASUVORK5CYII="},96908:function(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IAr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UXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},47621:function(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7tvXlzJzmSJQaSeWcd3TOzvT270mpN0ppM3/+raDWS6TJp/9jpObq6rqw8SZkDcI+HB3ccwR+zsruZZlUkI3A4HH48OByIq/T475EDjxx45MAjBx458MiBRw5ciANXF2rnsZlHDjxy4JEDjxx45MAjBx45kK7+l/96ezfigyCPq6vyX0p3SX4MK0yZev8Wpl18YQVu73z8djFU5zRUpyvlCYv+yUTS+2N2yksu4s09NuE0me7ch6Xv3B81WmSt/JNX/F6ba9rVNpgYaWTAA26bWaVVc5+VOTKdV3exHiD92J7ydqoBNsBa22MwlhmNrw5+2icNPOs9zIFYCW8uXNHCipX/1057Xl2WryHPPLma6H4jJo4wu6qK5Zy5EBnqmvIGUgX6fvbz0AuHzY3e7JhBT+RGup7fBfyXx9d3Kd3e3KWfn3xKN7UhnMuq+VnGblNKz9N1evXpOin/R/o1Gpe09ae3KX26U5/Vqj/qu44vkmtpS8aIY/3965RePUmJvaZnfphF6kvRJBkL71L6539N6c0vh01UWm9vqw0UWuS/2zI+fZ7L1Xe5z0w4/ON5qv7c6KmCdF3tcfb3oq+itPrzKqXbTym9/puUXv+mt8md3ZwBC62gRJRO7z4TuNg1hzuqxB7nEuru9397W2cKXl8EVLSaWhxBVYTIuYkQyjv9ucqxyLbmLkGJG3lGgYZ+i7RWhVfFrQxpjOXAeWs/HWgZORt+N2m/4SFYXmtGgQYxURVzhA/U6Lj8J75ZGRYaZzxNe1a+gUdbulsARulI/i8GrQFj7N1oQGKsWCZMlgL1Rr6xH1+V11xu4PhUV7g9BBaroCYb+5n5AD7Nis7GGDl8lje1cCv9rZRBX9CNt9oUKSNz/kQc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tYt/52lHR8VOC9WDnZ/XB6vTiA7UEB8QlNpHG30Ew3PIM8viGVa28CiSM16WskpraQnHMzInbKZmpmdlLr05dKxRw9sF71WH1Kx+UJRo6ofnxBe6O1tEjexMCk61P5me3GcFVsIa2cs1yar5EGzvG3FRopivTKxnuWGKOyDIdNe/+YbOM8CCLYRHqqpDMyd0p8Is4oC0STt4cZs628wWBbYnBECByU2ty32e5U9kTU7JoOMIGzAVIDuVTbZOOyETtJIz2r35ytseAijkAqz3KQnAQAvf0Kb2Rm1r4Miz470qd10IuBCQ8WrjeCpvH5AZs2GqjHnj5iOmDaiABrs28DSJNizJpTcp3VYd/cKAhVIZWBTjTqR9M2fIQGDFIbLznvV9tHncq8n3XY4cs9c+P0O6vTFw+4dYHW+ONu9veFb4GIm+J/LaXmBtdsEFdgFAA8Up9wTiocZaDRgbuB3DNjNmjQGvQ74fwJl5+NYwSun8H2aBo8h54oZTxALkTR9Zd/uT1Gsoi0bHIRf3l902VNxoWm3ctqzAaaBjmYGLDsTw9gg6XeY7graRINU7FDwtiyyExzvWOA+AneF5t9UF43Rvya0MzrR74jwhAqtE1YdjrUyTrQ5JypT/LI+izkPjTQJ67DEWrh1j/oWACsm/+FryLzaOpzYAg2TFI8kFGoP8Cq+8yTvVE1Chl4PeF1gIizRKgb+rPC5FLHYM72PZRw48cuCRA48ceOTAIwceOTDB2o8MeuTAIwceOfDIgUcOPHLgkQOX4cD/Dy5hqdeaBa56AAAAAElFTkSuQmCC"},84255:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return ye}});var E=ne(29658);function ye(Ee,Ye){Ee.prototype=Object.create(Ye.prototype),Ee.prototype.constructor=Ee,(0,E.Z)(Ee,Ye)}},48136:function(An,tn,ne){"use strict";var E=Object.defineProperty,ye=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,pe=(a,y,b)=>y in a?E(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,be=(a,y)=>{for(var b in y||(y={}))Ce.call(y,b)&&pe(a,b,y[b]);if(Ye)for(var b of Ye(y))Se.call(y,b)&&pe(a,b,y[b]);return a},De=(a,y)=>ye(a,Ee(y)),Pe=a=>typeof a=="symbol"?a:a+"",et=(a,y)=>{var b={};for(var z in a)Ce.call(a,z)&&y.indexOf(z)<0&&(b[z]=a[z]);if(a!=null&&Ye)for(var z of Ye(a))y.indexOf(z)<0&&Se.call(a,z)&&(b[z]=a[z]);return b};function Fe(a){return Array.isArray(a)}var Ie={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 tt(){return"window"in globalThis&&"document"in globalThis}function ze(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function We(){return typeof navigator.vibrate=="function"}function lt(){var a,y;if(!tt())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 Xe(){if(!tt())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 Dt(){return HTMLElement.prototype.hasOwnProperty("popover")}var dt={strings:Ie,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return dt._locale||(dt._locale=tt()?navigator.language.slice(0,5):"en-US"),dt._locale},set locale(a){dt._locale=a,dt._numberFormatter=void 0,dt.dirty=!0},get numberFormatter(){return dt._numberFormatter||(dt._numberFormatter=new Intl.NumberFormat(dt.locale)),dt._numberFormatter},merge(a,y){if(typeof a=="string"&&y)dt.strings[a]=be(be({},dt.strings[a]),y),dt.dirty=!0;else for(const b of Object.keys(a))dt.merge(b,a[b])},get dirty(){return dt._dirty},set dirty(a){dt._dirty||dt._dirty===a||(dt._dirty=!0,setTimeout(()=>{dt._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return dt._subscribers.push(a),dt._subscribers.length-1},unsubscribe(a){a<0||a>=dt._subscribers.length||(dt._subscribers[a]=void 0)},update(a){let y=a.querySelectorAll("[data-l10n-tooltip]");for(const b of y){const z=b.getAttribute("data-l10n-tooltip");if(z){const te=Qe(z);te&&b.setAttribute("data-tooltip",te)}}y=a.querySelectorAll("[data-l10n-arial-label]");for(const b of y){const z=b.getAttribute("data-l10n-arial-label");if(z){const te=Qe(z);te&&b.setAttribute("aria-label",te)}}}};function Qe(a,...y){if(a===void 0)return;let b="";const z=dt.locale;dt.strings[z]&&(b=dt.strings[z][a]);const te=z.slice(0,2);if(!b&&dt.strings[te]&&(b=dt.strings[te][a]),b||(b=dt.strings.en[a]),!b)return;const ae=/(%@|%([0-9]+)\$@)/g;let ce=ae.exec(b),we=0;for(;ce;){if(y[we++]){const He=ce[2]?parseInt(ce[2],10)-1:we-1;let qe=y[He];typeof qe=="number"&&(qe=dt.numberFormatter.format(qe)),b=b.replace(ce[1],qe)}ce=ae.exec(b)}return b=b.replace(/%%/g,"%"),b}var Ze={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},Ae={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},Je={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},Re={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"},vt={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"},$e={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 mt(a){var y,b,z,te,ae,ce;const we=a.split("!");let ke,He,qe,It=255,nn=255,Sn=255,In=-1;const Rr=we.length>0&&we[0].startsWith("-");Rr&&(we[0]=we[0].slice(1));for(let ia=0;ia<we.length;ia++){ke=It,He=nn,qe=Sn;const Nr=(y=we[ia].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],bi=Nr==null?void 0:Nr.toLowerCase(),ua=Nr&&(ce=(ae=(te=(z=(b=Re[bi])!=null?b:Re[vt[Nr]])!=null?z:Ae[Nr])!=null?te:$e[Nr])!=null?ae:Ze[Nr])!=null?ce:we[ia].trim();let Ti=ua.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(Ti!=null&&Ti[1]&&Ti[2]&&Ti[3])It=Math.max(0,Math.min(255,Number.parseInt(Ti[1],16))),nn=Math.max(0,Math.min(255,Number.parseInt(Ti[2],16))),Sn=Math.max(0,Math.min(255,Number.parseInt(Ti[3],16)));else if(Ti=ua.match(/^#([\da-f]{3})$/i),Ti!=null&&Ti[1]){const $a=Number.parseInt(Ti[1][0],16),ko=Number.parseInt(Ti[1][1],16),mo=Number.parseInt(Ti[1][2],16);It=Math.max(0,Math.min(255,$a*16+$a)),nn=Math.max(0,Math.min(255,ko*16+ko)),Sn=Math.max(0,Math.min(255,mo*16+mo))}else if(Ti=ua.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),Ti!=null&&Ti[1]&&Ti[2]&&Ti[3])It=Math.max(0,Math.min(255,Number.parseInt(Ti[1]))),nn=Math.max(0,Math.min(255,Number.parseInt(Ti[2]))),Sn=Math.max(0,Math.min(255,Number.parseInt(Ti[3])));else return;In>=0&&(It=(1-In)*It+In*ke,nn=(1-In)*nn+In*He,Sn=(1-In)*Sn+In*qe,In=-1),ia+1<we.length&&(In=Math.max(0,Math.min(100,Number.parseInt(we[++ia])))/100)}return In>=0&&(It=In*It+(1-In)*ke,nn=In*nn+(1-In)*He,Sn=In*Sn+(1-In)*qe),Rr&&(It=255-It,nn=255-nn,Sn=255-Sn),"#"+("00"+Math.round(It).toString(16)).slice(-2)+("00"+Math.round(nn).toString(16)).slice(-2)+("00"+Math.round(Sn).toString(16)).slice(-2)}function Be(a){var y,b;return a=a.trim(),(b=(y=Je[a.toLowerCase()])!=null?y:Je[vt[a]])!=null?b:mt(a)}function xt(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 Ve(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 Ot(a){let[y,b,z]=[a.h,a.s,a.l];y=(y+360)%360/60,z=Math.max(0,Math.min(z,1)),b=Math.max(0,Math.min(b,1));const te=z<=.5?z*(b+1):z+b-z*b,ae=z*2-te;return{r:Math.round(255*Ve(ae,te,y+2)),g:Math.round(255*Ve(ae,te,y)),b:Math.round(255*Ve(ae,te,y-2))}}function nt(a){return a<0?0:a>255?255:Math.round(a)}function wt(a){const{r:y,g:b,b:z}=a;let te=((1<<24)+(nt(y)<<16)+(nt(b)<<8)+nt(z)).toString(16).slice(1);return te[0]===te[1]&&te[2]===te[3]&&te[4]===te[5]&&te[6]===te[7]&&(te=te[0]+te[2]+te[4]),"#"+te}function Mt(a){let{r:y,g:b,b:z}=a;y=y/255,b=b/255,z=z/255;const te=Math.min(y,b,z),ae=Math.max(y,b,z),ce=ae-te;let we,ke;ae===te?we=0:y===ae?we=(b-z)/ce:b===ae?we=2+(z-y)/ce:z===ae&&(we=4+(y-b)/ce),we=Math.min(we*60,360),we<0&&(we+=360);const He=(te+ae)/2;return ae===te?ke=0:He<=.5?ke=ce/(ae+te):ke=ce/(2-ae-te),{h:we,s:ke,l:He}}function at(a){let y=xt(a);if(!y)return a;let{h:b,s:z,l:te}=Mt(y);return z+=.1,te-=.1,wt(Ot({h:b,s:z,l:te}))}var Le={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"},Me={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},st=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function Ht(a,y,b){if(!/[A-Za-z\d]/.test(a)||(b==="up"&&(b=void 0),!y&&!b))return a;const z=a.codePointAt(0);if(z===void 0)return a;for(const te of st)if((!y||te.variant===y)&&(!b||te.style===b)&&z>=te.offset&&z<te.offset+te.len){const ae=te.start+z-te.offset;return String.fromCodePoint(Me[ae]||ae)}return a}function Tt(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in Me)if(Me[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of st)if(a>=b.start&&a<b.start+b.len)return{char:String.fromCodePoint(a-b.start+b.offset),variant:b.variant,style:b.style};return{char:String.fromCodePoint(a)}}function ct(a){var y;let b="";for(const z of a){if("{}<>[]$&#^_%:'\u02DC".includes(z)){b+=z;continue}const te=(y=z.codePointAt(0))!=null?y:0;let ae=Le[te];if(ae)ae.startsWith("\\")?b+=ae+" ":b+=ae;else{const{char:ce,variant:we,style:ke}=Tt(te);switch(ae=ce,we){case"double-struck":ae=`\\mathbb{${ae}}`;break;case"fraktur":ae=`\\mathfrak{${ae}}`;break;case"script":ae=`\\mathscr{${ae}}`;break;case"sans-serif":ae=`\\mathsf{${ae}}`;break;case"monospace":ae=`\\mathtt{${ae}}`;break;case"calligraphic":ae=`\\mathcal{${ae}}`;break}switch(ke){case"bold":ae=`\\mathbf{${ae}}`;break;case"italic":ae=`\\mathit{${ae}}`;break;case"bolditalic":ae=`\\mathbfit{${ae}}`;break}b+=ae}}return b}function Ct(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var Zt={},gn=be({},Le),$t={},Wt={},on={darr:"\\downarrow",dArr:"\\Downarrow",Darr:"\\Downarrow",lang:"\\langle",rang:"\\rangle",uarr:"\\uparrow",uArr:"\\Uparrow",Uarr:"\\Uparrow",N:"\\mathbb{N}",R:"\\mathbb{R}",Z:"\\mathbb{Z}",alef:"\\aleph",alefsym:"\\aleph",Alpha:"\\mathrm{A}",Beta:"\\mathrm{B}",bull:"\\bullet",Chi:"\\mathrm{X}",clubs:"\\clubsuit",cnums:"\\mathbb{C}",Complex:"\\mathbb{C}",Dagger:"\\ddagger",diamonds:"\\diamondsuit",empty:"\\emptyset",Epsilon:"\\mathrm{E}",Eta:"\\mathrm{H}",exist:"\\exists",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",Harr:"\\Leftrightarrow",hearts:"\\heartsuit",image:"\\Im",infin:"\\infty",Iota:"\\mathrm{I}",isin:"\\in",Kappa:"\\mathrm{K}",larr:"\\leftarrow",lArr:"\\Leftarrow",Larr:"\\Leftarrow",lrarr:"\\leftrightarrow",lrArr:"\\Leftrightarrow",Lrarr:"\\Leftrightarrow",Mu:"\\mathrm{M}",natnums:"\\mathbb{N}",Nu:"\\mathrm{N}",Omicron:"\\mathrm{O}",plusmn:"\\pm",rarr:"\\rightarrow",rArr:"\\Rightarrow",Rarr:"\\Rightarrow",real:"\\Re",reals:"\\mathbb{R}",Reals:"\\mathbb{R}",Rho:"\\mathrm{P}",sdot:"\\cdot",sect:"\\S",spades:"\\spadesuit",sub:"\\subset",sube:"\\subseteq",supe:"\\supseteq",Tau:"\\mathrm{T}",thetasym:"\\vartheta",weierp:"\\wp",Zeta:"\\mathrm{Z}"},dn={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}},ln={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}},xe={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:ln},"amsmath.sty":{package:dn,primitive:!0},"texvc.sty":{package:on,primitive:!1}},fe={" ":32,"\\!":33,"\\#":35,"\\$":36,"\\%":37,"\\&":38,"-":45,"\\textunderscore":95,"\\euro":8364,"\\maltese":10016,"\\{":123,"\\}":125,"\\textbraceleft":123,"\\textbraceright":125,"\\lbrace":123,"\\rbrace":125,"\\lbrack":91,"\\rbrack":93,"\\nobreakspace":160,"\\ldots":8230,"\\textellipsis":8230,"\\backslash":92,"`":8216,"'":8217,"``":8220,"''":8221,"\\degree":176,"\\textasciicircum":94,"\\textasciitilde":126,"\\textasteriskcentered":42,"\\textbackslash":92,"\\textbullet":8226,"\\textdollar":36,"\\textsterling":163,"\\textdagger":8224,"\\textdaggerdbl":8225,"\u2013":8211,"\u2014":8212,"\u2018":8216,"\u2019":8217,"\u201C":8220,"\u201D":8221,'"':8221,"\\ss":223,"\\ae":230,"\\oe":339,"\\AE":198,"\\OE":338,"\\O":216,"\\i":305,"\\j":567,"\\aa":229,"\\AA":197},ue=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,he,me;Xe()?(he=new RegExp("\\p{Letter}","u"),me=new RegExp("[0-9\\p{Letter}]","u")):(he=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,me=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function oe(a,y,b="mord",z){y!==void 0&&(Zt[a]={definitionType:"symbol",type:b,variant:z,codepoint:y},gn[y]||(gn[y]=a))}function Ne(a,y,b){if(typeof a=="string"){for(let z=0;z<a.length;z++){const te=a.charAt(z);oe(te,te.codePointAt(0))}return}for(const[z,te,ae,ce]of a)oe(z,te,ae!=null?ae:y,ce!=null?ce:b)}function At(a,y){for(let b=a;b<=y;b++)oe(String.fromCodePoint(b),b)}function Ge(a){var y;return(y=Wt[a])!=null?y:null}function je(a,y){var b,z;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const te=[];for(const ce in $t)ce.startsWith(y)&&!$t[ce].infix&&te.push({match:ce,frequency:(b=$t[ce].frequency)!=null?b:0});for(const ce in Zt)ce.startsWith(y)&&te.push({match:ce,frequency:(z=Zt[ce].frequency)!=null?z:0});const ae=y.substring(1);for(const ce of Object.keys(a.options.macros))ce.startsWith(ae)&&te.push({match:"\\"+ce,frequency:0});return te.sort((ce,we)=>{var ke,He;return ce.frequency===we.frequency?ce.match.length===we.match.length?ce.match<we.match?-1:1:ce.match.length-we.match.length:((ke=we.frequency)!=null?ke:0)-((He=ce.frequency)!=null?He:0)}),te.map(ce=>ce.match)}function Pt(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function Et(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:Pt(b[0].slice(1))});for(let z=1;z<=b.length;z++)y.push(...Et(b[z]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:Pt(b[0].slice(1))});for(let z=1;z<=b.length;z++)y.push(...Et(b[z]))}return y}function ht(a){if(!a)return"";let y="",b=!0;for(const z of a)typeof z.value=="string"?y+=z.value:b=!1;return b?y:""}function Kt(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const z of a)Wt[z]=b}function vn(a,y,b){typeof a=="string"&&(a=[a]);const te={tabular:!0,params:Et(y),createAtom:b};for(const ae of a)Wt[ae]=te}function kt(a,y,b){var z,te;b||(b={});const ae={definitionType:"function",params:Et(y),ifMode:b.ifMode,isFunction:(z=b.isFunction)!=null?z:!1,applyMode:b.applyMode,infix:(te=b.infix)!=null?te:!1,parse:b.parse,createAtom:b.createAtom,applyStyle:b.applyStyle,serialize:b.serialize,render:b.render};if(typeof a=="string")$t["\\"+a]=ae;else for(const ce of a)$t["\\"+ce]=ae}var Ut;function yn(a){return Ut||(Ut=Ke(xe)),a?Ke(be(be({},Ut),a)):Ut}function Bt(a,y){var b,z,te,ae;if(typeof a=="string"){let ce=0;const we=a;return/(^|[^\\])#1/.test(we)&&(ce=1),/(^|[^\\])#2/.test(we)&&(ce=2),/(^|[^\\])#3/.test(we)&&(ce=3),/(^|[^\\])#4/.test(we)&&(ce=4),/(^|[^\\])#5/.test(we)&&(ce=5),/(^|[^\\])#6/.test(we)&&(ce=6),/(^|[^\\])#7/.test(we)&&(ce=7),/(^|[^\\])#8/.test(we)&&(ce=8),/(^|[^\\])#9/.test(we)&&(ce=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(z=y==null?void 0:y.captureSelection)!=null?z:!0,args:ce,def:we}}return be({expand:(te=y==null?void 0:y.expand)!=null?te:!0,captureSelection:(ae=y==null?void 0:y.captureSelection)!=null?ae:!0,args:0},a)}function Ke(a){if(!a)return{};const y={};for(const b of Object.keys(a)){const z=a[b];if(z==null)delete y[b];else if(typeof z=="object"&&"package"in z)for(const te of Object.keys(z.package))y[te]=Bt(z.package[te],{expand:!z.primitive,captureSelection:z.captureSelection});else y[b]=Bt(z)}return y}function gt(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=Zt[a]:fe[a]&&(b={definitionType:"symbol",type:"mord",codepoint:fe[a]})}else if(y==="math"){if(b=Zt[a],!b&&a.length===1){const z=Nt("math",a.codePointAt(0));return z.startsWith("\\")?De(be({},gt(z,"math")),{command:z}):null}}else fe[a]?b={definitionType:"symbol",type:"mord",codepoint:fe[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function Vt(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function Nt(a,y){if(y===void 0)return"";if(a==="math"&&gn[y])return gn[y];if(a==="text"){const b=Object.keys(fe).find(z=>fe[z]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var Xt=[0,.68889,0,0,.72222],Mn=[0,.68889,0,0,.66667],Tn=[0,.68889,0,0,.77778],Rn=[0,.68889,0,0,.61111],ur=[.16667,.68889,0,0,.77778],vr=[0,.68889,0,0,.55556],dr=[0,0,0,0,.25],mn=[0,.825,0,0,2.33334],zn=[0,.9,0,0,2.33334],jn=[0,.68889,0,0,.54028],Xn=[-.03598,.46402,0,0,.5],Sr=[-.13313,.36687,0,0,1],Kr=[.01354,.52239,0,0,1],ar=[.01354,.52239,0,0,1.11111],Zn=[0,.54986,0,0,1],Wr=[0,.69224,0,0,.5],Gt=[0,.43056,0,0,1],or=[.08198,.58198,0,0,.77778],er=[.19444,.69224,0,0,.41667],Kn=[.1808,.675,0,0,1],En=[.19444,.69224,0,0,.83334],nr=[.13667,.63667,0,0,1],lr=[-.064,.437,0,0,1.334],xr=[.08167,.58167,0,0,.77778],jt=[0,.69224,0,0,.72222],Ue=[0,.69224,0,0,.66667],yt=[-.13313,.36687,0,0,.77778],ut=[.06062,.54986,0,0,.77778],rt=[0,.69224,0,0,.77778],_t=[.25583,.75583,0,0,.77778],Qt=[.25142,.75726,0,0,.77778],pn=[.20576,.70576,0,0,.77778],sn=[.30274,.79383,0,0,.77778],Bn=[.22958,.72958,0,0,.77778],Yn=[.1808,.675,0,0,.77778],cr=[.13667,.63667,0,0,.77778],$n=[.13597,.63597,0,0,.77778],en=[.03517,.54986,0,0,.77778],rn=[0,.675,0,0,.77778],Or=[.19444,.69224,0,0,.61111],kr=[0,.54986,0,0,.76042],Cr=[0,.54986,0,0,.66667],Dr=[.0391,.5391,0,0,.77778],qr=[.03517,.54986,0,0,1.33334],br=[.38569,.88569,0,0,.77778],fi=[.23222,.74111,0,0,.77778],Jt=[.19444,.69224,0,0,.77778],On=[0,.37788,0,0,.5],Hn=[0,.54986,0,0,.72222],qn=[0,.69224,0,0,.83334],kn=[.11111,.69224,0,0,.66667],Vn=[.26167,.75726,0,0,.77778],Pn=[.48256,.98256,0,0,.77778],fr=[.28481,.79383,0,0,.77778],Pr=[.08167,.58167,0,0,.22222],Gr=[.08167,.58167,0,0,.38889],pi=[0,.43056,.04028,0,.66667],gi=[.41951,.91951,0,0,.77778],Ri=[.24982,.74947,0,0,.38865],Si=[.08319,.58283,0,0,.75623],wi=[0,.10803,0,0,.27764],Zi=[0,.47534,0,0,.50181],ji=[.18906,.47534,0,0,.50181],Gi=[0,.69141,0,0,.50181],Bi=[.24982,.74947,0,0,.27764],Di=[0,.69141,0,0,.21471],zr=[.25,.75,0,0,.44722],li=[0,.64444,0,0,.575],Ii=[.08556,.58556,0,0,.89444],ya=[0,.69444,0,0,.89444],vi=[0,.68611,0,0,.9],jr=[0,.68611,0,0,.86944],Ir=[.25,.75,0,0,.575],Vi=[.25,.75,0,0,.31944],xi=[0,.69444,0,0,.63889],na=[0,.69444,0,0,.31944],ba=[0,.44444,0,0,.63889],oa=[0,.44444,0,0,.51111],xa=[0,.69444,0,0,.575],Na=[.13333,.63333,0,0,.89444],Po=[0,.44444,0,0,.31944],ki=[0,.69444,0,0,.86944],Hi=[0,.68611,0,0,.69166],Aa=[0,.68611,0,0,.83055],Ma=[0,.68611,0,0,.89444],lo=[0,.69444,0,0,.60278],hl=[.19444,.69444,0,0,.51111],qo=[0,.69444,0,0,.83055],co=[-.10889,.39111,0,0,1.14999],Ho=[.19444,.69444,0,0,.575],Vo=[.19444,.69444,0,0,1.14999],Qr=[.19444,.69444,0,0,.70277],Ei=[.05556,.75,0,0,.575],ri=[0,.68611,0,0,.95833],hi=[.08556,.58556,0,0,.76666],Ta=[-.02639,.47361,0,0,.575],vo=[0,.44444,0,0,.89444],go=[0,.55556,0,0,.76666],So=[-.10889,.39111,0,0,.89444],yo=[.00222,.50222,0,0,.89444],Lo=[.19667,.69667,0,0,.89444],nl=[.08556,.58556,0,0,1.14999],ea=[0,.69444,0,0,.70277],gl=[-.02778,.47222,0,0,.575],ol=[.25,.75,0,0,.51111],pl=[-.13889,.36111,0,0,1.14999],Xl=[.19444,.69444,0,0,1.02222],hr=[.12963,.69444,0,0,.89444],Gn=[.19444,.69444,0,0,.44722],gr=[0,.64444,.13167,0,.59111],Vr=[.19444,.64444,.13167,0,.59111],Xr=[0,.68611,.17208,0,.8961],si=[.19444,.44444,.105,0,.53222],pr=[0,.44444,.085,0,.82666],Jr=[0,.69444,.06709,0,.59111],Li=[0,.69444,.12945,0,.35555],Oi=[0,.69444,0,0,.94888],la=[0,.69444,.11472,0,.59111],mi=[0,.68611,.10778,0,.88555],Pa=[0,.69444,.07939,0,.62055],qa=[0,.69444,.12417,0,.30667],Ka=[0,.64444,.13556,0,.51111],Yi=[.19444,.64444,.13556,0,.51111],pa=[0,.68333,.16389,0,.74333],eo=[.19444,.43056,.08847,0,.46],ro=[0,.43056,.07514,0,.71555],xo=[0,.69444,.06646,0,.51111],Wl=[0,.69444,0,0,.83129],Qo=[0,.69444,.1225,0,.51111],Cn=[0,.68333,.09403,0,.76666],wn=[0,.68333,.11111,0,.76666],tr=[0,.69444,.06961,0,.51444],Zr=[0,.69444,0,0,.27778],_r=[.25,.75,0,0,.38889],Ar=[0,.64444,0,0,.5],Mr=[0,.69444,0,0,.77778],Qn=[0,.68333,0,0,.75],Er=[0,.68333,0,0,.77778],Yr=[0,.68333,0,0,.68056],yi=[0,.68333,0,0,.72222],ma=[.25,.75,0,0,.5],Za=[.25,.75,0,0,.27778],Ya=[0,.69444,0,0,.5],to=[0,.69444,0,0,.55556],Ia=[0,.43056,0,0,.44445],Xi=[0,.43056,0,0,.5],Lr=[.19444,.43056,0,0,.55556],aa=[0,.43056,0,0,.55556],Ba=[.08333,.58333,0,0,.77778],fo=[0,.43056,0,0,.27778],no=[0,.66786,0,0,.27778],ja=[0,.69444,0,0,.75],Ao=[0,.66786,0,0,.5],Ua=[0,.68333,0,0,.625],Ni=[.19444,.69444,0,0,.44445],Bo=[0,.69444,0,0,.72222],bo=[.19444,.69444,0,0,.5],ll=[.19444,.69444,0,0,1],zl=[.011,.511,0,0,1.126],Yt=[.19444,.69444,0,0,.61111],hn=[.05556,.75,0,0,.5],bn=[0,.68333,0,0,.83334],rr=[.0391,.5391,0,0,.66667],Ki=[-.05555,.44445,0,0,.5],Br=[0,.43056,0,0,.77778],ai=[0,.55556,0,0,.66667],ei=[-.03625,.46375,0,0,.77778],ui=[-.01688,.48312,0,0,.77778],Ai=[.0391,.5391,0,0,1],ir=[0,.69444,0,0,.61111],ti=[-.03472,.46528,0,0,.5],Mi=[.25,.75,0,0,.44445],va=[-.14236,.35764,0,0,1],ii=[.244,.744,0,0,.412],ca=[.19444,.69444,0,0,.88889],Fi=[.12963,.69444,0,0,.77778],Hr=[.19444,.69444,0,0,.38889],Ur=[.011,.511,0,0,1.638],ga=[.19444,.69444,0,0,0],Ga=[0,.44444,0,0,.575],Ci=[.19444,.44444,0,0,.575],wa=[0,.68611,0,0,.75555],Qi=[0,.69444,0,0,.66759],Ea=[0,.68611,0,0,.80555],dl=[0,.68611,.08229,0,.98229],Dl=[0,.68611,0,0,.76666],Zl=[0,.44444,0,0,.58472],rs=[.19444,.44444,0,0,.6118],ho=[.19444,.43056,0,0,.5],Bs=[0,.68333,.02778,.08334,.76278],xs=[0,.68333,.08125,.05556,.83125],No=[0,.43056,0,.05556,.48472],yl=[.19444,.43056,0,.08334,.51702],ml=[.25,.75,0,0,.42778],Ko=[0,.69444,0,0,.55],_l=[0,.69444,0,0,.73334],js=[0,.69444,0,0,.79445],Vu=[0,.69444,0,0,.51945],Au=[0,.69444,0,0,.70278],_u=[0,.69444,0,0,.76389],xu=[.25,.75,0,0,.34306],du=[0,.69444,0,0,.56111],Uu=[0,.69444,0,0,.25556],fu=[.19444,.45833,0,0,.56111],Gu=[0,.45833,0,0,.56111],hu=[0,.69444,0,0,.30556],Bu=[0,.69444,0,0,.58056],Vs=[0,.69444,0,0,.67223],pu=[0,.69444,0,0,.85556],eu=[0,.69444,0,0,.55834],ks=[0,.65556,.11156,0,.5],Eu=[0,.69444,.08094,0,.70834],ic=[.17014,0,0,0,.44445],Tu=[0,.69444,.0799,0,.5],vc=[0,.69444,0,0,.73752],sr=[0,.69444,.09205,0,.5],Ui=[0,.69444,.09031,0,.77778],Co=[0,.69444,.07816,0,.27778],Wa=[0,.69444,.00316,0,.5],Te=[.19444,.69444,0,0,.83334],ot=[.05556,.75,0,0,.83334],Rt=[0,.75,0,0,.5],qt=[.125,.08333,0,0,.27778],an=[0,.08333,0,0,.27778],cn=[0,.65556,0,0,.5],Fn=[0,.69444,0,0,.47222],Un=[0,.69444,0,0,.66667],Wn=[0,.69444,0,0,.59722],_n=[0,.69444,0,0,.54167],Fr=[0,.69444,0,0,.70834],yr=[.25,.75,0,0,.28889],$r=[0,.69444,0,0,.51667],ni=[0,.44444,0,0,.44445],ci=[.19444,.44444,0,0,.51667],Ji=[0,.44444,0,0,.38333],Pi=[0,.44444,0,0,.51667],$i=[0,.69444,0,0,.83334],qi=[.35001,.85,0,0,.45834],Sa=[.35001,.85,0,0,.57778],Xa=[.35001,.85,0,0,.41667],io=[.35001,.85,0,0,.58334],_a=[0,.72222,0,0,.55556],Do=[1e-5,.6,0,0,.66667],To=[1e-5,.6,0,0,.77778],ka=[.25001,.75,0,0,.94445],Ha=[.306,.805,.19445,0,.47222],Fa=[.30612,.805,.19445,0,.47222],Wi=[.25001,.75,0,0,.83334],Oa=[.35001,.85,0,0,.47222],wo=[.25001,.75,0,0,1.11111],Wo=[.65002,1.15,0,0,.59722],po=[.65002,1.15,0,0,.81111],sa=[.65002,1.15,0,0,.47222],_o=[.65002,1.15,0,0,.66667],zo=[0,.75,0,0,1],fl=[.55001,1.05,0,0,1.27778],sl=[.862,1.36,.44445,0,.55556],El=[.86225,1.36,.44445,0,.55556],Fl=[.55001,1.05,0,0,1.11111],Ro=[.65002,1.15,0,0,.52778],Hl=[.65002,1.15,0,0,.61111],Jo=[.55001,1.05,0,0,1.51112],Il=[.95003,1.45,0,0,.73611],Ml=[.95003,1.45,0,0,1.04445],as=[.95003,1.45,0,0,.52778],so=[.95003,1.45,0,0,.75],ao=[0,.75,0,0,1.44445],oo=[.95003,1.45,0,0,.58334],Qa=[1.25003,1.75,0,0,.79167],rl=[1.25003,1.75,0,0,1.27778],Ja=[1.25003,1.75,0,0,.58334],Io=[1.25003,1.75,0,0,.80556],Xo=[0,.825,0,0,1.8889],Yo=[1.25003,1.75,0,0,.63889],Es=[.64502,1.155,0,0,.875],Jl=[1e-5,.6,0,0,.875],Ys=[-99e-5,.601,0,0,.66667],Ul=[.64502,1.155,0,0,.66667],tu=[1e-5,.9,0,0,.88889],Gl=[.65002,1.15,0,0,.88889],ys=[.90001,0,0,0,.88889],Du=[-.00499,.605,0,0,1.05556],il=[0,.12,0,0,.45],_i=[0,.61111,0,0,.525],$o=[.08333,.69444,0,0,.525],Ql=[-.08056,.53055,0,0,.525],os=[-.05556,.55556,0,0,.525],Fo=[0,.43056,0,0,.525],Cl=[.22222,.43056,0,0,.525],$l=[0,0,0,0,.525],Us={"AMS-Regular":{32:dr,65:Xt,66:Mn,67:Xt,68:Xt,69:Mn,70:Rn,71:Tn,72:Tn,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Tn,76:Mn,77:[0,.68889,0,0,.94445],78:Xt,79:ur,80:Rn,81:ur,82:Xt,83:vr,84:Mn,85:Xt,86:Xt,87:[0,.68889,0,0,1],88:Xt,89:Xt,90:Mn,107:vr,160:dr,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:vr,295:jn,710:mn,732:zn,770:mn,771:zn,989:xr,1008:pi,8245:[0,.54986,0,0,.275],8463:jn,8487:Xt,8498:vr,8502:Mn,8503:[0,.68889,0,0,.44445],8504:Mn,8513:[0,.68889,0,0,.63889],8592:Xn,8594:Xn,8602:Sr,8603:Sr,8606:Kr,8608:Kr,8610:ar,8611:ar,8619:Zn,8620:Zn,8621:[-.13313,.37788,0,0,1.38889],8622:Sr,8624:Wr,8625:Wr,8630:Gt,8631:Gt,8634:or,8635:or,8638:er,8639:er,8642:er,8643:er,8644:Kn,8646:Kn,8647:Kn,8648:En,8649:Kn,8650:En,8651:Kr,8652:Kr,8653:Sr,8654:Sr,8655:Sr,8666:nr,8667:nr,8669:[-.13313,.37788,0,0,1],8672:lr,8674:lr,8705:[0,.825,0,0,.5],8708:vr,8709:xr,8717:[0,.43056,0,0,.42917],8722:Xn,8724:[.08198,.69224,0,0,.77778],8726:xr,8733:rt,8736:jt,8737:jt,8738:[.03517,.52239,0,0,.72222],8739:Pr,8740:[.25142,.74111,0,0,.27778],8741:Gr,8742:[.25142,.74111,0,0,.5],8756:Ue,8757:Ue,8764:yt,8765:[-.13313,.37788,0,0,.77778],8769:yt,8770:ei,8774:sn,8776:ui,8778:xr,8782:ut,8783:ut,8785:or,8786:or,8787:or,8790:rt,8791:Bn,8796:[.08198,.91667,0,0,.77778],8806:_t,8807:_t,8808:Qt,8809:Qt,8812:[.25583,.75583,0,0,.5],8814:pn,8815:pn,8816:sn,8817:sn,8818:Bn,8819:Bn,8822:Yn,8823:Yn,8828:cr,8829:cr,8830:Bn,8831:Bn,8832:pn,8833:pn,8840:sn,8841:sn,8842:$n,8843:$n,8847:en,8848:en,8858:or,8859:or,8861:or,8862:rn,8863:rn,8864:rn,8865:rn,8872:[0,.69224,0,0,.61111],8873:jt,8874:[0,.69224,0,0,.88889],8876:Rn,8877:Rn,8878:Xt,8879:Xt,8882:en,8883:en,8884:cr,8885:cr,8888:[0,.54986,0,0,1.11111],8890:Lr,8891:Or,8892:Or,8901:[0,.54986,0,0,.27778],8903:xr,8905:xr,8906:xr,8907:rt,8908:rt,8909:[-.03598,.46402,0,0,.77778],8910:kr,8911:kr,8912:en,8913:en,8914:Cr,8915:Cr,8916:Ue,8918:Dr,8919:Dr,8920:qr,8921:qr,8922:br,8923:br,8926:cr,8927:cr,8928:sn,8929:sn,8934:fi,8935:fi,8936:fi,8937:fi,8938:pn,8939:pn,8940:sn,8941:sn,8994:Jt,8995:Jt,9416:[.15559,.69224,0,0,.90222],9484:Wr,9488:Wr,9492:On,9496:On,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:rn,9633:rn,9650:Hn,9651:Hn,9654:en,9660:Hn,9661:Hn,9664:en,9674:kn,9733:[.19444,.69224,0,0,.94445],10003:qn,10016:qn,10731:kn,10846:[.19444,.75583,0,0,.61111],10877:cr,10878:cr,10885:_t,10886:_t,10887:$n,10888:$n,10889:Vn,10890:Vn,10891:Pn,10892:Pn,10901:cr,10902:cr,10933:Qt,10934:Qt,10935:Vn,10936:Vn,10937:Vn,10938:Vn,10949:_t,10950:_t,10955:fr,10956:fr,57350:Pr,57351:Gr,57352:xr,57353:pi,57356:Qt,57357:Qt,57358:gi,57359:sn,57360:sn,57361:gi,57366:Qt,57367:Qt,57368:Qt,57369:Qt,57370:$n,57371:$n},"Caligraphic-Regular":{32:dr,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:dr},"Fraktur-Regular":{32:dr,33:[0,.69141,0,0,.29574],34:Di,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Ri,41:Ri,42:[0,.62119,0,0,.27764],43:Si,44:wi,45:Si,46:wi,47:[.24982,.74947,0,0,.50181],48:Zi,49:Zi,50:Zi,51:ji,52:ji,53:ji,54:Gi,55:ji,56:Gi,57:ji,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:Bi,93:Bi,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:dr,8216:Di,8217:Di,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:dr,33:[0,.69444,0,0,.35],34:lo,35:[.19444,.69444,0,0,.95833],36:Ei,37:[.05556,.75,0,0,.95833],38:ya,39:na,40:zr,41:zr,42:[0,.75,0,0,.575],43:Na,44:[.19444,.15556,0,0,.31944],45:Ji,46:[0,.15556,0,0,.31944],47:Ir,48:li,49:li,50:li,51:li,52:li,53:li,54:li,55:li,56:li,57:li,58:Po,59:[.19444,.44444,0,0,.31944],60:Ii,61:So,62:Ii,63:[0,.69444,0,0,.54305],64:ya,65:jr,66:[0,.68611,0,0,.81805],67:Aa,68:[0,.68611,0,0,.88194],69:wa,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:vi,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Hi,77:[0,.68611,0,0,1.09166],78:vi,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:jr,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Vi,92:Ir,93:Vi,94:xa,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:xi,99:oa,100:xi,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:xi,105:na,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:na,109:[0,.44444,0,0,.95833],110:ba,111:Ga,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:ba,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:oa,123:Ir,124:Vi,125:Ir,126:[.35,.34444,0,0,.575],160:dr,163:[0,.69444,0,0,.86853],168:xa,172:[0,.44444,0,0,.76666],176:ki,177:Na,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Na,216:[.04861,.73472,0,0,.89444],223:Wn,230:[0,.44444,0,0,.83055],247:Na,248:[.09722,.54167,0,0,.575],305:Po,338:[0,.68611,0,0,1.16944],339:vo,567:[.19444,.44444,0,0,.35139],710:xa,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:xa,715:xa,728:xa,729:na,730:ki,732:xa,733:xa,915:Hi,916:ri,920:Ma,923:Ea,926:Dl,928:vi,931:Aa,933:Ma,934:Aa,936:Ma,937:Aa,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:na,8217:na,8220:lo,8221:lo,8224:hl,8225:hl,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:Qi,8465:qo,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:qo,8501:ea,8592:co,8593:Ho,8594:co,8595:Ho,8596:co,8597:Ir,8598:Vo,8599:Vo,8600:Vo,8601:Vo,8636:co,8637:co,8640:co,8641:co,8656:co,8657:Qr,8658:co,8659:Qr,8660:co,8661:[.25,.75,0,0,.70277],8704:xi,8706:[0,.69444,.06389,0,.62847],8707:xi,8709:Ei,8711:ri,8712:hi,8715:hi,8722:Na,8723:Na,8725:Ir,8726:Ir,8727:gl,8728:Ta,8729:Ta,8730:[.18,.82,0,0,.95833],8733:vo,8734:[0,.44444,0,0,1.14999],8736:jt,8739:Vi,8741:Ir,8743:go,8744:go,8745:go,8746:go,8747:[.19444,.69444,.12778,0,.56875],8764:So,8768:[.19444,.69444,0,0,.31944],8771:yo,8776:[.02444,.52444,0,0,.89444],8781:yo,8801:yo,8804:Lo,8805:Lo,8810:nl,8811:nl,8826:Ii,8827:Ii,8834:Ii,8835:Ii,8838:Lo,8839:Lo,8846:go,8849:Lo,8850:Lo,8851:go,8852:go,8853:Na,8854:Na,8855:Na,8856:Na,8857:Na,8866:ea,8867:ea,8868:ya,8869:ya,8900:Ta,8901:[-.02639,.47361,0,0,.31944],8902:gl,8968:ol,8969:ol,8970:ol,8971:ol,8994:pl,8995:pl,9651:Xl,9657:gl,9661:Xl,9667:gl,9711:Vo,9824:hr,9825:hr,9826:hr,9827:hr,9837:[0,.75,0,0,.44722],9838:Gn,9839:Gn,10216:zr,10217:zr,10815:vi,10927:Lo,10928:Lo,57376:ga},"Main-BoldItalic":{32:dr,33:[0,.69444,.11417,0,.38611],34:Pa,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:Li,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:gr,49:gr,50:gr,51:gr,52:Vr,53:gr,54:gr,55:Vr,56:gr,57:gr,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:la,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:Xr,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:Xr,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:Jr,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:si,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:si,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:dr,168:[0,.69444,.11473,0,.59111],176:Oi,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:pr,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:pr,567:[.19444,.44444,.04611,0,.385],710:Jr,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:Li,730:Oi,732:la,733:la,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:Xr,931:[0,.68611,.11431,0,.82666],933:mi,934:[0,.68611,.05632,0,.82666],936:mi,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:Li,8217:Li,8220:[0,.69444,.16772,0,.62055],8221:Pa},"Main-Italic":{32:dr,33:qa,34:tr,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:qa,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:Ka,49:Ka,50:Ka,51:Ka,52:Yi,53:Ka,54:Ka,55:Yi,56:Ka,57:Ka,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:Qo,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:pa,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:pa,79:Cn,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:pa,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:xo,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:eo,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:eo,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:dr,168:[0,.66786,.10474,0,.51111],176:Wl,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:ro,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:ro,710:xo,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:Wl,732:[0,.66786,.11585,0,.51111],733:Qo,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Cn,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:pa,931:[0,.68333,.12028,0,.71555],933:wn,934:[0,.68333,.05986,0,.71555],936:wn,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:qa,8217:qa,8220:[0,.69444,.1685,0,.51444],8221:tr,8463:jn},"Main-Regular":{32:dr,33:Zr,34:Ya,35:Te,36:hn,37:ot,38:Mr,39:Zr,40:_r,41:_r,42:Rt,43:Ba,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:ma,48:Ar,49:Ar,50:Ar,51:Ar,52:Ar,53:Ar,54:Ar,55:Ar,56:Ar,57:Ar,58:fo,59:[.19444,.43056,0,0,.27778],60:Dr,61:yt,62:Dr,63:Fn,64:Mr,65:Qn,66:[0,.68333,0,0,.70834],67:yi,68:[0,.68333,0,0,.76389],69:Yr,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Qn,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Er,76:Ua,77:[0,.68333,0,0,.91667],78:Qn,79:Er,80:Yr,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:yi,85:Qn,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Qn,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:Za,92:ma,93:Za,94:Ya,95:[.31,.12056,.02778,0,.5],97:Xi,98:to,99:Ia,100:to,101:Ia,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:to,105:no,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Zr,109:[0,.43056,0,0,.83334],110:aa,111:Xi,112:Lr,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:aa,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:Ia,123:ma,124:Za,125:ma,126:[.35,.31786,0,0,.5],160:dr,163:[0,.69444,0,0,.76909],167:Ni,168:Ao,172:[0,.43056,0,0,.66667],176:ja,177:Ba,182:Yt,184:ic,198:[0,.68333,0,0,.90278],215:Ba,216:[.04861,.73194,0,0,.77778],223:Ya,230:[0,.43056,0,0,.72222],247:Ba,248:[.09722,.52778,0,0,.5],305:fo,338:[0,.68333,0,0,1.01389],339:Br,567:[.19444,.43056,0,0,.30556],710:Ya,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Ya,715:Ya,728:Ya,729:no,730:ja,732:Ao,733:Ya,915:Ua,916:bn,920:Er,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Qn,931:yi,933:Er,934:yi,936:Er,937:yi,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:Zr,8217:Zr,8220:Ya,8221:Ya,8224:Ni,8225:Ni,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:jn,8465:Bo,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Bo,8501:ir,8592:Sr,8593:bo,8594:Sr,8595:bo,8596:Sr,8597:ma,8598:ll,8599:ll,8600:ll,8601:ll,8614:[.011,.511,0,0,1],8617:zl,8618:zl,8636:Sr,8637:Sr,8640:Sr,8641:Sr,8652:[.011,.671,0,0,1],8656:Sr,8657:Yt,8658:Sr,8659:Yt,8660:Sr,8661:[.25,.75,0,0,.61111],8704:to,8706:[0,.69444,.05556,.08334,.5309],8707:to,8709:hn,8711:bn,8712:rr,8715:rr,8722:Ba,8723:Ba,8725:ma,8726:ma,8727:ti,8728:Ki,8729:Ki,8730:[.2,.8,0,0,.83334],8733:Br,8734:Gt,8736:jt,8739:Za,8741:ma,8743:ai,8744:ai,8745:ai,8746:ai,8747:[.19444,.69444,.11111,0,.41667],8764:yt,8768:[.19444,.69444,0,0,.27778],8771:ei,8773:[-.022,.589,0,0,1],8776:ui,8781:ei,8784:[-.133,.67,0,0,.778],8801:ei,8804:$n,8805:$n,8810:Ai,8811:Ai,8826:Dr,8827:Dr,8834:Dr,8835:Dr,8838:$n,8839:$n,8846:ai,8849:$n,8850:$n,8851:ai,8852:ai,8853:Ba,8854:Ba,8855:Ba,8856:Ba,8857:Ba,8866:ir,8867:ir,8868:Mr,8869:Mr,8872:[.249,.75,0,0,.867],8900:Ki,8901:[-.05555,.44445,0,0,.27778],8902:ti,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:Mi,8969:Mi,8970:Mi,8971:Mi,8994:va,8995:va,9136:ii,9137:ii,9651:ca,9657:ti,9661:ca,9667:ti,9711:ll,9824:Fi,9825:Fi,9826:Fi,9827:Fi,9837:[0,.75,0,0,.38889],9838:Hr,9839:Hr,10216:_r,10217:_r,10222:ii,10223:ii,10229:[.011,.511,0,0,1.609],10230:Ur,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:Ur,10815:Qn,10927:$n,10928:$n,57376:ga},"Math-BoldItalic":{32:dr,48:Ga,49:Ga,50:Ga,51:Ci,52:Ci,53:Ci,54:li,55:Ci,56:li,57:Ci,65:jr,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:dl,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:wa,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:Qi,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:Zl,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:dr,915:[0,.68611,.15972,0,.65694],916:ri,920:[0,.68611,.03194,0,.86722],923:Ea,926:[0,.68611,.07458,0,.84125],928:dl,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:Dl,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:Zl,960:[0,.44444,.03704,0,.68241],961:rs,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:rs,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:dr,48:Xi,49:Xi,50:Xi,51:ho,52:ho,53:ho,54:Ar,55:ho,56:Ar,57:ho,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:xs,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:Bs,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:No,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:dr,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Bs,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:xs,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:No,960:[0,.43056,.03588,0,.57003],961:yl,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:yl,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:dr,33:[0,.69444,0,0,.36667],34:eu,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:hu,40:ml,41:ml,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:Ko,49:Ko,50:Ko,51:Ko,52:Ko,53:Ko,54:Ko,55:Ko,56:Ko,57:Ko,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Vu,64:_l,65:_l,66:_l,67:Au,68:js,69:[0,.69444,0,0,.64167],70:ir,71:_l,72:js,73:[0,.69444,0,0,.33056],74:Vu,75:_u,76:Bu,77:[0,.69444,0,0,.97778],78:js,79:js,80:Au,81:[.10556,.69444,0,0,.79445],82:Au,83:ir,84:_l,85:_u,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:_l,89:[0,.69444,.0275,0,.73334],90:Vs,91:xu,93:xu,94:Ko,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:du,99:[0,.45833,0,0,.48889],100:du,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:du,105:Uu,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Uu,109:[0,.45833,0,0,.86667],110:Gu,111:[0,.45833,0,0,.55],112:fu,113:fu,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Gu,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:dr,168:Ko,176:_l,180:Ko,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Ko,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Ko,729:hu,730:_l,732:Ko,733:Ko,915:Bu,916:[0,.69444,0,0,.91667],920:pu,923:Vs,926:_l,928:js,931:js,933:pu,934:js,936:pu,937:js,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:hu,8217:hu,8220:eu,8221:eu},"SansSerif-Italic":{32:dr,33:[0,.69444,.05733,0,.31945],34:Wa,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:Co,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:qt,45:[0,.44444,.01946,0,.33333],46:an,47:[.25,.75,.13164,0,.5],48:ks,49:ks,50:ks,51:ks,52:ks,53:ks,54:ks,55:ks,56:ks,57:ks,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:Un,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:Eu,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:_n,77:[0,.69444,.08094,0,.875],78:Eu,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:Tu,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:dr,168:[0,.67937,.06385,0,.5],176:vc,184:ic,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Tu,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:sr,715:Ya,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:vc,732:[0,.67659,.08826,0,.5],733:sr,915:[0,.69444,.13372,0,.54167],916:$i,920:[0,.69444,.07555,0,.77778],923:ir,926:[0,.69444,.12816,0,.66667],928:Eu,931:[0,.69444,.11983,0,.72222],933:Ui,934:[0,.69444,.04603,0,.72222],936:Ui,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:Co,8217:Co,8220:[0,.69444,.14205,0,.5],8221:Wa},"SansSerif-Regular":{32:dr,33:[0,.69444,0,0,.31945],34:Ya,35:Te,36:hn,37:ot,38:[0,.69444,0,0,.75834],39:Zr,40:_r,41:_r,42:Rt,43:Ba,44:qt,45:[0,.44444,0,0,.33333],46:an,47:ma,48:cn,49:cn,50:cn,51:cn,52:cn,53:cn,54:cn,55:cn,56:cn,57:cn,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:Fn,64:Un,65:Un,66:Un,67:xi,68:[0,.69444,0,0,.72223],69:Wn,70:[0,.69444,0,0,.56945],71:Un,72:Fr,73:Zr,74:Fn,75:[0,.69444,0,0,.69445],76:_n,77:[0,.69444,0,0,.875],78:Fr,79:[0,.69444,0,0,.73611],80:xi,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:to,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:Un,89:[0,.69444,.025,0,.66667],90:ir,91:yr,93:yr,94:Ya,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:$r,99:ni,100:$r,101:ni,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:$r,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:Pi,111:[0,.44444,0,0,.5],112:ci,113:ci,114:[0,.44444,.01389,0,.34167],115:Ji,116:[0,.57143,0,0,.36111],117:Pi,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:dr,168:[0,.67937,0,0,.5],176:Un,184:ic,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Ya,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Ya,715:Ya,728:Ya,729:[0,.67937,0,0,.27778],730:Un,732:[0,.67659,0,0,.5],733:Ya,915:_n,916:$i,920:Mr,923:ir,926:Un,928:Fr,931:Bo,933:Mr,934:Bo,936:Mr,937:Bo,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:Zr,8217:Zr,8220:Ya,8221:Ya},"Script-Regular":{32:dr,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:dr},"Size1-Regular":{32:dr,40:qi,41:qi,47:Sa,91:Xa,92:Sa,93:Xa,123:io,125:io,160:dr,710:_a,732:_a,770:_a,771:_a,8214:[-99e-5,.601,0,0,.77778],8593:Do,8595:Do,8657:To,8659:To,8719:ka,8720:ka,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:Fa,8748:Ha,8749:Ha,8750:Fa,8896:Wi,8897:Wi,8898:Wi,8899:Wi,8968:Oa,8969:Oa,8970:Oa,8971:Oa,9168:Ys,10216:Oa,10217:Oa,10752:wo,10753:wo,10754:wo,10756:Wi,10758:Wi},"Size2-Regular":{32:dr,40:Wo,41:Wo,47:po,91:sa,92:po,93:sa,123:_o,125:_o,160:dr,710:zo,732:zo,770:zo,771:zo,8719:fl,8720:fl,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:El,8748:sl,8749:sl,8750:El,8896:Fl,8897:Fl,8898:Fl,8899:Fl,8968:Ro,8969:Ro,8970:Ro,8971:Ro,10216:Hl,10217:Hl,10752:Jo,10753:Jo,10754:Jo,10756:Fl,10758:Fl},"Size3-Regular":{32:dr,40:Il,41:Il,47:Ml,91:as,92:Ml,93:as,123:so,125:so,160:dr,710:ao,732:ao,770:ao,771:ao,8730:[.95003,1.45,0,0,1],8968:oo,8969:oo,8970:oo,8971:oo,10216:so,10217:so},"Size4-Regular":{32:dr,40:Qa,41:Qa,47:rl,91:Ja,92:rl,93:Ja,123:Io,125:Io,160:dr,710:Xo,732:Xo,770:Xo,771:Xo,8730:[1.25003,1.75,0,0,1],8968:Yo,8969:Yo,8970:Yo,8971:Yo,9115:Es,9116:Jl,9117:Es,9118:Es,9119:Jl,9120:Es,9121:Ul,9122:Ys,9123:Ul,9124:Ul,9125:Ys,9126:Ul,9127:tu,9128:Gl,9129:ys,9130:[0,.3,0,0,.88889],9131:tu,9132:Gl,9133:ys,9143:[.88502,.915,0,0,1.05556],10216:Io,10217:Io,57344:Du,57345:Du,57680:il,57681:il,57682:il,57683:il},"Typewriter-Regular":{32:$l,33:_i,34:_i,35:_i,36:$o,37:$o,38:_i,39:_i,40:$o,41:$o,42:[0,.52083,0,0,.525],43:Ql,44:[.13889,.125,0,0,.525],45:Ql,46:[0,.125,0,0,.525],47:$o,48:_i,49:_i,50:_i,51:_i,52:_i,53:_i,54:_i,55:_i,56:_i,57:_i,58:Fo,59:[.13889,.43056,0,0,.525],60:os,61:[-.19549,.41562,0,0,.525],62:os,63:_i,64:_i,65:_i,66:_i,67:_i,68:_i,69:_i,70:_i,71:_i,72:_i,73:_i,74:_i,75:_i,76:_i,77:_i,78:_i,79:_i,80:_i,81:[.13889,.61111,0,0,.525],82:_i,83:_i,84:_i,85:_i,86:_i,87:_i,88:_i,89:_i,90:_i,91:$o,92:$o,93:$o,94:_i,95:[.09514,0,0,0,.525],96:_i,97:Fo,98:_i,99:Fo,100:_i,101:Fo,102:_i,103:Cl,104:_i,105:_i,106:[.22222,.61111,0,0,.525],107:_i,108:_i,109:Fo,110:Fo,111:Fo,112:Cl,113:Cl,114:Fo,115:Fo,116:[0,.55358,0,0,.525],117:Fo,118:Fo,119:Fo,120:Fo,121:Cl,122:Fo,123:$o,124:$o,125:$o,126:_i,127:_i,160:$l,176:_i,184:[.19445,0,0,0,.525],305:Fo,567:Cl,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:_i,715:_i,728:_i,730:_i,770:_i,771:_i,776:_i,915:_i,916:_i,920:_i,923:_i,926:_i,928:_i,931:_i,933:_i,934:_i,936:_i,937:_i,8216:_i,8217:_i,8242:_i,9251:[.11111,.21944,0,0,.525]}},Cu=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,Tl=10,ps=.25,nu=1.2,Cs=.431,Fs={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[Cs,Cs,Cs],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:[ps,ps,ps],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]},ls=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ll=5,Rl={"\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 Ps(a,y){a===void 0&&(a=77);const b=Us[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 z=String.fromCodePoint(a);if(z in Rl)a=Rl[z].codePointAt(0);else if(Cu.test(z))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 Mu={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]},Rs={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]},Gs={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 Ru(a){if(Rs[a]){const[He,qe,It]=Rs[a],nn=`<span class="stretchy" style="height:${It}em"><svg width="100%" height="${It}em" viewBox="0 0 ${He} ${qe}" preserveAspectRatio="none" ><path fill="currentcolor" d="${Gs[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*It/2)/100}em;min-width:0">${nn}</span>`}const[y,b,z,te]=Mu[a];let ae,ce;const we=z/1e3;y.length===3?(ae=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],ce=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(ae=["slice-1-of-2","slice-2-of-2"],ce=["xMinYMin","xMaxYMin"]):(ae=["slice-1-of-1"],ce=[te]);const ke=y.map((He,qe)=>`<span class="${ae[qe]}" style=height:${we}em><svg width=400em height=${we}em viewBox="0 0 400000 ${z}" preserveAspectRatio="${ce[qe]} slice"><path fill="currentcolor" d="${Gs[He]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${we}em;min-width:${b}em;">${ke}</span>`}function _c(a){return Mu[a]?Mu[a][2]/1e3:Rs[a][2]}function ul(a){const y=[];for(let b=0;b<a.length;b++){let z=a.charCodeAt(b);if(z===13&&a.charCodeAt(b+1)===10&&(z=10,b++),(z===13||z===12)&&(z=10),z===0&&(z=65533),z>=55296&&z<=56319){const te=a.charCodeAt(b+1);if(te>=56320&&te<=57343){const ae=z-55296,ce=te-56320;z=td(2,16)+ae*td(2,10)+ce,b++}}y.push(z)}return y}var wl=8205,ms=[[wl,1],[65038,2],[127995,5],[129456,4],[917536,96]],Bl,is=[127462,127487];function ws(a){var y;if(Bl===void 0){Bl={};for(const b of ms)for(let z=b[0];z<=b[0]+b[1]-1;z++)Bl[z]=!0}return(y=Bl[a])!=null?y:!1}function zs(a){return a>=is[0]&&a<=is[1]}function ru(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=ul(a);let z=0;for(;z<b.length;){const te=b[z++],ae=b[z];if(ae===wl){const ce=z-1;for(z+=2;b[z]===wl;)z+=2;y.push(String.fromCodePoint(...b.slice(ce,z-ce+1)))}else if(ws(ae)){const ce=z-1;for(;ws(b[z]);)z+=b[z]===wl?2:1;y.push(String.fromCodePoint(...b.slice(ce,2*z-ce-1)))}else zs(te)?(z+=1,y.push(String.fromCodePoint(...b.slice(z-2,2)))):y.push(String.fromCodePoint(te))}return y}var nd=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=ru(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 Qu(a,y){var b,z,te,ae;const ce=[];let we=a.next();if(we&&we!=="\\relax"){if(we==="\\noexpand")we=a.next(),we&&ce.push(we);else if(we==="\\obeyspaces")a.obeyspaces=!0;else if(we==="\\bgroup")ce.push("<{>");else if(we==="\\egroup")ce.push("<}>");else if(we==="\\string"){if(we=a.next(),we)if(we.startsWith("\\"))for(const ke of we)ce.push(ke==="\\"?"\\backslash":ke);else we==="<{>"?ce.push("\\{"):we==="<space>"?ce.push("~"):we==="<}>"&&ce.push("\\}")}else if(we==="\\csname"){for(;a.peek()==="<space>";)a.next();let ke="",He=!1,qe=[];do{if(qe.length===0)if(/^#[\d?@]$/.test(a.peek())){const It=a.get().slice(1);qe=wu((z=(b=y==null?void 0:y(It))!=null?b:y==null?void 0:y("?"))!=null?z:"\\placeholder{}",y),we=qe[0]}else we=a.next(),qe=we?[we]:[];He=qe.length===0,!He&&we==="\\endcsname"&&(He=!0,qe.shift()),He||(He=we==="<$>"||we==="<$$>"||we==="<{>"||we==="<}>"||typeof we=="string"&&we.length>1&&we.startsWith("\\")),He||(ke+=qe.shift())}while(!He);ke&&ce.push("\\"+ke),ce.push(...qe)}else if(we!=="\\endcsname")if(we.length>1&&we.startsWith("#")){const ke=we.slice(1);ce.push(...wu((ae=(te=y==null?void 0:y(ke))!=null?te:y==null?void 0:y("?"))!=null?ae:"\\placeholder{}",y))}else ce.push(we)}return ce}function wu(a,y=null){const b=[];let z="";for(const ce of a.toString().split(/\r?\n/)){z&&b.push(z),z=" ";const we=ce.match(/((?:\\%)|[^%])*/);we!==null&&b.push(we[0])}const te=new nd(ct(b.join(""))),ae=[];do ae.push(...Qu(te,y));while(!te.end());return ae}function el(a){let y="";const b=[];for(const z of a)z&&(y&&/^[a-zA-Z\*]/.test(z)&&b.push(y),b.push(z),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(z)&&b.push(" "),y=/\\[a-zA-Z]+\*?$/.test(z)?" ":"");return b.join("")}function Kl(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:el([a,...y.map(b=>`{${b}}`)])}function ku(a){return el(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var ac=class sh{constructor(y){sh._registry[y]=this}static createAtom(y,b,z){return sh._registry[y].createAtom(b,gt(b,y),z)}static serialize(y,b){var z;if(!y||y.length===0)return"";if((z=b.skipStyles)!=null&&z){const te=[];for(const ae of gc(y)){const ce=sh._registry[ae[0].mode];te.push(...ce.serialize(ae,b))}return el(te)}return el(Tc(y,b))}static getFont(y,b,z){return sh._registry[y].getFont(b,z)}};ac._registry={};var iu=ac;function gc(a){const y=[];let b=[],z="NONE";for(const te of a)te.type!=="first"&&(te.mode!==z?(b.length>0&&y.push(b),b=[te],z=te.mode):b.push(te));return b.length>0&&y.push(b),y}function ss(a,y){const b=[];let z=[],te;for(const ae of a)if(ae.type!=="first"&&ae.style){let ce;y==="variant"?(ce=ae.style.variant,ae.style.variantStyle&&ae.style.variantStyle!=="up"&&(ce+="-"+ae.style.variantStyle)):ce=ae.style[y],ce===te?z.push(ae):(z.length>0&&b.push(z),z=[ae],te=ce)}return z.length>0&&b.push(z),b}function Mc(a,y){var b;const{parent:z}=a[0],te=z==null?void 0:z.computedStyle.color,ae=[];for(const ce of gc(a)){const we=y.defaultMode;for(const ke of ss(ce,"color")){const He=ke[0].computedStyle,qe=iu._registry[ke[0].mode].serialize(ke,De(be({},y),{defaultMode:we==="text"?"text":"math"}));!y.skipStyles&&He.color&&He.color!=="none"&&(!z||te!==He.color)?ae.push(Kl("\\textcolor",(b=He.verbatimColor)!=null?b:He.color,el(qe))):ae.push(el(qe))}}return ae}function gd(a,y){const{parent:b}=a[0],z=b==null?void 0:b.computedStyle.backgroundColor;return ss(a,"backgroundColor").map(te=>{var ae;if(te.length>0||te[0].type!=="box"){const ce=te[0].computedStyle;if(ce.backgroundColor&&ce.backgroundColor!=="none"&&(!b||z!==ce.backgroundColor))return Kl("\\colorbox",(ae=ce.verbatimBackgroundColor)!=null?ae:ce.backgroundColor,el(Mc(te,De(be({},y),{defaultMode:"text"}))))}return el(Mc(te,y))})}function Tc(a,y){if(a.length===0)return[];const{parent:b}=a[0],z=b==null?void 0:b.computedStyle.fontSize,te=[];for(const ae of ss(a,"fontSize")){const ce=ae[0].computedStyle.fontSize,we=gd(ae,y);we&&(ce&&ce!=="auto"&&(!b||z!==ce)?te.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][ce],...we):te.push(...we))}return te}function Rc(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 Yu(a){if(a.length===0)return"ord";const y=Rc(a[0].type),b=Rc(a[a.length-1].type);return y&&y===b?y:"ord"}function Xu(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 ta=class G0{constructor(y,b){var z,te,ae,ce,we;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:Fe(y)?this.children=y.filter(He=>He!==null):y&&y instanceof G0&&(this.children=[y]),this.children)for(const He of this.children)He.parent=this;this.type=(z=b==null?void 0:b.type)!=null?z:"ignore",this.isSelected=(b==null?void 0:b.isSelected)===!0,b!=null&&b.caret&&(this.caret=b.caret),this.classes=(te=b==null?void 0:b.classes)!=null?te:"",this.isTight=(ae=b==null?void 0:b.isTight)!=null?ae:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let ke=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(ke=(we=iu.getFont((ce=b.mode)!=null?ce:"math",this,De(be({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?we:void 0),ke||(ke="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),Ju(this,ke)}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,z){if(b===void 0)return;const te=Xu(b,z);te.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[y]=te)}setTop(y){Number.isFinite(y)&&Math.abs(y)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=Xu(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"]=Xu(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"]=Xu(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"]=Xu(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 z=y.color;z&&z!==b.color&&this.setStyle("color",z);let te=y.backgroundColor;this.isSelected&&(te=at(te)),te&&te!==b.backgroundColor&&(this.setStyle("background-color",te),this.setStyle("display","inline-block"));const ae=y.scalingFactor;return this.scale=ae,this.skew*=ae,this.italic*=ae,this}toMarkup(){var y,b,z,te;let ae=(y=this.value)!=null?y:"";if(this.children)for(const Sn of this.children)ae+=Sn.toMarkup();let ce="";if(this.svgBody)ce=Ru(this.svgBody);else if(this.svgOverlay){ce='<span style="',ce+="display: inline-block;",ce+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,ce+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,ce+='">',ce+=ae,ce+="</span>",ce+='<svg style="position:absolute;overflow:visible;',ce+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const Sn=(b=this.cssProperties)==null?void 0:b.padding;Sn?(ce+=`top:${Sn};`,ce+=`left:${Sn};`,ce+=`width:calc(100% - 2 * ${Sn} );`):ce+="top:0;left:0;width:100%;",ce+="z-index:2;",ce+='"',this.svgStyle&&(ce+=this.svgStyle),ce+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,ce+=`>${this.svgOverlay}</svg>`}let we="";const ke=this.classes.split(" ");ke.push((z={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?z:""),this.caret==="latex"&&ke.push("ML__latex-caret"),this.isSelected&&ke.push("ML__selected");const He=ke.length===1?ke[0]:ke.filter((Sn,In,Rr)=>Sn.length>0&&Rr.indexOf(Sn)===In).join(" ");if(He.length>0&&(we+=` class="${He}"`),this.id&&(we+=` data-atom-id=${this.id}`),this.cssId&&(we+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(we+=" "+Object.keys(this.attributes).map(Sn=>`${Sn}="${this.attributes[Sn]}"`).join(" ")),this.htmlData){const Sn=this.htmlData.split(",");for(const In of Sn){const Rr=In.match(/([^=]+)=(.+$)/);if(Rr){const ia=Rr[1].trim().replace(/ /g,"-");ia&&(we+=` data-${ia}="${Rr[2]}" `)}else{const ia=In.trim().replace(/ /g,"-");ia&&(we+=` data-${ia} `)}}}const qe=(te=this.cssProperties)!=null?te:{};this.hasExplicitWidth&&qe.width===void 0&&(qe.width=`${Math.ceil(this._width*100)/100}em`);const It=Object.keys(qe).map(Sn=>`${Sn}:${qe[Sn]}`);if(this.scale!==void 0&&this.scale!==1&&(ae.length>0||ce.length>0)&&It.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const Sn=this.htmlStyle.split(";");let In="";for(const Rr of Sn){const ia=Rr.match(/([^=]+):(.+$)/);if(ia){const Nr=ia[1].trim().replace(/ /g,"-");Nr&&(In+=`${Nr}:${ia[2]};`)}}In&&(we+=` style="${In}"`)}It.length>0&&(we+=` style="${It.join(";")}"`);let nn="";return we.length>0||ce.length>0?nn=`<span${we}>${ae}${ce}</span>`:nn=ae,this.caret==="text"?nn+='<span class="ML__text-caret"></span>':this.caret==="math"&&(nn+='<span class="ML__caret"></span>'),nn}tryCoalesceWith(y){if(this.svgBody||!this.value||y.svgBody||!y.value)return!1;const b=this.children&&this.children.length>0,z=y.children&&y.children.length>0;if(b||z)return!1;if(y.cssProperties||this.cssProperties){for(const ke of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&ke in y.cssProperties||this.cssProperties&&ke in this.cssProperties)return!1}const te=this.cssProperties?Object.keys(this.cssProperties).length:0,ae=y.cssProperties?Object.keys(y.cssProperties).length:0;if(te!==ae)return!1;if(te>0){for(const ke of Object.keys(this.cssProperties))if(this.cssProperties[ke]!==y.cssProperties[ke])return!1}const ce=this.classes.trim().replace(/\s+/g," ").split(" "),we=y.classes.trim().replace(/\s+/g," ").split(" ");if(ce.length!==we.length)return!1;ce.sort(),we.sort();for(const[ke,He]of ce.entries())if(He==="vertical-separator"||He!==we[ke])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 rd(a){if(!a||a.length===0)return[];a[0].children=rd(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=rd(a[b].children),y.push(a[b]));return y}function zc(a){return a.children&&(a.children=rd(a.children)),a}function Zc(a,y){if(!a)return new ta(null,y);const b=new ta(null,{classes:"ML__strut",type:"ignore"});b.setStyle("height",Math.max(0,a.height),"em");const z=[b];if(a.depth!==0){const te=new ta(null,{classes:"ML__strut--bottom",type:"ignore"});te.setStyle("height",a.height+a.depth,"em"),te.setStyle("vertical-align",-a.depth,"em"),z.push(te)}return z.push(a),new ta(z,De(be({},y),{type:"lift"}))}function mu(a){const y=_c(a)/2,b=new ta(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function Ju(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 z=0;z<a.value.length;z++){const te=Ps(a.value.codePointAt(z),y);a.height=Math.max(a.height,te.height),a.depth=Math.max(a.depth,te.depth),a._width+=te.width,a.skew=te.skew,a.italic=te.italic}return}if(a.children&&a.children.length>0){let z=-1/0,te=-1/0,ae=0;for(const ce of a.children)ce.height>z&&(z=ce.height),ce.depth>te&&(te=ce.depth),ae=Math.max(ae,(b=ce.maxFontSize)!=null?b:0);a.height=z,a.depth=te,a._width=a.children.reduce((ce,we)=>ce+we.width,0),a.maxFontSize=ae}}function yc(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const z=[b],te=-b.shift-b.box.depth;let ae=te;for(let ce=1;ce<y.length;ce++){const we=y[ce],ke=-we.shift-ae-we.box.depth,He=ke-(b.box.height+b.box.depth);ae=ae+ke,z.push(He),z.push(we),b=we}return[z,te]}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 oc(a){var y;const[b,z]=yc(a);if(!b)return[[],0,0];const te=new ta(null,{classes:"pstrut"});let ae=0;for(const In of b)if(typeof In!="number"){const Rr=In.box;ae=Math.max(ae,Rr.maxFontSize,Rr.height)}ae+=2,te.height=ae,te.setStyle("height",ae,"em");const ce=[];let we=z,ke=z,He=z,qe=0;for(const In of b){if(typeof In=="number")He+=In;else{const Rr=In.box,ia=(y=In.classes)!=null?y:[],Nr=new ta([te,Rr],{classes:ia.join(" "),style:In.style});Rr.setStyle("height",Rr.height+Rr.depth,"em"),Rr.setStyle("display","inline-block"),Nr.setStyle("top",-ae-He-Rr.depth,"em"),In.marginLeft&&Nr.setStyle("margin-left",In.marginLeft,"em"),In.marginRight&&Nr.setStyle("margin-right",In.marginRight,"em"),ce.push(Nr),He+=Rr.height+Rr.depth,qe=Math.max(qe,Nr.width)}we=Math.min(we,He),ke=Math.max(ke,He)}ce.forEach(In=>{In.softWidth=qe});const It=new ta(ce,{classes:"vlist"});if(It.softWidth=qe,It.height=ke,It.setStyle("height",ke,"em"),we>=0)return[[new ta(It,{classes:"vlist-r"})],ke,-we];const nn=new ta(new ta(null),{classes:"vlist"});nn.height=-we,nn.setStyle("height",-we,"em");const Sn=new ta(8203,{classes:"vlist-s",maxFontSize:0});return Sn.softWidth=0,Sn.height=0,Sn.depth=0,[[new ta([It,Sn],{classes:"vlist-r"}),new ta(nn,{classes:"vlist-r"})],ke,-we]}var kl=class extends ta{constructor(a,y){var b;const[z,te,ae]=oc(a);super(z.length===1?z[0]:z,{type:y==null?void 0:y.type,classes:((b=y==null?void 0:y.classes)!=null?b:"")+" vlist-t"+(z.length===2?" vlist-t2":"")}),this.height=te,this.depth=ae,this.softWidth=z.reduce((ce,we)=>Math.max(ce,we.width),0)}};function yd(a,y){var b,z,te,ae,ce;const we=a.metrics,ke=new ta(y.base),He=(b=y.baseShift)!=null?b:0,qe=(z=y.slant)!=null?z:0;let It=0,nn=0;y.above&&(It=(te=y.aboveShift)!=null?te:Math.max(we.bigOpSpacing1,we.bigOpSpacing3-y.above.depth)),y.below&&(nn=(ae=y.belowShift)!=null?ae:Math.max(we.bigOpSpacing2,we.bigOpSpacing4-y.below.height));let Sn=null;if(y.below&&y.above){const In=we.bigOpSpacing5+y.below.height+y.below.depth+nn+ke.depth+He;Sn=new kl({bottom:In,children:[we.bigOpSpacing5,{box:y.below,marginLeft:-qe,classes:["ML__center"]},nn,{box:ke,classes:["ML__center"]},It,{box:y.above,marginLeft:qe,classes:["ML__center"]},we.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)Sn=new kl({top:ke.height-He,children:[we.bigOpSpacing5,{box:y.below,marginLeft:-qe,classes:["ML__center"]},nn,{box:ke,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const In=ke.depth+He;Sn=new kl({bottom:In,children:[{box:ke,classes:["ML__center"]},It,{box:y.above,marginLeft:qe,classes:["ML__center"]},we.bigOpSpacing5]}).wrap(a)}else{const In=ke.depth+He;Sn=new kl({bottom:In,children:[{box:ke},we.bigOpSpacing5]}).wrap(a)}return new ta(Sn,{type:(ce=y.type)!=null?ce:"op"})}var kc=7,au=6,bc=5,Fu=4,zu=3,Is=2,Xs=1,Ds=0,Qs=class{constructor(a,y,b){this.id=a,this.sizeDelta=y,this.cramped=b;const z={"-4":2,"-3":1,0:0}[y];this.metrics=Object.keys(Fs).reduce((te,ae)=>De(be({},te),{[ae]:Fs[ae][z]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return bl[[Ds,Xs,Ds,Xs,Is,zu,Is,zu][this.id]]}get sub(){return bl[[Ds,Ds,Ds,Ds,Is,Is,Is,Is][this.id]]}get fracNum(){return bl[[Ds,Xs,Ds,Xs,Is,zu,Fu,bc][this.id]]}get fracDen(){return bl[[Ds,Ds,Ds,Ds,Is,Is,Fu,Fu][this.id]]}get cramp(){return bl[[Ds,Ds,Is,Is,Fu,Fu,au,au][this.id]]}get isTight(){return this.sizeDelta<0}},cl={7:new Qs(kc,0,!1),6:new Qs(au,0,!0),5:new Qs(bc,0,!1),4:new Qs(Fu,0,!0),3:new Qs(zu,-3,!1),2:new Qs(Is,-3,!0),1:new Qs(Xs,-4,!1),0:new Qs(Ds,-4,!0)},bl=De(be({},cl),{displaystyle:cl[kc],textstyle:cl[bc],scriptstyle:cl[zu],scriptscriptstyle:cl[Xs]});function Ns(a,y){var b;if(!a)return 0;const z={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:Tl,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 te=td(10,y);return Math.round(a.dimension/Tl*z*te)/te}return a.dimension*z}function Pu(a,y){if(a===null)return 0;const b=Ns(a)/Tl;if(Number.isFinite(y)){const z=td(10,y);return Math.round(b*z)/z}return b}function vu(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function id(a){let y=vu(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${vu(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${vu(a.shrink)}`),y}function us(a){var y,b;if(a==null)return null;let z="";if("dimension"in a&&(z=`${a.dimension}${(y=a.unit)!=null?y:"pt"}`),"glue"in a&&(z=id(a)),"number"in a)if(!("base"in a)||a.base==="decimal")z=Number(a.number).toString();else if(a.base==="alpha")z=`\`${String.fromCodePoint(a.number)}`;else{const te=Math.round(a.number)>>>0;a.base==="hexadecimal"?(z=Number(te).toString(16).toUpperCase(),te<=255?z=z.padStart(2,"0"):te<=65535?z=z.padStart(4,"0"):te<=16777215?z=z.padStart(6,"0"):z=z.padStart(8,"0"),z=`"${z}`):a.base==="octal"&&(z=Number(te).toString(8),te<=63?z=z.padStart(2,"0"):te<=30583?z=z.padStart(4,"0"):z=z.padStart(8,"0"),z=`'${z}`)}return"register"in a&&("factor"in a&&(a.factor===-1?z="-":a.factor!==1&&(z=Number(a.factor).toString())),"global"in a&&a.global&&(z+="\\global"),z+=`\\${a.register}`),"string"in a&&(z=a.string),(b=a.relax)!=null&&b&&(z+="\\relax"),z}function gu(a,y){return a==null?null:"number"in a?De(be({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?De(be({},a),{factor:a.factor*y}):De(be({},a),{factor:y}):"dimension"in a?De(be({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:gu(a.glue,y),shrink:gu(a.shrink,y),grow:gu(a.grow,y)}:a.shrink?{glue:gu(a.glue,y),shrink:gu(a.shrink,y)}:a.grow?{glue:gu(a.glue,y),grow:gu(a.grow,y)}:{glue:gu(a.glue,y)}:null}var ad={"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 $u(){return be({},ad)}function bd(){return{registers:$u(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:dt.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:mt,backgroundColorMap:Be,getMacro:a=>Vt(a,yn())}}var vl=class Q0{constructor(y,b){var z,te,ae,ce,we,ke,He,qe,It,nn,Sn,In,Rr,ia,Nr;let bi;y!=null&&y.parent?(this.parent=y.parent,bi=y.parent,this.registers={}):(bi=be(be({},bd()),(z=y==null?void 0:y.from)!=null?z:{}),this.registers=bi.registers),bi.atomIdsSettings&&(this.atomIdsSettings=be({},bi.atomIdsSettings)),this.renderPlaceholder=bi.renderPlaceholder,this.isPhantom=(ce=(ae=y==null?void 0:y.isPhantom)!=null?ae:(te=this.parent)==null?void 0:te.isPhantom)!=null?ce:!1,this.letterShapeStyle=bi.letterShapeStyle,this.minFontScale=bi.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(ke=(we=this.parent)==null?void 0:we.color)!=null?ke:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(qe=(He=this.parent)==null?void 0:He.backgroundColor)!=null?qe:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((It=this.parent)==null?void 0:It.size)?this.size=b.fontSize:this.size=(Sn=(nn=this.parent)==null?void 0:nn.size)!=null?Sn:Ll;let ua=(Rr=(In=this.parent)==null?void 0:In.mathstyle)!=null?Rr:bl.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(bi instanceof Q0)switch(y.mathstyle){case"cramp":ua=ua.cramp;break;case"superscript":ua=ua.sup;break;case"subscript":ua=ua.sub;break;case"numerator":ua=ua.fracNum;break;case"denominator":ua=ua.fracDen;break}switch(y.mathstyle){case"textstyle":ua=bl.textstyle;break;case"displaystyle":ua=bl.displaystyle;break;case"scriptstyle":ua=bl.scriptstyle;break;case"scriptscriptstyle":ua=bl.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=ua,this.smartFence=bi.smartFence,this.placeholderSymbol=bi.placeholderSymbol,this.colorMap=(ia=bi.colorMap)!=null?ia:Ti=>Ti,this.backgroundColorMap=(Nr=bi.backgroundColorMap)!=null?Nr:Ti=>Ti,this.getMacro=bi.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===kc||this.mathstyle.id===au}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(ls[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 z=this.registers[y];return typeof z=="object"&&"glue"in z?z:typeof z=="object"&&"dimension"in z?{glue:{dimension:z.dimension}}:typeof z=="number"?{glue:{dimension:z}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(y)}getRegisterAsEm(y,b){return Pu(this.getRegisterAsDimension(y),b)}getRegisterAsDimension(y){var b;if((b=this.registers)!=null&&b[y]){const z=this.registers[y];return typeof z=="object"&&"glue"in z?z.glue:typeof z=="object"&&"dimension"in z?z:typeof z=="number"?{dimension:z}: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 z=1;"factor"in y&&y.factor!==1&&y.factor!==void 0&&(z=y.factor);const te=b.getRegister(y.register);if(te===void 0)return;if(typeof te=="string")return{string:Number(te).toString()+te};if(typeof te=="number")return{number:z*te};const ae=b.evaluate(te);if(ae!==void 0)return"string"in ae?{string:Number(te).toString()+ae.string}:"number"in ae?{number:z*ae.number}:"dimension"in ae?De(be({},ae),{dimension:z*ae.dimension}):"glue"in ae?De(be({},ae),{glue:De(be({},ae.glue),{dimension:z*ae.glue.dimension}),shrink:ae.shrink?De(be({},ae.shrink),{dimension:z*ae.shrink.dimension}):void 0,grow:ae.grow?De(be({},ae.grow),{dimension:z*ae.grow.dimension}):void 0}):y}toDimension(y){const b=this.evaluate(y);return b===void 0?null:"dimension"in b?b:"glue"in b?b.glue:"number"in b?{dimension:b.number}:null}toEm(y,b){if(y===null)return 0;const z=this.toDimension(y);return z===null?0:Ns(z,b)/Tl}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,z;if(y===null)return null;const te=this.evaluate(y);return te===void 0?null:"string"in te?(z=(b=this.colorMap)==null?void 0:b.call(this,te.string))!=null?z:te.string:null}toBackgroundColor(y){var b,z;if(y===null)return null;const te=this.evaluate(y);return te===void 0?null:"string"in te?(z=(b=this.backgroundColorMap)==null?void 0:b.call(this,te.string))!=null?z:te.string:null}},Fc=["body","above","below","superscript","subscript"];function lc(a){return typeof a=="string"&&Fc.includes(a)}function od(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var oi=class md{constructor(y){var b,z,te,ae,ce,we;this.type=y.type,typeof y.value=="string"&&(this.value=y.value),this.command=(z=(b=y.command)!=null?b:this.value)!=null?z:"",this.mode=(te=y.mode)!=null?te:"math",y.isFunction&&(this.isFunction=!0),y.limits&&(this.subsupPlacement=y.limits),this.style=be({},y.style),this.displayContainsHighlight=(ae=y.displayContainsHighlight)!=null?ae:!1,this.captureSelection=(ce=y.captureSelection)!=null?ce:!1,this.skipBoundary=(we=y.skipBoundary)!=null?we:!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,z){var te;if(!b)return null;const ae=rf(b),ce=[];for(const ke of ae){const He=ke[0].style,qe=Pd(y,ke,{style:{color:He.color,backgroundColor:He.backgroundColor,fontSize:He.fontSize}});qe&&ce.push(qe)}if(ce.length===0)return null;const we=((te=z==null?void 0:z.classes)!=null?te:"").trim();return ce.length===1&&!we&&!(z!=null&&z.type)?ce[0].wrap(y):new ta(ce,{classes:we,type:z==null?void 0:z.type}).wrap(y)}static serialize(y,b){return iu.serialize(y,b)}static commonAncestor(y,b){if(y===b||y.parent===b.parent)return y.parent;const z=new WeakSet;let{parent:te}=y;for(;te;)z.add(te),te=te.parent;for(te=b.parent;te;){if(z.has(te))return te;te=te.parent}console.assert(!!te)}static fromJson(y){return typeof y=="string"?new md({type:"mord",value:y,mode:"math"}):new md(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=be({},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=Od(this.args)),this._branches)for(const b of Object.keys(this._branches))this._branches[b]&&(y[b]=this._branches[b].filter(z=>z.type!=="first").map(z=>z.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=gt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?el([Kl(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?el([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return iu.serialize(this.body,De(be({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return iu.serialize(this.above,y)}belowToLatex(y){return iu.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=De(be({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const z=iu.serialize(this.subscript,y);z.length===0?b+="_{}":z.length===1?/^[0-9]$/.test(z)?b+=`_${z}`:b+=`_{${z}}`:b+=`_{${z}}`}if(this.branch("superscript")!==void 0){const z=iu.serialize(this.superscript,y);z.length===0?b+="^{}":z.length===1?z==="\u2032"?b+="^\\prime ":z==="\u2033"?b+="^\\doubleprime ":/^[0-9]$/.test(z)?b+=`^${z}`:b+=`^{${z}}`:b+=`^{${z}}`}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(lc(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of Fc)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(lc(y)),lc(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 od(this.parentBranch)?this.parentBranch[0]:-1}get col(){return od(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 z=typeof this.style.verbatimColor=="string",te=typeof this.style.verbatimBackgroundColor=="string",ae=be(be({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete ae.variant,delete ae.variantStyle,te||delete ae.verbatimBackgroundColor,z||delete ae.verbatimColor,ae}applyStyle(y){this.isDirty=!0,this.style=be(be({},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,z;return this.hasEmptyBranch("body")?this:(console.assert(((y=this.body)==null?void 0:y[0].type)==="first"),(z=(b=this.body[1])==null?void 0:b.getInitialBaseElement())!=null?z: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 z;if(!y||(console.assert(lc(b)),!lc(b)))return;console.assert(((z=y[0])==null?void 0:z.type)!=="first");const te=[this.makeFirstAtom(b),...y];this._branches?this._branches[b]=te:this._branches={[b]:te};for(const ae of y)ae.parent=this,ae.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new md({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 z=this.createBranch(b.parentBranch);z.splice(z.indexOf(b),0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildAfter(y,b){console.assert(b.parentBranch!==void 0);const z=this.createBranch(b.parentBranch);z.splice(z.indexOf(b)+1,0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildren(y,b){const z=this.createBranch(b);for(const te of y)te.parent=this,te.parentBranch=b,z.push(te);this.isDirty=!0}addChildrenAfter(y,b){console.assert(y.length===0||y[0].type!=="first"),console.assert(b.parentBranch!==void 0);const z=this.createBranch(b.parentBranch);z.splice(z.indexOf(b)+1,0,...y),this.isDirty=!0;for(const te of y)te.parent=this,te.parentBranch=b.parentBranch;return y[y.length-1]}removeBranch(y){const b=this.branch(y);if(lc(y)&&(this._branches[y]=void 0),!b)return[];for(const z of b)z.parent=void 0,z.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),z=b.indexOf(y);console.assert(z>=0),b.splice(z,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 Fc)if(this._branches[b])for(const z of this._branches[b])y.push(...z.children),y.push(z);return this._children=y,y}render(y){if(this.type==="first"&&!y.atomIdsSettings)return null;const b=gt(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const z=new vl({parent:y},this.style);let te=this.createBox(z,{classes:this.parent?"":"ML__base"});return te?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(te=this.attachSupsub(z,{base:te})),te.wrap(z)):null}attachSupsub(y,b){var z;const te=b.base,ae=this.superscript,ce=this.subscript;if(!ae&&!ce)return te;let we=null,ke=null;const He=(z=b.isCharacterBox)!=null?z:this.isCharacterBox();let qe=0;if(ae){const Rr=new vl({parent:y,mathstyle:"superscript"});we=md.createBox(Rr,ae),He||(qe=te.height-y.metrics.supDrop*Rr.scalingFactor)}let It=0;if(ce){const Rr=new vl({parent:y,mathstyle:"subscript"});ke=md.createBox(Rr,ce),He||(It=te.depth+y.metrics.subDrop*Rr.scalingFactor)}let nn;y.isDisplayStyle?nn=y.metrics.sup1:y.isCramped?nn=y.metrics.sup3:nn=y.metrics.sup2;const Sn=.5/Tl/y.scalingFactor;let In=null;if(ke&&we){qe=Math.max(qe,nn,we.depth+.25*y.metrics.xHeight),It=Math.max(It,y.metrics.sub2);const Rr=y.metrics.defaultRuleThickness;if(qe-we.depth-(ke.height-It)<4*Rr){It=4*Rr-(qe-we.depth)+ke.height;const Nr=.8*y.metrics.xHeight-(qe-we.depth);Nr>0&&(qe+=Nr,It-=Nr)}const ia=this.isExtensibleSymbol&&te.italic?-te.italic:0;In=new kl({individualShift:[{box:ke,shift:It,marginLeft:ia},{box:we,shift:-qe}]}).wrap(y)}else ke&&!we?(It=Math.max(It,y.metrics.sub1,ke.height-.8*Cs),In=new kl({shift:It,children:[{box:ke,marginRight:Sn,marginLeft:this.isCharacterBox()?-te.italic:0}]})):!ke&&we&&(qe=Math.max(qe,nn,we.depth+.25*Cs),In=new kl({shift:-qe,children:[{box:we,marginRight:Sn}]}));return new ta([te,new ta(In,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const z=this.superscript?md.createBox(new vl({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,te=this.subscript?md.createBox(new vl({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!z&&!te?b.base.wrap(y):yd(y,De(be({},b),{above:z,below:te}))}bind(y,b){if(!b||y.isPhantom||this.value==="\u200B")return b;let z=this.parent;for(;z&&!z.captureSelection;)z=z.parent;return z!=null&&z.captureSelection||(this.id||(this.id=y.makeID()),b.atomID=this.id),b}createBox(y,b){var z,te,ae,ce;const we=(z=this.value)!=null?z:this.body,ke=(te=b==null?void 0:b.boxType)!=null?te:Rc(this.type);let He=(ae=b==null?void 0:b.classes)!=null?ae:"";this.mode==="text"&&(He+=" ML__text");const qe=typeof we=="string"||we===void 0?new ta(we!=null?we:null,{type:ke,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:De(be({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:He}):(ce=md.createBox(y,we,{type:ke,classes:He}))!=null?ce:new ta(null);return y.isTight&&(qe.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(qe.italic=0),qe.right=qe.italic,this.bind(y,qe),this.caret&&!this.superscript&&!this.subscript&&(qe.caret=this.caret),qe}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 rf(a){let y;const b=[];let z=[];for(const te of a)if(!y&&!te.style)z.push(te);else{const ae=te.computedStyle;y&&ae.color===y.color&&ae.backgroundColor===y.backgroundColor&&ae.fontSize===y.fontSize?z.push(te):(z.length>0&&b.push(z),z=[te],y=ae)}return z.length>0&&b.push(z),b}function Pd(a,y,b){var z,te,ae,ce,we;if(!y||y.length===0)return null;const ke=new vl({parent:a},b.style),He=!((z=ke.atomIdsSettings)!=null&&z.groupNumbers);let qe=[];if(y.length===1){const nn=y[0],Sn=nn.render(ke);Sn&&(He&&nn.isSelected&&Sn.selected(!0),qe=[Sn])}else{let nn="",Sn=!0;for(const In of y){(te=ke.atomIdsSettings)!=null&&te.groupNumbers&&nn&&(Sn&&In.isDigit()||!Sn&&Id(In))&&(ke.atomIdsSettings.overrideID=nn);const Rr=In.render(ke);ke.atomIdsSettings&&(ke.atomIdsSettings.overrideID=void 0),Rr&&((ae=ke.atomIdsSettings)!=null&&ae.groupNumbers&&((In.isDigit()||Id(In))&&(!nn||Sn!==In.isDigit())&&(Sn=In.isDigit(),nn=(ce=In.id)!=null?ce:""),nn&&(!(In.isDigit()||Id(In))||!In.hasEmptyBranch("superscript")||!In.hasEmptyBranch("subscript"))&&(nn="")),He&&In.isSelected&&Rr.selected(!0),qe.push(Rr))}}if(qe.length===0)return null;const It=new ta(qe,De(be({isTight:ke.isTight},b),{type:(we=b.type)!=null?we:"lift"}));return It.isSelected=qe.every(nn=>nn.isSelected),It.wrap(ke)}function Id(a){return a.mode==="text"}function Od(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof oi?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var sc=class Y0 extends oi{constructor(y,b,z){super({type:"text",command:y,mode:"text",displayContainsHighlight:!0}),this.value=b,this.verbatimLatex=b,this.applyStyle(z)}static fromJson(y){return new Y0(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:Nt("text",this.value.codePointAt(0))}};function ld(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let z=0;for(;z<b&&Lf(a.ranges[z],y.ranges[z])==="equal";)z++;return z===b?"equal":"different"}}return"different"}function Lf(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function Zs(a){let y=1/0,b=-1/0;for(const z of a.ranges)y=Math.min(y,z[0],z[1]),b=Math.max(b,z[0],z[1]);return[y,b]}function Zu(a){return typeof a=="number"&&!Number.isNaN(a)}function sd(a){return Array.isArray(a)&&a.length===2}function xd(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function Nf(a,y){const b=a.at(y);let z;if(b){z=b.mode;let te=b.parent;for(;!z&&te;)te&&(z=te.mode),te=te.parent}return z}function af(a,y){if(!y)return"";if(typeof y=="string")return y;if(!a||y.after===void 0)return y.value;let b=!1,z=!1,te=!1,ae=!1,ce=!1,we=!1,ke=!1,He=!1,qe=!1,It=!1,nn=!1,Sn=!1,In=!1,Rr=!1,ia=!1,Nr=a[0],bi=0;for(;Nr!=null&&Nr.type&&/^(subsup|placeholder)$/.test(Nr.type);)bi+=1,Nr=a[bi];return b=!Nr||Nr.type==="first",Nr&&(Rr=Nr.mode==="text",z=!Rr&&Nr.type==="mord"&&he.test(Nr.value),te=!Rr&&Nr.type==="mord"&&/\d+$/.test(Nr.value),ae=!Rr&&Nr.isFunction,ce=Nr.type==="genfrac",we=Nr.type==="surd",ke=Nr.type==="mbin",He=Nr.type==="mrel",qe=Nr.type==="mop"||Nr.type==="operator"||Nr.type==="extensible-symbol",It=Nr.type==="mpunct"||Nr.type==="minner",nn=Nr.type==="array",Sn=Nr.type==="mopen",In=Nr.type==="mclose"||Nr.type==="leftright",ia=Nr.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&z||y.after.includes("digit")&&te||y.after.includes("function")&&ae||y.after.includes("frac")&&ce||y.after.includes("surd")&&we||y.after.includes("binop")&&ke||y.after.includes("relop")&&He||y.after.includes("operator")&&qe||y.after.includes("punct")&&It||y.after.includes("array")&&nn||y.after.includes("openfence")&&Sn||y.after.includes("closefence")&&In||y.after.includes("text")&&Rr||y.after.includes("space")&&ia?y.value:""}function Ld(a,y,b){return b?af(a,b[y]):""}var Hc={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 ud(a,y){var b;let z=(b=y==null?void 0:y.format)!=null?b:"auto";return z==="auto"&&([z,a]=Ed(a)),z==="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",Hs(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function Hs(a,y){var b,z,te;if(!a)return"";let ae=!1,ce;const we=(b=y.inlineShortcuts)!=null?b:Hc;if(!ae&&(a.startsWith("^")||a.startsWith("_"))&&(ce=xc(a.slice(1),{inlineShortcuts:we,noWrap:!0}),a=a[0]+"{"+ce.match+"}",a+=Hs(ce.rest,y),ae=!0),ae||(ce=a.match(/^(sqrt|\u221A)(.*)/),ce&&(ce=xc(ce[2],{inlineShortcuts:we,noWrap:!0}),a="\\sqrt{"+((z=ce.match)!=null?z:"\\placeholder{}")+"}",a+=Hs(ce.rest,y),ae=!0)),ae||(ce=a.match(/^(\\cbrt|\u221B)(.*)/),ce&&(ce=xc(ce[2],{inlineShortcuts:we,noWrap:!0}),a="\\sqrt[3]{"+((te=ce.match)!=null?te:"\\placeholder{}")+"}",a+=Hs(ce.rest,y),ae=!0)),ae||(ce=a.match(/^abs(.*)/),ce&&(ce=xc(ce[1],{inlineShortcuts:we,noWrap:!0}),a="\\left|"+ce.match+"\\right|",a+=Hs(ce.rest,y),ae=!0)),ae||(ce=a.match(/^["”“](.*?)["”“](.*)/),ce&&(a="\\text{"+ce[1]+"}",a+=Hs(ce[2],y),ae=!0)),ae||(ce=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),ce&&(a=of(ce[1],we),a+=Hs(ce[2],y),ae=!0)),!ae&&/^([fgh])[^a-zA-Z]/.test(a)&&(ce=xc(a.slice(1),{inlineShortcuts:we,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+ce.match+"\\right)":a[0]+ce.match,a+=Hs(ce.rest,y),ae=!0),ae||(ce=a.match(/^([a-zA-Z]+)(.*)/),ce&&(a=of(ce[1],we),a+=Hs(ce[2],y),ae=!0)),!ae)if(ce=xc(a,{inlineShortcuts:we,noWrap:!0}),ce.match&&ce.rest[0]==="/"){const ke=xc(ce.rest.slice(1),{inlineShortcuts:we,noWrap:!0});ke.match&&(a="\\frac{"+ce.match+"}{"+ke.match+"}"+Hs(ke.rest,y)),ae=!0}else ce.match&&(a=a.startsWith("(")?"\\left("+ce.match+"\\right)"+Hs(ce.rest,y):ce.match+Hs(ce.rest,y),ae=!0);return ae||(ce=a.match(/^(\s+)(.*)$/),ce&&(a=" "+Hs(ce[2],y),ae=!0)),a}function xc(a,y){let b="";a=a.trim();let z=a,te=a.charAt(0),ae={"(":")","{":"}","[":"]"}[te];if(ae){let ce=1,we=1;for(;we<a.length&&ce>0;)a[we]===te&&ce++,a[we]===ae&&ce--,we++;ce===0?(y.noWrap&&te==="("?b=Hs(a.substring(1,we-1),y):(te==="{"&&ae==="}"&&(te="\\{",ae="\\}"),b="\\left"+te+Hs(a.substring(1,we-1),y)+"\\right"+ae),z=a.slice(Math.max(0,we))):(b=a.substring(1,we),z="")}else{let ce=a.match(/^([a-zA-Z]+)/);if(ce){let we=Ld(null,a,y.inlineShortcuts);if(we)return we=we.replace("_{#?}",""),we=we.replace("^{#?}",""),{match:we,rest:a.slice(we.length)}}if(ce=a.match(/^([a-zA-Z])/),ce)return{match:ce[1],rest:a.slice(1)};if(ce=a.match(/^(-)?\d+(\.\d*)?/),ce)return{match:ce[0],rest:a.slice(ce[0].length)};/^\\(left|right)/.test(a)||(ce=a.match(/^(\\[a-zA-Z]+)/),ce&&(z=a.slice(ce[1].length),b=ce[1]))}return{match:b,rest:z}}function of(a,y){let b=Ld(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var lf=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Ec(a){const y=a.trim();for(const b of lf)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 Ed(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=Ec(a),y?["latex",a]:a.startsWith("`")&&a.endsWith("`")?(a=a.substring(1,a.length-1),["ascii-math",a]):a.includes("\\")?["latex",a]:/\$.+\$/.test(a)?["latex",`\\text{${a}}`]:[void 0,a]}var Cd="$$",_f="$$",Tf=(a,y,b)=>(lf.some(z=>y.startsWith(z[0])&&y.endsWith(z[1]))||(y=`${Cd} ${y} ${_f}`),y),Nd=class Vh{constructor(y){Vh._modes[y]=this}static onPaste(y,b,z){var te;if(!b.contentEditable&&b.userSelect==="none")return b.model.announce("plonk"),!1;if(typeof z=="string"){const ce=new DataTransfer;ce.setData("text/plain",z),z=ce}const ae=new ClipboardEvent("paste",{clipboardData:z,cancelable:!0});return(te=b.host)!=null&&te.dispatchEvent(ae)?Vh._modes[y].onPaste(b,z):!1}static copyToClipboard(y,b){if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const z=y.model,te=z.selectionIsCollapsed?[0,z.lastOffset]:Zs(z.selection),ae=z.getValue(te,b);navigator.clipboard.writeText(ae).then(()=>{},()=>y.model.announce("plonk"))}static onCopy(y,b){var z;if(!b.clipboardData)return;if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const te=y.model,ae=te.selectionIsCollapsed?[0,te.lastOffset]:Zs(te.selection);let ce=te.getAtoms(ae);if(ce.every(we=>we.mode==="text"||!we.mode))b.clipboardData.setData("text/plain",ce.filter(we=>we instanceof sc).map(we=>we.value).join(""));else if(ce.every(we=>we.mode==="latex"))b.clipboardData.setData("text/plain",te.getAtoms(ae,{includeChildren:!0}).map(we=>{var ke;return(ke=we.value)!=null?ke:""}).join(""));else{let we;ce.length===1&&ce[0].verbatimLatex!==void 0?we=ce[0].verbatimLatex:we=te.getValue(ae,"latex-expanded"),b.clipboardData.setData("application/x-latex",we);try{b.clipboardData.setData("text/plain",y.options.onExport(y,we,ae))}catch(ke){}if(ce.length===1){const ke=ce[0];(ke.type==="root"||ke.type==="group")&&(ce=ke.body.filter(He=>He.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(ce.map(ke=>ke.toJson())))}catch(ke){}if((z=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&z.ComputeEngine){const ke=window.MathfieldElement.computeEngine;if(ke)try{const He=ke.jsonSerializationOptions;ke.jsonSerializationOptions={metadata:["latex"]};const qe=ke.parse(te.getValue(ae,"latex-unstyled"));ke.jsonSerializationOptions=He;const It=JSON.stringify(qe.json);It&&b.clipboardData.setData("application/json",It)}catch(He){}}}b.preventDefault()}static insert(y,b,z={}){var te;const ae=z.mode==="auto"?y.mode:(te=z.mode)!=null?te:y.mode;return Vh._modes[ae].insert(y,b,z)}onPaste(y,b){return!1}insert(y,b,z){return!1}};Nd._modes={};var jo=Nd,sf=[{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","^"]}],_d={"\\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 Iu(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function qu(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 ec(a){const y=qu(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function Td(a){var y;if(!a.parent)return"root";let b=(y=a.parent.id)!=null?y:"";return b+=typeof a.parentBranch=="string"?"-"+a.parentBranch:`-${a.parentBranch[0]}/${a.parentBranch[0]}`,b}function Rd(a,y,b){if(!y)return null;const z=a.field.getBoundingClientRect(),te=y.right-y.left,ae=y.bottom-y.top,ce=Math.ceil(y.left-z.left+a.field.scrollLeft*b),we=Math.ceil(y.top-z.top);return{left:ce,right:ce+te,top:we,bottom:we+ae}}function zd(a){const y=a.getBoundingClientRect(),b=parseInt(getComputedStyle(a).marginRight),z={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 z;for(const te of a.children)if(te.nodeType===1&&"atomId"in te.dataset&&!te.classList.contains("pstrut")){const ae=zd(te);z.left=Math.min(z.left,ae.left),z.right=Math.max(z.right,ae.right),z.top=Math.min(z.top,ae.top),z.bottom=Math.max(z.bottom,ae.bottom)}return z}function Kc(a,y){var b,z;if(!y.id)return null;let te=(z=(b=a.atomBoundsCache)==null?void 0:b.get(y.id))!=null?z:null;if(te!==null)return te;const ae=a.field.querySelector(`[data-atom-id="${y.id}"]`);return te=ae?zd(ae):null,a.atomBoundsCache&&(te?a.atomBoundsCache.set(y.id,te):a.atomBoundsCache.delete(y.id)),te!=null?te:null}function uf(a,y,b){const z=new Map;for(const te of a.model.getAtoms(y,{includeChildren:!0})){if(b!=null&&b.excludeAtomsWithBackground&&te.style.backgroundColor)continue;const ae=a.field,ce=ae.offsetWidth;let ke=Math.floor(ae.getBoundingClientRect().width)/ce;ke=isNaN(ke)?1:ke;const He=Rd(a,Kc(a,te),ke);if(He){const qe=Td(te);if(z.has(qe)){const It=z.get(qe);z.set(qe,{left:Math.min(It.left,He.left),right:Math.max(It.right,He.right),top:Math.min(It.top,He.top),bottom:Math.max(It.bottom,He.bottom)})}else z.set(qe,He)}}return[...z.values()]}function Zd(a,y){return a.model.selection.ranges.reduce((b,z)=>b.concat(...uf(a,z,y)),[])}function Hd(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function cd(a){let y=0,b=0;const z=a.offsetWidth,te=a.offsetHeight;for(;a instanceof HTMLElement;)y+=a.offsetTop,b+=a.offsetLeft,a=a.offsetParent;return new DOMRect(b,y,z,te)}var dd=`@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;
|
|
|
}
|
|
|
`,Ol=`.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);
|
|
|
}
|
|
|
`,Kd=`/* 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;
|
|
|
}
|
|
|
`,Pc=`/* 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);*/
|
|
|
}
|
|
|
`,Rf=`.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));
|
|
|
}
|
|
|
`,wd=`: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;
|
|
|
}
|
|
|
`,zf=`.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;
|
|
|
}
|
|
|
`,jl;function uc(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=Ol;break;case"mathfield":y=dd;break;case"environment-popover":y=cf;break;case"suggestion-popover":y=Kd;break;case"keystroke-caption":y=Pc;break;case"virtual-keyboard":y=Rf;break;case"ui":y=wd;break;case"menu":y=zf;break;default:debugger}return y}function Ic(a){return jl||(jl={}),jl[a]||(jl[a]=new CSSStyleSheet,jl[a].replaceSync(uc(a))),jl[a]}var Hu;function yu(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(uc(a))),window.document.head.appendChild(b);return}if(Hu||(Hu={}),((y=Hu[a])!=null?y:0)!==0)Hu[a]+=1;else{const b=Ic(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],Hu[a]=1}}function x(a){if("adoptedStyleSheets"in document&&Hu!=null&&Hu[a]&&(Hu[a]-=1,Hu[a]<=0)){const y=jl[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var ee=class X0 extends oi{constructor(y){var b;super(De(be({},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 X0(y)}toJson(){return De(be({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const z=new vl({parent:y,mathstyle:"cramp"},this.style),te=(b=oi.createBox(z,this.body))!=null?b:new ta("\u25A2",{style:this.style});let ae=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(ae=te.skew);let ce=Math.min(te.height,Cs),we;if(this.svgAccent)we=mu(this.svgAccent),ce=z.metrics.bigOpSpacing1-ce;else if(this.accent){const He=new ta(this.accent,{fontFamily:"Main-Regular"});He.italic=0;const qe=this.accent===8407?" ML__accent-vec":"";we=new ta(new ta(He),{classes:"ML__accent-body"+qe})}we=new kl({shift:0,children:[{box:new ta(te)},-ce,{box:we,marginLeft:te.left+2*ae,classes:["ML__center"]}]});const ke=new ta(we,{type:"lift"});return this.caret&&(ke.caret=this.caret),this.bind(z,ke.wrap(z)),this.attachSupsub(z,{base:ke})}},ie={"(":")","{":"}","[":"]","|":"|","\\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"},re=Object.fromEntries(Object.entries(ie).map(([a,y])=>[y,a]));function le(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 ge(a,y,b,z){var te;const ce=new ta(le(a),{fontFamily:"Main-Regular",isSelected:z.isSelected,classes:"ML__small-delim "+((te=z.classes)!=null?te:"")}).wrap(y);return b&&ce.setTop((1-y.scalingFactor)*ps),ce}function _e(a,y,b,z,te){var ae,ce;const we=new vl({parent:z,mathstyle:"textstyle"},te==null?void 0:te.style),ke=new ta(le(a),{fontFamily:`Size${y}-Regular`,isSelected:te.isSelected,classes:((ae=te.classes)!=null?ae:"")+` ML__delim-size${y}`,type:(ce=te.type)!=null?ce:"ignore"}).wrap(we);return b&&ke.setTop((1-we.scalingFactor)*ps),ke}function it(a,y,b,z,te){var ae;let ce,we,ke,He;ce=ke=He=le(a),we=null;let qe="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?ke=ce=He=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?ke=ce=He=8741:a==="\\uparrow"?ke=He=9168:a==="\\Uparrow"?ke=He=8214:a==="\\downarrow"?ce=ke=9168:a==="\\Downarrow"?ce=ke=8214:a==="\\updownarrow"?(ce=8593,ke=9168,He=8595):a==="\\Updownarrow"?(ce=8657,ke=8214,He=8659):a==="["||a==="\\lbrack"?(ce=9121,ke=9122,He=9123,qe="Size4-Regular"):a==="]"||a==="\\rbrack"?(ce=9124,ke=9125,He=9126,qe="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(ke=ce=9122,He=9123,qe="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(ce=9121,ke=He=9122,qe="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(ke=ce=9125,He=9126,qe="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(ce=9124,ke=He=9125,qe="Size4-Regular"):a==="("||a==="\\lparen"?(ce=9115,ke=9116,He=9117,qe="Size4-Regular"):a===")"||a==="\\rparen"?(ce=9118,ke=9119,He=9120,qe="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(ce=9127,we=9128,He=9129,ke=9130,qe="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(ce=9131,we=9132,He=9133,ke=9130,qe="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(ce=9127,He=9129,ke=9130,qe="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(ce=9131,He=9133,ke=9130,qe="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(ce=9127,He=9133,ke=9130,qe="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(ce=9131,He=9129,ke=9130,qe="Size4-Regular"):a==="\\surd"?(ce=57345,He=9143,ke=57344,qe="Size4-Regular"):a==="\\ulcorner"?(ce=9484,ke=He=32):a==="\\urcorner"?(ce=9488,ke=He=32):a==="\\llcorner"?(He=9492,ke=ce=32):a==="\\lrcorner"&&(ce=9496,ke=ce=32);const It=Ps(ce,qe),nn=It.height+It.depth,Sn=Ps(ke,qe),In=Sn.height+Sn.depth,Rr=Ps(He,qe),ia=Rr.height+Rr.depth;let Nr=0,bi=1;if(we!==null){const $s=Ps(we,qe);Nr=$s.height+$s.depth,bi=2}const ua=nn+ia+Nr,Ti=Math.max(0,Math.ceil((y-ua)/(bi*In))),$a=ua+Ti*bi*In;let ko=ps;b&&(ko=ko*z.scalingFactor);const mo=$a/2-ko,Al=.008,Yl=[];Yl.push({box:new ta(He,{fontFamily:qe})}),Yl.push(-Al);const Ca=new ta(ke,{fontFamily:qe});if(we===null)for(let $s=0;$s<Ti;$s++)Yl.push({box:Ca});else{for(let $s=0;$s<Ti;$s++)Yl.push({box:Ca});Yl.push(-Al),Yl.push({box:new ta(we,{fontFamily:qe})}),Yl.push(-Al);for(let $s=0;$s<Ti;$s++)Yl.push({box:Ca})}Yl.push(-Al),Yl.push({box:new ta(ce,{fontFamily:qe})});let pc="";qe==="Size1-Regular"?pc=" delim-size1":qe==="Size4-Regular"&&(pc=" delim-size4");const Xc=new kl({bottom:mo,children:Yl},{classes:pc});return new ta(Xc,De(be({},te!=null?te:{}),{classes:((ae=te==null?void 0:te.classes)!=null?ae:"")+" ML__delim-mult"}))}var bt=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"]),xn=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Ln=[0,1.2,1.8,2.4,3];function wr(a,y,b,z){return a===void 0||a==="."?Va(b,z.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),bt.has(a)||xn.has(a)?_e(a,y,!1,b,z):Ft.has(a)?it(a,Ln[y],!1,b,z):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var 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}],di=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],zi=[{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 da(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function La(a,y,b,z){const te={"-4":0,"-3":1,0:2}[z.mathstyle.sizeDelta];for(let ae=te;ae<b.length&&b[ae].type!=="stack";ae++){const ce=Ps(a,da(b[ae]));if(ce.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let we=ce.height+ce.depth;if(b[ae].type==="small"&&(b[ae].mathstyle==="scriptscriptstyle"?we*=Math.max(ls[Math.max(1,z.size-2)],z.minFontScale):b[ae].mathstyle==="scriptstyle"&&(we*=Math.max(ls[Math.max(1,z.size-1)],z.minFontScale))),we>y)return b[ae]}return b[b.length-1]}function Ra(a,y,b,z,te,ae){if(!y||y.length===0||y===".")return Va(te);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let ce;xn.has(y)?ce=mr:bt.has(y)?ce=zi:ce=di;const we=La(le(y),b,ce,te),ke=new vl({parent:te,mathstyle:we.mathstyle},ae==null?void 0:ae.style);return we.type==="small"?ge(y,ke,z,De(be({},ae),{type:a})):we.type==="large"?_e(y,we.size,z,ke,De(be({},ae),{type:a})):(console.assert(we.type==="stack"),it(y,b,z,ke,De(be({},ae),{type:a})))}function Da(a,y,b,z,te,ae){if(y===".")return Va(te,ae==null?void 0:ae.classes);const ce=ps*te.scalingFactor,we=901,ke=5/Tl,He=Math.max(b-ce,z+ce),qe=Math.max(He/500*we,2*He-ke);return Ra(a,y,qe,!0,te,ae)}function Va(a,y){const b=new ta(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new vl({parent:a,mathstyle:"textstyle"}))}var Mo=class J0 extends oi{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 J0(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{}"}},Oo=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],al=["cases","dcases","rcases"],Vl=["align","align*","aligned","gather","gathered","split"],_s=["array","subequations","eqnarray"];function vs(a){return _s.concat(Vl).concat(al).concat(Oo).includes(a)}function ou(a){return Oo.includes(a)}function lu(a){return al.includes(a)}function Ss(a){return Vl.includes(a)}function su(a,y,b){let z=0;for(const He of b)"align"in He&&(z+=1);let te=0;const ae=[];for(const He of y){let qe=0;for(te=Math.max(te,Math.min(He.length,z));qe<He.length;){const It=[],nn=Math.min(He.length,qe+z);for(;qe<nn;){const Sn=He[qe];Sn.length===0?It.push([new oi({type:"first",mode:a.mode})]):Sn[0].type!=="first"?It.push([new oi({type:"first",mode:a.mode}),...Sn]):(console.assert(!Sn.slice(1).some(In=>In.type==="first")),It.push(Sn)),qe+=1}ae.push(It)}}ae.length>0&&ae[ae.length-1].length===1&&ae[ae.length-1][0].length===1&&ae[ae.length-1][0][0].type==="first"&&ae.pop();const ce=[];for(const He of ae){if(He.length!==te)for(let qe=He.length;qe<te;qe++)He.push([new oi({type:"first",mode:a.mode}),new Mo]);ce.push(He)}let we=0,ke=0;for(const He of ce){ke=0;for(const qe of He){for(const It of qe)It.parent=a,It.parentBranch=[we,ke];ke+=1}we+=1}return a.isDirty=!0,ce}var Go=class $0 extends oi{constructor(y,b,z,te={}){var ae;super({type:"array"}),this.environmentName=y,this.rowGaps=z,te.mathstyleName&&(this.mathstyleName=te.mathstyleName),te.columns&&(te.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=te.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=su(this,b,this.colFormat),te.leftDelim&&(this.leftDelim=te.leftDelim),te.rightDelim&&(this.rightDelim=te.rightDelim),te.arraycolsep!==void 0&&(this.arraycolsep=te.arraycolsep),this.colSeparationType=te.colSeparationType,te.arraystretch!==void 0&&(this.arraystretch=te.arraystretch),this.minColumns=(ae=te.minColumns)!=null?ae:1}static fromJson(y){return new $0(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=De(be({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(b=>b.map(z=>z.map(te=>te.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(od(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return od(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(lc(y))return super.removeBranch(y);const b=this.branch(y);return this.array[y[0]][y[1]]=void 0,b.forEach(z=>{z.parent=void 0,z.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 z of b)if(z)for(const te of z)y.push(...te.children),y.push(te);return[...y,...super.children]}render(y){var b,z,te,ae,ce,we;const ke=new vl({parent:y,mathstyle:this.mathstyleName},this.style),He=ke.getRegisterAsEm("arrayrulewidth"),qe=ke.getRegisterAsEm("arraycolsep"),It=ke.getRegisterAsEm("doublerulesep"),nn=(z=(b=this.arraystretch)!=null?b:ke.getRegisterAsNumber("arraystretch"))!=null?z:1;let Sn=typeof this.arraycolsep=="number"?this.arraycolsep:qe;this.colSeparationType==="small"&&(Sn=.2778*(new vl({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const In=nn*nu,Rr=.7*In,ia=.3*In;let Nr=0;const bi=[];let ua=0;const Ti=this.array.length;for(let ns=0;ns<Ti;++ns){const Ls=this.array[ns];ua=Math.max(ua,Ls.length);const qs=new vl({parent:ke,mathstyle:this.mathstyleName},this.style);let Jc=Rr/qs.scalingFactor,$c=ia/qs.scalingFactor;const qc={cells:[],height:0,depth:0,pos:0};for(const Nc of Ls){const Op=(te=oi.createBox(qs,Nc,{type:"ignore"}))!=null?te:new ta(null,{type:"ignore"});$c=Math.max($c,Op.depth),Jc=Math.max(Jc,Op.height),qc.cells.push(Op)}let ed=(ae=Pu(this.rowGaps[ns]))!=null?ae:0;ed>0&&(ed+=ia,$c=Math.max($c,ed),ed=0),ns<Ti-1&&!ou(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&($c+=ke.getRegisterAsEm("jot")),qc.height=Jc,qc.depth=$c,Nr+=Jc,qc.pos=Nr,Nr+=$c+ed,bi.push(qc)}const $a=Nr/2+ps,ko=[];for(let ns=0;ns<ua;ns++){const Ls=[];for(const qs of bi){const Jc=qs.cells[ns];Jc.depth=qs.depth,Jc.height=qs.height,Ls.push({box:Jc,shift:qs.pos-$a})}Ls.length>0&&ko.push(new kl({individualShift:Ls}))}const mo=[];let Al=!1,Yl=!1,Ca=0,pc=!this.leftDelim;const{colFormat:Xc}=this;for(const ns of Xc){if("align"in ns&&Ca>=ko.length)break;if("align"in ns)Al?mo.push(ds(2*Sn)):(Yl||pc)&&mo.push(ds(Sn)),mo.push(new ta(ko[Ca],{classes:"col-align-"+ns.align})),Ca++,Al=!0,Yl=!1,pc=!1;else if("gap"in ns){if(typeof ns.gap=="number")mo.push(ds(ns.gap));else{const Ls=bs(y,bi,$a,ns.gap);Ls&&mo.push(Ls)}Al=!1,Yl=!1,pc=!1}else if("separator"in ns){const Ls=new ta(null,{classes:"vertical-separator"});Ls.height=Nr,Ls.setStyle("height",Nr,"em"),Ls.setStyle("border-right",`${He}em ${ns.separator} currentColor`),Ls.setStyle("vertical-align",-(Nr-$a),"em");let qs=0;Yl?qs=It-He:Al&&(qs=Sn-He),Ls.left=qs,mo.push(Ls),Al=!1,Yl=!0,pc=!1}}Al&&!this.rightDelim&&mo.push(ds(Sn));const Bc=new ta(mo,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Bc.caret=this.caret),this.bind(y,Bc);const $s=Bc.height,mc=Bc.depth,ju=this.bind(y,new ta([this.bind(y,Da("open",(ce=this.leftDelim)!=null?ce:".",$s,mc,ke,{isSelected:this.isSelected})),Bc,this.bind(y,Da("close",(we=this.rightDelim)!=null?we:".",$s,mc,ke,{isSelected:this.isSelected}))],{type:"ord"}));return ju?(ju.setStyle("display","inline-block"),this.caret&&(ju.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:ju}))):null}_serialize(y){var b;const z=[];if(this.environmentName==="lines"?z.push("{\\displaylines"):z.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(z.push("{"),this.colFormat!==void 0)for(const te of this.colFormat)"align"in te&&typeof te.align=="string"?z.push(te.align):"separator"in te&&te.separator==="solid"?z.push("|"):"separator"in te&&te.separator==="dashed"&&z.push(":");z.push("}")}for(let te=0;te<this.array.length;te++){for(let ae=0;ae<this.array[te].length;ae++)ae>0&&z.push(" & "),z.push(oi.serialize(this.array[te][ae],y));if(te<this.array.length-1){const ae=this.rowGaps[te];ae!=null&&ae.dimension?z.push(`\\\\[${ae.dimension} ${(b=ae.unit)!=null?b:"pt"}] `):z.push("\\\\ ")}}return this.environmentName==="lines"?z.push("}"):z.push(`\\end{${this.environmentName}}`),el(z)}getCell(y,b){return this.array[y][b]}setCell(y,b,z){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[y][b]!==void 0);for(const ae of this.array[y][b])ae.parent=void 0,ae.parentBranch=void 0;let te=z;(z.length===0||z[0].type!=="first")&&(te=[new oi({type:"first",mode:this.mode}),...z]),this.array[y][b]=te;for(const ae of te)ae.parent=this,ae.parentBranch=[y,b];this.isDirty=!0}addRowBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let z=0;z<this.colCount;z++)b.push(cs(this));this.array.splice(y,0,b);for(let z=y;z<this.rowCount;z++)for(let te=0;te<this.colCount;te++){const ae=this.array[z][te];if(ae)for(const ce of ae)ce.parentBranch=[z,te]}this.isDirty=!0}addRowAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let z=0;z<this.colCount;z++)b.push(cs(this));this.array.splice(y+1,0,b);for(let z=y+1;z<this.rowCount;z++)for(let te=0;te<this.colCount;te++){const ae=this.array[z][te];if(ae)for(const ce of ae)ce.parentBranch=[z,te]}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 z of b)for(const te of z)if(te)for(const ae of te)ae.parent=void 0,ae.parentBranch=void 0;for(let z=y;z<this.rowCount;z++)for(let te=0;te<this.colCount;te++){const ae=this.array[z][te];if(ae)for(const ce of ae)ce.parentBranch=[z,te]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,cs(this));for(let b=0;b<this.rowCount;b++)for(let z=y;z<this.colCount;z++){const te=this.array[b][z];if(te)for(const ae of te)ae.parentBranch=[b,z]}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,cs(this));for(let b=0;b<this.rowCount;b++)for(let z=y+1;z<this.colCount;z++){const te=this.array[b][z];if(te)for(const ae of te)ae.parentBranch=[b,z]}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 z=b.splice(y,1);for(const te of z)if(te)for(const ae of te)ae.parent=void 0,ae.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let z=y;z<this.colCount;z++){const te=this.array[b][z];if(te)for(const ae of te)ae.parentBranch=[b,z]}this.isDirty=!0}get cells(){const y=[];for(const b of this.array)for(const z of b)z&&y.push(z.filter(te=>te.type!=="first"));return y}};function cs(a){const y=new oi({type:"first",mode:a.mode});y.parent=a;const b=new Mo;return b.parent=a,[y,b]}function ds(a){const y=new ta(null,{classes:"arraycolsep"});return y.width=a,y}function bs(a,y,b,z){if(!z)return null;const te=[];for(const ae of y){const ce=oi.createBox(a,z,{type:"ignore"});ce&&(ce.depth=ae.depth,ce.height=ae.height,te.push({box:ce,shift:ae.pos-b}))}return new kl({individualShift:te}).wrap(a)}var As=class q0 extends oi{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 q0(y)}toJson(){return De(be({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,z,te,ae;const ce=oi.createBox(y,this.body,{type:"lift"});if(!ce)return null;const we=y.toEm((b=this.offset)!=null?b:{dimension:0});ce.depth+=we,ce.setStyle("display","inline-block"),ce.setStyle("position","relative"),ce.setStyle("height",Math.floor(100*ce.height+ce.depth)/100,"em"),ce.setStyle("vertical-align",-Math.floor(100*ce.height)/100,"em");const ke=new vl({parent:y},this.style),He=ke.toEm((z=this.padding)!=null?z:{register:"fboxsep"}),qe=new ta(null,{classes:"ML__box"});qe.height=ce.height+He,qe.depth=ce.depth+He,qe.setStyle("box-sizing","border-box"),qe.setStyle("position","absolute"),qe.setStyle("top",-He+.3,"em"),qe.setStyle("left",0),qe.setStyle("height",qe.height+qe.depth,"em"),qe.setStyle("width","100%"),this.backgroundcolor&&qe.setStyle("background-color",(te=ke.toColor(this.backgroundcolor))!=null?te:"transparent"),this.framecolor&&qe.setStyle("border",`${ke.getRegisterAsEm("fboxrule",2)}em solid ${(ae=ke.toColor(this.framecolor))!=null?ae:"black"}`),this.border&&qe.setStyle("border",this.border);const It=new ta([qe,ce],{type:"lift"});return It.setStyle("display","inline-block"),It.setStyle("position","relative"),It.setStyle("line-height",0),It.height=ce.height+He+(we>0?we:0),It.depth=ce.depth+He+(we<0?-we:0),It.setStyle("padding-left",He,"em"),It.setStyle("padding-right",He,"em"),It.setStyle("height",Math.floor(100*(ce.height+ce.depth+2*He+Math.abs(we)))/100,"em"),It.setStyle("margin-top",-He,"em"),It.setStyle("top",Math.floor(100*(ce.depth-ce.height+2*He-we))/100,"em"),It.setStyle("vertical-align",Math.floor(100*(ce.depth+2*He))/100,"em"),this.caret&&(It.caret=this.caret),this.attachSupsub(y,{base:It})}_serialize(y){return y.skipStyles?el([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},Oc=class em extends oi{constructor(y,b){var z;super({type:"composition",mode:(z=b==null?void 0:b.mode)!=null?z:"math",value:y})}static fromJson(y){return new em(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new ta(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},bu=class tm extends oi{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new tm(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Ts=class nm extends oi{constructor(y,b,z){super({type:"group",mode:b,style:z}),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 nm(y.body,y.mode,y.style)}render(y){const b=oi.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=gt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},se=class rm extends oi{constructor(y,b,z){super({type:"leftright",style:z.style,displayContainsHighlight:!0}),this.variant=y,this.body=b,this.leftDelim=z.leftDelim,this.rightDelim=z.rightDelim}static fromJson(y){var b;return new rm((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,z;const te=this.matchingRightDelim();return this.variant==="left...right"?el(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",te]):this.variant==="mleft...mright"?el(["\\mleft",(z=this.leftDelim)!=null?z:".",this.bodyToLatex(y),"\\mright",te]):el([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(y),te])}matchingRightDelim(){var y,b;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const z=(y=this.leftDelim)!=null?y:".";return(b=ie[z])!=null?b:z}render(y){var b,z;const te=new vl({parent:y},this.style);console.assert(this.body!==void 0);const ae=new vl({parent:y,mathstyle:"textstyle"},this.style),ce=(b=oi.createBox(te,this.body,{type:"inner"}))!=null?b:new ta(null,{type:"inner"}),we=ce.height/ae.scalingFactor,ke=ce.depth/ae.scalingFactor,He=[];if(this.leftDelim&&He.push(this.bind(ae,Da("open",this.leftDelim,we,ke,ae,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),ce&&(de(ce.children,this,te,we,ke),He.push(ce)),this.rightDelim){let Sn=this.containsCaret?" ML__contains-caret":"",In=this.rightDelim;In==="?"&&(te.smartFence?(In=this.matchingRightDelim(),Sn+=" ML__smart-fence__close"):In="."),He.push(this.bind(ae,Da("close",In,we,ke,ae,{isSelected:this.isSelected,classes:Sn+" ML__close",mode:this.mode,style:this.style})))}let qe=this.variant==="mleft...mright";const It=this.leftSibling;It&&(!qe&&It.isFunction&&(qe=!0),!qe&&It.type==="subsup"&&((z=It.leftSibling)!=null&&z.isFunction)&&(qe=!0));const nn=new ta(He,{type:qe?"close":"inner",classes:"left-right"});return nn.setStyle("margin-top",`${-ce.depth}em`),nn.setStyle("height",`${ce.height+ce.depth}em`),this.caret&&(nn.caret=this.caret),this.bind(te,nn.wrap(te))}};function de(a,y,b,z,te){if(a)for(let ae=0;ae<a.length;ae++){const ce=a[ae];ce.type==="middle"?(a[ae]=y.bind(b,Da("inner",ce.value,z,te,b,{isSelected:y.isSelected})),a[ae].caret=ce.caret,a[ae].isSelected=ce.isSelected,a[ae].cssId=ce.cssId,a[ae].htmlData=ce.htmlData,a[ae].htmlStyle=ce.htmlStyle,a[ae].attributes=ce.attributes,a[ae].cssProperties=ce.cssProperties):ce.children&&de(ce.children,y,b,z,te)}}var ve=class im extends oi{constructor(y,b){var z;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=(z=b.expand)!=null?z:!1}static fromJson(y){return new im(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=oi.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},Oe=class am extends oi{constructor(){super({type:"macro-argument"})}static fromJson(y){return new am}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},ft=class om extends oi{constructor(y,b,z=!1,te,ae){var ce;super({type:"prompt",mode:(ce=ae==null?void 0:ae.mode)!=null?ce:"math",style:ae==null?void 0:ae.style,command:"\\placeholder"}),this.body=te,this.correctness=b,this.placeholderId=y,this.locked=z,this.captureSelection=this.locked}static fromJson(y){return new om(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 vl({parent:y}),z=b.getRegisterAsEm("fboxsep"),te=z,ae=z,ce=oi.createBox(y,this.body);if(!ce)return null;ce.height||(ce.height=b.metrics.xHeight),ce.setStyle("vertical-align",-ce.height,"em"),this.correctness==="correct"?ce.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&ce.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const we=new ta(ce,{type:"ord"});we.setStyle("display","inline-block"),we.setStyle("height",ce.height+ce.depth,"em"),we.setStyle("vertical-align",-ae,"em");let ke="ML__prompt ";this.locked?ke+=" ML__lockedPromptBox ":ke+=" ML__editablePromptBox ",this.correctness==="correct"?ke+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(ke+=" ML__incorrectPromptBox "),this.containsCaret&&(ke+=" ML__focusedPromptBox ");const He=new ta(null,{classes:ke,attributes:{part:"prompt"}});He.height=we.height+ae,He.depth=we.depth+ae,He.width=we.width+2*te,He.setStyle("box-sizing","border-box"),He.setStyle("position","absolute"),He.setStyle("height",we.height+we.depth+2*ae,"em"),te===0&&He.setStyle("width","100%"),te!==0&&(He.setStyle("width",`calc(100% + ${2*te}em)`),He.setStyle("top",z,"em"),He.setStyle("left",-te,"em")),(!this.body||this.body.length===1)&&(He.width=3*te,He.setStyle("width",`calc(100% + ${3*te}em)`),He.setStyle("left",-1.5*te,"em"));let qe="";this.correctness==="incorrect"&&(qe+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),qe&&(He.svgOverlay=qe);const It=new ta([He,we],{classes:"ML__prompt-atom"});return It.setStyle("position","relative"),It.setStyle("display","inline-block"),It.setStyle("line-height",0),It.height=we.height+ae+.2,It.depth=we.depth+ae,It.left=te,It.right=te,It.setStyle("height",we.height+ae,"em"),It.setStyle("top",we.depth-we.height,"em"),It.setStyle("vertical-align",we.depth+ae,"em"),It.setStyle("margin-left",.5,"em"),It.setStyle("margin-right",.5,"em"),this.caret&&(It.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:It}))}_serialize(y){var b;const z=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return z;let te="\\placeholder";return this.placeholderId&&(te+=`[${this.placeholderId}]`),this.correctness==="correct"?te+="[correct]":this.correctness==="incorrect"&&(te+="[incorrect]"),this.locked&&(te+="[locked]"),Kl(te,z)}},pt=class lm extends oi{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new lm(y);for(const z of Fc)y[z]&&b.setChildren(y[z],z);return b}render(y){var b;const z=new vl({parent:y,isPhantom:!0}),te=this.leftSibling,ae=(b=te.render(z))!=null?b:new ta(null),ce=new ta(null);return ce.height=ae.height,ce.depth=ae.depth,this.attachSupsub(y,{base:ce,isCharacterBox:te.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function St(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var Lt=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var z,te,ae,ce;b!=null||(b={}),this.tokens=a,this.context=y instanceof vl&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new vl({from:y,mathstyle:b.mathstyle},b.style),this.args=(z=b.args)!=null?z:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(te=b.style)!=null?te:{},parseMode:(ae=b.parseMode)!=null?ae:"math",mathstyle:(ce=b.mathstyle)!=null?ce:"displaystyle",tabular:!1}}beginContext(a){var y,b,z;const te=this.parsingContext,ae={parent:te,mathlist:[],style:be({},te.style),parseMode:(y=a==null?void 0:a.mode)!=null?y:te.parseMode,mathstyle:(b=a==null?void 0:a.mathstyle)!=null?b:te.mathstyle,tabular:(z=a==null?void 0:a.tabular)!=null?z:!1};this.parsingContext=ae}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(be({before:ku(this.tokens.slice(this.index,this.index+10)),after:ku(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 be({},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 pt({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=gt(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?un(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Mo({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(),z="";for(;!b;){const ae=this.get();St(ae)?(z+=ae,b=this.end()||z.length>=a.length):b=!0}const te=a.toUpperCase()===z.toUpperCase();return te||(this.index=y),te}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(St(y))a+=y;else return a;this.next()}return a}scanBalancedString(){let a="",y=this.end(),b=1;for(;!y;){const z=this.get();z==="<space>"?a+=" ":z==="<{>"?(a+="{",b+=1):z==="<}>"?(b-=1,b>0?a+="}":this.index-=1):z==="<$>"?a+="$":z==="<$$>"?a+="$$":a+=z,y=b===0||this.end()}return a}scanLiteralGroup(){var a;if(!this.match("<{>"))return"";let y="",b=1;for(;b>0&&!this.end();){const z=this.get();z==="<}>"?(b-=1,b>0&&(y+="}")):z==="<{>"?(b+=1,y+="{"):(/\\[a-zA-Z]+$/.test(y)&&/^[a-zA-Z]/.test(z)&&(y+=" "),y+=(a={"<space>":" ","<$$>":"$$","<$>":"$"}[z])!=null?a:z)}return y}scanNumber(a=!0){var y,b;let z=!1,te=this.peek();for(;te==="<space>"||te==="+"||te==="-";)this.get(),te==="-"&&(z=!z),te=this.peek();a=!!a;let ae=10,ce=/\d/;if(this.match("'"))ae=8,ce=/[0-7]/,a=!0;else if(this.match('"'))ae=16,ce=/[\dA-F]/,a=!0;else if(this.match("x"))ae=16,ce=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return te=this.get(),te?te.length===2&&te.startsWith("\\")?{number:(z?-1:1)*((y=te.codePointAt(1))!=null?y:0),base:"alpha"}:{number:(z?-1:1)*((b=te.codePointAt(0))!=null?b:0),base:"alpha"}:null;let we="";for(;this.hasPattern(ce);)we+=this.get();if(!a&&(this.match(".")||this.match(",")))for(we+=".";this.hasPattern(ce);)we+=this.get();const ke=a?Number.parseInt(we,ae):Number.parseFloat(we);return Number.isNaN(ke)?null:{number:z?-ke:ke,base:ae===16?"hexadecimal":ae===8?"octal":"decimal"}}scanRegister(){var a;const y=this.index,b=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return b;let z=!1;if(b===null)for(;;){const ae=this.peek();if(ae==="-")z=!z;else if(ae!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const ae=this.get();return ae.startsWith("\\")?b?{register:ae,global:!0,factor:(z?-1:1)*b.number}:z?{register:ae,global:!0,factor:-1}:{register:ae,global:!0}:(this.index=y,null)}let te=this.get();return te!=null&&te.startsWith("\\")?(te=te.substring(1),this.context.registers[te]?!z||b!==null?{register:te,factor:(z?-1:1)*((a=b==null?void 0:b.number)!=null?a:1)}:{register:te}:(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 z=this.scanNumber();if(z)return z;if(this.end()||!St(this.peek()))return null;const te=this.scanString();return te.length>0?{string:te}: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=Ge(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const we of y.params)if(we.isOptional)b.push(this.scanOptionalArgument(we.type));else{const ke=this.scanArgument(we.type);ke||this.onError({code:"missing-argument",arg:a}),b.push(ke)}this.beginContext({tabular:y.tabular});const z=[],te=[];let ae=[],ce=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),ce=!0),!ce&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),ce=!0),!ce)if(this.matchColumnSeparator())ae.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){ae.push(this.mathlist),this.mathlist=[];let we=null;this.skipWhitespace(),this.match("[")&&(we=this.scanDimen(),this.skipWhitespace(),this.match("]")),te.push(we!=null?we:{dimension:0}),z.push(ae),ae=[]}else this.mathlist.push(...this.scan(we=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(we)));while(!ce);return ae.push(this.mathlist),ae.length>0&&z.push(ae),this.endContext(),y.createAtom(a,z,te,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=ce=>ce==="<}>");let y="",b=null,z=[],te=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=gt(y,"math"),b&&(z=this.scanArguments(b)[1]),te=this.mathlist,this.mathlist=[]):this.parseExpression();let ae;return y?(console.assert(!!b),z.unshift(this.mathlist),te&&z.unshift(te),ae=[b.createAtom({command:y,args:z,style:this.style,mode:this.parseMode})]):ae=this.mathlist,this.endContext(),ae}scanGroup(){const a=this.index;if(!this.match("<{>"))return null;const y=this.scan(z=>z==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const b=new Ts(y,this.parseMode,this.style);return b.verbatimLatex=ku(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 se("",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(!St(a)&&!a.startsWith("\\"))return null;this.next();const y=gt(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 bu("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new bu("\\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 bu(y==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(y);)this.parseExpression();const z=this.mathlist;this.endContext();const te=(a=this.scanDelim())!=null?a:".";return new se(y==="\\right"?"left...right":"mleft...mright",z,{leftDelim:b,rightDelim:te,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 oi({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new oi({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(Ct(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 z=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return z===null?!1:(z.explicitSubsupPlacement=!0,a&&(z.subsupPlacement="over-under"),y&&(z.subsupPlacement="adjacent"),b&&(z.subsupPlacement="auto"),!0)}scanArguments(a){if(!(a!=null&&a.params))return[void 0,[]];let y;const b=[];let z=a.infix?2:0;for(;z<a.params.length;){const te=a.params[z];te.type==="rest"?b.push(this.scan(ae=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(ae))):te.isOptional?b.push(this.scanOptionalArgument(te.type)):te.type.endsWith("*")?y=te.type.slice(0,-1):b.push(this.scanArgument(te.type)),z+=1}return[y,b]}scanSymbolOrLiteral(){const a=this.peek();if(!a)return null;this.next();let y;if(St(a)){const b=iu.createAtom(this.parseMode,a,be({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=gt(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new bu(a)];if(b.definitionType==="symbol"){const z=be({},this.style);b.variant&&(z.variant=b.variant),y=new oi({type:b.type,command:a,style:z,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 bu(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 te=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),te}if(a==="text"){a!==b&&this.beginContext({mode:"text"});const te=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),te}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 te=this.mathlist;return this.endContext(),{group:te}}if(a==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const te=this.mathlist;return this.endContext(),{group:te}}let z=null;if(a==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const te=this.mathlist;return this.endContext(),{group:te}}return a==="string"?z=this.scanString():a==="balanced-string"?z=this.scanBalancedString():a==="colspec"?z=this.scanColspec():a==="value"&&(z=this.scanValue()),this.skipUntilToken("<}>"),z}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={},z=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const te of z){const ae=te.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(ae)b.padding={dimension:parseInt(ae[1]),unit:ae[2]};else{const ce=te.match(/^\s*border\s*:\s*(.*)/);ce?b.border=ce[1]:b.backgroundcolor={string:te}}}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,z;if(a==="\\placeholder"){const we=this.scanOptionalArgument("string"),ke=this.scanOptionalArgument("math"),He=oi.serialize(ke,{defaultMode:"math"});let qe=[],It;!It&&He==="correct"?It="correct":!It&&He==="incorrect"?It="incorrect":He!==""&&(qe=ke);const nn=this.scanOptionalArgument("string")==="locked",Sn=this.scanArgument("auto");let In;return Sn&&Array.isArray(Sn)&&Sn.length>0?In=Sn:Sn&&typeof Sn=="object"&&"group"in Sn?In=Sn.group:In=qe,we?[new ft(we,It,nn,In!=null?In:qe,{mode:this.parseMode,style:this.style})]:[new Mo({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const we=this.index,ke=this.scanLiteralGroup()||this.next();if(!ke)return null;if(this.context.registers[ke.substring(1)]){const He=this.scanArgument("string");He!==null&&(this.context.registers[ke.substring(1)]=He);const qe=el([a,ku(this.tokens.slice(we,this.index))]);return[new oi({type:"text",value:"",verbatimLatex:qe})]}}let te=this.scanMacro(a);if(te)return[te];const ae=gt(a,this.parseMode);if(!ae)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(we=>new oi({type:"text",value:we,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new bu(a)]);const ce=this.index;if(ae.definitionType==="symbol"){const we=be({},this.style);ae.variant&&(we.variant=ae.variant),te=new oi({type:ae.type,command:a,style:we,value:String.fromCodePoint(ae.codepoint),mode:this.parseMode})}else{if(ae.ifMode&&!ae.ifMode.includes(this.parseMode))return[];const we=this.parseMode;ae.applyMode&&(this.parseMode=ae.applyMode);let ke,He=[];if(ae.parse?He=ae.parse(this):[ke,He]=this.scanArguments(ae),this.parseMode=we,ae.applyMode&&!ae.applyStyle&&!ae.createAtom)return Ct(He[0]);if(ae.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof ae.createAtom=="function")te=ae.createAtom({command:a,args:He,style:this.style,mode:this.parseMode}),ke&&(te.body=Ct(this.scanArgument(ke)));else if(typeof ae.applyStyle=="function"){const qe=be(be({},this.style),ae.applyStyle(a,He,this.context)),It=this.parseMode;if(ae.applyMode&&(this.parseMode=ae.applyMode),ke){const nn=this.style;this.style=qe;const Sn=this.scanArgument(ke);return this.style=nn,this.parseMode=It,Ct(Sn)}this.style=qe}else te=new oi({type:"mord",command:(b=ae.command)!=null?b:a,style:be({},this.style),value:a,mode:(z=ae.applyMode)!=null?z:this.parseMode})}if(!te)return null;if(te instanceof oi&&te.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const we=el([a,ku(this.tokens.slice(ce,this.index))]);we&&(te.verbatimLatex=we)}if(te.verbatimLatex===null&&(te.verbatimLatex=void 0),te.isFunction&&this.smartFence){const we=this.scanSmartFence();if(we)return[te,we]}return[te]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(St(a)){const y=iu.createAtom(this.parseMode,a,be({},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 sc(" "," ",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 z=this.index,te=b.args,ae={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let ce=1;ce<=te;ce++){let we=this.scanLiteralGroup();if(!we){const ke=this.index;this.scanExpression(),we=ku(this.tokens.slice(ke,this.index))}ae[ce]=we}return new ve(a,{expand:b.expand,captureSelection:b.captureSelection,args:z===this.index?null:ku(this.tokens.slice(z,this.index)),style:this.parsingContext.style,body:un(b.def,{context:this.context,parseMode:this.parseMode,args:ce=>ae[ce],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,z;let te=(z=(b=(y=(a=this.scanEnvironment())!=null?a:this.scanModeShift())!=null?y:this.scanModeSet())!=null?b:this.scanGroup())!=null?z:this.scanLeftRight();if(te===null){if(this.parseSupSub()||this.parseLimits())return!0;te=this.scanSymbolCommandOrLiteral()}return te?(Array.isArray(te)?this.mathlist.push(...te):this.mathlist.push(te),!0):!1}};function un(a,y){var b,z,te,ae;const ce=(b=y==null?void 0:y.args)!=null?b:void 0,we=new Lt(wu(a,ce),y==null?void 0:y.context,{args:ce,mathstyle:(z=y==null?void 0:y.mathstyle)!=null?z:"displaystyle",parseMode:(te=y==null?void 0:y.parseMode)!=null?te:"math",style:(ae=y==null?void 0:y.style)!=null?ae:{}}),ke=[];for(;!we.end();)ke.push(...we.scan(()=>!1));return ke}function Nn(a,y){var b;const z=new Lt(wu(a,null),y==null?void 0:y.context,{mathstyle:"displaystyle",parseMode:(b=y==null?void 0:y.parseMode)!=null?b:"math"});for(;!z.end();)z.scan();return z.errors}var Dn=class sm extends oi{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const z=fn.go(zt.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=un(z),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new sm(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return De(be({},super.toJson()),{arg:this.arg})}render(y){const b=oi.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}};kt(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new Dn(a.command,(y=a.args[0])!=null?y:"")}});var zt={go:function(a,y){if(!a)return[];y===void 0&&(y="ce");var b="0",z={};z.parenthesisLevel=0,a=a.replace(/\n/g," "),a=a.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),a=a.replace(/[\u2026]/g,"...");for(var te,ae=10,ce=[];;){te!==a?(ae=10,te=a):ae--;var we=zt.stateMachines[y],ke=we.transitions[b]||we.transitions["*"];e:for(var He=0;He<ke.length;He++){var qe=zt.patterns.match_(ke[He].pattern,a);if(qe){for(var It=ke[He].task,nn=0;nn<It.action_.length;nn++){var Sn;if(we.actions[It.action_[nn].type_])Sn=we.actions[It.action_[nn].type_](z,qe.match_,It.action_[nn].option);else if(zt.actions[It.action_[nn].type_])Sn=zt.actions[It.action_[nn].type_](z,qe.match_,It.action_[nn].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+It.action_[nn].type_+")"];zt.concatArray(ce,Sn)}if(b=It.nextState||b,a.length>0){if(It.revisit||(a=qe.remainder),!It.toContinue)break e}else return ce}}if(ae<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(a,y){if(y)if(Object.prototype.toString.call(y)==="[object Array]")for(var b=0;b<y.length;b++)a.push(y[b]);else a.push(y)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"(-)(9)^(-9)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"state of aggregation $":function(a){var y=zt.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 zt.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return zt.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return zt.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return zt.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return zt.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return zt.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return zt.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return zt.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return zt.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return zt.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return zt.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return zt.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return zt.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 zt.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return zt.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return zt.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return zt.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 zt.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return zt.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return zt.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return zt.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return zt.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return zt.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return zt.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return zt.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=zt.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,z,te,ae,ce,we,ke,He){var qe=function(Nr,bi){if(typeof bi=="string")return Nr.indexOf(bi)!==0?null:bi;var ua=Nr.match(bi);return ua?ua[0]:null},It=function(Nr,bi,ua){for(var Ti=0;bi<Nr.length;){var $a=Nr.charAt(bi),ko=qe(Nr.substr(bi),ua);if(ko!==null&&Ti===0)return{endMatchBegin:bi,endMatchEnd:bi+ko.length};if($a==="{")Ti++;else if($a==="}"){if(Ti===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];Ti--}bi++}return Ti>0,null},nn=qe(a,y);if(nn===null||(a=a.substr(nn.length),nn=qe(a,b),nn===null))return null;var Sn=It(a,nn.length,z||te);if(Sn===null)return null;var In=a.substring(0,z?Sn.endMatchEnd:Sn.endMatchBegin);if(ae||ce){var Rr=this.findObserveGroups(a.substr(Sn.endMatchEnd),ae,ce,we,ke);if(Rr===null)return null;var ia=[In,Rr.match_];return{match_:He?ia.join(""):ia,remainder:Rr.remainder}}else return{match_:In,remainder:a.substr(Sn.endMatchEnd)}},match_:function(a,y){var b=zt.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return zt.patterns.patterns[a](y);var z=y.match(b);if(z){var te;return z[2]?te=[z[1],z[2]]:z[1]?te=z[1]:te=z[0],{match_:te,remainder:y.substr(z[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 zt.go(y,"text")},"{text}":function(a,y){var b=["{"];return zt.concatArray(b,zt.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return zt.go(y,"tex-math")},"tex-math tight":function(a,y){return zt.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 zt.go(y)},"1/2":function(a,y){var b=[];y.match(/^[+\-]/)&&(b.push(y.substr(0,1)),y=y.substr(1));var z=y.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return z[1]=z[1].replace(/\$/g,""),b.push({type_:"frac",p1:z[1],p2:z[2]}),z[3]&&(z[3]=z[3].replace(/\$/g,""),b.push({type_:"tex-math",p1:z[3]})),b},"9,9":function(a,y){return zt.go(y,"9,9")}},createTransitions:function(a){var y,b,z,te,ae={};for(y in a)for(b in a[y])for(z=b.split("|"),a[y][b].stateArray=z,te=0;te<z.length;te++)ae[z[te]]=[];for(y in a)for(b in a[y])for(z=a[y][b].stateArray||[],te=0;te<z.length;te++){var ce=a[y][b];if(ce.action_){ce.action_=[].concat(ce.action_);for(var we=0;we<ce.action_.length;we++)typeof ce.action_[we]=="string"&&(ce.action_[we]={type_:ce.action_[we]})}else ce.action_=[];for(var ke=y.split("|"),He=0;He<ke.length;He++)if(z[te]==="*")for(var qe in ae)ae[qe].push({pattern:ke[He],task:ce});else ae[z[te]].push({pattern:ke[He],task:ce})}return ae},stateMachines:{}};zt.stateMachines={ce:{transitions:zt.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 z=a.d;a.d=void 0,b=this.output(a),a.b=z}else b=this.output(a);return zt.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 zt.concatArray(b,this.output(a)),zt.concatArray(b,zt.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var z=zt.patterns.match_("orbital",a.o||""),te=zt.patterns.match_("one lowercase greek letter $",a.o||""),ae=zt.patterns.match_("one lowercase latin letter $",a.o||""),ce=zt.patterns.match_("$one lowercase latin letter$ $",a.o||""),we=y==="-"&&(z&&z.remainder===""||te||ae||ce);we&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!z&&ae&&(a.o="$"+a.o+"$");var ke=[];return we?(zt.concatArray(ke,this.output(a)),ke.push({type_:"hyphen"})):(z=zt.patterns.match_("digits",a.d||""),b&&z&&z.remainder===""?(zt.concatArray(ke,zt.actions["d="](a,y)),zt.concatArray(ke,this.output(a))):(zt.concatArray(ke,this.output(a)),zt.concatArray(ke,zt.actions.bond(a,y,"-")))),ke},"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:zt.go(y,"o")}},comma:function(a,y){var b=y.replace(/\s*$/,""),z=b!==y;return z&&a.parenthesisLevel===0?{type_:"comma enumeration L",p1:b}:{type_:"comma enumeration M",p1:b}},output:function(a,y,b){var z;if(!a.r)z=[],!a.a&&!a.b&&!a.p&&!a.o&&!a.q&&!a.d&&!b||(a.sb&&z.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"&&zt.patterns.match_("d-oxidation$",a.d||"")?a.dType="oxidation":a.o&&a.dType==="kv"&&!a.q&&(a.dType=void 0),z.push({type_:"chemfive",a:zt.go(a.a,"a"),b:zt.go(a.b,"bd"),p:zt.go(a.p,"pq"),o:zt.go(a.o,"o"),q:zt.go(a.q,"pq"),d:zt.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var te;a.rdt==="M"?te=zt.go(a.rd,"tex-math"):a.rdt==="T"?te=[{type_:"text",p1:a.rd||""}]:te=zt.go(a.rd);var ae;a.rqt==="M"?ae=zt.go(a.rq,"tex-math"):a.rqt==="T"?ae=[{type_:"text",p1:a.rq||""}]:ae=zt.go(a.rq),z={type_:"arrow",r:a.r,rd:te,rq:ae}}for(var ce in a)ce!=="parenthesisLevel"&&ce!=="beginsWithBond"&&delete a[ce];return z},"oxidation-output":function(a,y){var b=["{"];return zt.concatArray(b,zt.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:zt.go(y[0]),p2:zt.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:zt.go(y[0]),p2:zt.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:zt.go(y[0]),p2:zt.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:zt.go(y[0]),p2:zt.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:zt.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:zt.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:zt.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:zt.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:zt.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:zt.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:zt.go(y[1],"pq")}}}},bd:{transitions:zt.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:zt.go(y[1],"bd")}}}},oxidation:{transitions:zt.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:zt.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:zt.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:zt.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:zt.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]&&(zt.concatArray(b,zt.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?zt.concatArray(b,zt.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]),zt.concatArray(b,zt.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=zt.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var z=zt.patterns.match_("{(...)}",a.q||"");if(z&&z.remainder===""&&(a.q=z.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 te={d:zt.go(a.d,"pu"),q:zt.go(a.q,"pu")};a.o==="//"?y={type_:"pu-frac",p1:te.d,p2:te.q}:(y=te.d,te.d.length>1||te.q.length>1?y.push({type_:" / "}):y.push({type_:"/"}),zt.concatArray(y,te.q))}else y=zt.go(a.d,"pu-2");for(var ae in a)delete a[ae];return y}}},"pu-2":{transitions:zt.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=zt.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=zt.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var z in a)delete a[z];return y}}},"pu-9,9":{transitions:zt.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 z=a.text_.length-3;z>0;z-=3)y.push(a.text_.substr(z,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(0,b)),y.reverse()}else y.push(a.text_);for(var te in a)delete a[te];return y},"output-o":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){for(var b=a.text_.length-3,z=0;z<b;z+=3)y.push(a.text_.substr(z,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(z))}else y.push(a.text_);for(var te in a)delete a[te];return y}}}};var fn={go:function(a,y){if(!a)return"";for(var b="",z=!1,te=0;te<a.length;te++){var ae=a[te];typeof ae=="string"?b+=ae:(b+=fn._go2(ae),ae.type_==="1st-level escape"&&(z=!0))}return!y&&!z&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&fn.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:fn._goInner(a.a),b:fn._goInner(a.b),p:fn._goInner(a.p),o:fn._goInner(a.o),q:fn._goInner(a.q),d:fn._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 "+fn._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+fn._goInner(a.p1);break;case"bond":if(y=fn._getBond(a.kind_),!y)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+a.kind_+")"];break;case"frac":var z="\\frac{"+a.p1+"}{"+a.p2+"}";y="\\mathchoice{\\textstyle"+z+"}{"+z+"}{"+z+"}{"+z+"}";break;case"pu-frac":var te="\\frac{"+fn._goInner(a.p1)+"}{"+fn._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+te+"}{"+te+"}{"+te+"}{"+te+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+fn._goInner(a.p1)+"}{"+fn._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+fn._goInner(a.p1)+"}{"+fn._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+fn._goInner(a.p1)+"}{"+fn._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+fn._goInner(a.p1)+"}_{"+fn._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+fn._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var ae={rd:fn._goInner(a.rd),rq:fn._goInner(a.rq)},ce=fn._getArrow(a.r);ae.rd||ae.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(ce="\\long"+ce,ae.rd&&(ce="\\overset{"+ae.rd+"}{"+ce+"}"),ae.rq&&(a.r==="<-->"?ce="\\underset{\\lower2mu{"+ae.rq+"}}{"+ce+"}":ce="\\underset{\\lower6mu{"+ae.rq+"}}{"+ce+"}"),ce=" {}\\mathrel{"+ce+"}{} "):(ae.rq&&(ce+="[{"+ae.rq+"}]"),ce+="{"+ae.rd+"}",ce=" {}\\mathrel{\\x"+ce+"}{} "):ce=" {}\\mathrel{\\long"+ce+"}{} ",y=ce;break;case"operator":y=fn._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 Jn(a){}function Tr(a){}var ra=class um extends oi{constructor(y){super(De(be({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new um(y)}toJson(){return De(be({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new ta(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=gt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Kl(this.command,this.value)}},fa=class cm extends oi{constructor(y){super(De(be({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new cm(y)}toJson(){return De(be({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=wr(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=gt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Kl(this.command,this.value)}},ha=class dm extends oi{constructor(y,b,z,te){var ae,ce;super({type:"enclose",command:y,style:te.style}),this.body=b,this.backgroundcolor=te.backgroundcolor,z.updiagonalarrow&&(z.updiagonalstrike=!1),z.box&&(z.left=!1,z.right=!1,z.bottom=!1,z.top=!1),this.notation=z,this.shadow=(ae=te.shadow)!=null?ae:"none",this.strokeWidth=(ce=te.strokeWidth)!=null?ce:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=te.strokeStyle,this.svgStrokeStyle=te.svgStrokeStyle,this.strokeColor=te.strokeColor,this.borderStyle=te.borderStyle,this.padding=te.padding,this.captureSelection=!1}static fromJson(y){return new dm(y.command,y.body,y.notation,y)}toJson(){return De(be({},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 z=gt(this.command,this.mode);if(z!=null&&z.serialize)return z.serialize(this,y);let te=(b=this.command)!=null?b:"";if(this.command==="\\enclose"){te+="{"+Object.keys(this.notation).join(" ")+"}";let ae="",ce="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(ae+=ce+'mathbackground="'+this.backgroundcolor+'"',ce=","),this.shadow&&this.shadow!=="auto"&&(ae+=ce+'shadow="'+this.shadow+'"',ce=","),this.strokeWidth||this.strokeStyle!=="solid"?(ae+=ce+this.borderStyle,ce=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(ae+=ce+'mathcolor="'+this.strokeColor+'"',ce=","),ae&&(te+=`[${ae}]`)}return Kl(te,this.bodyToLatex(y))}render(y){const b=new vl({parent:y},this.style),z=oi.createBox(b,this.body);if(!z)return null;const te=uo(this.borderStyle),ae=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});z.setStyle("position","relative"),z.setStyle("display","inline-block"),z.setStyle("top",ae,"em"),z.setStyle("height",z.height+z.depth,"em"),z.setStyle("width",z.width,"em");const ce=new ta(null,{classes:"ML__notation"});let we=z.height+z.depth+2*ae;const ke=z.width+2*ae;let He="";if(this.notation.horizontalstrike&&(He+=this.line(3,50,97,50)),this.notation.verticalstrike&&(He+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(He+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(He+=this.line(3,3,97,97)),this.notation.updiagonalarrow){He+=this.line(ae.toString(),(ae+z.depth+z.height).toString(),(ae+z.width).toString(),ae.toString());const In=.03*Math.sqrt(ke*ke+we*we)*1,Rr=z.width*In,ia=(z.depth+z.height)*In,Nr=ae+z.width;let bi=ae;bi+ia-.4*Rr<0&&(bi=.4*Rr-ia),He+='<polygon points="',He+=`${Nr},${bi} ${Nr-Rr-.4*ia},${bi+ia-.4*Rr} `,He+=`${Nr-.7*Rr},${bi+.7*ia} ${Nr-Rr+.4*ia},${bi+ia+.4*Rr} `,He+=`${Nr},${bi}`,He+=`" stroke='none' fill="${this.strokeColor}"`,He+="/>"}let qe=0;if(this.notation.phasorangle){const nn=tl(b),Sn=(z.height+z.depth+2*nn+ae).toString(),In=(z.height+z.depth)/2;He+=this.line(ae.toString(),Sn,(ae+In+z.width).toString(),Sn),He+=this.line(ae.toString(),Sn,(ae+In).toString(),(ae-nn).toString()),we+=nn,qe=In,z.left+=we/2-ae}if(this.notation.longdiv){const nn=tl(b);we+=nn,He+=this.line(ae.toString(),ae.toString(),(ae+z.width).toString(),ae.toString());const Sn=.3;qe=Sn+nn,z.left+=Sn+nn,z.setTop(ae+nn),He+='<path d="',He+=`M ${ae} ${ae} a${Sn} ${(z.depth+z.height+2*nn)/2}, 0, 1, 1, 0 ${z.depth+z.height+2*nn} "`,He+=` stroke-width="${Eo(b)}" stroke="${this.strokeColor}" fill="none"`,He+="/>"}if(ce.width=z.width+2*ae+qe,ce.height=z.height+ae,ce.depth=z.depth+ae,ce.setStyle("box-sizing","border-box"),ce.setStyle("left",`calc(-${te} / 2 )`),ce.setStyle("height",`${Math.floor(100*we)/100}em`),ce.setStyle("top",`calc(${te} / 2 )`),this.backgroundcolor&&ce.setStyle("background-color",this.backgroundcolor),this.notation.box&&ce.setStyle("border","1px solid red"),this.notation.actuarial&&(ce.setStyle("border-top",this.borderStyle),ce.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(ce.setStyle("border-bottom",this.borderStyle),ce.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(ce.setStyle("border-radius","8px"),ce.setStyle("border",this.borderStyle)),this.notation.circle&&(ce.setStyle("border-radius","50%"),ce.setStyle("border",this.borderStyle)),this.notation.top&&ce.setStyle("border-top",this.borderStyle),this.notation.left&&ce.setStyle("border-left",this.borderStyle),this.notation.right&&ce.setStyle("border-right",this.borderStyle),this.notation.bottom&&ce.setStyle("border-bottom",this.borderStyle),He){let nn="";this.shadow==="auto"&&(nn+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(nn+=`filter: drop-shadow(${this.shadow})`),nn+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,nn+=' stroke-linecap="round"',this.svgStrokeStyle&&(nn+=` stroke-dasharray="${this.svgStrokeStyle}"`),ce.svgStyle=nn,ce.svgOverlay=He}const It=new ta([ce,z]);return It.setStyle("position","relative"),It.setStyle("vertical-align",ae,"em"),It.setStyle("height",`${Math.floor(100*(z.height+z.depth+2*ae))/100}em`),It.setStyle("display","inline-block"),It.height=ce.height,It.depth=ce.depth,It.width=ce.width-2*ae,It.left=ae,It.right=ae,this.caret&&(It.caret=this.caret),It.wrap(b)}line(y,b,z,te){return`<line x1="${za(y)}" y1="${za(b)}" x2="${za(z)}" y2="${za(te)}" vector-effect="non-scaling-stroke"></line>`}};function za(a){return typeof a=="number"?`${Math.floor(100*a)/100}%`:a}function uo(a){if(!a)return"1px";const y=a.match(/([0-9][a-zA-Z\%]+)/);return y===null?"1px":y[1]}function Eo(a){return(Math.floor(100*a.metrics.sqrtRuleThickness/a.scalingFactor)/100/10).toString()+"em"}function tl(a){const y=a.isDisplayStyle?Cs:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var Uo=class fm extends oi{constructor(y,b,z){var te,ae;super(De(be({},z),{type:"genfrac",displayContainsHighlight:!0})),this.above=y,this.below=b,this.hasBarLine=(te=z==null?void 0:z.hasBarLine)!=null?te:!0,this.continuousFraction=(ae=z==null?void 0:z.continuousFraction)!=null?ae:!1,this.numerPrefix=z==null?void 0:z.numerPrefix,this.denomPrefix=z==null?void 0:z.denomPrefix,this.mathstyleName=z==null?void 0:z.mathstyleName,this.leftDelim=z==null?void 0:z.leftDelim,this.rightDelim=z==null?void 0:z.rightDelim,this.fractionNavigationOrder=z==null?void 0:z.fractionNavigationOrder}static fromJson(y){return new fm(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),be(be({},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,z;const te=new vl({parent:y,mathstyle:this.mathstyleName},this.style),ae=te.metrics,ce=new vl({parent:te,mathstyle:this.continuousFraction?"":"numerator"},this.style),we=this.numerPrefix?new ta([new ta(this.numerPrefix),oi.createBox(ce,this.above)],{isTight:ce.isTight,type:"ignore"}):(b=oi.createBox(ce,this.above,{type:"ignore"}))!=null?b:new ta(null,{type:"ignore"}),ke=new vl({parent:te,mathstyle:this.continuousFraction?"":"denominator"},this.style),He=this.denomPrefix?new ta([new ta(this.denomPrefix),oi.createBox(ke,this.below,{type:"ignore"})]):(z=oi.createBox(ke,this.below,{type:"ignore"}))!=null?z:new ta(null,{type:"ignore"}),qe=this.hasBarLine?ae.defaultRuleThickness:0;let It,nn=0,Sn;te.isDisplayStyle?(It=ce.metrics.num1,nn=qe>0?3*qe:7*qe,Sn=ke.metrics.denom1):(qe>0?(It=ce.metrics.num2,nn=qe):(It=ce.metrics.num3,nn=3*ae.defaultRuleThickness),Sn=ke.metrics.denom2);const In=[];this.isSelected&&In.push("ML__selected");const Rr=we.depth,ia=He.height;let Nr;if(qe<=0){const mo=It-Rr-(ia-Sn);mo<nn&&(It+=(nn-mo)/2,Sn+=(nn-mo)/2),Nr=new kl({individualShift:[{box:we,shift:-It,classes:[...In,"ML__center"]},{box:He,shift:Sn,classes:[...In,"ML__center"]}]}).wrap(te)}else{const mo=new ta(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});mo.softWidth=Math.max(we.width,He.width),mo.height=qe/2,mo.depth=qe/2;const Al=ps+qe/2;It<nn+Rr+Al&&(It=nn+Rr+Al);const Yl=ps-qe/2;Sn<nn+ia-Yl&&(Sn=nn+ia-Yl),Nr=new kl({individualShift:[{box:He,shift:Sn,classes:[...In,"ML__center"]},{box:mo,shift:-Yl,classes:In},{box:we,shift:-It,classes:[...In,"ML__center"]}]}).wrap(te)}const bi=te.isDisplayStyle?ae.delim1:ae.delim2,ua=this.leftDelim?this.bind(y,Ra("open",this.leftDelim,bi,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):Va(te,"open");let Ti=null;this.continuousFraction?Ti=new ta(null,{type:"close"}):this.rightDelim?Ti=this.bind(y,Ra("close",this.rightDelim,bi,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):Ti=Va(te,"close");const $a=new ta([ua,Nr,Ti],{isTight:te.isTight,type:"inner",classes:"mfrac"}),ko=this.bind(y,$a);return this.caret&&(ko.caret=this.caret),this.attachSupsub(y,{base:ko})}},Zo=class hm extends oi{constructor(y,b){var z;super({type:"latex",value:y,mode:"latex"}),this.isSuggestion=(z=b==null?void 0:b.isSuggestion)!=null?z:!1,this.isError=!1}static fromJson(y){const b=new hm(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),be({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new ta(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}},fs=class pm extends oi{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new Zo(b)),this.skipBoundary=!1}static fromJson(y){return new pm("")}toJson(){return super.toJson()}render(y){const b=oi.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){var b,z;return(z=(b=this.body)==null?void 0:b.map(te=>te.value).join(""))!=null?z:""}},Sl=class mm extends oi{constructor(y,b){super(De(be({},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 mm(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 z=y.isDisplayStyle&&this.value!=="\\smallint",te=new ta(this.value,{fontFamily:z?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(z?"large-op":"small-op"),type:"op",maxFontSize:y.scalingFactor,isSelected:this.isSelected});if(!te)return null;te.right=te.italic;const ae=(te.height-te.depth)/2-ps*y.scalingFactor,ce=te.italic;te.setTop(ae);let we=te;if(this.superscript||this.subscript){const ke=(b=this.subsupPlacement)!=null?b:"auto";we=ke==="over-under"||ke==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:te,baseShift:ae,slant:ce}):this.attachSupsub(y,{base:te})}return new ta(this.bind(y,we),{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=gt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const z=[];return z.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&z.push("\\limits"),this.subsupPlacement==="adjacent"&&z.push("\\nolimits"),this.subsupPlacement==="auto"&&z.push("\\displaylimits")),z.push(this.supsubToLatex(y)),el(z)}},ql=class vm extends oi{constructor(y){const b=y.body;super(De(be({},y),{type:"overlap",body:typeof b=="string"?[new oi({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 vm(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),be(be({},super.toJson()),y)}render(y){const b=oi.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new ta([b,new ta(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},es=class gm extends oi{constructor(y){var b,z,te,ae;super({type:"overunder",command:y.command,style:y.style,mode:y.mode,body:y.body,skipBoundary:(b=y.skipBoundary)!=null?b:!0}),this.subsupPlacement=y.supsubPlacement,this.svgAbove=y.svgAbove,this.svgBelow=y.svgBelow,this.svgBody=y.svgBody,this.above=y.above,this.below=y.below,this.boxType=(z=y.boxType)!=null?z:"ord",this.paddedBody=(te=y.paddedBody)!=null?te:!1,this.paddedLabels=(ae=y.paddedLabels)!=null?ae:!1}static fromJson(y){return new gm(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?mu(this.svgBody):oi.createBox(y,this.body,{type:"ignore"});const z=new vl({parent:y,mathstyle:"scriptstyle"},this.style);let te=null;this.svgAbove?te=mu(this.svgAbove):this.above&&(te=oi.createBox(z,this.above,{type:"ignore"}));let ae=null;this.svgBelow?ae=mu(this.svgBelow):this.below&&(ae=oi.createBox(z,this.below,{type:"ignore"})),this.paddedBody&&(b=new ta([Va(y,"open"),b,Va(y,"close")],{type:"ignore"}));let ce=uu(y,{base:b,above:te,below:ae,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return ce?(this.subsupPlacement==="over-under"?ce=this.attachLimits(y,{base:ce,type:ce.type}):ce=this.attachSupsub(y,{base:ce}),this.caret&&(ce.caret=this.caret),this.bind(y,ce)):null}};function uu(a,y){if(!y.base)return null;if(!y.above&&!y.below){const we=new ta(y.base,{type:y.type});return we.setStyle("position","relative"),we}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let z=null;const te=y.base,ae=0,ce=["ML__center"];if(y.paddedAboveBelow&&ce.push("ML__label_padding"),y.below&&y.above){const we=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+te.depth+ae;z=new kl({bottom:we,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:ce},{box:te,classes:["ML__center"]},b,{box:y.above,classes:ce},a.metrics.bigOpSpacing5]})}else y.below?z=new kl({top:te.height-ae,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:ce},{box:te,classes:["ML__center"]}]}):y.above&&(z=new kl({bottom:te.depth+ae,children:[{box:te,classes:["ML__center"]},b,{box:y.above,classes:ce},a.metrics.bigOpSpacing5]}));return new ta(z,{type:y.type})}var Ou=class ym extends oi{constructor(y){var b,z,te,ae;super(De(be({},y),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(b=y.isInvisible)!=null?b:!1,this.smashDepth=(z=y.smashDepth)!=null?z:!1,this.smashHeight=(te=y.smashHeight)!=null?te:!1,this.smashWidth=(ae=y.smashWidth)!=null?ae:!1}static fromJson(y){return new ym(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),be(be({},super.toJson()),y)}render(y){const b=new vl({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),oi.createBox(b,this.body,{classes:"inner"});const z=oi.createBox(this.isInvisible?b:y,this.body);if(!z)return null;if(this.smashWidth){const te=new ta(null,{classes:"fix"});return new ta([z,te],{classes:"rlap"}).wrap(y)}if(!this.smashHeight&&!this.smashDepth)return z;if(this.smashHeight&&(z.height=0),this.smashDepth&&(z.depth=0),z.children)for(const te of z.children)this.smashHeight&&(te.height=0),this.smashDepth&&(te.depth=0);return new kl({firstBaseline:[{box:z}]},{type:z.type}).wrap(y)}},Su=class bm extends oi{constructor(y){var b;super(be({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 bm(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 ta(this.mode==="math"?null:" ");let z;if(this.width!==void 0)z=new ta(null,{classes:"mspace"}),z.left=y.toEm(this.width);else{const te=(b={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?b:"mediumspace";z=new ta(null,{classes:te})}return z=this.bind(y,z),this.caret&&(z.caret=this.caret),z}_serialize(y){var b;if(!y.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const z=gt(this.command,this.mode);if(z!=null&&z.serialize)return z.serialize(this,y);const te=(b=this.command)!=null?b:"";return this.width===void 0?te:this._braced&&!("register"in this.width)?`${te}{${us(this.width)}}`:`${te}${us(this.width)}`}},Lu=class xm extends oi{constructor(y){var b;super(De(be({},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 xm(De(be({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=gt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const z=this.command,te=this.bodyToLatex(y);return this.above&&!this.hasEmptyBranch("above")?Kl(`${z}[${this.aboveToLatex(y)}]`,te):/^[0-9]$/.test(te)?`${z}${te}`:Kl(z,te)}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 z=new vl({parent:y,mathstyle:"cramp"},this.style),te=(b=oi.createBox(z,this.body,{type:"inner"}))!=null?b:new ta(null),ae=z.scalingFactor,ce=z.metrics.defaultRuleThickness/ae,we=y.isDisplayStyle?Cs:ce,ke=new ta(null,{classes:"ML__sqrt-line",style:this.style});ke.height=ce,ke.softWidth=te.width;let He=ae*(ce+we/4);const It=Math.max(ae*2*we,te.height+te.depth)+He+ce,nn=new vl({parent:y},this.style),Sn=this.bind(nn,new ta(Ra("inner","\\surd",It,!1,nn,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!Sn)return null;const In=Sn.height+Sn.depth-ce;In>te.height+te.depth+He&&(He=(He+In-(te.height+te.depth))/2),Sn.setTop(Sn.height-te.height-He);const Rr=this.bind(y,new kl({firstBaseline:[{box:new ta(te)},He-2*ce,{box:ke},ce]})),ia=oi.createBox(new vl({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!ia){const ua=new ta([Sn,Rr],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return ua.setStyle("display","inline-block"),ua.setStyle("height",ua.height+ua.depth,"em"),this.caret&&(ua.caret=this.caret),this.bind(y,ua)}const Nr=new kl({shift:-.6*(Math.max(Sn.height,Rr.height)-Math.max(Sn.depth,Rr.depth)),children:[{box:ia}]}),bi=new ta([new ta(Nr,{classes:"ML__sqrt-index",type:"ignore"}),Sn,Rr],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return bi.height=Sn.height,bi.depth=Sn.depth,this.caret&&(bi.caret=this.caret),this.bind(y,bi)}},Cc=class extends ta{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 Ks(a,y){if(!a.parent)return;const b=a.parent.children,z=b.indexOf(a);let te=z-1;for(;te>=0&&b[te].type==="ignore";)te-=1;if(te<0&&a.parent.parent&&a.parent.type==="lift"){Ks(a.parent,y);return}z>0&&b[z-1].type==="skip"?b[z-1].width+=y:b.splice(z,0,new Cc(y))}var Wc={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}},wc={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function Wd(a){tc(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 cc(a,y){if(!a.children)return a;const b=a.children;Wd(b);const z=y.getRegisterAsEm("thinmuskip"),te=y.getRegisterAsEm("medmuskip"),ae=y.getRegisterAsEm("thickmuskip");return tc(b,(ce,we)=>{var ke,He,qe;if(!ce)return;const It=ce.type,nn=we.isTight?(ke=wc[It])!=null?ke:null:(He=Wc[It])!=null?He:null,Sn=(qe=nn==null?void 0:nn[we.type])!=null?qe:null;Sn===3&&Ks(we,z),Sn===4&&Ks(we,te),Sn===5&&Ks(we,ae)}),a}function tc(a,y,b=void 0){if(!a)return b;a=[...a];for(const z of a)z.type==="lift"?b=tc(z.children,y,b):z.type==="ignore"?tc(z.children,y):(y(b,z),tc(z.children,y),b=z);return b}var nc=class Em extends oi{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new oi({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new Em(De(be({},y),{tooltip:dc(y.tooltip)}))}toJson(){var y;const b=(y=this.tooltip.body)==null?void 0:y.filter(z=>z.type!=="first").map(z=>z.toJson());return De(be({},super.toJson()),{tooltip:b})}render(y){const b=oi.createBox(new vl,this.body);if(!b)return null;const z=new vl({parent:y,mathstyle:"displaystyle"},{fontSize:Ll}),te=zc(cc(new ta(this.tooltip.render(z),{classes:"ML__tooltip-content"}),z)),ae=new ta([te,b],{classes:"ML__tooltip-container"});return this.caret&&(ae.caret=this.caret),this.bind(y,ae)}},Ku=class Cm extends oi{constructor(y,b){super(De(be({},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 Cm(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 z=new ta(this.value,{type:"op",mode:"math",maxFontSize:y.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:y.letterShapeStyle});let te=z;if(this.superscript||this.subscript){const ae=(b=this.subsupPlacement)!=null?b:"auto";te=ae==="over-under"||ae==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:z}):this.attachSupsub(y,{base:z})}return new ta(this.bind(y,te),{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=gt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const z=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&z.push("\\limits"),this.subsupPlacement==="adjacent"&&z.push("\\nolimits"),this.subsupPlacement==="auto"&&z.push("\\displaylimits")),z.push(this.supsubToLatex(y)),el(z)}};function dc(a){if(Fe(a))return a.map(z=>dc(z));if(typeof a=="string")return oi.fromJson(a);a=be({},a);for(const z of Fc)a[z]&&(a[z]=dc(a[z]));a.args&&(a.args=Sc(a.args)),a.array&&(a.array=dc(a.array));const y=a.type;let b;y==="accent"&&(b=ee.fromJson(a)),y==="array"&&(b=Go.fromJson(a)),y==="box"&&(b=As.fromJson(a)),y==="chem"&&(b=Dn.fromJson(a)),y==="composition"&&(b=Oc.fromJson(a)),y==="delim"&&(b=ra.fromJson(a)),y==="enclose"&&(b=ha.fromJson(a)),y==="error"&&(b=bu.fromJson(a)),y==="extensible-symbol"&&(b=Sl.fromJson(a)),y==="genfrac"&&(b=Uo.fromJson(a)),y==="group"&&(b=Ts.fromJson(a)),y==="latex"&&(b=Zo.fromJson(a)),y==="latexgroup"&&(b=fs.fromJson(a)),y==="leftright"&&(b=se.fromJson(a)),y==="macro"&&(b=ve.fromJson(a)),y==="macro-argument"&&(b=Oe.fromJson(a)),y==="operator"&&(b=Ku.fromJson(a)),y==="overlap"&&(b=ql.fromJson(a)),y==="overunder"&&(b=es.fromJson(a)),y==="placeholder"&&(b=Mo.fromJson(a)),y==="prompt"&&(b=ft.fromJson(a)),y==="phantom"&&(b=Ou.fromJson(a)),y==="sizeddelim"&&(b=fa.fromJson(a)),y==="spacing"&&(b=Su.fromJson(a)),y==="subsup"&&(b=pt.fromJson(a)),y==="surd"&&(b=Lu.fromJson(a)),y==="text"&&(b=sc.fromJson(a)),y==="tooltip"&&(b=nc.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=oi.fromJson(a));for(const z of Fc)a[z]&&b.setChildren(a[z],z);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 Sc(a){if(a&&Array.isArray(a))return a.map(y=>y==="<null>"?null:typeof y=="object"&&"group"in y?{group:y.group.map(b=>dc(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>dc(b)):y)}var Sd={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"]},Ad={"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]$/},fd=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,df=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,ff=[/^[a-z]$/,/^[A-Z]$/,fd,df],uh={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},Uh=class extends iu{constructor(){super("math")}createAtom(a,y,b){var z,te,ae,ce;if(y===null)return new oi({type:"mord",mode:"math",command:a,value:a,style:b});const we=window.MathfieldElement.isFunction((z=y.command)!=null?z:a);if(y.definitionType==="symbol"){const He=new oi({type:(te=y.type)!=null?te:"mord",mode:"math",command:(ae=y.command)!=null?ae:a,value:String.fromCodePoint(y.codepoint),style:b});return we&&(He.isFunction=!0),a.startsWith("\\")&&(He.verbatimLatex=a),He}const ke=new oi({type:"mord",mode:"math",command:(ce=y.command)!=null?ce:a,value:a,style:b});return we&&(ke.isFunction=!0),a.startsWith("\\")&&(ke.verbatimLatex=a),ke}serialize(a,y){const b=hf(a,De(be({},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:z}=y;b==="normal"&&!z&&/[\u00A3\u0131\u0237]/.test(a.value)&&(b="main",z="italic"),b==="normal"&&!z&&a.value.length===1&&ff.forEach((we,ke)=>{var He;we.test(a.value)&&uh[(He=y.letterShapeStyle)!=null?He:"tex"][ke]==="it"&&(z="italic")}),z==="up"&&(z=void 0);const te=z?b+"-"+z:b;console.assert(Sd[te]!==void 0);const[ae,ce]=Sd[te];return Ad[b]&&!Ad[b].test(a.value)?(a.value=Ht(a.value,b,z),null):(fd.test(a.value)&&(a.classes+=" lcGreek"),ce&&(a.classes+=" "+ce),ae)}};function hf(a,y){const{parent:b}=a[0],z=ch(b);return ss(a,"variant").map(te=>{const ae=ch(te[0]);let ce="";ae&&ae!==z&&(ce={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[ae],console.assert(ce!==void 0));const we=el(te.map(ke=>ke._serialize(y)));return ce?Kl(ce,we):we})}function ch(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 Uh;function dh(a,y){return a.map(b=>b._serialize(y))}function Zf(a,y){return ss(a,"fontShape").map(b=>{const z=dh(b,y),{fontShape:te}=b[0].style;let ae="";return te==="it"&&(ae="\\textit"),te==="sl"&&(ae="\\textsl"),te==="sc"&&(ae="\\textsc"),te==="n"&&(ae="\\textup"),!ae&&te?`{${Kl("\\fontshape",te)}${el(z)}}`:ae?Kl(ae,el(z)):el(z)})}function pf(a,y){return ss(a,"fontSeries").map(b=>{const z=Zf(b,y),{fontSeries:te}=b[0].style;let ae="";return te==="b"&&(ae="\\textbf"),te==="l"&&(ae="\\textlf"),te==="m"&&(ae="\\textmd"),te&&!ae?`{${Kl("\\fontseries",te)}${el(z)}}`:ae?Kl(ae,el(z)):el(z)})}function fh(a,y){return ss(a,"fontSize").map(b=>{var z,te;const ae=pf(b,y),ce=(te=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(z=b[0].style.fontSize)!=null?z:""])!=null?te:"";return ce?`${ce} ${el(ae)}`:el(ae)})}function Hf(a,y,b){return ss(a,"fontFamily").map(z=>{var te,ae;const ce=fh(z,y),we=(ae={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(te=z[0].style.fontFamily)!=null?te:""])!=null?ae:"";return we?`\\${we}{${el(ce)}}`:z[0].style.fontFamily?`{\\fontfamily{${z[0].style.fontFamily}} ${el(ce)}}`:b?`\\text{${el(ce)}}`:el(ce)})}var mf={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Gh=class extends iu{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new sc(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return Hf(a,De(be({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,z,te,ae,ce;const{fontFamily:we}=y;if(mf[we]?a.classes+=" "+mf[we]:we&&a.setStyle("font-family",we),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 ke=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);ke&&(a.classes+=" ",a.classes+=(te={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"}[(z=ke[1])!=null?z:""])!=null?te:"",a.classes+=" ",a.classes+=(ce={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(ae=ke[2])!=null?ae:""])!=null?ce:"")}return"Main-Regular"}};new Gh;var jd=class extends iu{constructor(){super("latex")}createAtom(a){return new Zo(a)}serialize(a,y){return a.filter(b=>b instanceof Zo&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new jd;var Kf={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:["","=","","="]}},Qh={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:["","=","","="]}},Lp={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:["\\","|","",""]}},Np={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:[")",")",")",")"]}},Dm={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:["=","=","=","="]}},Mm={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"]}},Fm={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:["=","=","=","="]}},Pm={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:["<",">","|",""]}},Im={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:[".",".",".","."]}},Om={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"]}},Lm={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:["<",">","",""]}},Nm={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 _p(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 vf(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 _m={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]"},Wf=[],jf;function Yh(){switch(lt()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function fc(a){(!a.platform||a.platform===Yh())&&Wf.push(a)}function Tm(a,y){var b;const z={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!a)return z;for(const[te,ae]of Object.entries(y.mapping)){if(ae[0]===a)return z.key=`[${te}]`,z;if(ae[1]===a)return z.shift=!0,z.key=`[${te}]`,z;if(ae[2]===a)return z.alt=!0,z.key=`[${te}]`,z;if(ae[3]===a)return z.shift=!0,z.alt=!0,z.key=`[${te}]`,z}return z.key=(b=_m[a])!=null?b:"",z}function Rm(a){if(a.code)return a;const y=Object.entries(Vf().mapping);let b=!1,z=!1,te="";for(let ae=0;ae<4;ae++){for(const[ce,we]of y)if(we[ae]===a.key){te=ce,ae===3?(b=!0,z=!0):ae===2?b=!0:ae===1&&(z=!0);break}if(te)break}return new KeyboardEvent(a.type,De(be({},a),{altKey:b,shiftKey:z,code:te}))}function zm(a){var y,b;if(!a||a.key==="Unidentified"||a.key==="Dead")return;const z=a.shiftKey&&a.altKey?3:a.altKey?2:a.shiftKey?1:0;for(const te of Wf)((y=te.mapping[a.code])==null?void 0:y[z])===a.key?te.score+=1:(b=te.mapping[a.code])!=null&&b[z]&&(te.score=0);Wf.sort((te,ae)=>ae.score-te.score)}function Zm(a){jf=Wf.find(y=>a.startsWith(y.locale))}function Vf(){return jf!=null?jf:Wf[0]}function Hm(){switch(Yh()){case"apple":return Qh;case"windows":return Lp;case"linux":return Np}return Qh}switch(Yh()){case"apple":fc(Qh),fc(Dm),fc(Om),fc(Fm);break;case"windows":fc(Lp),fc(Mm),fc(Lm),fc(Pm);break;case"linux":fc(Np),fc(km),fc(Nm),fc(Im);break}fc(Kf);function Xh(a){var y;const b=/macos|ios/.test(lt()),z=a.split("+");let te="";for(const ae of z)te&&(te+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),ae.startsWith("[Key")?te+=ae.slice(4,5):ae.startsWith("Key")?te+=ae.slice(3,4):ae.startsWith("[Digit")?te+=ae.slice(6,7):ae.startsWith("Digit")?te+=ae.slice(5,6):te+=(y={cmd:"\u2318",meta:b?"\u2318":"Ctrl",shift:b?"\u21E7":"Shift",alt:b?"\u2325":"Alt",ctrl:b?"\u2303":"Ctrl","\n":b?"\u23CE":"Return","[return]":b?"\u23CE":"Return","[enter]":b?"\u2324":"Enter","[tab]":b?"\u21E5":"Tab","[escape]":"Esc","[backspace]":b?"\u232B":"Backspace","[delete]":b?"\u2326":"Del","[pageup]":b?"\u21DE":"Page Up","[pagedown]":b?"\u21DF":"Page Down","[home]":b?"\u2912":"Home","[end]":b?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[ae.toLowerCase()])!=null?y:ae.toUpperCase();return te}function hh(a){if(a instanceof MouseEvent||a instanceof PointerEvent)return{x:a.clientX,y:a.clientY};if(a instanceof TouchEvent){const y=[...a.touches].reduce((z,te)=>({x:z.x+te.clientX,y:z.y+te.clientY}),{x:0,y:0}),b=a.touches.length;return{x:y.x/b,y:y.y/b}}}function Vd(a){const y={alt:!1,control:!1,shift:!1,meta:!1};return(a instanceof MouseEvent||a instanceof PointerEvent||a instanceof TouchEvent||a instanceof KeyboardEvent)&&(a.altKey&&(y.alt=!0),a.ctrlKey&&(y.control=!0),a.metaKey&&(y.meta=!0),a.shiftKey&&(y.shift=!0)),y}function Km(a,y){return!a&&y||a&&!y?!1:!a||!y?!0:a.alt===y.alt&&a.control===y.control&&a.shift===y.shift&&a.meta===y.meta}var Wm=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 ph(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:Wm.has(a.code)}function mh(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var jc=class vd{static get scrim(){return vd._scrim||(vd._scrim=new vd),vd._scrim}static open(y){vd.scrim.open(y)}static close(){vd.scrim.close()}static get state(){return vd.scrim.state}static get element(){return vd.scrim.element}constructor(y){var b,z;this.lightDismiss=(b=y==null?void 0:y.lightDismiss)!=null?b:!0,this.translucent=(z=y==null?void 0:y.translucent)!=null?z:!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=mh();const{element:z}=this;((b=y==null?void 0:y.root)!=null?b:document.body).appendChild(z),z.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const te=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const ae=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${ae+te}px`,y!=null&&y.child&&z.append(y.child),this.state="open"}close(){var y,b,z,te;if(this.state!=="open"){console.assert(this.element.parentElement!==null);return}this.state="closing",typeof this.onDismiss=="function"&&this.onDismiss(),this.onDismiss=void 0;const{element:ae}=this;ae.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),ae.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",mh()!==this.savedActiveElement&&((te=(z=this.savedActiveElement)==null?void 0:z.focus)==null||te.call(z)),ae.innerHTML="",this.state="closed"}handleEvent(y){this.lightDismiss&&(y.target===this._element&&y.type==="click"?(this.close(),y.preventDefault(),y.stopPropagation()):y.target===document&&(y.type==="touchmove"||y.type==="scroll")&&(this.close(),y.preventDefault(),y.stopPropagation()))}};function jm(a,y,b){let z=null,te=null,ae=!1,ce=!1,we=!1;const ke=new AbortController,He=ke.signal;return a.addEventListener("keydown",qe=>{if(ae||qe.key==="Process"||qe.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(qe.code)){z=null;return}z=qe,te=null,b.onKeystroke(qe)?a.textContent="":z=null},{capture:!0,signal:He}),a.addEventListener("keypress",qe=>{ae||(z&&te&&b.onKeystroke(z),te=qe)},{capture:!0,signal:He}),a.addEventListener("compositionstart",qe=>{a.textContent="",ae=!0,b.onCompositionStart(qe.data)},{capture:!0,signal:He}),a.addEventListener("compositionupdate",qe=>{ae&&b.onCompositionUpdate(qe.data)},{capture:!0,signal:He}),a.addEventListener("compositionend",qe=>{a.textContent="",ae&&(ae=!1,b.onCompositionEnd(qe.data))},{capture:!0,signal:He}),a.addEventListener("beforeinput",qe=>qe.stopImmediatePropagation(),{signal:He}),a.addEventListener("input",qe=>{var It;if(!ae&&(a.textContent="",qe.inputType!=="insertCompositionText")){if(qe.inputType==="insertFromPaste"){qe.preventDefault(),qe.stopPropagation();return}b.onInput((It=qe.data)!=null?It:""),qe.preventDefault(),qe.stopPropagation()}},{signal:He}),a.addEventListener("paste",qe=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(qe)||qe.preventDefault(),qe.stopImmediatePropagation()},{signal:He}),a.addEventListener("cut",qe=>b.onCut(qe),{capture:!0,signal:He}),a.addEventListener("copy",qe=>b.onCopy(qe),{capture:!0,signal:He}),a.addEventListener("blur",qe=>{var It,nn;if(((nn=(It=qe.relatedTarget)==null?void 0:It._mathfield)==null?void 0:nn.element)===y){a.focus({preventScroll:!0}),qe.preventDefault(),qe.stopPropagation();return}const Sn=jc.state;if(Sn==="open"||Sn==="opening"){qe.preventDefault(),qe.stopPropagation();return}if(qe.relatedTarget===qe.target.getRootNode().host){qe.preventDefault(),qe.stopPropagation();return}we||ce||(we=!0,z=null,te=null,b.onBlur(),we=!1)},{capture:!0,signal:He}),a.addEventListener("focus",qe=>{we||ce||(ce=!0,b.onFocus(),ce=!1)},{capture:!0,signal:He}),{dispose:()=>ke.abort(),cancelComposition:()=>{ae&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!ce&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>mh()===a,setAriaLabel:qe=>a.setAttribute("aria-label",qe),setValue:qe=>{var It;a.textContent=qe,a.style.left="-1000px",(It=window.getSelection())==null||It.selectAllChildren(a)},moveTo:(qe,It)=>{a.style.top=`${It}px`,a.style.left=`${qe}px`}}}function gf(a){var y;if(!a||!ph(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 Tp(a){a=Rm(a);const y=[];return a.ctrlKey&&y.push("ctrl"),a.metaKey&&y.push("meta"),a.altKey&&y.push("alt"),a.shiftKey&&y.push("shift"),y.length===0?`[${a.code}]`:(y.push(`[${a.code}]`),y.join("+"))}function Vm(a){if(tt()){const y=lt(),b=a.startsWith("!"),z=a.endsWith(y);if(b&&!z||!b&&z)return!0}return a==="!other"?!1:a==="other"}function Um(a,y,b){if(a.length===0)return"";const z=vf(_p(Tp(b))),te=vf({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(lt()),cmd:!1,win:!1});for(let ae=a.length-1;ae>=0;ae--)if((a[ae].key===z||a[ae].key===te)&&(!a[ae].ifMode||a[ae].ifMode===y))return a[ae].command;return""}function Rp(a){let y=a;return Fe(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Gm(a,y){let b=[];if(typeof y=="string"){const ae=_d[y];Fe(ae)?b=ae.slice():ae&&b.push(ae)}const z=Rp(y),te=new RegExp("^"+z.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const ae of a)te.test(Rp(ae.command))&&b.push(ae.key);return b.map(Xh)}function Qm(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=_p(a.key);let z=a.ifPlatform;if(b.cmd){if(z&&z!=="macos"&&z!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+z+`"
|
|
|
"cmd" modifier can only be used with macOS or iOS platform.`);z||(z=lt()==="ios"?"ios":"macos"),b.win=!1,b.cmd=!1,b.meta=!0}if(b.win){if(z&&z!=="windows")throw new Error('Unexpected "win" modifier with platform "'+z+`"
|
|
|
"win" modifier can only be used with Windows platform.`);z="windows",b.win=!1,b.cmd=!1,b.meta=!0}if(z&&!Vm(z))return;if(/^\[.+\]$/.test(b.key))return De(be({},a),{key:vf(b)});const te=Tm(b.key,y);if(!te)return De(be({},a),{key:vf(b)});if(te.shift&&b.shift||te.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${Jh(a.command)}) is conflicting with the key combination ${vf(te)} using the ${y.displayName} keyboard layout`);return te.shift=te.shift||b.shift,te.alt=te.alt||b.alt,te.meta=b.meta,te.ctrl=b.ctrl,De(be({},a),{key:vf(te)})}function Jh(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function Ym(a,y){const b=[],z=[];for(const te of a)try{const ae=Qm(te,y);if(!ae)continue;const ce=z.find(we=>we.key===ae.key&&we.ifMode===ae.ifMode);if(ce)throw new Error(`Ambiguous key binding ${te.key} (${Jh(te.command)}) matches ${ce.key} (${Jh(ce.command)}) with the ${y.displayName} keyboard layout`);z.push(ae)}catch(ae){ae instanceof Error&&b.push(ae.message)}return[z,b]}var Xm=class extends jo{constructor(){super("latex")}createAtom(a){return new Zo(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"}),Ms(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:z}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const te=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Zs(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const ae=[];for(const ke of y)ue.test(ke)&&ae.push(new Zo(ke));let ce=a.at(a.position);if(ce instanceof fs&&(ce=ce.lastChild),!(ce.parent instanceof fs)){const ke=new fs("");ce.parent.addChildAfter(ke,ce),ce=ke.firstChild}const we=ce.parent.addChildrenAfter(ae,ce);return a.silenceNotifications=te,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(we)):we&&(a.position=a.offsetOf(we))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=z,!0}};function Jm(a){return a.atoms.find(y=>y.type==="latexgroup")}function Uf(a){var y,b;const z=a.atoms.find(te=>te.type==="latexgroup");return z?(b=(y=z.body)==null?void 0:y.filter(te=>te.type==="latex"))!=null?b:[]:[]}function zp(a,y){var b;let z=0,te=!1;const ae=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;z<=ae&&!te;){const ke=a.at(z);te=ke instanceof Zo&&ke.isSuggestion,te||z++}if(!te)return[void 0,void 0];let ce=z,we=!1;for(;ce<=ae&&!we;){const ke=a.at(ce);we=!(ke instanceof Zo&&ke.isSuggestion),we||ce++}return[z-1,ce-1]}new Xm;function vh(a){const y=Uf(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 Gf(a,y){var b;const{model:z}=a;vh(a);for(const qe of Uf(z))qe.isError=!1;if(!z.selectionIsCollapsed||a.options.popoverPolicy==="off"){bf(a);return}const te=[];let ae=z.at(z.position);for(;ae&&ae instanceof Zo&&/^[a-zA-Z\*]$/.test(ae.value);)ae=ae.leftSibling;if(ae&&ae instanceof Zo&&ae.value==="\\")for(te.push(ae),ae=ae.rightSibling;ae&&ae instanceof Zo&&/^[a-zA-Z\*]$/.test(ae.value);)te.push(ae),ae=ae.rightSibling;const ce=te.map(qe=>qe.value).join(""),we=je(a,ce);if(we.length===0){if(/^\\[a-zA-Z\*]+$/.test(ce))for(const qe of te)qe.isError=!0;bf(a);return}const ke=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=ke<0?we.length-1:ke%we.length;const He=we[a.suggestionIndex];if(He!==ce){const qe=te[te.length-1];qe.parent.addChildrenAfter([...He.slice(ce.length-He.length)].map(It=>new Zo(It,{isSuggestion:!0})),qe),Ud(a,{interactive:!0})}qm(a,we)}function Zp(a){const[y,b]=zp(a,{before:a.position});if(y===void 0||b===void 0)return!1;let z=!1;return a.getAtoms([y,b]).forEach(te=>{te.isSuggestion&&(te.isSuggestion=!1,z=!0)}),z}function yf(a,y="accept",b){var z,te;bf(a);const ae=Jm(a.model);if(!ae)return!1;if(y==="accept-suggestion"||y==="accept-all"){const He=Uf(a.model).filter(qe=>qe.isSuggestion);if(He.length!==0){for(const qe of He)qe.isSuggestion=!1;a.model.position=a.model.offsetOf(He[He.length-1])}if(y==="accept-suggestion")return He.length!==0}const we=Uf(a.model).filter(He=>!He.isSuggestion).map(He=>He.value).join(""),ke=ae.leftSibling;return ae.parent.removeChild(ae),a.model.position=a.model.offsetOf(ke),a.switchMode((z=b==null?void 0:b.mode)!=null?z:"math"),y==="reject"||(jo.insert(a.model,we,{selectionMode:(te=b==null?void 0:b.selectItem)!=null&&te?"item":"placeholder",format:"latex",mode:"math"}),a.snapshot(),a.model.announce("replacement"),a.switchMode("math")),!0}function gh(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 $h(a){var y;const b=document.getElementById(a);if(!b)return;const z=Number.parseInt((y=b.getAttribute("data-refcount"))!=null?y:"0");z<=1?b.remove():b.dataset.refcount=Number(z-1).toString()}function $m(a,y){const b=new vl({from:a.context}),z=new oi({mode:"math",type:"root",body:un(y,{context:b})}),te=zc(cc(new ta(z.render(b),{classes:"ML__base"}),b));return Zc(te,{classes:"ML__latex"}).toMarkup()}function qm(a,y){var b;if(y.length===0){bf(a);return}let z="";for(const[ae,ce]of y.entries()){const we=ce,ke=$m(a,ce),He=Gm(a.keybindings,we).join("<br>");z+=`<li role="button" data-command="${we}" ${ae===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${we}</span><span class="ML__popover__command">${ke}</span>`,He&&(z+=`<span class="ML__popover__keybinding">${He}</span>`),z+="</li>"}const te=ev(a,`<ul>${z}</ul>`);qh()&&((b=te.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var ae;te&&!qh()&&(te.classList.add("is-visible"),yh(a),(ae=te.querySelector(".ML__popover__current"))==null||ae.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function qh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function yh(a,y){var b;if(!a.element||a.element.mathfield!==a||!qh())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){bf(a);return}if(y!=null&&y.deferred){setTimeout(()=>yh(a),32);return}const z=ec(a.field);if(!z)return;const te=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,ae=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,ce=window.innerWidth-document.documentElement.clientWidth,we=window.innerHeight-document.documentElement.clientHeight,ke=window.mathVirtualKeyboard.boundingRect.height,He=document.getElementById("mathlive-suggestion-popover");z.x+He.offsetWidth/2>ae-ce?He.style.left=`${ae-He.offsetWidth-ce}px`:z.x-He.offsetWidth/2<0?He.style.left="0":He.style.left=`${z.x-He.offsetWidth/2}px`;const qe=z.y-z.height;te-we-ke-z.y<qe?(He.classList.add("ML__popover--reverse-direction"),He.classList.remove("top-tip"),He.classList.add("bottom-tip"),He.style.top=`${z.y-z.height-He.offsetHeight-15}px`):(He.classList.remove("ML__popover--reverse-direction"),He.classList.add("top-tip"),He.classList.remove("bottom-tip"),He.style.top=`${z.y+15}px`)}function bf(a){a.suggestionIndex=0;const y=document.getElementById("mathlive-suggestion-popover");y&&(y.classList.remove("is-visible"),y.innerHTML="")}function ev(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=gh("mathlive-suggestion-popover"),yu("suggestion-popover"),yu("core"),b.addEventListener("pointerdown",z=>z.preventDefault()),b.addEventListener("click",z=>{let te=z.target;for(;te&&!te.dataset.command;)te=te.parentElement;te&&(yf(a,"reject"),jo.insert(a.model,te.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),a.dirty=!0,a.focus())})),b.innerHTML=window.MathfieldElement.createHTML(y),b}function tv(){document.getElementById("mathlive-suggestion-popover")&&($h("mathlive-suggestion-popover"),x("suggestion-popover"),x("core"))}function nv(){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 bh=null,Hp,Kp,ep=((Kp=(Hp=globalThis==null?void 0:globalThis.document)==null?void 0:Hp.currentScript)==null?void 0:Kp.src)||nv();function Wp(a){return Fd(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(bh===null)try{const y=yield fetch(ep,{method:"HEAD"});y.status===200&&(bh=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${ep}")`)}return new URL(a,bh!=null?bh:ep).href})}function rv(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var hc="not-loaded";function iv(){return Fd(this,null,function*(){return hc="not-loaded",xh()})}function xh(){return Fd(this,null,function*(){var a;if(hc!=="not-loaded")return;if(hc="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){hc="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"],z=Array.from(document.fonts).map(ce=>ce.family);if(b.every(ce=>z.includes(ce))){hc="ready";return}if(!window.MathfieldElement.fontsDirectory){hc="not-loaded";return}const te=yield Wp(window.MathfieldElement.fontsDirectory);if(!te){document.body.classList.add("ML__fonts-did-not-load"),hc="error";return}const ae=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(ce=>rv(ce[0].replace(/-[a-zA-Z]+$/,""),`${te}/${ce[0]}`,ce[1]));try{(yield Promise.all(ae.map(we=>{try{return we.load()}catch(ke){}}))).forEach(we=>document.fonts.add(we)),hc="ready";return}catch(ce){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${te}"`,{cause:ce}),document.body.classList.add("ML__fonts-did-not-load")}hc="error"}})}function av(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 Ms(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{Iu(a)&&a.dirty&&(a.atomBoundsCache=new Map,Ud(a,y),a.atomBoundsCache=void 0)})))}function ov(a,y){var b;y=y!=null?y:{};const z=new vl({from:De(be({},a.context),{atomIdsSettings:{seed:y.forHighlighting?av(oi.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"}),te=a.model.root.render(z);return Zc(cc(te,z),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function jp(a,y){const{model:b}=a;b.root.caret=void 0,b.root.isSelected=!1,b.root.containsCaret=!0;for(const te of b.atoms)te.caret=void 0,te.isSelected=!1,te.containsCaret=!1;if(b.selectionIsCollapsed){const te=b.at(b.position);te.caret=a.model.mode;let ae=te.parent;for(;ae;)ae.containsCaret=!0,ae=ae.parent}else{const te=b.getAtoms(b.selection,{includeChildren:!0});for(const ae of te)ae.isSelected=!0}return ov(a,y).toMarkup()}function Ud(a,y){if(!Iu(a))return;y!=null||(y={});const b=a.element.querySelector("[part=virtual-keyboard-toggle]");b&&(b.style.display=a.hasEditableContent?"":"none");const z=a.field;if(!z)return;const te=a.isSelectionEditable&&a.hasFocus(),ae=z.classList.contains("ML__focused");ae&&!te?z.classList.remove("ML__focused"):!ae&&te&&z.classList.add("ML__focused");let ce=jp(a,y);const we=a.element.querySelector("[part=menu-toggle]");if(we&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?we.style.display="none":we.style.display=""),a.model.atoms.length<=1){const ke=a.options.contentPlaceholder;ke&&(ce+=`<span part=placeholder class="ML__content-placeholder">${Js(ke)}</span>`)}z.innerHTML=window.MathfieldElement.createHTML(ce),Eh(a,y.interactive),a.dirty=!1}function Eh(a,y){const b=a.field;if(!b)return;for(const we of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))we.remove();!(y!=null&&y)&&hc!=="error"&&hc!=="ready"&&setTimeout(()=>{hc==="ready"?Eh(a):setTimeout(()=>Eh(a),128)},32);const z=a.model,te=b.offsetWidth,ae=b.getBoundingClientRect().width;let ce=Math.floor(ae)/te;if(ce=isNaN(ce)?1:ce,z.selectionIsCollapsed){yh(a,{deferred:!0});let we=z.at(z.position);for(;we&&we.type!=="prompt"&&!(we.containsCaret&&we.displayContainsHighlight);)we=we.parent;if(we!=null&&we.containsCaret&&we.displayContainsHighlight){const ke=Rd(a,Kc(a,we),ce);if(ke){ke.left/=ce,ke.right/=ce,ke.top/=ce,ke.bottom/=ce;const He=document.createElement("div");He.classList.add("ML__contains-highlight"),He.style.position="absolute",He.style.left=`${ke.left+1}px`,He.style.top=`${Math.ceil(ke.top)}px`,He.style.width=`${Math.ceil(ke.right-ke.left)}px`,He.style.height=`${Math.ceil(ke.bottom-ke.top)}px`,b.insertBefore(He,b.childNodes[0])}}return}for(const we of lv(Zd(a,{excludeAtomsWithBackground:!0}))){we.left/=ce,we.right/=ce,we.top/=ce,we.bottom/=ce;const ke=document.createElement("div");ke.classList.add("ML__selection"),ke.style.position="absolute",ke.style.left=`${we.left}px`,ke.style.top=`${we.top}px`,ke.style.width=`${Math.ceil(we.right-we.left)}px`,ke.style.height=`${Math.ceil(we.bottom-we.top-1)}px`,b.insertBefore(ke,b.childNodes[0])}}function lv(a){let y=[];for(const b of a){let z=!1;for(const te of y)if(b.left===te.left&&b.right===te.right&&b.top===te.top&&b.bottom===te.bottom){z=!0;break}z||y.push(b)}a=y,y=[];for(const b of a){let z=0;for(const te of a)if(b.left>=te.left&&b.right<=te.right&&b.top>=te.top&&b.bottom<=te.bottom&&(z+=1,z>1))break;z===1&&y.push(b)}return y}var Vp=3,Vc;function rc(a,y){y=be({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Vc||(Vc={});for(const b of Object.keys(a))console.assert(!Vc[b],"Selector already defined: ",b),Vc[b]=De(be({},y),{fn:a[b]})}function tp(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return tp(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Vc[y]}function xf(a){var y;return(y=tp(a))==null?void 0:y.target}function sv(a,y){var b;if(!y)return!1;let z,te=[],ae=!1,ce=!1;Fe(y)?(z=y[0],te=y.slice(1)):z=y,z=z.replace(/-\w/g,He=>He[1].toUpperCase());const we=Vc[z],ke=we==null?void 0:we.target;if(ke==="model"){if(!a.isSelectionEditable&&(we!=null&&we.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(z)&&(z!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(z)),/^complete/.test(z)||vh(a),Vc[z].fn(a.model,...te),Gf(a),ce=!0,ae=!0}else if(ke==="virtual-keyboard")ce=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,ae=!0;else if(Vc[z]){if(!a.isSelectionEditable&&(we!=null&&we.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(z)&&a.flushInlineShortcutBuffer(),ce=Vc[z].fn(a,...te),ae=!0}else throw new Error(`Unknown command "${z}"`);return ke!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||we!=null&&we.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),we!=null&&we.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),ce&&Ms(a),ae}function uv(a,y){var b;if(!a)return!1;a.focus(),Z0.keypressVibration&&We()&&navigator.vibrate(Vp);const z=tp(y);window.MathfieldElement.playSound((b=z==null?void 0:z.audioFeedback)!=null?b:"keypress");const te=a.executeCommand(y);return a.scrollIntoView(),te}rc({performWithFeedback:(a,y)=>uv(a,y)});function cv(a){return Gf(a,{atIndex:a.suggestionIndex+1}),!1}function dv(a){return Gf(a,{atIndex:a.suggestionIndex-1}),!1}rc({complete:yf},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),rc({nextSuggestion:cv,previousSuggestion:dv},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Ch="mathlive#virtual-keyboard-message";function np(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Ch}var fv=class wm{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 wm),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,z){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,z){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(np(y)){if(!Hd(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:z}=y;xf(z)==="virtual-keyboard"&&this.executeCommand(z);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(be({type:Ch,action:y},b),this.targetOrigin)}},Up={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]"]]}},wh={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"}]},Qf;function Gp(a,y){var b,z,te;const ae=Bd.singleton;if(!ae)return;const ce=Ef(a),we=(z=(b=ae.getKeycap(ce==null?void 0:ce.id))==null?void 0:b.variants)!=null?z:"";if(typeof we=="string"&&!Qp(we)||Array.isArray(we)&&we.length===0){y==null||y();return}const ke={};let He="";for(const Rr of pv(we)){const ia=Xp(Rr),Nr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);ke[Nr]=ia;const[bi,ua]=Sh(ia);He+=`<div id=${Nr} class="item ${ua}">${bi}</div>`}const qe=document.createElement("div");qe.setAttribute("aria-hidden","true"),qe.className="MLK__variant-panel",qe.style.height="auto";const It=Object.keys(ke).length;let nn=5;It===1?nn=1:It===2||It===4?nn=2:It===3||It===5||It===6?nn=3:It>=7&&It<14&&(nn=4),qe.style.width=`calc(var(--variant-keycap-length) * ${nn} + 12px)`,qe.innerHTML=Z0.createHTML(He),jc.open({root:(te=ae==null?void 0:ae.container)==null?void 0:te.querySelector(".ML__keyboard"),child:qe}),Qf=new AbortController;const{signal:Sn}=Qf,In=a==null?void 0:a.getBoundingClientRect();if(In){In.top-qe.clientHeight<0&&(qe.style.width="auto",It<=6?qe.style.height="56px":It<=12?qe.style.height="108px":It<=18?qe.style.height="205px":qe.classList.add("compact"));const Rr=Math.max(0,Math.min(window.innerWidth-qe.offsetWidth,(In.left+In.right-qe.offsetWidth)/2)),ia=In.top-qe.clientHeight+5;qe.style.transform=`translate(${Rr}px, ${ia}px)`,qe.classList.add("is-visible"),requestAnimationFrame(()=>{qe.addEventListener("pointerup",Nr=>{const bi=Ef(Nr.target);!(bi!=null&&bi.id)||!ke[bi.id]||(rp(ke[bi.id]),Yf(),y==null||y(),Nr.preventDefault())},{capture:!0,passive:!1,signal:Sn}),qe.addEventListener("pointerenter",Nr=>{const bi=Ef(Nr.target);!(bi!=null&&bi.id)||!ke[bi.id]||bi.classList.add("is-active")},{capture:!0,signal:Sn}),qe.addEventListener("pointerleave",Nr=>{const bi=Ef(Nr.target);!(bi!=null&&bi.id)||!ke[bi.id]||bi.classList.remove("is-active")},{capture:!0,signal:Sn}),window.addEventListener("pointercancel",()=>{Yf(),y==null||y()},{signal:Sn}),window.addEventListener("pointerup",()=>{Yf(),y==null||y()},{signal:Sn})})}}function Yf(){Qf==null||Qf.abort(),Qf=null,jc.state==="open"&&jc.close()}function hv(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(Re))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+Re[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(Je))y.push({class:"swatch-button",label:'<span style="background:'+Je[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function Qp(a){return wh[a]!==void 0}function pv(a){var y;return typeof a!="string"?a:(wh[a]||(wh[a]=(y=hv(a))!=null?y:[]),wh[a])}function mv(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function vv(a){return Object.keys(a).map(y=>`${y} {${mv(a[y])}}`).join("")}function Xf(a){if(!a)return"";const y=new vl,b=new oi({mode:"math",type:"root",body:un(a,{context:y,args:te=>te==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),z=zc(cc(new ta(b.render(y),{classes:"ML__base"}),y));return Zc(z,{classes:"ML__latex"}).toMarkup()}function Jf(a){var y;if(Array.isArray(a))return a.map(z=>Jf(z)).flat();const b=typeof a=="string"?{markup:a}:a;return"rows"in b&&Array.isArray(b.rows)&&(b.rows=b.rows.map(z=>z.map(te=>Xp(te)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function gv(){var a,y;let z=window.mathVirtualKeyboard.alphabeticLayout;if(z==="auto"){const we=Vf();we&&(z=we.virtualLayout),(!z||z==="auto")&&(z=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[dt.locale.slice(0,2)])!=null?a:"qwerty")}const te={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},ae=(y=te[z])!=null?y:te.qwerty,ce=z==="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 we of ae){const ke=[];for(const He of we)/[a-z]/.test(He)?ke.push({label:He,class:"hide-shift",shift:{label:He.toUpperCase()},variants:Qp(He)?He:void 0}):He==="~"?z!=="dvorak"?ke.push("[backspace]"):ke.push({label:"[backspace]",width:1}):He==="^"?ke.push("[shift]"):He===" "&&ke.push("[separator-5]");ce.push(ke)}return ce.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:Jf({rows:ce})}}function Yp(a){if(a==="alphabetic")return gv();if(typeof a=="string")return console.assert(Up[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),Yp(Up[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 te=a,{rows:ae}=te,ce=et(te,["rows"]);y=De(be({},ce),{layers:Jf({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const te=a,{markup:ae}=te,ce=et(te,["markup"]);y=De(be({},ce),{layers:Jf(a.markup)})}else y=be({},a),"layers"in a?y.layers=Jf(a.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let b=!1,z=!1;for(const te of y.layers)if(te.rows)for(const ae of te.rows.flat()){Cf(ae)&&(b=!0);const ce=ae.command;typeof ce=="string"&&["undo","redo","cut","copy","paste"].includes(ce)&&(z=!0)}return(!("displayShiftedKeycaps"in a)||a.displayShiftedKeycaps===void 0)&&(y.displayShiftedKeycaps=b),(!("displayEditToolbar"in a)||a.displayEditToolbar===void 0)&&(y.displayEditToolbar=!z),y}function yv(a,y){var b,z;let te='<div class="left">';if(a.normalizedLayouts.length>1)for(const[ae,ce]of a.normalizedLayouts.entries()){const we=ce,ke=[ae===y?"selected":"layer-switch"];we.tooltip&&ke.push("MLK__tooltip"),we.labelClass&&ke.push(...we.labelClass.split(" ")),te+=`<div class="${ke.join(" ")}"`,we.tooltip&&(te+=" data-tooltip='"+((b=Qe(we.tooltip))!=null?b:we.tooltip)+"' "),ae!==y&&(te+=`data-layer="${we.layers[0].id}"`),te+=`>${(z=we.label)!=null?z:"untitled"}</div>`}return te+="</div>",te}function bv(a,y){let b="";if(a.editToolbar==="none")return"";const te=[];y.selectionIsCollapsed?te.push("undo","redo","pasteFromClipboard"):te.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const ae={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${Qe("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${Qe("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${Qe("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${Qe("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${Qe("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return b+=te.map(ce=>ae[ce]).join(""),b}function xv(a){for(const y of a)Ev(y)}function Ev(a){const y=Bd.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(z){}a.id=y.registerKeycap(b)}if(!a.innerHTML){const[z,te]=Sh(b);a.innerHTML=window.MathfieldElement.createHTML(z)}}function Cv(){yu("virtual-keyboard"),yu("core"),xh()}function wv(){x("core"),x("virtual-keyboard")}var Sv=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
|
|
|
|
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
|
|
|
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-shift" viewBox="0 0 384 512">
|
|
|
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-commit" viewBox="0 0 512 512">
|
|
|
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
|
|
|
</symbol>
|
|
|
|
|
|
|
|
|
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
|
|
|
|
|
|
<symbol id="svg-command" viewBox="0 0 640 512">
|
|
|
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-undo" viewBox="0 0 512 512">
|
|
|
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-redo" viewBox="0 0 512 512">
|
|
|
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
|
|
|
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
|
|
|
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-tab" viewBox="0 0 448 512">
|
|
|
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
|
|
|
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
|
|
|
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-trash" viewBox="0 0 448 512">
|
|
|
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
|
|
|
</svg>`;function Av(a){a.resetKeycapRegistry(),Cv();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Sv+a.normalizedLayouts.map((ce,we)=>Bv(a,ce,we)).join(""));const z=document.createElement("div");z.className="MLK__backdrop",z.appendChild(b),y.appendChild(z),y.addEventListener("pointerdown",Mv,{passive:!1});const te=y.querySelectorAll(".ML__edit-toolbar");if(te)for(const ce of te)ce.addEventListener("click",we=>{var ke,He;let qe=we.target,It="";for(;qe&&!It;)It=(ke=qe==null?void 0:qe.getAttribute("data-command"))!=null?ke:"",qe=(He=qe==null?void 0:qe.parentElement)!=null?He:null;It&&a.executeCommand(JSON.parse(It))});xv(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const ae=y.querySelectorAll(".MLK__layer");console.assert(ae.length>0,"No virtual keyboards available");for(const ce of ae)ce.addEventListener("pointerdown",we=>we.preventDefault());return a.currentLayer=a.latentLayer,y}function Bv(a,y,b){const z=[];if(!("layers"in y))return"";for(const te of y.layers)z.push(`<div tabindex="-1" class="MLK__layer" id="${te.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(z.push("<div class='MLK__toolbar' role='toolbar'>"),z.push(yv(a,b)),y.displayEditToolbar&&z.push('<div class="ML__edit-toolbar right"></div>'),z.push("</div>")),z.push(Dv(a,te)),z.push("</div>");return z.join("")}function Dv(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>${vv(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 z of y.rows){b+="<div dir='ltr' class=MLK__row>";for(const te of z)if(te){const ae=a.registerKeycap(te),[ce,we]=Sh(te);/(^|\s)separator/.test(we)?b+=`<div class="${we}"`:b+=`<div tabindex="-1" id="${ae}" class="${we}"`,te.tooltip&&(b+=` data-tooltip="${te.tooltip}"`),b+=`>${ce}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Sh(a,y={shifted:!1}){var b,z,te,ae,ce,we,ke;let He="",qe=(b=a.class)!=null?b:"";if(y.shifted&&Cf(a)&&(qe+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?He=Xf(a.shift):typeof a.shift=="object"&&(He=a.shift.label?a.shift.label:(z=Xf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?z:""),typeof a.shift=="object"&&(qe=(ae=(te=a.shift.class)!=null?te:a.class)!=null?ae:"");else{if(He=a.label?a.label:(ce=Xf(a.latex||a.insert||"")||a.key)!=null?ce:"",a.shift){let It;typeof a.shift=="string"?It=Xf(a.shift):a.shift.label?It=a.shift.label:It=(we=Xf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?we:"",He+=`<span class="MLK__shift">${It}</span>`}a.aside&&(He+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(qe)&&(qe+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(qe)||(qe+=" MLK__keycap"),!/\bw[0-9]+\b/.test(qe)&&a.width&&(qe+=(ke={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?ke:""),[He,qe||"MLK__keycap"]}var Gd={"[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 Xp(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!Gd[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&Gd[a.label]&&(b=De(be(be({},Gd[a.label]),a),{label:Gd[a.label].label})),"key"in a&&a.key&&Gd[a.key]&&(b=De(be(be({},Gd[a.key]),a),{key:Gd[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=be(be({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=be(be({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=be(be({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=be(be({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var $f;function Mv(a){var y;if(a.button!==0)return;const b=Bd.singleton;if(!b)return;let z=a.target;for(;z&&!z.getAttribute("data-layer");)z=z.parentElement;if(z){b.currentLayer=(y=z.getAttribute("data-layer"))!=null?y:"",a.preventDefault();return}const te=Ef(a.target);if(!(te!=null&&te.id))return;const ae=b.getKeycap(te.id);if(!ae)return;console.assert(a.type==="pointerdown");const ce=new AbortController,we=ce.signal;te.classList.add("is-pressed"),te.addEventListener("pointerenter",Ah(ce),{capture:!0,signal:we}),te.addEventListener("pointerleave",Ah(ce),{capture:!0,signal:we}),te.addEventListener("pointercancel",Ah(ce),{signal:we}),te.addEventListener("pointerup",Ah(ce),{signal:we}),Cf(ae)&&(te.classList.add("is-active"),b.shiftPressCount++),ae.variants&&($f&&clearTimeout($f),$f=setTimeout(()=>{te.classList.contains("is-pressed")&&(te.classList.remove("is-pressed"),te.classList.add("is-active"),a.target&&"releasePointerCapture"in a.target&&a.target.releasePointerCapture(a.pointerId),Gp(te,()=>{ce.abort(),te==null||te.classList.remove("is-active")}))},300)),a.preventDefault()}function Ah(a){return y=>{const b=Ef(y.target);if(!(b!=null&&b.id))return;const z=Bd.singleton;if(!z)return;const te=z.getKeycap(b.id);if(te){if(y.type==="pointerenter"&&y.target===b&&y.isPrimary&&b.classList.add("is-pressed"),y.type==="pointercancel"){b.classList.remove("is-pressed"),Cf(te)&&(z.shiftPressCount--,b.classList.toggle("is-active",z.isShifted)),a.abort();return}if(y.type==="pointerleave"&&y.target===b){b.classList.remove("is-pressed"),Cf(te)&&(z.shiftPressCount--,b.classList.toggle("is-active",z.isShifted));return}if(y.type==="pointerup"){$f&&clearTimeout($f),Cf(te)?b.classList.toggle("is-active",z.isShifted):b.classList.contains("is-pressed")&&(b.classList.remove("is-pressed"),z.isShifted&&te.shift?typeof te.shift=="string"?z.executeCommand(["insert",te.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):rp(te.shift):rp(te),z.shiftPressCount===1&&!y.shiftKey&&(z.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function rp(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=Bd.singleton)==null||y.executeCommand(b)}function kv(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 Ef(a){if(!a)return;let y=a;for(;y&&!kv(y);)y=y.parentElement;return y!=null?y:void 0}function Cf(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var Bd=class Sm{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var y,b,z;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(te=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(z=window.top)==null||z.addEventListener("message",this)}catch(te){window.addEventListener("message",this)}document.body.addEventListener("focusin",te=>{const ae=te.target;ae!=null&&ae.isConnected&&setTimeout(()=>{const ce=Jp();ce&&!ce.readOnly&&ce.mathVirtualKeyboardPolicy==="auto"&&ze()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",te=>{te.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{Jp()||this.hide()},300)})}get currentLayer(){var y,b,z;return(z=(b=(y=this._element)==null?void 0:y.querySelector(".MLK__layer.is-visible"))==null?void 0:b.id)!=null?z:""}set currentLayer(y){var b;if(!this._element){this.latentLayer=y;return}let z=y?this._element.querySelector(`#${y}.MLK__layer`):null;z||(z=this._element.querySelector(".MLK__layer")),z&&((b=this._element.querySelector(".MLK__layer.is-visible"))==null||b.classList.remove("is-visible"),z.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 z of b)for(const te of z.layers)if(te.id===y)return te}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],z=b.findIndex(te=>te==="default");z>=0&&b.splice(z,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(b),this._normalizedLayouts=b.map(te=>Yp(te))}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 Sm}catch(y){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(y,b,z){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,z){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 z=this.boundingRect.height;if(this.container===document.body){(y=this._element)==null||y.style.setProperty("--_keyboard-height",`calc(${z}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const te=z-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${te}px)`:`${te}px`}else(b=this._element)==null||b.style.setProperty("--_keyboard-height",`${z}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 z of b){const te=this.getKeycap(z.id);if(te){const[ae,ce]=Sh(te,{shifted:this.isShifted});z.innerHTML=window.MathfieldElement.createHTML(ae),z.className=ce}}}show(y){var b;if(this._visible)return;const z=this.container;if(z&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const te=this._element.getElementsByClassName("MLK__plate")[0];if(te&&this.observer.observe(te),z===window.document.body){const ae=z.style.paddingBottom;this.originalContainerBottomPadding=ae;const ce=te.offsetHeight-1;z.style.paddingBottom=ae?`calc(${ae} + ${ce}px)`:`${ce}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 te;return(te=this._element)==null?void 0:te.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 z=this.container;if(z&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const te=this._element.getElementsByClassName("MLK__plate")[0];te&&this.observer.unobserve(te),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}),Yf(),wv(),(b=this._element)==null||b.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(z.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=Av(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&Gp(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(np(y)){if(!Hd(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:z}=y;if(z==="execute-command"){const{command:te}=y,ae=xf(te);if(window.top!==void 0&&ae!=="virtual-keyboard")return;this.executeCommand(te);return}if((z==="connect"||z==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b),z!=="disconnect"&&window===window.top){if(z==="show"){typeof y.animate!="undefined"?this.show({animate:y.animate}):this.show();return}if(z==="hide"){typeof y.animate!="undefined"?this.hide({animate:y.animate}):this.hide();return}if(z==="update-setting"){y.alphabeticLayout&&(this.alphabeticLayout=y.alphabeticLayout),y.layouts&&(this.layouts=y.layouts),y.editToolbar&&(this.editToolbar=y.editToolbar);return}if(z==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b);return}}}sendMessage(y,b,z){if(z||(z=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||z===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:be({type:Ch,action:y},b)}));return}if(z)z.postMessage(be({type:Ch,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 te=b.command[1].split("");for(const ae of te)this.dispatchEvent(new KeyboardEvent("keydown",{key:ae,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:ae,bubbles:!0}))}}stateWillChange(y){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:y},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(y){const b=this._element;if(!b)return;b.classList.toggle("is-math-mode",y.mode==="math"),b.classList.toggle("is-text-mode",y.mode==="text"),b.classList.toggle("can-undo",y.canUndo),b.classList.toggle("can-redo",y.canRedo),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-paste",!0);const z=b.querySelectorAll(".ML__edit-toolbar");if(z)for(const te of z)te.innerHTML=bv(this,y)}update(y){this._style=y.style,this.updateToolbar(y)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(y){let b,z=[],te=xf(y);return Fe(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),te=xf(y)),z=y.slice(1)):b=y,b=b.replace(/-\w/g,ae=>ae[1].toUpperCase()),te==="virtual-keyboard"?Vc[b].fn(void 0,...z):(this.sendMessage("execute-command",{command:y}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function Jp(){var a,y;let b=mh(),z=null;for(;b;){if("host"in b&&((y=(a=b.host)==null?void 0:a.tagName)==null?void 0:y.toLowerCase())==="math-field"){z=b.host;break}b=b.parentNode}return z}if(tt()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=Bd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>fv.singleton,configurable:!0});function Bh(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const z=a.scriptDepth;if(Fe(z))y.scriptDepth=[z[0],z[1]];else if(typeof z=="number")y.scriptDepth=[z,z];else if(typeof z=="string"){const[ae,ce]=z.split(",").map(we=>parseInt(we.trim()));y.scriptDepth=[ae,ce]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let te=a.mathVirtualKeyboardPolicy.toLowerCase();if(te==="sandboxed"){if(window!==window.top){const ae=Bd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>ae})}te="manual"}y.mathVirtualKeyboardPolicy=te;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?dt.locale.startsWith("fr")?y.letterShapeStyle="french":y.letterShapeStyle="tex":y.letterShapeStyle=a.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(a.defaultMode)?y.defaultMode=a.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),y.defaultMode="math");break;case"macros":y.macros=Ke(a.macros);break;default:Fe(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=be({},a[b]):y[b]=a[b]}return y}function Qd(a,y){let b;typeof y=="string"?b=[y]:y===void 0?b=Object.keys(a):b=y;const z={};for(const te of b)a[te]===null?z[te]=null:Fe(a[te])?z[te]=[...a[te]]:typeof a[te]=="object"&&!(a[te]instanceof Element)&&te!=="computeEngine"?z[te]=be({},a[te]):z[te]=a[te];return typeof y=="string"?z[y]:z}function Dh(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:mt,backgroundColorMap:Be,letterShapeStyle:dt.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:a=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(a),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:sf,inlineShortcuts:Hc,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:Tf,value:""}}function $p(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function Dd(a,y){!a||!y||(Fe(a)?a.forEach(b=>Dd(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),Dd(a.body,y),Dd(a.above,y),Dd(a.below,y),Dd(a.subscript,y),Dd(a.superscript,y)))}function ip(a,y,b,z){function te(ce,we){for(const ke of ae)if(ke.style[ce]!==we)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const ae=a.getAtoms(y,{includeChildren:!0});z.operation==="toggle"&&(b.color&&te("color",b.color)&&(b.color="none",delete b.verbatimColor),b.backgroundColor&&te("backgroundColor",b.backgroundColor)&&(b.backgroundColor="none",delete b.verbatimBackgroundColor),b.fontFamily&&te("fontFamily",b.fontFamily)&&(b.fontFamily="none"),b.fontSeries&&te("fontSeries",b.fontSeries)&&(b.fontSeries="auto"),b.fontShape&&te("fontShape",b.fontShape)&&(b.fontShape="auto"),b.fontSize&&te("fontSize",b.fontSize)&&(b.fontSize=Ll),b.variant&&te("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&te("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const ce of ae)ce.applyStyle(b);return!0}function Fv(a,y){const b=a.at(a.position);if(b.type==="composition")b.value=y;else{const{caret:z}=b;b.caret=void 0;const te=new Oc(y,{mode:b.mode});te.caret=z,b.parent.addChildAfter(te,b),a.position+=1}}function Pv(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}Kt(["math","displaymath"],Ac),Kt("center",Ac),kt("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(z=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(z)))}while(!0);return a.endContext(),y.push([b]),y},createAtom:a=>new Go("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),vn("array","{columns:colspec}",(a,y,b,z)=>new Go(a,ap(y),b,{columns:z[0],mathstyleName:"textstyle"})),vn(["equation","equation*","subequations"],"",(a,y,b)=>new Go(a,ap(y),b,{columns:[{align:"c"}]})),vn(["multline","multline*"],"",Ac),vn(["align","align*","aligned","eqnarray"],"",Ac),vn("split","",Ac),vn(["gather","gathered"],"",Ac),vn(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",Ac),vn(["smallmatrix","smallmatrix*"],"[columns:colspec]",Ac),vn(["cases","dcases","rcases"],"",Ac);function Iv(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function ap(a,y=1){return Iv(a)?Array(y).fill([[new oi({type:"first"}),new Mo]]):a.map(b=>b.length===0?[[new oi({type:"first"})]]:b.map(z=>z.length===0?[new oi({type:"first"})]:(z[0].type!=="first"&&z.unshift(new oi({type:"first"})),z)))}function Ac(a,y=[[[]]],b=[],z=[]){switch(y=ap(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new Go(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new Go(a,y,b,{mathstyleName:"textstyle"});case"center":return new Go(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new Go(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Go(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Go(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Go(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Yd(z[0])});case"bmatrix":case"bmatrix*":return new Go(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Yd(z[0])});case"Bmatrix":case"Bmatrix*":return new Go(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Yd(z[0])});case"vmatrix":case"vmatrix*":return new Go(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Yd(z[0])});case"Vmatrix":case"Vmatrix*":return new Go(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Yd(z[0])});case"matrix":case"matrix*":return new Go(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Yd(z==null?void 0:z[0])});case"smallmatrix":case"smallmatrix*":return new Go(a,y,b,{mathstyleName:"scriptstyle",columns:Yd(z==null?void 0:z[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Go(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 Go(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Go(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let te=0;for(const we of y)te=Math.max(te,we.length);const ae=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let ce=2;for(;ce<te;)ae.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),ce+=2;return ae.push({gap:0}),new Go(a,y,b,{arraycolsep:0,columns:ae,minColumns:2})}}return new Go(a,y,b,{mathstyleName:"textstyle"})}function Yd(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 Ov(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof Go);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof Go)){const z=a.at(a.position);if(b=z,!b.parent.parent){let te=a.extractAtoms([a.position,a.lastOffset]),ae=a.extractAtoms([0,a.position]);ae.length===0&&(ae=Fh()),te.length===0&&(te=Fh());let ce;return y.endsWith("column")?(ce=Ac("split",[[ae,te]]),a.root=ce,Xd(ce,0,0)?Jd(a,ce,0,0):Xd(ce,0,1)?Jd(a,ce,0,1):a.position=a.offsetOf(z)):(ce=Ac("lines",[[ae],[te]]),a.root=ce,Xd(ce,0,0)?Jd(a,ce,0,0):Xd(ce,1,0)?Jd(a,ce,1,0):a.position=a.offsetOf(z)),[void 0,[0,0]]}if(b.parent instanceof se){const te=b.parent;let ae=a.extractAtoms([a.position,a.offsetOf(te.lastChild)]),ce=a.extractAtoms([a.offsetOf(te.firstChild),a.position]);ce.length===0&&(ce=Fh()),ae.length===0&&(ae=Fh());let we="pmatrix";const ke=te.leftDelim,He=te.rightDelim;ke==="("&&(He===")"||He==="?")?we="pmatrix":(ke==="["||ke==="\\lbrack")&&(He==="]"||He==="\\rbrack"||He==="?")?we="bmatrix":ke==="\\vert"&&He==="\\vert"?we="vmatrix":ke==="\\Vert"&&He==="\\Vert"?we="Vmatrix":(ke==="{"||ke==="\\lbrace")&&(He==="."||He==="?")&&(we="cases");const qe=Ac(we,y.endsWith("column")?[[ce,ae]]:[[ce],[ae]]);return te.parent.addChildBefore(qe,te),te.parent.removeChild(te),Xd(qe,0,0)?Jd(a,qe,0,0):y.endsWith("column")?Xd(qe,0,1)?Jd(a,qe,0,1):a.position=a.offsetOf(b):Xd(qe,1,0)?Jd(a,qe,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof Go?[b.parent,b.parentBranch]:[void 0,[0,0]]}function Xd(a,y,b){const z=a.getCell(y,b);return!z||z.length!==2?!1:z[1].type==="placeholder"}function Lv(a,y,b,z){const te=y.getCell(b,z);return te?[a.offsetOf(te[0]),a.offsetOf(te[te.length-1])]:-1}function Jd(a,y,b,z){const te=Lv(a,y,b,z);typeof te!="number"&&a.setSelection(te)}function Mh(a,y,b,z,te){const ae=y.getCell(b,z);ae&&a.setPositionHandlingPlaceholder(a.offsetOf(ae[te==="start"?0:ae.length-1]))}function kh(a,y){const[b,[z,te]]=Ov(a,y);if(b)switch(y){case"after row":b.addRowAfter(z),Mh(a,b,z+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(te),Mh(a,b,z,te+1,"end");break;case"before row":b.addRowBefore(z),Mh(a,b,z,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(te),Mh(a,b,z,te,"start");break}}function qp(a){return a.contentWillChange({inputType:"insertText"})?(kh(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Nv(a){return a.contentWillChange({inputType:"insertText"})?(kh(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function e0(a){return a.contentWillChange({inputType:"insertText"})?(kh(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function _v(a){return a.contentWillChange({inputType:"insertText"})?(kh(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function t0(a,y){if(!a.contentWillChange({}))return!1;a.mathfield.snapshot();let b=".",z=".";switch(y){case"pmatrix":case"pmatrix*":b="(",z=")";break;case"bmatrix":case"bmatrix*":b="[",z="]";break;case"Bmatrix":case"Bmatrix*":b="\\lbrace",z="\\rbrace";break;case"vmatrix":case"vmatrix*":b="\\vert",z="\\vert";break;case"Vmatrix":case"Vmatrix*":b="\\Vert",z="\\Vert";break;case"matrix":case"matrix*":b=".",z=".";break;case"cases":case"dcases":b="\\lbrace";break;case"rcases":z="\\rbrace";break}const te=a.at(a.position),ae=te.type==="array"?te:a.parentEnvironment;return ae.environmentName=y,ae.leftDelim=b,ae.rightDelim=z,a.contentDidChange({}),!0}function n0(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof Go);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof Go){const z=b.parent,te=b.parentBranch;let ae;switch(y){case"row":if(z.rowCount>1){z.removeRow(te[0]);const ce=z.getCell(Math.max(0,te[0]-1),te[1]);ae=a.offsetOf(ce[ce.length-1])}break;case"column":if(z.colCount>z.minColumns){z.removeColumn(te[1]);const ce=z.getCell(te[0],Math.max(0,te[1]-1));ae=a.offsetOf(ce[ce.length-1])}break}ae&&a.setPositionHandlingPlaceholder(ae)}}function Tv(a){return a.contentWillChange({inputType:"deleteContent"})?(n0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Rv(a){return a.contentWillChange({inputType:"deleteContent"})?(n0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}rc({addRowAfter:qp,addColumnAfter:e0,addRowBefore:Nv,addColumnBefore:_v,removeRow:Tv,removeColumn:Rv,setEnvironment:t0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Fh(){return[new Mo]}var r0=class Am{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>Am.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=y!=null?y:"",!0):!1}};r0.maximumDepth=1e3;var zv=r0;function op(a,y,b){if(a.at(y).mode!=="text")return y;const z=b==="backward"?-1:1;let te;if(me.test(a.at(y).value)){let ae=y,ce;do ce=a.at(ae).mode==="text"&&me.test(a.at(ae).value),ae+=z;while(a.at(ae)&&ce);te=a.at(ae)?ae-2*z:ae-z}else if(/\s/.test(a.at(y).value)){let ae=y;for(;a.at(ae)&&a.at(ae).mode==="text"&&/\s/.test(a.at(ae).value);)ae+=z;if(!a.at(ae))te=ae-z;else{let ce=!0;do ce=a.at(ae).mode==="text"&&!/\s/.test(a.at(ae).value),ae+=z;while(a.at(ae)&&ce);te=a.at(ae)?ae-2*z:ae-z}}else{let ae=y;for(;a.at(ae)&&a.at(ae).mode==="text"&&!/\s/.test(a.at(ae).value);)ae+=z;te=a.at(ae)?ae:ae-z;let ce=!0;for(;a.at(ae)&&ce;)ce=a.at(ae).mode==="text"&&/\s/.test(a.at(ae).value),ce&&(te=ae),ae+=z;te=a.at(ae)?ae-2*z:ae-z}return te-(z>0?0:1)}function wf(a,y,b){var z,te,ae,ce,we,ke,He;const qe=a.position;(z=b==null?void 0:b.extend)!=null&&z||a.collapseSelection(y);let It=a.at(a.position);if(y==="forward"&&(It.type==="subsup"?(It=It.rightSibling,It||(It=a.at(a.position+1))):It=a.at(a.position+1)),!It)return a.announce("plonk"),!1;let nn=a.offsetOf(It);if(It instanceof sc)nn=op(a,nn,y);else if(It instanceof Zo)if(It.isSuggestion)for(console.assert(y==="forward");It&&It instanceof Zo;)It.isSuggestion=!1,nn=a.offsetOf(It),It=It.rightSibling;else if(y==="forward"){if(It=It.rightSibling,!It||!(It instanceof Zo))return a.announce("plonk"),!1;for(;It&&It instanceof Zo&&/[a-zA-Z\*]/.test(It.value);)nn=a.offsetOf(It),It=It.rightSibling}else{if(It=It.leftSibling,!It||!(It instanceof Zo))return a.announce("plonk"),!1;for(;It&&It instanceof Zo&&/[a-zA-Z\*]/.test(It.value);)nn=a.offsetOf(It),It=It.leftSibling}else if(y==="forward"&&It.type==="mopen"){let Sn=0;do It.type==="mopen"?Sn+=1:It.type==="mclose"&&(Sn-=1),It=It.rightSibling;while(!It.isLastSibling&&Sn!==0);nn=a.offsetOf(It.leftSibling)}else if(y==="backward"&&It.type==="mclose"){let Sn=0;do It.type==="mopen"?Sn+=1:It.type==="mclose"&&(Sn-=1),It=It.leftSibling;while(!It.isFirstSibling&&Sn!==0);nn=a.offsetOf(It)}else if(y==="backward")if(It.type==="first")for(;nn>0&&It.type==="first";)nn-=1,It=a.at(nn);else{const Sn=It.type;It.type==="subsup"&&(nn=a.offsetOf(a.at(nn).leftSibling)),nn-=1;let In=(te=a.at(nn))==null?void 0:te.type;for(;nn>=0&&In===Sn;)((ae=a.at(nn))==null?void 0:ae.type)==="subsup"?nn=a.offsetOf(a.at(nn).leftSibling):nn-=1,In=a.at(nn).type}else{const{type:Sn}=It;let In=(ce=a.at(nn))==null?void 0:ce.type;const{lastOffset:Rr}=a;for(;nn<=Rr&&(In===Sn||In==="subsup");){for(;((we=a.at(nn).rightSibling)==null?void 0:we.type)==="subsup";)nn=a.offsetOf(a.at(nn).rightSibling);nn+=1,In=(ke=a.at(nn))==null?void 0:ke.type}nn-=1}if((He=b==null?void 0:b.extend)!=null&&He){if(!a.setSelection(a.anchor,nn))return a.announce("plonk"),!1}else{if(nn===a.position)return a.announce("plonk"),!1;a.position=nn}return a.announce("move",qe),a.mathfield.stopCoalescingUndo(),!0}function Uc(a,y,b){var z,te;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[we,ke]=zp(a);we!==void 0&&ke!==void 0&&a.deleteAtoms([we,ke])}if(y==="upward")return Hv(a,b);if(y==="downward")return Kv(a,b);if(b.extend){let we=Ph(a,a.position,y);we<0&&(we=0),we>a.lastOffset&&(we=a.lastOffset);const ke=a.setSelection(a.anchor,we);return a.mathfield.stopCoalescingUndo(),ke}if(a.selectionIsPlaceholder){a.collapseSelection(y);const we=Uc(a,y);return a.mathfield.stopCoalescingUndo(),we}let ae=a.position;const ce=ae;if(a.collapseSelection(y)?(ae=a.position,i0(a,ae)||(ae=Ph(a,ae,y))):ae=Ph(a,ae,y),ae<0||ae>a.lastOffset){let we=!0;return a.silenceNotifications||(we=(te=(z=a.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))!=null?te:!0),we&&a.announce("plonk"),we}return a.setPositionHandlingPlaceholder(ae),a.mathfield.stopCoalescingUndo(),a.announce("move",ce),!0}function Ph(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||i0(a,y)?y:Ph(a,y,b)}function i0(a,y){var b;const z=a.at(y);let te=z.parent;for(;te&&!te.inCaptureSelection;)te=te.parent;return!(te!=null&&te.inCaptureSelection||(b=z.parent)!=null&&b.skipBoundary&&(!z.isFirstSibling&&z.isLastSibling||z.type==="first")||a.mathfield.hasEditablePrompts&&!z.parentPrompt)}function Zv(a,y,b){let z=1/0,te=0;for(;te<y.length;te++){const ae=cd(a.getHTMLElement(y[te])).right,ce=Math.abs(b-ae);if(ce<=z)z=ce;else break}return y[te-1]}function Ih(a,y,b,z,te){const ae=a.mathfield.hasEditablePrompts,ce=ae?b.filter(He=>He.type==="prompt"&&!He.captureSelection):b,we=cd(a.mathfield.getHTMLElement(y)).right,ke=a.offsetOf(Zv(a.mathfield,ce,we))-(ae?1:0);if(z){const[He,qe]=a.selection.ranges[0];let It;ke<(te==="up"?He:qe)?It={ranges:[[ke,qe]],direction:"backward"}:It={ranges:[[He,ke]],direction:"forward"},a.setSelection(It)}else a.setPositionHandlingPlaceholder(ke);a.announce(`move ${te}`)}function Hv(a,y){var b,z;const te=(b=y==null?void 0:y.extend)!=null?b:!1;te||a.collapseSelection("backward");const ae=()=>{var ke,He;let qe=!0;return a.silenceNotifications||(qe=(He=(ke=a.mathfield.host)==null?void 0:ke.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?He:!0),a.announce(qe?"plonk":"line"),qe},ce=a.at(a.position);let we=ce;for(;we&&we.parentBranch!=="below"&&!(Array.isArray(we.parentBranch)&&we.parent instanceof Go);)we=we.parent;if(Array.isArray(we==null?void 0:we.parentBranch)&&we.parent instanceof Go){const ke=we.parent;if(we.parentBranch[0]<1)return ae();const He=we.parentBranch[0]-1,qe=ke.array[He][we.parentBranch[1]];if(!qe.some(nn=>nn.type==="prompt"&&!nn.captureSelection)&&a.mathfield.hasEditablePrompts)return ae();Ih(a,ce,qe,te,"up")}else if(we){const ke=(z=we.parent.branch("above"))!=null?z:we.parent.createBranch("above");if(!ke.some(qe=>qe.type==="prompt"&&qe.placeholderId)&&a.mathfield.hasEditablePrompts)return ae();Ih(a,ce,ke,te,"up")}else return ae();return a.mathfield.stopCoalescingUndo(),!0}function Kv(a,y){var b,z;const te=(b=y==null?void 0:y.extend)!=null?b:!1;te||a.collapseSelection("forward");const ae=()=>{var ke,He;let qe=!0;return a.silenceNotifications||(qe=(He=(ke=a.mathfield.host)==null?void 0:ke.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?He:!0),a.announce(qe?"plonk":"line"),qe},ce=a.at(a.position);let we=ce;for(;we&&we.parentBranch!=="above"&&!(Array.isArray(we.parentBranch)&&we.parent instanceof Go);)we=we.parent;if(Array.isArray(we==null?void 0:we.parentBranch)&&we.parent instanceof Go){const ke=we.parent;if(we.parentBranch[0]+1>ke.array.length-1)return ae();const He=we.parentBranch[0]+1,qe=ke.array[He][we.parentBranch[1]];if(!qe.some(nn=>nn.type==="prompt"&&!nn.captureSelection)&&a.mathfield.hasEditablePrompts)return ae();Ih(a,ce,qe,te,"down")}else if(we){const ke=(z=we.parent.branch("below"))!=null?z:we.parent.createBranch("below");if(!ke.some(qe=>qe.type==="prompt")&&a.mathfield.hasEditablePrompts)return ae();Ih(a,ce,ke,te,"down")}else return ae();return!0}function a0(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 Wv(a){let y=0,b=a.at(a.position),z=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(z=!1):z=!0,b=b.parent;return z?y:0}function jv(a){let y=0,b=a.at(a.position),z=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(z=!0):z=!1,b=b.parent;return z?y:0}function o0(a){var y;if(a.collapseSelection(),Wv(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 pt({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function l0(a){var y;if(a.collapseSelection(),jv(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 pt({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 Vv(){function a(ke){const He=[],qe=[];return[...ke.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((nn,Sn)=>{const In=z(nn);In===0?He.push(nn):qe.push({documentOrder:Sn,tabIndex:In,node:nn})}),qe.sort((nn,Sn)=>nn.tabIndex===Sn.tabIndex?nn.documentOrder-Sn.documentOrder:nn.tabIndex-Sn.tabIndex).map(nn=>nn.node).concat(He)}function y(ke){return!(!b(ke)||te(ke)||z(ke)<0)}function b(ke){return!(ke.disabled||ke.type==="hidden"&&ke.tagName.toUpperCase()==="INPUT"||we(ke))}function z(ke){var He;const qe=Number.parseInt((He=ke.getAttribute("tabindex"))!=null?He:"NaN",10);return Number.isNaN(qe)?ke.contentEditable==="true"||(ke.nodeName==="AUDIO"||ke.nodeName==="VIDEO")&&ke.getAttribute("tabindex")===null?0:ke.tabIndex:qe}function te(ke){return ke.tagName.toUpperCase()==="INPUT"&&ke.type==="radio"&&!ce(ke)}function ae(ke,He){for(const qe of ke)if(qe.checked&&qe.form===He)return qe;return null}function ce(ke){var He;if(!ke.name)return!0;const It=((He=ke.form)!=null?He:ke.ownerDocument).querySelectorAll('input[type="radio"][name="'+ke.name+'"]'),nn=ae(It,ke.form);return!nn||nn===ke}function we(ke){if(!tt()||ke===document.activeElement||ke.contains(document.activeElement))return!1;if(getComputedStyle(ke).visibility==="hidden")return!0;const He=ke.getBoundingClientRect();if(He.width===0||He.height===0)return!0;for(;ke;){if(getComputedStyle(ke).display==="none")return!0;ke=ke.parentElement}return!1}return tt()?a(document.body):[]}function Nu(a,y,b="forward"){const z=a.position;if(Array.isArray(y)){const te=a.offsetOf(y[0]),ae=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(te,ae):a.setSelection(ae,te),a.announce("move",z),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?Nu(a,[y.leftSibling,y]):Nu(a,[y,y.leftSibling])}function Lc(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 z=a.offsetOf(y);y.type==="placeholder"?a.setSelection(z-1,z):a.position=z}return a.announce("move",b),a.mathfield.stopCoalescingUndo(),!0}function Oh(a,y,b=!0){var z,te;const ae=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Uc(a,y);let ce;const we=a.at(a.anchor).parentPrompt;we?y==="forward"?ce=a.offsetOf(we)+1:ce=a.offsetOf(we.leftSibling):ce=Math.max(a.position+ae,0);const ke=lp(a,ce,y);if(!ke||y==="forward"&&a.offsetOf(ke)<ce||y==="backward"&&a.offsetOf(ke)>ce){if(!b||!((te=(z=a.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||te))return a.announce("plonk"),!1;const qe=Vv();if(!document.activeElement||qe.length<=1)return a.announce("plonk"),!1;let It=qe.indexOf(document.activeElement)+ae;return It<0&&(It=qe.length-1),It>=qe.length&&(It=0),qe[It].focus(),a.mathfield.stopCoalescingUndo(),!0}return Lc(a,ke),!0}function lp(a,y=0,b="forward"){return a.findAtom(z=>z.type==="placeholder"||z.type==="prompt"||!a.mathfield.readOnly&&z.treeDepth>2&&z.isFirstSibling&&z.isLastSibling,y,b)}rc({moveToOpposite:a=>{const y={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},b=a.at(a.position),{parent:z}=b;if(!z)return a.announce("plonk"),!1;const te=b.parentBranch;let ae;if(typeof te=="string"&&(ae=y[te]),!ae){const we=b.subsupPlacement?l0(a):o0(a);return a.mathfield.stopCoalescingUndo(),we}z.branch(ae)||z.createBranch(ae);const ce=a.setSelection(a.getBranchRange(a.offsetOf(z),ae));return a.mathfield.stopCoalescingUndo(),ce},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=>a0(a),moveToNextChar:a=>Uc(a,"forward"),moveToPreviousChar:a=>Uc(a,"backward"),moveUp:a=>Uc(a,"upward"),moveDown:a=>Uc(a,"downward"),moveToNextWord:a=>wf(a,"forward"),moveToPreviousWord:a=>wf(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,z,te;if(a.position===a.lastOffset&&a.anchor===a.lastOffset)return Oh(a,"forward");const ae=a.at(a.position);if(ae.mode==="text"){if(a.selectionIsCollapsed){let nn=ae;for(;nn&&nn.mode==="text";)nn=nn.leftSibling;let Sn=ae;for(;((y=Sn.rightSibling)==null?void 0:y.mode)==="text";)Sn=Sn.rightSibling;if(nn&&Sn)return Nu(a,[nn,Sn])}if(ae.rightSibling.mode==="text"){let nn=ae;for(;nn&&nn.mode==="text";)nn=nn.rightSibling;return nn?(Lc(a,(b=nn.leftSibling)!=null?b:nn),a.mathfield.switchMode("math"),!0):Lc(a,a.lastOffset)}}const we=a.at(a.anchor).parentPrompt,ke=we?a.offsetOf(we)+1:Math.max(a.position+1,0),He=lp(a,ke,"forward");if(He)return Lc(a,He);const qe=s0(a,ae,nn=>nn.type==="leftright"||nn.type==="text","forward");if(qe){if(qe.mode==="text"){let nn=qe;for(;nn&&nn.mode==="text";)nn=nn.rightSibling;return Nu(a,[(z=qe.leftSibling)!=null?z:qe,(te=nn.leftSibling)!=null?te:nn])}return Nu(a,qe)}const It=ae.parent;if(It){if(It.type==="leftright"||It.type==="surd")return Nu(a,It);if(ae.parentBranch==="superscript"&&It.subscript)return Nu(a,It.subscript);if(ae.parentBranch==="above"&&It.below)return Nu(a,It.below);if(ae.parentBranch==="superscript"||ae.parentBranch==="subscript")return Lc(a,It);if(ae.parentBranch==="above"||ae.parentBranch==="below")return Nu(a,It)}return Lc(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Oh(a,"backward");let b=a.at(a.position);const z=b.mode;if(z==="text"){if(a.selectionIsCollapsed){let we=b;for(;we&&we.mode==="text";)we=we.leftSibling;let ke=b;for(;((y=ke.rightSibling)==null?void 0:y.mode)==="text";)ke=ke.rightSibling;if(we&&ke)return Nu(a,[we,ke])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?Lc(a,b):Lc(a,0)}const te=a.at(a.anchor).parentPrompt,ae=te?a.offsetOf(te.leftSibling):Math.max(a.position-1,0),ce=lp(a,ae,"backward");if(ce)return Lc(a,ce);if(z==="math"){const we=s0(a,b,He=>He.type==="leftright"||He.type==="text","backward");if(we){if(we.mode==="text"){let He=we;for(;He&&He.mode==="text";)He=He.leftSibling;return Nu(a,[we,He])}return Nu(a,we)}const ke=b.parent;if(ke){if(ke.type==="leftright"||ke.type==="surd")return Nu(a,ke);if(b.parentBranch==="subscript"&&ke.superscript)return Nu(a,ke.superscript);if(b.parentBranch==="below"&&ke.above)return Nu(a,ke.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return Lc(a,ke);if(b.parentBranch==="above"||b.parentBranch==="below")return Nu(a,ke)}return Lc(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:o0,moveToSubscript:l0},{target:"model",changeSelection:!0}),rc({moveToNextPlaceholder:a=>Oh(a,"forward"),moveToPreviousPlaceholder:a=>Oh(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function s0(a,y,b,z){if(z==="forward"){let ae=y.rightSibling;for(;ae&&!b(ae);)ae=ae.rightSibling;return ae}let te=y.leftSibling;for(;te&&!b(te);)te=te.leftSibling;return te}function Lh(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let z=a.position,te=!1,ae="";for(;!te;){const ce=a.at(z);te=y===0||ce===void 0||ce.type==="first"||ce.mode!=="math"||!(ce.type&&/mord|mpunct|operator/.test(ce.type)||ce.type==="mop"&&/[a-zA-Z ]+/.test(ce.value))||!ce.hasEmptyBranch("superscript")||!ce.hasEmptyBranch("subscript")||typeof b=="function"&&!b(ce),te||(ce.mode="text",ce.command=ce.value,ce.verbatimLatex=void 0,ae+=ce.value),z-=1,y-=1}a.contentDidChange({data:ae,inputType:"insertText"})}function $d(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let z=a.position,te=!1;const ae=[];for(;!te;){const ce=a.at(z);te=y===0||!ce||ce.type==="first"||ce.isFirstSibling||ce.mode!=="text"||ce.value===" "||typeof b=="function"&&!b(ce),te||(ae.push(oi.serialize([ce],{defaultMode:"math"})),ce.mode="math"),z-=1,y-=1}sp(a),a.contentDidChange({data:el(ae),inputType:"insertText"})}function sp(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 z=a.silenceNotifications;a.silenceNotifications=!0,a.position-=1,a.silenceNotifications=z,a.contentDidChange({inputType:"deleteContent"})}}function Uv(a){let y="",b=a.position,z=!1;for(;!z;){const te=a.at(b);z=!(te&&(te.mode==="text"||te.mode==="math"&&te.type&&/mord|mpunct/.test(te.type))),z||(y=te.value+y),b-=1}return y}function Gv(a,y,b){const{model:z}=a;if(z.mode==="latex"||!z.at(z.position).isLastSibling||!b||!ph(b))return!1;const te=gf(b);if(!z.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(te));const ae=Uv(z)+te;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(te))return!0;if(/[\^_]/.test(te))return/(^|\s)[a-zA-Z][^_]$/.test(ae)&&$d(z,1),!0;const ce={")":"(","}":"{","]":"["}[te],{parent:we}=z.at(z.position);if(ce&&we instanceof se&&we.leftDelim===ce)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(ae))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(te))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(ae))return $d(z,1),!1;if(/\D\.[^\d\s]$/.test(ae)){$d(z,1);const ke=z.at(z.position);return ke.value="\u22C5",ke.style.variant="normal",ke.command="\\cdot",ke.verbatimLatex=void 0,z.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(ae)||/\.\d$/.test(ae)||/\([\d+\-.]$/.test(ae))return $d(z,1),!0;if(/\([a-z][,;]$/.test(ae))return $d(z,2),!0;if(/[\d+\-=><*|]$/.test(te))return sp(z),!0}else{if(y==="[Space]")return Lh(z,void 0,ce=>/[a-z][:,;.]$/.test(ce.value)),!0;if(/[a-zA-Z]{3,}$/.test(ae)&&!/(dxd|abc|xyz|uvw)$/.test(ae))return Lh(z,void 0,ce=>/[a-zA-Z]/.test(ce.value)),!0;if(/(^|\W)(if)$/i.test(ae))return Lh(z,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(ae)&&!/(αβγ)$/.test(ae))return Lh(z,void 0,ce=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(ce.value)),!0;if(te==="?"||te==="."&&!/[\d-+]\.$/.test(ae))return!0}return!1}function Qv(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=u0(),z=a.element.getBoundingClientRect();b.style.left=`${z.left}px`,b.style.top=`${z.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(Xh(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 Yv(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=u0();y.innerHTML=""}else{const y=gh("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function u0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(yu("keystroke-caption"),yu("core"),gh("mathlive-keystroke-caption-panel"))}function Xv(){document.getElementById("mathlive-keystroke-caption-panel")&&($h("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function c0(a,y){var b,z,te;const{model:ae}=a,ce=Tp(y);if(y.isTrusted){zm(y);const Sn=Vf();a.keyboardLayout!==Sn.id&&(a.keyboardLayout=Sn.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Qv(a,ce),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let we,ke="",He;const qe=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(ae.mode==="math")if(ce==="[Backspace]")qe.pop();else if(!ph(y))a.flushInlineShortcutBuffer();else{const Sn=gf(y),In=[...(z=(b=qe[qe.length-1])==null?void 0:b.keystrokes)!=null?z:[],Sn];qe.push({state:ae.getState(),keystrokes:In,leftSiblings:Jv(a)});let Rr=0,ia="";for(;!we&&Rr<In.length;)He=qe.length-(In.length-Rr),ia=In.slice(Rr).join(""),we=Ld(qe[He].leftSiblings,ia,a.options.inlineShortcuts),!we&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(ia)&&(we=a.options.onInlineShortcut(a,ia)),Rr+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(we?a.switchMode("math"):Gv(a,ce,y)&&(a.switchMode({math:"text",text:"math"}[ae.mode]),ke=""))}if(!we){if(ke||(ke=Um(a.keybindings,ae.mode,y)),!ke&&(ce==="[Enter]"||ce==="[Return]")){let Sn=!1;return ae.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(Sn=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),Sn||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),ae.contentDidChange({inputType:"insertLineBreak"})),Sn}if((!ke||ce==="[Space]")&&ae.mode==="math"){if(ce==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return jo.insert(ae,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),ke="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const Sn=ae.at(ae.position+1),In=ae.at(ae.position-1);if((Sn==null?void 0:Sn.mode)==="text"||(In==null?void 0:In.mode)==="text")return jo.insert(ae," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(te=ae.at(ae.position))!=null&&te.isDigit()&&window.MathfieldElement.decimalSeparator===","&&gf(y)===","&&(ke="insertDecimalSeparator")}}if(!we&&!ke){if(ae.mathfield.smartFence){if(cp(ae,gf(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:Sn}=ae.at(ae.position);if(Sn instanceof se&&Sn.rightDelim==="?"&&ae.at(ae.position).isLastSibling&&/^[)}\]|]$/.test(ce))return a.snapshot(),Sn.isDirty=!0,Sn.rightDelim=ce,ae.position+=1,ae.selectionDidChange(),ae.contentDidChange({data:gf(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!ae.selectionIsCollapsed){const In=gf(y);if(In==="("||In==="{"||In==="["){const Rr={"(":"(","{":"\\lbrace","[":"\\lbrack"}[In],ia={"(":")","{":"\\rbrace","[":"\\rbrack"}[In],[Nr,bi]=Zs(ae.selection);return a.snapshot(),ae.position=bi,jo.insert(ae,ia,{format:"latex"}),ae.position=Nr,jo.insert(ae,Rr,{format:"latex"}),ae.setSelection(Nr+1,bi+1),ae.contentDidChange({data:In,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const It=ae.at(Math.max(ae.position,ae.anchor)),{parent:nn}=It;if(ke==="moveAfterParent"&&(nn==null?void 0:nn.type)==="leftright"&&It.isLastSibling&&a.options.smartFence&&cp(ae,".",a.defaultStyle)&&(ke="",Ms(a)),a.keyboardDelegate.cancelComposition(),ke)a.executeCommand(ke);else if(we){const Sn=a.effectiveStyle;ae.setState(qe[He].state);const In=qe[qe.length-1].keystrokes;for(const Rr of In)jo.insert(ae,Rr,{silenceNotifications:!0,style:Sn});a.snapshot("insert-shortcut"),ae.setState(qe[He].state),ae.deferNotifications({content:!0,selection:!0,data:we,type:"insertText"},()=>(jo.insert(ae,we,{format:"latex",style:Sn}),sp(a.model),we.endsWith(" ")&&(a.switchMode("text"),jo.insert(ae," ",{style:Sn,mode:"text"})),a.snapshot(),ae.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,ae.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function up(a,y,b){const{model:z}=a;if(!a.isSelectionEditable){z.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 te=ru(y);const ae=window.mathVirtualKeyboard;if(ae!=null&&ae.isShifted&&(te=typeof te=="string"?te.toUpperCase():te.map(ke=>ke.toUpperCase())),b.simulateKeystroke){let ke=!0;for(const He of te)c0(a,new KeyboardEvent("keypress",{key:He}))&&(ke=!1);if(ke)return}const ce=z.at(z.position),we=be(be({},ce.computedStyle),a.defaultStyle);if(z.selectionIsCollapsed||(z.deleteAtoms(Zs(z.selection)),a.snapshot("delete")),z.mode==="latex")z.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{vh(a);for(const ke of te)jo.insert(z,ke);a.snapshot("insert-latex"),Gf(a)});else if(z.mode==="text"){for(const ke of te)jo.insert(z,ke,{style:we});a.snapshot("insert-text")}else if(z.mode==="math")for(const ke of te)$v(a,ke,we,ce);a.dirty=!0,a.scrollIntoView()}function Jv(a){const y=a.model,b=[];let z=y.at(Math.min(y.position,y.anchor));for(;z.type!=="first";)b.push(z),z=z.leftSibling;return b}function $v(a,y,b,z){const te=a.model;let ae={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(ae=["insert",a.options.mathModeSpace]),ae){a.executeCommand(ae);return}if(/\d/.test(y)&&a.options.smartSuperscript&&z.parentBranch==="superscript"&&z.parent.type!=="mop"&&z.parent.type!=="operator"&&z.parent.type!=="extensible-symbol"&&z.hasNoSiblings){qv(te),jo.insert(te,y,{style:b}),a.snapshot(),a0(te),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const ce=a.adoptStyle==="left"?z:z.parent?z.rightSibling:null;(ce==null?void 0:ce.type)==="mord"&&/[a-zA-Z0-9]/.test(ce.value)&&(b=be({},b),ce.style.variant&&(b.variant=ce.style.variant),ce.style.variantStyle&&(b.variantStyle=ce.style.variantStyle))}jo.insert(te,y,{style:b}),a.snapshot(`insert-${te.at(te.position).type}`)}function qv(a){a.selectionIsCollapsed||(a.deleteAtoms(Zs(a.selection)),a.mathfield.snapshot("delete"))}function cp(a,y,b){if(!y||a.mode!=="math")return!1;const z=a.at(a.position),{parent:te}=z,ae={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!ae)return!1;const ce=re[ae],we=ie[ae];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[ke,He]=Zs(a.selection),qe=a.extractAtoms([ke,He]),It=te.addChildrenAfter([new se("left...right",qe,{leftDelim:ae,rightDelim:we})],a.at(ke));return a.setSelection(a.offsetOf(It.firstChild),a.offsetOf(It.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ae,inputType:"insertText"}),!0}if(ae==="|"){const ke=te instanceof se?te.leftDelim+te.rightDelim:"";if(ke==="\\lbrace\\rbrace"||ke==="\\{\\}"||ke==="\\lbrace?")return a.mathfield.snapshot(),jo.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ae,inputType:"insertText"}),!0}if(we){if(te instanceof se&&te.firstChild===z&&(te.leftDelim==="?"||te.leftDelim==="."))return te.leftDelim=ae,te.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(te instanceof se)){let It=z;for(;It&&!(It.type==="mclose"&&It.value===we);)It=It.rightSibling;if(It){a.mathfield.snapshot();const nn=a.extractAtoms([a.offsetOf(z),a.offsetOf(It)]);return nn.pop(),te.addChildrenAfter([new se("left...right",nn,{leftDelim:ae,rightDelim:we})],z),a.position=a.offsetOf(te.firstChild)+1,a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const ke=a.offsetOf(z.lastSibling);let He;for(He=a.position;He<=ke;He++){const It=a.at(He);if(It instanceof se&&(It.leftDelim==="?"||It.leftDelim===".")&&d0(ae,It.rightDelim))break}const qe=a.at(He);if(He<=ke&&qe instanceof se){qe.leftDelim=ae,a.mathfield.snapshot();let It=a.extractAtoms([a.position,He-1]);return It=It.filter(nn=>nn.type!=="first"),qe.addChildren(It,qe.parentBranch),a.position+=1,a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(te instanceof se&&(te.leftDelim==="?"||te.leftDelim===".")&&d0(ae,te.rightDelim)){te.isDirty=!0,te.leftDelim=ae,a.mathfield.snapshot();const It=a.extractAtoms([a.offsetOf(z.firstSibling),a.position]);for(const nn of It)te.parent.addChildBefore(nn,te);return a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(te instanceof se&&te.leftDelim==="|")){if(a.mathfield.snapshot(),jo.insert(a,`\\left${ae}\\right?`,{format:"latex",style:b}),z.lastSibling.type!=="first"){const It=a.offsetOf(z.lastSibling),nn=a.extractAtoms([a.position,It]);a.at(a.position).body=nn,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(ce){let ke=z;for(;ke;){if(ke.type==="mopen"&&ke.value===ce){a.mathfield.snapshot();const Sn=ke.leftSibling,In=a.extractAtoms([a.offsetOf(ke.leftSibling),a.offsetOf(z)]);In.shift();const Rr=new se("left...right",In,{leftDelim:ce,rightDelim:ae});return te.addChildrenAfter([Rr],Sn),a.position=a.offsetOf(Rr),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}ke=ke.leftSibling}if(te instanceof se&&z.isLastSibling&&dp(te.leftDelim,ae))return a.mathfield.snapshot(),te.isDirty=!0,te.rightDelim=ae,a.position+=1,a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const He=a.offsetOf(z.firstSibling);let qe;for(qe=a.position;qe>=He;qe--){const Sn=a.at(qe);if(Sn instanceof se&&(Sn.rightDelim==="?"||Sn.rightDelim===".")&&dp(Sn.leftDelim,ae))break}const It=a.at(qe);if(qe>=He&&It instanceof se)return a.mathfield.snapshot(),It.rightDelim=ae,It.addChildren(a.extractAtoms([qe,a.position]),It.parentBranch),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(te instanceof se&&(te.rightDelim==="?"||te.rightDelim===".")&&dp(te.leftDelim,ae))return a.mathfield.snapshot(),te.isDirty=!0,te.rightDelim=ae,te.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(z.lastSibling)]),te.parentBranch),a.position=a.offsetOf(te),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const nn=te.parent;return nn instanceof se&&(nn.rightDelim==="?"||nn.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(nn),cp(a,ae,b)):!1}return!1}function dp(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):ie[a]===y:!0}function d0(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):re[y]===a:!0}rc({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:Yv,toggleContextMenu:a=>{const y=a.toggleContextMenu();return y||a.model.announce("plonk"),y},plonk:a=>(a.model.announce("plonk"),!0),switchMode:(a,y,b,z)=>(a.switchMode(y,b,z),!0),insert:(a,y,b)=>a.insert(y,b),typedText:(a,y,b)=>(up(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 z=a.getPrompts();let te="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),ae=0;for(;z.includes(te)&&ae<100;){if(ae===99)return console.error("could not find a unique ID after 100 tries"),!1;te="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),ae++}return a.insert(`\\placeholder[${y!=null?y:te}]{}`,b),!0}}),rc({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"}),rc({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})&&(Gf(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Ms(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function eg(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=fp(a,y),{model:z}=a;return z.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=be(be({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{z.selection.ranges.forEach(te=>ip(z,te,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}rc({applyStyle:eg},{target:"mathfield",canUndo:!0,changeContent:!0});function fp(a,y){var b,z,te,ae,ce,we,ke,He,qe,It;const nn={};if(typeof y.color=="string"){const In=(z=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?z:"none";In!==y.color&&(nn.verbatimColor=(te=y.verbatimColor)!=null?te:y.color),nn.color=In}if(typeof y.backgroundColor=="string"){const In=(ce=a.backgroundColorMap((ae=y.backgroundColor)!=null?ae:y.verbatimBackgroundColor))!=null?ce:"none";In!==y.backgroundColor&&(nn.verbatimBackgroundColor=(we=y.verbatimBackgroundColor)!=null?we:y.backgroundColor),nn.backgroundColor=In}typeof y.fontFamily=="string"&&(nn.fontFamily=y.fontFamily),typeof y.series=="string"&&(nn.fontSeries=y.series),typeof y.fontSeries=="string"&&(nn.fontSeries=y.fontSeries.toLowerCase()),nn.fontSeries&&(nn.fontSeries=(ke={bold:"b",medium:"m",normal:"m"}[nn.fontSeries])!=null?ke:nn.fontSeries),typeof y.shape=="string"&&(nn.fontShape=y.shape),typeof y.fontShape=="string"&&(nn.fontShape=y.fontShape.toLowerCase()),nn.fontShape&&(nn.fontShape=(He={italic:"it",up:"n",upright:"n",normal:"n"}[nn.fontShape])!=null?He:nn.fontShape),y.variant&&(nn.variant=y.variant.toLowerCase()),y.variantStyle&&(nn.variantStyle=y.variantStyle.toLowerCase());const Sn=(qe=y.size)!=null?qe:y.fontSize;return typeof Sn=="number"?nn.fontSize=Math.max(1,Math.min(10,Sn)):typeof Sn=="string"&&(nn.fontSize=(It={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[Sn.toLowerCase()])!=null?It:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[Sn]),nn}function hp(a){let[y,b]=Zs(a.selection);if(y=f0(a,y,"backward"),b=f0(a,b,"forward"),y===b){const z=a.at(y);if(z.type==="leftright")return a.setSelection(a.offsetOf(z.firstChild)-1,b);if(z.type==="first"&&(z.parent.type==="leftright"||z.parent.type==="surd"))return a.setSelection(y-1,a.offsetOf(z.parent.lastChild)+1);a.setSelection(y-1,b)}else a.setSelection(y,b);return!0}function f0(a,y,b){var z,te,ae;let ce=a.at(y);if(!ce)return y;const we=b==="forward"?1:-1;if(ce.mode==="text"){for(;ce&&!(ce.mode!=="text"||!me.test(ce.value));)y+=we,ce=a.at(y);return b==="backward"?y-1:y}if(ce.mode==="latex"){if(/[a-zA-Z\*]/.test(ce.value))if(b==="backward")for(;ce&&ce.mode==="latex"&&ce.value!=="\\"&&/[a-zA-Z]/.test(ce.value);)y+=we,ce=a.at(y);else for(;ce&&ce.mode==="latex"&&/[a-zA-Z\*]/.test(ce.value);)y+=we,ce=a.at(y);else if(ce.value==="{"){if(b==="forward"){for(;ce&&ce.mode==="latex"&&ce.value!=="}";)y+=we,ce=a.at(y);return y}return y-1}else if(ce.value==="}"){if(b==="backward"){for(;ce&&ce.mode==="latex"&&ce.value!=="{";)y+=we,ce=a.at(y);return y-1}return y}return y-1}if(ce.mode==="math"){if(ce.isDigit()){for(;(z=a.at(y+we))!=null&&z.isDigit();)y+=we;return b==="backward"?y-1:y}if(ce.style.variant||ce.style.variantStyle){let ke=(te=a.at(y))==null?void 0:te.style;for(;ke&&ke.variant===ce.style.variant&&ke.variantStyle===ce.style.variantStyle;)ke=(ae=a.at(y+we))==null?void 0:ae.style,y+=we;return b==="backward"?y-1:y}return y}return y}rc({selectGroup:a=>{const y=hp(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Uc(a,"forward",{extend:!0}),extendSelectionBackward:a=>Uc(a,"backward",{extend:!0}),extendToNextWord:a=>wf(a,"forward",{extend:!0}),extendToPreviousWord:a=>wf(a,"backward",{extend:!0}),extendSelectionUpward:a=>Uc(a,"upward",{extend:!0}),extendSelectionDownward:a=>Uc(a,"downward",{extend:!0}),extendToNextBoundary:a=>wf(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>wf(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 qd=null,qf=0,Nh=class Dc{static start(y,b,z,te){var ae;Dc.element=y,(ae=Dc.controller)==null||ae.abort(),Dc.controller=new AbortController;const ce={signal:Dc.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",z,ce),y.addEventListener("pointerup",te,ce),y.addEventListener("pointercancel",te,ce),pp(b)&&(Dc.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",z,ce),window.addEventListener("blur",te,ce),window.addEventListener("mouseup",te,ce))}static stop(){var y;(y=Dc.controller)==null||y.abort(),Dc.controller=void 0,typeof Dc.pointerId=="number"&&(Dc.element.releasePointerCapture(Dc.pointerId),Dc.pointerId=void 0)}};function pp(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function h0(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const z=a;let te,ae=!1,ce=!1,we="none",ke=!1,He=!1;const qe=y.clientX,It=y.clientY,nn=Date.now(),Sn=z.field,In=setInterval(()=>{ke?Sn.scroll({top:0,left:Sn.scrollLeft-16}):He&&Sn.scroll({top:0,left:Sn.scrollLeft+16})},32);function Rr(){Nh.stop(),ae=!1,clearInterval(In),a.element.classList.remove("tracking"),y&&y.preventDefault()}function ia(bi){if(!z.hasFocus()){Rr();return}const ua=bi.clientX,Ti=bi.clientY,$a=pp(bi)&&bi.pointerType==="touch"?20:5;if(Date.now()<nn+500&&Math.abs(qe-ua)<$a&&Math.abs(It-Ti)<$a){bi.preventDefault(),bi.stopPropagation();return}const ko=Sn.getBoundingClientRect();He=ua>ko.right,ke=ua<ko.left;let mo=te;pp(bi)&&(bi.isPrimary||(mo=eh(z,bi.clientX,bi.clientY,{bias:0})));const Al=eh(z,ua,Ti,{bias:ua<=qe?ua===qe?0:-1:1});mo>=0&&Al>=0&&(z.model.extendSelectionTo(mo,Al),Ms(a)),ce&&hp(z.model)}qd&&Math.abs(qd.x-qe)<5&&Math.abs(qd.y-It)<5&&Date.now()<qd.time+500?(qf+=1,qd.time=nn):(qd={x:qe,y:It,time:nn},qf=1);const Nr=Sn.getBoundingClientRect();if(qe>=Nr.left&&qe<=Nr.right&&It>=Nr.top&&It<=Nr.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",te=eh(a,qe,It,{bias:0}),te>=0){if(a.element.classList.add("tracking"),y.shiftKey){const bi=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,te),Zp(a.model)||bi?we="all":we="selection"}else a.model.at(te).type==="placeholder"?(a.model.setSelection(te-1,te),we="selection"):((b=a.model.at(te).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(te,te+1),we="selection"):(a.model.position=te,Zp(a.model)?we="all":we="selection");a.defaultStyle={},y.detail===3||qf>2?(Rr(),(y.detail===3||qf===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},we="all")):ae||(ae=!0,Nh.start(Sn,y,ia,Rr),(y.detail===2||qf===2)&&(ce=!0,hp(a.model),we="all"))}a.hasFocus()||(we="none",a.focus({preventScroll:!0}))}else qd=null;a.stopCoalescingUndo(),we!=="none"&&(a.model.selectionIsCollapsed&&(we="all"),Ms(a)),y.preventDefault()}function tg(a,y,b){if(a>=b.left&&a<=b.right&&y>=b.top&&y<=b.bottom)return 0;const z=a-(b.left+b.right)/2,te=y-(b.top+b.bottom)/2;return z*z+te*te}function p0(a,y,b,z,te){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const ae=Kc(a,b);if(!ae)return[1/0,null];let ce=[1/0,null];if(b.hasChildren&&!b.captureSelection&&z>=ae.left&&z<=ae.right)for(const we of b.children){const ke=p0(a,y,we,z,te);ke[0]<=ce[0]&&(ce=ke)}return ce[1]||(ce=[tg(z,te,ae),b]),y.set(b.id,ce),ce}function ng(a,y,b){const[,z]=p0(a,new Map,a.model.root,y,b);return z}function eh(a,y,b,z){var te;const ae=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!ae)return 0;if(y>ae.right||b>ae.bottom+8)return a.model.lastOffset;if(y<ae.left||b<ae.top-8)return 0;z=z!=null?z:{},z.bias=(te=z.bias)!=null?te:0;let ce=ng(a,y,b);const we=[];let ke=ce;for(;ke;)we.unshift(ke),ke=ke.parent;for(const qe of we)if(qe.captureSelection){ce=qe;break}let He=a.model.offsetOf(ce);if(He<0)return-1;if(ce.leftSibling)if(z.bias===0&&ce.type!=="placeholder"){const qe=Kc(a,ce);qe&&y<(qe.left+qe.right)/2&&(He=a.model.offsetOf(ce.leftSibling))}else z.bias<0&&(He=a.model.offsetOf(ce.leftSibling));return He}var rg=class extends jo{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="",z="auto",te=typeof y!="string"?y.getData("application/json+mathlive"):"";if(te)try{const ae=JSON.parse(te);if(ae&&Array.isArray(ae)){a.snapshot();const ce=dc(ae),{model:we}=a;we.selectionIsCollapsed||we.deleteAtoms(Zs(we.selection));const ke=we.at(we.position);if(ke.parent instanceof Go){console.assert(ke.parentBranch!==void 0);const He=[];let qe=[];ce[0].type==="first"&&ce.shift(),ce[ce.length-1].type==="first"&&ce.pop();for(const In of ce)In.type==="first"&&qe.length>0?(He.push(qe),qe=[In]):qe.push(In);qe.length>0&&He.push(qe);let It=Number(ke.parentBranch[0]),nn=Number(ke.parentBranch[1]);const Sn=ke.parent.maxColumns;for(;ke.parent.colCount-nn<He.length&&ke.parent.colCount<Sn;)ke.parent.addColumn();ke.parent.addChildrenAfter(He[0],ke);for(let In=1;In<He.length;In++)nn++,nn>=Sn&&(nn=0,ke.parent.addRowAfter(It),It++),ke.parent.setCell(It,nn,He[In])}else ke.parent.addChildrenAfter(ce.filter(He=>He.type!=="first"),ke);return we.position=we.offsetOf(ce[ce.length-1]),we.contentDidChange({inputType:"insertFromPaste"}),Ms(a),!0}}catch(ae){}if(te=typeof y!="string"?y.getData("application/json"):"",te&&window.MathfieldElement.computeEngine)try{const ae=JSON.parse(te);if(typeof ae=="object"&&"latex"in ae&&ae.latex&&(b=ae.latex),!b){const ce=window.MathfieldElement.computeEngine.box(ae);ce&&!ce.has("Error")&&(b=ce.latex)}b||(z="latex")}catch(ae){}if(!b&&typeof y!="string"&&(b=y.getData("application/x-latex"),b&&(z="latex")),b||(b=typeof y=="string"?y:y.getData("text/plain")),b){let ae;return[ae,b]=Ec(b),z==="auto"&&ae&&(z="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:z})&&(a.startRecording(),a.snapshot("paste"),Ms(a)),a.startRecording(),!0}return!1}insert(a,y,b){var z,te;const ae=typeof y=="string"?y:(te=(z=window.MathfieldElement.computeEngine)==null?void 0:z.box(y).latex)!=null?te:"";if(!b.silenceNotifications&&!a.contentWillChange({data:ae,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:ce}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const we=a.silenceNotifications;a.silenceNotifications=!0;const ke={"?":"\\placeholder{}","@":"\\placeholder{}"};ke[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Zs(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 He=-1;ke[0]?ke["@"]=ke[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(He=ag(a),He>=0&&(ke["@"]=a.getValue(He,a.position,"latex"))),ke[0]||(ke[0]=ke["?"]);let qe=!1;const It=ua=>(qe=!0,ke[ua]);let[nn,Sn]=m0(a,y,It,b);if(!Sn)return!1;const In=Sn.length===1&&Sn[0].type==="genfrac";In&&He>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(ke["@"]=ke["?"],qe=!1,[nn,Sn]=m0(a,y,It,b)):He>=0&&a.deleteAtoms([He,a.position]);const{parent:Rr}=a.at(a.position),ia=Rr.hasEmptyBranch("body");if(In&&nn!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Rr instanceof se&&Rr.leftDelim==="("&&ia){const ua=Rr.parent,Ti=Rr.parentBranch;ua.removeChild(Rr),ua.setChildren(Sn,Ti)}const Nr=a.at(a.position);Nr.parent.addChildrenAfter(Sn,Nr),nn==="latex"&&typeof y=="string"&&(Rr==null?void 0:Rr.type)==="root"&&ia&&!qe&&(Rr.verbatimLatex=y),a.silenceNotifications=we;const bi=Sn[Sn.length-1];if(b.selectionMode==="placeholder"){const ua=Sn.flatMap(Ti=>[Ti,...Ti.children]).find(Ti=>Ti.type==="placeholder");if(ua){const Ti=a.offsetOf(ua);a.setSelection(Ti-1,Ti),a.announce("move")}else bi&&(a.position=a.offsetOf(bi))}else b.selectionMode==="before"||(b.selectionMode==="after"?bi&&(a.position=a.offsetOf(bi)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(bi)));return a.contentDidChange({data:ae,inputType:"insertText"}),a.silenceNotifications=ce,!0}};function m0(a,y,b,z){var te;let ae,ce=[];if(typeof y!="string"||z.format==="math-json"){const we=window.MathfieldElement.computeEngine;if(!we)return["math-json",[]];[ae,y]=["latex",we.box(y).latex],ce=un(y,{context:a.mathfield.context})}else typeof y=="string"&&z.format==="ascii-math"?([ae,y]=ud(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),ce=un(y,{context:a.mathfield.context}),ae!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&_h(ce)):(z.format==="auto"||(te=z.format)!=null&&te.startsWith("latex"))&&(z.format==="auto"&&([ae,y]=ud(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),z.format==="latex"&&([,y]=Ec(y)),ce=un(y,{context:a.mathfield.context,args:b}),z.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&_h(ce));return Dd(ce,z.style),[ae!=null?ae:"latex",ce]}function ig(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof se&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function _h(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof se&&b.leftDelim==="("){let z=0,te=0,ae=0;for(let ce=0;b.body[ce];ce++)b.body[ce].type==="genfrac"&&(z++,te=ce),ae++;ae===0&&z===1&&(a[y]=b.body[te])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){_h(y.branch(b));const z=ig(y.branch(b));z&&y.setChildren(z,b)}if(y instanceof Go)for(const b of y.cells)_h(b)}}}function ag(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 z=!1;if(y.type==="mclose"){const te=re[y.value];for(;!y.isFirstSibling&&!(y.type==="mopen"&&y.value===te);)y=y.leftSibling;y.isFirstSibling||(y=y.leftSibling),z=!0}else y.type==="leftright"&&(y=y.leftSibling,z=!0);if(z)for(;!y.isFirstSibling&&(y.isFunction||v0(y));)y=y.leftSibling;else{const te=[];for(;!y.isFirstSibling&&(v0(y)||te.length>0);)y.type==="mclose"&&te.unshift(y.value),y.type==="mopen"&&te.length>0&&y.value===re[te[0]]&&te.shift(),y=y.leftSibling}return b===y?-1:a.offsetOf(y)}function v0(a){return a.isDigit()?!0:a.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(a.type)?!a.isExtensibleSymbol:!1}new rg;var og=class extends jo{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"),Ms(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:z}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const te=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Zs(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const ae=lg(y,a.mathfield.context);if(Dd(ae,b.style),!ae)return!1;const ce=a.at(a.position),we=ce.parent.addChildrenAfter(ae,ce);return a.silenceNotifications=te,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(we)):we&&(a.position=a.offsetOf(we))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=z,!0}};function lg(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 "),un(a,{context:y,parseMode:"text"})}new og;function Gc(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var hs=4,Wu=20,Ws=2*(Wu+hs),Th=(a,y)=>`
|
|
|
<line x1="${a+Wu}" y1="${y+Wu}"
|
|
|
x2="${a>y?a+Wu:7*Wu+10*hs}"
|
|
|
y2="${a<y?y+Wu:7*Wu+10*hs}"/>
|
|
|
<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>`,g0=(a,y)=>`
|
|
|
<line x1="${a+Wu}" y1="${y+Wu}"
|
|
|
x2="${a>y?a+Wu:7*Wu+10*hs}"
|
|
|
y2="${a<y?y+Wu:7*Wu+10*hs}"/>
|
|
|
<svg id="minus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.33-3.33,3.33H10c-1.84,0-3.34-1.49-3.34-3.33s1.5-3.34,3.34-3.34h20c1.84,0,3.33,1.5,3.33,3.34Z"/>
|
|
|
</svg>`,Rh=(a,y,b)=>`
|
|
|
<svg id="arrow" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<g transform="rotate(${b})" transform-origin="20 20">
|
|
|
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
|
|
|
</g>
|
|
|
</svg>`,sg=`
|
|
|
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
viewBox=
|
|
|
"-2 -2 ${8*Wu+10*hs+5} ${8*Wu+10*hs+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${Ws+hs}"
|
|
|
height="${3*Ws}"
|
|
|
width="${Ws}"
|
|
|
rx="${Ws/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${Ws+hs}"
|
|
|
y="0"
|
|
|
height="${Ws}"
|
|
|
width="${3*Ws}"
|
|
|
rx="${Ws/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${Rh(2*(hs+Ws),2*hs+3*Ws,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${Rh(2*(hs+Ws),2*hs+Ws,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${Rh(2*hs+3*Ws,2*(hs+Ws),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${Rh(2*hs+Ws,2*(hs+Ws),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${Th(2*hs+Ws,hs)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${g0(2*hs+2*Ws,hs)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${Th(2*hs+3*Ws,hs)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${Th(hs,2*hs+Ws)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${g0(hs,2*hs+2*Ws)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${Th(hs,2*hs+3*Ws)}
|
|
|
</g>
|
|
|
</svg>`,ug=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>`,cg=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>`,y0=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>`,dg=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>`,fg=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>`,hg=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>`,pg=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>`,mg=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>`,mp={matrix:ug,pmatrix:cg,bmatrix:dg,Bmatrix:y0,vmatrix:fg,Vmatrix:hg},vp={cases:pg,rcases:mg,Bmatrix:y0};function vg(a){var y,b;const z=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!z)return;let te=0;z.forEach(In=>{(!te||In.length>te)&&(te=In.length)});let ae=document.getElementById("mathlive-environment-popover");ae||(ae=gh("mathlive-environment-popover"),yu("environment-popover"),yu("core"),ae.setAttribute("aria-hidden","true"));let ce;const we=ae.querySelector(".MLEP__environment-controls");we?ce=we:(ce=document.createElement("div"),ae.innerHTML="",ae.appendChild(ce)),ce.className="MLEP__environment-controls",ce.style.display="flex",ce.style.width="100%",ce.style.height="100%",ce.style.boxSizing="border-box",ce.innerHTML=sg;let ke=[],He="";const qe=a.model.parentEnvironment.environmentName;if(ou(qe)){const In=yg(qe);He=mp[In]("active");const Rr=mp,{[In]:ia}=Rr,Nr=et(Rr,[Pe(In)]);ke=Object.values(Nr).map(bi=>bi("inactive"))}else if(lu(qe)){const In=bg(qe);He=vp[In]("active");const Rr=vp,{[In]:ia}=Rr,Nr=et(Rr,[Pe(In)]);ke=Object.values(Nr).map(bi=>bi("inactive"))}else Ss(qe)&&(He=mp.matrix("active"),ke=Object.values(vp).map(In=>In("inactive")));const It=document.createElement("div");It.className="MLEP__environment-delimiter-controls",It.style.display="flex",It.style.flexDirection="column",It.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${He}
|
|
|
${ke.join("")}
|
|
|
</div>`,He&&ce.appendChild(It),ce.querySelectorAll("[data-command]").forEach(In=>{const Rr=In.dataset.command;let ia=Rr;try{ia=JSON.parse(Rr)}catch(Nr){}In.addEventListener("mousedown",Nr=>Nr.preventDefault()),ia&&In.addEventListener("click",()=>a.executeCommand(ia))});const Sn=(b=a.field)==null?void 0:b.getBoundingClientRect();Sn&&(ae.style.top=`${window.scrollY+(Sn.top-ae.clientHeight-15)}px`,ae.style.left=`${Sn.left+20}px`,ae.classList.add("is-visible"))}function gp(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function gg(){document.getElementById("mathlive-environment-popover")&&($h("mathlive-environment-popover"),x("environment-popover"),x("core"))}function zh(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&vs(b.environmentName)){const z=a.options.environmentPopoverPolicy;y=z==="auto"||z==="on"}}y?vg(a):gp()}function yg(a){return a.replace("*","")}function bg(a){return a==="dcases"?"cases":a}function b0(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function x0(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function yp(a,y,b,z){return b==="middle"?a-y/2:b==="start"&&z==="rtl"||b==="end"&&z==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function xg(a,y,b,z){return b==="middle"?a-y/2:b==="start"&&z==="ltr"||b==="end"&&z==="rtl"||b==="top"||b==="right"?a:a-y}function Eg(a,y){var b,z,te;const ae=(b=b0(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 ce=a.getBoundingClientRect(),we=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let ke=Math.min(we,(z=y.height)!=null?z:ce.height),He=yp(y.location.y,ke,y.verticalPos,ae);He+ke>window.innerHeight-8&&(y.alternateLocation?(He=yp(y.alternateLocation.y,ke,y.verticalPos,ae),He+ke>window.innerHeight-8&&(He=void 0)):He=void 0),Number.isFinite(He)||(He=Math.max(8,window.innerHeight-8-ke),8+ke>window.innerHeight-8&&(a.style.bottom="8px")),ke=Math.min(He+ke,window.innerHeight-8)-He;const qe=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let It=Math.min(qe,(te=y.width)!=null?te:ce.width),nn=yp(y.location.x,It,y.horizontalPos,ae);nn+It>window.innerWidth-8&&(y.alternateLocation?(nn=xg(y.alternateLocation.x,It,y.verticalPos,ae),nn+It>window.innerWidth-8&&(nn=void 0)):nn=void 0),Number.isFinite(nn)||(nn=Math.max(8,window.innerWidth-8-It),8+It>window.innerWidth-8&&(a.style.right="8px")),It=Math.min(nn+It,window.innerWidth-8)-nn,ae==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-nn-It).toString()}px`:a.style.left=`${Math.ceil(nn).toString()}px`,a.style.top=`${Math.ceil(He).toString()}px`,ke!==ce.height&&(a.style.height=`${Math.ceil(ke).toString()}px`),It!==ce.width&&(a.style.width=`${Math.ceil(It).toString()}px`)}function Cg(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function Sf(a){return"submenu"in a}function Qc(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function bp(a){return"type"in a&&a.type==="divider"}function xp(a){return"type"in a&&a.type==="heading"}var E0={};function Ep(a){let y=E0[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 z=document.createElement("template");z.innerHTML=b,E0[a]=z,y=z}}if(y){if("content"in y)return y.content.cloneNode(!0);const b=document.createElement("svg");return b.innerHTML=y.innerHTML,b}}var C0=80,w0=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,Sf(a)?(this.type="submenu",this.submenu=new S0(a.submenu,{parentMenu:y,submenuClass:a.submenuClass,columnCount:a.columnCount})):this.type=(b=a.type)!=null?b:"command",this.hasCheck=Qc(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,z;const te=this._declaration;if(bp(te)){this.enabled=!1,this.checked=!1;return}xp(te)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Qc(te)&&(this.checked=Qc(te)&&((y=Af(te.checked,a))!=null?y:!1)),(Qc(te)||Sf(te))&&(this.enabled=(b=Af(te.enabled,a))!=null?b:!0,this.visible=(z=Af(te.visible,a))!=null?z:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Qc(te)||xp(te)||Sf(te))&&(this.label=Af(te.label,a),this.tooltip=Af(te.tooltip,a),this.ariaLabel=Af(te.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(Ep("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Ep("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),Qc(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=Xh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Ep("trailing-chevron"))}get element(){if(this._element)return this._element;if(bp(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,(Qc(this._declaration)||xp(this._declaration)||Sf(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(!Qc(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()},C0)},C0)}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(),z=b0(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:x0(b,"trailing",z),y:b.top-4},alternateLocation:{x:x0(b,"leading",z),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 z=a.clientX-y.clientX;if(wg(z,y.clientY-a.clientY,b)<=.2)return!1;let ae="right";if(this.submenu.element){const ce=this.submenu.element.getBoundingClientRect(),we=this.element.getBoundingClientRect();ce.left<we.left+we.width/2&&(ae="left")}return ae==="right"?z>0:z<0}};function wg(a,y,b){return Math.hypot(a,y)/b}function Af(a,y){return a===void 0||typeof a!="function"?a:(y!=null||(y={alt:!1,control:!1,shift:!1,meta:!1}),a(y))}var S0=class Of{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var z,te;this.parentMenu=(z=b==null?void 0:b.parentMenu)!=null?z:null,this._submenuClass=b==null?void 0:b.submenuClass,this.columnCount=(te=b==null?void 0:b.columnCount)!=null?te: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(z=>z.onCreate?z.onCreate(z,this):new w0(z,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,z,te;this._menuItems.forEach(He=>He.updateState(y));const ae=this.hasCheck;this.hasCheck=this._menuItems.some(He=>He.visible&&He.hasCheck),this.hasCheck!==ae&&this._menuItems.forEach(He=>He.updateState(y));let ce,we=0;for(const He of this._menuItems)He.type==="heading"?(ce&&we===0&&(ce.visible=!1),ce=He,we=0):He.type==="divider"&&ce?(ce.visible=we>0,ce=void 0,we=0):ce&&He.visible&&(we+=1);ce&&(ce.visible=we>0);let ke=!0;for(const He of this._menuItems)He.type==="divider"?(He.visible=!ke,ke=!0):He.visible&&(ke=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((z=this.activeMenuItem)!=null&&z.enabled)&&((te=this.activeMenuItem)==null?void 0:te.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:z}of this._menuItems)b&&z&&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,z,te,ae;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const ce=this.activeMenuItem;ce.active=!1,(b=ce.submenu)==null||b.hide()}if(!((z=y==null?void 0:y.visible)==null||z)){this._activeMenuItem=null;return}this._activeMenuItem=y,y&&(y.active=!0)}y?(te=y.element)==null||te.focus({preventScroll:!0}):(ae=this._element)==null||ae.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const z=this._menuItems;for(;!b&&y<=z.length-1;){const te=z[y];b=te.type!=="divider"&&te.visible&&te.enabled,y+=1}return b?z[y-1]:null}get lastMenuItem(){this.updateIfDirty();const y=this._menuItems;let b=y.length-1,z=!1;for(;!z&&b>=0;){const te=y[b];z=te.type!=="divider"&&te.visible&&te.enabled,b-=1}return z?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),z=this._menuItems.indexOf(this.lastMenuItem);let te=this._menuItems.indexOf(this._activeMenuItem),ae=1;for(;te>=b&&te<=z;){te+=y>0?1:-1;const ce=this._menuItems[te];if(!ce)break;if(ce.visible&&ce.enabled){if(ae===Math.abs(y))return this._menuItems[te];ae+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const z=this._menuItems.filter(te=>te.visible&&te.enabled).indexOf(y);return z<0?-1:z%this.columnCount}static get collator(){return Of._collator||(Of._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Of._collator}findMenuItem(y){var b;this.updateIfDirty();const z=this._menuItems.filter(we=>we.type!=="divider"&&we.visible&&we.enabled);if(z.length===0)return null;const te=Math.max(...z.map(we=>we.label.length))-y.length;if(te<0)return null;let ae=null,ce=0;for(;ce<te&&!ae;)ae=(b=z.find(we=>Of.collator.compare(y,we.label.substring(ce,y.length))===0))!=null?b:null,ce++;return ae}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),Dt()&&(this.element.popover="manual",this.element.showPopover()),y.location&&Eg(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,z,te,ae;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),Dt()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(z=(b=this.parentMenu)==null?void 0:b.element)==null||z.focus(),(ae=(te=this._element)==null?void 0:te.parentNode)==null||ae.removeChild(this._element)}set openSubmenu(y){var b,z,te,ae;const ce=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((z=this.activeMenuItem.element)==null||z.setAttribute("aria-expanded",ce.toString())),(ae=(te=this.activeMenuItem)==null?void 0:te.element)==null||ae.classList.toggle("is-submenu-open",ce),this.isSubmenuOpen=ce}},A0=class Bm extends S0{constructor(y,b){var z;super(y),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(z=b==null?void 0:b.host)!=null?z:null,this.isDynamic=y.some(B0),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){Km(this._modifiers,y)||(this._modifiers=y,this.dirty=!0)}get activeSubmenu(){let y=this;for(;y.isSubmenuOpen;)y=y.activeMenuItem.submenu;return y}set dirty(y){this._updating||(console.assert(y===!0),this._dirty!==y&&(this._dirty=!0,y&&setTimeout(()=>{this.updateState(this.modifiers),this.updateElement()})))}updateState(y){this._updating=!0,this.modifiers=y!=null?y:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(y){this.isDynamic&&(this.modifiers=Vd(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,z,te;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Vd(y));let ae=!0;const ce=this.activeSubmenu,we=ce.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":we==null||we.select(Vd(y));break;case"ArrowRight":if((we==null?void 0:we.type)==="submenu")we.select(Vd(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!we)ce.activeMenuItem=ce.firstMenuItem;else{const ke=(b=ce.getMenuItemColumn(we))!=null?b:-1;if(ke>=0&&ke<((z=ce.columnCount)!=null?z:1)-1){const He=ce.nextMenuItem(1);He&&(ce.activeMenuItem=He)}}break;case"ArrowLeft":if(ce===this.rootMenu)we||(ce.activeMenuItem=ce.firstMenuItem);else if((we&&(te=ce.getMenuItemColumn(we))!=null?te:-1)<=0||!we){ce.hide();const He=ce.parentMenu.activeMenuItem;if(He){const{element:qe}=He;qe==null||qe.focus(),qe==null||qe.classList.remove("is-submenu-open")}}else{const He=ce.nextMenuItem(-1);He&&(ce.activeMenuItem=He)}break;case"ArrowDown":ce.activeMenuItem=ce.nextMenuItem(ce.columnCount);break;case"ArrowUp":ce.activeMenuItem=ce.nextMenuItem(-ce.columnCount);break;case"Home":case"PageUp":ce.activeMenuItem=ce.firstMenuItem;break;case"End":case"PageDown":ce.activeMenuItem=ce.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const ke=ce.findMenuItem(this.typingBuffer);ke&&(ce.activeMenuItem=ke),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(ph(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const ke=ce.findMenuItem(this.typingBuffer);ke&&(ce.activeMenuItem=ke),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else ae=!1}ae&&(y.preventDefault(),y.stopPropagation())}handleEvent(y){if(y.type==="keydown")this.handleKeydownEvent(y);else if(y.type==="keyup")this.handleKeyupEvent(y);else if(y.type==="pointermove")this.lastMoveEvent=y;else if(y.type==="pointerup"&&y.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(y.type==="contextmenu"){y.preventDefault(),y.stopPropagation();return}super.handleEvent(y)}dispatchEvent(y){return this._host?this._host.dispatchEvent(y):!0}get scrim(){return jc.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),jc.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),jc.state==="open"&&jc.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(De(be({},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,jc.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(y){this.cancelDelayedOperation();const b=Bm.SUBMENU_DELAY;if(b<=0){y();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,y()},b)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};A0.SUBMENU_DELAY=120;var Sg=A0;function B0(a){return bp(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Qc(a)||Sf(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Qc(a)&&typeof a.checked=="function"?!0:Sf(a)?a.submenu.some(B0):!1}var Zh=class{};Zh.DELAY=300,Zh.MAX_DISTANCE=10;function Ag(a){return new Promise((y,b)=>{const z=hh(a);z||y(!1);let te=z;const ae=setTimeout(()=>{ce.abort(),y(Cg(te,z)<Zh.MAX_DISTANCE)},Zh.DELAY),ce=new AbortController,we=ce.signal;for(const ke of["pointermove","pointerup","pointercancel"])window.addEventListener(ke,He=>{if(He.type==="pointerup"||He.type==="pointercancel")clearTimeout(ae),ce.abort(),y(!1);else if(He.type==="pointermove"){const qe=hh(He);qe&&(te=qe)}},{passive:!0,signal:we})})}function D0(a,y,b){return Fd(this,null,function*(){if(a.type==="contextmenu"){const z=a;if(b.show({target:y,location:hh(z),modifiers:Vd(z)}))return a.preventDefault(),a.stopPropagation(),!0}if(a.type==="keydown"){const z=a;if(z.code==="ContextMenu"||z.code==="F10"&&z.shiftKey){const te=y==null?void 0:y.getBoundingClientRect();if(te&&b.show({target:y,location:{x:Math.ceil(te.left+te.width/2),y:Math.ceil(te.top+te.height/2)},modifiers:Vd(z)}))return a.preventDefault(),a.stopPropagation(),!0}}if(a.type==="pointerdown"&&a.pointerType!=="mouse"&&a.button===0){let z=a.target;for(;z&&y!==z;)z=z.parentNode;if(!z||!b.visible)return!1;const te=hh(a);if(yield Ag(a))return b.state!=="closed"?!1:(b.show({target:y,location:te}),!0)}return!1})}var M0={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};kt(Object.keys(M0),"{body:auto}",{createAtom:a=>new ee(De(be({},a),{body:Ct(a.args[0]),accentChar:M0[a.command.slice(1)]}))}),kt(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=ht(Ct(a.args[0]));return new ee(De(be({},a),{body:Ct(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),kt(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new ee(De(be({},a),{body:Ct(a.args[0]),svgAccent:"overarc"}))}),kt(["underarc","underparen"],"{body:auto}",{createAtom:a=>new es(De(be({},a),{body:Ct(a.args[0]),svgBelow:"underarc"}))}),kt("utilde","{body:auto}",{createAtom:a=>{const y=Ct(a.args[0]),b=ht(y),z="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new es(De(be({},a),{body:y,svgBelow:z,boxType:Yu(y)}))}}),kt("^","{:string}",{createAtom:a=>{var y;return new oi(De(be({},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:"^"}))}}),kt("`","{:string}",{createAtom:a=>{var y;return new oi(De(be({},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:"`"}))}}),kt("'","{:string}",{createAtom:a=>{var y;return new oi(De(be({},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:"'"}))}}),kt('"',"{:string}",{createAtom:a=>{var y,b;return new oi(De(be({},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]:'"'}))}}),kt(".","{:string}",{createAtom:a=>{var y,b;return new oi(De(be({},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]:"."}))}}),kt("=","{:string}",{createAtom:a=>{var y,b;return new oi(De(be({},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]:"="}))}}),kt("~","{:string}",{createAtom:a=>{var y;return new oi(De(be({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"}))}}),kt("c","{:string}",{createAtom:a=>{var y;return new oi(De(be({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),kt("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const z=a.args,te={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(y=a.style)!=null?y:{}};if(z[1]){const ce=z[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const we of ce){const ke=we.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(ke)te.strokeWidth=ke[1],te.strokeStyle=ke[2],te.strokeColor=ke[3];else{const He=we.match(/\s*([a-z]*)\s*=\s*"(.*)"/);He&&(He[1]==="mathbackground"?te.backgroundcolor=He[2]:He[1]==="mathcolor"?te.strokeColor=He[2]:He[1]==="padding"?te.padding=He[2]:He[1]==="shadow"&&(te.shadow=He[2]))}}te.strokeStyle==="dashed"?te.svgStrokeStyle="5,5":te.strokeStyle==="dotted"&&(te.svgStrokeStyle="1,5")}te.borderStyle=`${te.strokeWidth} ${te.strokeStyle} ${te.strokeColor}`;const ae={};return((b=z[0])!=null?b:"").split(/[, ]/).filter(ce=>ce.length>0).forEach(ce=>{ae[ce.toLowerCase()]=!0}),new ha(a.command,Ct(z[2]),ae,te)}}),kt("cancel","{body:auto}",{createAtom:a=>{var y;return new ha(a.command,Ct(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:{}})}}),kt("bcancel","{body:auto}",{createAtom:a=>{var y;return new ha(a.command,Ct(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:{}})}}),kt("xcancel","{body:auto}",{createAtom:a=>{var y;return new ha(a.command,Ct(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:{}})}}),kt(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new es(De(be({},a),{body:Ct((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),kt("overbrace","{:auto}",{createAtom:a=>new es(De(be({},a),{body:Ct(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),kt(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new es(De(be({},a),{body:Ct(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),kt(["underbrace"],"{:auto}",{createAtom:a=>new es(De(be({},a),{body:Ct(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),kt(["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,z,te,ae;return new es(De(be({},a),{svgBody:a.command.slice(1),above:((b=Ct((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:Ct((z=a.args)==null?void 0:z[1]),below:(ae=Ct((te=a.args)==null?void 0:te[0]))!=null?ae:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(a,y)=>a.command+(a.hasEmptyBranch("below")?"":`[${a.belowToLatex(y)}]`)+`{${a.aboveToLatex(y)}}${a.supsubToLatex(y)}`}),kt(["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 Ku(a.command.slice(1),De(be({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),kt(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new Ku({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],De(be({},a),{limits:"over-under",variant:"main"}))}),kt(["lim","mod"],"",{ifMode:"math",createAtom:a=>new Ku(a.command.slice(1),De(be({},a),{limits:"over-under",variant:"main"}))}),kt(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new Ku(a.command.slice(1),De(be({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),kt(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new oi(De(be({},a),{body:Ct(a.args[0])})),serialize:(a,y)=>`\\ang{${a.bodyToLatex(y)}}`,render:(a,y)=>{const b=a.createBox(y),z=b.caret;b.caret=void 0;const te=new ta("\xB0",{style:De(be({},a.style),{variant:"normal",variantStyle:"up"})});return new ta([b,te],{type:"inner",isSelected:a.isSelected,caret:z})}}),kt("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new Lu(De(be({},a),{body:Ct(a.args[1]),index:a.args[0]?Ct(a.args[0]):void 0}))}),kt(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=be({},a),b=a.command,z=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 Uo(z[0]?Ct(z[0]):[new Mo],z[1]?Ct(z[1]):[new Mo],y)},serialize:(a,y)=>{const b=a.aboveToLatex(y),z=a.belowToLatex(y);return/^[0-9]$/.test(b)&&/^[0-9]$/.test(z)?`${a.command}${b}${z}`:Kl(a.command,b,z)}}),kt(["brace","brack"],"",{infix:!0,createAtom:a=>new Uo(Ct(a.args[0]),Ct(a.args[1]),De(be({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>el([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),kt(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const z=a.args;return a.command==="\\choose"&&(y="(",b=")"),new Uo(Ct(z[0]),Ct(z[1]),De(be({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>el([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),kt(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:a=>{var y,b;const z=a.args;return new Uo(Ct(z[0]),Ct(z[1]),De(be({},a),{leftDelim:(y=z[2])!=null?y:".",rightDelim:(b=z[3])!=null?b:".",hasBarLine:!1}))},serialize:(a,y)=>`${a.aboveToLatex(y)} ${a.command}${a.leftDelim}${a.rightDelim}${a.belowToLatex(y)}`}),kt("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new Uo(Ct(a.args[0]),Ct(a.args[1]),De(be({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),kt(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new Sl({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)],De(be({},a),{limits:"auto",variant:"main"}))}),kt("smallint","",{ifMode:"math",createAtom:a=>new Ku("\u222B",De(be({},a),{limits:"adjacent",variant:"main"}))});var k0={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"};kt(Object.keys(k0),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=k0[y.slice(1)];return new Sl(b,De(be({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),kt(["Re","Im"],"",{ifMode:"math",createAtom:a=>new Ku({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],De(be({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),kt("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new ra(De(be({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),kt("the","{:value}",{createAtom:a=>new oi(De(be({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const z=new vl({parent:y},a.style);let te="";a.isSelected&&(te+=" ML__selected");const ae=z.evaluate(a.args[0]);return new ta(((b=us(ae))!=null?b:"").split("").map(ce=>new ta(ce,{type:"ord",classes:te,mode:a.mode,isSelected:a.isSelected,style:be({variant:"main"},a.style)})),{type:"lift",style:a.style,caret:a.caret,isSelected:a.isSelected,classes:te}).wrap(z)},serialize:a=>{var y;return`\\the${(y=us(a.args[0]))!=null?y:"\\relax"}`}}),kt("mathtip","{:auto}{:math}",{createAtom:a=>new nc(De(be({},a),{body:Ct(a.args[0]),tooltip:Ct(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${oi.serialize([a.tooltip],De(be({},y),{defaultMode:"math"}))}}`}),kt("texttip","{:auto}{:text}",{createAtom:a=>new nc(De(be({},a),{body:Ct(a.args[0]),tooltip:Ct(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${oi.serialize([a.tooltip],De(be({},y),{defaultMode:"text"}))}}`}),kt("error","{:math}",{createAtom:a=>new oi(De(be({},a),{body:Ct(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),kt("ensuremath","{:math}",{createAtom:a=>new oi(De(be({},a),{body:Ct(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(De(be({},y),{defaultMode:"math"}))}}`}),kt("color","{:value}",{applyStyle:(a,y,b)=>{var z,te;return{verbatimColor:(z=us(y[0]))!=null?z:void 0,color:b.toColor((te=y[0])!=null?te:{string:"red"})}}}),kt("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var z,te;return{verbatimColor:(z=us(y[0]))!=null?z:void 0,color:b.toColor((te=y[0])!=null?te:{string:"red"})}}}),kt("boxed","{content:math}",{createAtom:a=>new As(De(be({},a),{body:Ct(a.args[0]),framecolor:{string:"black"}}))}),kt("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var z,te;return{verbatimBackgroundColor:(z=us(y[0]))!=null?z:void 0,backgroundColor:b.toBackgroundColor((te=y[0])!=null?te:{string:"yellow"})}}}),kt("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new As(De(be({},a),{body:Ct(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,z;return y.skipStyles?a.bodyToLatex(De(be({},y),{defaultMode:"text"})):Kl(a.command,(b=us(a.framecolor))!=null?b:"",(z=us(a.backgroundcolor))!=null?z:"",a.bodyToLatex(De(be({},y),{defaultMode:"text"})))}}),kt("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],z=Ct(a.args[1]);return b?new As(De(be({},a),{body:z,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new As(De(be({},a),{body:z}))},serialize:(a,y)=>{var b,z;if(y.skipStyles)return a.bodyToLatex(y);let te=a.command;if(Number.isFinite(a.padding)||a.border!==void 0||a.backgroundcolor!==void 0){const ae=[];a.padding&&ae.push((b=us(a.padding))!=null?b:""),a.border&&ae.push(`border: ${a.border}`),a.backgroundcolor&&ae.push((z=us(a.backgroundcolor))!=null?z:""),te+=`[${ae.join(",")}]`}return Kl(te,a.bodyToLatex(y))}}),kt(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new oi(De(be({},a),{body:Ct(a.args[0])})),render:(a,y)=>{const b=new vl({parent:y,mathstyle:a.command.slice(1)},a.style),z=oi.createBox(b,a.body,{type:"lift"});return a.caret&&(z.caret=a.caret),a.bind(y,z)},serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{${el([a.command,a.bodyToLatex(y)])}}`}),kt(["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]})}),kt("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),kt("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),kt("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),kt("selectfont","",{ifMode:"text",applyStyle:()=>({})}),kt("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),kt(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new oi(De(be({},a),{body:Ct(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),kt("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),kt("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),kt("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),kt("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),kt("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),kt("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),kt("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),kt("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),kt("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),kt("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),kt("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),kt("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),kt("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),kt("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),kt("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),kt("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),kt("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),kt("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),kt("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),kt("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),kt("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),kt("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),kt("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),kt("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),kt("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),kt("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),kt("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),kt(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),kt(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),kt("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),kt("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),kt("mbox","{:text}",{ifMode:"math",createAtom:a=>new oi(De(be({},a),{type:"mord",body:Ct(a.args[0]),mode:"math"})),serialize:(a,y)=>Kl("\\mbox",a.bodyToLatex(De(be({},y),{defaultMode:"text"})))}),kt("text","{:text}",{ifMode:"math",applyMode:"text"}),kt(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new oi(De(be({},a),{body:Ct(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:""})}}),kt(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new oi(De(be({},a),{body:Ct(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 z=a.createBox(y);return z.cssId=(b=a.args[0])!=null?b:"",z}}),kt("htmlData","{data:string}{content:auto}",{createAtom:a=>new oi(De(be({},a),{body:Ct(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 z=a.createBox(y);return z.htmlData=(b=a.args[0])!=null?b:"",z}}),kt(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new oi(De(be({},a),{body:Ct(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 z=a.createBox(y);return z.htmlStyle=(b=a.args[0])!=null?b:"",z}}),kt("em","{:rest}",{createAtom:a=>new oi(De(be({},a),{body:Ct(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"})}),kt("emph","{:auto}",{createAtom:a=>new oi(De(be({},a),{body:Ct(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 F0={"\\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}};kt(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new fa(De(be({},a),{delim:(y=a.args[0])!=null?y:".",size:F0[a.command].size,delimType:F0[a.command].mclass}))}}),kt(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new Su(De(be({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),kt(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new Su(De(be({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),kt("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new oi(a),render:(a,y)=>{let b=0;const z=y.mathstyle.id;(z===bc||z===Fu)&&(b=1),(z===zu||z===Is)&&(b=2),(z===Xs||z===Ds)&&(b=3);const te=Ct(a.args[b]);return oi.createBox(y,te)},serialize:(a,y)=>`\\mathchoice{${oi.serialize(a.args[0],y)}}{${oi.serialize(a.args[1],y)}}{${oi.serialize(a.args[2],y)}}{${oi.serialize(a.args[3],y)}}`}),kt("mathop","{:auto}",{createAtom:a=>new oi(De(be({},a),{type:"mop",body:Ct(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let z=oi.createBox(y,a.body);if(a.superscript||a.subscript){const te=(b=a.subsupPlacement)!=null?b:"auto";z=te==="over-under"||te==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:z}):a.attachSupsub(y,{base:z})}return new ta(a.bind(y,z),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Kl(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)),el(b)}}),kt(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new oi(De(be({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:Ct(a.args[0])}))}),kt(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=Ct(a.args[0]).map(b=>{var z;return b.type!=="first"&&(b.type="mord",b.value=(z={"\u2217":"*","\u2212":"-"}[b.value])!=null?z:b.value,b.isFunction=!1,!b.style.variant&&!b.style.variantStyle&&(b.style.variant="main",b.style.variantStyle="up")),b});return new oi(De(be({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let z=oi.createBox(y,a.body);if(a.superscript||a.subscript){const te=(b=a.subsupPlacement)!=null?b:"auto";z=te==="over-under"||te==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:z}):a.attachSupsub(y,{base:z})}return a.caret&&(z.caret=a.caret),new ta(a.bind(y,z),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Kl(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)),el(b)}}),kt(["char","unicode"],"{charcode:value}",{createAtom:a=>new oi(De(be({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${us((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)}}),kt("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new oi(a),render:(a,y)=>{var b,z,te;const ae=new vl({parent:y,mathstyle:"textstyle"},a.style),ce=ae.toEm((b=a.args[0])!=null?b:{dimension:0}),we=ae.toEm((z=a.args[1])!=null?z:{dimension:10}),ke=ae.toEm((te=a.args[2])!=null?te:{dimension:10}),He=new ta(null,{classes:"rule",type:"ord"});return He.width=we,He.height=ke+ce,He.depth=-ce,He.setStyle("border-right-width",we,"em"),He.setStyle("border-top-width",ke,"em"),He.setStyle("border-color",a.style.color),He.setStyle("vertical-align",ce,"em"),a.isSelected&&He.setStyle("opacity","50%"),a.bind(ae,He),a.caret&&(He.caret=a.caret),He.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${us(a.args[0])}]`:""}{${us(a.args[1])}}{${us(a.args[2])}}`}),kt(["overline","underline"],"{:auto}",{createAtom:a=>new oi(De(be({},a),{body:Ct(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),z=new vl({parent:y,mathstyle:"cramp"},a.style),te=oi.createBox(z,a.body);if(!te)return null;const ae=z.metrics.defaultRuleThickness/z.scalingFactor,ce=new ta(null,{classes:b+"-line"});ce.height=ae,ce.maxFontSize=ae*1.125*z.scalingFactor;let we;return b==="overline"?we=new kl({shift:0,children:[{box:te},3*ae,{box:ce},ae]}):we=new kl({top:te.height,children:[ae,{box:ce},3*ae,{box:te}]}),a.caret&&(we.caret=a.caret),new ta(we,{classes:b,type:"ignore"})}}),kt("overset","{:auto}{base:auto}",{createAtom:a=>{const y=Ct(a.args[1]);return new es(De(be({},a),{above:Ct(a.args[0]),body:y,skipBoundary:!1,boxType:Yu(y)}))},serialize:(a,y)=>Kl(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),kt("underset","{:auto}{base:auto}",{createAtom:a=>{const y=Ct(a.args[1]);return new es(De(be({},a),{below:Ct(a.args[0]),body:y,skipBoundary:!1,boxType:Yu(y)}))},serialize:(a,y)=>Kl(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),kt("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=Ct(a.args[2]);return new es(De(be({},a),{above:Ct(a.args[0]),below:Ct(a.args[1]),body:y,skipBoundary:!1,boxType:Yu(y)}))},serialize:(a,y)=>Kl(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),kt(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new es(De(be({},a),{body:Ct(a.args[2]),above:Ct(a.args[1]),below:Ct(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>Kl(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),kt("smash","[:string]{:auto}",{createAtom:a=>{var y,b,z,te;return new Ou(De(be({},a),{body:Ct(a.args[1]),smashHeight:(b=(y=a.args[0])==null?void 0:y.includes("t"))!=null?b:!0,smashDepth:(te=(z=a.args[0])==null?void 0:z.includes("b"))!=null?te:!0}))}}),kt(["vphantom"],"{:auto}",{createAtom:a=>new Ou(De(be({},a),{body:Ct(a.args[0]),isInvisible:!0,smashWidth:!0}))}),kt(["hphantom"],"{:auto}",{createAtom:a=>new Ou(De(be({},a),{body:Ct(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),kt(["phantom"],"{:auto}",{createAtom:a=>new Ou(De(be({},a),{body:Ct(a.args[0]),isInvisible:!0}))}),kt("not","{:math}",{createAtom:a=>{const y=Ct(a.args[0]);return y.length===0?new oi(De(be({},a),{type:"mrel",value:"\uE020"})):new oi(De(be({},a),{body:[new ql(De(be({},a),{body:"\uE020",align:"right"})),...y],captureSelection:!0}))},serialize:(a,y)=>{const b=a.args[0],z=b&&typeof b=="object"&&"group"in b;return a.value!=="\uE020"?z?`\\not{${oi.serialize(b.group,y)}}`:`\\not${oi.serialize(b,y)}`:z?"\\not{}":"\\not"},render:(a,y)=>{if(a.value)return a.createBox(y);const z=a.args[0]&&typeof a.args[0]=="object"&&"group"in a.args[0]?"ord":Yu(Ct(a.args[0])),te=oi.createBox(y,a.body,{type:z});return a.caret&&(te.caret=a.caret),a.bind(y,te)}}),kt(["ne","neq"],"",{createAtom:a=>new oi(De(be({},a),{type:"mrel",body:[new ql(De(be({},a),{body:"\uE020",align:"right",boxType:"rel"})),new oi(De(be({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),kt("rlap","{:auto}",{createAtom:a=>new ql(De(be({},a),{body:Ct(a.args[0]),align:"right"}))}),kt("llap","{:auto}",{createAtom:a=>new ql(De(be({},a),{body:Ct(a.args[0]),align:"left"}))}),kt("mathrlap","{:math}",{createAtom:a=>new ql(De(be({},a),{body:Ct(a.args[0]),align:"left"}))}),kt("mathllap","{:math}",{createAtom:a=>new ql(De(be({},a),{body:Ct(a.args[0]),align:"left"}))}),kt("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new As(De(be({},a),{body:Ct(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Kl("\\raisebox",(b=us(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),kt("raise","{:value}{:auto}",{createAtom:a=>{var y;return new As(De(be({},a),{body:Ct(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Kl("\\raise",(b=us(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),kt("lower","{:value}{:auto}",{createAtom:a=>{var y;return new As(De(be({},a),{body:Ct(a.args[1]),padding:{dimension:0},offset:(y=gu(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,z;return Kl("\\lower",(z=us(gu((b=a.offset)!=null?b:{dimension:0},-1)))!=null?z:"0pt",a.bodyToLatex(y))}}),Ne("0123456789/@.?!"),At(65,90),At(97,122),Ne([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Ne([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Ne([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),Ne([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),Ne([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),Ne([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),Ne([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),Ne([["+",43],["-",8722],["\u2212",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),Ne([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),Ne([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),Ne([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),Ne([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Ne([["\\wp",8472],["\\aleph",8501]]),Ne([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),Ne([["\\ ",160],["~",160]],"space"),kt(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new Su(a)}),kt("space","",{createAtom:a=>new Su(a)}),Ne([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Ne([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Ne([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var P0="<mo>⁡</mo>",Hh="<mo>⁢</mo>";function Kh(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function ts(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Bg(a,y,b){var z,te,ae,ce,we,ke,He,qe,It,nn,Sn;let In=!1;y=y!=null?y:a.atoms.length;let Rr="",ia="",Nr=a.atoms[a.index];const bi=(te=(z=Nr.style)==null?void 0:z.variant)!=null?te:"",ua=(ce=(ae=Nr.style)==null?void 0:ae.variantStyle)!=null?ce:"";let Ti="";if(bi||ua){const ko=Ht(Nr.value,(we=Nr.style)==null?void 0:we.variant,(ke=Nr.style)==null?void 0:ke.variantStyle);if(ko!==Nr.value)return a.index+=1,Rr=`<mi${ts(Nr.id,b)}>${ko}</mi>`,hd(Rr,a,b)||(a.mathML+=Rr,a.lastType="mi"),!0;Ti=(He={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"}[ua+bi])!=null?He:"",Ti=` mathvariant="${Ti}"`}const $a={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Nr.command==="!")return a.index+=1,Rr="<mo>!</mo>",hd(Rr,a,b)||(a.mathML+=Rr,a.lastType="mo"),!0;if($a[Nr.command]){a.index+=1;let ko=`<mi${ts(Nr.id,b)}${Ti}>${$a[Nr.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(ko=Hh+ko),hd(ko,a,b)||(a.mathML+=ko,a.lastType="mi"),!0}if(Nr.command==="\\operatorname")ia=Bf(Nr.body),a.index+=1;else if(bi||ua)for(;a.index<y&&(Nr.type==="mord"||Nr.type==="macro")&&!Nr.isDigit()&&bi===((It=(qe=Nr.style)==null?void 0:qe.variant)!=null?It:"")&&ua===((Sn=(nn=Nr.style)==null?void 0:nn.variantStyle)!=null?Sn:"");)ia+=Bf([Nr]),a.index+=1,Nr=a.atoms[a.index];else(Nr.type==="mord"||Nr.type==="macro")&&!Nr.isDigit()&&(ia+=Bf([Nr]),a.index+=1);if(ia.length>0){In=!0,Rr=`<mi${Ti}>${ia}</mi>`;const ko=a.lastType;Rr.endsWith(">f</mi>")||Rr.endsWith(">g</mi>")?(Rr+=P0,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(Rr)?"mo":"mi",hd(Rr,a,b)||((ko==="mi"||ko==="mn"||ko==="mtext"||ko==="fence")&&(Rr=Hh+Rr),a.mathML+=Rr)}return In}function Dg(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function Mg(a){let y=-1,b=a.index,z=!1,te=!1;for(;b<a.atoms.length&&!z&&!te;){const ae=a.atoms[b];z=!ae.isDigit(),te=!z&&ae.superscript!==void 0,b++}return te&&(y=b-1),y}function hd(a,y,b){var z;let te=y.atoms[y.index-1];if(!te)return!1;if(!te.superscript&&!te.subscript)if(((z=y.atoms[y.index])==null?void 0:z.type)==="subsup")te=y.atoms[y.index],y.index+=1;else return!1;const ae=y.lastType;y.lastType="";const ce=Nl(te.superscript,b);y.lastType="";const we=Nl(te.subscript,b);if(y.lastType=ae,!ce&&!we)return!1;let ke="";return ce&&we?ke=`<msubsup>${a}${we}${ce}</msubsup>`:ce?ke=`<msup>${a}${ce}</msup>`:we&&(ke=`<msub>${a}${we}</msub>`),y.mathML+=ke,y.lastType="",!0}function kg(a,y,b){y=y!=null?y:a.atoms.length;const z=a.index;let te="";for(;a.index<y&&a.atoms[a.index].mode==="text";)te+=a.atoms[a.index].value?a.atoms[a.index].value:" ",a.index+=1;return te.length>0?(a.mathML+=`<mtext ${ts(a.atoms[z].id,b)}>${te}</mtext>`,a.lastType="mtext",!0):!1}function Fg(a,y,b){y=y!=null?y:a.atoms.length;const z=a.index;let te="",ae=Mg(a);for(ae>=0&&ae<y&&(y=ae);a.index<y&&a.atoms[a.index].isDigit();)te+=a.atoms[a.index].asDigit(),a.index+=1;return te.length<=0?!1:(te="<mn"+ts(a.atoms[z].id,b)+">"+te+"</mn>",ae<0&&Dg(a)&&(ae=a.index,a.index+=1),hd(te,a,b)||(a.mathML+=te,a.lastType="mn"),!0)}function Pg(a,y,b){let z=!1;y=y!=null?y:a.atoms.length;let te="",ae="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let ce=!1,we=0;const ke=a.index;let He=-1,qe=ke+1;for(;qe<y&&!ce;)a.atoms[qe].type==="mopen"?we+=1:a.atoms[qe].type==="mclose"&&(we-=1),we===-1&&(ce=!0,He=qe),qe+=1;ce&&(te="<mrow>",te+=ef(a.atoms[ke],b),te+=Nl(a.atoms,b,ke+1,He),te+=ef(a.atoms[He],b),te+="</mrow>",a.index=He+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=Hh),hd(te,a,b)&&(z=!0,a.lastType="",te=""),ae="fence")}return te.length>0&&(z=!0,a.mathML+=te,a.lastType=ae),z}function Ig(a,y,b){let z=!1;y=y!=null?y:a.atoms.length;let te="",ae="";const ce=a.atoms[a.index];if(!ce)return!1;const we={"\\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(we[ce.command]){a.index+=1;const ke=`<mo${ts(ce.id,b)}>${we[ce.command]}</mo>`;return hd(ke,a,b)||(a.mathML+=ke,a.lastType="mo"),!0}if(a.index<y&&(ce.type==="mbin"||ce.type==="mrel"))te+=Cp(a.atoms[a.index],b),a.index+=1,ae="mo";else if(a.index<y&&(ce.type==="mop"||ce.type==="operator"||ce.type==="extensible-symbol")){if(ce.subsupPlacement==="over-under"&&(ce.superscript||ce.subscript)){const ke=ef(ce,b);return ce.superscript&&ce.subscript?(te+="<munderover>"+ke,te+=Nl(ce.subscript,b),te+=Nl(ce.superscript,b),te+="</munderover>"):ce.superscript?(te+="<mover>"+ke,te+=Nl(ce.superscript,b),te+="</mover>"):ce.subscript&&(te+="<munder>"+ke,te+=Nl(ce.subscript,b),te+="</munder>"),a.mathML+=te,a.lastType="mo",a.index+=1,!0}{const ke=a.atoms[a.index],He=ke.value==="\\operatorname",qe=He?'<mi class="MathML-Unit"'+ts(ke.id,b)+">"+Bf(ke.value)+"</mi>":ef(ke,b);te+=qe,!He&&!/^<mo>(.*)<\/mo>$/.test(qe)?(te+=P0,ae="applyfunction"):ae=He?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(te)&&(te=Hh+te),a.index+=1}return te.length>0&&(z=!0,hd(te,a,b)||(a.mathML+=te,a.lastType=ae)),z}function Nl(a,y,b,z){y!=null||(y={});const te={atoms:[],index:b!=null?b:0,mathML:"",lastType:""};if(typeof a=="number"||typeof a=="boolean")te.mathML=a.toString();else if(typeof a=="string")te.mathML=a;else if(a instanceof oi)te.mathML=Cp(a,y);else if(Array.isArray(a)){te.atoms=a;let ae=0;for(z=z||(a?a.length:0);te.index<z;)if(kg(te,z,y)||Fg(te,z,y)||Bg(te,z,y)||Ig(te,z,y)||Pg(te,z,y))ae+=1;else if(te.index<z){let ce=Cp(te.atoms[te.index],y);te.lastType==="mn"&&ce.length>0&&te.atoms[te.index].type==="genfrac"&&(ce="<mo>⁤</mo>"+ce),te.atoms[te.index].type==="genfrac"?te.lastType="mfrac":te.lastType="",te.index+=1,hd(ce,te,y)?ae+=1:ce.length>0&&(te.mathML+=ce,ae+=1)}ae>1&&(te.mathML="<mrow>"+te.mathML+"</mrow>")}return te.mathML}function ef(a,y){let b="";const z=Bf(a.value);return z&&(b="<mo"+ts(a.id,y)+">"+z+"</mo>"),b}function Bf(a){if(!a)return"";if(typeof a=="string")return Kh(a);if(!Array.isArray(a)&&typeof a.body=="string")return Kh(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return Kh(y)}function Cp(a,y){var b,z,te,ae,ce,we,ke,He,qe,It,nn,Sn,In,Rr,ia,Nr,bi,ua,Ti,$a,ko,mo;if(a.mode==="text")return`<mi${ts(a.id,y)}>${a.value}</mi>`;const Al={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"},Yl={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Ca="",pc="",Xc,Bc,$s,mc,ju,ns;const{command:Ls}=a;if(a.command==="\\error")return`<merror${ts(a.id,y)}>${Nl(a.body,y)}</merror>`;const qs={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Jc={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":Ca=Nl(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(Ca+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(Ca+="<mo>"+(qs[a.leftDelim]||a.leftDelim)+"</mo>")),Ca+="<mtable",a.colFormat){for(Ca+=' columnalign="',$s=0;$s<a.colFormat.length;$s++)a.colFormat[$s].align&&(Ca+={l:"left",c:"center",r:"right"}[a.colFormat[$s].align]+" ");Ca+='"'}for(Ca+=">",Bc=0;Bc<a.array.length;Bc++){for(Ca+="<mtr>",Xc=0;Xc<a.array[Bc].length;Xc++)Ca+="<mtd>"+Nl(a.array[Bc][Xc],y)+"</mtd>";Ca+="</mtr>"}Ca+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(Ca+="<mo>"+(qs[a.leftDelim]||a.rightDelim)+"</mo>"),Ca+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(Ca+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(Ca+="<mo"+ts(a.id,y)+">"+(qs[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(Ca+="<mfrac>",Ca+=Nl(a.above,y)||"<mi> </mi>",Ca+=Nl(a.below,y)||"<mi> </mi>",Ca+="</mfrac>"):(Ca+="<mtable"+ts(a.id,y)+">",Ca+="<mtr>"+Nl(a.above,y)+"</mtr>",Ca+="<mtr>"+Nl(a.below,y)+"</mtr>",Ca+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(Ca+="<mo"+ts(a.id,y)+">"+(qs[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(Ca+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(Ca+="<msqrt"+ts(a.id,y)+">",Ca+=Nl(a.body,y),Ca+="</msqrt>"):(Ca+="<mroot"+ts(a.id,y)+">",Ca+=Nl(a.body,y),Ca+=Nl(a.above,y),Ca+="</mroot>");break;case"leftright":const $c=a,qc=$c.leftDelim;Ca="<mrow>",qc&&qc!=="."&&(Ca+=`<mo${ts(a.id,y)}>${(b=qs[qc])!=null?b:qc}</mo>`),a.body&&(Ca+=Nl(a.body,y));const ed=$c.matchingRightDelim();ed&&ed!=="."&&(Ca+=`<mo${ts(a.id,y)}>${(z=qs[ed])!=null?z:ed}</mo>`),Ca+="</mrow>";break;case"sizeddelim":case"delim":Ca+=`<mo${ts(a.id,y)}>${qs[a.value]||a.value}</mo>`;break;case"accent":Ca+='<mover accent="true"'+ts(a.id,y)+">",Ca+=Nl(a.body,y),Ca+="<mo>"+(Jc[Ls]||a.accent)+"</mo>",Ca+="</mover>";break;case"line":case"overlap":break;case"overunder":ju=a.above,mc=a.below,(a.svgAbove||ju)&&(a.svgBelow||mc)?ns=a.body:ju&&ju.length>0?(ns=a.body,(ae=(te=a.body)==null?void 0:te[0])!=null&&ae.below?(mc=a.body[0].below,ns=a.body[0].body):((we=(ce=a.body)==null?void 0:ce[0])==null?void 0:we.type)==="first"&&((He=(ke=a.body)==null?void 0:ke[1])!=null&&He.below)&&(mc=a.body[1].below,ns=a.body[1].body)):mc&&mc.length>0&&(ns=a.body,(It=(qe=a.body)==null?void 0:qe[0])!=null&&It.above?(ju=a.body[0].above,ns=a.body[0].body):((Sn=(nn=a.body)==null?void 0:nn[0])==null?void 0:Sn.type)==="first"&&((Rr=(In=a.body)==null?void 0:In[1])!=null&&Rr.above)&&(ju=a.body[1].overscript,ns=a.body[1].body)),(a.svgAbove||ju)&&(a.svgBelow||mc)?(Ca+=`<munderover ${ts(a.id,y)}>`,Ca+=(ia=Al[a.svgBody])!=null?ia:Nl(ns,y),Ca+=(Nr=Al[a.svgBelow])!=null?Nr:Nl(mc,y),Ca+=(bi=Al[a.svgAbove])!=null?bi:Nl(ju,y),Ca+="</munderover>"):a.svgAbove||ju?(Ca+=`<mover ${ts(a.id,y)}>`+((ua=Al[a.svgBody])!=null?ua:Nl(ns,y)),Ca+=(Ti=Al[a.svgAbove])!=null?Ti:Nl(ju,y),Ca+="</mover>"):(a.svgBelow||mc)&&(Ca+=`<munder ${ts(a.id,y)}>`+(($a=Al[a.svgBody])!=null?$a:Nl(ns,y)),Ca+=(ko=Al[a.svgBelow])!=null?ko:Nl(mc,y),Ca+="</munder>");break;case"placeholder":Ca+="?";break;case"mord":{Ca=typeof a.value=="string"?a.value:Ls,Ls==="\\char"?Ca="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":Ca.length>0&&Ca.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?Ca="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?Ca=a.value.charAt(0):(console.error("Did not expect this"),Ca=""));const Nc=/\d/.test(Ca)?"mn":"mi";Ca=`<${Nc}${ts(a.id,y)}>${Kh(Ca)}</${Nc}>`;break}case"mbin":case"mrel":case"minner":Ca=ef(a,y);break;case"mpunct":Ca='<mo separator="true"'+ts(a.id,y)+">"+Ls+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(Ca="<mo"+ts(a.id,y)+">",Ca+=Ls==="\\operatorname"?a.body:Ls||a.body,Ca+="</mo>");break;case"box":Ca='<menclose notation="box"',a.backgroundcolor&&(Ca+=' mathbackground="'+a.backgroundcolor+'"'),Ca+=ts(a.id,y)+">"+Nl(a.body,y)+"</menclose>";break;case"spacing":Ca+='<mspace width="'+((mo=Yl[Ls])!=null?mo:0)+'em"/>';break;case"enclose":Ca='<menclose notation="';for(const Nc in a.notation)Object.prototype.hasOwnProperty.call(a.notation,Nc)&&a.notation[Nc]&&(Ca+=pc+Nc,pc=" ");Ca+=ts(a.id,y)+'">'+Nl(a.body,y)+"</menclose>";break;case"prompt":Ca='<menclose notation="roundexbox""">'+Nl(a.body,y)+"</menclose>";break;case"space":Ca+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Ca+=ef(a,y);break;case"mclose":Ca+=ef(a,y);break;case"macro":{const Nc=a.command+Bf(a.macroArgs);Nc&&(Ca+=`<mo ${ts(a.id,y)}>${Nc}</mo>`)}break;case"latexgroup":Ca+=Nl(a.body,y);break;case"latex":Ca+="<mtext"+ts(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":Ca+=Nl(a.body,y);break;case"text":Ca+=`<mtext ${ts(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${ts(a.id,y)} displaystyle="true">${Nl(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${ts(a.id,y)} displaystyle="false">${Nl(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return Ca}var Df={"\\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"},wp={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 Og(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function th(a){let y=0;if(Fe(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Lg(a){if(Fe(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function I0(a){let y="";if(Fe(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Ng(a){return a?a.map(y=>y.value).join(""):""}function xl(a,y){var b,z,te,ae,ce;function we(qe){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(qe)?` <say-as interpret-as="character">${qe}</say-as>`:/[A-Z]/.test(qe)?`capital <say-as interpret-as="character">${qe.toLowerCase()}</say-as>`:qe:/[a-z]/.test(qe)?" '"+qe.toUpperCase()+"'":/[A-Z]/.test(qe)?" 'capital "+qe.toUpperCase()+"'":qe}function ke(qe){return"<emphasis>"+qe+"</emphasis>"}if(!y)return"";let He="";if(Fe(y)){let qe=!1,It=!1;for(let nn=0;nn<y.length;nn++)y[nn].type!=="first"&&(y[nn].mode!=="text"&&(It=!1),nn<y.length-2&&y[nn].type==="mopen"&&y[nn+2].type==="mclose"&&y[nn+1].type==="mord"?(He+=" of ",He+=ke(xl(a,y[nn+1])),nn+=2):y[nn].mode==="text"?It?He+=(b=y[nn].value)!=null?b:" ":(It=!0,He+=xl("text",y[nn])):y[nn].isDigit()?qe?He+=y[nn].asDigit():(qe=!0,He+=xl(a,y[nn])):(qe=!1,He+=xl(a,y[nn])))}else if(y.mode==="text")y.id&&a==="math"&&(He+='<mark name="'+y.id.toString()+'"/>'),He+=y.value;else{y.id&&a==="math"&&(He+='<mark name="'+y.id.toString()+'"/>');let qe="",It="",nn="",Sn=!1;const{command:In}=y;switch(In){case"\\vec":return"vector "+xl(a,y.body);case"\\acute":return xl(a,y.body)+" acute";case"\\grave":return xl(a,y.body)+" grave";case"\\dot":return"dot over"+xl(a,y.body);case"\\ddot":return"double dot over"+xl(a,y.body);case"\\mathring":return"ring over"+xl(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+xl(a,y.body);case"\\bar":return xl(a,y.body)+" bar";case"\\breve":return xl(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+xl(a,y.body);case"\\hat":case"\\widehat":return"hat over"+xl(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+xl(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+xl(a,y.body)}switch(y.type){case"prompt":const Rr=y.body.length>1?'start input . <break time="500ms"/> '+xl(a,y.body)+'. <break time="500ms"/> end input':"blank";He+=' <break time="300ms"/> '+Rr+'. <break time="700ms"/>'+((z=y.correctness)!=null?z:"")+' . <break time="700ms"/> ';break;case"array":const ia=y.array,Nr=y.environmentName;if(Object.keys(wp).includes(Nr)){He+=` begin ${wp[Nr]} `;for(let Ti=0;Ti<ia.length;Ti++){Ti>0&&(He+=","),He+=` row ${Ti+1} `;for(let $a=0;$a<ia[Ti].length;$a++)$a>0&&(He+=","),He+=` column ${$a+1}: `,He+=xl("math",ia[Ti][$a])}He+=` end ${wp[Nr]} `}break;case"group":In==="\\ne"?He+=" not equal ":(In==="\\not"&&(He+=" not "),He+=xl("math",y.body));break;case"root":He+=xl("math",y.body);break;case"genfrac":if(qe=xl("math",y.above),It=xl("math",y.below),th(y.above)&&th(y.below)){const $a={"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 "}[I0(y.above)+"/"+I0(y.below)];$a?He=$a:He+=qe+" over "+It}else He+=' the fraction <break time="150ms"/>'+qe+' over <break time="150ms"/>'+It+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(nn=xl("math",y.body),y.hasEmptyBranch("above"))He+=th(y.body)?" the square root of "+nn+" , ":' the square root of <break time="200ms"/>'+nn+'. <break time="200ms"/> End square root';else{let Ti=xl("math",y.above);Ti=Ti.trim();const $a=Ti.replace(/<mark([^/]*)\/>/g,"");$a==="3"?He+=' the cube root of <break time="200ms"/>'+nn+'. <break time="200ms"/> End cube root':$a==="n"?He+=' the nth root of <break time="200ms"/>'+nn+'. <break time="200ms"/> End root':He+=' the root with index: <break time="200ms"/>'+Ti+', of <break time="200ms"/>'+nn+'. <break time="200ms"/> End root'}break;case"leftright":{const Ti=y;He+=(te=Ti.leftDelim?Df[Ti.leftDelim]:void 0)!=null?te:Ti.leftDelim,He+=xl("math",y.body),He+=(ae=Ti.rightDelim?Df[Ti.rightDelim]:void 0)!=null?ae:Ti.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const bi=In.replace(/^\\/g,""),ua=yn()[bi];ua&&(ua!=null&&ua.expand?He+=xl("math",y.body):He+=`${bi} `);break;case"placeholder":He+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(In==="\\mathbin"||In==="\\mathrel"||In==="\\mathopen"||In==="\\mathclose"||In==="\\mathpunct"||In==="\\mathord"||In==="\\mathinner"){He=xl(a,y.body);break}let Ti=y.isDigit()?y.asDigit():y.value,$a=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&($a=y.value,Ti=$a),a==="text")He+=Ti;else{if(y.type==="mbin"&&(He+='<break time="150ms"/>'),Ti){const ko=Df[Ti]||($a?Df[$a.trim()]:"");if(ko)He+=" "+ko;else{const mo=$a?Og($a.trim()):"";He+=mo||we(Ti)}}else He+=xl("math",y.body);y.type==="mbin"&&(He+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const Ti=y.command;if(Ti==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let $a=xl("math",y.superscript);$a=$a.trim();let ko=xl("math",y.subscript);ko=ko.trim(),He+=' the summation from <break time="200ms"/>'+ko+'<break time="200ms"/> to <break time="200ms"/>'+$a+'<break time="200ms"/> of <break time="150ms"/>',Sn=!0}else if(y.hasEmptyBranch("subscript"))He+=" the summation of";else{let $a=xl("math",y.subscript);$a=$a.trim(),He+=' the summation from <break time="200ms"/>'+$a+'<break time="200ms"/> of <break time="150ms"/>',Sn=!0}else if(Ti==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let $a=xl("math",y.superscript);$a=$a.trim();let ko=xl("math",y.subscript);ko=ko.trim(),He+=' the product from <break time="200ms"/>'+ko+'<break time="200ms"/> to <break time="200ms"/>'+$a+'<break time="200ms"/> of <break time="150ms"/>',Sn=!0}else if(y.hasEmptyBranch("subscript"))He+=" the product of ";else{let $a=xl("math",y.subscript);$a=$a.trim(),He+=' the product from <break time="200ms"/>'+$a+'<break time="200ms"/> of <break time="150ms"/>',Sn=!0}else if(Ti==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let $a=xl("math",y.superscript);$a=$a.trim();let ko=xl("math",y.subscript);ko=ko.trim(),He+=' the integral from <break time="200ms"/>'+ke(ko)+'<break time="200ms"/> to <break time="200ms"/>'+ke($a)+' <break time="200ms"/> of ',Sn=!0}else He+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const $a=(ce=Df[y.value])!=null?ce:y.command?Df[y.command]:void 0;He+=$a||" "+y.value}else y.command&&(y.command==="\\mathop"?He+=xl("math",y.body):y.command==="\\operatorname"?He+=Ng(y.body):He+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":nn=xl("math",y.body),He+=" crossed out "+nn+". End crossed out.";break;case"space":case"spacing":break}if(!Sn&&!y.hasEmptyBranch("superscript")){let Rr=xl(a,y.superscript);Rr=Rr.trim();const ia=Rr.replace(/<[^>]*>/g,"");if(th(y.superscript)){if(a==="math"){const Nr=Lg(y.superscript);Nr&&(He+='<mark name="'+Nr+'"/>')}ia==="\u2032"?He+=" prime ":ia==="2"?He+=" squared ":ia==="3"?He+=" cubed ":Number.isNaN(Number.parseInt(ia))?He+=" to the "+Rr+"; ":He+=' to the <say-as interpret-as="ordinal">'+ia+"</say-as> power; "}else Number.isNaN(Number.parseInt(ia))?He+=" raised to the "+Rr+"; ":He+=' raised to the <say-as interpret-as="ordinal">'+ia+"</say-as> power; "}if(!Sn&&!y.hasEmptyBranch("subscript")){let Rr=xl("math",y.subscript);Rr=Rr.trim(),He+=th(y.subscript)?" sub "+Rr:" subscript "+Rr+". End subscript. "}}return He}function Mf(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const te=Nl(a);if(te){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=De(be({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=De(be({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=De(be({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const ae=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&ae.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let ce="";try{ce=ae.toSpeech(te)}catch(we){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",we)}return ce}return""}let z=xl("math",a);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let te="";window.MathfieldElement.speechEngineRate&&(te='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),z='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+te+"<p><s>"+z+"</s></p>"+(te?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&<()==="macos"?z=z.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,""):z=z.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return z}var nh={"\\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"},rh={"\\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 _g(a){let y="";for(const b of a){const z=y[y.length-1];z!==void 0&&/\d/.test(z)&&/^\d/.test(b)&&(y+=" "),y+=b}return y}function Os(a){var y,b,z,te,ae,ce,we,ke,He,qe,It,nn,Sn;if(!a)return"";if(Fe(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(Os).join("");if(a[0].mode==="text"){let ua=0,Ti="";for(;((y=a[ua])==null?void 0:y.mode)==="text";)Ti+=a[ua].body?Os(a[ua].body):a[ua].value,ua++;return`"${Ti}" ${Os(a.slice(ua))}`}let Nr=0;const bi=[];for(;a[Nr]&&a[Nr].mode==="math";){let ua="";for(;a[Nr]&&a[Nr].type==="mord"&&/\d/.test(a[Nr].value);)ua+=a[Nr++].value;ua?bi.push(ua):bi.push(Os(a[Nr++]))}return bi.push(Os(a.slice(Nr))),_g(bi)}if(a.mode==="text")return`"${a.value}"`;let In="";const{command:Rr}=a;let ia;if(Rr==="\\placeholder")return`(${Os(a.body)})`;switch(a.type){case"accent":const Nr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Rr];In=`${Nr!=null?Nr:""} ${Os(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(mo=>mo.value).join("");case"group":case"root":In=(b=nh[Rr])!=null?b:Os(a.body);break;case"genfrac":{const mo=a;(mo.leftDelim||mo.rightDelim)&&(In=mo.leftDelim==="."||!mo.leftDelim?"{:":mo.leftDelim),mo.hasBarLine?(In+="(",In+=Os(mo.above),In+=")/(",In+=Os(mo.below),In+=")"):(In+="("+Os(mo.above)+"),",In+="("+Os(mo.below)+")"),(mo.leftDelim||mo.rightDelim)&&(In+=mo.rightDelim==="."||!mo.rightDelim?"{:":mo.rightDelim)}break;case"surd":In+=a.hasEmptyBranch("above")?"sqrt("+Os(a.body)+")":"root("+Os(a.above)+")("+Os(a.body)+")";break;case"latex":In=a.value;break;case"leftright":{const mo=a,Al=mo.leftDelim;In+=Al==="."||!Al?"{:":Al,In+=Os(mo.body);const Yl=mo.matchingRightDelim();In+=Yl==="."||!Yl?":}":Yl}break;case"sizeddelim":case"delim":In=a.value;break;case"overlap":break;case"overunder":break;case"mord":In=(te=(z=nh[Rr])!=null?z:Rr)!=null?te:typeof a.value=="string"?a.value:"",In.startsWith("\\")&&(In+=" "),ia=Rr?Rr.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,ia?In=String.fromCodePoint(Number.parseInt("0x"+ia[1])):In.length>0&&In.startsWith("\\")&&(In=typeof a.value=="string"?a.value.charAt(0):a.command),In=Tg(In,a.style);break;case"mbin":case"mrel":case"minner":In=(ce=(ae=nh[Rr])!=null?ae:rh[Rr])!=null?ce:a.value;break;case"mopen":case"mclose":In=a.value;break;case"mpunct":In=(we=rh[Rr])!=null?we:Rr;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(rh[Rr]?In=rh[Rr]:In=Rr==="\\operatorname"?Os(a.body):(ke=a.value)!=null?ke:Rr,In+=" ");break;case"array":const bi=a.array,ua=a.environmentName,Ti=(He={bmatrix:["[","]"],"bmatrix*":["[","]"]}[ua])!=null?He:["(",")"],$a=[];for(const mo of bi){const Al=[];for(const Yl of mo)Al.push(Ti[0]+Os(Yl)+Ti[1]);$a.push(Al.join(","))}const ko=(qe={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[ua])!=null?qe:["(",")"];In=ko[0]+$a.join(",")+ko[1];break;case"box":break;case"spacing":In=(It=nh[Rr])!=null?It:" ";break;case"enclose":In="("+Os(a.body)+")";break;case"space":In=" ";break;case"subsup":In="";break;case"macro":In=(Sn=(nn=nh[Rr])!=null?nn:rh[Rr])!=null?Sn:Os(a.body);break}if(!a.hasEmptyBranch("subscript")){In+="_";const Nr=Os(a.subscript);In+=Nr.length!==1?`(${Nr})`:Nr}if(!a.hasEmptyBranch("superscript")){In+="^";const Nr=Os(a.superscript);In+=Nr.length!==1?`(${Nr})`:Nr}return In}function Tg(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 Js(a,y){var b,z;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const te=new vl({from:De(be({},bd()),{renderPlaceholder:()=>new ta(160,{maxFontSize:1}),letterShapeStyle:(z=y==null?void 0:y.letterShapeStyle)!=null?z:"tex"}),mathstyle:y.mathstyle}),ce=new oi({mode:"math",type:"root",body:un(a,{context:te,parseMode:"math",mathstyle:y.mathstyle})}).render(te);return ce?(zc(cc(ce,te)),Zc(ce,{classes:"ML__latex"}).toMarkup()):""}function Dy(a){return Nn(a,{context:bd()})}function Rg(a,y={}){return Nl(un(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function zg(a){const y=un(a,{parseMode:"math",mathstyle:"displaystyle"});return Mf(y)}var Wh;function Zg(a){var y,b;if(!Wh){const z=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;z?Wh=new z: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=Wh==null?void 0:Wh.box(a).latex)!=null?b:""}function My(a,y="math"){return Os(new oi({type:"root",body:un(a,{parseMode:y})}))}function ky(a){return ud(a,{format:"ascii-math"})[1]}function Sp(a){if(typeof a=="string"){const y=Hg(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Wg(a):"a"in a?O0(a):a}function kf(a){return a<0?0:a>255?255:Math.round(a)}function Hg(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 Ap(a){const[y,b,z]=[a.L,a.C,a.H],te=z*Math.PI/180,ae={L:y,a:b*Math.cos(te),b:b*Math.sin(te)};return a.alpha!==void 0&&(ae.alpha=a.alpha),ae}function Kg(a){const[y,b,z]=[a.L,a.a,a.b],te=Math.sqrt(b*b+z*z),ce=Math.atan2(z,b)*180/Math.PI,we={L:y,C:te,H:ce};return a.alpha!==void 0&&(we.alpha=a.alpha),we}function Bp(a){const[y,b,z]=[a.L,a.a,a.b],te=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*z,3),ae=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*z,3),ce=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*z,3),we=4.076741661347994*te-3.307711590408193*ae+.230969928729428*ce,ke=-1.2684380040921763*te+2.6097574006633715*ae-.3413193963102197*ce,He=-.004196086541837188*te-.7034186144594493*ae+1.7076147009309444*ce,qe=It=>{const nn=Math.abs(It);return nn<=.0031308?It*12.92:(Math.sign(It)||1)*(1.055*Math.pow(nn,1/2.4)-.055)};return[qe(we),qe(ke),qe(He)]}function Dp(a){const[y,b,z]=a;return y>=0&&y<=1&&b>=0&&b<=1&&z>=0&&z<=1}function Mp(a,y){let[b,z,te]=a;return b=kf(b*255),z=kf(z*255),te=kf(te*255),y!==void 0?{r:b,g:z,b:te,alpha:y}:{r:b,g:z,b:te}}function O0(a){let[y,b,z]=Bp(a);if(Dp([y,b,z]))return Mp([y,b,z],a.alpha);const te=Kg(a);if(te.C=0,[y,b,z]=Bp(Ap(te)),!Dp([y,b,z]))return Mp([y,b,z],a.alpha);let ae=0,ce=a.L,we=(ae+ce)/2;te.C=we;const ke=.36/Math.pow(2,12);for(;ce-ae>ke;)we=(ae+ce)/2,te.C=we,[y,b,z]=Bp(Ap(te)),Dp([y,b,z])?ae=we:ce=we;return Mp([y,b,z],a.alpha)}function Wg(a){return O0(Ap(a))}function L0(a,y){const b=Sp(a),z=Sp(y),te=.56,ae=.57,ce=.62,we=.65,ke=.022,He=1.414,qe=.1,It=5e-4,nn=1.14,Sn=.027,In=1.14,Rr=.027;function ia(mo){return mo>=ke?mo:mo+td(ke-mo,He)}function Nr(mo){return(mo<0?-1:1)*Math.pow(Math.abs(mo),2.4)}const bi=ia(Nr(z.r/255)*.2126729+Nr(z.g/255)*.7151522+Nr(z.b/255)*.072175),ua=ia(Nr(b.r/255)*.2126729+Nr(b.g/255)*.7151522+Nr(b.b/255)*.072175);let Ti,$a,ko;return Math.abs(ua-bi)<It?$a=0:ua>bi?(Ti=td(ua,te)-td(bi,ae),$a=Ti*nn):(Ti=td(ua,we)-td(bi,ce),$a=Ti*In),Math.abs($a)<qe?ko=0:$a>0?ko=$a-Rr:ko=$a+Sn,ko*100}function N0(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const z=L0(a,b),te=L0(a,y);return Math.abs(z)>Math.abs(te)?b:y}function jg(a){const y=Sp(a);let b=((1<<24)+(kf(y.r)<<16)+(kf(y.g)<<8)+kf(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 gs(a){const y=_0(a);let b="";for(const z of y){if(typeof z.value!="string")return"";b+=z.value}return b}function _0(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function Vg(a,y){const b=_0(a);if(b.length!==1)return!1;const z=Ad[y];return z?!!z.test(b[0].value):!1}function Ug(a,y){return gs(a).length>0}function Gg(a){return[kp(a,"double-struck","mathbb","tooltip.blackboard"),kp(a,"fraktur","mathfrak","tooltip.fraktur"),kp(a,"calligraphic","mathcal","tooltip.caligraphic"),Fp(a,"up","mathrm","tooltip.roman-upright"),Fp(a,"bold","mathbf","tooltip.bold"),Fp(a,"italic","mathit","tooltip.italic")]}function Qg(a){return[{label:()=>Js(`\\vec{${gs(a)}}`),visible:()=>gs(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Js(`\\overrightarrow{${gs(a)}}`),visible:()=>gs(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Js(`\\overleftarrow{${gs(a)}}`),visible:()=>gs(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Js(`\\dot{${gs(a)}}`),visible:()=>gs(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Js(`\\ddot{${gs(a)}}`),visible:()=>gs(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Js(`\\bar{${gs(a)}}`),visible:()=>gs(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Js(`\\overline{${gs(a)}}`),visible:()=>gs(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Js(`\\overgroup{${gs(a)}}`),visible:()=>gs(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Js(`\\overbrace{${gs(a)}}`),visible:()=>gs(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Js(`\\underline{${gs(a)}}`),visible:()=>gs(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Js(`\\undergroup{${gs(a)}}`),visible:()=>gs(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Js(`\\underbrace{${gs(a)}}`),visible:()=>gs(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Yg(a){return[{label:()=>Js(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Js(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Js(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Xg(a){const y=[];for(const b of Object.keys(Je))y.push({class:(jg(N0(Je[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Je[b]} "></span>`,ariaLabel:()=>{var z;return(z=Qe(b))!=null?z:b},checked:()=>{var z;return{some:"mixed",all:!0}[(z=a.queryStyle({backgroundColor:b}))!=null?z:!1]},onMenuSelect:()=>{a.applyStyle({backgroundColor:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}function Jg(a){const y=[];for(const b of Object.keys(Re))y.push({class:(N0(Re[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Re[b]} "></span>`,ariaLabel:()=>{var z;return(z=Qe(b))!=null?z:b},checked:()=>{var z;return{some:"mixed",all:!0}[(z=a.queryStyle({color:b}))!=null?z:!1]},onMenuSelect:()=>{a.applyStyle({color:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}var $g=class extends w0{constructor(a,y,b,z){super(a,y),this.row=b,this.col=z}set active(a){const y=this.parentMenu.children;if(a)for(const b of y)b.element.classList.toggle("active",b.row<=this.row&&b.col<=this.col);else for(const b of y)b.element.classList.remove("active")}};function qg(a){const y=[];for(let b=1;b<=5;b++)for(let z=1;z<=5;z++)y.push({onCreate:(te,ae)=>new $g(te,ae,b,z),label:"\u2610",tooltip:()=>Qe("tooltip.row-by-col",b,z),data:{row:b,col:z},onMenuSelect:()=>{a.insert(`\\begin{pmatrix}${Array(b).fill(Array(z).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return y}function ey(a){return[{label:()=>Qe("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>tf(a)},{label:()=>Qe("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>tf(a)},{label:()=>Qe("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>tf(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,z]=ny(a);return b<y.maxColumns}},{label:()=>Qe("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>tf(a)},{type:"divider"},{label:()=>Qe("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>tf(a)},{label:()=>Qe("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>tf(a)},{type:"divider"},{label:()=>Qe("menu.borders"),visible:()=>(ty(a)||tf(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>ih(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>ih(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>ih(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>ih(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>ih(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>Qe("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:qg(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>Qe("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>Qe("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{yf(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>Qe("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{yf(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>Qe("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>Qe("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Gg(a),submenuClass:"variant-submenu"},{label:()=>Qe("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Jg(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>Qe("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Xg(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>Qe("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Qg(a),submenuClass:"variant-submenu"},{label:()=>Qe("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&gs(a).length>0,submenu:Yg(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>Qe("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=ry(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:()=>Qe("menu.simplify"),id:"ce-simplify",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var y,b;if(a.model.selectionIsCollapsed){const z=(y=a.expression)==null?void 0:y.simplify();if(a.model.position=a.model.lastOffset,!z){a.model.announce("plonk");return}a.insert(`=${z.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const z=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection)).simplify();if(!z){a.model.announce("plonk");return}a.insert(z.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?Qe("menu.solve-for",Js(b)):Qe("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,z=b==null?void 0:b.unknowns[0],te=(y=b.solve(z))==null?void 0:y.map(ae=>{var ce;return(ce=ae.simplify().latex)!=null?ce:""});if(!te){a.model.announce("plonk");return}a.insert(`${z}=${te.length===1?te[0]:"\\left\\lbrace"+(te==null?void 0:te.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>Qe("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>Qe("menu.copy"),id:"copy",submenu:[{label:()=>Qe("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>jo.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>Qe("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>jo.copyToClipboard(a,"ascii-math")},{label:()=>Qe("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>jo.copyToClipboard(a,"math-ml")}]},{label:()=>Qe("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>Qe("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function tf(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function ty(a){return a.model.at(a.model.position).type==="array"}function ny(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((z,te)=>Math.max(z,te.length),0)]:[0,0]}function ih(a,y){vh(a),a.flushInlineShortcutBuffer(),t0(a.model,y),Ms(a)}function ry(a){var y,b;let z;if(a.model.selectionIsCollapsed?z=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):z=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!z)return"";let te=z.evaluate();return te.isSame(z)&&(te=z.N()),te.latex}function kp(a,y,b,z){return{label:()=>Js(`\\${b}{${gs(a)}}`),tooltip:()=>{var te;return(te=Qe(z))!=null?te:z},visible:()=>Vg(a,y),checked:()=>{var te;return{some:"mixed",all:!0}[(te=a.queryStyle({variant:y}))!=null?te:!1]},onMenuSelect:()=>{a.applyStyle({variant:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Fp(a,y,b,z){return{label:()=>Js(`\\${b}{${gs(a)}}`),tooltip:()=>{var te;return(te=Qe(z))!=null?te:z},visible:()=>Ug(a,y),checked:()=>{var te;return{some:"mixed",all:!0}[(te=a.queryStyle({variantStyle:y}))!=null?te:!1]},onMenuSelect:()=>{a.applyStyle({variantStyle:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Ff(a,y){return a+Mf(y)}rc({speak:(a,y,b)=>iy(a,y,b)},{target:"mathfield"});function iy(a,y,b){var z,te;b=b!=null?b:{withHighlighting:!1};const{model:ae}=a;function ce(qe){let It=null;switch(qe){case"all":It=ae.root;break;case"selection":It=ae.getAtoms(ae.selection);break;case"left":{It=ae.getAtoms(ae.offsetOf(ae.at(ae.position).leftSibling),ae.position);break}case"right":{It=ae.getAtoms(ae.position,ae.offsetOf(ae.at(ae.position).rightSibling));break}case"group":It=ae.getAtoms(ae.getSiblingsRange(ae.position));break;case"parent":{const{parent:nn}=ae.at(ae.position);nn!=null&&nn.parent?It=nn:It=ae.root;break}default:It=ae.root}return It}function we(qe){let It="";switch(qe){case"all":console.log("Internal failure: speak all failed");break;case"selection":It="no selection";break;case"left":It="at start";break;case"right":It="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":It="no parent";break;default:console.log('unknown speak_ param value: "'+qe+'"');break}return It}const ke=ce(y);if(ke===null)return(te=(z=window.MathfieldElement).speakHook)==null||te.call(z,we(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const He=Mf(ke);return tt()&&b.withHighlighting?(kd().readAloudMathfield=a,Ud(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,He)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(He),!1}function ay(a){var y,b;if(!tt()){console.log("Speak:",a);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const z=new SpeechSynthesisUtterance(a);window.speechSynthesis.speak(z)}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 z=new window.AWS.Polly({apiVersion:"2016-06-10"}),te={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"};z.synthesizeSpeech(te,(ae,ce)=>{if(ae)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ae}`);else if(ce!=null&&ce.AudioStream){const we=new Uint8Array(ce.AudioStream),ke=new Blob([we.buffer],{type:"audio/mpeg"}),He=URL.createObjectURL(ke);new Audio(He).play().catch(It=>console.log(It))}else console.log("polly.synthesizeSpeech():",ce)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function T0(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 oy(a,y,b,z){let te="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")te=Ff("deleted: ",z);else if(y==="focus"||y.includes("move"))te=ly(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+sy(a.model);else if(y==="replacement")te=Ff("",a.model.at(a.model.position));else if(y==="line"){const ae=Ff("",a.model.root);a.keyboardDelegate.setAriaLabel(ae)}else te=z?Ff(y+" ",z):y;if(te){const ae=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=te+ae}}function ly(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let z="",te=b.parent;const ae=a.at(a.position).parent;for(;te!==a.root&&te!==ae;)z+=`out of ${T0(te)};`,te=te.parent;return z}function sy(a){if(!a.selectionIsCollapsed)return Ff("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),z=T0(b);return b.isFirstSibling&&(y=(z?"start of "+z:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=z?"end of "+z:"unknown"):y+=Ff("",b),y}var uy=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 z=this.silenceNotifications;this.silenceNotifications=(b=y==null?void 0:y.silenceNotifications)!=null?b:!0;let te={};if((y==null?void 0:y.type)==="undo"&&(te={inputType:"historyUndo"}),(y==null?void 0:y.type)==="redo"&&(te={inputType:"historyRedo"}),this.contentWillChange(te)){const ae=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=dc(a.content),this.selection=a.selection,this.silenceNotifications=ae,this.contentDidChange(te)}this.silenceNotifications=z}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,z,te;const ae=this.normalizeSelection(a,y);if(ae===void 0)throw new TypeError("Invalid selection");if(ae.ranges.length===1&&ae.ranges[0][0]===ae.ranges[0][1]){const qe=ae.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(qe))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((z=this.at(qe-1))!=null&&z.parentPrompt){this._anchor=this.normalizeOffset(qe-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((te=this.at(qe+1))!=null&&te.parentPrompt){this._anchor=this.normalizeOffset(qe+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=qe,this._position=qe,this._selection=ae;return}const ce=Zs(ae);ae.direction==="backward"?[this._position,this._anchor]=ce:[this._anchor,this._position]=ce;const we=this.at(ce[0]+1),ke=this.at(ce[1]),He=oi.commonAncestor(we,ke);(He==null?void 0:He.type)==="array"&&we.parent===He&&ke.parent===He?this._selection={ranges:[ce],direction:ae.direction}:this._selection={ranges:[ce],direction:ae.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(a){var y;const b=this.at(a);(b==null?void 0:b.type)==="placeholder"?this.setSelection(a-1,a):((y=b==null?void 0:b.rightSibling)==null?void 0:y.type)==="placeholder"?this.setSelection(a,a+1):this.position=a,b instanceof Zo&&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 z=y.parent.branch(y.parentBranch);return[this.offsetOf(z[0]),this.offsetOf(z[z.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 z=b!=null?b:{};if(xd(a)){if(z=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((He,qe)=>[...He,...this.getAtoms(qe,z)],[]);a=a.ranges[0]}let te,ae;if(Zu(a)){if(te=a,!Zu(y))return[];ae=y}else[te,ae]=a,z=y!=null?y:{};if(!Number.isFinite(te))return[];z.includeChildren===void 0&&(z.includeChildren=!1),te<0&&(te=this.lastOffset-te+1),ae<0&&(ae=this.lastOffset-ae+1);const ce=Math.min(te,ae)+1,we=Math.max(te,ae);if(!z.includeChildren&&ce===1&&we===this.lastOffset)return[this.root];let ke=[];for(let He=ce;He<=we;He++){const qe=this.atoms[He];R0(this,qe,ce,we)&&ke.push(qe)}return z.includeChildren||(ke=ke.filter(He=>{let qe=!1,{parent:It}=He;for(;It&&!qe;)qe=R0(this,It,ce,we),It=It.parent;return!qe})),ke}getAllAtoms(a=0){const y=[],b=this.lastOffset;for(let z=a;z<=b;z++)y.push(this.atoms[z]);for(let z=0;z<a;z++)y.push(this.atoms[z]);return y}findAtom(a,y=0,b="forward"){let z;const te=this.lastOffset;if(b==="forward"){for(let ae=y;ae<=te;ae++)if(z=this.atoms[ae],a(z))return z;for(let ae=0;ae<y;ae++)if(z=this.atoms[ae],a(z))return z;return}for(let ae=y;ae>=0;ae--)if(z=this.atoms[ae],a(z))return z;for(let ae=te;ae>y;ae--)if(z=this.atoms[ae],a(z))return z}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 oi({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 oi.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 Nl(a);if(b==="spoken")return Mf(a);if(b==="spoken-text"){const z=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const te=Mf(a);return window.MathfieldElement.textToSpeechMarkup=z,te}if(b==="spoken-ssml"||b==="spoken-ssml-with-highlighting"){const z=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const te=Mf(a);return window.MathfieldElement.textToSpeechMarkup=z,te}return b==="ascii-math"?Os(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 z,te;if(Zu(a)&&Zu(y)?(z=[this.normalizeRange([a,y])],te=b):sd(a)?(z=[this.normalizeRange(a)],te=y):xd(a)?(z=a.ranges,te=y):(z=[this.normalizeRange([0,-1])],te=a),te!=null||(te="latex"),te==="math-json"){if(!window.MathfieldElement.computeEngine)return window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`The CortexJS Compute Engine library is not available.
|
|
|
Load the library, for example with:
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),'["Error", "compute-engine-not-available"]';const ae=this.getValue({ranges:z},"latex-unstyled");try{const ce=window.MathfieldElement.computeEngine.parse(ae);return JSON.stringify(ce.json)}catch(ce){return JSON.stringify(["Error",`'${ce.toString()}'`])}}if(te.startsWith("latex")){const ae={expandMacro:te==="latex-expanded",skipStyles:te==="latex-unstyled",skipPlaceholders:te==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return el(z.map(ce=>oi.serialize(this.getAtoms(ce),ae)))}return z.map(ae=>this.getAtoms(ae).map(ce=>this.atomToString(ce,te)).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[z,te]=b,{parent:ae}=this.at(te);if(ae&&(ae.type==="genfrac"||ae.type==="subsup"))for(;ae!==this.root&&Pp(this,ae,[z,te]);)te=this.offsetOf(ae),ae=ae.parent;for(ae=this.at(z).parent;ae!==this.root&&Pp(this,ae,[z,te]);)z=this.offsetOf(ae.leftSibling),ae=ae.parent;if(ae=this.at(te).parent,(ae==null?void 0:ae.type)==="genfrac")for(;ae!==this.root&&Pp(this,ae,[z,te]);)te=this.offsetOf(ae),console.assert(te>=0),ae=ae.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[z,te]],direction:"none"}})}announce(a,y,b=[]){var z,te;((te=(z=this.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("announce",{detail:{command:a,previousPosition:y,atoms:b},cancelable:!0,bubbles:!0,composed:!0})))!=null?te:!0)&&oy(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,z=this._anchor,te=this._position,ae=this.silenceNotifications;this.silenceNotifications=!0;const ce=this.root.changeCounter;y();const we=this.root.changeCounter!==ce,ke=z!==this._anchor||te!==this._position||ld(this._selection,b)==="different";return this.silenceNotifications=ae,a.content&&we&&this.contentDidChange({inputType:a.type}),a.selection&&ke&&this.selectionDidChange(),we||ke}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 z;if(Zu(a)){const te=this.normalizeOffset(a);if(Zu(y)){const ae=this.normalizeOffset(y);z=te<=ae?{ranges:[[te,ae]],direction:"none"}:{ranges:[[ae,te]],direction:"backward"}}else z={ranges:[[te,te]],direction:"none"}}else if(sd(a)){const te=this.normalizeOffset(a[0]),ae=this.normalizeOffset(a[1]);z=te<=ae?{ranges:[[te,ae]],direction:"none"}:{ranges:[[ae,te]],direction:"backward"}}else xd(a)&&(z={ranges:a.ranges.map(te=>this.normalizeRange(te)),direction:(b=a.direction)!=null?b:"none"});return console.assert(z!==void 0),z}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(Gc(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",De(be({},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(Gc(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function R0(a,y,b,z){const te=a.offsetOf(y);if(te<b||te>z)return!1;if(!y.hasChildren)return!0;const ae=a.offsetOf(y.firstChild);if(ae>=b&&ae<=z){const ce=a.offsetOf(y.lastChild);if(ce>=b&&ce<=z)return!0}return!1}function Pp(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[z,te]=b,ae=a.offsetOf(y.firstChild),ce=a.offsetOf(y.lastChild);return ae>=z&&ae<=te&&ce>=ae&&ce<=te}function ah(a,y,b,z){var te,ae,ce,we,ke,He;const qe=b.parent;if(qe&&b instanceof se){const It=!z&&y==="forward"||z==="body"&&y==="backward";let nn=It?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return It?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(qe.addChildrenAfter(b.removeBranch("body"),b),qe.removeChild(b),nn--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(qe.addChildrenAfter(b.removeBranch("body"),b),qe.removeChild(b),nn--),a.position=nn,!0}if(qe&&b.type==="surd"){if(y==="forward"&&!z||y==="backward"&&z==="body"){const It=b.leftSibling;b.hasChildren&&qe.addChildrenAfter(b.removeBranch("body"),b),qe.removeChild(b),a.position=a.offsetOf(It)}else y==="forward"&&z==="body"?a.position=a.offsetOf(b):!z&&y==="backward"?b.hasChildren?a.position=a.offsetOf(b.lastChild):(a.position=Math.max(0,a.offsetOf(b)-1),qe.removeChild(b)):z==="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(qe&&(b.type==="box"||b.type==="enclose")){const It=z&&y==="backward"||!z&&y==="forward"?b.leftSibling:b.lastChild;return qe.addChildrenAfter(b.removeBranch("body"),b),qe.removeChild(b),a.position=a.offsetOf(It),!0}if(b.type==="genfrac"||b.type==="overunder"){if(!z)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 It=oh.fractionNavigationOrder==="numerator-denominator"?"above":"below",nn=It==="above"?"below":"above";if(qe&&(y==="forward"&&z===It||y==="backward"&&z===nn)){const Sn=b.removeBranch(It),In=b.removeBranch(nn);return qe.addChildrenAfter([...Sn,...In],b),qe.removeChild(b),a.position=a.offsetOf(Sn.length>0?Sn[Sn.length-1]:In[0]),!0}return y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b),!0}if(b.isExtensibleSymbol||b.type==="subsup"){if(!z&&y==="forward")return!1;if(!z){if(b.subscript||b.superscript){const It=y==="forward"?(ce=(te=b.superscript)==null?void 0:te[0])!=null?ce:(ae=b.subscript)==null?void 0:ae[0]:(He=(we=b.subscript)==null?void 0:we[0].lastSibling)!=null?He:(ke=b.superscript)==null?void 0:ke[0].lastSibling;return It&&(a.position=a.offsetOf(It)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const It=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=It,!0}if(z==="superscript")if(y==="backward"){const It=a.offsetOf(b.firstChild)-1;console.assert(It>=0),a.position=It}else b.subscript?a.position=a.offsetOf(b.subscript[0]):a.position=a.offsetOf(b);else z==="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(z&&b.hasEmptyBranch(z)&&(b.removeBranch(z),b.type==="subsup"&&!b.subscript&&!b.superscript)){const It=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=It}return!0}if((qe==null?void 0:qe.type)==="genfrac"&&!z&&b.type!=="first"){let It=a.offsetOf(b.leftSibling);return qe.removeChild(b),qe.hasEmptyBranch("above")&&qe.hasEmptyBranch("below")?(It=a.offsetOf(qe.leftSibling),qe.parent.removeChild(qe),a.announce("delete",void 0,[qe]),a.position=It,!0):(a.announce("delete",void 0,[b]),a.position=It,!0)}if(y==="backward"&&((qe==null?void 0:qe.command)==="\\ln"||(qe==null?void 0:qe.command)==="\\log")&&b.parentBranch!=="body"){const It=a.offsetOf(qe.leftSibling);return qe.parent.removeChild(qe),a.announce("delete",void 0,[qe]),a.position=It,!0}return!1}function cy(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&&ah(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(ah(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])}}):Yc(a,Zs(a.selection),"deleteContentBackward")}function dy(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentForward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var y,b;let z=a.at(a.position).rightSibling;if(z&&ah(a,"forward",z))return;if(z){if(a.at(a.position).isLastSibling&&ah(a,"forward",z.parent,z.parentBranch))return}else{if(z=a.at(a.position),z.isLastSibling&&ah(a,"forward",z.parent,z.parentBranch))return;z=void 0}if(a.position===a.lastOffset||!z){a.announce("plonk");return}z.parent.removeChild(z);let te=(y=a.at(a.position))==null?void 0:y.rightSibling;for(;(te==null?void 0:te.type)==="subsup";)te.parent.removeChild(te),te=(b=a.at(a.position))==null?void 0:b.rightSibling;a.announce("delete",void 0,[z])}):Yc(a,Zs(a.selection),"deleteContentForward")}function Yc(a,y,b){const z=a.getAtoms(y);if(z.length>0&&z[0].parent){let te=z[0].parent.firstChild;te.type==="first"&&(te=te.rightSibling);const ae=z[z.length-1].parent.lastChild;let ce=z[0];ce.type==="first"&&(ce=ce.rightSibling);const we=z[z.length-1];if(ce===te&&we===ae){const ke=z[0].parent;ke.parent&&ke.type!=="prompt"&&(y=[a.offsetOf(ke.leftSibling),a.offsetOf(ke)])}if(z.length===1&&z[0].type==="placeholder"&&z[0].parent.type==="genfrac"){const ke=z[0].parent,He=z[0].parentBranch==="below"?"above":"below",qe=a.offsetOf(ke.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var It,nn;const Sn=ke.removeBranch(He);if(Sn.length===1&&Sn[0].type==="placeholder")(nn=ke.parent)==null||nn.removeChild(ke),a.position=Math.max(0,qe);else{const In=ke.parent.addChildrenAfter(Sn,ke);(It=ke.parent)==null||It.removeChild(ke),a.position=a.offsetOf(In)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}rc({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Yc(a,[0,-1],"deleteContent"),deleteForward:a=>dy(a),deleteBackward:a=>cy(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Yc(a,[a.anchor,op(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Yc(a,[a.anchor,op(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Yc(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Yc(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Yc(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Yc(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var fy=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${Qe("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>`,hy=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${Qe("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>`,py=class{constructor(a,y){this.focusBlurInProgress=!1;var b,z,te;this.options=be(De(be({},Dh()),{macros:yn(),registers:$u()}),Bh(y)),this.eventController=new AbortController;const ae=this.eventController.signal;y.eventSink&&(this.host=y.eventSink),this.element=a,a.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let ce=(z=(b=y.value)!=null?b:this.element.textContent)!=null?z:"";ce=ce.trim();const we=$p(this.options),ke=new oi({type:"root",mode:we,body:un(ce,{context:this.context})});this.model=new uy(this,we,ke),this.undoManager=new zv(this.model);const He=[];if(He.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>"),He.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),He.push("<span part=content class=ML__content>"),He.push(jp(this)),He.push("</span>"),window.mathVirtualKeyboard&&(He.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">`),He.push(fy),He.push("</div>")),He.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),He.push(hy),He.push("</div>"),He.push("</span>"),He.push("<span class=ML__sr-only>"),He.push("<span role=status aria-live=assertive aria-atomic=true></span>"),He.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(He.join("")),!this.element.children){console.error("%cMathLive 0.98.5: Something went wrong and the mathfield could not be created.%c\nIf you are using Vue, this may be because you are using the runtime-only build of Vue. Make sure to include `runtimeCompiler: true` in your Vue configuration. There may a warning from Vue in the log above.","color:red;font-family:system-ui;font-size:1.2rem;font-weight:bold","color:inherit;font-family:system-ui;font-size:inherit;font-weight:inherit");return}this._l10Subscription=dt.subscribe(()=>dt.update(this.element)),dt.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",It=>It.stopImmediatePropagation(),{capture:!1,signal:ae}),this.field.addEventListener("wheel",this,{passive:!1,signal:ae}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:ae}):this.field.addEventListener("mousedown",this,{signal:ae}),(te=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||te.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(Gc(this)))},{signal:ae}),this._menu=new Sg(ey(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:ae});const qe=this.element.querySelector("[part=menu-toggle]");qe==null||qe.addEventListener("pointerdown",It=>{if(It.currentTarget!==qe||this._menu.state!=="closed")return;this.element.classList.add("tracking");const nn=qe.getBoundingClientRect();this._menu.modifiers=Vd(It),this._menu.show({target:qe,location:{x:nn.left,y:nn.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),It.preventDefault(),It.stopPropagation()},{signal:ae}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(qe.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=jm(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:ae}),document.addEventListener("scroll",this,{signal:ae}),this.resizeObserver=new ResizeObserver(()=>Ms(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:ae}),jf&&!dt.locale.startsWith(jf.locale)&&Zm(dt.locale),hc!=="ready"&&document.fonts.ready.then(()=>Eh(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(Gc(this)),zh(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,gp())}showMenu(a){var y,b;const z=(b=(y=a==null?void 0:a.location)!=null?y:ec(this.field))!=null?b:void 0,te=a==null?void 0:a.modifiers,ae=this.element.querySelector("[part=container]");return this._menu.show({target:ae,location:z,modifiers:te})}get colorMap(){return a=>{var y,b,z;return(z=(b=(y=this.options).colorMap)==null?void 0:b.call(y,a))!=null?z:mt(a)}}get backgroundColorMap(){return a=>{var y,b,z,te,ae,ce;return(ce=(ae=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?ae:(te=(z=this.options).colorMap)==null?void 0:te.call(z,a))!=null?ce: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=oi.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=be({},a[0].style);for(const b of a)for(const[z,te]of Object.entries(b.style))y[z]!==te&&delete y[z];return y}queryStyle(a){const y=fp(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 ke of Object.keys(y)){const He=this.queryStyle({[ke]:y[ke]});if(He==="none")return"none";if(He==="some")return"some"}return"all"}const z=Object.keys(y)[0],te=y[z];if(this.model.selectionIsCollapsed)return this.effectiveStyle[z]===te?"all":"none";const ae=this.model.getAtoms(this.model.selection,{includeChildren:!0});let ce=ae.length;if(ce===0)return"none";let we=0;for(const ke of ae){if(ke.type==="first"){ce-=1;continue}ke.style[z]===te&&(we+=1)}return we===0?"none":we===ce?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,z]=Ym(this.options.keybindings,(a=Vf())!=null?a:Hm());return((y=Vf())==null?void 0:y.score)>0&&(this._keybindings=b,z.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",z)),b}get menu(){return this._menu}setOptions(a){var y;this.options=be(be({},this.options),Bh(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 z=oi.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==z)&&jo.insert(this.model,z,{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)&&Ms(this)}getOptions(a){return Qd(this.options,a)}getOption(a){return Qd(this.options,a)}handleEvent(a){return Fd(this,null,function*(){var y;if(Iu(this)){if(np(a)){if(!Hd(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 z=a.data.command;if(xf(z)==="virtual-keyboard")return;this.executeCommand(z)}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"&&h0(this,a);break;case"pointerdown":this.userSelect!=="none"&&(h0(this,a),a.shiftKey===!1&&(yield D0(a,this.element.querySelector("[part=container]"),this._menu))&&Nh.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield D0(a,this.element.querySelector("[part=container]"),this._menu))&&Nh.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&zh(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Iu(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Iu(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!Iu(this))return;dt.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose();const a=this.element;delete a.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,Xv(),tv(),gg()}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 xf(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Gc(this))),!1):sv(this,a)}get errors(){return Nn(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=Nf(this.model,this.model.position))!=null?b:"math");const z=this.undoManager.canUndo();jo.insert(this.model,a,y)&&(Ms(this),z||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 z=window.mathVirtualKeyboard.boundingRect,te=this.host.getBoundingClientRect();te.bottom>z.top&&((a=window.document.scrollingElement)==null||a.scrollBy(0,te.bottom-z.top+8))}}this.dirty&&Ud(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=ec(this.field);else{const z=Zd(this);if(z.length>0){let te=-1/0,ae=-1/0;for(const ce of z)ce.right>te&&(te=ce.right),ce.top<ae&&(ae=ce.top);b={x:te+y.left-this.field.scrollLeft,y:ae+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const z=this.host.getBoundingClientRect(),te=b.y;let ae=this.host.scrollTop;te<z.top?ae=te-z.top+this.host.scrollTop:te>z.bottom&&(ae=te-z.bottom+this.host.scrollTop+b.height),this.host.scroll({top:ae,left:0})}if(b){const z=b.x-window.scrollX;let te=this.field.scrollLeft;z<y.left?te=z-y.left+this.field.scrollLeft-20:z>y.right&&(te=z-y.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:te})}}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(Vp),window.MathfieldElement.playSound("keypress")),a==="\\\\"?qp(this.model):a==="&"?e0(this.model):this.model.selectionIsCollapsed?jo.insert(this.model,a,be({style:this.model.at(this.model.position).computedStyle},y)):jo.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Ms(this),y.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(a,y="",b=""){var z;if(this.model.mode===a||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const te=this.model.mode;if(this.model.mode=a,!((z=this.host)!=null&&z.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=te;return}const ae=this.model.mode,{model:ce}=this;ce.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let we=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const ke=un(y,{context:this.context,parseMode:a});ce.collapseSelection("forward");const He=ce.at(ce.position);ce.position=ce.offsetOf(He.parent.addChildrenAfter(ke,He)),we=!0}if(this.model.mode=a,a==="latex"){let ke=ce.selectionIsCollapsed;yf(this,"accept");let He,qe=ce.at(ce.position);if(ke)He="\\";else{const nn=Zs(ce.selection);He=this.model.getValue(nn,"latex");const Sn=this.model.extractAtoms(nn);Sn.length===1&&Sn[0].type==="placeholder"&&(He=y,ke=!0),qe=ce.at(nn[0])}const It=new fs(He);qe.parent.addChildAfter(It,qe),ke?ce.position=ce.offsetOf(It.lastChild):ce.setSelection(ce.offsetOf(It.firstChild),ce.offsetOf(It.lastChild))}else Uf(ce).forEach(ke=>{ke.isError=!1});if(b){const ke=un(b,{context:this.context,parseMode:ae});ce.collapseSelection("forward");const He=ce.at(ce.position);ce.position=ce.offsetOf(He.parent.addChildrenAfter(ke,He)),we=!0}return Ms(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),we}),this.model.mode=a,window.mathVirtualKeyboard.update(Gc(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,z;const te={operation:"set",silenceNotifications:!1};sd(y)?te.range=y:(y.operation==="toggle"&&(te.operation="toggle"),te.range=y.range,te.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const ae=fp(this,a),ce=(z=te.operation)!=null?z:"set";if(te.range===void 0&&this.model.selectionIsCollapsed){if(ce==="set"){this.defaultStyle=be(be({},this.defaultStyle),ae);return}const we=be({},this.defaultStyle);for(const ke of Object.keys(ae))we[ke]===ae[ke]?(ke==="color"&&delete we.verbatimColor,ke==="backgroundColor"&&delete we.verbatimBackgroundColor,delete we[ke]):we[ke]=ae[ke];this.defaultStyle=we;return}this.model.deferNotifications({content:!te.silenceNotifications,type:"insertText"},()=>{if(te.range===void 0)for(const we of this.model.selection.ranges)ip(this.model,we,ae,{operation:ce});else ip(this.model,te.range,ae,{operation:ce})}),Ms(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=ec(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=eh(this,a,y,{bias:0});if(b<0)return!1;const z=this.model.position;return this.model.position=b,this.model.announce("move",z),Ms(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 z=this.model.offsetOf(b.firstChild),te=this.model.offsetOf(b.lastChild);return this.model.getValue(z,te,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 z=this.getPrompt(a);if(!z){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}const te=this.model.getBranchRange(this.model.offsetOf(z),"body");this.model.setSelection(te),this.insert(y,De(be({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Ms(this)}setPromptState(a,y,b){const z=this.getPrompt(a);if(!z){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}y==="undefined"?z.correctness=void 0:typeof y=="string"&&(z.correctness=y),typeof b=="boolean"&&(z.locked=b,z.captureSelection=b),Ms(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(Gc(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(Gc(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(Gc(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 z=b.at(b.position),te=(a=z.mode)!=null?a:$p(this.options);this.model.mode!==te&&(this.model.mode==="latex"?(yf(this,"accept",{mode:te}),b.position=b.offsetOf(z)):this.switchMode(te))}(y=this.host)==null||y.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Gc(this)),zh(this)}onContentWillChange(a){var y,b,z;return(z=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",De(be({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?z:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),Ud(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="",bf(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})),Ms(this),this.focusBlurInProgress=!1,gp();const z=new AbortController,te=z.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{Iu(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:te})},{once:!0,signal:te}),setTimeout(()=>z.abort(),100)}onInput(a){up(this,a)}onKeystroke(a){return c0(this,a)}onCompositionStart(a){this.model.deleteAtoms(Zs(this.model.selection));const y=ec(this.field);y&&requestAnimationFrame(()=>{Ud(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Fv(this.model,a),Ms(this)}onCompositionEnd(a){Pv(this.model),up(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),jo.onCopy(this,a),Yc(this.model,Zs(this.model.selection),"deleteByCut"),this.snapshot("cut"),Ms(this))}onCopy(a){jo.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=jo.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(),yh(this),zh(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=>Vt(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function z0(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)z0(y)}function Ip(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(z=>{z instanceof HTMLElement&&Ip(z)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(z=>{z instanceof HTMLElement&&Ip(z,y)})))}function my(a,y){var b;if(!tt())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 z=new window.AWS.Polly({apiVersion:"2016-06-10"}),te={OutputFormat:"json",VoiceId:(b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna",Engine:"standard",Text:y,TextType:"ssml",SpeechMarkTypes:["ssml"]};kd().readAloudElement=a,z.synthesizeSpeech(te,(ae,ce)=>{if(ae){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ae}`);return}if(!(ce!=null&&ce.AudioStream)){console.log("polly.synthesizeSpeech():",ce);return}const we=new TextDecoder("utf-8").decode(new Uint8Array(ce.AudioStream));kd().readAloudMarks=we.split(`
|
|
|
`).map(ke=>ke?JSON.parse(ke):{}),kd().readAloudTokens=[];for(const ke of kd().readAloudMarks)ke.value&&kd().readAloudTokens.push(ke.value);kd().readAloudCurrentMark="",te.OutputFormat="mp3",te.SpeechMarkTypes=[],z.synthesizeSpeech(te,(ke,He)=>{if(ke){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${ke}`);return}if(!(He!=null&&He.AudioStream))return;const qe=new Uint8Array(He.AudioStream),It=new Blob([qe.buffer],{type:"audio/mpeg"}),nn=URL.createObjectURL(It),Sn=kd();Sn.readAloudAudio?Sn.readAloudAudio.pause():(Sn.readAloudAudio=new Audio,Sn.readAloudAudio.addEventListener("ended",()=>{const In=Sn.readAloudMathfield;Sn.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),In?(Ud(In),Sn.readAloudElement=null,Sn.readAloudMathfield=null,Sn.readAloudTokens=[],Sn.readAloudMarks=[],Sn.readAloudCurrentMark=""):z0(Sn.readAloudElement)}),Sn.readAloudAudio.addEventListener("timeupdate",()=>{let In="";const Rr=Sn.readAloudAudio.currentTime*1e3+100;for(const ia of Sn.readAloudMarks)ia.time<Rr&&(In=ia.value);Sn.readAloudCurrentMark!==In&&(Sn.readAloudCurrentToken=In,In&&In===Sn.readAloudFinalToken?Sn.readAloudAudio.pause():(Sn.readAloudCurrentMark=In,Ip(Sn.readAloudElement,Sn.readAloudCurrentMark)))})),Sn.readAloudAudio.src=nn,Sn.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Sn.readAloudAudio.play()})})}tt()||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 Pl=new WeakMap,vy=.5,Md={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 = ..."},cu=class nf extends HTMLElement{static get formAssociated(){return Pf()}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,iv())}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,z,te;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:(z=y.return)!=null?z:y.default,delete:(te=y.delete)!=null?te:y.default,default:y.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(y){this.audioBuffers={},this._plonkSound=y}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(y){this._speechEngine=y}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(y){this._speechEngineRate=y}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(y){this._speechEngineVoice=y}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(y){this._textToSpeechMarkup=y}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(y){this._textToSpeechRules=y}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(y){this._textToSpeechRulesOptions=y}static get locale(){return dt.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),dt.locale=y}get locale(){throw new Error("Use MathfieldElement.locale instead")}set locale(y){throw new Error("Use MathfieldElement.locale instead")}static get strings(){return dt.strings}static set strings(y){dt.merge(y)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(y){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(y){this._decimalSeparator=y,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(y){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var y,b;if(this._computeEngine===void 0){const z=(y=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;if(!z)return null;this._computeEngine=new z,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 Fd(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 z=this.soundsDirectory;if(!(z==null||z==="null"||b==="none"||b==="null"))try{const ae=yield(yield fetch(yield Wp(`${z}/${b}`))).arrayBuffer(),ce=yield this.audioContext.decodeAudioData(ae);this.audioBuffers[y]=ce}catch(te){}})}static playSound(y){return Fd(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 z=this.audioContext.createGain();z.gain.value=vy,b.connect(z).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const z of Object.keys(y))if(Md[z])if(Md[z].startsWith("mf."))if(Md[z].startsWith(`mf.${z}`))b.push(`Option \`${z}\` cannot be used as a constructor option. Use ${Md[z]}`);else{const te=Md[z].match(/([a-zA-Z]+) =/);b.push(`Option \`${z}\` has been renamed \`${te[1]}\``)}else b.push(`Option \`${z}\` cannot be used as a constructor option. Use ${Md[z]}`);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 z of b)console.warn(z);console.groupEnd()}}if(Pf()&&(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=[Ic("core"),Ic("mathfield"),Ic("mathfield-element"),Ic("ui"),Ic("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>"+uc("core")+uc("mathfield")+uc("mathfield-element")+uc("ui")+uc("menu")+'</style><span></span><slot style="display:none"></slot>';y&&this._setOptions(y),this.shadowRoot.addEventListener("slotchange",()=>{var b;const z=this.shadowRoot.querySelector("slot:not([name])");this.value=(b=z==null?void 0:z.assignedNodes().map(te=>te.nodeType===3?te.textContent:"").join("").trim())!=null?b:""})}showMenu(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.showMenu(y))!=null?z:!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 z,te;return(te=(z=this._mathfield)==null?void 0:z.getPromptValue(y,b))!=null?te:""}setPromptValue(y,b,z){var te;(te=this._mathfield)==null||te.setPromptValue(y,b,z)}getPromptRange(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.getPromptRange(y))!=null?z:null}getPrompts(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.getPrompts(y))!=null?z:[]}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,z;if(!this._mathfield)return;const te=(z=(b=nf.computeEngine)==null?void 0:b.box(y).latex)!=null?z:null;te!==null&&this._mathfield.setValue(te),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?Qd(this._mathfield.options,y):Pl.has(this)?be({},Qd(be(be({},Dh()),Bh(Pl.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?Qd(this._mathfield.options,y):Pl.has(this)?Qd(be(be({},Dh()),Bh(Pl.get(this).options)),y):null}reflectAttributes(){const y=Dh(),b=this._getOptions();Object.keys(nf.optionsAttributes).forEach(z=>{const te=pd(z);nf.optionsAttributes[z]==="on/off"?y[te]!==b[te]?this.setAttribute(z,b[te]?"on":"off"):this.removeAttribute(z):y[te]!==b[te]&&(nf.optionsAttributes[z]==="boolean"?b[te]?this.setAttribute(z,""):this.removeAttribute(z):(typeof b[te]=="string"||typeof b[te]=="number")&&this.setAttribute(z,b[te].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(Pl.has(this)){const b=be(be({},Pl.get(this).options),y);Pl.set(this,De(be({},Pl.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else Pl.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))Md[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${Md[b]}`);console.groupEnd(),this._setOptions(y)}executeCommand(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.executeCommand(y))!=null?z:!1}getValue(y,b,z){var te,ae;if(this._mathfield)return this._mathfield.model.getValue(y,b,z);if(Pl.has(this)){let ce,we,ke;if(xd(y)?([ce,we]=y.ranges[0],ke=b):sd(y)?([ce,we]=y,ke=b):Zu(y)&&Zu(b)?(ce=y,we=b,ke=z):(ce=0,we=-1,ke=y),(ke===void 0||ke==="latex")&&ce===0&&we===-1)return(ae=(te=Pl.get(this).value)!=null?te:this.textContent)!=null?ae:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(Pl.has(this)){const te=Pl.get(this).options;Pl.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:te,menuItems:void 0});return}const z=lh(this);Pl.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:z,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 z,te;return(te=(z=this._mathfield)==null?void 0:z.insert(y,b))!=null?te:!1}applyStyle(y,b){var z;return(z=this._mathfield)==null?void 0:z.applyStyle(y,b)}queryStyle(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.queryStyle(y))!=null?z:"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 z,te;return(te=(z=this._mathfield)==null?void 0:z.setCaretPoint(y,b))!=null?te:!1}offsetFromPoint(y,b,z){return this._mathfield?eh(this._mathfield,y,b,z):-1}hitboxFromOffset(y){if(!this._mathfield)return null;const b=this._mathfield.model.at(y);if(!b)return null;const z=Kc(this._mathfield,b);return z?new DOMRect(z.left,z.top,z.right-z.left,z.bottom-z.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,z,te,ae;jc.state==="closed"&&((z=(b=this._mathfield)==null?void 0:b.menu)==null?void 0:z.state)==="closed"&&(y.type==="pointerdown"&&this.onPointerDown(),y.type==="focus"&&((te=this._mathfield)==null||te.focus()),y.type==="blur"&&((ae=this._mathfield)==null||ae.blur()))}connectedCallback(){var y,b,z,te;const ae=window.getComputedStyle(this),ce=this.shadowRoot,we=ae.userSelect!=="none";if(we)ce.host.addEventListener("pointerdown",this,!0);else{const qe=ce.querySelector("span");qe.style.pointerEvents="none"}ce.host.addEventListener("focus",this,!0),ce.host.addEventListener("blur",this,!0),Pf()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),we&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const ke=ce.querySelector("slot:not([name])");if(ke)try{this._style=ke.assignedElements().filter(qe=>qe.tagName.toLowerCase()==="style").map(qe=>qe.textContent).join("")}catch(qe){console.error(qe)}if(this._style){const qe=document.createElement("style");qe.textContent=this._style,ce.appendChild(qe)}let He="";if(this.hasAttribute("value")?He=this.getAttribute("value"):He=(y=ke==null?void 0:ke.assignedNodes().map(qe=>qe.nodeType===3?qe.textContent:"").join("").trim())!=null?y:"",this._mathfield=new py(ce.querySelector(":host > span"),De(be({},(z=(b=Pl.get(this))==null?void 0:b.options)!=null?z:lh(this)),{eventSink:this,value:He})),!Pl.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const qe of Object.keys(nf.optionsAttributes))this.upgradeProperty(pd(qe))}if(!((te=this._mathfield)!=null&&te.model)){this._mathfield=null;return}if(Pl.has(this)){const qe=this._mathfield,It=Pl.get(this),nn=It.menuItems;qe.model.deferNotifications({content:!1,selection:!1},()=>{const Sn=It.value;Sn!==void 0&&qe.setValue(Sn),qe.model.selection=It.selection,Pl.delete(this)}),nn&&(this.menuItems=nn)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),xh()}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 z=Qd(this._mathfield.options,Object.keys(nf.optionsAttributes).map(te=>pd(te)));Pl.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:z}),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,z){if(b===z)return;const te=z!==null;switch(y){case"contenteditable":Ms(this._mathfield);break;case"disabled":this.disabled=te;break;case"read-only":case"readonly":this.readOnly=te;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(y){const b=!!y;b?(this.setAttribute("readonly",""),Pf()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(Pf()?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 z=!!y;z?this.setAttribute("disabled",""):this.removeAttribute("disabled"),Pf()?this._internals.ariaDisabled=z?"true":"false":this.setAttribute("aria-disabled",z?"true":"false"),z&&((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,z)=>{if(typeof z=="string")return y._getOption("registers")[z]},set(b,z,te){return typeof z!="string"?!1:(y._setOptions({registers:De(be({},y._getOption("registers")),{[z]:te})}),!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,z;return this._mathfield?(y=this._mathfield.menu._menuItems.map(te=>te.menuItem))!=null?y:[]:(z=(b=Pl.get(this))==null?void 0:b.menuItems)!=null?z:[]}set menuItems(y){var b;if(this._mathfield){const z=(b=this._mathfield.element)==null?void 0:b.querySelector("[part=menu-toggle]");z&&(z.style.display=y.length===0?"none":""),this._mathfield.menu.menuItems=y}Pl.has(this)?Pl.set(this,De(be({},Pl.get(this)),{menuItems:y})):Pl.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:lh(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,z){var te;(te=this._mathfield)==null||te.setPromptState(y,b,z)}getPromptState(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.getPromptState(y))!=null?z:[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:Pl.has(this)?Pl.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,Ms(this._mathfield);return}if(Pl.has(this)){Pl.set(this,De(be({},Pl.get(this)),{selection:y}));return}Pl.set(this,{value:void 0,selection:y,options:lh(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:Pl.has(this)?Pl.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Ms(this._mathfield)),Pl.has(this)){Pl.set(this,De(be({},Pl.get(this)),{selection:{ranges:[[y,y]]}}));return}Pl.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:lh(this),menuItems:void 0})}getOffsetDepth(y){var b,z;return this._mathfield?((z=(b=this._mathfield.model.at(y))==null?void 0:b.treeDepth)!=null?z:2)-2:0}get lastOffset(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.lastOffset)!=null?b:-1}};cu.version="0.98.5",cu._fontsDirectory="./fonts",cu._soundsDirectory="./sounds",cu.keypressVibration=!0,cu._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},cu._plonkSound="plonk.wav",cu.audioBuffers={},cu.createHTML=a=>a,cu._speechEngineRate="100%",cu._speechEngineVoice="Joanna",cu._textToSpeechMarkup="",cu._textToSpeechRules="mathlive",cu._textToSpeechRulesOptions={},cu.speakHook=ay,cu.readAloudHook=my,cu._decimalSeparator=".",cu.fractionNavigationOrder="numerator-denominator",cu._isFunction=a=>{var y,b;const z=window.MathfieldElement.computeEngine;return(b=(y=z==null?void 0:z.parse(a).domain)==null?void 0:y.isFunction)!=null?b:!1};var oh=cu;function pd(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function lh(a){const y={readOnly:!1},b=oh.optionsAttributes;return Object.keys(b).forEach(z=>{if(a.hasAttribute(z)){const te=a.getAttribute(z);z==="placeholder"?y.contentPlaceholder=te!=null?te:"":b[z]==="boolean"?y[pd(z)]=!0:b[z]==="on/off"?te==="on"?y[pd(z)]=!0:te==="off"?y[pd(z)]=!1:y[pd(z)]=void 0:b[z]==="number"?y[pd(z)]=Number.parseFloat(te!=null?te:"0"):y[pd(z)]=te}}),y}function Pf(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var Z0=oh,H0,K0,W0,j0;if(tt()&&!((H0=window.customElements)!=null&&H0.get("math-field"))){(W0=window[K0=Symbol.for("io.cortexjs.mathlive")])!=null||(window[K0]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=oh,(j0=window.customElements)==null||j0.define("math-field",oh)}function gy(a,y,b){let z=b,te=0;const ae=a.length;for(;z<y.length;){const ce=y[z];if(te<=0&&y.slice(z,z+ae)===a)return z;ce==="\\"?z++:ce==="{"?te++:ce==="}"&&te--,z++}return-1}function jh(a,y,b,z,te="latex"){const ae=[];for(const ce of a)if(ce.type==="text"){const we=ce.data;let ke=!0,He=0,qe;qe=we.indexOf(y),qe!==-1&&(He=qe,He>0&&ae.push({type:"text",data:we.slice(0,He)}),ke=!1);let It=!1;for(;!It;){if(ke){if(qe=we.indexOf(y,He),qe===-1){It=!0;break}He!==qe&&ae.push({type:"text",data:we.slice(He,qe)}),He=qe}else{if(qe=gy(b,we,He+y.length),qe===-1){It=!0;break}let nn=we.slice(He+y.length,qe);te==="ascii-math"&&([,nn]=ud(nn,{format:"ascii-math"})),ae.push({type:"math",data:nn,rawData:we.slice(He,qe+b.length),mathstyle:z}),He=qe+b.length}ke=!ke}He<we.length&&ae.push({type:"text",data:we.slice(He)})}else ae.push(ce);return ae}function V0(a,y,b){let z=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([te,ae])=>{z=jh(z,te,ae,"textstyle")}),y!=null&&y.display&&y.display.forEach(([te,ae])=>{z=jh(z,te,ae,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([te,ae])=>{z=jh(z,te,ae,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([te,ae])=>{z=jh(z,te,ae,"displaystyle","ascii-math")}),z}function yy(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const z="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+y.renderToMathML(a)+"</math>";b.innerHTML=window.MathfieldElement.createHTML(z)}catch(z){console.error(`MathLive 0.98.5: Could not convert "${a}"' to MathML with ${z}`),b.textContent=a}return b.className="ML__sr-only",b}function by(a,y,b,z){try{const te=y.renderToMarkup(a,{mathstyle:b,format:"html"}),ae=document.createElement("span");return ae.dataset.latex=a,ae.style.display=b==="displaystyle"?"flex":"inline-flex",ae.setAttribute("aria-hidden","true"),ae.setAttribute("translate","no"),ae.innerHTML=window.MathfieldElement.createHTML(te),ae}catch(te){if(console.error("Could not parse'"+a+"' with ",te),z)return document.createTextNode(a)}return null}function If(a,y,b,z){var te;const ae=by(a,b,y||"textstyle",z),ce=(te=b.renderAccessibleContent)!=null?te:"";if(ae&&/\b(mathml|speakable-text)\b/i.test(ce)){const we=document.createElement("span");if(/\bmathml\b/i.test(ce)&&b.renderToMathML&&we.append(yy(a,b)),/\bspeakable-text\b/i.test(ce)&&b.renderToSpeakableText){const ke=document.createElement("span");ke.setAttribute("translate","no");const He=b.renderToSpeakableText(a);ke.innerHTML=window.MathfieldElement.createHTML(He),ke.className="ML__sr-only",we.append(ke)}return we.append(ae),we}return ae}function xy(a,y){var b,z,te;let ae=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){ae=document.createDocumentFragment();const ce=If(a,"",y,!0);ce&&ae.appendChild(ce)}else{if(!a.trim())return null;const ce=V0(a,(z=y.TeX)==null?void 0:z.delimiters,(te=y.asciiMath)==null?void 0:te.delimiters);if(ce.length===1&&ce[0].type==="text")return null;ae=document.createDocumentFragment();for(const we of ce)if(we.type==="text")ae.appendChild(document.createTextNode(we.data));else{const ke=If(we.data,we.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);ke&&ae.appendChild(ke)}}return ae}function U0(a,y){var b,z,te,ae,ce,we,ke,He,qe,It,nn,Sn,In,Rr,ia,Nr;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const bi=(b=a.childNodes[0].textContent)!=null?b:"";if((z=y.TeX)!=null&&z.processEnvironments&&/^\s*\\begin/.test(bi)){a.textContent="";const Ti=If(bi,"",y,!0);Ti&&a.append(Ti);return}const ua=V0(bi,(te=y.TeX)==null?void 0:te.delimiters,(ae=y.asciiMath)==null?void 0:ae.delimiters);if(ua.length===1&&ua[0].type==="math"){a.textContent="";const Ti=If(ua[0].data,ua[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);Ti&&a.append(Ti);return}if(ua.length===1&&ua[0].type==="text")return}for(let bi=a.childNodes.length-1;bi>=0;bi--){const ua=a.childNodes[bi];if(ua.nodeType===3){const Ti=xy((ce=ua.textContent)!=null?ce:"",y);Ti&&(bi+=Ti.childNodes.length-1,ua.replaceWith(Ti))}else if(ua.nodeType===1){const Ti=ua,$a=ua.nodeName.toLowerCase();if($a==="script"){const ko=ua;let mo;if((we=y.processScriptTypePattern)!=null&&we.test(ko.type))mo=(ke=ko.textContent)!=null?ke:"";else if((He=y.processMathJSONScriptTypePattern)!=null&&He.test(ko.type))try{mo=(It=y.serializeToLatex)==null?void 0:It.call(y,JSON.parse((qe=ko.textContent)!=null?qe:""))}catch(Al){console.error(Al)}if(mo){let Al="textstyle";for(const Ca of ko.type.split(";")){const[pc,Xc]=Ca.toLowerCase().split("=");pc.trim()==="mode"&&(Al=Xc.trim()==="display"?"displaystyle":"textstyle")}const Yl=If(mo,Al,y,!0);Yl&&ko.parentNode.replaceChild(Yl,ko)}}else if(((Sn=(nn=y.processClassPattern)==null?void 0:nn.test(Ti.className))!=null?Sn:!1)||!((Rr=(In=y.skipTags)==null?void 0:In.includes($a))!=null&&Rr||(Nr=(ia=y.ignoreClassPattern)==null?void 0:ia.test(Ti.className))!=null&&Nr))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const mo=a.textContent;a.textContent="";const Al=If(mo!=null?mo:"","displaystyle",y,!0);Al&&a.append(Al)}else U0(Ti,y)}}}var Ey={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 Cy(a,y){var b,z,te,ae;try{const ce=be(be({},Ey),y);ce.ignoreClassPattern=new RegExp((b=ce.ignoreClass)!=null?b:""),ce.processClassPattern=new RegExp((z=ce.processClass)!=null?z:""),ce.processScriptTypePattern=new RegExp((te=ce.processScriptType)!=null?te:""),ce.processMathJSONScriptTypePattern=new RegExp((ae=ce.processMathJSONScriptType)!=null?ae:""),xh(),yu("core"),U0(a,ce)}catch(ce){ce instanceof Error?console.error("renderMathInElement(): "+ce.message):console.error("renderMathInElement(): Could not render math for element",a)}}function wy(a,y){const b=Bd.singleton;return b?(b.show(),Yf(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function Sy(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}rc({switchKeyboardLayer:wy,toggleVirtualKeyboard:Sy,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function kd(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function Fy(){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 Py(a){By(document.body,a)}function Ay(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 By(a,y){var b,z,te,ae;const ce=Ay(a);if(!ce)return;const we=y!=null?y:{};(b=we.renderToMarkup)!=null||(we.renderToMarkup=Js),(z=we.renderToMathML)!=null||(we.renderToMathML=Rg),(te=we.renderToSpeakableText)!=null||(we.renderToSpeakableText=zg),(ae=we.serializeToLatex)!=null||(we.serializeToLatex=Zg),Cy(ce,we)}var Iy={mathlive:"0.98.5"}},16722:function(An,tn,ne){"use strict";ne.d(tn,{Z:function(){return be}});const E=De=>typeof De=="object"&&De!=null&&De.nodeType===1,ye=(De,Pe)=>(!Pe||De!=="hidden")&&De!=="visible"&&De!=="clip",Ee=(De,Pe)=>{if(De.clientHeight<De.scrollHeight||De.clientWidth<De.scrollWidth){const et=getComputedStyle(De,null);return ye(et.overflowY,Pe)||ye(et.overflowX,Pe)||(Fe=>{const Ie=(tt=>{if(!tt.ownerDocument||!tt.ownerDocument.defaultView)return null;try{return tt.ownerDocument.defaultView.frameElement}catch(ze){return null}})(Fe);return!!Ie&&(Ie.clientHeight<Fe.scrollHeight||Ie.clientWidth<Fe.scrollWidth)})(De)}return!1},Ye=(De,Pe,et,Fe,Ie,tt,ze,We)=>tt<De&&ze>Pe||tt>De&&ze<Pe?0:tt<=De&&We<=et||ze>=Pe&&We>=et?tt-De-Fe:ze>Pe&&We<et||tt<De&&We>et?ze-Pe+Ie:0,Ce=De=>{const Pe=De.parentElement;return Pe==null?De.getRootNode().host||null:Pe},Se=(De,Pe)=>{var et,Fe,Ie,tt;if(typeof document=="undefined")return[];const{scrollMode:ze,block:We,inline:lt,boundary:Xe,skipOverflowHiddenElements:Dt}=Pe,dt=typeof Xe=="function"?Xe:Tt=>Tt!==Xe;if(!E(De))throw new TypeError("Invalid target");const Qe=document.scrollingElement||document.documentElement,Ze=[];let Ae=De;for(;E(Ae)&&dt(Ae);){if(Ae=Ce(Ae),Ae===Qe){Ze.push(Ae);break}Ae!=null&&Ae===document.body&&Ee(Ae)&&!Ee(document.documentElement)||Ae!=null&&Ee(Ae,Dt)&&Ze.push(Ae)}const Je=(Fe=(et=window.visualViewport)==null?void 0:et.width)!=null?Fe:innerWidth,Re=(tt=(Ie=window.visualViewport)==null?void 0:Ie.height)!=null?tt:innerHeight,{scrollX:vt,scrollY:$e}=window,{height:mt,width:Be,top:xt,right:Ve,bottom:Ot,left:nt}=De.getBoundingClientRect(),{top:wt,right:Mt,bottom:at,left:Le}=(Tt=>{const ct=window.getComputedStyle(Tt);return{top:parseFloat(ct.scrollMarginTop)||0,right:parseFloat(ct.scrollMarginRight)||0,bottom:parseFloat(ct.scrollMarginBottom)||0,left:parseFloat(ct.scrollMarginLeft)||0}})(De);let Me=We==="start"||We==="nearest"?xt-wt:We==="end"?Ot+at:xt+mt/2-wt+at,st=lt==="center"?nt+Be/2-Le+Mt:lt==="end"?Ve+Mt:nt-Le;const Ht=[];for(let Tt=0;Tt<Ze.length;Tt++){const ct=Ze[Tt],{height:Ct,width:Zt,top:gn,right:$t,bottom:Wt,left:on}=ct.getBoundingClientRect();if(ze==="if-needed"&&xt>=0&&nt>=0&&Ot<=Re&&Ve<=Je&&(ct===Qe&&!Ee(ct)||xt>=gn&&Ot<=Wt&&nt>=on&&Ve<=$t))return Ht;const dn=getComputedStyle(ct),ln=parseInt(dn.borderLeftWidth,10),xe=parseInt(dn.borderTopWidth,10),fe=parseInt(dn.borderRightWidth,10),ue=parseInt(dn.borderBottomWidth,10);let he=0,me=0;const oe="offsetWidth"in ct?ct.offsetWidth-ct.clientWidth-ln-fe:0,Ne="offsetHeight"in ct?ct.offsetHeight-ct.clientHeight-xe-ue:0,At="offsetWidth"in ct?ct.offsetWidth===0?0:Zt/ct.offsetWidth:0,Ge="offsetHeight"in ct?ct.offsetHeight===0?0:Ct/ct.offsetHeight:0;if(Qe===ct)he=We==="start"?Me:We==="end"?Me-Re:We==="nearest"?Ye($e,$e+Re,Re,xe,ue,$e+Me,$e+Me+mt,mt):Me-Re/2,me=lt==="start"?st:lt==="center"?st-Je/2:lt==="end"?st-Je:Ye(vt,vt+Je,Je,ln,fe,vt+st,vt+st+Be,Be),he=Math.max(0,he+$e),me=Math.max(0,me+vt);else{he=We==="start"?Me-gn-xe:We==="end"?Me-Wt+ue+Ne:We==="nearest"?Ye(gn,Wt,Ct,xe,ue+Ne,Me,Me+mt,mt):Me-(gn+Ct/2)+Ne/2,me=lt==="start"?st-on-ln:lt==="center"?st-(on+Zt/2)+oe/2:lt==="end"?st-$t+fe+oe:Ye(on,$t,Zt,ln,fe+oe,st,st+Be,Be);const{scrollLeft:je,scrollTop:Pt}=ct;he=Ge===0?0:Math.max(0,Math.min(Pt+he/Ge,ct.scrollHeight-Ct/Ge+Ne)),me=At===0?0:Math.max(0,Math.min(je+me/At,ct.scrollWidth-Zt/At+oe)),Me+=Pt-he,st+=je-me}Ht.push({el:ct,top:he,left:me})}return Ht},pe=De=>De===!1?{block:"end",inline:"nearest"}:(Pe=>Pe===Object(Pe)&&Object.keys(Pe).length!==0)(De)?De:{block:"start",inline:"nearest"};function be(De,Pe){if(!De.isConnected||!(Ie=>{let tt=Ie;for(;tt&&tt.parentNode;){if(tt.parentNode===document)return!0;tt=tt.parentNode instanceof ShadowRoot?tt.parentNode.host:tt.parentNode}return!1})(De))return;const et=(Ie=>{const tt=window.getComputedStyle(Ie);return{top:parseFloat(tt.scrollMarginTop)||0,right:parseFloat(tt.scrollMarginRight)||0,bottom:parseFloat(tt.scrollMarginBottom)||0,left:parseFloat(tt.scrollMarginLeft)||0}})(De);if((Ie=>typeof Ie=="object"&&typeof Ie.behavior=="function")(Pe))return Pe.behavior(Se(De,Pe));const Fe=typeof Pe=="boolean"||Pe==null?void 0:Pe.behavior;for(const{el:Ie,top:tt,left:ze}of Se(De,pe(Pe))){const We=tt-et.top+et.bottom,lt=ze-et.left+et.right;Ie.scroll({top:We,left:lt,behavior:Fe})}}}}]);
|
|
|
}()); |