|
|
!(function(){var Fc=Math.pow;var bu=(gr,Wt,ke)=>new Promise((Ye,vt)=>{var x=re=>{try{me(ke.next(re))}catch(z){vt(z)}},Ae=re=>{try{me(ke.throw(re))}catch(z){vt(z)}},me=re=>re.done?Ye(re.value):Promise.resolve(re.value).then(x,Ae);me((ke=ke.apply(gr,Wt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[6913],{89489:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},59477:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},40001:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},65363:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},26227:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},49198:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},84105:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},41464:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},18785:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},73331:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},15277:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},52671:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},8657:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},56082:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},33853:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},15075:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},62772:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},43531:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},76618:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},61485:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},38819:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},47472:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},87395:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(se,pe){return vt.createElement(me.Z,(0,Ye.Z)({},se,{ref:pe,icon:Ae}))},z=vt.forwardRef(re),ie=z},41913:function(){"use strict"},8682:function(){"use strict"},20699:function(gr,Wt){"use strict";Wt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},67913:function(){"use strict"},5296: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 gr={},Wt="5.0",ke={},Ye=null,vt=!1,x=!1,Ae=null,me=!1,re=null,z=null,ie=0;ie<arguments.length;ie++){var oe=arguments[ie];if(oe!==null)switch(typeof oe){case"number":Wt=oe.toFixed(1);break;case"string":oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Wt=oe:Ae=oe;break;case"object":typeof oe.is3D!="undefined"?Ye=oe:ke=oe;break;case"boolean":vt=oe,x=!0;break}}Ye===null&&(Ye={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ke.material_id!==void 0&&!x&&(vt=!0)),Ae!==null&&ke.id===void 0&&(ke.id=Ae);var se="",pe="",ne=!1,ae=null,ue=null,de=null,he=!1,xe=null,Se=null,we=null,be=null,Me=null;ke.height!==void 0&&(ke.height=Math.round(ke.height)),ke.width!==void 0&&(ke.width=Math.round(ke.width));var Le=function(rt){return parseFloat(rt)>4?parseFloat(rt):5};gr.setHTML5Codebase=function(rt,qe){z=rt,ct(rt,qe)},gr.setJavaCodebase=gr.setJavaCodebaseVersion=gr.isCompiledInstalled=gr.setPreCompiledScriptPath=gr.setPreCompiledResourcePath=function(){},gr.setHTML5CodebaseVersion=function(rt,qe){var nt=parseFloat(rt);if(nt!==NaN&&nt<5){console.log("The GeoGebra HTML5 codebase version "+nt+" is deprecated. Using version latest instead.");return}re=rt,Xe(rt,qe)},gr.getHTML5CodebaseVersion=function(){return ue},gr.getParameters=function(){return ke},gr.setFontsCSSURL=function(rt){be=rt},gr.setGiacJSURL=function(rt){},gr.setJNLPFile=function(rt){se=rt},gr.setJNLPBaseDir=function(rt){},gr.inject=function(){function rt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var qe="auto",nt=ke.id,xt,yt=!1,Rt=0;Rt<arguments.length;Rt++){var Ot=arguments[Rt];typeof Ot=="string"?(Ot=Ot.toLowerCase(),Ot.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?qe=Ot:nt=arguments[Rt]):typeof Ot=="boolean"?yt=Ot:Ot instanceof HTMLElement&&(xt=Ot)}lt();function lt(){if(!me){setTimeout(lt,200);return}qe=ht(qe);var Ue=xt||document.getElementById(nt);if(!Ue){console.log("possibly bug on ajax loading? ");return}if(gr.removeExistingApplet(Ue,!1),ke.width===void 0&&Ue.clientWidth&&(ke.width=Ue.clientWidth),ke.height===void 0&&Ue.clientHeight&&(ke.height=Ue.clientHeight),!(ke.width&&ke.height)&&qe==="html5"&&(delete ke.width,delete ke.height),ae=qe,qe==="screenshot")Ie(Ue,ke);else{var $e=!1;ke.hasOwnProperty("playButton")&&ke.playButton||ke.hasOwnProperty("clickToLoad")&&ke.clickToLoad?$e=!0:ke.hasOwnProperty("playButtonAutoDecide")&&ke.playButtonAutoDecide&&($e=(!Ce()||rt())&&Ne()),$e?(ae="screenshot",Qe(Ue,ke,yt,qe)):Ve(Ue,ke,yt)}}};function Ce(){try{return window.self!==window.top}catch(rt){return!0}}function Ne(){return ke.hasOwnProperty("screenshotGenerator")&&ke.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}gr.getViews=function(){return Ye},gr.isJavaInstalled=function(){return!1};var Te=function(rt){var qe=function(Rt){var Ot=JSON.parse(Rt),lt=function(le){return le.type=="G"||le.type=="E"},Ue=Ot.elements?Ot.elements.filter(lt)[0]:Ot;if(!Ue||!Ue.url){nt();return}ke.fileName=Ue.url,De(Ue.settings||{}),Ye.is3D=!0;var $e="https://www.geogebra.org/images/";gr.setPreviewImage(xe||Ue.previewUrl,$e+"GeoGebra_loading.png",$e+"applet_play.png"),rt()},nt=function(){ke.onError&&ke.onError(),pt("Error: Fetching material (id "+ke.material_id+") failed.",ke)},xt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",yt="/materials/"+ke.material_id+"?scope=basic";Ee("https://"+xt+"/api/proxy.php?path="+encodeURIComponent(yt),qe,nt)};function De(rt){var qe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(nt){rt[nt]=!!rt[nt]}),qe.forEach(function(nt){ke[nt]===void 0&&rt[nt]!==void 0&&(ke[nt]=rt[nt])}),ke.showToolBarHelp===void 0&&(ke.showToolBarHelp=ke.showToolBar)}function Ee(rt,qe,nt){var xt=new XMLHttpRequest;xt.open("GET",rt),xt.onload=function(){qe(xt.responseText)},xt.onerror=nt,xt.send()}gr.isHTML5Installed=function(){return!0},gr.getLoadedAppletType=function(){return ae},gr.setPreviewImage=function(rt,qe,nt){xe=rt,Se=qe,we=nt},gr.removeExistingApplet=function(rt,qe){var nt;typeof rt=="string"&&(rt=document.getElementById(rt)),ae=null;var xt=null;for(nt=0;nt<rt.childNodes.length;nt++){var yt=rt.childNodes[nt],Rt=yt.className;Rt==="applet_screenshot"?qe?(yt.style.display="block",ae="screenshot"):yt.style.display="none":Rt!=="applet_scaler prerender"&&(rt.removeChild(yt),xt=Rt&&Rt.indexOf("appletParameters")!=-1?yt.id:null,nt--)}var Ot=ke.id!==void 0?ke.id:xt,lt=window[Ot];lt&&typeof lt.getBase64=="function"&&(lt.remove(),window[Ot]=null)},gr.refreshHitPoints=function(){if(Le(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var rt=gr.getAppletObject();return rt&&typeof rt.recalculateEnvironments=="function"?(rt.recalculateEnvironments(),!0):!1},gr.startAnimation=function(){var rt=gr.getAppletObject();return rt&&typeof rt.startAnimation=="function"?(rt.startAnimation(),!0):!1},gr.stopAnimation=function(){var rt=gr.getAppletObject();return rt&&typeof rt.stopAnimation=="function"?(rt.stopAnimation(),!0):!1},gr.getAppletObject=function(){var rt=ke.id!==void 0?ke.id:"ggbApplet";return window[rt]},gr.resize=function(){};var Pe=function(rt,qe,nt){var xt=document.createElement("param");xt.setAttribute("name",qe),xt.setAttribute("value",nt),rt.appendChild(xt)},Be=function(rt){return rt&&rt!=="false"},Ve=function(rt,qe,nt){Le(ue)<=4.2&&(nt=!0);var xt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ue||ggbHTML5LoadedCodebaseIsWebSimple&&!he)&&(xt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var yt=document.createElement("div");yt.classList.add("appletParameters","notranslate");var Rt=qe.width,Ot=qe.height;if(qe.disableAutoScale=qe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():qe.disableAutoScale,qe.width!==void 0)if(Le(ue)<=4.4)Be(qe.showToolBar)&&(qe.height-=7),Be(qe.showAlgebraInput)&&(qe.height-=37),qe.width<605&&Be(qe.showToolBar)&&(qe.width=605,Rt=605);else{var lt=100;(Be(qe.showToolBar)||Be(qe.showMenuBar))&&(qe.hasOwnProperty("customToolBar")&&(qe.customToolbar=qe.customToolBar),lt=Be(qe.showMenuBar)?245:155),Rt<lt&&(qe.width=lt,Rt=lt)}yt.style.border="none",yt.style.display="inline-block";for(var Ue in qe)qe.hasOwnProperty(Ue)&&Ue!=="appletOnLoad"&&yt.setAttribute("data-param-"+Ue,qe[Ue]);be&&yt.setAttribute("data-param-fontscssurl",be),gr.resize=function(){GGBAppletUtils.responsiveResize(rt,qe)},window.addEventListener("resize",function(at){gr.resize()});var $e=typeof qe.appletOnLoad=="function"?qe.appletOnLoad:function(){};if(!nt&&qe.width!==void 0){qe.hasOwnProperty("showSplash")||yt.setAttribute("data-param-showSplash","false");var le=rt.querySelector(".applet_scaler.prerender"),fe=le!==null;if(fe)var Fe=le.querySelector(".ggb_preview");else{var Fe=it(Rt,Ot,qe.borderColor,!1);le=document.createElement("div"),le.className="applet_scaler",le.style.position="relative",le.style.display="block",le.style.width=Rt+"px",le.style.height=Ot+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(le,"66%"),Le(ue)>=5?(qe.appletOnLoad=function(at){var kt=rt.querySelector(".ggb_preview");kt&&kt.parentNode.removeChild(kt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(le),window.GGBT_wsf_view&&$(window).trigger("resize"),$e(at)},fe||le.appendChild(Fe)):yt.appendChild(Fe),le.appendChild(yt),fe||rt.appendChild(le),setTimeout(function(){gr.resize()},1)}else{var He=document.createElement("div");He.className="applet_scaler",He.style.position="relative",He.style.display="block",He.appendChild(yt),rt.appendChild(He),qe.appletOnLoad=function(at){gr.resize(),$e(at)}}function ye(at,kt){kt&&typeof kt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(at,kt.appletOnLoad):renderGGBElement(at),pt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",kt)}function Re(at,kt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:at,params:kt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ht){ye(Ht.article,Ht.params)}),html5AppletsToProcess=null)},Le(ue)<5&&(at.className+=" geogebraweb")):ye(at,kt)}if(xt){scriptLoadStarted=!0;for(var ze=0;ze<yt.childNodes.length;ze++){var Ke=yt.childNodes[ze].tagName;Ke==="TABLE"&&(yt.removeChild(yt.childNodes[ze]),ze--)}if(ggbHTML5LoadedScript!==null){var We=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');We!=null&&We.parentNode.removeChild(We)}var st=document.createElement("script"),bt=function(){Re(yt,qe)};st.src=pe+de,ggbHTML5LoadedCodebaseIsWebSimple=he,ggbHTML5LoadedCodebaseVersion=ue,ggbHTML5LoadedScript=st.src,pt("GeoGebra HTML5 codebase loaded: '"+pe+"'.",qe),!z&&(!re||re=="5.0")?(he?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),bt()):pe.requirejs?__webpack_require__.e(5994).then(function(){var at=[__webpack_require__(35994)];bt.apply(null,at)}.bind(this)).catch(__webpack_require__.oe):(st.onload=bt,rt.appendChild(st))}else Re(yt,qe);qe.height=Ot,qe.width=Rt},Ie=function(rt,qe,nt){var xt=it(qe.width,qe.height,qe.borderColor,nt),yt=document.createElement("div");yt.style.position="relative",yt.style.display="block",yt.style.width=qe.width+"px",yt.style.height=qe.height+"px",yt.className="applet_screenshot applet_scaler"+(nt?" applet_screenshot_play":""),yt.appendChild(xt);var Rt=GGBAppletUtils.getScale(qe,rt,nt);nt?(rt.appendChild(tt()),window.GGBT_wsf_view||(rt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(yt,"66%"),rt.appendChild(yt),Rt!==1&&!isNaN(Rt)&&(GGBAppletUtils.scaleElement(yt,Rt),yt.style.width=qe.width+"px",yt.style.height=qe.height+"px",yt.parentNode.style.width=qe.width*Rt+"px",yt.parentNode.style.height=qe.height*Rt+"px"),gr.resize=function(){Ze(rt,xt,yt,nt)},window.addEventListener("resize",function(Ot){gr.resize()}),gr.resize()};function Ze(rt,qe,nt,xt){if(rt.contains(qe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(rt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(rt)}var yt=GGBAppletUtils.getScale(ke,rt,xt);nt.parentNode!==null&&(!isNaN(yt)&&yt!==1?(GGBAppletUtils.scaleElement(nt,yt),nt.parentNode.style.width=ke.width*yt+"px",nt.parentNode.style.height=ke.height*yt+"px"):(GGBAppletUtils.scaleElement(nt,1),nt.parentNode.style.width=ke.width+"px",nt.parentNode.style.height=ke.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(rt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}gr.onExitFullscreen=function(rt,qe){qe.appendChild(rt)};var Qe=function(rt,qe,nt,xt){Ie(rt,qe,!0);for(var yt=function(){var lt=[];for(Ot=0;Ot<rt.childNodes.length;Ot++)lt.push(rt.childNodes[Ot]);if(window.GGBT_wsf_view){var Ue=window.GGBT_wsf_view.renderFullScreen(rt,qe.id),$e=document.getElementById("fullscreencontainer"),le=jQuery(rt).find(".fullscreencontent");le.length>0?(Ue.remove(),le.attr("id","fullscreencontent").show(),jQuery($e).append(le),window.dispatchEvent(new Event("resize"))):Ve(Ue,qe,!1),window.GGBT_wsf_view.launchFullScreen($e)}else ae=xt,Ve(rt,qe,!1);if(!window.GGBT_wsf_view)for(Ot=0;Ot<lt.length;Ot++)rt.removeChild(lt[Ot])},Rt=rt.getElementsByClassName("ggb_preview_play"),Ot=0;Ot<Rt.length;Ot++)Rt[Ot].addEventListener("click",yt,!1),Rt[Ot].addEventListener("ontouchstart",yt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(rt),Ne()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},tt=function(){var rt=document.createElement("div");if(rt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var qe='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',nt=document.createElement("style");nt.styleSheet?nt.styleSheet.cssText=qe:nt.appendChild(document.createTextNode(qe)),document.getElementsByTagName("head")[0].appendChild(nt)}return rt},it=function(rt,qe,nt,xt){var yt=document.createElement("div");yt.className="ggb_preview",yt.style.position="absolute",yt.style.zIndex="90",yt.style.width=rt-2+"px",yt.style.height=qe-2+"px",yt.style.top="0px",yt.style.left="0px",yt.style.overflow="hidden",yt.style.backgroundColor="white";var Rt="lightgrey";nt!==void 0&&(nt==="none"?Rt="transparent":Rt=nt),yt.style.border="1px solid "+Rt;var Ot=document.createElement("img");if(Ot.style.position="relative",Ot.style.zIndex="1000",Ot.style.top="-1px",Ot.style.left="-1px",xe!==null&&Ot.setAttribute("src",xe),Ot.style.opacity=.7,Se!==null){var lt,Ue,$e;if(!xt){lt=document.createElement("img"),lt.style.position="absolute",lt.style.zIndex="1001",lt.style.opacity=1,Ot.style.opacity=.3,Ue=360,Ue>rt/4*3&&(Ue=rt/4*3),$e=Ue/5.8,lt.setAttribute("src",Se),lt.setAttribute("width",Ue),lt.setAttribute("height",$e);var le=(rt-Ue)/2,fe=(qe-$e)/2;lt.style.left=le+"px",lt.style.top=fe+"px",yt.appendChild(lt)}}return yt.appendChild(Ot),yt},ht=function(rt){return rt=rt.toLowerCase(),rt==="html5"||rt==="screenshot"?rt:"html5"},Ge=["web","webSimple","web3d","tablet","tablet3d","phone"],Xe=function(rt,qe){if(ue=rt,qe){ct(ue,!0);return}var nt=!vt;if(nt){var xt=Le(ue);!isNaN(xt)&&xt<4.4&&(nt=!1)}var yt,Rt;window.location.protocol.substr(0,4)==="http"?yt=window.location.protocol:yt="http:";var Ot=ue.indexOf("//");Ot>0?Rt=ue:Ot===0?Rt=yt+ue:Rt="https://www.geogebra.org/apps/5.2.814.0/";for(var lt in Ge)if(ue.slice(Ge[lt].length*-1)===Ge[lt]||ue.slice((Ge[lt].length+1)*-1)===Ge[lt]+"/"){ct(Rt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&nt&&!Ye.is3D&&!Ye.AV&&!Ye.SV&&!Ye.CV&&!Ye.EV2&&!Ye.CP&&!Ye.PC&&!Ye.DA&&!Ye.FI&&!Ye.PV&&!Be(ke.showToolBar)&&!Be(ke.showMenuBar)&&!Be(ke.showAlgebraInput)&&!Be(ke.enableRightClick)&&(!ke.appName||ke.appName=="classic")?Rt+="webSimple/":Rt+="web3d/",ct(Rt,!1)},ct=function(rt,qe){if(rt.requirejs){pe=rt;return}rt.slice(-1)!=="/"&&(rt+="/"),pe=rt,qe===null&&(qe=rt.indexOf("http")===-1),ne=qe,de="web.nocache.js",he=!1;var nt=pe.split("/");nt.length>1&&(!qe&&nt[nt.length-2]==="webSimple"?(de="webSimple.nocache.js",he=!0):Ge.indexOf(nt[nt.length-2])>=0&&(de=nt[nt.length-2]+".nocache.js")),nt=rt.split("/"),ue=nt[nt.length-3],ue.substr(0,4)==="test"?ue=ue.substr(4,1)+"."+ue.substr(5,1):(ue.substr(0,3)==="war"||ue.substr(0,4)==="beta")&&(ue="5.0");var xt=parseFloat(ue);xt!==NaN&&xt<5&&rt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+xt+" is deprecated. Using version latest instead."),Xe("5.0",qe))},pt=function(rt,qe){window.console&&window.console.log&&(!qe||typeof qe.showLogging=="undefined"||qe.showLogging&&qe.showLogging!=="false")&&console.log(rt)};ke.material_id!==void 0?Te(ut):ut();function ut(){var rt=Wt;re!==null?rt=re:parseFloat(rt)<5&&(rt="5.0"),Xe(rt,!1),z!==null&&ct(z,ne),me=!0}return gr},GGBAppletUtils=function(){"use strict";function gr(){return window.GGBT_wsf_edit!==void 0}function Wt(me,re){re!=1?(me.style.transformOrigin="0% 0% 0px",me.style.webkitTransformOrigin="0% 0% 0px",me.style.transform="scale("+re+","+re+")",me.style.webkitTransform="scale("+re+","+re+")",me.style.maxWidth="initial",me.querySelector(".ggb_preview")!==null&&(me.querySelector(".ggb_preview").style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[0]!==void 0&&(me.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[1]!==void 0&&(me.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(me.style.transform="none",me.style.webkitTransform="none")}function ke(me,re,z,ie,oe,se){var pe=null;if(se!=null&&se!="")for(var ne=me.parentNode;ne!=null;)if((" "+ne.className+" ").indexOf(" "+se+" ")>-1){pe=ne;break}else ne=ne.parentNode;var ae=0,ue=0,de=0,he=0,xe=0,Se=0,we=0;if(pe)ae=pe.offsetWidth,ue=Math.max(ie?pe.offsetWidth:0,pe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ae=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),de=ae):(ae=window.innerWidth,ue=window.innerHeight,de=window.innerWidth),me){var be=me.getBoundingClientRect();be.left>0&&be.left<=ae&&(oe===void 0||!oe)&&(document.dir==="rtl"?(xe=ae-be.width-be.left,Se=de<=480?10:30):(Se=be.left,xe=de<=480?10:30),he=Se+xe)}if(me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Me=me.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(he=40,we=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(he=0,we=40)}}return me&&((z===void 0||!z)&&re>0&&re+he<ae?ae=re:ae-=he,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(z===void 0||!z)&&(ue-=we)),{width:ae,height:ue}}function Ye(me,re,z,ie,oe){if(me.isScreenshoGenerator)return 1;var se=ie!==void 0&&ie,pe=me.noScaleMargin!=null&&me.noScaleMargin,ne=function(Me){return Me&&Me!=="false"},ae=ne(me.autoHeight),ue=ke(re,me.width,z,ae,se&&window.GGBT_wsf_view||pe,oe),de=parseInt(ue.width),he=me.width,xe=me.height;if(he===void 0){var Se=re.querySelector(".appletParameters");Se&&(he=Se.offsetWidth,xe=Se.offsetHeight)}var we=de/he,be=se?1:ue.height/xe;return z!==void 0&&!z&&(we=Math.min(1,we),be=Math.min(1,be)),Math.min(we,be)}function vt(me,re,z){var ie=1,oe,se=!1;if(me.hasOwnProperty("allowUpscale")&&(se=me.allowUpscale),me.hasOwnProperty("scale")&&(ie=parseFloat(me.scale),(isNaN(ie)||ie===null||ie===0)&&(ie=1),ie>1&&(se=!0)),re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se=!0),!(me.hasOwnProperty("disableAutoScale")&&me.disableAutoScale))oe=Ye(me,re,se,z,me.scaleContainerClass);else return ie;return se&&(!me.hasOwnProperty("scale")||ie===1)?oe:Math.min(ie,oe)}function x(me){var re=Math.min(window.innerWidth,document.documentElement.clientWidth),z=Math.min(window.innerHeight,document.documentElement.clientHeight),ie=me.getBoundingClientRect(),oe=(re-ie.width)/2,se=(z-ie.height)/2;se<0&&(se=0),me.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(oe<40?me.style.left="40px":me.style.left=oe+"px",me.style.top=se+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(se<40?me.style.top="40px":me.style.top=se+"px",me.style.left=oe+"px")}function Ae(me,re){var z=me.querySelector(".appletParameters");if(z){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(re.id!==z.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(me)}if(z.parentElement&&/fullscreen/.test(z.parentElement.className))return;var ie=vt(re,me);gr()&&z.setAttribute("data-param-scale",ie);for(var oe=null,se=0;se<me.childNodes.length;se++)if(me.childNodes[se].className!==void 0&&me.childNodes[se].className.match(/^applet_scaler/)){oe=me.childNodes[se];break}if(oe!==null&&oe.querySelector(".noscale")!==null)return;var pe=re.id!==void 0?re.id:"ggbApplet",ne=window[pe];(ne==null||!ne.recalculateEnvironments)&&oe!==null&&!oe.className.match(/fullscreen/)&&(oe.parentNode.style.transform="",!isNaN(ie)&&ie!==1?(oe.parentNode.style.width=re.width*ie+"px",oe.parentNode.style.height=re.height*ie+"px",Wt(oe,ie)):(Wt(oe,1),oe.parentNode.style.width=re.width+"px",oe.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&x(me),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(z).parents(".content-added-content"))}}return{responsiveResize:Ae,isFlexibleWorksheetEditor:gr,positionCenter:x,getScale:vt,scaleElement:Wt}}();__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 gr=n.location.search;return gr.indexOf(J)!=-1||gr.indexOf(K)!=-1}function q(gr,Wt){}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(gr){var Wt=s[L].bindings;s[L].bindings=function(){for(var ke=Wt?Wt():{},Ye=gr[webModule.__softPermutationId],vt=O;vt<Ye.length;vt++){var x=Ye[vt];ke[x[O]]=x[P]}return ke}};var t;function u(){return v(),t}function v(){if(!t){var gr=o.createElement(Q);if(gr.id=L,gr.style.cssText=R+S,gr.tabIndex=-1,o.body.appendChild(gr),t=gr.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Wt=document.compatMode==U?V:W;t.write(Wt+X),t.close()}}}function w(gr){function Wt(Ye){function vt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var x=vt();if(x){Ye();return}function Ae(){if(!x){if(!vt())return;x=!0,Ye(),o.removeEventListener&&o.removeEventListener(Z,Ae,!1),me&&clearInterval(me)}}o.addEventListener&&o.addEventListener(Z,Ae,!1);var me=setInterval(function(){Ae()},$)}function ke(Ye){var vt=u(),x=vt.body,Ae=vt.createElement(_);Ae.language=ab,Ae.crossOrigin=W,Ae.src=Ye,webModule.__errFn&&(Ae.onerror=function(){webModule.__errFn(L,new Error(bb+Ye))}),x.appendChild(Ae)}Wt(function(){ke(gr)})}webModule.__startLoadingFragment=function(gr){return C(gr)},webModule.__installRunAsyncCode=function(gr){var Wt=u(),ke=Wt.body,Ye=Wt.createElement(_);Ye.language=ab,Ye.text=gr,ke.appendChild(Ye),ke.removeChild(Ye)};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(gr){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(gr){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(gr){var Wt=c[gr];return Wt==null?null:Wt},r=d,webModule.__errFn=e}function B(){function gr(me){var re=me.lastIndexOf(rb);re==-1&&(re=me.length);var z=me.indexOf(sb);z==-1&&(z=me.length);var ie=me.lastIndexOf(tb,Math.min(z,re));return ie>=O?me.substring(O,ie+P):W}function Wt(me){if(!me.match(/^\w+:\/\//)){var re=o.createElement(ub);re.src=me+vb,me=gr(re.src)}return me}function ke(){var me=__gwt_getMetaProperty(wb);return me!=null?me:W}function Ye(){for(var me=o.getElementsByTagName(_),re=O;re<me.length;++re)if(me[re].src.indexOf(xb)!=-1)return gr(me[re].src);return W}function vt(){var me=o.getElementsByTagName(yb);return me.length>O?me[me.length-P].href:W}function x(){var me=o.location;return me.href==me.protocol+zb+me.host+me.pathname+me.search+me.hash}var Ae=ke();return Ae==W&&(Ae=Ye()),Ae==W&&(Ae=vt()),Ae==W&&x()&&(Ae=gr(o.location.href)),Ae=Wt(Ae),Ae}function C(gr){return gr.match(/^\//)||gr.match(/^[a-zA-Z]+:\/\//)?gr:webModule.__moduleBase+gr}function D(){var gr=[],Wt=O,ke=[],Ye=[];function vt(me){var re=Ye[me](),z=ke[me];if(re in z)return re;var ie=[];for(var oe in z)ie[z[oe]]=oe;throw r&&r(me,ie,re),null}if(__gwt_isKnownPropertyValue=function(me,re){return re in ke[me]},webModule.__getPropMap=function(){var me={};for(var re in ke)ke.hasOwnProperty(re)&&(me[re]=vt(re));return me},webModule.__computePropValue=vt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var x;try{x=Cb;var Ae=x.indexOf(Db);Ae!=-1&&(Wt=parseInt(x.substring(Ae+P),$),x=x.substring(O,Ae))}catch(me){}return webModule.__softPermutationId=Wt,C(x+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})()},33045:function(gr,Wt,ke){"use strict";ke.d(Wt,{Ax:function(){return Ae},Ds:function(){return me},KI:function(){return z},SI:function(){return x},f1:function(){return vt}});var Ye=ke(82506);function vt(ie){let oe=!0;if(ie.length>0){for(let se=0;se<ie.length;se++)if(ie[se].compile_success==0||!ie[se].compile_success){oe=!1;break}}else oe=!1;return oe}function x(ie,oe=""){let se=[];for(let pe=0;pe<ie.length;pe++){let ne=ie[pe],ae=oe?`${oe}/${ne.name}`:`${ne.name}`;se.push({title:ne.name,type:ne.type,isLeaf:ne.type!=="tree",key:ae})}return se}function Ae(ie,oe,se){for(let pe=0;pe<ie.length;pe++){let ne=ie[pe];if(ne.key===oe){ne.children=se;break}ne.children&&Ae(ne.children,oe,se)}return ie}function me(ie,oe,se){let pe;return function(){let ne=this,ae=arguments,ue=function(){pe=null,se||ie.apply(ne,ae)},de=se&&!pe;clearTimeout(pe),pe=setTimeout(ue,oe),de&&ie.apply(ne,ae)}}const re=!0,z=Ye.Z.API_SERVER},80137:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return pe}});var Ye=ke(59301),vt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},x=ke(92310),Ae=ke.n(x),me=ke(71418),re=ke(2859),z=ke(56640),ie=ke(5871),oe=(ne,ae,ue)=>new Promise((de,he)=>{var xe=be=>{try{we(ue.next(be))}catch(Me){he(Me)}},Se=be=>{try{we(ue.throw(be))}catch(Me){he(Me)}},we=be=>be.done?de(be.value):Promise.resolve(be.value).then(xe,Se);we((ue=ue.apply(ne,ae)).next())}),pe=({data:ne,className:ae,fullWidth:ue,style:de={},onClose:he,onOk:xe,showFullTools:Se,noAssociationId:we})=>{const be=(0,Ye.useRef)(null),Me=(0,Ye.useRef)(null),Le=(0,Ye.useRef)(null),Ce=(0,Ye.useRef)(null),[Ne,Te]=(0,Ye.useState)(!1),[De,Ee]=(0,Ye.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Ye.useEffect)(()=>{Le.current||(Le.current=document.createElement("style"),document.head.appendChild(Le.current)),ne!=null&&ne.visible?(document.body.setAttribute("data-custom","y-hidden"),Le.current.innerHTML=" html { overflow-y: hidden; }",ne!=null&&ne.src&&Pe()):(document.body.removeAttribute("data-custom"),Le.current&&(document.head.removeChild(Le.current),Le.current=null))},[ne==null?void 0:ne.visible]);const Pe=()=>oe(void 0,null,function*(){Te(!0),Ee("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Qe=yield(0,ie.ZJ)(ne==null?void 0:ne.src);be.current.src="",be.current.src=Qe,be.current.onload=function(){Ze()},Te(!1),Ee("")}),Be=()=>{document.body.removeAttribute("data-custom"),Le.current.innerHTML=" ",he()},Ve=Qe=>oe(void 0,null,function*(){Te(!0),Ee("\u6B63\u5728\u4FDD\u5B58\u4E2D");const tt=yield(0,z.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ne.title,file:Qe.dataUrl}});tt!=null&&tt.id&&!we?(yield(0,z.ZP)(`/api/attachments/${ne.id}/add_subitem.json`,{method:"post",body:{subitem_id:tt==null?void 0:tt.id,settings:JSON.stringify(Qe.state)}})).status===0&&xe():tt!=null&&tt.id&&xe(tt),document.body.removeAttribute("data-custom"),Le.current.innerHTML=" ",Te(!1),Ee("")}),Ie=()=>{const Qe=document.querySelector('a[href="https://markerjs.com/"]');Qe&&Qe.parentNode&&(Qe.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(it=>{const ht=document.querySelector(it.name);ht&&ht.setAttribute("title",it.title)})},Ze=()=>{Me.current=new re.hP(be.current),Me.current.targetRoot=Ce.current,Me.current.addEventListener("render",Ve),Me.current.addEventListener("beforeclose",Be),Se&&(Me.current.availableMarkerTypes=Me.current.ALL_MARKER_TYPES,Me.current.uiStyleSettings.redoButtonVisible=!0,Me.current.uiStyleSettings.notesButtonVisible=!0,Me.current.uiStyleSettings.zoomButtonVisible=!0,Me.current.uiStyleSettings.zoomOutButtonVisible=!0,Me.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Me.current.uiStyleSettings,Me.current.show(),ne!=null&&ne.snapshotData&&Me.current.restoreState(ne.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ie()},300)};return Ye.createElement(Ye.Fragment,null,(ne==null?void 0:ne.visible)&&Ye.createElement(me.Z,{spinning:Ne,tip:De,style:{position:"absolute"}},Ye.createElement("div",{ref:Ce,className:Ae()(vt.imageDimensions,ae,ue?vt.fullWidth:""),style:de},Ye.createElement("img",{className:vt.img,ref:be}))))}},69923:function(gr,Wt,ke){"use strict";var Ye=ke(59301),vt=ke(95237),x=ke(43604),Ae=ke(99313),me=ke(3113),re=ke(33754),z=ke(20699),ie=ke(48136),oe=ke(59301);const se=(0,Ye.forwardRef)(({callback:pe,showSaveButton:ne,value:ae=""},ue)=>{const de=(0,Ye.useRef)(),he=[{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 "}]}]}],xe=[{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}`}]}]}],Se=Me=>{de.current.setValue(de.current.getValue()+" "+Me.value+" ")},we=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:oe.createElement(vt.Z,{className:z.Z.lists,gutter:[10,10]},he.map((Me,Le)=>oe.createElement(x.Z,{flex:"110px",className:z.Z.item},oe.createElement("div",null,oe.createElement(re.Z,{value:`$$${Me.value}$$`}),Me.name),oe.createElement("div",{className:z.Z.children},Me.children.map((Ce,Ne)=>oe.createElement("div",{key:Ne},oe.createElement("h1",null,Ce.name),oe.createElement(vt.Z,{gutter:[10,10]},Ce.data.map((Te,De)=>oe.createElement(x.Z,{key:De,onClick:()=>Se(Te),className:z.Z.diamond},oe.createElement(re.Z,{value:"`$$"+Te.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:oe.createElement(vt.Z,{className:z.Z.lists,gutter:[10,10]},xe.map((Me,Le)=>oe.createElement(x.Z,{flex:"110px",className:z.Z.item},oe.createElement("div",null,oe.createElement(re.Z,{value:"`$$"+Me.value+"$$`"}),Me.name),oe.createElement("div",{className:z.Z.children},Me.children.map((Ce,Ne)=>oe.createElement("div",{key:Ne},Ce.name&&oe.createElement("h1",null,Ce.name),oe.createElement(vt.Z,{gutter:[10,10]},Ce.data.map((Te,De)=>oe.createElement(x.Z,{key:De,onClick:()=>Se(Te),className:z.Z.diamond},oe.createElement(re.Z,{value:"`$$"+Te.value+"$$`"}))))))))))}],be=()=>{var Me=document.createElement("div");Me.innerHTML=de.current.getValue();var Le=Me.innerText;return pe&&pe(Le),Le};return(0,Ye.useImperativeHandle)(ue,()=>({getData:be})),oe.createElement("div",{className:z.Z.mathWrap},oe.createElement(Ae.default,{defaultActiveKey:"1",items:we}),oe.createElement("math-field",{locale:"zh_cn",className:z.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:de,style:{width:800,marginTop:30,fontSize:18}},ae||""),ne&&oe.createElement("div",{className:z.Z.button},oe.createElement(me.ZP,{size:"large",onClick:be,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Wt.Z=se},81739:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Ae}});var Ye=ke(59301),vt=ke(23559),x=ke(59301),Ae=({defaultX:me="40%",leftChild:re,rightChild:z,className:ie,hideResize:oe=!1})=>{const[se,pe]=(0,Ye.useState)(me),ne=(0,Ye.useRef)();function ae(){ne.current=!0}(0,Ye.useEffect)(()=>{function he(Se){ne.current&&(vt.Z.publish("resize-move-bar",Se),pe(Se.pageX))}function xe(){ne.current=!1}return window.addEventListener("mousemove",he),window.addEventListener("mouseup",xe),()=>{window.removeEventListener("mousemove",he),window.removeEventListener("mouseup",xe)}},[]);const ue=typeof se=="number"&&se!==.01?`${se}px`:me,de=`calc(100% - ${oe?"0px":"4px"} - ${ue})`;return x.createElement("div",{className:`split-panel-container ${ie}`},x.createElement("section",{style:{width:ue,display:se===.01?"none":""}},re),x.createElement("section",{className:"resize-x-bar",onMouseDown:ae},x.createElement("a",{className:"btn-resize"},x.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},x.createElement("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})))),x.createElement("section",{style:{width:de}},z))}},45326:function(gr,Wt,ke){"use strict";ke.d(Wt,{h:function(){return Me}});var Ye=ke(59301),vt=ke(57809),x=ke(78241),Ae=ke(3113),me=ke(89780),re=ke.n(me),z=ke(41913),ie=ke(8682),oe=Object.defineProperty,se=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,de=(Le,Ce,Ne)=>Ce in Le?oe(Le,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Le[Ce]=Ne,he=(Le,Ce)=>{for(var Ne in Ce||(Ce={}))ae.call(Ce,Ne)&&de(Le,Ne,Ce[Ne]);if(ne)for(var Ne of ne(Ce))ue.call(Ce,Ne)&&de(Le,Ne,Ce[Ne]);return Le},xe=(Le,Ce)=>se(Le,pe(Ce));const Se=vt.default.Option,we={labelCol:{span:4},wrapperCol:{span:20}},be={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"]};Wt.Z=({callback:Le,onCancel:Ce})=>{const[Ne,Te]=(0,Ye.useState)("python");function De(Pe){Te(be[Pe][1])}function Ee(Pe){Le(Pe)}return Ye.createElement(x.default,xe(he({},we),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ee,style:{width:500}}),Ye.createElement(x.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Ye.createElement(vt.default,{getPopupContainer:Pe=>Pe.parentNode,onChange:De},Object.keys(be).map(Pe=>Ye.createElement(Se,{key:Pe,value:Pe},be[Pe][0])))),Ye.createElement(x.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Ye.createElement(Me,{mode:Ne})),Ye.createElement("div",{className:"flex-container flex-end"},Ye.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ye.createElement(Ae.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function Me({value:Le,onChange:Ce,mode:Ne,options:Te={}}){const De=(0,Ye.useRef)(),[Ee,Pe]=(0,Ye.useState)();return(0,Ye.useEffect)(()=>{if(Ee){let Be=function(Ve){const Ie=Ve.getValue();Ce&&Ce(Ie)};return Ee.on("change",Be),()=>{Ee.off("change",Be)}}},[Ee,Ce]),(0,Ye.useEffect)(()=>{Ee&&Ee.setOption("mode",Ne)},[Ee,Ne]),(0,Ye.useEffect)(()=>{Ee&&(Le!==Ee.getValue()||Le==="")&&setTimeout(()=>{Ee.setValue(Le||"")},300)},[Ee,Le]),(0,Ye.useEffect)(()=>{if(De.current&&!Ee){const Be=re().fromTextArea(De.current,he({mode:Ne,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Te));Pe(Be)}},[De.current,Ee]),Ye.createElement("div",{className:"my-codemirror-container"},Ye.createElement("textarea",{ref:De}))}},41722:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Yr}});var Ye=ke(59301),vt=ke(89780),x=ke.n(vt),Ae=ke(76374),me=ke(41913),re=ke(6313),z=ke(25717),ie=ke(99498),oe=ke(25419),se=ke(67549),pe=ke(33754),ne=({value:Lr="",className:cn,showTextOnly:Pr,showLines:Wr,style:mn={}})=>{const Gt=(0,Ye.useMemo)(()=>"",[Lr]);return Ye.createElement(Ye.Fragment,null,Ye.createElement("div",{dangerouslySetInnerHTML:{__html:Gt}}))},ae=ke(59301),ue=Object.defineProperty,de=Object.defineProperties,he=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,be=(Lr,cn,Pr)=>cn in Lr?ue(Lr,cn,{enumerable:!0,configurable:!0,writable:!0,value:Pr}):Lr[cn]=Pr,Me=(Lr,cn)=>{for(var Pr in cn||(cn={}))Se.call(cn,Pr)&&be(Lr,Pr,cn[Pr]);if(xe)for(var Pr of xe(cn))we.call(cn,Pr)&&be(Lr,Pr,cn[Pr]);return Lr},Le=(Lr,cn)=>de(Lr,he(cn));let Ce=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ne({onActionCallback:Lr,title:cn,icon:Pr,actionName:Wr,className:mn="",children:Gt}){function Et(){Lr(Wr)}return ae.createElement("a",{title:cn,className:mn,onClick:Et},ae.createElement("i",{className:`${Pr}`}),Gt)}var Te=({watch:Lr,showNullButton:cn,showNullProgramButton:Pr,onActionCallback:Wr,fullScreen:mn,insertTemp:Gt,hidetoolBar:Et,extraUse:It})=>{const Dt=[...Ce,{title:`${Lr?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Lr?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ae.createElement("ul",{className:"markdown-toolbar-container"},!Et&&Dt.map((Lt,Ut)=>ae.createElement("li",{key:Ut},Lt.actionName?ae.createElement(Ne,Le(Me({},Lt),{onActionCallback:Wr})):ae.createElement("span",{className:"v-line"}))),cn?ae.createElement("li",null,ae.createElement(Ne,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Wr},ae.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Pr?ae.createElement(ae.Fragment,null,ae.createElement("li",null,ae.createElement(Ne,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Wr},ae.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ae.createElement("li",null,ae.createElement(Ne,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Wr},ae.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Gt&&ae.createElement("li",null,ae.createElement(Ne,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Gt}`,onActionCallback:Wr},ae.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),It&&ae.createElement("li",null,It),ae.createElement("li",{className:"btn-full-screen"},ae.createElement(Ne,{icon:`${mn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:mn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Wr})))},De=ke(55444),Ee=ke(78241),Pe=ke(92832),Be=ke(3113),Ve=Object.defineProperty,Ie=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,ht=(Lr,cn,Pr)=>cn in Lr?Ve(Lr,cn,{enumerable:!0,configurable:!0,writable:!0,value:Pr}):Lr[cn]=Pr,Ge=(Lr,cn)=>{for(var Pr in cn||(cn={}))tt.call(cn,Pr)&&ht(Lr,Pr,cn[Pr]);if(Qe)for(var Pr of Qe(cn))it.call(cn,Pr)&&ht(Lr,Pr,cn[Pr]);return Lr},Xe=(Lr,cn)=>Ie(Lr,Ze(cn));const ct={labelCol:{span:4},wrapperCol:{span:20}};var pt=({callback:Lr,onCancel:cn})=>{function Pr(Wr){Lr(Wr)}return Ye.createElement(Ee.default,Xe(Ge({},ct),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pr,style:{width:500}}),Ye.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Ye.createElement(Pe.default,null)),Ye.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Ye.createElement(Pe.default,null)),Ye.createElement("div",{className:"flex-container flex-end"},Ye.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ye.createElement(Be.ZP,{type:"ghost",onClick:cn},"\u53D6\u6D88")))},ut=ke(45326),rt=ke(96554),qe=ke(43418),nt=ke(95237),xt=ke(80137),yt=ke(59301),Rt=({callback:Lr,onCancel:cn})=>{const Pr=document.createElement("canvas"),Wr=Pr.getContext("2d");Pr.width=1e3,Pr.height=800,Wr.fillStyle="#ffffff",Wr.fillRect(0,0,Pr.width,Pr.height);const mn=Pr.toDataURL("image/png");return yt.createElement(qe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},yt.createElement(nt.Z,{style:{height:"100vh"}},yt.createElement(xt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:mn,visible:!0,title:String(Date.now())},onOk:Gt=>{Lr({src:Gt.url})},onClose:cn})))},Ot=ke(43428),lt=ke(43604),Ue=ke(8591),$e={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},le=ke(59301),Fe=(0,Ye.forwardRef)(({onCancel:Lr,editImgId:cn,callback:Pr},Wr)=>{let mn=(0,Ye.useRef)(),Gt=(0,Ye.useRef)(),Et=(0,Ye.useRef)(),It=(0,Ye.useRef)(!1);const Dt=(0,Ye.useRef)(!1);console.log("ref:",Wr);const[Lt,Ut]=(0,Ye.useState)(0),[Qt,yr]=(0,Ye.useState)("100vh");return(0,Ye.useEffect)(()=>{Ut(1)},[]),(0,Ye.useImperativeHandle)(Wr,()=>({setHeight:yr})),le.createElement("div",{ref:Dt,className:"body-overflow-initial"},le.createElement(Ot.Z,{width:"100vw",height:Qt,footer:null,closable:!0,placement:"bottom",open:!!Lt,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${$e.drawerWrap}`,onClose:()=>{window.saveDrawData(cr=>{Pr({src:`/api/attachments/${cr}`,id:cr})})},title:le.createElement(nt.Z,{align:"middle"},le.createElement(lt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),le.createElement(lt.Z,{onClick:()=>{yr(Qt==="60px"?"100vh":"60px")}},le.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),le.createElement(lt.Z,{onClick:()=>{window.saveDrawData(cr=>{if(cr===null){Ue.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Ue.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Pr({src:`/api/attachments/${cr}`,id:cr,disabledClose:!0})})}},le.createElement(Be.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},le.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${cn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Gt})))}),He=ke(82506),ye=ke(5112),Re=ke(20071);const ze=ye.ZP.Group,Ke={margin:"0 8px"};var We=({callback:Lr,onCancel:cn})=>{function Pr(Wr){Lr(Wr)}return Ye.createElement(Ee.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pr},Ye.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Ye.createElement("span",{style:Ke},"\u5355\u5143\u683C\u6570\uFF1A"),Ye.createElement("span",{style:Ke},"\u884C\u6570"),Ye.createElement(Ee.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Ye.createElement(Re.Z,null)),Ye.createElement("span",{style:Ke},"\u5217\u6570"),Ye.createElement(Ee.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Ye.createElement(Re.Z,null))),Ye.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Ye.createElement("span",{style:Ke},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Ye.createElement(Ee.default.Item,{name:"align"},Ye.createElement(ze,null,Ye.createElement(ye.ZP,{value:"default"},Ye.createElement("i",{className:"fa fa-align-justify"})),Ye.createElement(ye.ZP,{value:"left"},Ye.createElement("i",{className:"fa fa-align-left"})),Ye.createElement(ye.ZP,{value:"center"},Ye.createElement("i",{className:"fa fa-align-center"})),Ye.createElement(ye.ZP,{value:"right"},Ye.createElement("i",{className:"fa fa-align-right"}))))),Ye.createElement("div",{className:"flex-container flex-end"},Ye.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ye.createElement(Be.ZP,{type:"ghost",onClick:cn},"\u53D6\u6D88")))},st=ke(78673),bt=ke(5296),at=ke.n(bt),Ht=(0,Ye.forwardRef)(({use3d:Lr,width:cn,height:Pr,callback:Wr,showSaveButton:mn},Gt)=>{const Et=(0,Ye.useRef)(),It=(0,Ye.useRef)(),[Dt,Lt]=(0,Ye.useState)(!1),Ut=(0,Ye.useRef)({id:Et,appName:"graphing",width:cn||1e3,height:Pr||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Ye.useEffect)(()=>{It.current=new(at())(Ut.current,!0),window.onload=function(){It.current.inject("applet_container")}},[]);const Qt=()=>{var yr=window.ggbApplet.getPNGBase64(1,!0,72);return Wr&&Wr(yr),yr};return(0,Ye.useEffect)(()=>{Ut.current.appName=Dt?"3D":"graphing",It.current.inject("applet_container")},[Dt]),(0,Ye.useEffect)(()=>{Lt(Lr)},[Lr]),(0,Ye.useImperativeHandle)(Gt,()=>({getImgData:Qt})),Ye.createElement(Ye.Fragment,null,Ye.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Et}),Ye.createElement(nt.Z,{align:"middle"},Ye.createElement(lt.Z,{flex:1},Ye.createElement(st.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Dt,onChange:yr=>Lt(yr)})),Ye.createElement(lt.Z,null,Ye.createElement(Be.ZP,{size:"large",onClick:Qt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ct=ke(69923),$t=ke(1012);const Bt="link",St="upload-image",ft="add-flowchart",dt="draw-image",Ft="add-flowchart",zt="code-block",Zt="add-table",tr="------------",mr={default:tr,left:`:${tr}`,center:`:${tr}:`,right:`${tr}:`};var Er=ke(8184),zr=(Lr,cn,Pr)=>new Promise((Wr,mn)=>{var Gt=Dt=>{try{It(Pr.next(Dt))}catch(Lt){mn(Lt)}},Et=Dt=>{try{It(Pr.throw(Dt))}catch(Lt){mn(Lt)}},It=Dt=>Dt.done?Wr(Dt.value):Promise.resolve(Dt.value).then(Gt,Et);It((Pr=Pr.apply(Lr,cn)).next())});function jr(){}let Tr=0;const Vr=1e4,sn="\u2581",vn="@\u2581\u2581@",en="@\u2581@",hn=`
|
|
|
**\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`,_n=["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 tn(Lr){return/^\d+$/.test(Lr)?`${Lr}px`:Lr}const Un=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Vn={[Un+"-B"]:"bold",[Un+"-I"]:"italic"},$r={[Bt]:"\u6DFB\u52A0\u94FE\u63A5",[zt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[St]:"\u6DFB\u52A0\u56FE\u7247",[dt]:"\u6DFB\u52A0\u753B\u56FE",[ft]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Zt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Yr=({defaultValue:Lr="",onChange:cn,width:Pr="100%",height:Wr=400,miniToolbar:mn=!1,isFocus:Gt=!1,watch:Et,insertTemp:It,mode:Dt="markdown",id:Lt="markdown-editor-id",showResizeBar:Ut=!1,noStorage:Qt=!1,showNullButton:yr=!1,showNullProgramButton:cr=!1,hidetoolBar:vr=!1,fullScreen:Dr=!1,onBlur:Ir,onCMBeforeChange:Ar,onFullScreen:qt,className:kr="",disablePaste:Xt=!1,disabled:rr=!1,disabledFill:lr=!1,placeholder:or="",values:_r="",extraUse:ur,onAddBlank:Mr})=>{const[Pt,Jt]=(0,Ye.useState)(null),[nr,pr]=(0,Ye.useState)(Lr),[fr,br]=(0,Ye.useState)(Et),[wr,Nr]=(0,Ye.useState)(Dr),[Kr,Ur]=(0,Ye.useState)(""),[gn,kn]=(0,Ye.useState)(0),[Nn,yn]=(0,Ye.useState)(Wr),[rn,$n]=(0,Ye.useState)(!1),Tn=(0,Ye.useRef)((0,$t.Z)()),Zn=(0,Ye.useRef)(!1),wn=(0,Ye.useRef)(),[Mn,Jn]=(0,Ye.useState)(0),[zn,hi]=(0,Ye.useState)(0),Ei=(0,Ye.useRef)(),Rn=(0,Ye.useRef)(),Jr=(0,Ye.useRef)(),Xr=(0,Ye.useRef)(),Hn=(0,Ye.useRef)(),Dn=(0,Ye.useRef)(),ri=()=>zr(void 0,null,function*(){var Sn;const Cn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Tn.current}});(Sn=Cn==null?void 0:Cn.attachments)!=null&&Sn.length&&(console.log("cm:",Pt,Ei),Cn.attachments.map(bn=>{bn.content_type.indexOf("image")>-1?Pt.replaceSelection(``):bn.content_type.indexOf("video")>-1?Pt.replaceSelection(`<video width="100%" controls src="${He.Z.API_SERVER}/api/attachments/${data.id}"></video>`):bn.content_type.indexOf("pdf")>-1?Pt.replaceSelection(`<a href="${He.Z.API_SERVER}/api/attachments/${bn.id}?type=${bn.content_type}&disposition=inline" target="_blank">${bn.name}</a>`):Pt.replaceSelection(`[${bn.name}](${He.Z.API_SERVER}/api/attachments/${bn.id}?type=${bn.content_type})`)}))});(0,Ye.useEffect)(()=>{const Sn=window.scrollY||window.pageYOffset;pr(_r),Pt==null||Pt.setValue(_r),window.scrollTo(0,Sn)},[_r]),(0,Ye.useEffect)(()=>{qt==null||qt(wr)},[wr]),(0,Ye.useEffect)(()=>{if(Ei.current){let Sn=function(bn,Wn){var Ki;if(Xt){Wn.preventDefault();return}const qi=Wn.clipboardData;if(qi){const oa=qi.types.toString(),na=qi.items;if(oa==="Files"||qi.types.indexOf("Files")>-1){if(Wn.preventDefault(),Dt=="stex")return;try{let Xi=na[1];((Ki=na[0])==null?void 0:Ki.kind)==="file"&&(Xi=na[0]);const ba=Xi.getAsFile(),Na=ba.name.split(".").pop();(0,rt.I)(ba,Ia=>{var yo,Oi,Fi;Ia.id?((yo=ba==null?void 0:ba.type)==null?void 0:yo.indexOf("image"))>-1?Cn.replaceSelection(`<img width="100%" src="/api/attachments/${Ia.id}?type=${Ia.content_type})" alt="" />`):((Oi=ba==null?void 0:ba.type)==null?void 0:Oi.indexOf("video"))>-1?Cn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ia.id}"></video>`):((Fi=ba==null?void 0:ba.type)==null?void 0:Fi.indexOf("pdf"))>-1?Cn.replaceSelection(`<a href="/api/attachments/${Ia.id}?type=${ba.type}&disposition=inline" target="_blank">${ba.name}</a>`):_n.includes(Na)?Cn.replaceSelection(`<a href="/api/attachments/${Ia.id}?type=office&disposition=inline" target="_blank">${ba.name}</a>`):Cn.replaceSelection(`[${ba.name}](/api/attachments/${Ia.id}?type=${Ia.content_type})`):(Ia==null?void 0:Ia.status)===401&&(Ue.ZP.warning((Ia==null?void 0:Ia.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Xi){Ue.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Cn=x().fromTextArea(Ei.current,{mode:Dt,lineNumbers:!mn,lineWrapping:!0,value:Lr,autoCloseTags:!cr,autoCloseBrackets:!0});return Cn.on("keyup",function(bn,Wn){Wn.keyCode===8&&(bn.getValue()==""?Cn.setOption("placeholder",or):Cn.setOption("placeholder",null))}),Cn.on("keydown",function(bn,Wn){if(Wn.keyCode===8){var Ki=Qr(bn);Ki&&Wn.preventDefault()}}),Gt&&Cn.focus(),Cn.on("paste",Sn),Cn.on("dragleave",function(bn,Wn){Rn.current.classList.remove("mouse-hover-md")}),rr&&Cn.on("beforeChange",function(bn,Wn){(Wn.origin==="paste"||Wn.origin==="+input")&&Wn.cancel()}),Jt(Cn),()=>{Cn.off("paste",Sn)}}},[]);const ai=(0,Ye.useCallback)(()=>{if(Rn.current)try{}catch(Sn){console.log(Sn,"---- to set md editor body height")}},[Nn,Rn,wr]);(0,Ye.useEffect)(()=>{function Sn(){let Cn=new Ae.Z(bn=>{for(let Wn of bn)(Wn.target.offsetHeight>0||Wn.target.offsetWidth>0)&&(ai(),Pt.setSize("100%","100%"),Pt.refresh())});return Cn.observe(Ei.current.parentElement),Cn}if(Pt){const Cn=Sn();return()=>{var bn,Wn;(bn=Ei.current)!=null&&bn.parentElement&&Cn.unobserve((Wn=Ei.current)==null?void 0:Wn.parentElement)}}},[Pt,ai]),(0,Ye.useEffect)(()=>{if(Pt){let Sn=[];for(const[Cn,bn]of Object.entries(Vn)){let Wn={[Cn]:()=>{qr(bn)}};Sn.push(Wn),Pt.addKeyMap(Wn)}return wn.current=setInterval(()=>{Zn.current&&ri()},4e3),()=>{clearInterval(wn.current);for(let Cn of Sn)Pt.removeKeyMap(Cn)}}},[Pt]),(0,Ye.useEffect)(()=>{Dr!==wr&&Nr(Dr)},[Dr]),(0,Er.Z)(()=>{if(!Qt&&gn>0){let Sn=new Date().getTime(),Cn=window.sessionStorage.getItem(Lt);Sn>=gn+Vr&&(!Cn||Cn!==nr)&&(window.sessionStorage.setItem(Lt,nr),$n(!0))}},Vr),(0,Ye.useEffect)(()=>{br(Et)},[Pt,Et]),(0,Ye.useEffect)(()=>{Pt&&Gt&&Pt.focus()},[Pt,Gt]),(0,Ye.useEffect)(()=>{if(fr&&Pt){let Sn=function(bn){let Wn=bn.target;if(Xr.current){let Ki=Wn.scrollTop/Wn.scrollHeight;Xr.current.scrollTop=Xr.current.scrollHeight*Ki}};const Cn=Pt.getScrollerElement();return Cn.addEventListener("scroll",Sn),()=>{Cn.removeEventListener("scroll",Sn)}}},[Pt,fr]),(0,Ye.useEffect)(()=>{if(Pt&&Ar){let Sn=function(Cn,bn){Ar(Cn,bn)};return Pt.on("beforeChange",Sn),()=>{Pt.off("beforeChange",Sn)}}},[Pt,Ar]),(0,Ye.useEffect)(()=>{if(Pt&&Ir){let Sn=function(){Ir(Pt.getValue())};return Pt.on("blur",Sn),()=>{Pt.off("blur",Sn)}}},[Pt,Ir]);function Qr(Sn,Cn){var bn=Sn.getDoc(),Wn=bn.getCursor(),Ki=bn.getLine(Wn.line),qi=Ki.charAt(Wn.ch-1),oa=Ki.lastIndexOf("@\u2581@",Wn.ch),na=Ki.lastIndexOf("@\u2581\u2581@",Wn.ch),Xi=oa>na?oa:na,ba=oa>na?3:4;if(vn.indexOf(qi)===-1)return null;if(console.log("change1:",Cn,Sn,Ki,Wn,Xi,oa,na,qi),Xi>=0&&Wn.ch-Xi<5){var Na=Xi+ba;return bn.replaceRange("",{line:Wn.line,ch:Xi},{line:Wn.line,ch:Na}),{line:Wn.line,ch:Na}}return null}(0,Ye.useEffect)(()=>{if(Pt){let Sn=function(Cn,bn){const Wn=Cn.getValue();pr(Wn),kn(new Date().getTime()),Cn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),cn&&(cr?cn(Wn,Li(Wn)):cn(Wn))};return Pt.on("change",Sn),()=>{Pt.off("change",Sn)}}},[Pt,cn]),(0,Ye.useEffect)(()=>{if(Pt)if(Lr==null)Pt.setValue(""),pr("");else{const Sn=window.scrollY||window.pageYOffset;Lr!==Pt.getValue()&&(Pt.setValue(Lr),pr(Lr),Pt.setCursor(rr?1:Pt.lineCount(),0),window.scrollTo(0,Sn))}},[Pt,Lr]);const qr=(0,Ye.useCallback)(Sn=>{const Cn=Pt.getCursor(),bn=Pt.getSelection();let Wn=bn.split(`
|
|
|
`);switch(Sn){case"bold":return Pt.replaceSelection("**"+bn+"**"),bn===""&&Pt.setCursor(Cn.line,Cn.ch+2),Pt.focus();case"italic":return Pt.replaceSelection("*"+bn+"*"),bn===""&&Pt.setCursor(Cn.line,Cn.ch+1),Pt.focus();case"code":return Pt.replaceSelection("`"+bn+"`"),bn===""&&Pt.setCursor(Cn.line,Cn.ch+1),Pt.focus();case"inline-latex":return Ur("inline-latex"),Pt.focus();case"latex":return Pt.replaceSelection("```latex\n"+bn+"\n```"),Pt.setCursor(Cn.line+1,bn.length+1),Pt.focus();case"line-break":return Pt.replaceSelection(`<br/>
|
|
|
`),Pt.focus();case"list-ul":return bn===""?Pt.replaceSelection("- "+bn):Pt.replaceSelection(Wn.map(Ki=>Ki===""?"":`- ${Ki}`).join(`
|
|
|
`)),Pt.focus();case"list-ol":return bn===""?Pt.replaceSelection("1. "+bn):Pt.replaceSelection(Wn.map((Ki,qi)=>Ki===""?"":`${qi+1}. ${Ki}`).join(`
|
|
|
`)),Pt.focus();case"add-null-ch":Mr==null||Mr();return;case"add-signal":return bn===""&&Pt.setCursor(Cn.line,Cn.ch),Pt.replaceSelection(en),Pt.focus();case"add-multiple":return bn===""&&Pt.setCursor(Cn.line,Cn.ch),Pt.replaceSelection(vn),Pt.focus();case"inster-template-1":return bn===""&&Pt.setCursor(Cn.line,Cn.ch),Pt.replaceSelection(hn),Pt.focus();case"eraser":return Pt.setValue(""),Pt.focus();case"trigger-watch":return br(!fr),Pt.focus();case"trigger-full-screen":return Nr(!wr),Pt.focus();case Bt:Ur(Bt);return;case zt:Ur(zt);return;case St:Ur(St);return;case dt:Ur(dt);return;case"maths-latex":Ur("maths-latex");return;case ft:Hn.current="",sessionStorage.removeItem("file_id"),Ur(ft);return;case Zt:Ur(Zt);return;default:throw new Error}},[Pt,fr,wr]),An=(0,Ye.useCallback)((Sn,Cn)=>{var bn,Wn,Ki,qi,oa,na;Ur("");const{src:Xi,alt:ba,id:Na}=Sn||{};switch(Kr){case Bt:const{title:ka,link:Vi}=Sn;return Pt.replaceSelection(`[${ka}](${Vi})`),Pt.focus();case zt:const{language:ia,content:da}=Sn;return Pt.replaceSelection(["```"+ia,da,"```"].join(`
|
|
|
`)),Pt.focus();case"maths-latex":for(var Ia=atob(Sn),yo=new Uint8Array(Ia.length),Oi=0;Oi<Ia.length;Oi++)yo[Oi]=Ia.charCodeAt(Oi);var Fi=new Blob([yo],{type:"image/png"});(0,rt.I)(Fi,Qi=>{Qi.id?Pt.replaceSelection(``):(Qi==null?void 0:Qi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Pt.replaceSelection("`$$"+Sn+"$$`");break;case Ft:if(!Na)return;Pt.getValue().indexOf(Xi)===-1?Pt.replaceSelection(`<center><img id="${Na}" width="80%" src="${Xi}" class="draw-flowchart" alt="${ba||""}" /></center>`):document.getElementById(Na).src=He.Z.API_SERVER+Xi+"?t="+Date.now();break;case St:case dt:const sa=Cn,ui=(Ki=(Wn=(bn=sa==null?void 0:sa.name)==null?void 0:bn.split("."))==null?void 0:Wn.pop)==null?void 0:Ki.call(Wn);return((qi=sa==null?void 0:sa.type)==null?void 0:qi.indexOf("image"))>-1||!(sa!=null&&sa.type)?sa!=null&&sa.align||sa!=null&&sa.width?Pt.replaceSelection(`<p style="text-align:${sa.align||"initial"}"><img width="${sa.width?sa.width+"%":"initial"}" src="${Xi}" alt="${ba||""}" /></p>`):Pt.replaceSelection(`<img width="100%" src="${Xi}" alt="${ba||""}" />`):((oa=sa==null?void 0:sa.type)==null?void 0:oa.indexOf("video"))>-1?Pt.replaceSelection(`<video width="100%" controls src="${Xi}"></video>`):((na=sa==null?void 0:sa.type)==null?void 0:na.indexOf("pdf"))>-1?Pt.replaceSelection(`<a href="${Xi}?type=${sa.type}&disposition=inline" target="_blank">${sa.name}</a>`):_n.includes(ui)?Pt.replaceSelection(`<a href="${Xi}?type=office&disposition=inline" target="_blank">${sa.name}</a>`):Pt.replaceSelection(`[${sa.name}](${Xi})`),Pt.focus();case Zt:const{row:Di,col:Mi,align:mi}=Sn;let ea=`
|
|
|
`;for(let Qi=0;Qi<Di;Qi++){let Ka=[],Ya=[];for(let Ha=0;Ha<Mi;Ha++)Qi===1&&Ya.push(mr[mi]),Ka.push(" ");Qi===1&&(ea+=`| ${Ya.join(" | ")} |
|
|
|
`),ea+=`| ${Ka.join(Mi===1?"":" | ")} |
|
|
|
`}return Pt.replaceSelection(ea+`
|
|
|
`),Pt.focus();default:throw new Error}},[Pt,Kr]),gi=(0,Ye.useMemo)(()=>{switch(Kr){case Bt:return Ye.createElement(pt,{callback:An,onCancel:nn});case zt:return Ye.createElement(ut.Z,{callback:An,onCancel:nn});case St:return Ye.createElement(rt.Z,{callback:An,onCancel:nn});case ft:return Ye.createElement(Fe,{editImgId:Hn.current,callback:An,onCancel:nn});case Zt:return Ye.createElement(We,{callback:An,onCancel:nn});case"maths-latex":return Ye.createElement(Ht,{showSaveButton:!0,callback:An});case"inline-latex":return Ye.createElement(Ct.Z,{showSaveButton:!0,callback:An});default:return null}},[Kr]);function nn(){Ur("")}(0,Ye.useEffect)(()=>{if(Jr.current){let Sn=function(oa){Ki=!0,qi=oa.pageY},Cn=function(){Ki=!1},bn=function(oa){if(Ki){let na=oa.pageY-qi;na<0&&(na=0),na>300&&(na=300);let Xi=Wr+na+"px";yn(Xi)}},Wn=Jr.current,Ki=!1,qi=0;return Wn.addEventListener("mousedown",Sn),document.addEventListener("mousemove",bn),document.addEventListener("mouseup",Cn),()=>{Wn.removeEventListener("mousedown",Sn),document.removeEventListener("mousemove",bn),document.removeEventListener("mouseup",Cn)}}},[Pt,Jr]),(0,Ye.useEffect)(()=>{yn(Wr)},[Wr]);const pn=tn(Pr),qn=tn(Nn),li={width:pn,height:qn},ji=(0,Ye.useMemo)(()=>{if(gn){let Sn=new Date(gn),Cn=Sn.getHours(),bn=Sn.getMinutes(),Wn=Sn.getSeconds();return Cn=Cn<10?"0"+Cn:Cn,bn=bn<10?"0"+bn:bn,Wn=Wn<10?"0"+Wn:Wn,`${Cn}:${bn}:${Wn}`}return 0},[gn]),Li=Sn=>{const Cn=[];if(cr){let bn=-1;Sn=Sn.replace(/(@▁▁@|@▁@)/g,function(Wn,Ki,qi){Cn.push({multiLine:Wn!==en})})}return Cn};function Bi(){window.sessionStorage.removeItem(Lt),$n(!1),kn(0)}function ni(){$n(!1),kn(0),Pt.setValue(window.sessionStorage.getItem(Lt))}(0,Ye.useEffect)(()=>{$r[Kr]&&Kr!==dt&&Kr!==ft&&setTimeout(()=>{const Sn=document.getElementsByClassName("markdown-popup-form")[0],Cn=window.innerWidth/2-Sn.offsetWidth/2,bn=window.innerHeight/2-Sn.offsetHeight/2;Jn(Cn),hi(bn)},0)},[Kr]);const ra=Sn=>{Sn.preventDefault();const Cn=Sn.clientX-Mn,bn=Sn.clientY-zn;document.body.onmousemove=Wn=>{let Ki=Wn.clientX-Cn,qi=Wn.clientY-bn;const oa=document.getElementsByClassName("markdown-popup-form")[0],na=window.innerWidth-oa.offsetWidth,Xi=window.innerHeight-oa.offsetHeight;Ki=Math.max(0,Math.min(Ki,na)),qi=Math.max(0,Math.min(qi,Xi)),ca(Wn.clientX,Wn.clientY,Cn,bn)&&(Jn(Ki),hi(qi))},document.body.onmouseup=function(){document.body.onmousemove=null}},ca=(Sn,Cn,bn,Wn)=>{const Ki=document.body.clientHeight,qi=document.body.clientWidth;return Sn<20&&bn>Sn||Sn>qi-20&&bn<Sn||Cn<20&&Wn>Cn||Cn>Ki-20&&Wn<Cn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Ye.createElement(Ye.Fragment,null,Ye.createElement("div",{className:"markdown-editor-wrapper",ref:Rn},Ye.createElement("div",{className:`markdown-editor-container ${kr} ${fr?"on-preview":""} ${mn?"mini":""} ${wr?"full-screen":""}`,style:li},Ye.createElement(Te,{insertTemp:It,watch:fr,fullScreen:wr,showNullButton:yr,showNullProgramButton:cr,onActionCallback:qr,hidetoolBar:vr,extraUse:ur}),Ye.createElement("div",{className:"markdown-editor-body"},Ye.createElement("div",{className:"codemirror-container"},Ye.createElement("textarea",{ref:Ei,placeholder:or})),fr?Ye.createElement("div",{ref:Xr,className:"preview-container"},Dt==="stex"&&Ye.createElement(ne,{value:nr}),Dt!=="stex"&&Ye.createElement(pe.Z,{edit:!0,disabledFill:lr,showProgramFill:cr,value:nr,openEditor:Sn=>{var Cn;Hn.current=Sn,(Cn=Dn.current)==null||Cn.setHeight("100vh"),setTimeout(()=>{Ur("add-flowchart")},150)}})):null))),Ut?Ye.createElement("a",{ref:Jr,className:"editor-resize"}):null,Kr===dt&&Ye.createElement(Rt,{callback:An,onCancel:nn}),Kr===ft&&Ye.createElement(Fe,{ref:Dn,editImgId:Hn.current,callback:An,onCancel:nn}),Ye.createElement(De.Z,null,$r[Kr]&&Kr!==dt&&Kr!==ft?Ye.createElement(qe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Mn,top:zn},title:Ye.createElement("div",{style:{cursor:"move"},onMouseDown:ra},$r[Kr]),open:!0,onCancel:nn,footer:null,destroyOnClose:!0,width:Kr===ft?"1200px":null,height:Kr===ft?"80vh":null,className:"markdown-popup-form"},gi):null))}},96554:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Ne},I:function(){return De}});var Ye=ke(78241),vt=ke(8591),x=ke(92832),Ae=ke(81327),me=ke(20071),re=ke(5112),z=ke(3113),ie=ke(33045),oe=ke(59301),se=ke(62602),pe=ke(59301),ne=Object.defineProperty,ae=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Se=(Ee,Pe,Be)=>Pe in Ee?ne(Ee,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ee[Pe]=Be,we=(Ee,Pe)=>{for(var Be in Pe||(Pe={}))he.call(Pe,Be)&&Se(Ee,Be,Pe[Be]);if(de)for(var Be of de(Pe))xe.call(Pe,Be)&&Se(Ee,Be,Pe[Be]);return Ee},be=(Ee,Pe)=>ae(Ee,ue(Pe));const{useForm:Me}=Ye.default,Le={width:280,marginRight:10},Ce={labelCol:{span:5},wrapperCol:{span:19}};var Ne=({callback:Ee,onCancel:Pe})=>{const[Be]=Me();let Ve=(0,oe.useRef)();function Ie(tt){Ve.current.width=Be.getFieldValue("width"),Ve.current.align=Be.getFieldValue("align"),Ee(tt,Ve.current)}function Ze(tt,it){if(tt.status===-1){vt.ZP.error(tt.message);return}Be.setFieldsValue({src:`/api/attachments/${tt.id}`,type:it.type})}function Qe(tt){let it=tt.target.files[0];Ve.current=it,De(it,Ze)}return pe.createElement(Ye.default,be(we({form:Be},Ce),{className:"upload-image-panel",onFinish:Ie,style:{width:470,overflow:"hidden"}}),pe.createElement(Ye.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},pe.createElement("div",{className:"flex-container"},pe.createElement(Ye.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},pe.createElement(x.default,{style:Le})),pe.createElement(Te,{onFileChange:Qe}))),pe.createElement(Ye.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},pe.createElement(x.default,{style:{width:264}})),pe.createElement(Ye.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},pe.createElement(Ae.Z,null,pe.createElement(Ye.default.Item,{name:"width",style:{margin:0}},pe.createElement(me.Z,{style:{width:264}})),pe.createElement("span",{className:"ml8"},"%"))),pe.createElement(Ye.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},pe.createElement(re.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"}]})),pe.createElement("aside",null,pe.createElement(Ye.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},pe.createElement(z.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),pe.createElement(z.ZP,{type:"default",onClick:Pe},"\u53D6\u6D88"))))};function Te({onFileChange:Ee}){return pe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",pe.createElement("input",{type:"file",onChange:Ee}))}function De(Ee,Pe){if(!Ee)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,se.bg)())throw vt.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",Ee),Be.append("file_param_name","editormd-image-file"),Be.append("byxhr","true");var Ve=new window.XMLHttpRequest;Ve.withCredentials=!0,Ve.addEventListener("load",function(Ie){Pe(JSON.parse(Ie.target.responseText),Ee)},!1),Ve.addEventListener("error",function(Ie){console.error(Ie)},!1),Ve.open("POST",`${ie.KI}/api/attachments.json`),Ve.send(Be)}},55444:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return x}});var Ye=ke(59301),vt=ke(4676);class x extends Ye.Component{constructor(me){super(me);const re=window.document;this.node=re.createElement("div"),re.body.appendChild(this.node)}render(){const{children:me}=this.props;return(0,vt.createPortal)(me,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99588:function(gr,Wt,ke){"use strict";var Ye=ke(67913),vt=ke(57809),x=ke(78673),Ae=ke(59301);const me=vt.default.Option;Wt.Z=({isTheoretical:re,onFontSizeChange:z,cmFontSize:ie,cmCodeMode:oe,autoFormat:se,onCodeModeChange:pe,onTabToSpace:ne,onAutoFormat:ae,formatDocument:ue,className:de="",tabToSpace:he,children:xe,code_editor:Se,challenge:we,shixun_environment_id:be,shixun_environments:Me})=>{var Le;const Ce={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},Ne=(Le=Me==null?void 0:Me.find(Te=>Te.shixun_environment_id===be))==null?void 0:Le.program_language;return Ae.createElement("div",{className:`tpi-code-setting ${de}`},Ae.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),Ae.createElement("section",null,Ae.createElement("div",{className:"file-item"},Ae.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),Ae.createElement(vt.default,{bordered:!1,size:"small",value:oe,onChange:pe},Ae.createElement(me,{value:"vs"},"\u767D\u8272\u80CC\u666F"),Ae.createElement(me,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!re&&Ae.createElement(Ae.Fragment,null,Ae.createElement("div",{className:"file-item"},Ae.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),Ae.createElement(vt.default,{bordered:!1,size:"small",value:ie,onChange:z},Ae.createElement(me,{value:12},"12px"),Ae.createElement(me,{value:14},"14px"),Ae.createElement(me,{value:16},"16px"),Ae.createElement(me,{value:18},"18px"),Ae.createElement(me,{value:20},"20px"),Ae.createElement(me,{value:22},"22px"))),Ae.createElement("div",{className:"file-item"},Ae.createElement("b",null,"Tab\u8F6C\u6362"),Ae.createElement(x.Z,{checked:he,onChange:ne})),Ae.createElement("div",{className:"file-item",onClick:ue},Ae.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!re&&Ae.createElement(Ae.Fragment,null,Ae.createElement("h3",null,"\u5FEB\u6377\u952E"),Ae.createElement("section",null,Ae.createElement("div",{className:"file-item"},Ae.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),Ae.createElement("span",null,"Ctrl + S")),Ae.createElement("div",{className:"file-item"},Ae.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),Ae.createElement("span",null,"F1 / Alt + F1")),Ae.createElement("div",{className:"file-item"},Ae.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),Ae.createElement("span",null,"Ctrl + ]/[")),Ae.createElement("div",{className:"file-item"},Ae.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),Ae.createElement("span",null,"Ctrl + Shift + \\")),Ae.createElement("div",{className:"file-item"},Ae.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),Ae.createElement("span",null,"Home")),Ae.createElement("div",{className:"file-item"},Ae.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),Ae.createElement("span",null,"End"))),xe),!re&&Ae.createElement(Ae.Fragment,null,Ae.createElement("h3",null,"\u5FEB\u6377\u952E"),Ae.createElement("section",null,Ne&&Ae.createElement("div",{className:"file-item"},Ae.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),Ae.createElement("span",null,Ne)),Ae.createElement("div",{className:"file-item"},Ae.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),Ae.createElement("span",null,Ce[we==null?void 0:we.difficulty])),Ae.createElement("div",{className:"file-item"},Ae.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),Ae.createElement("span",null,Se==null?void 0:Se.name)),Ae.createElement("div",{className:"file-item"},Ae.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),Ae.createElement("span",null,Se!=null&&Se.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},8184:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return vt}});var Ye=ke(59301);function vt(x,Ae){const me=(0,Ye.useRef)();(0,Ye.useEffect)(()=>{me.current=x}),(0,Ye.useEffect)(()=>{function re(){me.current()}if(Ae!==null){let z=setInterval(re,Ae);return()=>clearInterval(z)}},[Ae])}},35098:function(gr,Wt,ke){"use strict";ke.r(Wt),ke.d(Wt,{Types:function(){return _n},default:function(){return Un}});var Ye=ke(59301),vt={header:"header___N_IdR",field:"field___XG_dh","oj-form-container":"oj-form-container___syYzK","oj-left-panel":"oj-left-panel___L082x","oj-form-info":"oj-form-info___q0IU5",footer:"footer___pGCM2",result:"result___LM9Ms",passText:"passText___nUoL4",noPassText:"noPassText___ECHHG",pass:"pass___tDubp",noPass:"noPass___ilYvg","test-case-name":"test-case-name___MI_KD","btn-remove-case":"btn-remove-case___OiaTQ","icon-tag":"icon-tag___D86WO",btn_back:"btn_back___FyaSY",testJi:"testJi___NDviK",upBtn:"upBtn___FiZX4","oj-problems":"oj-problems___xb70g",row:"row___v036E",a:"a___yRaYH",b:"b___gWQyu",inputTwo:"inputTwo___IZ9og",inputOne:"inputOne____NmcT",cusModal:"cusModal___fJ5gm","oj-custom-large-spin":"oj-custom-large-spin___Aar0g",MdEditor:"MdEditor___hgoes"},x=ke(92832),Ae=ke(43418),me=ke(36381),re=ke(78241),z=ke(8591),ie=ke(95237),oe=ke(43604),se=ke(71418),pe=ke(3113),ne=ke(1710),ae=ke(57809),ue=ke(20071),de=ke(5112),he=ke(24905),xe=ke(81327),Se=ke(14478),we=ke(59301);const{Option:be}=ae.default;var Me=($r=>($r[$r.language=0]="language",$r[$r.difficulty=1]="difficulty",$r[$r.category=2]="category",$r[$r.openOrNot=3]="openOrNot",$r))(Me||{});const Le={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u9002\u4E2D",key:2},{title:"\u56F0\u96BE",key:3}],2:[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}],3:[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]};function Ce($r){return Le[$r].map(Yr=>we.createElement(be,{key:Yr.title,value:Yr.key}," ",Yr.title," "))}function Ne($r,Yr){$r.map(Lr=>{const{id:cn,name:Pr,sub_disciplines:Wr}=Lr;let mn={value:cn,label:Pr};Yr.push(mn),Wr&&Wr.length>0&&(mn.children=[],Ne(Wr,mn.children))})}function Te($r,Yr){var Lr;let cn=[];for(let Pr=0;Pr<$r.length;Pr++){const Wr=$r[Pr];if(((Lr=Wr.sub_disciplines)==null?void 0:Lr.length)>0){cn[0]=Wr.id;for(let mn=0;mn<Wr.sub_disciplines.length;mn++){const Gt=Wr.sub_disciplines[mn];if(Gt.id===Yr)return cn[1]=Gt.id,[cn,Gt.tag_disciplines||Gt.sub_disciplines||[]]}}}return[cn,[]]}var De=ke(91911),Ee=ke(24334),Pe=ke(76618),Be=ke(65363),Ve=ke(41722),Ie=ke(56640);function Ze($r){return(0,Ie.v_)("practices.json",$r)}function Qe(){return(0,Ie.U2)("problems/new.json")}function tt($r){return(0,Ie.U2)(`practices/${$r}/edit.json`)}function it($r,Yr){return(0,Ie.gz)(`practices/${$r}`,Yr)}function ht($r,Yr){return post(`exercises/${$r}/exercise_questions.json`,Yr)}function Ge($r,Yr){return put(`exercise_questions/${$r}.json`,Yr)}var Xe=ke(81739),ct=ke(43428),pt=ke(36670),ut=ke(99588),rt=ke(55444),qe=ke(14419),nt={"code-panel-container":"code-panel-container___BZjjl","action-oj-bar":"action-oj-bar___xbXpK",active:"active___EMVKI"},xt=Object.defineProperty,yt=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,$e=($r,Yr,Lr)=>Yr in $r?xt($r,Yr,{enumerable:!0,configurable:!0,writable:!0,value:Lr}):$r[Yr]=Lr,le=($r,Yr)=>{for(var Lr in Yr||(Yr={}))lt.call(Yr,Lr)&&$e($r,Lr,Yr[Lr]);if(Ot)for(var Lr of Ot(Yr))Ue.call(Yr,Lr)&&$e($r,Lr,Yr[Lr]);return $r},fe=($r,Yr)=>yt($r,Rt(Yr));const Fe={theme:(0,qe.G)("cmCodeMode","vs-dark"),fontSize:(0,qe.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,qe.G)("cmTabToSpace",!0)};var He=($r=>($r[$r.set_font_size=0]="set_font_size",$r[$r.set_theme=1]="set_theme",$r[$r.on_tab_to_space=2]="on_tab_to_space",$r[$r.set_show_editor_setting=3]="set_show_editor_setting",$r))(He||{});function ye($r,Yr){switch(Yr.type){case 3:return fe(le({},$r),{showEditorSetting:Yr.payload});case 1:return fe(le({},$r),{theme:Yr.payload});case 0:return fe(le({},$r),{fontSize:Yr.payload});case 2:return fe(le({},$r),{tabToSpace:Yr.payload});default:throw new Error}}var Re=({value:$r,onChange:Yr,language:Lr,onLanguage:cn,languageItems:Pr,ActionBarRender:Wr=mn=>Ye.createElement(ze,{languageItems:Pr,onLanguage:cn,language:Lr,onShowCodeSetting:mn})})=>{const[mn,Gt]=(0,Ye.useReducer)(ye,Fe),{theme:Et,fontSize:It,showEditorSetting:Dt,tabToSpace:Lt}=mn;console.log($r,Lr,"value");const Ut={onFontSizeChange:vr=>{Gt({type:0,payload:vr}),(0,qe.t)("cmFontSize",vr)},tabToSpace:Lt,cmFontSize:It,className:"oj",cmCodeMode:Et,onTabToSpace:vr=>{Gt({type:2,payload:vr}),(0,qe.t)("cmTabToSpace",vr)},onCodeModeChange:vr=>{Gt({type:1,payload:vr}),(0,qe.t)("cmCodeMode",vr)}};function Qt(){Gt({type:3,payload:!1})}function yr(){Gt({type:3,payload:!0})}const cr={value:$r,language:Lr,onChange:Yr,theme:Et,height:"calc(100% - 56px)",options:{fontSize:It,insertSpaces:Lt}};return Ye.createElement(Ye.Fragment,null,Ye.createElement("div",{className:nt["code-panel-container"]},Wr(yr),Ye.createElement(pt.ZP,le({key:Lr},cr))),Ye.createElement(rt.Z,null,Ye.createElement(ct.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Dt,onClose:Qt},Ye.createElement(ut.Z,le({},Ut)))))};function ze({languageItems:$r,language:Yr,onShowCodeSetting:Lr,onLanguage:cn}){return Ye.createElement("div",{className:nt["action-oj-bar"]},$r==null?void 0:$r.map(Pr=>Ye.createElement("div",{className:Yr===(Pr==null?void 0:Pr.language)?nt.active:"",onClick:()=>cn(Pr==null?void 0:Pr.language),key:Pr==null?void 0:Pr.language},Pr==null?void 0:Pr.language)),Ye.createElement("a",{onClick:Lr},Ye.createElement("i",{className:"iconfont icon-shezhi"})))}var Ke=ke(99313),We={flex_box_center:"flex_box_center___4yAaY",flex_space_between:"flex_space_between___YaUgM",flex_box_vertical_center:"flex_box_vertical_center___zR3dp",flex_box_center_end:"flex_box_center_end___rwgS5",flex_box_column:"flex_box_column___LhFeP",wrap:"wrap___xTL91",in:"in___eSY86",btns:"btns___UdEGI",customModal:"customModal___CL0OL"},st=($r,Yr,Lr)=>new Promise((cn,Pr)=>{var Wr=Et=>{try{Gt(Lr.next(Et))}catch(It){Pr(It)}},mn=Et=>{try{Gt(Lr.throw(Et))}catch(It){Pr(It)}},Gt=Et=>Et.done?cn(Et.value):Promise.resolve(Et.value).then(Wr,mn);Gt((Lr=Lr.apply($r,Yr)).next())}),at=({visible:$r,onOK:Yr,onCancel:Lr})=>{const[cn,Pr]=(0,Ye.useState)(!1),[Wr,mn]=(0,Ye.useState)(!1),[Gt,Et]=(0,Ye.useState)("1"),[It,Dt]=(0,Ye.useState)(""),[Lt,Ut]=(0,Ye.useState)([]),Qt=()=>st(void 0,null,function*(){if(!It){z.ZP.warning(`\u9898\u76EE${Ir}\u4E0D\u80FD\u4E3A\u7A7A`);return}mn(!0);const Ar=yield(0,Ie.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:$r,name:It}});if((Ar==null?void 0:Ar.status)===0){Yr();return}mn(!1)}),yr=(Ar="")=>st(void 0,null,function*(){Pr(!0);let qt=yield(0,Ie.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:$r,search:Ar}});Ut(qt.tag_disciplines||[]),Pr(!1)}),cr=Ar=>{let qt=Ar.name;Ae.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u91CD\u547D\u540D",content:Ye.createElement("div",null,Ye.createElement(x.default,{defaultValue:qt,placeholder:`\u8BF7\u8F93\u5165${Ir}\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57`,maxLength:20,onChange:kr=>{qt=kr.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>st(void 0,null,function*(){if(!qt)return z.ZP.warning(`\u9898\u76EE${Ir}\u4E0D\u80FD\u4E3A\u7A7A`),Promise.reject();const kr=yield(0,Ie.ZP)(`/api/tag_disciplines/${Ar.id}/rename.json`,{method:"post",body:{id:Ar.id,name:qt}});(kr==null?void 0:kr.status)===0&&yr()})})},vr=Ar=>{Ae.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:570,title:"\u5220\u9664",content:$r==="practice"?Ye.createElement("div",null,"\u786E\u8BA4\u5C06\u9898\u76EE\u6765\u6E90\u201C",Ye.createElement("span",{className:"c-light-primary"},Ar.name),"\u201D\u5220\u9664\u5417\uFF1F",Ye.createElement("br",null),"\u5220\u9664\u540E\uFF0C\u4F1A\u5C06\u76F8\u5173\u9898\u76EE\u4E2D\u7684\u6765\u6E90\u8FDB\u884C\u6E05\u9664\u3002"):Ye.createElement("div",null,"\u786E\u8BA4\u5C06\u9898\u76EE\u77E5\u8BC6\u70B9\u201C",Ye.createElement("span",{className:"c-light-primary"},Ar.name),"\u201D\u5220\u9664\u5417\uFF1F",Ye.createElement("br",null),"\u5220\u9664\u540E\uFF0C\u4F1A\u5C06\u76F8\u5173\u9898\u76EE\u4E2D\u7684\u77E5\u8BC6\u70B9\u8FDB\u884C\u6E05\u9664\u3002"),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>st(void 0,null,function*(){const qt=yield(0,Ie.ZP)(`/api/tag_disciplines/${Ar.id}.json`,{method:"delete",body:{id:Ar.id}});(qt==null?void 0:qt.status)===0&&yr()})})},Dr=Ar=>{yr(Ar)},Ir=$r==="practice"?"\u77E5\u8BC6\u70B9":"\u6765\u6E90";return Ye.createElement(Ae.default,{afterClose:()=>{mn(!1),Pr(!1),Dt(""),Et("1"),Ut([])},centered:!0,keyboard:!1,width:600,title:`${Ir}\u7BA1\u7406`,open:!!$r,className:We.customModal,footer:null,onCancel:Lr},Ye.createElement("section",{className:We.wrap},Ye.createElement(Ke.default,{activeKey:Gt,onChange:Ar=>{Dt(""),Et(Ar),yr()}},Ye.createElement(Ke.default.TabPane,{tab:`\u65B0\u589E${Ir}`,key:"1"},Ye.createElement(x.default,{value:It,onChange:Ar=>Dt(Ar.target.value),className:We.in,placeholder:`\u8F93\u5165${Ir}\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57`,maxLength:20}),Ye.createElement("div",{className:We.btns},Ye.createElement(pe.ZP,{onClick:Lr,className:"mr20"},"\u53D6\u6D88 "),Ye.createElement(pe.ZP,{loading:Wr,onClick:Qt,type:"primary"},"\u786E\u8BA4\u65B0\u5EFA"))),Ye.createElement(Ke.default.TabPane,{tab:`\u5DF2\u6709${Ir}`,key:"2"},Ye.createElement(x.default.Search,{allowClear:!0,onSearch:Dr,value:It,onChange:Ar=>Dt(Ar.target.value),className:We.in,placeholder:`\u8F93\u5165${Ir}\u540D\u79F0\u8FDB\u884C\u67E5\u8BE2`}),Ye.createElement(ne.default,{dataSource:Lt,bordered:!1,loading:cn,scroll:Lt.length>7?{y:300}:{},style:{padding:"0 0px 20px 0px"},columns:[{title:`${Ir}\u540D\u79F0`,dataIndex:"name",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"action",width:120,render:(Ar,qt)=>Ye.createElement("span",null,Ye.createElement("span",{onClick:()=>cr(qt),className:"current mr10 c-light-primary"},"\u91CD\u547D\u540D"),Ye.createElement("span",{onClick:()=>vr(qt),className:"current c-grey-666"},"\u5220\u9664"))}],pagination:!1})))))},kt=ke(82506),Ht=ke(86949),Ct=ke(66649),$t=ke.n(Ct),Bt=ke(5871),St=ke(33754),ft=ke(62602),dt=ke(59301),Ft=Object.defineProperty,zt=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertySymbols,mr=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable,zr=($r,Yr,Lr)=>Yr in $r?Ft($r,Yr,{enumerable:!0,configurable:!0,writable:!0,value:Lr}):$r[Yr]=Lr,jr=($r,Yr)=>{for(var Lr in Yr||(Yr={}))mr.call(Yr,Lr)&&zr($r,Lr,Yr[Lr]);if(tr)for(var Lr of tr(Yr))Er.call(Yr,Lr)&&zr($r,Lr,Yr[Lr]);return $r},Tr=($r,Yr)=>zt($r,Zt(Yr)),Vr=($r,Yr,Lr)=>new Promise((cn,Pr)=>{var Wr=Et=>{try{Gt(Lr.next(Et))}catch(It){Pr(It)}},mn=Et=>{try{Gt(Lr.throw(Et))}catch(It){Pr(It)}},Gt=Et=>Et.done?cn(Et.value):Promise.resolve(Et.value).then(Wr,mn);Gt((Lr=Lr.apply($r,Yr)).next())});const{TextArea:sn}=x.default,{confirm:vn}=Ae.default,{Panel:en}=me.default,hn={loading:!0,user:null,status:0,data:void 0,lastedUpdateTime:0};var _n=($r=>($r[$r.SET_INITAL_DATA=0]="SET_INITAL_DATA",$r[$r.SET_LOADING=1]="SET_LOADING",$r[$r.SET_STATUS=2]="SET_STATUS",$r))(_n||{});const tn="#### \u9898\u76EE\u63CF\u8FF0\n\u73B0\u6709\u4E00\u4E2A\u6574\u578B\u6570\u7EC4 `nums`\uFF0C\u8BF7\u7F16\u5199\u7A0B\u5E8F\u5C06\u6570\u7EC4 `nums` \u4E2D\u7684\u6240\u6709 `$$0$$` \u79FB\u52A8\u5230\u6570\u7EC4\u7684\u672B\u5C3E\uFF0C\u4F46\u4E0D\u6539\u53D8\u975E\u96F6\u5143\u7D20\u5728\u6570\u7EC4\u4E2D\u7684\u76F8\u5BF9\u4F4D\u7F6E\u3002\u8BF7\u5728\u539F\u6570\u7EC4 `nums` \u4E0A\u8FDB\u884C\u64CD\u4F5C\u3002\n#### \u8F93\u5165\u8F93\u51FA\u683C\u5F0F\n**\u8F93\u5165\u683C\u5F0F**\n\u7B2C\u4E00\u884C\u6709\u4E00\u4E2A\u6574\u6570 `numsSize`\uFF0C\u8868\u793A\u6570\u7EC4 `nums` \u7684\u5927\u5C0F\uFF1B\n\u7B2C\u4E8C\u884C\u6709 `numsSize` \u4E2A\u6574\u6570\uFF0C\u8868\u793A\u6570\u7EC4 `nums` \u7684\u6240\u6709\u5143\u7D20\uFF0C\u6BCF\u4E2A\u6574\u6570\u7528\u4E00\u4E2A\u7A7A\u683C\u9694\u5F00\u3002\n**\u8F93\u51FA\u683C\u5F0F**\n\u4E00\u884C\u8F93\u51FA\u6570\u7EC4 `nums` \u7684\u6240\u6709\u5143\u7D20\uFF0C\u6709 `numsSize` \u4E2A\u6574\u6570\uFF0C\u6BCF\u4E2A\u6574\u6570\u7528\u4E00\u4E2A\u7A7A\u683C\u9694\u5F00\u3002\n#### \u8F93\u5165\u8F93\u51FA\u6837\u4F8B1\n**\u8F93\u5165**\n`4`\n`0 1 2 3`\n**\u8F93\u51FA**\n`1 2 3 0`\n**\u89E3\u91CA\uFF08\u53EF\u9009\uFF09**\nXXXXX\n#### \u8F93\u5165\u8F93\u51FA\u6837\u4F8B2\n**\u8F93\u5165**\n`5`\n`1 1 0 1 0`\n**\u8F93\u51FA**\n`1 1 1 0 0`\n**\u89E3\u91CA\uFF08\u53EF\u9009\uFF09**\nXXXXX\n#### \u8BF4\u660E\u63D0\u793A\n-`1\u2264n\u2264100`";function Ln($r,Yr){switch(Yr.type){case 0:return jr(jr({},$r),Yr.payload);case 1:return Tr(jr({},$r),{loading:Yr.payload});case 2:return Tr(jr({},$r),{status:Yr.payload});default:throw new Error}}var Un=()=>{var $r,Yr,Lr;const cn=(0,De.useLocation)(),{id:Pr}=(0,De.useParams)(),[Wr]=re.default.useForm(),[mn,Gt]=(0,Ye.useState)(),[Et,It]=(0,Ye.useState)(!1),[Dt,Lt]=(0,Ye.useState)([]),[Ut,Qt]=(0,Ye.useState)([]),[yr,cr]=(0,Ye.useState)([]),[vr,Dr]=(0,Ye.useState)([]),[Ir,Ar]=(0,Ye.useState)([]),[qt,kr]=(0,Ye.useState)("C"),[Xt,rr]=(0,Ye.useReducer)(Ln,hn),{loading:lr,data:or,user:_r,status:ur}=Xt,Mr=or==null?void 0:or.hack_sets,Pt=($r=or==null?void 0:or.hack)==null?void 0:$r.test_set_average,[Jt,nr]=(0,Ye.useState)(!1),pr=(0,Ye.useRef)([]),[fr,br]=(0,Ye.useState)(!1),[wr,Nr]=(0,Ye.useState)(!1),Kr=(0,Ye.useRef)(!0),[Ur,gn]=(0,Ye.useState)({});(0,Ye.useEffect)(()=>((0,De.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,De.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,De.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,De.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,Ye.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)});const kn=()=>Vr(void 0,null,function*(){const Qr=yield(0,Ie.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice"}}),qr=yield(0,Ie.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source"}});Qt(Qr.tag_disciplines||[]),cr(qr.tag_disciplines||[])});var Nn=[{language:"C",code:""},{language:"C++",code:""},{language:"Java",code:""},{language:"Python",code:""}];const yn=(0,Ye.useCallback)(()=>Vr(void 0,null,function*(){if(rr({type:1,payload:!0}),Pr){const Qr=yield tt(Pr),{user:qr,language:An,practice_sets:gi,practice_codes:nn,description:pn,difficulty:qn,name:li,open_or_not:ji,time_limit:Li,test_set_average:Bi,test_set_score:ni,status:ra,tag_discipline_ids:ca,source_discipline_ids:Sn,item_banks_group_id:Cn,is_file:bn=!1,hide_actual_output:Wn,review_privilege:Ki,review_description:qi,submit_rule:oa}=Qr;gn({review_privilege:Ki,status:ra,review_description:qi,name:li}),nr(Wn);const Xi=bn?[{input:"",output:"",score:100,position:1}]:gi;bn?(Lt(gi),Wr.setFieldsValue({hack_sets:Xi})):Lt([]),rr({type:0,payload:{loading:!0,user:qr,status:ra,data:{hack:{difficulty:qn,name:li,description:pn,open_or_not:ji,time_limit:Li,test_set_average:Bi,test_set_score:ni,tag_discipline_ids:ca,source_discipline_ids:Sn,is_file:bn,submit_rule:oa},hack_sets:Xi}}}),Gt({hack:{difficulty:qn,name:li,description:pn,open_or_not:ji,time_limit:Li,test_set_average:Bi,test_set_score:ni,tag_discipline_ids:ca,source_discipline_ids:Sn,is_file:bn}});const Na=nn==null?void 0:nn.map(Ia=>Tr(jr({},Ia),{code:Ee.Base64.decode(Ia==null?void 0:Ia.code)}));Ar(Na),pr.current=Na}else{const{user:Qr}=yield Qe();rr({type:0,payload:{loading:!0,status:0,user:Qr,data:{hack:{difficulty:"",time_limit:3,description:tn,test_set_score:!0,test_set_average:!0,open_or_not:!0,name:"",is_file:!1,submit_rule:1},hack_sets:[{input:"",output:"",score:100,position:1}]}}}),Gt({hack:{difficulty:"",time_limit:3,description:"",test_set_average:!0,open_or_not:!0,name:"",is_file:!1}}),Ar(Nn),pr.current=Nn}rr({type:1,payload:!1})}),[Pr]);(0,Ye.useEffect)(()=>{try{yn(),kn()}catch(Qr){console.log(Qr,"----")}},[]);function rn(Qr,qr){return Vr(this,null,function*(){var An;const{hack_sets:gi,hack:nn}=jr({},Qr);nn.hide_actual_output=Jt;let pn=[],qn=[],li=0;const ji=nn!=null&&nn.is_file?Dt.map((ni,ra)=>Tr(jr({},ni),{position:ra+1})):gi.map(ni=>Tr(jr({},ni),{is_file:!1}));for(let ni of ji)li+=ni.score,ni.id&&ni.id>=0?pn.push(ni):qn.push(ni);if(!(ji!=null&&ji.length)){z.ZP.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A");return}if(li!==100&&!nn.test_set_score){z.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}if(ji!=null&&ji.some(ni=>!ni.output)){z.ZP.error("\u6D4B\u8BD5\u96C6\u8F93\u51FA\u4E0D\u80FD\u4E3A\u7A7A");return}Kr.current?br(!0):Nr(!0);let Li;const Bi=Ir==null?void 0:Ir.map(ni=>Tr(jr({},ni),{code:Ee.Base64.encode(ni==null?void 0:ni.code)}));if(Pr?Li=yield it(Pr,{practice:nn,practice_codes:Bi,practice_sets:qn,update_practice_sets:pn}):Li=yield Ze({practice:nn,practice_codes:Bi,practice_sets:ji,publish:!Kr.current}),br(!1),Nr(!1),(Li==null?void 0:Li.status)===0){if((An=Li==null?void 0:Li.similar_practice)!=null&&An.length){It(!0),Dr(Li==null?void 0:Li.similar_practice);return}if(Pr){if(z.ZP.success("\u4FDD\u5B58\u6210\u529F"),!Kr.current){const ni=yield(0,Ie.ZP)(`/api/practices/${Pr}/start`,{method:"get"});(ni==null?void 0:ni.status)===0&&De.history.push(`/problems/${ni==null?void 0:ni.identifier}/oj/${Pr}`)}}else z.ZP.success("\u65B0\u5EFA\u6210\u529F"),De.history.replace(`/problems/${Li==null?void 0:Li.identifier}/ojedit`)}})}function $n(){De.history.replace("/problems")}const Tn=Qr=>{const qr=Math.floor(100/Qr.length),An=qr+100%Qr.length;Qr=Qr.map((gi,nn)=>nn===Qr.length-1?Tr(jr({},gi),{score:An}):Tr(jr({},gi),{score:qr})),Lt(Qr)};function Zn(Qr){Qr.target.value||Tn(Dt),rr({type:0,payload:{data:Tr(jr({},or),{hack:Tr(jr({},or.hack),{test_set_score:Qr.target.value})})}})}function wn(Qr){rr({type:0,payload:{data:Tr(jr({},or),{hack:Tr(jr({},or.hack),{is_file:Qr.target.value})})}})}function Mn(Qr){nr(Qr.target.checked)}function Jn(Qr){const qr=Qr.target.value;qr&&Tn(Dt),rr({type:0,payload:{data:Tr(jr({},or),{hack:Tr(jr({},or.hack),{test_set_average:qr})})}})}function zn(){let Qr=Wr.getFieldValue("hack_sets");const qr=Qr.length+1,An=Math.floor(100/qr),gi=100%qr;Qr.map((nn,pn)=>(Pt&&(nn.score=An),nn.position=pn+1,nn)),Qr.push({input:"",output:"",position:qr,score:Pt?An+gi:0}),Wr.setFieldsValue({hack_sets:Qr}),rr({type:0,payload:{data:Tr(jr({},or),{hack_sets:Qr})}})}(0,Ye.useEffect)(()=>{if(Pt){const Qr=Mr==null?void 0:Mr.length,qr=Math.floor(100/Qr),An=100%Qr;Mr==null||Mr.map((gi,nn)=>(gi.score=qr,gi.position=nn+1,nn===Qr-1&&(gi.score=qr+An),gi)),rr({type:0,payload:{data:Tr(jr({},or),{hack_sets:Mr})}}),Wr.setFieldsValue({hack_sets:Mr})}},[Pt]);function hi(Qr){let qr=Wr.getFieldValue("hack_sets");const An=(qr==null?void 0:qr.length)-1,gi=Math.ceil(100/An),nn=100%An;qr.splice(Qr,1),qr==null||qr.map((pn,qn)=>(Pt&&(pn.score=gi,qn===An-1&&(pn.score=gi+nn)),pn.position=qn+1,pn)),rr({type:0,payload:{data:Tr(jr({},or),{hack_sets:qr})}}),Wr.setFieldsValue({hack_sets:qr})}function Ei(Qr){kr(Qr)}const Rn=Qr=>{var qr;const An=(qr=pr.current)==null?void 0:qr.findIndex(gi=>gi.language===qt);pr.current[An].code=Qr,Ar(pr.current)},Jr=Qr=>{Gt(jr({},Wr.getFieldsValue()))},Xr=Qr=>Vr(void 0,null,function*(){const qr=yield(0,Ie.ZP)(`/api/practices/${Qr}/start`,{method:"get"});(qr==null?void 0:qr.status)===0&&(0,Bt.xg)(`/problems/${qr==null?void 0:qr.identifier}/oj/${Qr}`)}),Hn=()=>Vr(void 0,null,function*(){const Qr=yield tt(Pr),{name:qr,status:An,review_privilege:gi,review_description:nn}=Qr;gn({review_privilege:gi,status:An,review_description:nn,name:qr})}),Dn=()=>{let Qr="";Ae.default.confirm({icon:null,width:700,className:"custom-modal-divider",centered:!0,title:"\u4E0D\u901A\u8FC7\u539F\u56E0",content:dt.createElement("div",{className:"mt20"},dt.createElement(Ve.Z,{className:vt.MdEditor,defaultValue:Qr,onChange:qr=>{Qr=qr}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Vr(void 0,null,function*(){if(!Qr)return z.ZP.warning("\u4E0D\u901A\u8FC7\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const qr=yield(0,Ie.ZP)(`/api/practices/${Pr}/review.json`,{method:"post",body:{op:"fail",description:Qr}});(qr==null?void 0:qr.status)===0&&(z.ZP.success("\u63D0\u4EA4\u6210\u529F"),Hn())})})},ri=()=>Vr(void 0,null,function*(){Ae.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u63D0\u793A",content:`\u786E\u8BA4\u5C06\u9898\u76EE\u300A${Ur==null?void 0:Ur.name}\u300B\u7684\u5BA1\u6838\u901A\u8FC7\u5417\uFF1F`,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Vr(void 0,null,function*(){const Qr=yield(0,Ie.ZP)(`/api/practices/${Pr}/review.json`,{method:"post",body:{op:"pass"}});(Qr==null?void 0:Qr.status)===0&&(z.ZP.success("\u63D0\u4EA4\u6210\u529F"),Hn())})})}),ai=()=>{const Qr=Ae.default.confirm({icon:null,width:700,className:`${vt.cusModal} custom-modal-divider`,centered:!0,title:dt.createElement(ie.Z,null,dt.createElement(oe.Z,{flex:"1"},"\u4E0D\u901A\u8FC7\u539F\u56E0"),dt.createElement(oe.Z,null,dt.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>Qr.destroy()}))),content:dt.createElement("div",null,dt.createElement(St.Z,{className:"mt20",value:(Ur==null?void 0:Ur.review_description)||""}))})};return dt.createElement(se.Z,{spinning:lr,size:"large",className:vt["oj-custom-large-spin"]},or?dt.createElement(Ye.Fragment,null,dt.createElement("header",{className:vt.header},dt.createElement("div",null,dt.createElement("img",{src:`${kt.Z.IMG_SERVER}/images/${_r==null?void 0:_r.image_url}`,alt:"user",width:30}),dt.createElement("span",null,_r==null?void 0:_r.name)),dt.createElement("h2",null," ",(Yr=or==null?void 0:or.hack)==null?void 0:Yr.name," "),Pr?dt.createElement("a",{className:vt.btn_back,onClick:$n}," ",dt.createElement(Pe.Z,null),"\u9000\u51FA"):null),dt.createElement(re.default,{form:Wr,initialValues:or,layout:"vertical",className:vt["oj-form-container"],onValuesChange:Jr,onFinish:rn},dt.createElement(Xe.Z,{hideResize:!0,className:vt["oj-problems"],leftChild:dt.createElement(Vn,{formValue:mn,onRemoveTestCase:hi,onAddTestCase:zn,hack:or.hack,onChangeScore:Zn,onChangehide:Mn,onChangeAverage:Jn,onChangeFile:wn,uploadData:Dt,setUploadData:Lt,handleUploadRatio:Tn,ischecked:Jt,pointData:Ut,sourceData:yr,getPointData:kn}),rightChild:dt.createElement(Re,{value:(Lr=Ir==null?void 0:Ir.find(Qr=>Qr.language===qt))==null?void 0:Lr.code,onChange:Rn,onLanguage:Ei,languageItems:Ir,language:qt})}),dt.createElement("div",{className:vt.footer},!!Pr&&dt.createElement("div",{className:vt.result},dt.createElement("span",null,"\u5BA1\u6838\u7ED3\u679C:"),Ur!=null&&Ur.review_privilege?dt.createElement(dt.Fragment,null,dt.createElement("div",{onClick:ri,className:vt.pass},"\u901A\u8FC7"),dt.createElement("div",{onClick:Dn,className:vt.noPass},"\u4E0D\u901A\u8FC7")):dt.createElement(dt.Fragment,null,(Ur==null?void 0:Ur.status)===0&&dt.createElement("div",{className:vt.passText},dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u672A\u53D1\u5E03"),(Ur==null?void 0:Ur.status)===1&&dt.createElement("div",{className:vt.passText},dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5DF2\u516C\u5F00"),(Ur==null?void 0:Ur.status)===2&&dt.createElement("div",{className:vt.passText},dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u672A\u5BA1\u6279"),(Ur==null?void 0:Ur.status)===3&&dt.createElement("div",{className:vt.passText},dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5BA1\u6838\u4E2D"),(Ur==null?void 0:Ur.status)===4&&dt.createElement("div",{className:vt.passText},dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5BA1\u6838\u5B8C\u6210\u5F85\u516C\u5F00"),(Ur==null?void 0:Ur.status)===5&&dt.createElement("div",{className:vt.noPassText},dt.createElement("i",{className:"iconfont icon-weitongguo1"}),"\u5BA1\u6838\u4E0D\u901A\u8FC7",dt.createElement("span",{onClick:ai},"\u67E5\u770B\u539F\u56E0")))),dt.createElement(pe.ZP,{type:"primary",ghost:!0,onClick:$n},"\u9000\u51FA\u7F16\u8F91"),dt.createElement(pe.ZP,{disabled:wr,loading:fr,type:"primary",onClick:()=>{Kr.current=!0,Wr.submit()}},"\u4FDD\u5B58 "),Pr?dt.createElement(pe.ZP,{disabled:fr,loading:wr,style:{background:"#2FC25B",border:0},type:"primary",onClick:()=>{Kr.current=!1,Wr.submit()}},"\u7ACB\u5373\u4F53\u9A8C"):dt.createElement(pe.ZP,{disabled:fr,loading:wr,type:"primary",onClick:()=>{Kr.current=!1,Wr.submit()}},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u5BA1\u6838")))):null,dt.createElement(Ae.default,{centered:!0,destroyOnClose:!0,footer:null,open:Et,onCancel:()=>It(!1),title:"\u76F8\u4F3C\u6027\u68C0\u6D4B",width:"600px"},dt.createElement("div",null,dt.createElement("p",{className:"font14"},"\u7ECF\u7CFB\u7EDF\u68C0\u6D4B\u53D1\u73B0\uFF0C\u672C\u9898\u76EE\u4E0E\u7CFB\u7EDF\u4E2D\u5DF2\u521B\u5EFA\u7684\u9898\u76EE\u9AD8\u5EA6\u96F7\u540C\uFF0C\u8BF7\u8C03\u6574\u9898\u76EE\u540E\u518D\u8FDB\u884C\u4FDD\u5B58"),dt.createElement(ne.default,{dataSource:vr,bordered:!1,scroll:vr.length>7?{y:300}:{},columns:[{title:"\u76F8\u4F3C\u9898\u9898\u76EE",dataIndex:"name",ellipsis:!0,render:(Qr,qr)=>dt.createElement("span",{onClick:()=>Xr(qr==null?void 0:qr.identifier),style:{textDecorationLine:"underline"},className:"current c-light-primary"},Qr)},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"create_time",width:170,render:Qr=>{var qr;return(qr=$t()(Qr))==null?void 0:qr.format("YYYY-MM-DD HH:mm")}}],pagination:!1}))))};function Vn({ischecked:$r,formValue:Yr,hack:Lr,onChangeAverage:cn,onChangeScore:Pr,onChangehide:Wr,onChangeFile:mn,onAddTestCase:Gt,onRemoveTestCase:Et,uploadData:It,setUploadData:Dt,handleUploadRatio:Lt,pointData:Ut,sourceData:Qt,getPointData:yr}){var cr,vr;const{test_set_average:Dr,test_set_score:Ir}=Lr,[Ar,qt]=(0,Ye.useState)(!1),[kr,Xt]=(0,Ye.useState)(!1),rr=(Pt,Jt)=>{const nr=[...It];nr.splice(Jt,1),Dr?Lt(nr):Dt(nr)},lr=(Pt,Jt)=>{console.log(Pt,Jt);const nr=It.map((pr,fr)=>fr===Jt?Tr(jr({},pr),{score:Pt.target.value?Number(Pt.target.value):0}):pr);Dt(nr)},or=Pt=>{const Jt=It.concat(Pt);Lr.test_set_average?Lt(Jt):Dt(Jt)};function _r(Pt){Pt.stopPropagation()}function ur(){if((0,ft.Ny)()){Xt("practice");return}let Pt="";Ae.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",content:dt.createElement("div",null,dt.createElement(x.default,{placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57",maxLength:20,onChange:Jt=>{Pt=Jt.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Vr(this,null,function*(){const Jt=yield(0,Ie.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice",name:Pt}});(Jt==null?void 0:Jt.status)===0&&yr()})})}function Mr(){if((0,ft.Ny)()){Xt("practice_source");return}let Pt="";Ae.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u65B0\u5EFA\u6765\u6E90",content:dt.createElement("div",null,dt.createElement(x.default,{placeholder:"\u8BF7\u8F93\u5165\u6765\u6E90\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57",maxLength:20,onChange:Jt=>{Pt=Jt.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Vr(this,null,function*(){const Jt=yield(0,Ie.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice_source",name:Pt}});(Jt==null?void 0:Jt.status)===0&&yr()})})}return dt.createElement("div",{className:vt["oj-left-panel"]},dt.createElement("div",{className:vt["oj-form-info"]},dt.createElement(re.default.Item,{label:"\u9898\u76EE\u540D\u79F0",name:["hack","name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0"}],className:vt.inputOne},dt.createElement(x.default,{bordered:!1,maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0",suffix:dt.createElement("span",null,((vr=(cr=Yr==null?void 0:Yr.hack)==null?void 0:cr.name)==null?void 0:vr.length)||0,"/",dt.createElement("span",{className:"c-grey-999"},"60"))})),dt.createElement(re.default.Item,{name:["hack","description"],valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},dt.createElement(Ve.Z,{placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u63CF\u8FF0\u2026",miniToolbar:!0,id:"moop_cases_content",noStorage:!0,height:200})),dt.createElement("div",{className:vt.row},dt.createElement("div",{className:vt.a},dt.createElement(re.default.Item,{label:"\u96BE\u6613\u5EA6",name:["hack","difficulty"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u6613\u5EA6"}]},dt.createElement(ae.default,null,Ce(Me.difficulty)))),dt.createElement("div",{className:vt.b},dt.createElement(re.default.Item,{label:"\u9898\u76EE\u6765\u6E90",name:["hack","source_discipline_ids"]},dt.createElement(ae.default,{placeholder:"\u9009\u62E9\u9898\u76EE\u6765\u6E90",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:Pt=>Pt.parentNode},Qt.map(Pt=>dt.createElement(ae.default.Option,{key:Pt.id,value:Pt.id},Pt.name)))),dt.createElement(pe.ZP,{style:{padding:"0 18px"},type:"primary",ghost:!0,onClick:()=>Mr()},(0,ft.Ny)()?"\u6765\u6E90\u7BA1\u7406":"\u65B0\u5EFA\u6765\u6E90"))),dt.createElement("div",{className:vt.row},dt.createElement("div",{className:vt.b,style:{width:"100%",marginLeft:0}},dt.createElement(re.default.Item,{label:"\u77E5\u8BC6\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"}],name:["hack","tag_discipline_ids"]},dt.createElement(ae.default,{placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:Pt=>Pt.parentNode},Ut.map(Pt=>dt.createElement(ae.default.Option,{key:Pt.id,value:Pt.id},Pt.name)))),dt.createElement(pe.ZP,{type:"primary",ghost:!0,onClick:()=>ur()},(0,ft.Ny)()?"\u77E5\u8BC6\u70B9\u7BA1\u7406":"\u65B0\u5EFA\u77E5\u8BC6\u70B9"))),dt.createElement("div",{className:vt.field},dt.createElement(re.default.Item,{label:"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236",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:1,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F1\u79D2"}],className:vt.inputTwo,extra:dt.createElement("span",{style:{position:"absolute",left:200,top:11,color:"#333"}},"\u79D2",dt.createElement("span",{className:"ml5 c-grey-999"},"(\u4EE3\u7801\u6267\u884C\u6240\u5141\u8BB8\u7684\u6700\u5927\u65F6\u957F)"))},dt.createElement(ue.Z,{style:{width:185},min:1}))),dt.createElement("div",{className:"tst-case-info"},dt.createElement("h3",{className:"flex-container",style:{justifyContent:"space-between"}}," ","\u6D4B\u8BD5\u7528\u4F8B\u4E0E\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219",!Lr.is_file&&dt.createElement(pe.ZP,{style:{height:40},type:"primary",ghost:!0,onClick:Gt},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B")),dt.createElement(re.default.Item,{name:["hack","test_set_score"]},dt.createElement(de.ZP.Group,{onChange:Pr},dt.createElement(de.ZP,{value:!0},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",dt.createElement("span",{className:"tip"}," ","\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u4EC5\u5F53\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u83B7\u5F97\u4E00\u6B21\u6027\u5956\u52B1\uFF09")),dt.createElement(de.ZP,{value:!1},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",dt.createElement("span",{className:"tip"}," ","\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u901A\u8FC7\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5BF9\u5E94\u5956\u52B1\uFF09")))),dt.createElement(he.default,{style:{marginBottom:"5px"},checked:$r,onChange:Wr},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA \uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u5B66\u751F\u505A\u9898\u8FC7\u7A0B\u4E2D\u65E0\u6CD5\u770B\u5230\u5B9E\u9645\u8F93\u51FA\u7ED3\u679C\uFF0C\u4EC5\u5C55\u793A\u662F\u5426\u8BC4\u6D4B\u662F\u5426\u901A\u8FC7\uFF09"),dt.createElement(re.default.Item,{className:vt.testJi,name:["hack","is_file"],label:"\u7528\u4F8B\u7C7B\u578B:"},dt.createElement(de.ZP.Group,{onChange:mn},dt.createElement(xe.Z,{direction:"horizontal"},dt.createElement(de.ZP,{value:!1},"\u6587\u672C"),dt.createElement(de.ZP,{value:!0},"\u6587\u4EF6")))),dt.createElement(re.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",name:["hack","submit_rule"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},dt.createElement(de.ZP.Group,null,dt.createElement(de.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),dt.createElement(de.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),dt.createElement(de.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"),dt.createElement(de.ZP,{value:3},"\u5FFD\u7565\u6BCF\u884C\u9996\u5C3E\u7A7A\u683C"))),!Lr.test_set_score&&dt.createElement(re.default.Item,{name:["hack","test_set_average"],label:"\u7CFB\u7EDF\u8BC4\u5206\u5360\u6BD4"},dt.createElement(de.ZP.Group,{onChange:cn},dt.createElement(de.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),dt.createElement(de.ZP,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),Lr.is_file&&dt.createElement("div",{className:vt.upBtn},dt.createElement(pe.ZP,{ghost:!0,type:"primary",className:"mb20",onClick:()=>qt(!0)},"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"),dt.createElement(Ht.Y2,{disabled:Lr==null?void 0:Lr.test_set_average,inputChange:lr,showScore:!Lr.test_set_score,data:It,onRemove:rr})),!Lr.is_file&&dt.createElement(re.default.List,{name:"hack_sets"},(Pt,{})=>dt.createElement(me.default,{accordion:!0},Pt.map((Jt,nr)=>dt.createElement(en,{key:`${Jt.key}--${nr}`,header:dt.createElement("a",{className:vt["test-case-name"]},dt.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",nr+1),Ir?null:dt.createElement(dt.Fragment,null,dt.createElement(re.default.Item,{name:[Jt.name,"score"],fieldKey:[Jt.fieldKey,"score"],rules:[{required:!0,message:`\u8BF7\u8F93\u5165\u6D4B\u8BD5\u96C6${nr+1}\u8BC4\u5206`}]},dt.createElement(ue.Z,{onClick:_r,min:0,max:100,disabled:Dr})),dt.createElement("span",null,"%"))),extra:nr>0?dt.createElement("div",{onClick:_r},dt.createElement(Se.Z,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6\b"+(nr+1),onConfirm:()=>{Et(nr)}},dt.createElement(Be.Z,{className:vt["btn-remove-case"]}))):null},dt.createElement(re.default.Item,{label:"\u8F93\u5165",name:[Jt.name,"input"],fieldKey:[Jt.fieldKey,"input"]},dt.createElement(sn,null)),dt.createElement(re.default.Item,{label:"\u8F93\u51FA",name:[Jt.name,"output"],fieldKey:[Jt.fieldKey,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},dt.createElement(sn,null)))))))),dt.createElement(Ht.ZP,{rootIdentifier:null,visible:Ar,onClose:()=>qt(!1),onOK:or}),dt.createElement(at,{visible:kr,onCancel:()=>{Xt(!1),yr()},onOK:()=>{Xt(!1),yr()}}))}},86949:function(gr,Wt,ke){"use strict";ke.d(Wt,{Y2:function(){return Qe},ZP:function(){return tt}});var Ye=ke(59301),vt=ke(54580),x=ke(8591),Ae=ke(43418),me=ke(95237),re=ke(5112),z=ke(3113),ie=ke(24905),oe=ke(6848),se=ke(92832),pe={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527gShsFUZFeQpJN1GkncyG46iVJBVFG4D6mLKYmSMLgQM4NXf855NrgMvm/8egBC9BD4oIBhBV7++fPlHP6n8PH/p/84Dp8XS7v8txB2N8sext/h7+G/73++3v67YZ08hz54Xhxr86fAy7c/P+ZVHQB1DaYaCz7AbBzfgVsNefPHBGL5GjJCRQUW0PpecRrp0DugJpWsXnsgVk9bRk5QQCm0nq1khhpb0Gcy1fl3IFZHV0YVKDCfa03nWeOgqdoSrODc9Lz1BGgp8qX1AWJputGrgAJz1bXd2VaBiEVDUJ2J5EpvDMTStaNnogJHeFmvuiSrB2gStYRtgZhQMJqnKWD0rCttsfd7AbPSioYQgFgFURnyQwHnW8ZUq4FZqnIr/YBYQTEZ6lKBDreNshQYxvf9v6+He298khUAYsnS0fGeAsBLmBvj+JWnmULNFs2BWLp29LxSYL4qMczXJLa4Se9Nf7aYiY4CsUTh6MbWsUoOsMUUywrExJLRYakAW8cq+UBVJpAViAnEoinV16Y5QFUWJTcQi5KJRtcKUIFtlBOA7KnQQOypRDS42D5yeN8iIdhePlAdiLVISaNzUn01No6rGKsGALHGeWllegCmxCm2lzdGADEluak5DACmzB1AdmEIEFOWn9rCAWDaHDnGA8jOxgAxpTmqIayXt/0vbt9rcOJODIBsFgaIKc7RlqFRgbVUXzA3IANignTppikAM2Z15yCjEjOWr7XDBWC1Fa40fscgA2KVcsrisADMomuLmDsFGRAznrelwj++Rmc6yOdjWYEOL8QCMcsJWyh2AFZISCXD7P976ernuqvFKskxVWEAMFV2lAmms20lECuTNmZH4S6YWeseB94RyICY0xyOWRYH+TEqGW7TCciAmOEczQmdbWSOenb69nA+BsTs5GPRSNlGFpVT72AdVGNATG/6VYuMbWQ1aXUO7BxkQExn2lWN6uVtP1adgMHVKeB5WwnE1KVb3YDYRtbVV+3ojqsxIKY268oHxmF+eU0tjei1GgNilrIwM1a2kZkCWu/utBoDYtYTMzJ+tpGRQnlv5hBkQMx70h7XRxXWidHPl7nb//fy9XkzOy2AmB2vkiPlSkWydD47OqvGgJjPNL1YFVVYByZLlgjEJGrRtrUCPJFs7YDS+R2BjEpMSY7NsDl+9j9fd6XC4kC/lJLOxgFizgzdYDnzudTpMw6fj//3DK4HIRyANoy/w9+wkwCOKmwDYy1P4QRkVGIVk/AMrnH4XniaXQzUqMIKq+5tOCDmzdH89cyVz6fwJRwqrZgqK3/SEFaBRhVWQlr/Y3i4xU8lVihPlVxj2IVxfJ+2nFRhhYz1PoyDagyIZSapEnhdr2I6R9uqEsxUkO5NFQBiTeVvOrlSeDXVhMltKmB9S0klJsw74CUUjOb6FTBejQExQYoBMIFYNLWkgOnvUwKxyFTjoDxSKJqZVMDylhKIPUk5riqY/JkkaKkChreUQOyB2WwfpT8JtDerABAza93dwAGYP09Z0WMFrG4pqcRWfGULyY97jwoAMSeuAzAnRrIMuQJGt5RUYldW8xRSnvv0cKIAELNvJACz7yEryFLA5H0xKrGj5xzkZyU/nZ0oYPFcDIiFEDgHc/ITyDKyFQBi2RK2GYBtZBvdmVWhAuP4VfL2YA0r6L4SYxupIQ2JQY0CBg/3gdjbflSTQASCAq0VAGKtHZDNTxUm04vWHSgAxOyYzGG+Ha+IdFMFzF2z6HY7yWH+pj8YTGZHASBmwSuqMAsuEWMjBYBYI+FF0wIxkVw07kwBa3fFutxOspXs7KeS5YoUAGIiudo0fuFaRRvhmdWEAkBMuU1sJZUbRHjNFQBizS14HABbSeUGEV5zBYBYcwueQowb+so9Iry2CgCxtvo/nJ2tpGJzCE2NAkBMjRW3gQAxxeYQmhoFgJgaK1Yg9u3PjzAO3xWHSGgo0FoBLru2duDR/HzhW7M7xKZEASCmxIjVMHgyqdkdYlOiABBTYgQQ02wEsWlWAIhpdodKTLM7xKZCAd4npsKGu0HwdSPd/hCdAgV4x35bE+YrFNPnUzj87/IzDp9DWPnvbUNmdhTQpQAQ286P+Unj9DnAafrcgmu7cJgJBVwoYO2O2CS6mVfxXEELYLn4kWERShXYhXF8t/Kn21RDbAEuLqgqzXbCcq+AeqCpgxjgcv9DwQLtKqASaGogxm16u5lN5B0qoOgqRnOIAa8OfwBYshcFVFRmzSAGvLzkMetAgdAUZptD7Agv7myR+SjgT4EmMNsUYlRf/rKWFaHAigKbwmwTiAEvEh0FOlRgo8P/6hADYB0mL0tGgZMCG4CsGsSOr4KeLqlyu56URoG+Fai6vawCMaqvvjOW1aPAqgKVqrLiEANgJDAKoMBdBSqArCjEABjJiwIoEKFA0bfHFoMYAIuwjiYogAInBYqBrAjEeO0zmYkCKJCgQBGQZUMMgCVYRxcUQIFiFVkWxNhCkokogALZCmQe9idDDIBlW8cAKIACJwUyQJYEMQBG7qEAChRXIBFkYogdb+L/Kr4ABkQBFECBBJDJIfa2H1EaBVAABaopIASZCGI8iaxmGwOjAAosFJD86bhoiHEORo6hAApspoCgGouCGOdgm1nHRCiAAsInlnEQe9tPB/m8Uof0kiswjO/hb9jNHYeBVzPJFey6R8y28inE2EZ2nUM5i1/9Sgn5lCNph30jtpUPIcY2ssOkKbTkR79BAVkhkXsZ5gnIHkOMbWQvaVJ2neP4df/z9bCFvPMBZGUl9z7ao1+KdyFGFeY9LSqtLwJgp5m5slPJA4/DPqjG7kOMKsxjKtRdU8T5xXUAL1yeruuJo9HvVWOrEKMKc+T8VktJANgUGrm2lUEO5rmTY+sQowpz4PiGS0gE2Hlb+c+fL2EY+D7uhpaZnCoWYvxmNGlvu6AzAXYG2bc/P8I43yPjgwL3FVjJt5tKjMNWMkigQJHXCwMygeK9N42EGG+p6D1R4tZfFGCALE50WoVwfcB/UYmxlSRFohUQXKWIHvPYkDtkUsU6a39VjV1CjAP9zrIhcbkVAXauyMjFRHP66Lasxq4hxlayjxxIX+UGAANk6fZ003ORh2eIsZXsxv70hRZ6EikJgMuwErU6arvIxQ+IUb53lAEJS20AsClKfrkmeNVHl/ODpSXE2Er2Yb58lY0AxhNLuVU99Tidi80Q47ddT9aL11rlKoU0Cp5YShXroP3xlysQ68DrjCWqABgVWYaDnrteQIzzMM9Wp65NFcAAWaqNrvvNOXqoxICYa6eTFrfhVQppfGwtpYr5bT+di50gxqG+X5/lK1MMsHNFxi9eua8eewzj+8ChvkdnM9bU+EmkJHJ2EBK1nLYFYk6NTV2WIYDNxyC8hyzVaT/9ZojxHic/huasxBjAzttKQJbjuv2+M8Q4W7BvZO4KjAKMJ5a5xrvovwNiLnzMWoTKqxTSFbGjkCrmpj0Qc2Nl2kJcAIyKLM18L72oxLw4mbIOA1cppMuiIpMqZr/9BDHuiNn3Ub4ChwCjIpOngYceQMyDi9I1OAbYGWQ8sJJmhdn2QMysdYmBG38SKVk1uwyJWnbbAjG73skj7whgkzhchpWniMUeQMyiaykxdwaw87aSy7Ap2WKqD08nTdmVHKyrqxRSFXhiKVXMVnsgZsuvlGi7BhhPLFNSxlYfIGbLL2m0AGyhGBWZNH1stAdiNnxKi7KDqxRSYQCZVDH97XmLhX6P0iIEYHd146UHaSmltNcOiCl1JissAPZUPkD2VCIrDXa82dWKVbFxdnqVIlaeZTsuw6aopqzP9D6xKSTMVGZMajgATKQcl2FFculsPI7nv3bEl8B1WiSJiieRErWObTnoTxBNU5cFxH6FEL5oio1YhApwDiYU7KM5IEuWrnnHjz/Zxnv2m5uRGQBVWIaAQCxDvLZdF388l++XtbWiwOzTb6QCw3Q5BBAzavvxDPic+BzuGzXyFDbbyWQDuW6RLF3bjsecX0KMc7G2luTPDsjEGlKFiSVT0+G0+/iAGOdiaszJDGSX1X8c3/c/X/PGyAogrvMMn+kzDp/jeqy24mFWhniNu57PgT8gxrlYY09UTa/6QQHVk6pcaRPMYtdxcRjM2UAbP1TOqvTiLBdUVWbL5kEtH2RdQowt5eZmqJ0QiKm1hsDCxU7h5rE8TylJkaMCKreUVGLkZ7h6gHULMaoxsuSgABAjE1QqcH0nEoiptElFUEBMhQ0EcaXATV6u3vJmS0niUImRAyoVWLkLuQ4xtpQq/ds4KCqxjQVnuqcKrObk3e/bUY09FdR7AyDm3WFr67vzjZT7EKMas2Zx6XiBWGlFGS9Hgbv5+PDNB1RjOZqb7wvEzFvoaAEPvhf8GGJUY46yQLwUICaWjA5VFHhy8frpO6j4nloVWywMCsQsuOQ/xqd5+BRik0ZsK/1nysoKnyZPC1W4sd9C9YZzRrxeKg5ibCsbuthsaiDWTHomPioQlYNREJurMUDWW2ZFJdDWolCJba14u/liX7keDTG2le3MbDQzEGskPNNOL7scv8a+nFMGMaqxnvILiPXktqa1Cl8DJYIY20pNTlePBYhVl5gJSjxQEkMMkHWTeECsG6v1LDT2HGwZcRLEjudj/HUkPd7XiASI1VCVMe8rIDgHKwIxQOY+G4GYe4sVLTARYNMKkiuxGWL8hSRFWVA8FCBWXFIGXFVAeJB/PUYWxACZ66QEYq7tVbK4TIBlV2InGajIlCRE2TCAWFk9Ge2mhBrf9/++Hv4IcsYnuxK7Atn3EAJ/VTnDEEVdgZgiM9yFUqACO2lSDGJnmL3teWrpI+OAmA8f9a0i4xB/bTHFITafkwEyfYkjjwiIyTWjx2MFdmEc32O/ThQrZhWIzSDjK0qxHmhtB8S0OmMxroLbx5ujtZp6HA/8OSerKXK9sYFYPW37GrkiwCYhq1ViS5fYXprMWSBm0jZVQVfZPm5aiV2A7HAxlqpMVY49DAaI2fFKX6SVq6/lgjepxC5gxlmZvoRbjwiIWXFKU5wbwuu07M0hNh/6U5VpSrt7sQAxCy5pirEBwDY7E7unMzDTlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",ae=ke(47257),ue=ke.n(ae),de=ke(56640),he=ke(1012),xe=ke(5871),Se=ke(19366),we=ke(59301),be=Object.defineProperty,Me=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,De=(it,ht,Ge)=>ht in it?be(it,ht,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):it[ht]=Ge,Ee=(it,ht)=>{for(var Ge in ht||(ht={}))Ne.call(ht,Ge)&&De(it,Ge,ht[Ge]);if(Ce)for(var Ge of Ce(ht))Te.call(ht,Ge)&&De(it,Ge,ht[Ge]);return it},Pe=(it,ht)=>Me(it,Le(ht)),Be=(it,ht,Ge)=>new Promise((Xe,ct)=>{var pt=qe=>{try{rt(Ge.next(qe))}catch(nt){ct(nt)}},ut=qe=>{try{rt(Ge.throw(qe))}catch(nt){ct(nt)}},rt=qe=>qe.done?Xe(qe.value):Promise.resolve(qe.value).then(pt,ut);rt((Ge=Ge.apply(it,ht)).next())});const{Dragger:Ve}=vt.default,Ie=it=>{const ht=nt=>nt&&nt.substring(0,nt.lastIndexOf("."));for(var Ge=[...it],Xe=0,ct=[],pt=0;pt<Ge.length;pt++){for(var ut="",rt=0;rt<ct.length;rt++)if(ht(ct[rt][0].name)==ht(Ge[pt].name)){Xe=1,ut=rt;break}if(Xe==1)ct[ut].push(Ge[pt]),Xe=0;else if(Xe==0){let nt=new Array;nt.push(Ge[pt]),ct.push(nt)}}return ct.map(nt=>{if(nt.forEach(xt=>{let yt=xt.name.split(/\.(?=[^\.]+$)/);xt.name=`${yt[0]}.${yt[1].toLowerCase()}`}),nt[0].name.includes(".in"))return nt.length===2?nt:[nt[0],{}];if(nt[0].name.includes(".out"))return nt.length===2?nt.reverse():[{},nt[0]]})},Ze=({onClose:it,onOK:ht,visible:Ge,wrapClassName:Xe,rootIdentifier:ct,multiple:pt=!1,defaultMultipleValue:ut=!0})=>{const[rt,qe]=(0,Ye.useState)([]),[nt,xt]=(0,Ye.useState)({}),[yt,Rt]=(0,Ye.useState)(!1),[Ot,lt]=(0,Ye.useState)(!0),[Ue,$e]=(0,Ye.useState)(null),le=(0,Ye.useRef)([]),fe=(0,Ye.useRef)(0),Fe=()=>{it()};(0,Ye.useEffect)(()=>{He()},[]),(0,Ye.useEffect)(()=>{Ge&&(le.current=[],fe.current=0,qe([]),lt(ut))},[Ge]);const He=()=>Be(void 0,null,function*(){try{$e(!0)}catch(at){}}),ye=at=>at&&at.substring(0,at.lastIndexOf(".")),Re=at=>{var kt,Ht;const Ct=ye((kt=at[0])==null?void 0:kt.name)||ye((Ht=at[1])==null?void 0:Ht.name),$t=rt.filter(Bt=>ye(Bt.name)!==Ct);le.current=[...$t],qe([...$t])},ze=at=>{if(!Ot){const St=new FormData;St.append("file",at.file),(0,de.ZP)("/api/attachments/get_file_content.json",{method:"post",body:St},!0).then(dt=>{if(dt.status===0){fe.current=fe.current+1;const Ft=le.current.map(zt=>{var Zt;if(zt.name===at.name){const tr=Ee({},zt);return(Zt=at==null?void 0:at.name)!=null&&Zt.includes(".in")?tr.input=dt==null?void 0:dt.content:tr.output=dt==null?void 0:dt.content,tr}return zt});if(le.current=[...Ft],qe([...Ft]),fe.current>0&&fe.current===rt.length){Rt(!1);let zt=Ie(Ft);zt=zt.filter(Zt=>{var tr,mr;return!!((tr=Zt[0])!=null&&tr.name&&((mr=Zt[1])!=null&&mr.name))}),zt=zt.map(Zt=>Pe(Ee(Ee({},Zt[0]),Zt[1]),{is_file:!1})),ht(zt),it()}}else Rt(!1),it()});return}if(Ue){const St=new FormData;St.append("file",at.file),ct===null?St.append("identifier","testsets"):St.append("identifier",ct),(0,de.ZP)("/api/attachments.json",{method:"post",body:St},!0).then(dt=>{if(dt.filename){fe.current=fe.current+1;const Ft=le.current.map(zt=>{var Zt;if(zt.name===(dt==null?void 0:dt.filename)){const tr=Pe(Ee({},zt),{is_oss:!Ue});return(Zt=dt==null?void 0:dt.filename)!=null&&Zt.includes(".in")?(tr.in_object_key=dt==null?void 0:dt.object,tr.in_object_size=dt==null?void 0:dt.size,tr.input=dt==null?void 0:dt.filename,tr.in_file=at):(tr.out_object_key=dt==null?void 0:dt.object,tr.out_object_size=dt==null?void 0:dt.size,tr.output=dt==null?void 0:dt.filename,tr.out_file=at),tr}return zt});if(le.current=[...Ft],qe([...Ft]),fe.current>0&&fe.current===rt.length){Rt(!1);let zt=Ie(Ft);zt=zt.filter(Zt=>{var tr,mr;return!!((tr=Zt[0])!=null&&tr.name&&((mr=Zt[1])!=null&&mr.name))}),zt=zt.map(Zt=>Pe(Ee(Ee({},Zt[0]),Zt[1]),{is_file:!0})),ht(zt),it()}}else Rt(!1),it()});return}const kt=new(ue())({endpoint:nt.end_point,region:nt.region,accessKeyId:nt.access_key_id,accessKeySecret:nt.access_key_secret,bucket:nt.bucket,stsToken:nt.security_token}),Ht=at.name,Ct={container_type:"TestSet",file_name:Ht},$t=(0,he.Z)();let Bt=`testsets/${ct}/${$t}${Ht.indexOf(".")>-1?"."+Ht.split(".").pop():""}`;ct===null&&(Bt=`testsets/${$t}${Ht.indexOf(".")>-1?"."+Ht.split(".").pop():""}`),kt.multipartUpload(Bt,new Blob([at.file],{type:at.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Ht+""},url:nt==null?void 0:nt.callback_url,host:nt==null?void 0:nt.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,de.rz)(Ct)}}).then(function(St){if(St.data.status===0){fe.current=fe.current+1;const ft=le.current.map(dt=>{var Ft,zt,Zt,tr,mr,Er,zr,jr,Tr,Vr,sn,vn,en,hn,_n,tn,Ln;if(dt.name===((zt=(Ft=St.data)==null?void 0:Ft.data)==null?void 0:zt.file_name)){const Un=Pe(Ee({},dt),{is_oss:!Ue});return(mr=(tr=(Zt=St.data)==null?void 0:Zt.data)==null?void 0:tr.file_name)!=null&&mr.includes(".in")?(Un.in_object_key=(zr=(Er=St.data)==null?void 0:Er.data)==null?void 0:zr.object,Un.in_object_size=(Tr=(jr=St.data)==null?void 0:jr.data)==null?void 0:Tr.size,Un.input=(sn=(Vr=St.data)==null?void 0:Vr.data)==null?void 0:sn.file_name,Un.in_file=at):(Un.out_object_key=(en=(vn=St.data)==null?void 0:vn.data)==null?void 0:en.object,Un.out_object_size=(_n=(hn=St.data)==null?void 0:hn.data)==null?void 0:_n.size,Un.output=(Ln=(tn=St.data)==null?void 0:tn.data)==null?void 0:Ln.file_name,Un.out_file=at),Un}return dt});if(le.current=[...ft],qe([...ft]),fe.current>0&&fe.current===rt.length){Rt(!1);let dt=Ie(ft);dt=dt.filter(Ft=>{var zt,Zt;return!!((zt=Ft[0])!=null&&zt.name&&((Zt=Ft[1])!=null&&Zt.name))}),dt=dt.map(Ft=>Pe(Ee(Ee({},Ft[0]),Ft[1]),{is_file:!0})),ht(dt),it()}}})},Ke=at=>new Promise((kt,Ht)=>{let Ct=0,$t=[];for(let Bt=0;Bt<at.length;Bt++)at[Bt].file.slice(0,1).arrayBuffer().then(()=>{Ct++,Ct===at.length&&($t.length?(x.ZP.warning(`${$t.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Ht()):kt(at))}).catch(St=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",St),Ct++,$t.push(at[Bt].name),Ct===at.length&&($t.length?(x.ZP.warning(`${$t.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Ht()):kt(at))})}),We=()=>Be(void 0,null,function*(){if(rt.length===0){x.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield Ke(rt),Rt(!0),Ie(rt).some(kt=>{var Ht,Ct;return!((Ht=kt[0])!=null&&Ht.name&&((Ct=kt[1])!=null&&Ct.name))})){Ae.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>Be(void 0,null,function*(){rt.map(kt=>Be(void 0,null,function*(){ze(kt)}))}),onCancel:()=>{Rt(!1)}});return}rt.map(kt=>Be(void 0,null,function*(){ze(kt)}))}),st={name:"file",fileList:rt,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:at=>{if(rt!=null&&rt.some(Ht=>Ht.name===at.name))return x.ZP.info(`${at.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(at.size/1024/1024>100)return x.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(at.name))return x.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const kt={name:at.name,uid:at.uid,file:at,percent:0};return rt.push(kt),le.current=[...rt],qe([...rt]),!1}},bt=Ie(rt);return console.log(rt,bt,"fileList"),we.createElement(Ae.default,{open:Ge,wrapClassName:Xe,onOk:We,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:yt},onCancel:Fe,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},we.createElement("div",{className:pe.wrap},rt.length?we.createElement("div",null,we.createElement(me.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},we.createElement("div",{style:{visibility:pt?"visible":"hidden"}},we.createElement("span",{className:pe.greyText},"\u7528\u4F8B\u7C7B\u578B"),we.createElement(re.ZP.Group,{className:`ml20 ${pe.testCaseRadio}`,optionType:"button",value:Ot,onChange:at=>lt(at.target.value)},we.createElement(re.ZP,{value:!1},"\u6587\u672C"),we.createElement(re.ZP,{value:!0},"\u6587\u4EF6"))),we.createElement(vt.default,Ee({},st),we.createElement(z.ZP,{type:"primary",className:pe.btnS},we.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),we.createElement(Qe,{data:bt,onRemove:Re})):we.createElement("div",{className:`${pe.noData} mb30`},we.createElement(vt.default.Dragger,Pe(Ee({},st),{className:pe.dragger}),we.createElement("img",{src:ne,alt:"",className:"mb20"}),we.createElement("div",null,we.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),we.createElement("span",{className:pe.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),we.createElement("div",{className:pe.text},we.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),we.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",we.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",we.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",we.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",we.createElement("br",null))))},Qe=({data:it=[],onRemove:ht,width:Ge="auto",showScore:Xe=!1,disabled:ct=!1,inputChange:pt,onEvaluatingChange:ut,onSelectAll:rt,checkAll1:qe,checkAll2:nt,checkAll3:xt,checkAll4:yt,checkAll5:Rt,showEvaluatingSetting:Ot=!1,className:lt="",isProgramHomework:Ue=!1})=>{const $e={value:"",filename:"",dataUrl:""},[le,fe]=(0,Ye.useState)(Ee({},$e)),Fe=Re=>{let ze=document.createElement("a");document.body.appendChild(ze);let Ke=URL.createObjectURL(Re.file);ze.href=Ke,ze.download=Re.name,ze.click(),URL.revokeObjectURL(Ke),document.body.removeChild(ze)},He=(Re,ze)=>{(0,xe.LR)(Re,ze)},ye=(Re,ze)=>{Ae.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:we.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{ht(Re,ze)},onCancel:()=>{}})};return it.length?we.createElement("div",{className:lt,style:{width:Ge}},we.createElement("div",{className:`${Ue?pe.headProgram:pe.head}`},Ot&&we.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},we.createElement(ie.default,{checked:qe,onChange:Re=>{rt(Re.target.checked,"hidden")}}),we.createElement(oe.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},we.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),we.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),we.createElement("div",{style:{width:Ue?"25%":"15%"}},"\u7528\u4F8B"),we.createElement("div",{style:{width:Xe?Ue?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),we.createElement("div",{style:{width:Xe?Ue?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),Xe&&we.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),Ot&&we.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},we.createElement(ie.default,{checked:yt,onChange:Re=>{rt(Re.target.checked,"input_visible")}}),we.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},we.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),we.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Ot&&we.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},we.createElement(ie.default,{checked:nt,onChange:Re=>{rt(Re.target.checked,"is_invisible")}}),we.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},we.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),we.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Ot&&we.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},we.createElement(ie.default,{checked:Rt,onChange:Re=>{rt(Re.target.checked,"actual_output_visible")}}),we.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},we.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),we.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Ot&&we.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},we.createElement(ie.default,{checked:xt,onChange:Re=>{rt(Re.target.checked,"last_match_rule")}}),we.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},we.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),we.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),we.createElement("div",{className:pe.operation,style:Ue?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),we.createElement("div",{className:pe.listWrapper,style:{boxShadow:Ue?"0px 2px 4px 0px #EAEEF4":"unset"}},it.map((Re,ze)=>{var Ke,We,st,bt;return we.createElement("div",{key:ze,className:pe.list,style:Ue?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},Ot&&we.createElement("div",{style:{width:"15%"}},we.createElement(ie.default,{checked:!!Re.hidden,onChange:at=>{ut(at.target.checked,ze,"hidden")}})),we.createElement("div",{style:{width:Ue?"25%":"15%",paddingLeft:Ue?"5px":"0px",paddingRight:Ue?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",ze+1),we.createElement("div",{className:pe.info,style:{width:Xe?Ue?"20%":"15%":"25%"}},we.createElement("span",{title:Re.input||((Ke=Re[0])==null?void 0:Ke.name),onClick:()=>Be(void 0,null,function*(){let at;Re.input?Re.input_file_url?at=Re.input_file_url:at=Re.in_file:at=Re[0];let kt;typeof at=="string"?(kt=yield fetch(at,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),fe({value:yield kt.text(),filename:"",dataUrl:at})):(kt=yield(0,xe.db)(at.file),fe({value:kt.text,filename:at.name,dataUrl:kt.link}))})},Re.input||((We=Re[0])==null?void 0:We.name))),we.createElement("div",{className:pe.info,style:{width:Xe?Ue?"20%":"15%":"25%"}},we.createElement("span",{title:Re.output||((st=Re[1])==null?void 0:st.name),onClick:()=>Be(void 0,null,function*(){let at;Re.input?Re.output_file_url?at=Re.output_file_url:at=Re.out_file:at=Re[1];let kt;typeof at=="string"?(kt=yield fetch(at,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),fe({value:yield kt.text(),filename:"",dataUrl:at})):(kt=yield(0,xe.db)(at.file),fe({value:kt.text,filename:at.name,dataUrl:kt.link}))})},Re.output||((bt=Re[1])==null?void 0:bt.name))),Xe&&we.createElement("div",{style:{width:"20%"}},we.createElement(se.default,{size:"large",addonAfter:Ue?"%":null,disabled:ct,style:{width:"80%"},onChange:at=>pt(at,ze),value:Re.score}),!Ue&&we.createElement("span",null,"\xA0%")),Ot&&we.createElement("div",{style:{width:"20%"}},we.createElement(ie.default,{checked:Re.input_visible||!1,onChange:at=>{ut(at.target.checked,ze,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Ot&&we.createElement("div",{style:{width:"20%"}},we.createElement(ie.default,{checked:Re.is_invisible||!1,onChange:at=>{ut(at.target.checked,ze,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Ot&&we.createElement("div",{style:{width:"20%"}},we.createElement(ie.default,{checked:Re.actual_output_visible||!1,onChange:at=>{ut(at.target.checked,ze,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Ot&&we.createElement("div",{style:{width:"20%"}},we.createElement(ie.default,{checked:Re.last_match_rule||!1,onChange:at=>{ut(at.target.checked,ze,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),we.createElement("div",{onClick:()=>ye(Re,ze),style:Ue?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},we.createElement("span",{className:pe.del},"\u5220\u9664")))})),we.createElement(Se.Z,{close:!0,data:le.dataUrl,filename:le.filename,type:le.dataUrl.length?"txt":"",onClose:()=>fe(Ee({},$e)),monacoEditor:{value:le.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):we.createElement(we.Fragment,null)};var tt=Ze},14419:function(gr,Wt,ke){"use strict";ke.d(Wt,{G:function(){return me},t:function(){return Ae}});var Ye=ke(7062),vt=ke.n(Ye);const x=null;function Ae(re,z){let ie=vt().get("__ec");ie||(ie={}),ie[re]=z,vt().set("__ec",ie)}function me(re,z){let ie=vt().get("__ec");return ie?ie[re]===void 0?z:ie[re]:z}},47257:function(gr){(function(Wt){(function(ke){if(1)gr.exports=ke();else var Ye})(function(){var ke,Ye,vt;return function(){function x(Ae,me,re){function z(se,pe){if(!me[se]){if(!Ae[se]){var ne=void 0;if(!pe&&ne)return require(se,!0);if(ie)return ie(se,!0);var ae=new Error("Cannot find module '"+se+"'");throw ae.code="MODULE_NOT_FOUND",ae}var ue=me[se]={exports:{}};Ae[se][0].call(ue.exports,function(de){var he=Ae[se][1][de];return z(he||de)},ue,ue.exports,x,Ae,me,re)}return me[se].exports}for(var ie=void 0,oe=0;oe<re.length;oe++)z(re[oe]);return z}return x}()({1:[function(x,Ae,me){"use strict";var re=x("./browser/client");re.Buffer=x("buffer").Buffer,re.urllib=x("../shims/xhr"),re.version=x("./browser/version").version,Ae.exports=re},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator"));x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.slice.js");var oe=x("assert"),se=x("../common/utils/checkBucketName"),pe=se.checkBucketName,ne=me;function ae(de){return Array.isArray?Array.isArray(de):Object.prototype.toString.call(de)==="[object Array]"}function ue(de){return de?ae(de)?de:[de]:[]}ne.useBucket=function(he){return pe(he),this.options.bucket=he,this},ne.setBucket=function(he){return pe(he),this.options.bucket=he,this},ne.getBucket=function(){return this.options.bucket},ne.deleteBucket=function(){var de=(0,ie.default)(z.default.mark(function xe(Se,we){var be,Me;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return be=this._bucketRequestParams("DELETE",Se,"",we),Ce.next=3,this.request(be);case 3:if(Me=Ce.sent,!(Me.status===200||Me.status===204)){Ce.next=6;break}return Ce.abrupt("return",{res:Me.res});case 6:return Ce.next=8,this.requestError(Me);case 8:throw Ce.sent;case 9:case"end":return Ce.stop()}},xe,this)}));function he(xe,Se){return de.apply(this,arguments)}return he}(),ne.putBucketACL=function(){var de=(0,ie.default)(z.default.mark(function xe(Se,we,be){var Me,Le;return z.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Me=this._bucketRequestParams("PUT",Se,"acl",be),Me.headers={"x-oss-acl":we},Me.successStatuses=[200],Ne.next=5,this.request(Me);case 5:return Le=Ne.sent,Ne.abrupt("return",{bucket:Le.headers.location&&Le.headers.location.substring(1)||null,res:Le.res});case 7:case"end":return Ne.stop()}},xe,this)}));function he(xe,Se,we){return de.apply(this,arguments)}return he}(),ne.getBucketACL=function(){var de=(0,ie.default)(z.default.mark(function xe(Se,we){var be,Me;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return be=this._bucketRequestParams("GET",Se,"acl",we),be.successStatuses=[200],be.xmlResponse=!0,Ce.next=5,this.request(be);case 5:return Me=Ce.sent,Ce.abrupt("return",{acl:Me.data.AccessControlList.Grant,owner:{id:Me.data.Owner.ID,displayName:Me.data.Owner.DisplayName},res:Me.res});case 7:case"end":return Ce.stop()}},xe,this)}));function he(xe,Se){return de.apply(this,arguments)}return he}(),ne.putBucketLogging=function(){var de=(0,ie.default)(z.default.mark(function xe(Se,we,be){var Me,Le,Ce;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Me=this._bucketRequestParams("PUT",Se,"logging",be),Le=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<BucketLoggingStatus>
|
|
|
<LoggingEnabled>
|
|
|
<TargetBucket>`.concat(Se,`</TargetBucket>
|
|
|
`),we&&(Le+="<TargetPrefix>".concat(we,`</TargetPrefix>
|
|
|
`)),Le+=`</LoggingEnabled>
|
|
|
</BucketLoggingStatus>`,Me.content=Le,Me.mime="xml",Me.successStatuses=[200],Te.next=9,this.request(Me);case 9:return Ce=Te.sent,Te.abrupt("return",{res:Ce.res});case 11:case"end":return Te.stop()}},xe,this)}));function he(xe,Se,we){return de.apply(this,arguments)}return he}(),ne.getBucketLogging=function(){var de=(0,ie.default)(z.default.mark(function xe(Se,we){var be,Me,Le;return z.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return be=this._bucketRequestParams("GET",Se,"logging",we),be.successStatuses=[200],be.xmlResponse=!0,Ne.next=5,this.request(be);case 5:return Me=Ne.sent,Le=Me.data.LoggingEnabled,Ne.abrupt("return",{enable:!!Le,prefix:Le&&Le.TargetPrefix||null,res:Me.res});case 8:case"end":return Ne.stop()}},xe,this)}));function he(xe,Se){return de.apply(this,arguments)}return he}(),ne.deleteBucketLogging=function(){var de=(0,ie.default)(z.default.mark(function xe(Se,we){var be,Me;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return be=this._bucketRequestParams("DELETE",Se,"logging",we),be.successStatuses=[204,200],Ce.next=4,this.request(be);case 4:return Me=Ce.sent,Ce.abrupt("return",{res:Me.res});case 6:case"end":return Ce.stop()}},xe,this)}));function he(xe,Se){return de.apply(this,arguments)}return he}(),ne.putBucketCORS=function(){var de=(0,ie.default)(z.default.mark(function xe(Se,we,be){var Me,Le,Ce,Ne,Te,De,Ee,Pe,Be,Ve;return z.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:for(we=we||[],oe(we.length,"rules is required"),we.forEach(function(Qe){oe(Qe.allowedOrigin,"allowedOrigin is required"),oe(Qe.allowedMethod,"allowedMethod is required")}),Me=this._bucketRequestParams("PUT",Se,"cors",be),Le=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,Ce=function(tt){Le+="<AllowedOrigin>".concat(tt,"</AllowedOrigin>")},Ne=function(tt){Le+="<AllowedMethod>".concat(tt,"</AllowedMethod>")},Te=function(tt){Le+="<AllowedHeader>".concat(tt,"</AllowedHeader>")},De=function(tt){Le+="<ExposeHeader>".concat(tt,"</ExposeHeader>")},Ee=0,Pe=we.length;Ee<Pe;Ee++)Be=we[Ee],Le+="<CORSRule>",ue(Be.allowedOrigin).forEach(Ce),ue(Be.allowedMethod).forEach(Ne),ue(Be.allowedHeader).forEach(Te),ue(Be.exposeHeader).forEach(De),Be.maxAgeSeconds&&(Le+="<MaxAgeSeconds>".concat(Be.maxAgeSeconds,"</MaxAgeSeconds>")),Le+="</CORSRule>";return Le+="</CORSConfiguration>",Me.content=Le,Me.mime="xml",Me.successStatuses=[200],Ze.next=16,this.request(Me);case 16:return Ve=Ze.sent,Ze.abrupt("return",{res:Ve.res});case 18:case"end":return Ze.stop()}},xe,this)}));function he(xe,Se,we){return de.apply(this,arguments)}return he}(),ne.getBucketCORS=function(){var de=(0,ie.default)(z.default.mark(function xe(Se,we){var be,Me,Le,Ce;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return be=this._bucketRequestParams("GET",Se,"cors",we),be.successStatuses=[200],be.xmlResponse=!0,Te.next=5,this.request(be);case 5:return Me=Te.sent,Le=[],Me.data&&Me.data.CORSRule&&(Ce=Me.data.CORSRule,ae(Ce)||(Ce=[Ce]),Ce.forEach(function(De){var Ee={};Object.keys(De).forEach(function(Pe){Ee[Pe.slice(0,1).toLowerCase()+Pe.slice(1,Pe.length)]=De[Pe]}),Le.push(Ee)})),Te.abrupt("return",{rules:Le,res:Me.res});case 9:case"end":return Te.stop()}},xe,this)}));function he(xe,Se){return de.apply(this,arguments)}return he}(),ne.deleteBucketCORS=function(){var de=(0,ie.default)(z.default.mark(function xe(Se,we){var be,Me;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return be=this._bucketRequestParams("DELETE",Se,"cors",we),be.successStatuses=[204],Ce.next=4,this.request(be);case 4:return Me=Ce.sent,Ce.abrupt("return",{res:Me.res});case 6:case"end":return Ce.stop()}},xe,this)}));function he(xe,Se){return de.apply(this,arguments)}return he}(),ne.putBucketReferer=function(){var de=(0,ie.default)(z.default.mark(function xe(Se,we,be,Me){var Le,Ce,Ne,Te;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(Le=this._bucketRequestParams("PUT",Se,"referer",Me),Ce=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<RefererConfiguration>
|
|
|
`,Ce+=" <AllowEmptyReferer>".concat(we?"true":"false",`</AllowEmptyReferer>
|
|
|
`),be&&be.length>0){for(Ce+=` <RefererList>
|
|
|
`,Ne=0;Ne<be.length;Ne++)Ce+=" <Referer>".concat(be[Ne],`</Referer>
|
|
|
`);Ce+=` </RefererList>
|
|
|
`}else Ce+=` <RefererList />
|
|
|
`;return Ce+="</RefererConfiguration>",Le.content=Ce,Le.mime="xml",Le.successStatuses=[200],Ee.next=10,this.request(Le);case 10:return Te=Ee.sent,Ee.abrupt("return",{res:Te.res});case 12:case"end":return Ee.stop()}},xe,this)}));function he(xe,Se,we,be){return de.apply(this,arguments)}return he}(),ne.getBucketReferer=function(){var de=(0,ie.default)(z.default.mark(function xe(Se,we){var be,Me,Le;return z.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return be=this._bucketRequestParams("GET",Se,"referer",we),be.successStatuses=[200],be.xmlResponse=!0,Ne.next=5,this.request(be);case 5:return Me=Ne.sent,Le=Me.data.RefererList.Referer||null,Le&&(ae(Le)||(Le=[Le])),Ne.abrupt("return",{allowEmpty:Me.data.AllowEmptyReferer==="true",referers:Le,res:Me.res});case 9:case"end":return Ne.stop()}},xe,this)}));function he(xe,Se){return de.apply(this,arguments)}return he}(),ne.deleteBucketReferer=function(){var de=(0,ie.default)(z.default.mark(function xe(Se,we){return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Me.next=2,this.putBucketReferer(Se,!0,null,we);case 2:return Me.abrupt("return",Me.sent);case 3:case"end":return Me.stop()}},xe,this)}));function he(xe,Se){return de.apply(this,arguments)}return he}(),ne._bucketRequestParams=function(he,xe,Se,we){return{method:he,bucket:xe,subres:Se,timeout:we&&we.timeout,ctx:we&&we.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(x,Ae,me){(function(re,z){(function(){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),oe=ie(x("@babel/runtime/regenerator")),se=ie(x("@babel/runtime/helpers/asyncToGenerator"));x("core-js/modules/es.function.name.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.symbol.js"),x("core-js/modules/es.symbol.description.js"),x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.regexp.to-string.js");var pe=x("debug")("ali-oss"),ne=x("xml2js"),ae=x("agentkeepalive"),ue=x("merge-descriptors"),de=x("platform"),he=x("utility"),xe=x("urllib"),Se=x("./version"),we=x("bowser"),be=x("../common/signUtils"),Me=x("../common/client/initOptions"),Le=x("../common/utils/createRequest"),Ce=Le.createRequest,Ne=x("../common/utils/encoder"),Te=Ne.encoder,De=x("../common/client/getReqUrl"),Ee=De.getReqUrl,Pe=x("../common/utils/setSTSToken"),Be=Pe.setSTSToken,Ve=x("../common/utils/retry"),Ie=Ve.retry,Ze=x("../common/utils/isFunction"),Qe=Ze.isFunction,tt=new ae;function it(){var ut=de.name,rt=de.version;ut&&ut.toLowerCase&&ut.toLowerCase()==="ie"&&rt.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function ht(){return location&&location.protocol==="https:"}function Ge(ut,rt){if(it(),!(this instanceof Ge))return new Ge(ut,rt);ut&&ut.inited?this.options=ut:this.options=Ge.initOptions(ut),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=xe,this.agent=this.options.agent||tt),this.ctx=rt,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}Ae.exports=Ge,Ge.initOptions=function(rt){rt.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var qe=Object.assign({secure:ht(),useFetch:!1},rt);return Me(qe)};var Xe=Ge.prototype;Xe.debug=pe,ue(Xe,x("./object")),ue(Xe,x("./bucket")),ue(Xe,x("../common/bucket/getBucketWebsite")),ue(Xe,x("../common/bucket/putBucketWebsite")),ue(Xe,x("../common/bucket/deleteBucketWebsite")),ue(Xe,x("../common/bucket/getBucketLifecycle")),ue(Xe,x("../common/bucket/putBucketLifecycle")),ue(Xe,x("../common/bucket/deleteBucketLifecycle")),ue(Xe,x("../common/bucket/putBucketVersioning")),ue(Xe,x("../common/bucket/getBucketVersioning")),ue(Xe,x("../common/bucket/getBucketInventory")),ue(Xe,x("../common/bucket/deleteBucketInventory")),ue(Xe,x("../common/bucket/listBucketInventory")),ue(Xe,x("../common/bucket/putBucketInventory")),ue(Xe,x("../common/bucket/abortBucketWorm")),ue(Xe,x("../common/bucket/completeBucketWorm")),ue(Xe,x("../common/bucket/extendBucketWorm")),ue(Xe,x("../common/bucket/getBucketWorm")),ue(Xe,x("../common/bucket/initiateBucketWorm")),ue(Xe,x("./managed-upload")),ue(Xe,x("../common/multipart-copy")),ue(Xe,x("../common/multipart")),ue(Xe,x("../common/parallel")),Xe.signature=function(rt){return this.debug("authorization stringToSign: %s",rt,"info"),be.computeSignature(this.options.accessKeySecret,rt,this.options.headerEncoding)},Xe._getReqUrl=Ee,Xe.authorization=function(rt,qe,nt,xt){var yt=be.buildCanonicalString(rt.toUpperCase(),qe,{headers:xt,parameters:nt});return be.authorization(this.options.accessKeyId,this.options.accessKeySecret,yt,this.options.headerEncoding)},Xe.request=function(){var ut=(0,se.default)(oe.default.mark(function rt(qe){var nt=this;return oe.default.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if(!this.options.retryMax){yt.next=6;break}return yt.next=3,Ie(ct.bind(this),this.options.retryMax,{errorHandler:function(Ot){var lt=function($e){if(qe.stream)return!1;var le=[-1,-2].includes($e.status),fe=nt.options.requestErrorRetryHandle||function(){return!0};return le&&fe($e)};return!!lt(Ot)}})(qe);case 3:return yt.abrupt("return",yt.sent);case 6:return yt.abrupt("return",ct.call(this,qe));case 7:case"end":return yt.stop()}},rt,this)}));return function(rt){return ut.apply(this,arguments)}}();function ct(ut){return pt.apply(this,arguments)}function pt(){return pt=(0,se.default)(oe.default.mark(function ut(rt){var qe,nt,xt,yt,Rt,Ot;return oe.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(!(this.options.stsToken&&Qe(this.options.refreshSTSToken))){Ue.next=3;break}return Ue.next=3,Be.call(this);case 3:return qe=Ce.call(this,rt),this.options.useFetch||(qe.params.mode="disable-fetch"),yt=!!rt.stream,Ue.prev=6,Ue.next=9,this.urllib.request(qe.url,qe.params);case 9:nt=Ue.sent,this.debug("response %s %s, got %s, headers: %j",rt.method,qe.url,nt.status,nt.headers,"info"),Ue.next=16;break;case 13:Ue.prev=13,Ue.t0=Ue.catch(6),xt=Ue.t0;case 16:if(!(nt&&rt.successStatuses&&rt.successStatuses.indexOf(nt.status)===-1)){Ue.next=28;break}return Ue.next=19,this.requestError(nt);case 19:if(Rt=Ue.sent,!(Rt.code==="RequestTimeTooSkewed"&&!yt)){Ue.next=25;break}return this.options.amendTimeSkewed=+new Date(Rt.serverTime)-new Date,Ue.next=24,this.request(rt);case 24:return Ue.abrupt("return",Ue.sent);case 25:Rt.params=rt,Ue.next=32;break;case 28:if(!xt){Ue.next=32;break}return Ue.next=31,this.requestError(xt);case 31:Rt=Ue.sent;case 32:if(!Rt){Ue.next=34;break}throw Rt;case 34:if(!rt.xmlResponse){Ue.next=39;break}return Ue.next=37,this.parseXML(nt.data);case 37:Ot=Ue.sent,nt.data=Ot;case 39:return Ue.abrupt("return",nt);case 40:case"end":return Ue.stop()}},ut,this,[[6,13]])})),pt.apply(this,arguments)}Xe._getResource=function(rt){var qe="/";return rt.bucket&&(qe+="".concat(rt.bucket,"/")),rt.object&&(qe+=Te(rt.object,this.options.headerEncoding)),qe},Xe._escape=function(rt){return he.encodeURIComponent(rt).replace(/%2F/g,"/")},Xe._getUserAgent=function(){var rt=z&&z.browser?"js":"nodejs",qe="aliyun-sdk-".concat(rt,"/").concat(Se.version),nt=de.description;return!nt&&z&&(nt="Node.js ".concat(z.version.slice(1)," on ").concat(z.platform," ").concat(z.arch)),this._checkUserAgent("".concat(qe," ").concat(nt))},Xe._checkUserAgent=function(rt){var qe=rt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return qe},Xe.checkBrowserAndVersion=function(rt,qe){return we.name===rt&&we.version.split(".")[0]===qe},Xe.parseXML=function(rt){return new Promise(function(qe,nt){re.isBuffer(rt)&&(rt=rt.toString()),ne.parseString(rt,{explicitRoot:!1,explicitArray:!1},function(xt,yt){xt?nt(xt):qe(yt)})})},Xe.requestError=function(){var ut=(0,se.default)(oe.default.mark(function qe(nt){var xt,yt,Rt,Ot;return oe.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(xt=null,!(!nt.data||!nt.data.length)){Ue.next=5;break}nt.status===-1||nt.status===-2?(xt=new Error(nt.message),xt.name=nt.name,xt.status=nt.status,xt.code=nt.name):(nt.status===404?(xt=new Error("Object not exists"),xt.name="NoSuchKeyError",xt.status=404,xt.code="NoSuchKey"):nt.status===412?(xt=new Error("Pre condition failed"),xt.name="PreconditionFailedError",xt.status=412,xt.code="PreconditionFailed"):(xt=new Error("Unknow error, status: ".concat(nt.status)),xt.name="UnknownError",xt.status=nt.status),xt.requestId=nt.headers["x-oss-request-id"],xt.host=""),Ue.next=32;break;case 5:return yt=String(nt.data),this.debug("request response error data: %s",yt,"error"),Ue.prev=7,Ue.next=10,this.parseXML(yt);case 10:if(Ue.t0=Ue.sent,Ue.t0){Ue.next=13;break}Ue.t0={};case 13:Rt=Ue.t0,Ue.next=23;break;case 16:return Ue.prev=16,Ue.t1=Ue.catch(7),this.debug(yt,"error"),Ue.t1.message+=`
|
|
|
raw xml: `.concat(yt),Ue.t1.status=nt.status,Ue.t1.requestId=nt.headers["x-oss-request-id"],Ue.abrupt("return",Ue.t1);case 23:Ot=Rt.Message||"unknow request error, status: ".concat(nt.status),Rt.Condition&&(Ot+=" (condition: ".concat(Rt.Condition,")")),xt=new Error(Ot),xt.name=Rt.Code?"".concat(Rt.Code,"Error"):"UnknownError",xt.status=nt.status,xt.code=Rt.Code,xt.requestId=Rt.RequestId,xt.hostId=Rt.HostId,xt.serverTime=Rt.ServerTime;case 32:return this.debug("generate error %j",xt,"error"),Ue.abrupt("return",xt);case 34:case"end":return Ue.stop()}},qe,this,[[7,16]])}));function rt(qe){return ut.apply(this,arguments)}return rt}()}).call(this)}).call(this,{isBuffer:x("../../node_modules/is-buffer/index.js")},x("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(x,Ae,me){(function(re){(function(){"use strict";var z=x("@babel/runtime/helpers/interopRequireDefault"),ie=z(x("@babel/runtime/regenerator"));x("core-js/modules/es.function.name.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.array.from.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.array.filter.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.array.iterator.js"),x("core-js/modules/es.array-buffer.slice.js"),x("core-js/modules/es.typed-array.uint8-array.js"),x("core-js/modules/es.typed-array.copy-within.js"),x("core-js/modules/es.typed-array.every.js"),x("core-js/modules/es.typed-array.fill.js"),x("core-js/modules/es.typed-array.filter.js"),x("core-js/modules/es.typed-array.find.js"),x("core-js/modules/es.typed-array.find-index.js"),x("core-js/modules/es.typed-array.for-each.js"),x("core-js/modules/es.typed-array.includes.js"),x("core-js/modules/es.typed-array.index-of.js"),x("core-js/modules/es.typed-array.iterator.js"),x("core-js/modules/es.typed-array.join.js"),x("core-js/modules/es.typed-array.last-index-of.js"),x("core-js/modules/es.typed-array.map.js"),x("core-js/modules/es.typed-array.reduce.js"),x("core-js/modules/es.typed-array.reduce-right.js"),x("core-js/modules/es.typed-array.reverse.js"),x("core-js/modules/es.typed-array.set.js"),x("core-js/modules/es.typed-array.slice.js"),x("core-js/modules/es.typed-array.some.js"),x("core-js/modules/es.typed-array.sort.js"),x("core-js/modules/es.typed-array.subarray.js"),x("core-js/modules/es.typed-array.to-locale-string.js"),x("core-js/modules/es.typed-array.to-string.js");var oe=z(x("@babel/runtime/helpers/asyncToGenerator")),se=x("util"),pe=x("path"),ne=x("mime"),ae=x("copy-to"),ue=x("../common/utils/isBlob"),de=ue.isBlob,he=x("../common/utils/isFile"),xe=he.isFile,Se=x("../common/utils/isBuffer"),we=Se.isBuffer,be=me;be.multipartUpload=function(){var Te=(0,oe.default)(ie.default.mark(function Ee(Pe,Be){var Ve,Ie,Ze,Qe,tt,it,ht,Ge,Xe,ct=arguments;return ie.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(Ve=ct.length>2&&ct[2]!==void 0?ct[2]:{},this.resetCancelFlag(),Ve.disabledMD5=Ve.disabledMD5===void 0?!0:!!Ve.disabledMD5,!(Ve.checkpoint&&Ve.checkpoint.uploadId)){ut.next=8;break}return Be&&xe(Be)&&(Ve.checkpoint.file=Be),ut.next=7,this._resumeMultipart(Ve.checkpoint,Ve);case 7:return ut.abrupt("return",ut.sent);case 8:return Ie=102400,Ve.mime||(xe(Be)?Ve.mime=ne.getType(pe.extname(Be.name)):de(Be)?Ve.mime=Be.type:we(Be)?Ve.mime="":Ve.mime=ne.getType(pe.extname(Be))),Ve.headers=Ve.headers||{},this._convertMetaToHeaders(Ve.meta,Ve.headers),ut.next=14,this._getFileSize(Be);case 14:if(Ze=ut.sent,!(Ze<Ie)){ut.next=26;break}return Ve.contentLength=Ze,ut.next=19,this.put(Pe,Be,Ve);case 19:if(Qe=ut.sent,!(Ve&&Ve.progress)){ut.next=23;break}return ut.next=23,Ve.progress(1);case 23:return tt={res:Qe.res,bucket:this.options.bucket,name:Pe,etag:Qe.res.headers.etag},(Ve.headers&&Ve.headers["x-oss-callback"]||Ve.callback)&&(tt.data=Qe.data),ut.abrupt("return",tt);case 26:if(!(Ve.partSize&&parseInt(Ve.partSize,10)!==Ve.partSize)){ut.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Ve.partSize&&Ve.partSize<Ie)){ut.next=30;break}throw new Error("partSize must not be smaller than ".concat(Ie));case 30:return ut.next=32,this.initMultipartUpload(Pe,Ve);case 32:if(it=ut.sent,ht=it.uploadId,Ge=this._getPartSize(Ze,Ve.partSize),Xe={file:Be,name:Pe,fileSize:Ze,partSize:Ge,uploadId:ht,doneParts:[]},!(Ve&&Ve.progress)){ut.next=39;break}return ut.next=39,Ve.progress(0,Xe,it.res);case 39:return ut.next=41,this._resumeMultipart(Xe,Ve);case 41:return ut.abrupt("return",ut.sent);case 42:case"end":return ut.stop()}},Ee,this)}));function De(Ee,Pe){return Te.apply(this,arguments)}return De}(),be._resumeMultipart=function(){var Te=(0,oe.default)(ie.default.mark(function Ee(Pe,Be){var Ve,Ie,Ze,Qe,tt,it,ht,Ge,Xe,ct,pt,ut,rt,qe,nt,xt,yt,Rt,Ot;return ie.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(Ve=this,!this.isCancel()){Ue.next=3;break}throw this._makeCancelEvent();case 3:return Ie=Pe.file,Ze=Pe.fileSize,Qe=Pe.partSize,tt=Pe.uploadId,it=Pe.doneParts,ht=Pe.name,Ge=[],it.length>0&&ae(it).to(Ge),Xe=this._divideParts(Ze,Qe),ct=Xe.length,pt=!1,ut=function(le,fe){return new Promise(function(){var Fe=(0,oe.default)(ie.default.mark(function He(ye,Re){var ze,Ke,We,st,bt;return ie.default.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(kt.prev=0,le.isCancel()){kt.next=29;break}return ze=Xe[fe-1],kt.next=5,le._createBuffer(Ie,ze.start,ze.end);case 5:return Ke=kt.sent,We={content:Ke,size:ze.end-ze.start},kt.prev=7,kt.next=10,le._uploadPart(ht,tt,fe,We,Be);case 10:st=kt.sent,kt.next=18;break;case 13:if(kt.prev=13,kt.t0=kt.catch(7),kt.t0.status!==404){kt.next=17;break}throw le._makeAbortEvent();case 17:throw kt.t0;case 18:if(!(!le.isCancel()&&!pt)){kt.next=26;break}if(Pe.doneParts.push({number:fe,etag:st.res.headers.etag}),!Be.progress){kt.next=23;break}return kt.next=23,Be.progress(it.length/(ct+1),Pe,st.res);case 23:ye({number:fe,etag:st.res.headers.etag}),kt.next=27;break;case 26:ye();case 27:kt.next=30;break;case 29:ye();case 30:kt.next=41;break;case 32:kt.prev=32,kt.t1=kt.catch(0),bt=new Error,bt.name=kt.t1.name,bt.message=kt.t1.message,bt.stack=kt.t1.stack,bt.partNum=fe,ae(kt.t1).to(bt),Re(bt);case 41:case"end":return kt.stop()}},He,null,[[0,32],[7,13]])}));return function(He,ye){return Fe.apply(this,arguments)}}())},rt=Array.from(new Array(ct),function($e,le){return le+1}),qe=Ge.map(function($e){return $e.number}),nt=rt.filter(function($e){return qe.indexOf($e)<0}),xt=5,yt=Be.parallel||xt,Ue.next=17,this._parallel(nt,yt,function($e){return new Promise(function(le,fe){ut(Ve,$e).then(function(Fe){Fe&&Ge.push(Fe),le()}).catch(function(Fe){fe(Fe)})})});case 17:if(Rt=Ue.sent,pt=!0,Ot=Rt.find(function($e){return $e.name==="abort"}),!Ot){Ue.next=22;break}throw Ot;case 22:if(!this.isCancel()){Ue.next=25;break}throw ut=null,this._makeCancelEvent();case 25:if(!(Rt&&Rt.length>0)){Ue.next=28;break}throw Rt[0].message="Failed to upload some parts with error: ".concat(Rt[0].toString()," part_num: ").concat(Rt[0].partNum),Rt[0];case 28:return Ue.next=30,this.completeMultipartUpload(ht,tt,Ge,Be);case 30:return Ue.abrupt("return",Ue.sent);case 31:case"end":return Ue.stop()}},Ee,this)}));function De(Ee,Pe){return Te.apply(this,arguments)}return De}(),be._getFileSize=function(){var Te=(0,oe.default)(ie.default.mark(function Ee(Pe){return ie.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(!we(Pe)){Ve.next=4;break}return Ve.abrupt("return",Pe.length);case 4:if(!(de(Pe)||xe(Pe))){Ve.next=6;break}return Ve.abrupt("return",Pe.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Ve.stop()}},Ee)}));function De(Ee){return Te.apply(this,arguments)}return De}();var Me=x("stream"),Le=Me.Readable;function Ce(Te,De){if(!(this instanceof Ce))return new Ce(Te,De);Le.call(this,De),this.file=Te,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}se.inherits(Ce,Le),Ce.prototype.readFileAndPush=function(De){if(this.fileBuffer)for(var Ee=!0;Ee&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Pe=this.start,Be=Pe+De;Be=Be>this.fileBuffer.length?this.fileBuffer.length:Be,this.start=Be,Ee=this.push(this.fileBuffer.slice(Pe,Be))}},Ce.prototype._read=function(De){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var Ee=16*1024;De=De||Ee;var Pe=this;this.reader.onload=function(Ve){Pe.fileBuffer=re.from(new Uint8Array(Ve.target.result)),Pe.file=null,Pe.readFileAndPush(De)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(De)};function Ne(Te){return Te.arrayBuffer?Te.arrayBuffer():new Promise(function(De,Ee){var Pe=new FileReader;Pe.onload=function(Be){De(Be.target.result)},Pe.onerror=function(Be){Ee(Be)},Pe.readAsArrayBuffer(Te)})}be._createBuffer=function(){var Te=(0,oe.default)(ie.default.mark(function Ee(Pe,Be,Ve){var Ie,Ze;return ie.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(!(de(Pe)||xe(Pe))){tt.next=8;break}return Ie=Pe.slice(Be,Ve),tt.next=4,Ne(Ie);case 4:return Ze=tt.sent,tt.abrupt("return",re.from(Ze));case 8:if(!we(Pe)){tt.next=12;break}return tt.abrupt("return",Pe.subarray(Be,Ve));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return tt.stop()}},Ee)}));function De(Ee,Pe,Be){return Te.apply(this,arguments)}return De}(),be._getPartSize=function(De,Ee){var Pe=1e4,Be=1*1024*1024;Ee||(Ee=Be);var Ve=Math.ceil(De/Pe);return Ee<Ve&&(Ee=Ve,console.warn("partSize has been set to ".concat(Ee,", because the partSize you provided causes partNumber to be greater than 10,000"))),Ee},be._divideParts=function(De,Ee){for(var Pe=Math.ceil(De/Ee),Be=[],Ve=0;Ve<Pe;Ve++){var Ie=Ee*Ve,Ze=Math.min(Ie+Ee,De);Be.push({start:Ie,end:Ze})}return Be}}).call(this)}).call(this,x("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault");x("core-js/modules/es.function.name.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.number.constructor.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.promise.js");var z=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("fs"),se=x("copy-to"),pe=x("path"),ne=x("mime"),ae=x("../common/callback"),ue=x("merge-descriptors"),de=x("../common/utils/isBlob"),he=de.isBlob,xe=x("../common/utils/isFile"),Se=xe.isFile,we=x("../common/utils/isBuffer"),be=we.isBuffer,Me=x("../common/utils/obj2xml"),Le=Me.obj2xml,Ce=me;Ce.append=function(){var Ne=(0,ie.default)(z.default.mark(function De(Ee,Pe,Be){var Ve;return z.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return Be=Be||{},Be.position===void 0&&(Be.position="0"),Be.subres={append:"",position:Be.position},Be.method="POST",Ze.next=6,this.put(Ee,Pe,Be);case 6:return Ve=Ze.sent,Ve.nextAppendPosition=Ve.res.headers["x-oss-next-append-position"],Ze.abrupt("return",Ve);case 9:case"end":return Ze.stop()}},De,this)}));function Te(De,Ee,Pe){return Ne.apply(this,arguments)}return Te}(),Ce.put=function(){var Ne=(0,ie.default)(z.default.mark(function De(Ee,Pe,Be){var Ve,Ie,Ze,Qe,tt;return z.default.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:if(Be=Be||{},Be.disabledMD5=Be.disabledMD5===void 0?!0:!!Be.disabledMD5,Be.headers=Be.headers||{},Ee=this._objectName(Ee),!be(Pe)){ht.next=8;break}Ve=Pe,ht.next=19;break;case 8:if(!(he(Pe)||Se(Pe))){ht.next=18;break}return Be.mime||(Se(Pe)?Be.mime=ne.getType(pe.extname(Pe.name)):Be.mime=Pe.type),ht.next=12,this._createBuffer(Pe,0,Pe.size);case 12:return Ve=ht.sent,ht.next=15,this._getFileSize(Pe);case 15:Be.contentLength=ht.sent,ht.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Be.meta,Be.headers),Ie=Be.method||"PUT",Ze=this._objectRequestParams(Ie,Ee,Be),ae.encodeCallback(Ze,Be),Ze.mime=Be.mime,Ze.disabledMD5=Be.disabledMD5,Ze.content=Ve,Ze.successStatuses=[200],ht.next=29,this.request(Ze);case 29:return Qe=ht.sent,tt={name:Ee,url:this._objectUrl(Ee),res:Qe.res},Ze.headers&&Ze.headers["x-oss-callback"]&&(tt.data=JSON.parse(Qe.data.toString())),ht.abrupt("return",tt);case 33:case"end":return ht.stop()}},De,this)}));function Te(De,Ee,Pe){return Ne.apply(this,arguments)}return Te}(),Ce.putStream=function(){var Ne=(0,ie.default)(z.default.mark(function De(Ee,Pe,Be){var Ve,Ie,Ze,Qe;return z.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return Be=Be||{},Be.headers=Be.headers||{},Ee=this._objectName(Ee),Be.contentLength?Be.headers["Content-Length"]=Be.contentLength:Be.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Be.meta,Be.headers),Ve=Be.method||"PUT",Ie=this._objectRequestParams(Ve,Ee,Be),ae.encodeCallback(Ie,Be),Ie.mime=Be.mime,Ie.stream=Pe,Ie.successStatuses=[200],it.next=13,this.request(Ie);case 13:return Ze=it.sent,Qe={name:Ee,url:this._objectUrl(Ee),res:Ze.res},Ie.headers&&Ie.headers["x-oss-callback"]&&(Qe.data=JSON.parse(Ze.data.toString())),it.abrupt("return",Qe);case 17:case"end":return it.stop()}},De,this)}));function Te(De,Ee,Pe){return Ne.apply(this,arguments)}return Te}(),ue(Ce,x("../common/object/copyObject")),ue(Ce,x("../common/object/getObjectTagging")),ue(Ce,x("../common/object/putObjectTagging")),ue(Ce,x("../common/object/deleteObjectTagging")),ue(Ce,x("../common/image")),ue(Ce,x("../common/object/getBucketVersions")),ue(Ce,x("../common/object/getACL")),ue(Ce,x("../common/object/putACL")),ue(Ce,x("../common/object/head")),ue(Ce,x("../common/object/delete")),ue(Ce,x("../common/object/get")),ue(Ce,x("../common/object/putSymlink")),ue(Ce,x("../common/object/getSymlink")),ue(Ce,x("../common/object/deleteMulti")),ue(Ce,x("../common/object/getObjectMeta")),ue(Ce,x("../common/object/getObjectUrl")),ue(Ce,x("../common/object/generateObjectUrl")),ue(Ce,x("../common/object/signatureUrl")),ue(Ce,x("../common/object/asyncSignatureUrl")),Ce.putMeta=function(){var Ne=(0,ie.default)(z.default.mark(function De(Ee,Pe,Be){var Ve;return z.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return Ze.next=2,this.copy(Ee,Ee,{meta:Pe||{},timeout:Be&&Be.timeout,ctx:Be&&Be.ctx});case 2:return Ve=Ze.sent,Ze.abrupt("return",Ve);case 4:case"end":return Ze.stop()}},De,this)}));function Te(De,Ee,Pe){return Ne.apply(this,arguments)}return Te}(),Ce.list=function(){var Ne=(0,ie.default)(z.default.mark(function De(Ee,Pe){var Be,Ve,Ie,Ze,Qe;return z.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return Be=this._objectRequestParams("GET","",Pe),Be.query=Ee,Be.xmlResponse=!0,Be.successStatuses=[200],it.next=6,this.request(Be);case 6:return Ve=it.sent,Ie=Ve.data.Contents||[],Ze=this,Ie&&(Array.isArray(Ie)||(Ie=[Ie]),Ie=Ie.map(function(ht){return{name:ht.Key,url:Ze._objectUrl(ht.Key),lastModified:ht.LastModified,etag:ht.ETag,type:ht.Type,size:Number(ht.Size),storageClass:ht.StorageClass,owner:{id:ht.Owner.ID,displayName:ht.Owner.DisplayName}}})),Qe=Ve.data.CommonPrefixes||null,Qe&&(Array.isArray(Qe)||(Qe=[Qe]),Qe=Qe.map(function(ht){return ht.Prefix})),it.abrupt("return",{res:Ve.res,objects:Ie,prefixes:Qe,nextMarker:Ve.data.NextMarker||null,isTruncated:Ve.data.IsTruncated==="true"});case 13:case"end":return it.stop()}},De,this)}));function Te(De,Ee){return Ne.apply(this,arguments)}return Te}(),Ce.listV2=function(){var Ne=(0,ie.default)(z.default.mark(function De(Ee){var Pe,Be,Ve,Ie,Ze,Qe,tt,it=arguments;return z.default.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Pe=it.length>1&&it[1]!==void 0?it[1]:{},Be=Ee["continuation-token"]||Ee.continuationToken,Be&&(Pe.subres=Object.assign({"continuation-token":Be},Pe.subres)),Ve=this._objectRequestParams("GET","",Pe),Ve.query=Object.assign({"list-type":2},Ee),delete Ve.query["continuation-token"],delete Ve.query.continuationToken,Ve.xmlResponse=!0,Ve.successStatuses=[200],Ge.next=11,this.request(Ve);case 11:return Ie=Ge.sent,Ze=Ie.data.Contents||[],Qe=this,Ze&&(Array.isArray(Ze)||(Ze=[Ze]),Ze=Ze.map(function(Xe){var ct=null;return Xe.Owner&&(ct={id:Xe.Owner.ID,displayName:Xe.Owner.DisplayName}),{name:Xe.Key,url:Qe._objectUrl(Xe.Key),lastModified:Xe.LastModified,etag:Xe.ETag,type:Xe.Type,size:Number(Xe.Size),storageClass:Xe.StorageClass,owner:ct}})),tt=Ie.data.CommonPrefixes||null,tt&&(Array.isArray(tt)||(tt=[tt]),tt=tt.map(function(Xe){return Xe.Prefix})),Ge.abrupt("return",{res:Ie.res,objects:Ze,prefixes:tt,isTruncated:Ie.data.IsTruncated==="true",keyCount:+Ie.data.KeyCount,continuationToken:Ie.data.ContinuationToken||null,nextContinuationToken:Ie.data.NextContinuationToken||null});case 18:case"end":return Ge.stop()}},De,this)}));function Te(De){return Ne.apply(this,arguments)}return Te}(),Ce.restore=function(){var Ne=(0,ie.default)(z.default.mark(function De(Ee){var Pe,Be,Ve,Ie,Ze=arguments;return z.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return Pe=Ze.length>1&&Ze[1]!==void 0?Ze[1]:{type:"Archive"},Pe=Pe||{},Pe.subres=Object.assign({restore:""},Pe.subres),Pe.versionId&&(Pe.subres.versionId=Pe.versionId),Be=this._objectRequestParams("POST",Ee,Pe),Pe.type==="ColdArchive"&&(Ve={RestoreRequest:{Days:Pe.Days?Pe.Days:2,JobParameters:{Tier:Pe.JobParameters?Pe.JobParameters:"Standard"}}},Be.content=Le(Ve,{headers:!0}),Be.mime="xml"),Be.successStatuses=[202],tt.next=9,this.request(Be);case 9:return Ie=tt.sent,tt.abrupt("return",{res:Ie.res});case 11:case"end":return tt.stop()}},De,this)}));function Te(De){return Ne.apply(this,arguments)}return Te}(),Ce._objectUrl=function(Te){return this._getReqUrl({bucket:this.options.bucket,object:Te})},Ce._objectRequestParams=function(Te,De,Ee){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Ee=Ee||{},De=this._objectName(De);var Pe={object:De,bucket:this.options.bucket,method:Te,subres:Ee&&Ee.subres,timeout:Ee&&Ee.timeout,ctx:Ee&&Ee.ctx};return Ee.headers&&(Pe.headers={},se(Ee.headers).to(Pe.headers)),Pe},Ce._objectName=function(Te){return Te.replace(/^\/+/,"")},Ce._convertMetaToHeaders=function(Te,De){Te&&Object.keys(Te).forEach(function(Ee){De["x-oss-meta-".concat(Ee)]=Te[Ee]})},Ce._deleteFileSafe=function(Te){var De=this;return new Promise(function(Ee){oe.exists(Te,function(Pe){Pe?oe.unlink(Te,function(Be){Be&&De.debug("unlink %j error: %s",Te,Be,"error"),Ee()}):Ee()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(x,Ae,me){"use strict";me.version="6.18.1"},{}],7:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(me,"__esModule",{value:!0}),me.abortBucketWorm=void 0;var oe=x("../utils/checkBucketName");function se(ne,ae){return pe.apply(this,arguments)}function pe(){return pe=(0,ie.default)(z.default.mark(function ne(ae,ue){var de,he;return z.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return oe.checkBucketName(ae),de=this._bucketRequestParams("DELETE",ae,"worm",ue),Se.next=4,this.request(de);case 4:return he=Se.sent,Se.abrupt("return",{res:he.res,status:he.status});case 6:case"end":return Se.stop()}},ne,this)})),pe.apply(this,arguments)}me.abortBucketWorm=se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(me,"__esModule",{value:!0}),me.completeBucketWorm=void 0;var oe=x("../utils/checkBucketName");function se(ne,ae,ue){return pe.apply(this,arguments)}function pe(){return pe=(0,ie.default)(z.default.mark(function ne(ae,ue,de){var he,xe;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return oe.checkBucketName(ae),he=this._bucketRequestParams("POST",ae,{wormId:ue},de),we.next=4,this.request(he);case 4:return xe=we.sent,we.abrupt("return",{res:xe.res,status:xe.status});case 6:case"end":return we.stop()}},ne,this)})),pe.apply(this,arguments)}me.completeBucketWorm=se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(me,"__esModule",{value:!0}),me.deleteBucketInventory=void 0;var oe=x("../utils/checkBucketName");function se(ne,ae){return pe.apply(this,arguments)}function pe(){return pe=(0,ie.default)(z.default.mark(function ne(ae,ue){var de,he,xe,Se,we=arguments;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return de=we.length>2&&we[2]!==void 0?we[2]:{},he=Object.assign({inventory:"",inventoryId:ue},de.subres),oe.checkBucketName(ae),xe=this._bucketRequestParams("DELETE",ae,he,de),xe.successStatuses=[204],Me.next=7,this.request(xe);case 7:return Se=Me.sent,Me.abrupt("return",{status:Se.status,res:Se.res});case 9:case"end":return Me.stop()}},ne,this)})),pe.apply(this,arguments)}me.deleteBucketInventory=se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),se=oe.checkBucketName,pe=me;pe.deleteBucketLifecycle=function(){var ne=(0,ie.default)(z.default.mark(function ue(de,he){var xe,Se;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return se(de),xe=this._bucketRequestParams("DELETE",de,"lifecycle",he),xe.successStatuses=[204],be.next=5,this.request(xe);case 5:return Se=be.sent,be.abrupt("return",{res:Se.res});case 7:case"end":return be.stop()}},ue,this)}));function ae(ue,de){return ne.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),se=oe.checkBucketName,pe=me;pe.deleteBucketWebsite=function(){var ne=(0,ie.default)(z.default.mark(function ue(de,he){var xe,Se;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return se(de),xe=this._bucketRequestParams("DELETE",de,"website",he),xe.successStatuses=[204],be.next=5,this.request(xe);case 5:return Se=be.sent,be.abrupt("return",{res:Se.res});case 7:case"end":return be.stop()}},ue,this)}));function ae(ue,de){return ne.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(me,"__esModule",{value:!0}),me.extendBucketWorm=void 0;var oe=x("../utils/checkBucketName"),se=x("../utils/obj2xml");function pe(ae,ue,de,he){return ne.apply(this,arguments)}function ne(){return ne=(0,ie.default)(z.default.mark(function ae(ue,de,he,xe){var Se,we,be;return z.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return oe.checkBucketName(ue),Se=this._bucketRequestParams("POST",ue,{wormExtend:"",wormId:de},xe),we={ExtendWormConfiguration:{RetentionPeriodInDays:he}},Se.mime="xml",Se.content=se.obj2xml(we,{headers:!0}),Se.successStatuses=[200],Le.next=8,this.request(Se);case 8:return be=Le.sent,Le.abrupt("return",{res:be.res,status:be.status});case 10:case"end":return Le.stop()}},ae,this)})),ne.apply(this,arguments)}me.extendBucketWorm=pe},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(me,"__esModule",{value:!0}),me.getBucketInventory=void 0;var oe=x("../utils/checkBucketName"),se=x("../utils/formatInventoryConfig");function pe(ae,ue){return ne.apply(this,arguments)}function ne(){return ne=(0,ie.default)(z.default.mark(function ae(ue,de){var he,xe,Se,we,be=arguments;return z.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return he=be.length>2&&be[2]!==void 0?be[2]:{},xe=Object.assign({inventory:"",inventoryId:de},he.subres),oe.checkBucketName(ue),Se=this._bucketRequestParams("GET",ue,xe,he),Se.successStatuses=[200],Se.xmlResponse=!0,Le.next=8,this.request(Se);case 8:return we=Le.sent,Le.abrupt("return",{status:we.status,res:we.res,inventory:se.formatInventoryConfig(we.data)});case 10:case"end":return Le.stop()}},ae,this)})),ne.apply(this,arguments)}me.getBucketInventory=pe},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.map.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),se=oe.checkBucketName,pe=x("../utils/isArray"),ne=pe.isArray,ae=x("../utils/formatObjKey"),ue=ae.formatObjKey,de=me;de.getBucketLifecycle=function(){var he=(0,ie.default)(z.default.mark(function Se(we,be){var Me,Le,Ce;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return se(we),Me=this._bucketRequestParams("GET",we,"lifecycle",be),Me.successStatuses=[200],Me.xmlResponse=!0,Te.next=6,this.request(Me);case 6:return Le=Te.sent,Ce=Le.data.Rule||null,Ce&&(ne(Ce)||(Ce=[Ce]),Ce=Ce.map(function(De){return De.ID&&(De.id=De.ID,delete De.ID),De.Tag&&!ne(De.Tag)&&(De.Tag=[De.Tag]),ue(De,"firstLowerCase")})),Te.abrupt("return",{rules:Ce,res:Le.res});case 10:case"end":return Te.stop()}},Se,this)}));function xe(Se,we){return he.apply(this,arguments)}return xe}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),se=oe.checkBucketName,pe=me;pe.getBucketVersioning=function(){var ne=(0,ie.default)(z.default.mark(function ue(de,he){var xe,Se,we;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return se(de),xe=this._bucketRequestParams("GET",de,"versioning",he),xe.xmlResponse=!0,xe.successStatuses=[200],Me.next=6,this.request(xe);case 6:return Se=Me.sent,we=Se.data.Status,Me.abrupt("return",{status:Se.status,versionStatus:we,res:Se.res});case 9:case"end":return Me.stop()}},ue,this)}));function ae(ue,de){return ne.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),se=oe.checkBucketName,pe=x("../utils/isObject"),ne=pe.isObject,ae=me;ae.getBucketWebsite=function(){var ue=(0,ie.default)(z.default.mark(function he(xe,Se){var we,be,Me;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return se(xe),we=this._bucketRequestParams("GET",xe,"website",Se),we.successStatuses=[200],we.xmlResponse=!0,Ce.next=6,this.request(we);case 6:return be=Ce.sent,Me=[],be.data.RoutingRules&&be.data.RoutingRules.RoutingRule&&(ne(be.data.RoutingRules.RoutingRule)?Me=[be.data.RoutingRules.RoutingRule]:Me=be.data.RoutingRules.RoutingRule),Ce.abrupt("return",{index:be.data.IndexDocument&&be.data.IndexDocument.Suffix||"",supportSubDir:be.data.IndexDocument&&be.data.IndexDocument.SupportSubDir||"false",type:be.data.IndexDocument&&be.data.IndexDocument.Type,routingRules:Me,error:be.data.ErrorDocument&&be.data.ErrorDocument.Key||null,res:be.res});case 10:case"end":return Ce.stop()}},he,this)}));function de(he,xe){return ue.apply(this,arguments)}return de}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(me,"__esModule",{value:!0}),me.getBucketWorm=void 0;var oe=x("../utils/checkBucketName"),se=x("../utils/dataFix");function pe(ae,ue){return ne.apply(this,arguments)}function ne(){return ne=(0,ie.default)(z.default.mark(function ae(ue,de){var he,xe;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return oe.checkBucketName(ue),he=this._bucketRequestParams("GET",ue,"worm",de),he.successStatuses=[200],he.xmlResponse=!0,we.next=6,this.request(he);case 6:return xe=we.sent,se.dataFix(xe.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),we.abrupt("return",Object.assign(Object.assign({},xe.data),{res:xe.res,status:xe.status}));case 9:case"end":return we.stop()}},ae,this)})),ne.apply(this,arguments)}me.getBucketWorm=pe},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(me,"__esModule",{value:!0}),me.initiateBucketWorm=void 0;var oe=x("../utils/obj2xml"),se=x("../utils/checkBucketName");function pe(ae,ue,de){return ne.apply(this,arguments)}function ne(){return ne=(0,ie.default)(z.default.mark(function ae(ue,de,he){var xe,Se,we;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return se.checkBucketName(ue),xe=this._bucketRequestParams("POST",ue,"worm",he),Se={InitiateWormConfiguration:{RetentionPeriodInDays:de}},xe.mime="xml",xe.content=oe.obj2xml(Se,{headers:!0}),xe.successStatuses=[200],Me.next=8,this.request(xe);case 8:return we=Me.sent,Me.abrupt("return",{res:we.res,wormId:we.res.headers["x-oss-worm-id"],status:we.status});case 10:case"end":return Me.stop()}},ae,this)})),ne.apply(this,arguments)}me.initiateBucketWorm=pe},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(me,"__esModule",{value:!0}),me.listBucketInventory=void 0;var oe=x("../utils/checkBucketName"),se=x("../utils/formatInventoryConfig");function pe(ae){return ne.apply(this,arguments)}function ne(){return ne=(0,ie.default)(z.default.mark(function ae(ue){var de,he,xe,Se,we,be,Me,Le,Ce=arguments;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return de=Ce.length>1&&Ce[1]!==void 0?Ce[1]:{},he=de.continuationToken,xe=Object.assign({inventory:""},he&&{"continuation-token":he},de.subres),oe.checkBucketName(ue),Se=this._bucketRequestParams("GET",ue,xe,de),Se.successStatuses=[200],Se.xmlResponse=!0,Te.next=9,this.request(Se);case 9:return we=Te.sent,be=we.data,Me=we.res,Le=we.status,Te.abrupt("return",{isTruncated:be.IsTruncated==="true",nextContinuationToken:be.NextContinuationToken,inventoryList:se.formatInventoryConfig(be.InventoryConfiguration,!0),status:Le,res:Me});case 12:case"end":return Te.stop()}},ae,this)})),ne.apply(this,arguments)}me.listBucketInventory=pe},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.concat.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(me,"__esModule",{value:!0}),me.putBucketInventory=void 0;var oe=x("../utils/checkBucketName"),se=x("../utils/obj2xml");function pe(ae,ue){return ne.apply(this,arguments)}function ne(){return ne=(0,ie.default)(z.default.mark(function ae(ue,de){var he,xe,Se,we,be,Me,Le,Ce,Ne,Te,De,Ee=arguments;return z.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return he=Ee.length>2&&Ee[2]!==void 0?Ee[2]:{},xe=Object.assign({inventory:"",inventoryId:de.id},he.subres),oe.checkBucketName(ue),Se=de.OSSBucketDestination,we=de.optionalFields,be=de.includedObjectVersions,Me="acs:oss:::",Le="acs:ram::".concat(Se.accountId,":role/"),Ce={InventoryConfiguration:{Id:de.id,IsEnabled:de.isEnabled,Filter:{Prefix:de.prefix||""},Destination:{OSSBucketDestination:{Format:Se.format,AccountId:Se.accountId,RoleArn:"".concat(Le).concat(Se.rolename),Bucket:"".concat(Me).concat(Se.bucket),Prefix:Se.prefix||"",Encryption:Se.encryption||""}},Schedule:{Frequency:de.frequency},IncludedObjectVersions:be,OptionalFields:{Field:(we==null?void 0:we.field)||[]}}},Ne=se.obj2xml(Ce,{headers:!0,firstUpperCase:!0}),Te=this._bucketRequestParams("PUT",ue,xe,he),Te.successStatuses=[200],Te.mime="xml",Te.content=Ne,Be.next=14,this.request(Te);case 14:return De=Be.sent,Be.abrupt("return",{status:De.status,res:De.res});case 16:case"end":return Be.stop()}},ae,this)})),ne.apply(this,arguments)}me.putBucketInventory=pe},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.array.includes.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),se=oe.checkBucketName,pe=x("../utils/isArray"),ne=pe.isArray,ae=x("../utils/deepCopy"),ue=ae.deepCopy,de=x("../utils/isObject"),he=de.isObject,xe=x("../utils/obj2xml"),Se=xe.obj2xml,we=x("../utils/checkObjectTag"),be=we.checkObjectTag,Me=x("../utils/getStrBytesCount"),Le=Me.getStrBytesCount,Ce=me;Ce.putBucketLifecycle=function(){var Pe=(0,ie.default)(z.default.mark(function Ve(Ie,Ze,Qe){var tt,it,ht,Ge,Xe;return z.default.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(se(Ie),ne(Ze)){pt.next=3;break}throw new Error("rules must be Array");case 3:return tt=this._bucketRequestParams("PUT",Ie,"lifecycle",Qe),it=[],ht={LifecycleConfiguration:{Rule:it}},Ze.forEach(function(ut){Ne(ut),Ee(ut),ut.id&&(ut.ID=ut.id,delete ut.id),it.push(ut)}),Ge=Se(ht,{headers:!0,firstUpperCase:!0}),tt.content=Ge,tt.mime="xml",tt.successStatuses=[200],pt.next=13,this.request(tt);case 13:return Xe=pt.sent,pt.abrupt("return",{res:Xe.res});case 15:case"end":return pt.stop()}},Ve,this)}));function Be(Ve,Ie,Ze){return Pe.apply(this,arguments)}return Be}();function Ne(Pe){Pe.days&&(Pe.expiration={days:Pe.days}),Pe.date&&(Pe.expiration={createdBeforeDate:Pe.date})}function Te(Pe,Be){var Ve=Pe.days,Ie=Pe.createdBeforeDate;if(!Ve&&!Ie)throw new Error("".concat(Be," must includes days or createdBeforeDate"));if(Ve&&!/^[1-9][0-9]*$/.test(Ve))throw new Error("days must be a positive integer");if(Ie&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Ie))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function De(Pe){if(!ne(Pe)&&!he(Pe))throw new Error("tag must be Object or Array");Pe=he(Pe)?[Pe]:Pe;var Be={},Ve=ue(Pe);Ve.forEach(function(Ie){Be[Ie.key]=Ie.value}),be(Be)}function Ee(Pe){if(Pe.id&&Le(Pe.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Pe.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Pe.status))throw new Error("Status must be Enabled or Disabled");if(Pe.transition){if(!["IA","Archive"].includes(Pe.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Te(Pe.transition,"Transition")}if(Pe.expiration){if(!Pe.expiration.expiredObjectDeleteMarker)Te(Pe.expiration,"Expiration");else if(Pe.expiration.days||Pe.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Pe.abortMultipartUpload&&Te(Pe.abortMultipartUpload,"AbortMultipartUpload"),!Pe.expiration&&!Pe.abortMultipartUpload&&!Pe.transition&&!Pe.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Pe.tag){if(Pe.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");De(Pe.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.includes.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),se=oe.checkBucketName,pe=x("../utils/obj2xml"),ne=pe.obj2xml,ae=me;ae.putBucketVersioning=function(){var ue=(0,ie.default)(z.default.mark(function he(xe,Se){var we,be,Me,Le,Ce=arguments;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(we=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},se(xe),["Enabled","Suspended"].includes(Se)){Te.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return be=this._bucketRequestParams("PUT",xe,"versioning",we),Me={VersioningConfiguration:{Status:Se}},be.mime="xml",be.content=ne(Me,{headers:!0}),Te.next=10,this.request(be);case 10:return Le=Te.sent,Te.abrupt("return",{res:Le.res,status:Le.status});case 12:case"end":return Te.stop()}},he,this)}));function de(he,xe){return ue.apply(this,arguments)}return de}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),se=oe.checkBucketName,pe=x("../utils/obj2xml"),ne=pe.obj2xml,ae=x("../utils/isArray"),ue=ae.isArray,de=me;de.putBucketWebsite=function(){var he=(0,ie.default)(z.default.mark(function Se(we){var be,Me,Le,Ce,Ne,Te,De,Ee=arguments;return z.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(be=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},Me=Ee.length>2?Ee[2]:void 0,se(we),Le=this._bucketRequestParams("PUT",we,"website",Me),Ce={Suffix:be.index||"index.html"},Ne={IndexDocument:Ce},Te={WebsiteConfiguration:Ne},be.supportSubDir&&(Ce.SupportSubDir=be.supportSubDir),be.type&&(Ce.Type=be.type),be.error&&(Ne.ErrorDocument={Key:be.error}),be.routingRules===void 0){Be.next=14;break}if(ue(be.routingRules)){Be.next=13;break}throw new Error("RoutingRules must be Array");case 13:Ne.RoutingRules={RoutingRule:be.routingRules};case 14:return Te=ne(Te),Le.content=Te,Le.mime="xml",Le.successStatuses=[200],Be.next=20,this.request(Le);case 20:return De=Be.sent,Be.abrupt("return",{res:De.res});case 22:case"end":return Be.stop()}},Se,this)}));function xe(Se){return he.apply(this,arguments)}return xe}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(x,Ae,me){(function(re){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),me.encodeCallback=function(ie,oe){if(ie.headers=ie.headers||{},!Object.prototype.hasOwnProperty.call(ie.headers,"x-oss-callback")&&oe.callback){var se={callbackUrl:encodeURI(oe.callback.url),callbackBody:oe.callback.body};oe.callback.host&&(se.callbackHost=oe.callback.host),oe.callback.contentType&&(se.callbackBodyType=oe.callback.contentType);var pe=re.from(JSON.stringify(se)).toString("base64");if(ie.headers["x-oss-callback"]=pe,oe.callback.customValue){var ne={};Object.keys(oe.callback.customValue).forEach(function(ae){ne["x:".concat(ae)]=oe.callback.customValue[ae].toString()}),ie.headers["x-oss-callback-var"]=re.from(JSON.stringify(ne)).toString("base64")}}}}).call(this)}).call(this,x("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(x,Ae,me){"use strict";x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js");var re=function(ue){return ue&&ue.__esModule?ue:{default:ue}};Object.defineProperty(me,"__esModule",{value:!0}),me.getReqUrl=void 0;var z=re(x("copy-to")),ie=re(x("url")),oe=re(x("merge-descriptors")),se=re(x("is-type-of")),pe=x("../utils/isIP"),ne=x("../utils/checkConfigValid");function ae(ue){var de={},he=this.options.cname;ne.checkConfigValid(this.options.endpoint,"endpoint"),z.default(this.options.endpoint,!1).to(de),ue.bucket&&!he&&!pe.isIP(de.hostname)&&!this.options.sldEnable&&(de.host="".concat(ue.bucket,".").concat(de.host));var xe="/";ue.bucket&&this.options.sldEnable&&(xe+="".concat(ue.bucket,"/")),ue.object&&(xe+=this._escape(ue.object).replace(/\+/g,"%2B")),de.pathname=xe;var Se={};if(ue.query&&oe.default(Se,ue.query),ue.subres){var we={};se.default.string(ue.subres)?we[ue.subres]="":se.default.array(ue.subres)?ue.subres.forEach(function(be){we[be]=""}):we=ue.subres,oe.default(Se,we)}return de.query=Se,ie.default.format(de)}me.getReqUrl=ae},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(x,Ae,me){"use strict";x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.string.trim.js");var re=x("humanize-ms"),z=x("url"),ie=x("../utils/checkBucketName"),oe=ie.checkBucketName,se=x("../utils/setRegion"),pe=se.setRegion,ne=x("../utils/checkConfigValid"),ae=ne.checkConfigValid;function ue(de,he){ae(de,"endpoint");var xe=z.parse(de);if(xe.protocol||(xe=z.parse("http".concat(he?"s":"","://").concat(de))),xe.protocol!=="http:"&&xe.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return xe}Ae.exports=function(de){if(!de||!de.accessKeyId||!de.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");de.stsToken&&!de.refreshSTSToken&&!de.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),de.bucket&&oe(de.bucket);var he=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},de);if(he.accessKeyId=he.accessKeyId.trim(),he.accessKeySecret=he.accessKeySecret.trim(),he.timeout&&(he.timeout=re(he.timeout)),he.endpoint)he.endpoint=ue(he.endpoint,he.secure);else if(he.region)he.endpoint=pe(he.region,he.internal,he.secure);else throw new Error("require options.endpoint or options.region");return he.inited=!0,he}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(x,Ae,me){"use strict";var re=x("merge-descriptors"),z=me;re(z,x("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.concat.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),se=oe.checkBucketName,pe=x("querystring"),ne=x("js-base64"),ae=ne.Base64.encode,ue=me;ue.processObjectSave=function(){var he=(0,ie.default)(z.default.mark(function Se(we,be,Me,Le){var Ce,Ne,Te,De;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return de(we,"sourceObject"),de(be,"targetObject"),de(Me,"process"),be=this._objectName(be),Le&&se(Le),Ce=this._objectRequestParams("POST",we,{subres:"x-oss-process"}),Ne=Le?",b_".concat(ae(Le)):"",be=ae(be),Te={"x-oss-process":"".concat(Me,"|sys/saveas,o_").concat(be).concat(Ne)},Ce.content=pe.stringify(Te),Pe.next=12,this.request(Ce);case 12:return De=Pe.sent,Pe.abrupt("return",{res:De.res,status:De.res.status});case 14:case"end":return Pe.stop()}},Se,this)}));function xe(Se,we,be,Me){return he.apply(this,arguments)}return xe}();function de(he,xe){if(!he)throw new Error("".concat(xe," is required"));if(typeof he!="string")throw new Error("".concat(xe," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.array.from.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.array.filter.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.regexp.to-string.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("debug")("ali-oss:multipart-copy"),se=x("copy-to"),pe=me;pe.uploadPartCopy=function(){var ne=(0,ie.default)(z.default.mark(function ue(de,he,xe,Se,we){var be,Me,Le,Ce,Ne,Te=arguments;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return be=Te.length>5&&Te[5]!==void 0?Te[5]:{},be.headers=be.headers||{},Me=be.versionId||be.subres&&be.subres.versionId||null,Me?Le="/".concat(we.sourceBucketName,"/").concat(encodeURIComponent(we.sourceKey),"?versionId=").concat(Me):Le="/".concat(we.sourceBucketName,"/").concat(encodeURIComponent(we.sourceKey)),be.headers["x-oss-copy-source"]=Le,Se&&(be.headers["x-oss-copy-source-range"]="bytes=".concat(Se)),be.subres={partNumber:xe,uploadId:he},Ce=this._objectRequestParams("PUT",de,be),Ce.mime=be.mime,Ce.successStatuses=[200],Ee.next=12,this.request(Ce);case 12:return Ne=Ee.sent,Ee.abrupt("return",{name:de,etag:Ne.res.headers.etag,res:Ne.res});case 14:case"end":return Ee.stop()}},ue,this)}));function ae(ue,de,he,xe,Se){return ne.apply(this,arguments)}return ae}(),pe.multipartUploadCopy=function(){var ne=(0,ie.default)(z.default.mark(function ue(de,he){var xe,Se,we,be,Me,Le,Ce,Ne,Te,De,Ee,Pe,Be=arguments;return z.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return xe=Be.length>2&&Be[2]!==void 0?Be[2]:{},this.resetCancelFlag(),Se=xe.versionId,we=Se===void 0?null:Se,be={versionId:we},Ie.next=6,this._getObjectMeta(he.sourceBucketName,he.sourceKey,be);case 6:if(Me=Ie.sent,Le=Me.res.headers["content-length"],he.startOffset=he.startOffset||0,he.endOffset=he.endOffset||Le,!(xe.checkpoint&&xe.checkpoint.uploadId)){Ie.next=14;break}return Ie.next=13,this._resumeMultipartCopy(xe.checkpoint,he,xe);case 13:return Ie.abrupt("return",Ie.sent);case 14:if(Ce=102400,Ne=he.endOffset-he.startOffset,!(Ne<Ce)){Ie.next=18;break}throw new Error("copySize must not be smaller than ".concat(Ce));case 18:if(!(xe.partSize&&xe.partSize<Ce)){Ie.next=20;break}throw new Error("partSize must not be smaller than ".concat(Ce));case 20:return Ie.next=22,this.initMultipartUpload(de,xe);case 22:if(Te=Ie.sent,De=Te.uploadId,Ee=this._getPartSize(Ne,xe.partSize),Pe={name:de,copySize:Ne,partSize:Ee,uploadId:De,doneParts:[]},!(xe&&xe.progress)){Ie.next=29;break}return Ie.next=29,xe.progress(0,Pe,Te.res);case 29:return Ie.next=31,this._resumeMultipartCopy(Pe,he,xe);case 31:return Ie.abrupt("return",Ie.sent);case 32:case"end":return Ie.stop()}},ue,this)}));function ae(ue,de){return ne.apply(this,arguments)}return ae}(),pe._resumeMultipartCopy=function(){var ne=(0,ie.default)(z.default.mark(function ue(de,he,xe){var Se,we,be,Me,Le,Ce,Ne,Te,De,Ee,Pe,Be,Ve,Ie,Ze,Qe,tt,it,ht,Ge,Xe;return z.default.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(!this.isCancel()){pt.next=2;break}throw this._makeCancelEvent();case 2:if(Se=xe.versionId,we=Se===void 0?null:Se,be={versionId:we},Me=de.copySize,Le=de.partSize,Ce=de.uploadId,Ne=de.doneParts,Te=de.name,De=this._divideMultipartCopyParts(Me,Le,he.startOffset),Ee=De.length,Pe={headers:{}},xe.copyheaders&&se(xe.copyheaders).to(Pe.headers),we&&se(be).to(Pe),Be=function(rt,qe,nt){return new Promise(function(){var xt=(0,ie.default)(z.default.mark(function yt(Rt,Ot){var lt,Ue,$e;return z.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(fe.prev=0,rt.isCancel()){fe.next=22;break}return lt=De[qe-1],Ue="".concat(lt.start,"-").concat(lt.end-1),fe.prev=4,fe.next=7,rt.uploadPartCopy(Te,Ce,qe,Ue,nt,Pe);case 7:$e=fe.sent,fe.next=15;break;case 10:if(fe.prev=10,fe.t0=fe.catch(4),fe.t0.status!==404){fe.next=14;break}throw rt._makeAbortEvent();case 14:throw fe.t0;case 15:if(rt.isCancel()){fe.next=22;break}if(oe("content-range ".concat($e.res.headers["content-range"])),Ne.push({number:qe,etag:$e.res.headers.etag}),de.doneParts=Ne,!(xe&&xe.progress)){fe.next=22;break}return fe.next=22,xe.progress(Ne.length/Ee,de,$e.res);case 22:Rt(),fe.next=29;break;case 25:fe.prev=25,fe.t1=fe.catch(0),fe.t1.partNum=qe,Ot(fe.t1);case 29:case"end":return fe.stop()}},yt,null,[[0,25],[4,10]])}));return function(yt,Rt){return xt.apply(this,arguments)}}())},Ve=Array.from(new Array(Ee),function(ut,rt){return rt+1}),Ie=Ne.map(function(ut){return ut.number}),Ze=Ve.filter(function(ut){return Ie.indexOf(ut)<0}),Qe=5,tt=xe.parallel||Qe,!(this.checkBrowserAndVersion("Internet Explorer","10")||tt===1)){pt.next=28;break}it=0;case 18:if(!(it<Ze.length)){pt.next=26;break}if(!this.isCancel()){pt.next=21;break}throw this._makeCancelEvent();case 21:return pt.next=23,Be(this,Ze[it],he);case 23:it++,pt.next=18;break;case 26:pt.next=40;break;case 28:return pt.next=30,this._parallelNode(Ze,tt,Be,he);case 30:if(ht=pt.sent,Ge=ht.find(function(ut){return ut.name==="abort"}),!Ge){pt.next=34;break}throw Ge;case 34:if(!this.isCancel()){pt.next=36;break}throw this._makeCancelEvent();case 36:if(!(ht&&ht.length>0)){pt.next=40;break}throw Xe=ht[0],Xe.message="Failed to copy some parts with error: ".concat(Xe.toString()," part_num: ").concat(Xe.partNum),Xe;case 40:return pt.next=42,this.completeMultipartUpload(Te,Ce,Ne,xe);case 42:return pt.abrupt("return",pt.sent);case 43:case"end":return pt.stop()}},ue,this)}));function ae(ue,de,he){return ne.apply(this,arguments)}return ae}(),pe._divideMultipartCopyParts=function(ae,ue,de){for(var he=Math.ceil(ae/ue),xe=[],Se=0;Se<he;Se++){var we=ue*Se+de,be=Math.min(we+ue,ae+de);xe.push({start:we,end:be})}return xe},pe._getObjectMeta=function(){var ne=(0,ie.default)(z.default.mark(function ue(de,he,xe){var Se,we;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Se=this.getBucket(),this.setBucket(de),Me.next=4,this.head(he,xe);case 4:return we=Me.sent,this.setBucket(Se),Me.abrupt("return",we);case 7:case"end":return Me.stop()}},ue,this)}));function ae(ue,de,he){return ne.apply(this,arguments)}return ae}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(x,Ae,me){(function(re){(function(){"use strict";var z=x("@babel/runtime/helpers/interopRequireDefault"),ie=z(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.map.js"),x("core-js/modules/es.array.filter.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.array.sort.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.to-string.js");var oe=z(x("@babel/runtime/helpers/asyncToGenerator")),se=x("copy-to"),pe=x("./callback"),ne=x("./utils/deepCopy"),ae=ne.deepCopyWith,ue=x("./utils/isBuffer"),de=ue.isBuffer,he=x("./utils/omit"),xe=he.omit,Se=me;Se.listUploads=function(){var we=(0,oe.default)(ie.default.mark(function Me(Le,Ce){var Ne,Te,De,Ee;return ie.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Ce=Ce||{},Ne={},se(Ce).to(Ne),Ne.subres="uploads",Te=this._objectRequestParams("GET","",Ne),Te.query=Le,Te.xmlResponse=!0,Te.successStatuses=[200],Be.next=10,this.request(Te);case 10:return De=Be.sent,Ee=De.data.Upload||[],Array.isArray(Ee)||(Ee=[Ee]),Ee=Ee.map(function(Ve){return{name:Ve.Key,uploadId:Ve.UploadId,initiated:Ve.Initiated}}),Be.abrupt("return",{res:De.res,uploads:Ee,bucket:De.data.Bucket,nextKeyMarker:De.data.NextKeyMarker,nextUploadIdMarker:De.data.NextUploadIdMarker,isTruncated:De.data.IsTruncated==="true"});case 15:case"end":return Be.stop()}},Me,this)}));function be(Me,Le){return we.apply(this,arguments)}return be}(),Se.listParts=function(){var we=(0,oe.default)(ie.default.mark(function Me(Le,Ce,Ne,Te){var De,Ee,Pe;return ie.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Te=Te||{},De={},se(Te).to(De),De.subres={uploadId:Ce},Ee=this._objectRequestParams("GET",Le,De),Ee.query=Ne,Ee.xmlResponse=!0,Ee.successStatuses=[200],Ve.next=10,this.request(Ee);case 10:return Pe=Ve.sent,Ve.abrupt("return",{res:Pe.res,uploadId:Pe.data.UploadId,bucket:Pe.data.Bucket,name:Pe.data.Key,partNumberMarker:Pe.data.PartNumberMarker,nextPartNumberMarker:Pe.data.NextPartNumberMarker,maxParts:Pe.data.MaxParts,isTruncated:Pe.data.IsTruncated,parts:Pe.data.Part||[]});case 12:case"end":return Ve.stop()}},Me,this)}));function be(Me,Le,Ce,Ne){return we.apply(this,arguments)}return be}(),Se.abortMultipartUpload=function(){var we=(0,oe.default)(ie.default.mark(function Me(Le,Ce,Ne){var Te,De,Ee;return ie.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return this._stop(),Ne=Ne||{},Te={},se(Ne).to(Te),Te.subres={uploadId:Ce},De=this._objectRequestParams("DELETE",Le,Te),De.successStatuses=[204],Be.next=9,this.request(De);case 9:return Ee=Be.sent,Be.abrupt("return",{res:Ee.res});case 11:case"end":return Be.stop()}},Me,this)}));function be(Me,Le,Ce){return we.apply(this,arguments)}return be}(),Se.initMultipartUpload=function(){var we=(0,oe.default)(ie.default.mark(function Me(Le,Ce){var Ne,Te,De;return ie.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Ce=Ce||{},Ne={},se(Ce).to(Ne),Ne.headers=Ne.headers||{},this._convertMetaToHeaders(Ce.meta,Ne.headers),Ne.subres="uploads",Te=this._objectRequestParams("POST",Le,Ne),Te.mime=Ce.mime,Te.xmlResponse=!0,Te.successStatuses=[200],Pe.next=12,this.request(Te);case 12:return De=Pe.sent,Pe.abrupt("return",{res:De.res,bucket:De.data.Bucket,name:De.data.Key,uploadId:De.data.UploadId});case 14:case"end":return Pe.stop()}},Me,this)}));function be(Me,Le){return we.apply(this,arguments)}return be}(),Se.uploadPart=function(){var we=(0,oe.default)(ie.default.mark(function Me(Le,Ce,Ne,Te,De,Ee,Pe){var Be,Ve;return ie.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(Be={size:Ee-De},Ve=re&&re.browser,!Ve){Ze.next=8;break}return Ze.next=5,this._createBuffer(Te,De,Ee);case 5:Be.content=Ze.sent,Ze.next=11;break;case 8:return Ze.next=10,this._createStream(Te,De,Ee);case 10:Be.stream=Ze.sent;case 11:return Ze.next=13,this._uploadPart(Le,Ce,Ne,Be,Pe);case 13:return Ze.abrupt("return",Ze.sent);case 14:case"end":return Ze.stop()}},Me,this)}));function be(Me,Le,Ce,Ne,Te,De,Ee){return we.apply(this,arguments)}return be}(),Se.completeMultipartUpload=function(){var we=(0,oe.default)(ie.default.mark(function Me(Le,Ce,Ne,Te){var De,Ee,Pe,Be,Ve,Ie,Ze,Qe;return ie.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:for(De=Ne.concat().sort(function(ht,Ge){return ht.number-Ge.number}).filter(function(ht,Ge,Xe){return!Ge||ht.number!==Xe[Ge-1].number}),Ee=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,Pe=0;Pe<De.length;Pe++)Be=De[Pe],Ee+=`<Part>
|
|
|
`,Ee+="<PartNumber>".concat(Be.number,`</PartNumber>
|
|
|
`),Ee+="<ETag>".concat(Be.etag,`</ETag>
|
|
|
`),Ee+=`</Part>
|
|
|
`;return Ee+="</CompleteMultipartUpload>",Te=Te||{},Ve={},Ve=ae(Te,function(ht){if(de(ht))return null}),Ve.subres={uploadId:Ce},Ve.headers=xe(Ve.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Ie=this._objectRequestParams("POST",Le,Ve),pe.encodeCallback(Ie,Ve),Ie.mime="xml",Ie.content=Ee,Ie.headers&&Ie.headers["x-oss-callback"]||(Ie.xmlResponse=!0),Ie.successStatuses=[200],it.next=17,this.request(Ie);case 17:if(Ze=it.sent,!Te.progress){it.next=21;break}return it.next=21,Te.progress(1,null,Ze.res);case 21:return Qe={res:Ze.res,bucket:Ie.bucket,name:Le,etag:Ze.res.headers.etag},Ie.headers&&Ie.headers["x-oss-callback"]&&(Qe.data=JSON.parse(Ze.data.toString())),it.abrupt("return",Qe);case 24:case"end":return it.stop()}},Me,this)}));function be(Me,Le,Ce,Ne){return we.apply(this,arguments)}return be}(),Se._uploadPart=function(){var we=(0,oe.default)(ie.default.mark(function Me(Le,Ce,Ne,Te,De){var Ee,Pe,Be,Ve;return ie.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return De=De||{},Ee={},se(De).to(Ee),Ee.headers=Ee.headers||{},Ee.headers["Content-Length"]=Te.size,Ee.headers=xe(Ee.headers,["x-oss-server-side-encryption"]),Ee.subres={partNumber:Ne,uploadId:Ce},Pe=this._objectRequestParams("PUT",Le,Ee),Pe.mime=Ee.mime,Be=re&&re.browser,Be?Pe.content=Te.content:Pe.stream=Te.stream,Pe.successStatuses=[200],Pe.disabledMD5=De.disabledMD5,Ze.next=15,this.request(Pe);case 15:if(Ve=Ze.sent,Ve.res.headers.etag){Ze.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
|
|
|
https://help.aliyun.com/document_detail/32069.html`);case 18:return Te.stream&&(Te.stream=null,Pe.stream=null),Ze.abrupt("return",{name:Le,etag:Ve.res.headers.etag,res:Ve.res});case 20:case"end":return Ze.stop()}},Me,this)}));function be(Me,Le,Ce,Ne,Te){return we.apply(this,arguments)}return be}()}).call(this)}).call(this,x("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("url"),se=x("utility"),pe=x("copy-to"),ne=x("../../common/signUtils"),ae=x("../utils/isIP"),ue=ae.isIP,de=x("../utils/setSTSToken"),he=de.setSTSToken,xe=x("../utils/isFunction"),Se=xe.isFunction,we=me;we.asyncSignatureUrl=function(){var be=(0,ie.default)(z.default.mark(function Le(Ce,Ne){var Te,De,Ee,Pe,Be;return z.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:if(!ue(this.options.endpoint.hostname)){Ie.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Ne=Ne||{},Ce=this._objectName(Ce),Ne.method=Ne.method||"GET",Te=se.timestamp()+(Ne.expires||1800),De={bucket:this.options.bucket,object:Ce},Ee=this._getResource(De),!(this.options.stsToken&&Se(this.options.refreshSTSToken))){Ie.next=11;break}return Ie.next=11,he.call(this);case 11:return this.options.stsToken&&(Ne["security-token"]=this.options.stsToken),Pe=ne._signatureForURL(this.options.accessKeySecret,Ne,Ee,Te),Be=oe.parse(this._getReqUrl(De)),Be.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Te,Signature:Pe.Signature},pe(Pe.subResource).to(Be.query),Ie.abrupt("return",Be.format());case 17:case"end":return Ie.stop()}},Le,this)}));function Me(Le,Ce){return be.apply(this,arguments)}return Me}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js");var ie=re(x("@babel/runtime/helpers/typeof")),oe=re(x("@babel/runtime/helpers/asyncToGenerator")),se=x("../utils/checkBucketName"),pe=se.checkBucketName,ne=me,ae=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];ne.copy=function(){var ue=(0,oe.default)(z.default.mark(function he(xe,Se,we,be){var Me,Le,Ce;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return(0,ie.default)(we)==="object"&&(be=we),be=be||{},be.headers=be.headers||{},Object.keys(be.headers).forEach(function(De){be.headers["x-oss-copy-source-".concat(De.toLowerCase())]=be.headers[De]}),(be.meta||Object.keys(be.headers).find(function(De){return ae.includes(De.toLowerCase())}))&&(be.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(be.meta,be.headers),Se=this._getSourceName(Se,we),be.versionId&&(Se="".concat(Se,"?versionId=").concat(be.versionId)),be.headers["x-oss-copy-source"]=Se,Me=this._objectRequestParams("PUT",xe,be),Me.xmlResponse=!0,Me.successStatuses=[200,304],Te.next=14,this.request(Me);case 14:return Le=Te.sent,Ce=Le.data,Ce&&(Ce={etag:Ce.ETag,lastModified:Ce.LastModified}),Te.abrupt("return",{data:Ce,res:Le.res});case 18:case"end":return Te.stop()}},he,this)}));function de(he,xe,Se,we){return ue.apply(this,arguments)}return de}(),ne._getSourceName=function(de,he){return typeof he=="string"?de=this._objectName(de):de[0]!=="/"?he=this.options.bucket:(he=de.replace(/\/(.+?)(\/.*)/,"$1"),de=de.replace(/(\/.+?\/)(.*)/,"$2")),pe(he),de=encodeURIComponent(de),de="/".concat(he,"/").concat(de),de}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=me;oe.delete=function(){var se=(0,ie.default)(z.default.mark(function ne(ae){var ue,de,he,xe=arguments;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ue=xe.length>1&&xe[1]!==void 0?xe[1]:{},ue.subres=Object.assign({},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),de=this._objectRequestParams("DELETE",ae,ue),de.successStatuses=[204],we.next=7,this.request(de);case 7:return he=we.sent,we.abrupt("return",{res:he.res});case 9:case"end":return we.stop()}},ne,this)}));function pe(ne){return se.apply(this,arguments)}return pe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("utility"),se=x("../utils/obj2xml"),pe=se.obj2xml,ne=me;ne.deleteMulti=function(){var ae=(0,ie.default)(z.default.mark(function de(he){var xe,Se,we,be,Me,Le,Ce,Ne,Te,De,Ee,Pe,Be,Ve=arguments;return z.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(xe=Ve.length>1&&Ve[1]!==void 0?Ve[1]:{},Se=[],!(!he||!he.length)){Ze.next=4;break}throw new Error("names is required");case 4:for(we=0;we<he.length;we++)be={},typeof he[we]=="string"?be.Key=oe.escape(this._objectName(he[we])):(Me=he[we],Le=Me.key,Ce=Me.versionId,be.Key=oe.escape(this._objectName(Le)),be.VersionId=Ce),Se.push(be);return Ne={Delete:{Quiet:!!xe.quiet,Object:Se}},Te=pe(Ne,{headers:!0}),xe.subres=Object.assign({delete:""},xe.subres),xe.versionId&&(xe.subres.versionId=xe.versionId),De=this._objectRequestParams("POST","",xe),De.mime="xml",De.content=Te,De.xmlResponse=!0,De.successStatuses=[200],Ze.next=16,this.request(De);case 16:return Ee=Ze.sent,Pe=Ee.data,Be=Pe&&Pe.Deleted||null,Be&&(Array.isArray(Be)||(Be=[Be])),Ze.abrupt("return",{res:Ee.res,deleted:Be||[]});case 21:case"end":return Ze.stop()}},de,this)}));function ue(de){return ae.apply(this,arguments)}return ue}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=me;oe.deleteObjectTagging=function(){var se=(0,ie.default)(z.default.mark(function ne(ae){var ue,de,he,xe=arguments;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ue=xe.length>1&&xe[1]!==void 0?xe[1]:{},ue.subres=Object.assign({tagging:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),ae=this._objectName(ae),de=this._objectRequestParams("DELETE",ae,ue),de.successStatuses=[204],we.next=8,this.request(de);case 8:return he=we.sent,we.abrupt("return",{status:he.status,res:he.res});case 10:case"end":return we.stop()}},ne,this)}));function pe(ne){return se.apply(this,arguments)}return pe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(x,Ae,me){"use strict";x("core-js/modules/es.array.concat.js");var re=x("url"),z=x("../utils/isIP"),ie=z.isIP,oe=me;oe.generateObjectUrl=function(pe,ne){if(ie(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(ne)ne[ne.length-1]!=="/"&&(ne+="/");else{ne=this.options.endpoint.format();var ae=re.parse(ne),ue=this.options.bucket;ae.hostname="".concat(ue,".").concat(ae.hostname),ae.host="".concat(ue,".").concat(ae.host),ne=ae.format()}return ne+this._escape(this._objectName(pe))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(x,Ae,me){(function(re){(function(){"use strict";var z=x("@babel/runtime/helpers/interopRequireDefault"),ie=z(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var oe=z(x("@babel/runtime/helpers/asyncToGenerator")),se=x("fs"),pe=x("is-type-of"),ne=me;ne.get=function(){var ae=(0,oe.default)(ie.default.mark(function de(he,xe){var Se,we,be,Me,Le,Ce,Ne,Te,De=arguments;return ie.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Se=De.length>2&&De[2]!==void 0?De[2]:{},we=null,be=!1,pe.writableStream(xe)?we=xe:pe.string(xe)?(we=se.createWriteStream(xe),be=!0):Se=xe,Se=Se||{},Me=re&&re.browser,Le=Se.responseCacheControl===null?"":"no-cache",Ce=Me&&Le?{"response-cache-control":Le}:{},Se.subres=Object.assign(Ce,Se.subres),Se.versionId&&(Se.subres.versionId=Se.versionId),Se.process&&(Se.subres["x-oss-process"]=Se.process),Pe.prev=11,Te=this._objectRequestParams("GET",he,Se),Te.writeStream=we,Te.successStatuses=[200,206,304],Pe.next=17,this.request(Te);case 17:Ne=Pe.sent,be&&we.destroy(),Pe.next=28;break;case 21:if(Pe.prev=21,Pe.t0=Pe.catch(11),!be){Pe.next=27;break}return we.destroy(),Pe.next=27,this._deleteFileSafe(xe);case 27:throw Pe.t0;case 28:return Pe.abrupt("return",{res:Ne.res,content:Ne.data});case 29:case"end":return Pe.stop()}},de,this,[[11,21]])}));function ue(de,he){return ae.apply(this,arguments)}return ue}()}).call(this)}).call(this,x("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=me;oe.getACL=function(){var se=(0,ie.default)(z.default.mark(function ne(ae){var ue,de,he,xe=arguments;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ue=xe.length>1&&xe[1]!==void 0?xe[1]:{},ue.subres=Object.assign({acl:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),ae=this._objectName(ae),de=this._objectRequestParams("GET",ae,ue),de.successStatuses=[200],de.xmlResponse=!0,we.next=9,this.request(de);case 9:return he=we.sent,we.abrupt("return",{acl:he.data.AccessControlList.Grant,owner:{id:he.data.Owner.ID,displayName:he.data.Owner.DisplayName},res:he.res});case 11:case"end":return we.stop()}},ne,this)}));function pe(ne){return se.apply(this,arguments)}return pe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.number.constructor.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=me,se=x("../utils/isObject"),pe=se.isObject,ne=x("../utils/isArray"),ae=ne.isArray;oe.getBucketVersions=ue,oe.listObjectVersions=ue;function ue(){return de.apply(this,arguments)}function de(){return de=(0,ie.default)(z.default.mark(function Se(){var we,be,Me,Le,Ce,Ne,Te,De,Ee=arguments;return z.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(we=Ee.length>0&&Ee[0]!==void 0?Ee[0]:{},be=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},!(we.versionIdMarker&&we.keyMarker===void 0)){Be.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return be.subres=Object.assign({versions:""},be.subres),be.versionId&&(be.subres.versionId=be.versionId),Me=this._objectRequestParams("GET","",be),Me.xmlResponse=!0,Me.successStatuses=[200],Me.query=xe(we),Be.next=12,this.request(Me);case 12:return Le=Be.sent,Ce=Le.data.Version||[],Ne=Le.data.DeleteMarker||[],Te=this,Ce&&(Array.isArray(Ce)||(Ce=[Ce]),Ce=Ce.map(function(Ve){return{name:Ve.Key,url:Te._objectUrl(Ve.Key),lastModified:Ve.LastModified,isLatest:Ve.IsLatest==="true",versionId:Ve.VersionId,etag:Ve.ETag,type:Ve.Type,size:Number(Ve.Size),storageClass:Ve.StorageClass,owner:{id:Ve.Owner.ID,displayName:Ve.Owner.DisplayName}}})),Ne&&(ae(Ne)||(Ne=[Ne]),Ne=Ne.map(function(Ve){return{name:Ve.Key,lastModified:Ve.LastModified,versionId:Ve.VersionId,owner:{id:Ve.Owner.ID,displayName:Ve.Owner.DisplayName}}})),De=Le.data.CommonPrefixes||null,De&&(ae(De)||(De=[De]),De=De.map(function(Ve){return Ve.Prefix})),Be.abrupt("return",{res:Le.res,objects:Ce,deleteMarker:Ne,prefixes:De,nextMarker:Le.data.NextKeyMarker||null,NextVersionIdMarker:Le.data.NextVersionIdMarker||null,nextKeyMarker:Le.data.NextKeyMarker||null,nextVersionIdMarker:Le.data.NextVersionIdMarker||null,isTruncated:Le.data.IsTruncated==="true"});case 21:case"end":return Be.stop()}},Se,this)})),de.apply(this,arguments)}function he(Se){return Se.replace(/([A-Z])/g,"-$1").toLowerCase()}function xe(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},we={};return pe(Se)&&Object.keys(Se).forEach(function(be){we[he(be)]=Se[be]}),we}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=me;oe.getObjectMeta=function(){var se=(0,ie.default)(z.default.mark(function ne(ae,ue){var de,he;return z.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return ue=ue||{},ae=this._objectName(ae),ue.subres=Object.assign({objectMeta:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),de=this._objectRequestParams("HEAD",ae,ue),de.successStatuses=[200],Se.next=8,this.request(de);case 8:return he=Se.sent,Se.abrupt("return",{status:he.status,res:he.res});case 10:case"end":return Se.stop()}},ne,this)}));function pe(ne,ae){return se.apply(this,arguments)}return pe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=me,se=x("../utils/isObject"),pe=se.isObject;oe.getObjectTagging=function(){var ne=(0,ie.default)(z.default.mark(function ue(de){var he,xe,Se,we,be,Me,Le=arguments;return z.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return he=Le.length>1&&Le[1]!==void 0?Le[1]:{},he.subres=Object.assign({tagging:""},he.subres),he.versionId&&(he.subres.versionId=he.versionId),de=this._objectName(de),xe=this._objectRequestParams("GET",de,he),xe.successStatuses=[200],Ne.next=8,this.request(xe);case 8:return Se=Ne.sent,Ne.next=11,this.parseXML(Se.data);case 11:return we=Ne.sent,be=we.TagSet.Tag,be=be&&pe(be)?[be]:be||[],Me={},be.forEach(function(Te){Me[Te.Key]=Te.Value}),Ne.abrupt("return",{status:Se.status,res:Se.res,tag:Me});case 17:case"end":return Ne.stop()}},ue,this)}));function ae(ue){return ne.apply(this,arguments)}return ae}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(x,Ae,me){"use strict";var re=x("../utils/isIP"),z=re.isIP,ie=me;ie.getObjectUrl=function(se,pe){if(z(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return pe?pe[pe.length-1]!=="/"&&(pe+="/"):pe=this.options.endpoint.format(),pe+this._escape(this._objectName(se))}},{"../utils/isIP":69}],43:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=me;oe.getSymlink=function(){var se=(0,ie.default)(z.default.mark(function ne(ae){var ue,de,he,xe,Se=arguments;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ue=Se.length>1&&Se[1]!==void 0?Se[1]:{},ue.subres=Object.assign({symlink:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),ae=this._objectName(ae),de=this._objectRequestParams("GET",ae,ue),de.successStatuses=[200],be.next=8,this.request(de);case 8:return he=be.sent,xe=he.res.headers["x-oss-symlink-target"],be.abrupt("return",{targetName:decodeURIComponent(xe),res:he.res});case 11:case"end":return be.stop()}},ne,this)}));function pe(ne){return se.apply(this,arguments)}return pe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkEnv"),se=oe.checkEnv,pe=me;pe.head=function(){var ne=(0,ie.default)(z.default.mark(function ue(de){var he,xe,Se,we,be=arguments;return z.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return he=be.length>1&&be[1]!==void 0?be[1]:{},se("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),he.subres=Object.assign({},he.subres),he.versionId&&(he.subres.versionId=he.versionId),xe=this._objectRequestParams("HEAD",de,he),xe.successStatuses=[200,304],Le.next=8,this.request(xe);case 8:return Se=Le.sent,we={meta:null,res:Se.res,status:Se.status},Se.status===200&&Object.keys(Se.headers).forEach(function(Ce){Ce.indexOf("x-oss-meta-")===0&&(we.meta||(we.meta={}),we.meta[Ce.substring(11)]=Se.headers[Ce])}),Le.abrupt("return",we);case 12:case"end":return Le.stop()}},ue,this)}));function ae(ue){return ne.apply(this,arguments)}return ae}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=me;oe.putACL=function(){var se=(0,ie.default)(z.default.mark(function ne(ae,ue,de){var he,xe;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return de=de||{},de.subres=Object.assign({acl:""},de.subres),de.versionId&&(de.subres.versionId=de.versionId),de.headers=de.headers||{},de.headers["x-oss-object-acl"]=ue,ae=this._objectName(ae),he=this._objectRequestParams("PUT",ae,de),he.successStatuses=[200],we.next=10,this.request(he);case 10:return xe=we.sent,we.abrupt("return",{res:xe.res});case 12:case"end":return we.stop()}},ne,this)}));function pe(ne,ae,ue){return se.apply(this,arguments)}return pe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.object.keys.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/obj2xml"),se=oe.obj2xml,pe=x("../utils/checkObjectTag"),ne=pe.checkObjectTag,ae=me;ae.putObjectTagging=function(){var ue=(0,ie.default)(z.default.mark(function he(xe,Se){var we,be,Me,Le,Ce=arguments;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return we=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},ne(Se),we.subres=Object.assign({tagging:""},we.subres),we.versionId&&(we.subres.versionId=we.versionId),xe=this._objectName(xe),be=this._objectRequestParams("PUT",xe,we),be.successStatuses=[200],Se=Object.keys(Se).map(function(De){return{Key:De,Value:Se[De]}}),Me={Tagging:{TagSet:{Tag:Se}}},be.mime="xml",be.content=se(Me),Te.next=13,this.request(be);case 13:return Le=Te.sent,Te.abrupt("return",{res:Le.res,status:Le.status});case 15:case"end":return Te.stop()}},he,this)}));function de(he,xe){return ue.apply(this,arguments)}return de}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=me;oe.putSymlink=function(){var se=(0,ie.default)(z.default.mark(function ne(ae,ue,de){var he,xe;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return de=de||{},de.headers=de.headers||{},ue=this._escape(this._objectName(ue)),this._convertMetaToHeaders(de.meta,de.headers),de.headers["x-oss-symlink-target"]=ue,de.subres=Object.assign({symlink:""},de.subres),de.versionId&&(de.subres.versionId=de.versionId),de.storageClass&&(de.headers["x-oss-storage-class"]=de.storageClass),ae=this._objectName(ae),he=this._objectRequestParams("PUT",ae,de),he.successStatuses=[200],we.next=13,this.request(he);case 13:return xe=we.sent,we.abrupt("return",{res:xe.res});case 15:case"end":return we.stop()}},ne,this)}));function pe(ne,ae,ue){return se.apply(this,arguments)}return pe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(x,Ae,me){"use strict";var re=x("url"),z=x("utility"),ie=x("copy-to"),oe=x("../../common/signUtils"),se=x("../utils/isIP"),pe=se.isIP,ne=me;ne.signatureUrl=function(ue,de){if(pe(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");de=de||{},ue=this._objectName(ue),de.method=de.method||"GET";var he=z.timestamp()+(de.expires||1800),xe={bucket:this.options.bucket,object:ue},Se=this._getResource(xe);this.options.stsToken&&(de["security-token"]=this.options.stsToken);var we=oe._signatureForURL(this.options.accessKeySecret,de,Se,he),be=re.parse(this._getReqUrl(xe));return be.query={OSSAccessKeyId:this.options.accessKeyId,Expires:he,Signature:we.Signature},ie(we.subResource).to(be.query),be.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.iterator.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/web.dom-collections.iterator.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.function.name.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("./utils/isArray"),se=oe.isArray,pe=me;pe._parallelNode=function(){var ne=(0,ie.default)(z.default.mark(function ue(de,he,xe,Se){var we,be,Me,Le,Ce,Ne,Te,De;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:we=this,be=[],Me=[],Le=de.length/he,Ce=de.length%he,Ne=Ce===0?Le:(de.length-Ce)/he+1,Te=1,De=0;case 8:if(!(De<de.length)){Pe.next=26;break}if(!we.isCancel()){Pe.next=11;break}return Pe.abrupt("break",26);case 11:if(Se?Me.push(xe(we,de[De],Se)):Me.push(xe(we,de[De])),!(Me.length===he||Te===Ne&&De===de.length-1)){Pe.next=23;break}return Pe.prev=13,Te+=1,Pe.next=17,Promise.all(Me);case 17:Pe.next=22;break;case 19:Pe.prev=19,Pe.t0=Pe.catch(13),be.push(Pe.t0);case 22:Me=[];case 23:De++,Pe.next=8;break;case 26:return Pe.abrupt("return",be);case 27:case"end":return Pe.stop()}},ue,this,[[13,19]])}));function ae(ue,de,he,xe){return ne.apply(this,arguments)}return ae}(),pe._parallel=function(ae,ue,de){var he=this;return new Promise(function(xe){var Se=[];if(ue<=0||!ae){xe(Se);return}function we(Pe){return function(){if(Pe===null)throw new Error("Callback was already called.");var Be=Pe;Pe=null;for(var Ve=arguments.length,Ie=new Array(Ve),Ze=0;Ze<Ve;Ze++)Ie[Ze]=arguments[Ze];Be.apply(this,Ie)}}function be(Pe){var Be=-1,Ve=Pe.length;return function(){return++Be<Ve&&!he.isCancel()?{value:Pe[Be],key:Be}:null}}var Me=be(ae),Le=!1,Ce=0,Ne=!1;function Te(Pe){Ce-=1,Pe?(Le=!0,Se.push(Pe),xe(Se)):Le&&Ce<=0?(Le=!0,xe(Se)):Ne||(he.isCancel()?xe(Se):Ee())}function De(Pe,Be){de(Pe).then(function(Ve){Be(null,Ve)}).catch(function(Ve){Be(Ve)})}function Ee(){for(Ne=!0;Ce<ue&&!Le&&!he.isCancel();){var Pe=Me();if(Pe===null||Se.length>0){Le=!0,Ce<=0&&xe(Se);return}Ce+=1,De(Pe.value,we(Te))}Ne=!1}Ee()})},pe.cancel=function(ae){this.options.cancelFlag=!0,se(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(ue){if(ue.destroyed===!1){var de={name:"cancel",message:"cancel"};ue.destroy(de)}}),this.multipartUploadStreams=[],ae&&this.abortMultipartUpload(ae.name,ae.uploadId,ae.options)},pe.isCancel=function(){return this.options.cancelFlag},pe.resetCancelFlag=function(){this.options.cancelFlag=!1},pe._stop=function(){this.options.cancelFlag=!0},pe._makeCancelEvent=function(){var ae={status:0,name:"cancel"};return ae},pe._makeAbortEvent=function(){var ae={status:0,name:"abort",message:"upload task has been abort"};return ae}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(x,Ae,me){(function(re){(function(){"use strict";x("core-js/modules/es.string.trim.js"),x("core-js/modules/es.array.sort.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.to-string.js");var z=x("./../../shims/crypto/crypto.js"),ie=x("is-type-of"),oe=x("./utils/lowercaseKeyHeader"),se=oe.lowercaseKeyHeader;me.buildCanonicalizedResource=function(ne,ae){var ue="".concat(ne),de="?";if(ie.string(ae)&&ae.trim()!=="")ue+=de+ae;else if(ie.array(ae))ae.sort(),ue+=de+ae.join("&");else if(ae){var he=function(we,be){return we[0]>be[0]?1:we[0]<be[0]?-1:0},xe=function(we){ue+=de+we,(ae[we]||ae[we]===0)&&(ue+="=".concat(ae[we])),de="&"};Object.keys(ae).sort(he).forEach(xe)}return ue},me.buildCanonicalString=function(ne,ae,ue,de){ue=ue||{};var he=se(ue.headers),xe="x-oss-",Se=[],we={},be=[ne.toUpperCase(),he["content-md5"]||"",he["content-type"],de||he["x-oss-date"]];return Object.keys(he).forEach(function(Me){var Le=Me.toLowerCase();Le.indexOf(xe)===0&&(we[Le]=String(he[Me]).trim())}),Object.keys(we).sort().forEach(function(Me){Se.push("".concat(Me,":").concat(we[Me]))}),be=be.concat(Se),be.push(this.buildCanonicalizedResource(ae,ue.parameters)),be.join(`
|
|
|
`)},me.computeSignature=function(ne,ae){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",de=z.createHmac("sha1",ne);return de.update(re.from(ae,ue)).digest("base64")},me.authorization=function(ne,ae,ue,de){return"OSS ".concat(ne,":").concat(this.computeSignature(ae,ue,de))},me._signatureForURL=function(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=arguments.length>2?arguments[2]:void 0,de=arguments.length>3?arguments[3]:void 0,he=arguments.length>4?arguments[4]:void 0,xe={},Se=ae.subResource,we=Se===void 0?{}:Se;if(ae.process){var be="x-oss-process";we[be]=ae.process}if(ae.trafficLimit){var Me="x-oss-traffic-limit";we[Me]=ae.trafficLimit}if(ae.response&&Object.keys(ae.response).forEach(function(Te){var De="response-".concat(Te.toLowerCase());we[De]=ae.response[Te]}),Object.keys(ae).forEach(function(Te){var De=Te.toLowerCase(),Ee=ae[Te];De.indexOf("x-oss-")===0?xe[De]=Ee:(De.indexOf("content-md5")===0||De.indexOf("content-type")===0)&&(xe[Te]=Ee)}),Object.prototype.hasOwnProperty.call(ae,"security-token")&&(we["security-token"]=ae["security-token"]),Object.prototype.hasOwnProperty.call(ae,"callback")){var Le={callbackUrl:encodeURI(ae.callback.url),callbackBody:ae.callback.body};if(ae.callback.host&&(Le.callbackHost=ae.callback.host),ae.callback.contentType&&(Le.callbackBodyType=ae.callback.contentType),we.callback=re.from(JSON.stringify(Le)).toString("base64"),ae.callback.customValue){var Ce={};Object.keys(ae.callback.customValue).forEach(function(Te){Ce["x:".concat(Te)]=ae.callback.customValue[Te]}),we["callback-var"]=re.from(JSON.stringify(Ce)).toString("base64")}}var Ne=this.buildCanonicalString(ae.method,ue,{headers:xe,parameters:we},de.toString());return{Signature:this.computeSignature(ne,Ne,he),subResource:we}}}).call(this)}).call(this,x("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(x,Ae,me){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.checkBucketName=void 0,me.checkBucketName=function(re){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=z?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!ie.test(re))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(x,Ae,me){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.checkConfigValid=void 0;var re={endpoint:z,region:/^[a-zA-Z0-9\-_]+$/};function z(ie){return typeof ie=="string"?/^[a-zA-Z0-9._:/-]+$/.test(ie):ie.host?/^[a-zA-Z0-9._:/-]+$/.test(ie.host):!1}me.checkConfigValid=function(ie,oe){if(re[oe]){var se=!0;if(re[oe]instanceof Function?se=re[oe](ie):se=re[oe].test(ie),!se)throw new Error("The ".concat(oe," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(x,Ae,me){(function(re){(function(){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.checkEnv=void 0;function z(ie){re.browser&&console.warn(ie)}me.checkEnv=z}).call(this)}).call(this,x("_process"))},{_process:467}],54:[function(x,Ae,me){"use strict";x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.object.entries.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.checkObjectTag=void 0;var re=x("./checkValid"),z=re.checkValid,ie=x("./isObject"),oe=ie.isObject,se=[{validator:function(ue){if(typeof ue!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],pe={key:[].concat(se,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(se,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function ne(ae){if(!oe(ae))throw new Error("tag must be Object");var ue=Object.entries(ae);if(ue.length>10)throw new Error("maximum of 10 tags for a object");var de=["key","value"];ue.forEach(function(he){he.forEach(function(xe,Se){z(xe,pe[de[Se]])})})}me.checkObjectTag=ne},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(x,Ae,me){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.checkValid=void 0;function re(z,ie){ie.forEach(function(oe){if(oe.validator)oe.validator(z);else if(oe.pattern&&!oe.pattern.test(z))throw new Error(oe.msg)})}me.checkValid=re},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(x,Ae,me){(function(re){(function(){"use strict";x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.includes.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.concat.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.createRequest=void 0;var z=x("./../../../shims/crypto/crypto.js"),ie=x("debug")("ali-oss"),oe=x("mime"),se=x("dateformat"),pe=x("copy-to"),ne=x("path"),ae=x("./encoder"),ue=ae.encoder,de=x("./isIP"),he=de.isIP,xe=x("./setRegion"),Se=xe.setRegion,we=x("../client/getReqUrl"),be=we.getReqUrl,Me=x("./isDingTalk"),Le=Me.isDingTalk;function Ce(De,Ee){return De[Ee]||De[Ee.toLowerCase()]}function Ne(De,Ee){delete De[Ee],delete De[Ee.toLowerCase()]}function Te(De){var Ee=new Date;this.options.amendTimeSkewed&&(Ee=+new Date+this.options.amendTimeSkewed);var Pe={"x-oss-date":se(Ee,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Pe["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Pe["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Pe,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Pe["x-oss-security-token"]=this.options.stsToken),pe(De.headers).to(Pe),Ce(Pe,"Content-Type")||(De.mime&&De.mime.indexOf("/")>0?Pe["Content-Type"]=De.mime:Le()?Pe["Content-Type"]="application/octet-stream":Pe["Content-Type"]=oe.getType(De.mime||ne.extname(De.object||""))),Ce(Pe,"Content-Type")||Ne(Pe,"Content-Type"),De.content&&(De.disabledMD5||(!De.headers||!De.headers["Content-MD5"]?Pe["Content-MD5"]=z.createHash("md5").update(re.from(De.content,"utf8")).digest("base64"):Pe["Content-MD5"]=De.headers["Content-MD5"]),Pe["Content-Length"]||(Pe["Content-Length"]=De.content.length));var Be=Object.prototype.hasOwnProperty;for(var Ve in Pe)Pe[Ve]&&Be.call(Pe,Ve)&&(Pe[Ve]=ue(String(Pe[Ve]),this.options.headerEncoding));var Ie=this._getResource(De);if(Pe.authorization=this.authorization(De.method,Ie,De.subres,Pe,this.options.headerEncoding),he(this.options.endpoint.hostname)){var Ze=this.options,Qe=Ze.region,tt=Ze.internal,it=Ze.secure,ht=Se(Qe,tt,it);Pe.host="".concat(De.bucket,".").concat(ht.host)}var Ge=be.bind(this)(De);ie("request %s %s, with headers %j, !!stream: %s",De.method,Ge,Pe,!!De.stream);var Xe=De.timeout||this.options.timeout,ct={method:De.method,content:De.content,stream:De.stream,headers:Pe,timeout:Xe,writeStream:De.writeStream,customResponse:De.customResponse,ctx:De.ctx||this.ctx};return this.agent&&(ct.agent=this.agent),this.httpsAgent&&(ct.httpsAgent=this.httpsAgent),ct.enableProxy=!!this.options.enableProxy,ct.proxy=this.options.proxy?this.options.proxy:null,{url:Ge,params:ct}}me.createRequest=Te}).call(this)}).call(this,x("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(x,Ae,me){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.entries.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.object.keys.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.dataFix=void 0;var re=x("./isObject"),z=["true","TRUE","1",1],ie=["false","FALSE","0",0];function oe(ne,ae,ue){if(re.isObject(ne)){var de=ae.remove,he=de===void 0?[]:de,xe=ae.rename,Se=xe===void 0?{}:xe,we=ae.camel,be=we===void 0?[]:we,Me=ae.bool,Le=Me===void 0?[]:Me,Ce=ae.lowerFirst,Ne=Ce===void 0?!1:Ce;return he.forEach(function(Te){return delete ne[Te]}),Object.entries(Se).forEach(function(Te){ne[Te[0]]&&(ne[Te[1]]||(ne[Te[1]]=ne[Te[0]],delete ne[Te[0]]))}),be.forEach(function(Te){if(ne[Te]){var De=Te.replace(/^(.)/,function(Ee){return Ee.toLowerCase()}).replace(/-(\w)/g,function(Ee,Pe){return Pe.toUpperCase()});ne[De]||(ne[De]=ne[Te])}}),Le.forEach(function(Te){ne[Te]=se(ne[Te])}),typeof ue=="function"&&ue(ne),pe(ne,Ne),oe}}me.dataFix=oe;function se(ne){return ne?z.includes(ne)?!0:ie.includes(ne)?!1:ne:!1}function pe(ne,ae){ae&&Object.keys(ne).forEach(function(ue){var de=ue.replace(/^\w/,function(he){return he.toLowerCase()});typeof ne[de]=="undefined"&&(ne[de]=ne[ue],delete ne[ue])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault");x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js");var z=re(x("@babel/runtime/helpers/typeof"));Object.defineProperty(me,"__esModule",{value:!0}),me.deepCopyWith=me.deepCopy=void 0;var ie=x("./isBuffer");me.deepCopy=function(oe){if(oe===null||(0,z.default)(oe)!=="object")return oe;if(ie.isBuffer(oe))return oe.slice();var se=Array.isArray(oe)?[]:{};return Object.keys(oe).forEach(function(pe){se[pe]=me.deepCopy(oe[pe])}),se},me.deepCopyWith=function(oe,se){function pe(ne,ae,ue){var de=se(ne,ae,ue);if(de!==void 0)return de;if(ne===null||(0,z.default)(ne)!=="object")return ne;if(ie.isBuffer(ne))return ne.slice();var he=Array.isArray(ne)?[]:{};return Object.keys(ne).forEach(function(xe){he[xe]=pe(ne[xe],xe,ne)}),he}return se?pe(oe,"",null):me.deepCopy(oe)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(x,Ae,me){(function(re){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.encoder=void 0;function z(ie){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return oe==="utf-8"?ie:re.from(ie).toString("latin1")}me.encoder=z}).call(this)}).call(this,x("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(x,Ae,me){"use strict";x("core-js/modules/es.array.map.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.formatInventoryConfig=void 0;var re=x("../utils/dataFix"),z=x("../utils/isObject"),ie=x("../utils/isArray"),oe=x("../utils/formatObjKey");function se(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ae&&z.isObject(ne)&&(ne=[ne]),ie.isArray(ne)?ne=ne.map(pe):ne=pe(ne),ne}me.formatInventoryConfig=se;function pe(ne){return re.dataFix(ne,{bool:["IsEnabled"]},function(ae){var ue,de;ae.prefix=ae.Filter.Prefix,delete ae.Filter,ae.OSSBucketDestination=ae.Destination.OSSBucketDestination,ae.OSSBucketDestination.rolename=ae.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete ae.OSSBucketDestination.RoleArn,ae.OSSBucketDestination.bucket=ae.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete ae.OSSBucketDestination.Bucket,delete ae.Destination,ae.frequency=ae.Schedule.Frequency,delete ae.Schedule.Frequency,!((ue=ae==null?void 0:ae.OptionalFields)===null||ue===void 0)&&ue.Field&&!ie.isArray((de=ae.OptionalFields)===null||de===void 0?void 0:de.Field)&&(ae.OptionalFields.Field=[ae.OptionalFields.Field])}),ne=oe.formatObjKey(ne,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),ne}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault");x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.includes.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js");var z=re(x("@babel/runtime/helpers/typeof"));Object.defineProperty(me,"__esModule",{value:!0}),me.formatObjKey=void 0;function ie(se,pe,ne){if(se===null||(0,z.default)(se)!=="object")return se;var ae;if(Array.isArray(se)){ae=[];for(var ue=0;ue<se.length;ue++)ae.push(ie(se[ue],pe,ne))}else ae={},Object.keys(se).forEach(function(de){ae[oe(de,pe,ne)]=ie(se[de],pe,ne)});return ae}me.formatObjKey=ie;function oe(se,pe,ne){return ne&&ne.exclude&&ne.exclude.includes(se)||(pe==="firstUpperCase"?se=se.replace(/^./,function(ae){return ae.toUpperCase()}):pe==="firstLowerCase"&&(se=se.replace(/^./,function(ae){return ae.toLowerCase()}))),se}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(x,Ae,me){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.getStrBytesCount=void 0;function re(z){for(var ie=0,oe=0;oe<z.length;oe++){var se=z.charAt(oe);/^[\u00-\uff]$/.test(se)?ie+=1:ie+=2}return ie}me.getStrBytesCount=re},{"core-js/modules/es.regexp.exec.js":300}],63:[function(x,Ae,me){"use strict";x("core-js/modules/es.object.to-string.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.isArray=void 0,me.isArray=function(re){return Object.prototype.toString.call(re)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(x,Ae,me){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.isBlob=void 0;function re(z){return typeof Blob!="undefined"&&z instanceof Blob}me.isBlob=re},{}],65:[function(x,Ae,me){(function(re){(function(){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.isBuffer=void 0;function z(ie){return re.isBuffer(ie)}me.isBuffer=z}).call(this)}).call(this,{isBuffer:x("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(x,Ae,me){(function(re){(function(){"use strict";x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.includes.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.isDingTalk=void 0;function z(){return!!(re.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}me.isDingTalk=z}).call(this)}).call(this,x("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(x,Ae,me){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.isFile=void 0,me.isFile=function(re){return typeof File!="undefined"&&re instanceof File}},{}],68:[function(x,Ae,me){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.isFunction=void 0,me.isFunction=function(re){return typeof re=="function"}},{}],69:[function(x,Ae,me){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.isIP=void 0,me.isIP=function(re){var z=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,ie=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return z.test(re)||ie.test(re)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(x,Ae,me){"use strict";x("core-js/modules/es.object.to-string.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.isObject=void 0,me.isObject=function(re){return Object.prototype.toString.call(re)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(x,Ae,me){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.lowercaseKeyHeader=void 0;var re=x("./isObject");function z(ie){var oe={};return re.isObject(ie)&&Object.keys(ie).forEach(function(se){oe[se.toLowerCase()]=ie[se]}),oe}me.lowercaseKeyHeader=z},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(x,Ae,me){"use strict";x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.obj2xml=void 0;var re=x("./formatObjKey");function z(oe){return Object.prototype.toString.call(oe).replace(/(.*? |])/g,"").toLowerCase()}function ie(oe,se){var pe="";return se&&se.headers&&(pe=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),se&&se.firstUpperCase&&(oe=re.formatObjKey(oe,"firstUpperCase")),z(oe)==="object"?Object.keys(oe).forEach(function(ne){z(oe[ne])!=="undefined"&&z(oe[ne])!=="null"&&(z(oe[ne])==="string"||z(oe[ne])==="number"?pe+="<".concat(ne,">").concat(oe[ne],"</").concat(ne,">"):z(oe[ne])==="object"?pe+="<".concat(ne,">").concat(ie(oe[ne]),"</").concat(ne,">"):z(oe[ne])==="array"?pe+=oe[ne].map(function(ae){return"<".concat(ne,">").concat(ie(ae),"</").concat(ne,">")}).join(""):pe+="<".concat(ne,">").concat(oe[ne].toString(),"</").concat(ne,">"))}):pe+=oe.toString(),pe}me.obj2xml=ie},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(x,Ae,me){"use strict";x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.array.from.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.symbol.js"),x("core-js/modules/es.symbol.description.js"),x("core-js/modules/es.symbol.iterator.js"),x("core-js/modules/es.array.iterator.js"),x("core-js/modules/web.dom-collections.iterator.js"),x("core-js/modules/es.object.assign.js");function re(se,pe){var ne=typeof Symbol!="undefined"&&se[Symbol.iterator]||se["@@iterator"];if(!ne){if(Array.isArray(se)||(ne=z(se))||pe&&se&&typeof se.length=="number"){ne&&(se=ne);var ae=0,ue=function(){};return{s:ue,n:function(){return ae>=se.length?{done:!0}:{done:!1,value:se[ae++]}},e:function(we){throw we},f:ue}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var de=!0,he=!1,xe;return{s:function(){ne=ne.call(se)},n:function(){var we=ne.next();return de=we.done,we},e:function(we){he=!0,xe=we},f:function(){try{!de&&ne.return!=null&&ne.return()}finally{if(he)throw xe}}}}function z(se,pe){if(se){if(typeof se=="string")return ie(se,pe);var ne=Object.prototype.toString.call(se).slice(8,-1);if(ne==="Object"&&se.constructor&&(ne=se.constructor.name),ne==="Map"||ne==="Set")return Array.from(se);if(ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return ie(se,pe)}}function ie(se,pe){(pe==null||pe>se.length)&&(pe=se.length);for(var ne=0,ae=new Array(pe);ne<pe;ne++)ae[ne]=se[ne];return ae}Object.defineProperty(me,"__esModule",{value:!0}),me.omit=void 0;function oe(se,pe){var ne=Object.assign({},se),ae=re(pe),ue;try{for(ae.s();!(ue=ae.n()).done;){var de=ue.value;delete ne[de]}}catch(he){ae.e(he)}finally{ae.f()}return ne}me.omit=oe},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(x,Ae,me){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),Object.defineProperty(me,"__esModule",{value:!0}),me.retry=void 0;function re(z,ie){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},se=0,pe=oe.retryDelay,ne=pe===void 0?500:pe,ae=oe.errorHandler,ue=ae===void 0?function(){return!0}:ae,de=function he(){for(var xe=arguments.length,Se=new Array(xe),we=0;we<xe;we++)Se[we]=arguments[we];return new Promise(function(be,Me){z.apply(void 0,Se).then(function(Le){se=0,be(Le)}).catch(function(Le){se<ie&&ue(Le)?(se++,setTimeout(function(){be(he.apply(void 0,Se))},ne)):(se=0,Me(Le))})})};return de}me.retry=re},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(x,Ae,me){"use strict";var re=function(se){return se&&se.__esModule?se:{default:se}};Object.defineProperty(me,"__esModule",{value:!0}),me.setRegion=void 0;var z=re(x("url")),ie=x("./checkConfigValid");function oe(se){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ie.checkConfigValid(se,"region");var ae=ne?"https://":"http://",ue=pe?"-internal.aliyuncs.com":".aliyuncs.com",de="vpc100-oss-cn-";return se.substr(0,de.length)===de&&(ue=".aliyuncs.com"),z.default.parse(ae+se+ue)}me.setRegion=oe},{"./checkConfigValid":52,url:472}],76:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(me,"__esModule",{value:!0}),me.checkCredentials=me.setSTSToken=void 0;var oe=x("./formatObjKey");function se(){return pe.apply(this,arguments)}function pe(){return pe=(0,ie.default)(z.default.mark(function ae(){var ue,de;return z.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(this.options||(this.options={}),ue=new Date,!this.stsTokenFreshTime){xe.next=14;break}if(!(+ue-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){xe.next=12;break}return this.stsTokenFreshTime=ue,xe.next=7,this.options.refreshSTSToken();case 7:de=xe.sent,de=oe.formatObjKey(de,"firstLowerCase"),de.securityToken&&(de.stsToken=de.securityToken),ne(de),Object.assign(this.options,de);case 12:xe.next=15;break;case 14:this.stsTokenFreshTime=ue;case 15:return xe.abrupt("return",null);case 16:case"end":return xe.stop()}},ae,this)})),pe.apply(this,arguments)}me.setSTSToken=se;function ne(ae){var ue=["accessKeySecret","accessKeyId","stsToken"],de=Object.keys(ae);ue.forEach(function(he){if(!de.find(function(xe){return xe===he}))throw Error("refreshSTSToken must return contains ".concat(he))})}me.checkCredentials=ne},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(x,Ae,me){function re(ie,oe,se,pe,ne,ae,ue){try{var de=ie[ae](ue),he=de.value}catch(xe){se(xe);return}de.done?oe(he):Promise.resolve(he).then(pe,ne)}function z(ie){return function(){var oe=this,se=arguments;return new Promise(function(pe,ne){var ae=ie.apply(oe,se);function ue(he){re(ae,pe,ne,ue,de,"next",he)}function de(he){re(ae,pe,ne,ue,de,"throw",he)}ue(void 0)})}}Ae.exports=z,Ae.exports.__esModule=!0,Ae.exports.default=Ae.exports},{}],78:[function(x,Ae,me){function re(z){return z&&z.__esModule?z:{default:z}}Ae.exports=re,Ae.exports.__esModule=!0,Ae.exports.default=Ae.exports},{}],79:[function(x,Ae,me){function re(z){"@babel/helpers - typeof";return Ae.exports=re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Ae.exports.__esModule=!0,Ae.exports.default=Ae.exports,re(z)}Ae.exports=re,Ae.exports.__esModule=!0,Ae.exports.default=Ae.exports},{}],80:[function(x,Ae,me){Ae.exports=x("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(x,Ae,me){Ae.exports=re,Ae.exports.HttpsAgent=re;function re(){}},{}],82:[function(x,Ae,me){(function(re){(function(){"use strict";var z=x("object-assign");function ie(Qe,tt){if(Qe===tt)return 0;for(var it=Qe.length,ht=tt.length,Ge=0,Xe=Math.min(it,ht);Ge<Xe;++Ge)if(Qe[Ge]!==tt[Ge]){it=Qe[Ge],ht=tt[Ge];break}return it<ht?-1:ht<it?1:0}function oe(Qe){return re.Buffer&&typeof re.Buffer.isBuffer=="function"?re.Buffer.isBuffer(Qe):!!(Qe!=null&&Qe._isBuffer)}var se=x("util/"),pe=Object.prototype.hasOwnProperty,ne=Array.prototype.slice,ae=function(){return function(){}.name==="foo"}();function ue(Qe){return Object.prototype.toString.call(Qe)}function de(Qe){return oe(Qe)||typeof re.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Qe):Qe?!!(Qe instanceof DataView||Qe.buffer&&Qe.buffer instanceof ArrayBuffer):!1}var he=Ae.exports=Ce,xe=/\s*function\s+([^\(\s]*)\s*/;function Se(Qe){if(se.isFunction(Qe)){if(ae)return Qe.name;var tt=Qe.toString(),it=tt.match(xe);return it&&it[1]}}he.AssertionError=function(tt){this.name="AssertionError",this.actual=tt.actual,this.expected=tt.expected,this.operator=tt.operator,tt.message?(this.message=tt.message,this.generatedMessage=!1):(this.message=Me(this),this.generatedMessage=!0);var it=tt.stackStartFunction||Le;if(Error.captureStackTrace)Error.captureStackTrace(this,it);else{var ht=new Error;if(ht.stack){var Ge=ht.stack,Xe=Se(it),ct=Ge.indexOf(`
|
|
|
`+Xe);if(ct>=0){var pt=Ge.indexOf(`
|
|
|
`,ct+1);Ge=Ge.substring(pt+1)}this.stack=Ge}}},se.inherits(he.AssertionError,Error);function we(Qe,tt){return typeof Qe=="string"?Qe.length<tt?Qe:Qe.slice(0,tt):Qe}function be(Qe){if(ae||!se.isFunction(Qe))return se.inspect(Qe);var tt=Se(Qe),it=tt?": "+tt:"";return"[Function"+it+"]"}function Me(Qe){return we(be(Qe.actual),128)+" "+Qe.operator+" "+we(be(Qe.expected),128)}function Le(Qe,tt,it,ht,Ge){throw new he.AssertionError({message:it,actual:Qe,expected:tt,operator:ht,stackStartFunction:Ge})}he.fail=Le;function Ce(Qe,tt){Qe||Le(Qe,!0,tt,"==",he.ok)}he.ok=Ce,he.equal=function(tt,it,ht){tt!=it&&Le(tt,it,ht,"==",he.equal)},he.notEqual=function(tt,it,ht){tt==it&&Le(tt,it,ht,"!=",he.notEqual)},he.deepEqual=function(tt,it,ht){Ne(tt,it,!1)||Le(tt,it,ht,"deepEqual",he.deepEqual)},he.deepStrictEqual=function(tt,it,ht){Ne(tt,it,!0)||Le(tt,it,ht,"deepStrictEqual",he.deepStrictEqual)};function Ne(Qe,tt,it,ht){if(Qe===tt)return!0;if(oe(Qe)&&oe(tt))return ie(Qe,tt)===0;if(se.isDate(Qe)&&se.isDate(tt))return Qe.getTime()===tt.getTime();if(se.isRegExp(Qe)&&se.isRegExp(tt))return Qe.source===tt.source&&Qe.global===tt.global&&Qe.multiline===tt.multiline&&Qe.lastIndex===tt.lastIndex&&Qe.ignoreCase===tt.ignoreCase;if((Qe===null||typeof Qe!="object")&&(tt===null||typeof tt!="object"))return it?Qe===tt:Qe==tt;if(de(Qe)&&de(tt)&&ue(Qe)===ue(tt)&&!(Qe instanceof Float32Array||Qe instanceof Float64Array))return ie(new Uint8Array(Qe.buffer),new Uint8Array(tt.buffer))===0;if(oe(Qe)!==oe(tt))return!1;ht=ht||{actual:[],expected:[]};var Ge=ht.actual.indexOf(Qe);return Ge!==-1&&Ge===ht.expected.indexOf(tt)?!0:(ht.actual.push(Qe),ht.expected.push(tt),De(Qe,tt,it,ht))}function Te(Qe){return Object.prototype.toString.call(Qe)=="[object Arguments]"}function De(Qe,tt,it,ht){if(Qe==null||tt===null||tt===void 0)return!1;if(se.isPrimitive(Qe)||se.isPrimitive(tt))return Qe===tt;if(it&&Object.getPrototypeOf(Qe)!==Object.getPrototypeOf(tt))return!1;var Ge=Te(Qe),Xe=Te(tt);if(Ge&&!Xe||!Ge&&Xe)return!1;if(Ge)return Qe=ne.call(Qe),tt=ne.call(tt),Ne(Qe,tt,it);var ct=Ze(Qe),pt=Ze(tt),ut,rt;if(ct.length!==pt.length)return!1;for(ct.sort(),pt.sort(),rt=ct.length-1;rt>=0;rt--)if(ct[rt]!==pt[rt])return!1;for(rt=ct.length-1;rt>=0;rt--)if(ut=ct[rt],!Ne(Qe[ut],tt[ut],it,ht))return!1;return!0}he.notDeepEqual=function(tt,it,ht){Ne(tt,it,!1)&&Le(tt,it,ht,"notDeepEqual",he.notDeepEqual)},he.notDeepStrictEqual=Ee;function Ee(Qe,tt,it){Ne(Qe,tt,!0)&&Le(Qe,tt,it,"notDeepStrictEqual",Ee)}he.strictEqual=function(tt,it,ht){tt!==it&&Le(tt,it,ht,"===",he.strictEqual)},he.notStrictEqual=function(tt,it,ht){tt===it&&Le(tt,it,ht,"!==",he.notStrictEqual)};function Pe(Qe,tt){if(!Qe||!tt)return!1;if(Object.prototype.toString.call(tt)=="[object RegExp]")return tt.test(Qe);try{if(Qe instanceof tt)return!0}catch(it){}return Error.isPrototypeOf(tt)?!1:tt.call({},Qe)===!0}function Be(Qe){var tt;try{Qe()}catch(it){tt=it}return tt}function Ve(Qe,tt,it,ht){var Ge;if(typeof tt!="function")throw new TypeError('"block" argument must be a function');typeof it=="string"&&(ht=it,it=null),Ge=Be(tt),ht=(it&&it.name?" ("+it.name+").":".")+(ht?" "+ht:"."),Qe&&!Ge&&Le(Ge,it,"Missing expected exception"+ht);var Xe=typeof ht=="string",ct=!Qe&&se.isError(Ge),pt=!Qe&&Ge&&!it;if((ct&&Xe&&Pe(Ge,it)||pt)&&Le(Ge,it,"Got unwanted exception"+ht),Qe&&Ge&&it&&!Pe(Ge,it)||!Qe&&Ge)throw Ge}he.throws=function(Qe,tt,it){Ve(!0,Qe,tt,it)},he.doesNotThrow=function(Qe,tt,it){Ve(!1,Qe,tt,it)},he.ifError=function(Qe){if(Qe)throw Qe};function Ie(Qe,tt){Qe||Le(Qe,!0,tt,"==",Ie)}he.strict=z(Ie,he,{equal:he.strictEqual,deepEqual:he.deepStrictEqual,notEqual:he.notStrictEqual,notDeepEqual:he.notDeepStrictEqual}),he.strict.strict=he.strict;var Ze=Object.keys||function(Qe){var tt=[];for(var it in Qe)pe.call(Qe,it)&&tt.push(it);return tt}}).call(this)}).call(this,typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(x,Ae,me){typeof Object.create=="function"?Ae.exports=function(z,ie){z.super_=ie,z.prototype=Object.create(ie.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}})}:Ae.exports=function(z,ie){z.super_=ie;var oe=function(){};oe.prototype=ie.prototype,z.prototype=new oe,z.prototype.constructor=z}},{}],84:[function(x,Ae,me){Ae.exports=function(z){return z&&typeof z=="object"&&typeof z.copy=="function"&&typeof z.fill=="function"&&typeof z.readUInt8=="function"}},{}],85:[function(x,Ae,me){(function(re,z){(function(){var ie=/%[sdj%]/g;me.format=function(pt){if(!De(pt)){for(var ut=[],rt=0;rt<arguments.length;rt++)ut.push(pe(arguments[rt]));return ut.join(" ")}for(var rt=1,qe=arguments,nt=qe.length,xt=String(pt).replace(ie,function(Rt){if(Rt==="%%")return"%";if(rt>=nt)return Rt;switch(Rt){case"%s":return String(qe[rt++]);case"%d":return Number(qe[rt++]);case"%j":try{return JSON.stringify(qe[rt++])}catch(Ot){return"[Circular]"}default:return Rt}}),yt=qe[rt];rt<nt;yt=qe[++rt])Ce(yt)||!Ve(yt)?xt+=" "+yt:xt+=" "+pe(yt);return xt},me.deprecate=function(pt,ut){if(Pe(z.process))return function(){return me.deprecate(pt,ut).apply(this,arguments)};if(re.noDeprecation===!0)return pt;var rt=!1;function qe(){if(!rt){if(re.throwDeprecation)throw new Error(ut);re.traceDeprecation?console.trace(ut):console.error(ut),rt=!0}return pt.apply(this,arguments)}return qe};var oe={},se;me.debuglog=function(pt){if(Pe(se)&&(se=re.env.NODE_DEBUG||""),pt=pt.toUpperCase(),!oe[pt])if(new RegExp("\\b"+pt+"\\b","i").test(se)){var ut=re.pid;oe[pt]=function(){var rt=me.format.apply(me,arguments);console.error("%s %d: %s",pt,ut,rt)}}else oe[pt]=function(){};return oe[pt]};function pe(pt,ut){var rt={seen:[],stylize:ae};return arguments.length>=3&&(rt.depth=arguments[2]),arguments.length>=4&&(rt.colors=arguments[3]),Le(ut)?rt.showHidden=ut:ut&&me._extend(rt,ut),Pe(rt.showHidden)&&(rt.showHidden=!1),Pe(rt.depth)&&(rt.depth=2),Pe(rt.colors)&&(rt.colors=!1),Pe(rt.customInspect)&&(rt.customInspect=!0),rt.colors&&(rt.stylize=ne),de(rt,pt,rt.depth)}me.inspect=pe,pe.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},pe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ne(pt,ut){var rt=pe.styles[ut];return rt?"\x1B["+pe.colors[rt][0]+"m"+pt+"\x1B["+pe.colors[rt][1]+"m":pt}function ae(pt,ut){return pt}function ue(pt){var ut={};return pt.forEach(function(rt,qe){ut[rt]=!0}),ut}function de(pt,ut,rt){if(pt.customInspect&&ut&&Qe(ut.inspect)&&ut.inspect!==me.inspect&&!(ut.constructor&&ut.constructor.prototype===ut)){var qe=ut.inspect(rt,pt);return De(qe)||(qe=de(pt,qe,rt)),qe}var nt=he(pt,ut);if(nt)return nt;var xt=Object.keys(ut),yt=ue(xt);if(pt.showHidden&&(xt=Object.getOwnPropertyNames(ut)),Ze(ut)&&(xt.indexOf("message")>=0||xt.indexOf("description")>=0))return xe(ut);if(xt.length===0){if(Qe(ut)){var Rt=ut.name?": "+ut.name:"";return pt.stylize("[Function"+Rt+"]","special")}if(Be(ut))return pt.stylize(RegExp.prototype.toString.call(ut),"regexp");if(Ie(ut))return pt.stylize(Date.prototype.toString.call(ut),"date");if(Ze(ut))return xe(ut)}var Ot="",lt=!1,Ue=["{","}"];if(Me(ut)&&(lt=!0,Ue=["[","]"]),Qe(ut)){var $e=ut.name?": "+ut.name:"";Ot=" [Function"+$e+"]"}if(Be(ut)&&(Ot=" "+RegExp.prototype.toString.call(ut)),Ie(ut)&&(Ot=" "+Date.prototype.toUTCString.call(ut)),Ze(ut)&&(Ot=" "+xe(ut)),xt.length===0&&(!lt||ut.length==0))return Ue[0]+Ot+Ue[1];if(rt<0)return Be(ut)?pt.stylize(RegExp.prototype.toString.call(ut),"regexp"):pt.stylize("[Object]","special");pt.seen.push(ut);var le;return lt?le=Se(pt,ut,rt,yt,xt):le=xt.map(function(fe){return we(pt,ut,rt,yt,fe,lt)}),pt.seen.pop(),be(le,Ot,Ue)}function he(pt,ut){if(Pe(ut))return pt.stylize("undefined","undefined");if(De(ut)){var rt="'"+JSON.stringify(ut).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return pt.stylize(rt,"string")}if(Te(ut))return pt.stylize(""+ut,"number");if(Le(ut))return pt.stylize(""+ut,"boolean");if(Ce(ut))return pt.stylize("null","null")}function xe(pt){return"["+Error.prototype.toString.call(pt)+"]"}function Se(pt,ut,rt,qe,nt){for(var xt=[],yt=0,Rt=ut.length;yt<Rt;++yt)ct(ut,String(yt))?xt.push(we(pt,ut,rt,qe,String(yt),!0)):xt.push("");return nt.forEach(function(Ot){Ot.match(/^\d+$/)||xt.push(we(pt,ut,rt,qe,Ot,!0))}),xt}function we(pt,ut,rt,qe,nt,xt){var yt,Rt,Ot;if(Ot=Object.getOwnPropertyDescriptor(ut,nt)||{value:ut[nt]},Ot.get?Ot.set?Rt=pt.stylize("[Getter/Setter]","special"):Rt=pt.stylize("[Getter]","special"):Ot.set&&(Rt=pt.stylize("[Setter]","special")),ct(qe,nt)||(yt="["+nt+"]"),Rt||(pt.seen.indexOf(Ot.value)<0?(Ce(rt)?Rt=de(pt,Ot.value,null):Rt=de(pt,Ot.value,rt-1),Rt.indexOf(`
|
|
|
`)>-1&&(xt?Rt=Rt.split(`
|
|
|
`).map(function(lt){return" "+lt}).join(`
|
|
|
`).substr(2):Rt=`
|
|
|
`+Rt.split(`
|
|
|
`).map(function(lt){return" "+lt}).join(`
|
|
|
`))):Rt=pt.stylize("[Circular]","special")),Pe(yt)){if(xt&&nt.match(/^\d+$/))return Rt;yt=JSON.stringify(""+nt),yt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(yt=yt.substr(1,yt.length-2),yt=pt.stylize(yt,"name")):(yt=yt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),yt=pt.stylize(yt,"string"))}return yt+": "+Rt}function be(pt,ut,rt){var qe=0,nt=pt.reduce(function(xt,yt){return qe++,yt.indexOf(`
|
|
|
`)>=0&&qe++,xt+yt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return nt>60?rt[0]+(ut===""?"":ut+`
|
|
|
`)+" "+pt.join(`,
|
|
|
`)+" "+rt[1]:rt[0]+ut+" "+pt.join(", ")+" "+rt[1]}function Me(pt){return Array.isArray(pt)}me.isArray=Me;function Le(pt){return typeof pt=="boolean"}me.isBoolean=Le;function Ce(pt){return pt===null}me.isNull=Ce;function Ne(pt){return pt==null}me.isNullOrUndefined=Ne;function Te(pt){return typeof pt=="number"}me.isNumber=Te;function De(pt){return typeof pt=="string"}me.isString=De;function Ee(pt){return typeof pt=="symbol"}me.isSymbol=Ee;function Pe(pt){return pt===void 0}me.isUndefined=Pe;function Be(pt){return Ve(pt)&&it(pt)==="[object RegExp]"}me.isRegExp=Be;function Ve(pt){return typeof pt=="object"&&pt!==null}me.isObject=Ve;function Ie(pt){return Ve(pt)&&it(pt)==="[object Date]"}me.isDate=Ie;function Ze(pt){return Ve(pt)&&(it(pt)==="[object Error]"||pt instanceof Error)}me.isError=Ze;function Qe(pt){return typeof pt=="function"}me.isFunction=Qe;function tt(pt){return pt===null||typeof pt=="boolean"||typeof pt=="number"||typeof pt=="string"||typeof pt=="symbol"||typeof pt=="undefined"}me.isPrimitive=tt,me.isBuffer=x("./support/isBuffer");function it(pt){return Object.prototype.toString.call(pt)}function ht(pt){return pt<10?"0"+pt.toString(10):pt.toString(10)}var Ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Xe(){var pt=new Date,ut=[ht(pt.getHours()),ht(pt.getMinutes()),ht(pt.getSeconds())].join(":");return[pt.getDate(),Ge[pt.getMonth()],ut].join(" ")}me.log=function(){console.log("%s - %s",Xe(),me.format.apply(me,arguments))},me.inherits=x("inherits"),me._extend=function(pt,ut){if(!ut||!Ve(ut))return pt;for(var rt=Object.keys(ut),qe=rt.length;qe--;)pt[rt[qe]]=ut[rt[qe]];return pt};function ct(pt,ut){return Object.prototype.hasOwnProperty.call(pt,ut)}}).call(this)}).call(this,x("_process"),typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(x,Ae,me){(function(re){(function(){"use strict";var z=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],ie=typeof globalThis=="undefined"?re:globalThis;Ae.exports=function(){for(var se=[],pe=0;pe<z.length;pe++)typeof ie[z[pe]]=="function"&&(se[se.length]=z[pe]);return se}}).call(this)}).call(this,typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(x,Ae,me){"use strict";me.byteLength=ae,me.toByteArray=de,me.fromByteArray=Se;for(var re=[],z=[],ie=typeof Uint8Array!="undefined"?Uint8Array:Array,oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",se=0,pe=oe.length;se<pe;++se)re[se]=oe[se],z[oe.charCodeAt(se)]=se;z[45]=62,z[95]=63;function ne(we){var be=we.length;if(be%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Me=we.indexOf("=");Me===-1&&(Me=be);var Le=Me===be?0:4-Me%4;return[Me,Le]}function ae(we){var be=ne(we),Me=be[0],Le=be[1];return(Me+Le)*3/4-Le}function ue(we,be,Me){return(be+Me)*3/4-Me}function de(we){var be,Me=ne(we),Le=Me[0],Ce=Me[1],Ne=new ie(ue(we,Le,Ce)),Te=0,De=Ce>0?Le-4:Le,Ee;for(Ee=0;Ee<De;Ee+=4)be=z[we.charCodeAt(Ee)]<<18|z[we.charCodeAt(Ee+1)]<<12|z[we.charCodeAt(Ee+2)]<<6|z[we.charCodeAt(Ee+3)],Ne[Te++]=be>>16&255,Ne[Te++]=be>>8&255,Ne[Te++]=be&255;return Ce===2&&(be=z[we.charCodeAt(Ee)]<<2|z[we.charCodeAt(Ee+1)]>>4,Ne[Te++]=be&255),Ce===1&&(be=z[we.charCodeAt(Ee)]<<10|z[we.charCodeAt(Ee+1)]<<4|z[we.charCodeAt(Ee+2)]>>2,Ne[Te++]=be>>8&255,Ne[Te++]=be&255),Ne}function he(we){return re[we>>18&63]+re[we>>12&63]+re[we>>6&63]+re[we&63]}function xe(we,be,Me){for(var Le,Ce=[],Ne=be;Ne<Me;Ne+=3)Le=(we[Ne]<<16&16711680)+(we[Ne+1]<<8&65280)+(we[Ne+2]&255),Ce.push(he(Le));return Ce.join("")}function Se(we){for(var be,Me=we.length,Le=Me%3,Ce=[],Ne=16383,Te=0,De=Me-Le;Te<De;Te+=Ne)Ce.push(xe(we,Te,Te+Ne>De?De:Te+Ne));return Le===1?(be=we[Me-1],Ce.push(re[be>>2]+re[be<<4&63]+"==")):Le===2&&(be=(we[Me-2]<<8)+we[Me-1],Ce.push(re[be>>10]+re[be>>4&63]+re[be<<2&63]+"=")),Ce.join("")}},{}],88:[function(x,Ae,me){(function(re,z,ie){typeof Ae!="undefined"&&Ae.exports?Ae.exports=ie():typeof ke=="function"&&ke.amd?ke(z,ie):re[z]=ie()})(this,"bowser",function(){var re=!0;function z(ue){function de(ut){var rt=ue.match(ut);return rt&&rt.length>1&&rt[1]||""}function he(ut){var rt=ue.match(ut);return rt&&rt.length>1&&rt[2]||""}var xe=de(/(ipod|iphone|ipad)/i).toLowerCase(),Se=/like android/i.test(ue),we=!Se&&/android/i.test(ue),be=/nexus\s*[0-6]\s*/i.test(ue),Me=!be&&/nexus\s*[0-9]+/i.test(ue),Le=/CrOS/.test(ue),Ce=/silk/i.test(ue),Ne=/sailfish/i.test(ue),Te=/tizen/i.test(ue),De=/(web|hpw)(o|0)s/i.test(ue),Ee=/windows phone/i.test(ue),Pe=/SamsungBrowser/i.test(ue),Be=!Ee&&/windows/i.test(ue),Ve=!xe&&!Ce&&/macintosh/i.test(ue),Ie=!we&&!Ne&&!Te&&!De&&/linux/i.test(ue),Ze=he(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Qe=de(/version\/(\d+(\.\d+)?)/i),tt=/tablet/i.test(ue)&&!/tablet pc/i.test(ue),it=!tt&&/[^-]mobi/i.test(ue),ht=/xbox/i.test(ue),Ge;/opera/i.test(ue)?Ge={name:"Opera",opera:re,version:Qe||de(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(ue)?Ge={name:"Opera",opera:re,version:de(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Qe}:/SamsungBrowser/i.test(ue)?Ge={name:"Samsung Internet for Android",samsungBrowser:re,version:Qe||de(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(ue)?Ge={name:"NAVER Whale browser",whale:re,version:de(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(ue)?Ge={name:"MZ Browser",mzbrowser:re,version:de(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(ue)?Ge={name:"Opera Coast",coast:re,version:Qe||de(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(ue)?Ge={name:"Focus",focus:re,version:de(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(ue)?Ge={name:"Yandex Browser",yandexbrowser:re,version:Qe||de(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(ue)?Ge={name:"UC Browser",ucbrowser:re,version:de(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(ue)?Ge={name:"Maxthon",maxthon:re,version:de(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(ue)?Ge={name:"Epiphany",epiphany:re,version:de(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(ue)?Ge={name:"Puffin",puffin:re,version:de(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(ue)?Ge={name:"Sleipnir",sleipnir:re,version:de(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(ue)?Ge={name:"K-Meleon",kMeleon:re,version:de(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Ee?(Ge={name:"Windows Phone",osname:"Windows Phone",windowsphone:re},Ze?(Ge.msedge=re,Ge.version=Ze):(Ge.msie=re,Ge.version=de(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(ue)?Ge={name:"Internet Explorer",msie:re,version:de(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Le?Ge={name:"Chrome",osname:"Chrome OS",chromeos:re,chromeBook:re,chrome:re,version:de(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(ue)?Ge={name:"Microsoft Edge",msedge:re,version:Ze}:/vivaldi/i.test(ue)?Ge={name:"Vivaldi",vivaldi:re,version:de(/vivaldi\/(\d+(\.\d+)?)/i)||Qe}:Ne?Ge={name:"Sailfish",osname:"Sailfish OS",sailfish:re,version:de(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(ue)?Ge={name:"SeaMonkey",seamonkey:re,version:de(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(ue)?(Ge={name:"Firefox",firefox:re,version:de(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ue)&&(Ge.firefoxos=re,Ge.osname="Firefox OS")):Ce?Ge={name:"Amazon Silk",silk:re,version:de(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(ue)?Ge={name:"PhantomJS",phantom:re,version:de(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(ue)?Ge={name:"SlimerJS",slimer:re,version:de(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(ue)||/rim\stablet/i.test(ue)?Ge={name:"BlackBerry",osname:"BlackBerry OS",blackberry:re,version:Qe||de(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:De?(Ge={name:"WebOS",osname:"WebOS",webos:re,version:Qe||de(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(ue)&&(Ge.touchpad=re)):/bada/i.test(ue)?Ge={name:"Bada",osname:"Bada",bada:re,version:de(/dolfin\/(\d+(\.\d+)?)/i)}:Te?Ge={name:"Tizen",osname:"Tizen",tizen:re,version:de(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Qe}:/qupzilla/i.test(ue)?Ge={name:"QupZilla",qupzilla:re,version:de(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Qe}:/chromium/i.test(ue)?Ge={name:"Chromium",chromium:re,version:de(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Qe}:/chrome|crios|crmo/i.test(ue)?Ge={name:"Chrome",chrome:re,version:de(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:we?Ge={name:"Android",version:Qe}:/safari|applewebkit/i.test(ue)?(Ge={name:"Safari",safari:re},Qe&&(Ge.version=Qe)):xe?(Ge={name:xe=="iphone"?"iPhone":xe=="ipad"?"iPad":"iPod"},Qe&&(Ge.version=Qe)):/googlebot/i.test(ue)?Ge={name:"Googlebot",googlebot:re,version:de(/googlebot\/(\d+(\.\d+))/i)||Qe}:Ge={name:de(/^(.*)\/(.*) /),version:he(/^(.*)\/(.*) /)},!Ge.msedge&&/(apple)?webkit/i.test(ue)?(/(apple)?webkit\/537\.36/i.test(ue)?(Ge.name=Ge.name||"Blink",Ge.blink=re):(Ge.name=Ge.name||"Webkit",Ge.webkit=re),!Ge.version&&Qe&&(Ge.version=Qe)):!Ge.opera&&/gecko\//i.test(ue)&&(Ge.name=Ge.name||"Gecko",Ge.gecko=re,Ge.version=Ge.version||de(/gecko\/(\d+(\.\d+)?)/i)),!Ge.windowsphone&&(we||Ge.silk)?(Ge.android=re,Ge.osname="Android"):!Ge.windowsphone&&xe?(Ge[xe]=re,Ge.ios=re,Ge.osname="iOS"):Ve?(Ge.mac=re,Ge.osname="macOS"):ht?(Ge.xbox=re,Ge.osname="Xbox"):Be?(Ge.windows=re,Ge.osname="Windows"):Ie&&(Ge.linux=re,Ge.osname="Linux");function Xe(ut){switch(ut){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var ct="";Ge.windows?ct=Xe(de(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Ge.windowsphone?ct=de(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Ge.mac?(ct=de(/Mac OS X (\d+([_\.\s]\d+)*)/i),ct=ct.replace(/[_\s]/g,".")):xe?(ct=de(/os (\d+([_\s]\d+)*) like mac os x/i),ct=ct.replace(/[_\s]/g,".")):we?ct=de(/android[ \/-](\d+(\.\d+)*)/i):Ge.webos?ct=de(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Ge.blackberry?ct=de(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Ge.bada?ct=de(/bada\/(\d+(\.\d+)*)/i):Ge.tizen&&(ct=de(/tizen[\/\s](\d+(\.\d+)*)/i)),ct&&(Ge.osversion=ct);var pt=!Ge.windows&&ct.split(".")[0];return tt||Me||xe=="ipad"||we&&(pt==3||pt>=4&&!it)||Ge.silk?Ge.tablet=re:(it||xe=="iphone"||xe=="ipod"||we||be||Ge.blackberry||Ge.webos||Ge.bada)&&(Ge.mobile=re),Ge.msedge||Ge.msie&&Ge.version>=10||Ge.yandexbrowser&&Ge.version>=15||Ge.vivaldi&&Ge.version>=1||Ge.chrome&&Ge.version>=20||Ge.samsungBrowser&&Ge.version>=4||Ge.whale&&pe([Ge.version,"1.0"])===1||Ge.mzbrowser&&pe([Ge.version,"6.0"])===1||Ge.focus&&pe([Ge.version,"1.0"])===1||Ge.firefox&&Ge.version>=20||Ge.safari&&Ge.version>=6||Ge.opera&&Ge.version>=10||Ge.ios&&Ge.osversion&&Ge.osversion.split(".")[0]>=6||Ge.blackberry&&Ge.version>=10.1||Ge.chromium&&Ge.version>=20?Ge.a=re:Ge.msie&&Ge.version<10||Ge.chrome&&Ge.version<20||Ge.firefox&&Ge.version<20||Ge.safari&&Ge.version<6||Ge.opera&&Ge.version<10||Ge.ios&&Ge.osversion&&Ge.osversion.split(".")[0]<6||Ge.chromium&&Ge.version<20?Ge.c=re:Ge.x=re,Ge}var ie=z(typeof navigator!="undefined"&&navigator.userAgent||"");ie.test=function(ue){for(var de=0;de<ue.length;++de){var he=ue[de];if(typeof he=="string"&&he in ie)return!0}return!1};function oe(ue){return ue.split(".").length}function se(ue,de){var he=[],xe;if(Array.prototype.map)return Array.prototype.map.call(ue,de);for(xe=0;xe<ue.length;xe++)he.push(de(ue[xe]));return he}function pe(ue){for(var de=Math.max(oe(ue[0]),oe(ue[1])),he=se(ue,function(xe){var Se=de-oe(xe);return xe=xe+new Array(Se+1).join(".0"),se(xe.split("."),function(we){return new Array(20-we.length).join("0")+we}).reverse()});--de>=0;){if(he[0][de]>he[1][de])return 1;if(he[0][de]===he[1][de]){if(de===0)return 0}else return-1}}function ne(ue,de,he){var xe=ie;typeof de=="string"&&(he=de,de=void 0),de===void 0&&(de=!1),he&&(xe=z(he));var Se=""+xe.version;for(var we in ue)if(ue.hasOwnProperty(we)&&xe[we]){if(typeof ue[we]!="string")throw new Error("Browser version in the minVersion map should be a string: "+we+": "+String(ue));return pe([Se,ue[we]])<0}return de}function ae(ue,de,he){return!ne(ue,de,he)}return ie.isUnsupportedBrowser=ne,ie.compareVersions=pe,ie.check=ae,ie._detect=z,ie.detect=z,ie})},{}],89:[function(x,Ae,me){},{}],90:[function(x,Ae,me){(function(re){(function(){"use strict";var z=x("base64-js"),ie=x("ieee754");me.Buffer=ne,me.SlowBuffer=Le,me.INSPECT_MAX_BYTES=50;var oe=2147483647;me.kMaxLength=oe,ne.TYPED_ARRAY_SUPPORT=se(),!ne.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function se(){try{var Re=new Uint8Array(1);return Re.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Re.foo()===42}catch(ze){return!1}}Object.defineProperty(ne.prototype,"parent",{enumerable:!0,get:function(){if(ne.isBuffer(this))return this.buffer}}),Object.defineProperty(ne.prototype,"offset",{enumerable:!0,get:function(){if(ne.isBuffer(this))return this.byteOffset}});function pe(Re){if(Re>oe)throw new RangeError('The value "'+Re+'" is invalid for option "size"');var ze=new Uint8Array(Re);return ze.__proto__=ne.prototype,ze}function ne(Re,ze,Ke){if(typeof Re=="number"){if(typeof ze=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return he(Re)}return ae(Re,ze,Ke)}typeof Symbol!="undefined"&&Symbol.species!=null&&ne[Symbol.species]===ne&&Object.defineProperty(ne,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),ne.poolSize=8192;function ae(Re,ze,Ke){if(typeof Re=="string")return xe(Re,ze);if(ArrayBuffer.isView(Re))return Se(Re);if(Re==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Re);if(He(Re,ArrayBuffer)||Re&&He(Re.buffer,ArrayBuffer))return we(Re,ze,Ke);if(typeof Re=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var We=Re.valueOf&&Re.valueOf();if(We!=null&&We!==Re)return ne.from(We,ze,Ke);var st=be(Re);if(st)return st;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Re[Symbol.toPrimitive]=="function")return ne.from(Re[Symbol.toPrimitive]("string"),ze,Ke);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Re)}ne.from=function(Re,ze,Ke){return ae(Re,ze,Ke)},ne.prototype.__proto__=Uint8Array.prototype,ne.__proto__=Uint8Array;function ue(Re){if(typeof Re!="number")throw new TypeError('"size" argument must be of type number');if(Re<0)throw new RangeError('The value "'+Re+'" is invalid for option "size"')}function de(Re,ze,Ke){return ue(Re),Re<=0?pe(Re):ze!==void 0?typeof Ke=="string"?pe(Re).fill(ze,Ke):pe(Re).fill(ze):pe(Re)}ne.alloc=function(Re,ze,Ke){return de(Re,ze,Ke)};function he(Re){return ue(Re),pe(Re<0?0:Me(Re)|0)}ne.allocUnsafe=function(Re){return he(Re)},ne.allocUnsafeSlow=function(Re){return he(Re)};function xe(Re,ze){if((typeof ze!="string"||ze==="")&&(ze="utf8"),!ne.isEncoding(ze))throw new TypeError("Unknown encoding: "+ze);var Ke=Ce(Re,ze)|0,We=pe(Ke),st=We.write(Re,ze);return st!==Ke&&(We=We.slice(0,st)),We}function Se(Re){for(var ze=Re.length<0?0:Me(Re.length)|0,Ke=pe(ze),We=0;We<ze;We+=1)Ke[We]=Re[We]&255;return Ke}function we(Re,ze,Ke){if(ze<0||Re.byteLength<ze)throw new RangeError('"offset" is outside of buffer bounds');if(Re.byteLength<ze+(Ke||0))throw new RangeError('"length" is outside of buffer bounds');var We;return ze===void 0&&Ke===void 0?We=new Uint8Array(Re):Ke===void 0?We=new Uint8Array(Re,ze):We=new Uint8Array(Re,ze,Ke),We.__proto__=ne.prototype,We}function be(Re){if(ne.isBuffer(Re)){var ze=Me(Re.length)|0,Ke=pe(ze);return Ke.length===0||Re.copy(Ke,0,0,ze),Ke}if(Re.length!==void 0)return typeof Re.length!="number"||ye(Re.length)?pe(0):Se(Re);if(Re.type==="Buffer"&&Array.isArray(Re.data))return Se(Re.data)}function Me(Re){if(Re>=oe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+oe.toString(16)+" bytes");return Re|0}function Le(Re){return+Re!=Re&&(Re=0),ne.alloc(+Re)}ne.isBuffer=function(ze){return ze!=null&&ze._isBuffer===!0&&ze!==ne.prototype},ne.compare=function(ze,Ke){if(He(ze,Uint8Array)&&(ze=ne.from(ze,ze.offset,ze.byteLength)),He(Ke,Uint8Array)&&(Ke=ne.from(Ke,Ke.offset,Ke.byteLength)),!ne.isBuffer(ze)||!ne.isBuffer(Ke))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ze===Ke)return 0;for(var We=ze.length,st=Ke.length,bt=0,at=Math.min(We,st);bt<at;++bt)if(ze[bt]!==Ke[bt]){We=ze[bt],st=Ke[bt];break}return We<st?-1:st<We?1:0},ne.isEncoding=function(ze){switch(String(ze).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ne.concat=function(ze,Ke){if(!Array.isArray(ze))throw new TypeError('"list" argument must be an Array of Buffers');if(ze.length===0)return ne.alloc(0);var We;if(Ke===void 0)for(Ke=0,We=0;We<ze.length;++We)Ke+=ze[We].length;var st=ne.allocUnsafe(Ke),bt=0;for(We=0;We<ze.length;++We){var at=ze[We];if(He(at,Uint8Array)&&(at=ne.from(at)),!ne.isBuffer(at))throw new TypeError('"list" argument must be an Array of Buffers');at.copy(st,bt),bt+=at.length}return st};function Ce(Re,ze){if(ne.isBuffer(Re))return Re.length;if(ArrayBuffer.isView(Re)||He(Re,ArrayBuffer))return Re.byteLength;if(typeof Re!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Re);var Ke=Re.length,We=arguments.length>2&&arguments[2]===!0;if(!We&&Ke===0)return 0;for(var st=!1;;)switch(ze){case"ascii":case"latin1":case"binary":return Ke;case"utf8":case"utf-8":return Ue(Re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ke*2;case"hex":return Ke>>>1;case"base64":return fe(Re).length;default:if(st)return We?-1:Ue(Re).length;ze=(""+ze).toLowerCase(),st=!0}}ne.byteLength=Ce;function Ne(Re,ze,Ke){var We=!1;if((ze===void 0||ze<0)&&(ze=0),ze>this.length||((Ke===void 0||Ke>this.length)&&(Ke=this.length),Ke<=0)||(Ke>>>=0,ze>>>=0,Ke<=ze))return"";for(Re||(Re="utf8");;)switch(Re){case"hex":return pt(this,ze,Ke);case"utf8":case"utf-8":return it(this,ze,Ke);case"ascii":return Xe(this,ze,Ke);case"latin1":case"binary":return ct(this,ze,Ke);case"base64":return tt(this,ze,Ke);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,ze,Ke);default:if(We)throw new TypeError("Unknown encoding: "+Re);Re=(Re+"").toLowerCase(),We=!0}}ne.prototype._isBuffer=!0;function Te(Re,ze,Ke){var We=Re[ze];Re[ze]=Re[Ke],Re[Ke]=We}ne.prototype.swap16=function(){var ze=this.length;if(ze%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ke=0;Ke<ze;Ke+=2)Te(this,Ke,Ke+1);return this},ne.prototype.swap32=function(){var ze=this.length;if(ze%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ke=0;Ke<ze;Ke+=4)Te(this,Ke,Ke+3),Te(this,Ke+1,Ke+2);return this},ne.prototype.swap64=function(){var ze=this.length;if(ze%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ke=0;Ke<ze;Ke+=8)Te(this,Ke,Ke+7),Te(this,Ke+1,Ke+6),Te(this,Ke+2,Ke+5),Te(this,Ke+3,Ke+4);return this},ne.prototype.toString=function(){var ze=this.length;return ze===0?"":arguments.length===0?it(this,0,ze):Ne.apply(this,arguments)},ne.prototype.toLocaleString=ne.prototype.toString,ne.prototype.equals=function(ze){if(!ne.isBuffer(ze))throw new TypeError("Argument must be a Buffer");return this===ze?!0:ne.compare(this,ze)===0},ne.prototype.inspect=function(){var ze="",Ke=me.INSPECT_MAX_BYTES;return ze=this.toString("hex",0,Ke).replace(/(.{2})/g,"$1 ").trim(),this.length>Ke&&(ze+=" ... "),"<Buffer "+ze+">"},ne.prototype.compare=function(ze,Ke,We,st,bt){if(He(ze,Uint8Array)&&(ze=ne.from(ze,ze.offset,ze.byteLength)),!ne.isBuffer(ze))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ze);if(Ke===void 0&&(Ke=0),We===void 0&&(We=ze?ze.length:0),st===void 0&&(st=0),bt===void 0&&(bt=this.length),Ke<0||We>ze.length||st<0||bt>this.length)throw new RangeError("out of range index");if(st>=bt&&Ke>=We)return 0;if(st>=bt)return-1;if(Ke>=We)return 1;if(Ke>>>=0,We>>>=0,st>>>=0,bt>>>=0,this===ze)return 0;for(var at=bt-st,kt=We-Ke,Ht=Math.min(at,kt),Ct=this.slice(st,bt),$t=ze.slice(Ke,We),Bt=0;Bt<Ht;++Bt)if(Ct[Bt]!==$t[Bt]){at=Ct[Bt],kt=$t[Bt];break}return at<kt?-1:kt<at?1:0};function De(Re,ze,Ke,We,st){if(Re.length===0)return-1;if(typeof Ke=="string"?(We=Ke,Ke=0):Ke>2147483647?Ke=2147483647:Ke<-2147483648&&(Ke=-2147483648),Ke=+Ke,ye(Ke)&&(Ke=st?0:Re.length-1),Ke<0&&(Ke=Re.length+Ke),Ke>=Re.length){if(st)return-1;Ke=Re.length-1}else if(Ke<0)if(st)Ke=0;else return-1;if(typeof ze=="string"&&(ze=ne.from(ze,We)),ne.isBuffer(ze))return ze.length===0?-1:Ee(Re,ze,Ke,We,st);if(typeof ze=="number")return ze=ze&255,typeof Uint8Array.prototype.indexOf=="function"?st?Uint8Array.prototype.indexOf.call(Re,ze,Ke):Uint8Array.prototype.lastIndexOf.call(Re,ze,Ke):Ee(Re,[ze],Ke,We,st);throw new TypeError("val must be string, number or Buffer")}function Ee(Re,ze,Ke,We,st){var bt=1,at=Re.length,kt=ze.length;if(We!==void 0&&(We=String(We).toLowerCase(),We==="ucs2"||We==="ucs-2"||We==="utf16le"||We==="utf-16le")){if(Re.length<2||ze.length<2)return-1;bt=2,at/=2,kt/=2,Ke/=2}function Ht(ft,dt){return bt===1?ft[dt]:ft.readUInt16BE(dt*bt)}var Ct;if(st){var $t=-1;for(Ct=Ke;Ct<at;Ct++)if(Ht(Re,Ct)===Ht(ze,$t===-1?0:Ct-$t)){if($t===-1&&($t=Ct),Ct-$t+1===kt)return $t*bt}else $t!==-1&&(Ct-=Ct-$t),$t=-1}else for(Ke+kt>at&&(Ke=at-kt),Ct=Ke;Ct>=0;Ct--){for(var Bt=!0,St=0;St<kt;St++)if(Ht(Re,Ct+St)!==Ht(ze,St)){Bt=!1;break}if(Bt)return Ct}return-1}ne.prototype.includes=function(ze,Ke,We){return this.indexOf(ze,Ke,We)!==-1},ne.prototype.indexOf=function(ze,Ke,We){return De(this,ze,Ke,We,!0)},ne.prototype.lastIndexOf=function(ze,Ke,We){return De(this,ze,Ke,We,!1)};function Pe(Re,ze,Ke,We){Ke=Number(Ke)||0;var st=Re.length-Ke;We?(We=Number(We),We>st&&(We=st)):We=st;var bt=ze.length;We>bt/2&&(We=bt/2);for(var at=0;at<We;++at){var kt=parseInt(ze.substr(at*2,2),16);if(ye(kt))return at;Re[Ke+at]=kt}return at}function Be(Re,ze,Ke,We){return Fe(Ue(ze,Re.length-Ke),Re,Ke,We)}function Ve(Re,ze,Ke,We){return Fe($e(ze),Re,Ke,We)}function Ie(Re,ze,Ke,We){return Ve(Re,ze,Ke,We)}function Ze(Re,ze,Ke,We){return Fe(fe(ze),Re,Ke,We)}function Qe(Re,ze,Ke,We){return Fe(le(ze,Re.length-Ke),Re,Ke,We)}ne.prototype.write=function(ze,Ke,We,st){if(Ke===void 0)st="utf8",We=this.length,Ke=0;else if(We===void 0&&typeof Ke=="string")st=Ke,We=this.length,Ke=0;else if(isFinite(Ke))Ke=Ke>>>0,isFinite(We)?(We=We>>>0,st===void 0&&(st="utf8")):(st=We,We=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var bt=this.length-Ke;if((We===void 0||We>bt)&&(We=bt),ze.length>0&&(We<0||Ke<0)||Ke>this.length)throw new RangeError("Attempt to write outside buffer bounds");st||(st="utf8");for(var at=!1;;)switch(st){case"hex":return Pe(this,ze,Ke,We);case"utf8":case"utf-8":return Be(this,ze,Ke,We);case"ascii":return Ve(this,ze,Ke,We);case"latin1":case"binary":return Ie(this,ze,Ke,We);case"base64":return Ze(this,ze,Ke,We);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,ze,Ke,We);default:if(at)throw new TypeError("Unknown encoding: "+st);st=(""+st).toLowerCase(),at=!0}},ne.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function tt(Re,ze,Ke){return ze===0&&Ke===Re.length?z.fromByteArray(Re):z.fromByteArray(Re.slice(ze,Ke))}function it(Re,ze,Ke){Ke=Math.min(Re.length,Ke);for(var We=[],st=ze;st<Ke;){var bt=Re[st],at=null,kt=bt>239?4:bt>223?3:bt>191?2:1;if(st+kt<=Ke){var Ht,Ct,$t,Bt;switch(kt){case 1:bt<128&&(at=bt);break;case 2:Ht=Re[st+1],(Ht&192)===128&&(Bt=(bt&31)<<6|Ht&63,Bt>127&&(at=Bt));break;case 3:Ht=Re[st+1],Ct=Re[st+2],(Ht&192)===128&&(Ct&192)===128&&(Bt=(bt&15)<<12|(Ht&63)<<6|Ct&63,Bt>2047&&(Bt<55296||Bt>57343)&&(at=Bt));break;case 4:Ht=Re[st+1],Ct=Re[st+2],$t=Re[st+3],(Ht&192)===128&&(Ct&192)===128&&($t&192)===128&&(Bt=(bt&15)<<18|(Ht&63)<<12|(Ct&63)<<6|$t&63,Bt>65535&&Bt<1114112&&(at=Bt))}}at===null?(at=65533,kt=1):at>65535&&(at-=65536,We.push(at>>>10&1023|55296),at=56320|at&1023),We.push(at),st+=kt}return Ge(We)}var ht=4096;function Ge(Re){var ze=Re.length;if(ze<=ht)return String.fromCharCode.apply(String,Re);for(var Ke="",We=0;We<ze;)Ke+=String.fromCharCode.apply(String,Re.slice(We,We+=ht));return Ke}function Xe(Re,ze,Ke){var We="";Ke=Math.min(Re.length,Ke);for(var st=ze;st<Ke;++st)We+=String.fromCharCode(Re[st]&127);return We}function ct(Re,ze,Ke){var We="";Ke=Math.min(Re.length,Ke);for(var st=ze;st<Ke;++st)We+=String.fromCharCode(Re[st]);return We}function pt(Re,ze,Ke){var We=Re.length;(!ze||ze<0)&&(ze=0),(!Ke||Ke<0||Ke>We)&&(Ke=We);for(var st="",bt=ze;bt<Ke;++bt)st+=lt(Re[bt]);return st}function ut(Re,ze,Ke){for(var We=Re.slice(ze,Ke),st="",bt=0;bt<We.length;bt+=2)st+=String.fromCharCode(We[bt]+We[bt+1]*256);return st}ne.prototype.slice=function(ze,Ke){var We=this.length;ze=~~ze,Ke=Ke===void 0?We:~~Ke,ze<0?(ze+=We,ze<0&&(ze=0)):ze>We&&(ze=We),Ke<0?(Ke+=We,Ke<0&&(Ke=0)):Ke>We&&(Ke=We),Ke<ze&&(Ke=ze);var st=this.subarray(ze,Ke);return st.__proto__=ne.prototype,st};function rt(Re,ze,Ke){if(Re%1!==0||Re<0)throw new RangeError("offset is not uint");if(Re+ze>Ke)throw new RangeError("Trying to access beyond buffer length")}ne.prototype.readUIntLE=function(ze,Ke,We){ze=ze>>>0,Ke=Ke>>>0,We||rt(ze,Ke,this.length);for(var st=this[ze],bt=1,at=0;++at<Ke&&(bt*=256);)st+=this[ze+at]*bt;return st},ne.prototype.readUIntBE=function(ze,Ke,We){ze=ze>>>0,Ke=Ke>>>0,We||rt(ze,Ke,this.length);for(var st=this[ze+--Ke],bt=1;Ke>0&&(bt*=256);)st+=this[ze+--Ke]*bt;return st},ne.prototype.readUInt8=function(ze,Ke){return ze=ze>>>0,Ke||rt(ze,1,this.length),this[ze]},ne.prototype.readUInt16LE=function(ze,Ke){return ze=ze>>>0,Ke||rt(ze,2,this.length),this[ze]|this[ze+1]<<8},ne.prototype.readUInt16BE=function(ze,Ke){return ze=ze>>>0,Ke||rt(ze,2,this.length),this[ze]<<8|this[ze+1]},ne.prototype.readUInt32LE=function(ze,Ke){return ze=ze>>>0,Ke||rt(ze,4,this.length),(this[ze]|this[ze+1]<<8|this[ze+2]<<16)+this[ze+3]*16777216},ne.prototype.readUInt32BE=function(ze,Ke){return ze=ze>>>0,Ke||rt(ze,4,this.length),this[ze]*16777216+(this[ze+1]<<16|this[ze+2]<<8|this[ze+3])},ne.prototype.readIntLE=function(ze,Ke,We){ze=ze>>>0,Ke=Ke>>>0,We||rt(ze,Ke,this.length);for(var st=this[ze],bt=1,at=0;++at<Ke&&(bt*=256);)st+=this[ze+at]*bt;return bt*=128,st>=bt&&(st-=Math.pow(2,8*Ke)),st},ne.prototype.readIntBE=function(ze,Ke,We){ze=ze>>>0,Ke=Ke>>>0,We||rt(ze,Ke,this.length);for(var st=Ke,bt=1,at=this[ze+--st];st>0&&(bt*=256);)at+=this[ze+--st]*bt;return bt*=128,at>=bt&&(at-=Math.pow(2,8*Ke)),at},ne.prototype.readInt8=function(ze,Ke){return ze=ze>>>0,Ke||rt(ze,1,this.length),this[ze]&128?(255-this[ze]+1)*-1:this[ze]},ne.prototype.readInt16LE=function(ze,Ke){ze=ze>>>0,Ke||rt(ze,2,this.length);var We=this[ze]|this[ze+1]<<8;return We&32768?We|4294901760:We},ne.prototype.readInt16BE=function(ze,Ke){ze=ze>>>0,Ke||rt(ze,2,this.length);var We=this[ze+1]|this[ze]<<8;return We&32768?We|4294901760:We},ne.prototype.readInt32LE=function(ze,Ke){return ze=ze>>>0,Ke||rt(ze,4,this.length),this[ze]|this[ze+1]<<8|this[ze+2]<<16|this[ze+3]<<24},ne.prototype.readInt32BE=function(ze,Ke){return ze=ze>>>0,Ke||rt(ze,4,this.length),this[ze]<<24|this[ze+1]<<16|this[ze+2]<<8|this[ze+3]},ne.prototype.readFloatLE=function(ze,Ke){return ze=ze>>>0,Ke||rt(ze,4,this.length),ie.read(this,ze,!0,23,4)},ne.prototype.readFloatBE=function(ze,Ke){return ze=ze>>>0,Ke||rt(ze,4,this.length),ie.read(this,ze,!1,23,4)},ne.prototype.readDoubleLE=function(ze,Ke){return ze=ze>>>0,Ke||rt(ze,8,this.length),ie.read(this,ze,!0,52,8)},ne.prototype.readDoubleBE=function(ze,Ke){return ze=ze>>>0,Ke||rt(ze,8,this.length),ie.read(this,ze,!1,52,8)};function qe(Re,ze,Ke,We,st,bt){if(!ne.isBuffer(Re))throw new TypeError('"buffer" argument must be a Buffer instance');if(ze>st||ze<bt)throw new RangeError('"value" argument is out of bounds');if(Ke+We>Re.length)throw new RangeError("Index out of range")}ne.prototype.writeUIntLE=function(ze,Ke,We,st){if(ze=+ze,Ke=Ke>>>0,We=We>>>0,!st){var bt=Math.pow(2,8*We)-1;qe(this,ze,Ke,We,bt,0)}var at=1,kt=0;for(this[Ke]=ze&255;++kt<We&&(at*=256);)this[Ke+kt]=ze/at&255;return Ke+We},ne.prototype.writeUIntBE=function(ze,Ke,We,st){if(ze=+ze,Ke=Ke>>>0,We=We>>>0,!st){var bt=Math.pow(2,8*We)-1;qe(this,ze,Ke,We,bt,0)}var at=We-1,kt=1;for(this[Ke+at]=ze&255;--at>=0&&(kt*=256);)this[Ke+at]=ze/kt&255;return Ke+We},ne.prototype.writeUInt8=function(ze,Ke,We){return ze=+ze,Ke=Ke>>>0,We||qe(this,ze,Ke,1,255,0),this[Ke]=ze&255,Ke+1},ne.prototype.writeUInt16LE=function(ze,Ke,We){return ze=+ze,Ke=Ke>>>0,We||qe(this,ze,Ke,2,65535,0),this[Ke]=ze&255,this[Ke+1]=ze>>>8,Ke+2},ne.prototype.writeUInt16BE=function(ze,Ke,We){return ze=+ze,Ke=Ke>>>0,We||qe(this,ze,Ke,2,65535,0),this[Ke]=ze>>>8,this[Ke+1]=ze&255,Ke+2},ne.prototype.writeUInt32LE=function(ze,Ke,We){return ze=+ze,Ke=Ke>>>0,We||qe(this,ze,Ke,4,4294967295,0),this[Ke+3]=ze>>>24,this[Ke+2]=ze>>>16,this[Ke+1]=ze>>>8,this[Ke]=ze&255,Ke+4},ne.prototype.writeUInt32BE=function(ze,Ke,We){return ze=+ze,Ke=Ke>>>0,We||qe(this,ze,Ke,4,4294967295,0),this[Ke]=ze>>>24,this[Ke+1]=ze>>>16,this[Ke+2]=ze>>>8,this[Ke+3]=ze&255,Ke+4},ne.prototype.writeIntLE=function(ze,Ke,We,st){if(ze=+ze,Ke=Ke>>>0,!st){var bt=Math.pow(2,8*We-1);qe(this,ze,Ke,We,bt-1,-bt)}var at=0,kt=1,Ht=0;for(this[Ke]=ze&255;++at<We&&(kt*=256);)ze<0&&Ht===0&&this[Ke+at-1]!==0&&(Ht=1),this[Ke+at]=(ze/kt>>0)-Ht&255;return Ke+We},ne.prototype.writeIntBE=function(ze,Ke,We,st){if(ze=+ze,Ke=Ke>>>0,!st){var bt=Math.pow(2,8*We-1);qe(this,ze,Ke,We,bt-1,-bt)}var at=We-1,kt=1,Ht=0;for(this[Ke+at]=ze&255;--at>=0&&(kt*=256);)ze<0&&Ht===0&&this[Ke+at+1]!==0&&(Ht=1),this[Ke+at]=(ze/kt>>0)-Ht&255;return Ke+We},ne.prototype.writeInt8=function(ze,Ke,We){return ze=+ze,Ke=Ke>>>0,We||qe(this,ze,Ke,1,127,-128),ze<0&&(ze=255+ze+1),this[Ke]=ze&255,Ke+1},ne.prototype.writeInt16LE=function(ze,Ke,We){return ze=+ze,Ke=Ke>>>0,We||qe(this,ze,Ke,2,32767,-32768),this[Ke]=ze&255,this[Ke+1]=ze>>>8,Ke+2},ne.prototype.writeInt16BE=function(ze,Ke,We){return ze=+ze,Ke=Ke>>>0,We||qe(this,ze,Ke,2,32767,-32768),this[Ke]=ze>>>8,this[Ke+1]=ze&255,Ke+2},ne.prototype.writeInt32LE=function(ze,Ke,We){return ze=+ze,Ke=Ke>>>0,We||qe(this,ze,Ke,4,2147483647,-2147483648),this[Ke]=ze&255,this[Ke+1]=ze>>>8,this[Ke+2]=ze>>>16,this[Ke+3]=ze>>>24,Ke+4},ne.prototype.writeInt32BE=function(ze,Ke,We){return ze=+ze,Ke=Ke>>>0,We||qe(this,ze,Ke,4,2147483647,-2147483648),ze<0&&(ze=4294967295+ze+1),this[Ke]=ze>>>24,this[Ke+1]=ze>>>16,this[Ke+2]=ze>>>8,this[Ke+3]=ze&255,Ke+4};function nt(Re,ze,Ke,We,st,bt){if(Ke+We>Re.length)throw new RangeError("Index out of range");if(Ke<0)throw new RangeError("Index out of range")}function xt(Re,ze,Ke,We,st){return ze=+ze,Ke=Ke>>>0,st||nt(Re,ze,Ke,4,34028234663852886e22,-34028234663852886e22),ie.write(Re,ze,Ke,We,23,4),Ke+4}ne.prototype.writeFloatLE=function(ze,Ke,We){return xt(this,ze,Ke,!0,We)},ne.prototype.writeFloatBE=function(ze,Ke,We){return xt(this,ze,Ke,!1,We)};function yt(Re,ze,Ke,We,st){return ze=+ze,Ke=Ke>>>0,st||nt(Re,ze,Ke,8,17976931348623157e292,-17976931348623157e292),ie.write(Re,ze,Ke,We,52,8),Ke+8}ne.prototype.writeDoubleLE=function(ze,Ke,We){return yt(this,ze,Ke,!0,We)},ne.prototype.writeDoubleBE=function(ze,Ke,We){return yt(this,ze,Ke,!1,We)},ne.prototype.copy=function(ze,Ke,We,st){if(!ne.isBuffer(ze))throw new TypeError("argument should be a Buffer");if(We||(We=0),!st&&st!==0&&(st=this.length),Ke>=ze.length&&(Ke=ze.length),Ke||(Ke=0),st>0&&st<We&&(st=We),st===We||ze.length===0||this.length===0)return 0;if(Ke<0)throw new RangeError("targetStart out of bounds");if(We<0||We>=this.length)throw new RangeError("Index out of range");if(st<0)throw new RangeError("sourceEnd out of bounds");st>this.length&&(st=this.length),ze.length-Ke<st-We&&(st=ze.length-Ke+We);var bt=st-We;if(this===ze&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Ke,We,st);else if(this===ze&&We<Ke&&Ke<st)for(var at=bt-1;at>=0;--at)ze[at+Ke]=this[at+We];else Uint8Array.prototype.set.call(ze,this.subarray(We,st),Ke);return bt},ne.prototype.fill=function(ze,Ke,We,st){if(typeof ze=="string"){if(typeof Ke=="string"?(st=Ke,Ke=0,We=this.length):typeof We=="string"&&(st=We,We=this.length),st!==void 0&&typeof st!="string")throw new TypeError("encoding must be a string");if(typeof st=="string"&&!ne.isEncoding(st))throw new TypeError("Unknown encoding: "+st);if(ze.length===1){var bt=ze.charCodeAt(0);(st==="utf8"&&bt<128||st==="latin1")&&(ze=bt)}}else typeof ze=="number"&&(ze=ze&255);if(Ke<0||this.length<Ke||this.length<We)throw new RangeError("Out of range index");if(We<=Ke)return this;Ke=Ke>>>0,We=We===void 0?this.length:We>>>0,ze||(ze=0);var at;if(typeof ze=="number")for(at=Ke;at<We;++at)this[at]=ze;else{var kt=ne.isBuffer(ze)?ze:ne.from(ze,st),Ht=kt.length;if(Ht===0)throw new TypeError('The value "'+ze+'" is invalid for argument "value"');for(at=0;at<We-Ke;++at)this[at+Ke]=kt[at%Ht]}return this};var Rt=/[^+/0-9A-Za-z-_]/g;function Ot(Re){if(Re=Re.split("=")[0],Re=Re.trim().replace(Rt,""),Re.length<2)return"";for(;Re.length%4!==0;)Re=Re+"=";return Re}function lt(Re){return Re<16?"0"+Re.toString(16):Re.toString(16)}function Ue(Re,ze){ze=ze||1/0;for(var Ke,We=Re.length,st=null,bt=[],at=0;at<We;++at){if(Ke=Re.charCodeAt(at),Ke>55295&&Ke<57344){if(!st){if(Ke>56319){(ze-=3)>-1&&bt.push(239,191,189);continue}else if(at+1===We){(ze-=3)>-1&&bt.push(239,191,189);continue}st=Ke;continue}if(Ke<56320){(ze-=3)>-1&&bt.push(239,191,189),st=Ke;continue}Ke=(st-55296<<10|Ke-56320)+65536}else st&&(ze-=3)>-1&&bt.push(239,191,189);if(st=null,Ke<128){if((ze-=1)<0)break;bt.push(Ke)}else if(Ke<2048){if((ze-=2)<0)break;bt.push(Ke>>6|192,Ke&63|128)}else if(Ke<65536){if((ze-=3)<0)break;bt.push(Ke>>12|224,Ke>>6&63|128,Ke&63|128)}else if(Ke<1114112){if((ze-=4)<0)break;bt.push(Ke>>18|240,Ke>>12&63|128,Ke>>6&63|128,Ke&63|128)}else throw new Error("Invalid code point")}return bt}function $e(Re){for(var ze=[],Ke=0;Ke<Re.length;++Ke)ze.push(Re.charCodeAt(Ke)&255);return ze}function le(Re,ze){for(var Ke,We,st,bt=[],at=0;at<Re.length&&!((ze-=2)<0);++at)Ke=Re.charCodeAt(at),We=Ke>>8,st=Ke%256,bt.push(st),bt.push(We);return bt}function fe(Re){return z.toByteArray(Ot(Re))}function Fe(Re,ze,Ke,We){for(var st=0;st<We&&!(st+Ke>=ze.length||st>=Re.length);++st)ze[st+Ke]=Re[st];return st}function He(Re,ze){return Re instanceof ze||Re!=null&&Re.constructor!=null&&Re.constructor.name!=null&&Re.constructor.name===ze.name}function ye(Re){return Re!==Re}}).call(this)}).call(this,x("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(x,Ae,me){Ae.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(x,Ae,me){"use strict";var re=x("get-intrinsic"),z=x("./"),ie=z(re("String.prototype.indexOf"));Ae.exports=function(se,pe){var ne=re(se,!!pe);return typeof ne=="function"&&ie(se,".prototype.")>-1?z(ne):ne}},{"./":93,"get-intrinsic":348}],93:[function(x,Ae,me){"use strict";var re=x("function-bind"),z=x("get-intrinsic"),ie=z("%Function.prototype.apply%"),oe=z("%Function.prototype.call%"),se=z("%Reflect.apply%",!0)||re.call(oe,ie),pe=z("%Object.getOwnPropertyDescriptor%",!0),ne=z("%Object.defineProperty%",!0),ae=z("%Math.max%");if(ne)try{ne({},"a",{value:1})}catch(de){ne=null}Ae.exports=function(he){var xe=se(re,oe,arguments);if(pe&&ne){var Se=pe(xe,"length");Se.configurable&&ne(xe,"length",{value:1+ae(0,he.length-(arguments.length-1))})}return xe};var ue=function(){return se(re,ie,arguments)};ne?ne(Ae.exports,"apply",{value:ue}):Ae.exports.apply=ue},{"function-bind":347,"get-intrinsic":348}],94:[function(x,Ae,me){"use strict";var re=Array.prototype.slice;Ae.exports=z;function z(oe,se){if(!(this instanceof z))return new z(oe,se);this.src=oe,this._withAccess=se}z.prototype.withAccess=function(oe){return this._withAccess=oe!==!1,this},z.prototype.pick=function(oe){return Array.isArray(oe)||(oe=re.call(arguments)),oe.length&&(this.keys=oe),this},z.prototype.to=function(oe){if(oe=oe||{},!this.src)return oe;var se=this.keys||Object.keys(this.src);if(!this._withAccess){for(var pe=0;pe<se.length;pe++)ne=se[pe],oe[ne]===void 0&&(oe[ne]=this.src[ne]);return oe}for(var pe=0;pe<se.length;pe++){var ne=se[pe];if(ie(oe,ne)){var ae=this.src.__lookupGetter__(ne),ue=this.src.__lookupSetter__(ne);ae&&oe.__defineGetter__(ne,ae),ue&&oe.__defineSetter__(ne,ue),!ae&&!ue&&(oe[ne]=this.src[ne])}}return oe},z.prototype.toCover=function(oe){for(var se=this.keys||Object.keys(this.src),pe=0;pe<se.length;pe++){var ne=se[pe];delete oe[ne];var ae=this.src.__lookupGetter__(ne),ue=this.src.__lookupSetter__(ne);ae&&oe.__defineGetter__(ne,ae),ue&&oe.__defineSetter__(ne,ue),!ae&&!ue&&(oe[ne]=this.src[ne])}},z.prototype.override=z.prototype.toCover,z.prototype.and=function(oe){var se={};return this.to(se),this.src=oe,this.to(se),this.src=se,this};function ie(oe,se){return oe[se]===void 0&&oe.__lookupGetter__(se)===void 0&&oe.__lookupSetter__(se)===void 0}},{}],95:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/is-callable"),ie=x("../internals/try-to-string"),oe=re.TypeError;Ae.exports=function(se){if(z(se))return se;throw oe(ie(se)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/is-constructor"),ie=x("../internals/try-to-string"),oe=re.TypeError;Ae.exports=function(se){if(z(se))return se;throw oe(ie(se)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/is-callable"),ie=re.String,oe=re.TypeError;Ae.exports=function(se){if(typeof se=="object"||z(se))return se;throw oe("Can't set "+ie(se)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(x,Ae,me){var re=x("../internals/well-known-symbol"),z=x("../internals/object-create"),ie=x("../internals/object-define-property"),oe=re("unscopables"),se=Array.prototype;se[oe]==null&&ie.f(se,oe,{configurable:!0,value:z(null)}),Ae.exports=function(pe){se[oe][pe]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(x,Ae,me){"use strict";var re=x("../internals/string-multibyte").charAt;Ae.exports=function(z,ie,oe){return ie+(oe?re(z,ie).length:1)}},{"../internals/string-multibyte":239}],100:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/object-is-prototype-of"),ie=re.TypeError;Ae.exports=function(oe,se){if(z(se,oe))return oe;throw ie("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/is-object"),ie=re.String,oe=re.TypeError;Ae.exports=function(se){if(z(se))return se;throw oe(ie(se)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(x,Ae,me){Ae.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-native"),z=x("../internals/descriptors"),ie=x("../internals/global"),oe=x("../internals/is-callable"),se=x("../internals/is-object"),pe=x("../internals/has-own-property"),ne=x("../internals/classof"),ae=x("../internals/try-to-string"),ue=x("../internals/create-non-enumerable-property"),de=x("../internals/redefine"),he=x("../internals/object-define-property").f,xe=x("../internals/object-is-prototype-of"),Se=x("../internals/object-get-prototype-of"),we=x("../internals/object-set-prototype-of"),be=x("../internals/well-known-symbol"),Me=x("../internals/uid"),Le=ie.Int8Array,Ce=Le&&Le.prototype,Ne=ie.Uint8ClampedArray,Te=Ne&&Ne.prototype,De=Le&&Se(Le),Ee=Ce&&Se(Ce),Pe=Object.prototype,Be=ie.TypeError,Ve=be("toStringTag"),Ie=Me("TYPED_ARRAY_TAG"),Ze=Me("TYPED_ARRAY_CONSTRUCTOR"),Qe=re&&!!we&&ne(ie.opera)!=="Opera",tt=!1,it,ht,Ge,Xe={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ct={BigInt64Array:8,BigUint64Array:8},pt=function(Rt){if(!se(Rt))return!1;var Ot=ne(Rt);return Ot==="DataView"||pe(Xe,Ot)||pe(ct,Ot)},ut=function(yt){if(!se(yt))return!1;var Rt=ne(yt);return pe(Xe,Rt)||pe(ct,Rt)},rt=function(yt){if(ut(yt))return yt;throw Be("Target is not a typed array")},qe=function(yt){if(oe(yt)&&(!we||xe(De,yt)))return yt;throw Be(ae(yt)+" is not a typed array constructor")},nt=function(yt,Rt,Ot,lt){if(z){if(Ot)for(var Ue in Xe){var $e=ie[Ue];if($e&&pe($e.prototype,yt))try{delete $e.prototype[yt]}catch(le){try{$e.prototype[yt]=Rt}catch(fe){}}}(!Ee[yt]||Ot)&&de(Ee,yt,Ot?Rt:Qe&&Ce[yt]||Rt,lt)}},xt=function(yt,Rt,Ot){var lt,Ue;if(z){if(we){if(Ot){for(lt in Xe)if(Ue=ie[lt],Ue&&pe(Ue,yt))try{delete Ue[yt]}catch($e){}}if(!De[yt]||Ot)try{return de(De,yt,Ot?Rt:Qe&&De[yt]||Rt)}catch($e){}else return}for(lt in Xe)Ue=ie[lt],Ue&&(!Ue[yt]||Ot)&&de(Ue,yt,Rt)}};for(it in Xe)ht=ie[it],Ge=ht&&ht.prototype,Ge?ue(Ge,Ze,ht):Qe=!1;for(it in ct)ht=ie[it],Ge=ht&&ht.prototype,Ge&&ue(Ge,Ze,ht);if((!Qe||!oe(De)||De===Function.prototype)&&(De=function(){throw Be("Incorrect invocation")},Qe))for(it in Xe)ie[it]&&we(ie[it],De);if((!Qe||!Ee||Ee===Pe)&&(Ee=De.prototype,Qe))for(it in Xe)ie[it]&&we(ie[it].prototype,Ee);if(Qe&&Se(Te)!==Ee&&we(Te,Ee),z&&!pe(Ee,Ve)){tt=!0,he(Ee,Ve,{get:function(){return se(this)?this[Ie]:void 0}});for(it in Xe)ie[it]&&ue(ie[it],Ie,it)}Ae.exports={NATIVE_ARRAY_BUFFER_VIEWS:Qe,TYPED_ARRAY_CONSTRUCTOR:Ze,TYPED_ARRAY_TAG:tt&&Ie,aTypedArray:rt,aTypedArrayConstructor:qe,exportTypedArrayMethod:nt,exportTypedArrayStaticMethod:xt,isView:pt,isTypedArray:ut,TypedArray:De,TypedArrayPrototype:Ee}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(x,Ae,me){"use strict";var re=x("../internals/global"),z=x("../internals/function-uncurry-this"),ie=x("../internals/descriptors"),oe=x("../internals/array-buffer-native"),se=x("../internals/function-name"),pe=x("../internals/create-non-enumerable-property"),ne=x("../internals/redefine-all"),ae=x("../internals/fails"),ue=x("../internals/an-instance"),de=x("../internals/to-integer-or-infinity"),he=x("../internals/to-length"),xe=x("../internals/to-index"),Se=x("../internals/ieee754"),we=x("../internals/object-get-prototype-of"),be=x("../internals/object-set-prototype-of"),Me=x("../internals/object-get-own-property-names").f,Le=x("../internals/object-define-property").f,Ce=x("../internals/array-fill"),Ne=x("../internals/array-slice-simple"),Te=x("../internals/set-to-string-tag"),De=x("../internals/internal-state"),Ee=se.PROPER,Pe=se.CONFIGURABLE,Be=De.get,Ve=De.set,Ie="ArrayBuffer",Ze="DataView",Qe="prototype",tt="Wrong length",it="Wrong index",ht=re[Ie],Ge=ht,Xe=Ge&&Ge[Qe],ct=re[Ze],pt=ct&&ct[Qe],ut=Object.prototype,rt=re.Array,qe=re.RangeError,nt=z(Ce),xt=z([].reverse),yt=Se.pack,Rt=Se.unpack,Ot=function(at){return[at&255]},lt=function(at){return[at&255,at>>8&255]},Ue=function(at){return[at&255,at>>8&255,at>>16&255,at>>24&255]},$e=function(at){return at[3]<<24|at[2]<<16|at[1]<<8|at[0]},le=function(at){return yt(at,23,4)},fe=function(at){return yt(at,52,8)},Fe=function(at,kt){Le(at[Qe],kt,{get:function(){return Be(this)[kt]}})},He=function(at,kt,Ht,Ct){var $t=xe(Ht),Bt=Be(at);if($t+kt>Bt.byteLength)throw qe(it);var St=Be(Bt.buffer).bytes,ft=$t+Bt.byteOffset,dt=Ne(St,ft,ft+kt);return Ct?dt:xt(dt)},ye=function(at,kt,Ht,Ct,$t,Bt){var St=xe(Ht),ft=Be(at);if(St+kt>ft.byteLength)throw qe(it);for(var dt=Be(ft.buffer).bytes,Ft=St+ft.byteOffset,zt=Ct(+$t),Zt=0;Zt<kt;Zt++)dt[Ft+Zt]=zt[Bt?Zt:kt-Zt-1]};if(!oe)Ge=function(kt){ue(this,Xe);var Ht=xe(kt);Ve(this,{bytes:nt(rt(Ht),0),byteLength:Ht}),ie||(this.byteLength=Ht)},Xe=Ge[Qe],ct=function(kt,Ht,Ct){ue(this,pt),ue(kt,Xe);var $t=Be(kt).byteLength,Bt=de(Ht);if(Bt<0||Bt>$t)throw qe("Wrong offset");if(Ct=Ct===void 0?$t-Bt:he(Ct),Bt+Ct>$t)throw qe(tt);Ve(this,{buffer:kt,byteLength:Ct,byteOffset:Bt}),ie||(this.buffer=kt,this.byteLength=Ct,this.byteOffset=Bt)},pt=ct[Qe],ie&&(Fe(Ge,"byteLength"),Fe(ct,"buffer"),Fe(ct,"byteLength"),Fe(ct,"byteOffset")),ne(pt,{getInt8:function(kt){return He(this,1,kt)[0]<<24>>24},getUint8:function(kt){return He(this,1,kt)[0]},getInt16:function(kt){var Ht=He(this,2,kt,arguments.length>1?arguments[1]:void 0);return(Ht[1]<<8|Ht[0])<<16>>16},getUint16:function(kt){var Ht=He(this,2,kt,arguments.length>1?arguments[1]:void 0);return Ht[1]<<8|Ht[0]},getInt32:function(kt){return $e(He(this,4,kt,arguments.length>1?arguments[1]:void 0))},getUint32:function(kt){return $e(He(this,4,kt,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(kt){return Rt(He(this,4,kt,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(kt){return Rt(He(this,8,kt,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(kt,Ht){ye(this,1,kt,Ot,Ht)},setUint8:function(kt,Ht){ye(this,1,kt,Ot,Ht)},setInt16:function(kt,Ht){ye(this,2,kt,lt,Ht,arguments.length>2?arguments[2]:void 0)},setUint16:function(kt,Ht){ye(this,2,kt,lt,Ht,arguments.length>2?arguments[2]:void 0)},setInt32:function(kt,Ht){ye(this,4,kt,Ue,Ht,arguments.length>2?arguments[2]:void 0)},setUint32:function(kt,Ht){ye(this,4,kt,Ue,Ht,arguments.length>2?arguments[2]:void 0)},setFloat32:function(kt,Ht){ye(this,4,kt,le,Ht,arguments.length>2?arguments[2]:void 0)},setFloat64:function(kt,Ht){ye(this,8,kt,fe,Ht,arguments.length>2?arguments[2]:void 0)}});else{var Re=Ee&&ht.name!==Ie;if(!ae(function(){ht(1)})||!ae(function(){new ht(-1)})||ae(function(){return new ht,new ht(1.5),new ht(NaN),Re&&!Pe})){Ge=function(kt){return ue(this,Xe),new ht(xe(kt))},Ge[Qe]=Xe;for(var ze=Me(ht),Ke=0,We;ze.length>Ke;)(We=ze[Ke++])in Ge||pe(Ge,We,ht[We]);Xe.constructor=Ge}else Re&&Pe&&pe(ht,"name",Ie);be&&we(pt)!==ut&&be(pt,ut);var st=new ct(new Ge(2)),bt=z(pt.setInt8);st.setInt8(0,2147483648),st.setInt8(1,2147483649),(st.getInt8(0)||!st.getInt8(1))&&ne(pt,{setInt8:function(kt,Ht){bt(this,kt,Ht<<24>>24)},setUint8:function(kt,Ht){bt(this,kt,Ht<<24>>24)}},{unsafe:!0})}Te(Ge,Ie),Te(ct,Ze),Ae.exports={ArrayBuffer:Ge,DataView:ct}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(x,Ae,me){"use strict";var re=x("../internals/to-object"),z=x("../internals/to-absolute-index"),ie=x("../internals/length-of-array-like"),oe=Math.min;Ae.exports=[].copyWithin||function(pe,ne){var ae=re(this),ue=ie(ae),de=z(pe,ue),he=z(ne,ue),xe=arguments.length>2?arguments[2]:void 0,Se=oe((xe===void 0?ue:z(xe,ue))-he,ue-de),we=1;for(he<de&&de<he+Se&&(we=-1,he+=Se-1,de+=Se-1);Se-- >0;)he in ae?ae[de]=ae[he]:delete ae[de],de+=we,he+=we;return ae}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(x,Ae,me){"use strict";var re=x("../internals/to-object"),z=x("../internals/to-absolute-index"),ie=x("../internals/length-of-array-like");Ae.exports=function(se){for(var pe=re(this),ne=ie(pe),ae=arguments.length,ue=z(ae>1?arguments[1]:void 0,ne),de=ae>2?arguments[2]:void 0,he=de===void 0?ne:z(de,ne);he>ue;)pe[ue++]=se;return pe}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(x,Ae,me){"use strict";var re=x("../internals/array-iteration").forEach,z=x("../internals/array-method-is-strict"),ie=z("forEach");Ae.exports=ie?[].forEach:function(se){return re(this,se,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(x,Ae,me){var re=x("../internals/length-of-array-like");Ae.exports=function(z,ie){for(var oe=0,se=re(ie),pe=new z(se);se>oe;)pe[oe]=ie[oe++];return pe}},{"../internals/length-of-array-like":188}],109:[function(x,Ae,me){"use strict";var re=x("../internals/global"),z=x("../internals/function-bind-context"),ie=x("../internals/function-call"),oe=x("../internals/to-object"),se=x("../internals/call-with-safe-iteration-closing"),pe=x("../internals/is-array-iterator-method"),ne=x("../internals/is-constructor"),ae=x("../internals/length-of-array-like"),ue=x("../internals/create-property"),de=x("../internals/get-iterator"),he=x("../internals/get-iterator-method"),xe=re.Array;Ae.exports=function(we){var be=oe(we),Me=ne(this),Le=arguments.length,Ce=Le>1?arguments[1]:void 0,Ne=Ce!==void 0;Ne&&(Ce=z(Ce,Le>2?arguments[2]:void 0));var Te=he(be),De=0,Ee,Pe,Be,Ve,Ie,Ze;if(Te&&!(this==xe&&pe(Te)))for(Ve=de(be,Te),Ie=Ve.next,Pe=Me?new this:[];!(Be=ie(Ie,Ve)).done;De++)Ze=Ne?se(Ve,Ce,[Be.value,De],!0):Be.value,ue(Pe,De,Ze);else for(Ee=ae(be),Pe=Me?new this(Ee):xe(Ee);Ee>De;De++)Ze=Ne?Ce(be[De],De):be[De],ue(Pe,De,Ze);return Pe.length=De,Pe}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(x,Ae,me){var re=x("../internals/to-indexed-object"),z=x("../internals/to-absolute-index"),ie=x("../internals/length-of-array-like"),oe=function(se){return function(pe,ne,ae){var ue=re(pe),de=ie(ue),he=z(ae,de),xe;if(se&&ne!=ne){for(;de>he;)if(xe=ue[he++],xe!=xe)return!0}else for(;de>he;he++)if((se||he in ue)&&ue[he]===ne)return se||he||0;return!se&&-1}};Ae.exports={includes:oe(!0),indexOf:oe(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(x,Ae,me){var re=x("../internals/function-bind-context"),z=x("../internals/function-uncurry-this"),ie=x("../internals/indexed-object"),oe=x("../internals/to-object"),se=x("../internals/length-of-array-like"),pe=x("../internals/array-species-create"),ne=z([].push),ae=function(ue){var de=ue==1,he=ue==2,xe=ue==3,Se=ue==4,we=ue==6,be=ue==7,Me=ue==5||we;return function(Le,Ce,Ne,Te){for(var De=oe(Le),Ee=ie(De),Pe=re(Ce,Ne),Be=se(Ee),Ve=0,Ie=Te||pe,Ze=de?Ie(Le,Be):he||be?Ie(Le,0):void 0,Qe,tt;Be>Ve;Ve++)if((Me||Ve in Ee)&&(Qe=Ee[Ve],tt=Pe(Qe,Ve,De),ue))if(de)Ze[Ve]=tt;else if(tt)switch(ue){case 3:return!0;case 5:return Qe;case 6:return Ve;case 2:ne(Ze,Qe)}else switch(ue){case 4:return!1;case 7:ne(Ze,Qe)}return we?-1:xe||Se?Se:Ze}};Ae.exports={forEach:ae(0),map:ae(1),filter:ae(2),some:ae(3),every:ae(4),find:ae(5),findIndex:ae(6),filterReject:ae(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(x,Ae,me){"use strict";var re=x("../internals/function-apply"),z=x("../internals/to-indexed-object"),ie=x("../internals/to-integer-or-infinity"),oe=x("../internals/length-of-array-like"),se=x("../internals/array-method-is-strict"),pe=Math.min,ne=[].lastIndexOf,ae=!!ne&&1/[1].lastIndexOf(1,-0)<0,ue=se("lastIndexOf"),de=ae||!ue;Ae.exports=de?function(xe){if(ae)return re(ne,this,arguments)||0;var Se=z(this),we=oe(Se),be=we-1;for(arguments.length>1&&(be=pe(be,ie(arguments[1]))),be<0&&(be=we+be);be>=0;be--)if(be in Se&&Se[be]===xe)return be||0;return-1}:ne},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(x,Ae,me){var re=x("../internals/fails"),z=x("../internals/well-known-symbol"),ie=x("../internals/engine-v8-version"),oe=z("species");Ae.exports=function(se){return ie>=51||!re(function(){var pe=[],ne=pe.constructor={};return ne[oe]=function(){return{foo:1}},pe[se](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(x,Ae,me){"use strict";var re=x("../internals/fails");Ae.exports=function(z,ie){var oe=[][z];return!!oe&&re(function(){oe.call(null,ie||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/a-callable"),ie=x("../internals/to-object"),oe=x("../internals/indexed-object"),se=x("../internals/length-of-array-like"),pe=re.TypeError,ne=function(ae){return function(ue,de,he,xe){z(de);var Se=ie(ue),we=oe(Se),be=se(Se),Me=ae?be-1:0,Le=ae?-1:1;if(he<2)for(;;){if(Me in we){xe=we[Me],Me+=Le;break}if(Me+=Le,ae?Me<0:be<=Me)throw pe("Reduce of empty array with no initial value")}for(;ae?Me>=0:be>Me;Me+=Le)Me in we&&(xe=de(xe,we[Me],Me,Se));return xe}};Ae.exports={left:ne(!1),right:ne(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/to-absolute-index"),ie=x("../internals/length-of-array-like"),oe=x("../internals/create-property"),se=re.Array,pe=Math.max;Ae.exports=function(ne,ae,ue){for(var de=ie(ne),he=z(ae,de),xe=z(ue===void 0?de:ue,de),Se=se(pe(xe-he,0)),we=0;he<xe;he++,we++)oe(Se,we,ne[he]);return Se.length=we,Se}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(x,Ae,me){var re=x("../internals/function-uncurry-this");Ae.exports=re([].slice)},{"../internals/function-uncurry-this":157}],118:[function(x,Ae,me){var re=x("../internals/array-slice-simple"),z=Math.floor,ie=function(pe,ne){var ae=pe.length,ue=z(ae/2);return ae<8?oe(pe,ne):se(pe,ie(re(pe,0,ue),ne),ie(re(pe,ue),ne),ne)},oe=function(pe,ne){for(var ae=pe.length,ue=1,de,he;ue<ae;){for(he=ue,de=pe[ue];he&&ne(pe[he-1],de)>0;)pe[he]=pe[--he];he!==ue++&&(pe[he]=de)}return pe},se=function(pe,ne,ae,ue){for(var de=ne.length,he=ae.length,xe=0,Se=0;xe<de||Se<he;)pe[xe+Se]=xe<de&&Se<he?ue(ne[xe],ae[Se])<=0?ne[xe++]:ae[Se++]:xe<de?ne[xe++]:ae[Se++];return pe};Ae.exports=ie},{"../internals/array-slice-simple":116}],119:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/is-array"),ie=x("../internals/is-constructor"),oe=x("../internals/is-object"),se=x("../internals/well-known-symbol"),pe=se("species"),ne=re.Array;Ae.exports=function(ae){var ue;return z(ae)&&(ue=ae.constructor,ie(ue)&&(ue===ne||z(ue.prototype))?ue=void 0:oe(ue)&&(ue=ue[pe],ue===null&&(ue=void 0))),ue===void 0?ne:ue}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(x,Ae,me){var re=x("../internals/array-species-constructor");Ae.exports=function(z,ie){return new(re(z))(ie===0?0:ie)}},{"../internals/array-species-constructor":119}],121:[function(x,Ae,me){var re=x("../internals/an-object"),z=x("../internals/iterator-close");Ae.exports=function(ie,oe,se,pe){try{return pe?oe(re(se)[0],se[1]):oe(se)}catch(ne){z(ie,"throw",ne)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(x,Ae,me){var re=x("../internals/well-known-symbol"),z=re("iterator"),ie=!1;try{var oe=0,se={next:function(){return{done:!!oe++}},return:function(){ie=!0}};se[z]=function(){return this},Array.from(se,function(){throw 2})}catch(pe){}Ae.exports=function(pe,ne){if(!ne&&!ie)return!1;var ae=!1;try{var ue={};ue[z]=function(){return{next:function(){return{done:ae=!0}}}},pe(ue)}catch(de){}return ae}},{"../internals/well-known-symbol":268}],123:[function(x,Ae,me){var re=x("../internals/function-uncurry-this"),z=re({}.toString),ie=re("".slice);Ae.exports=function(oe){return ie(z(oe),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/to-string-tag-support"),ie=x("../internals/is-callable"),oe=x("../internals/classof-raw"),se=x("../internals/well-known-symbol"),pe=se("toStringTag"),ne=re.Object,ae=oe(function(){return arguments}())=="Arguments",ue=function(de,he){try{return de[he]}catch(xe){}};Ae.exports=z?oe:function(de){var he,xe,Se;return de===void 0?"Undefined":de===null?"Null":typeof(xe=ue(he=ne(de),pe))=="string"?xe:ae?oe(he):(Se=oe(he))=="Object"&&ie(he.callee)?"Arguments":Se}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(x,Ae,me){var re=x("../internals/has-own-property"),z=x("../internals/own-keys"),ie=x("../internals/object-get-own-property-descriptor"),oe=x("../internals/object-define-property");Ae.exports=function(se,pe,ne){for(var ae=z(pe),ue=oe.f,de=ie.f,he=0;he<ae.length;he++){var xe=ae[he];!re(se,xe)&&!(ne&&re(ne,xe))&&ue(se,xe,de(pe,xe))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(x,Ae,me){var re=x("../internals/well-known-symbol"),z=re("match");Ae.exports=function(ie){var oe=/./;try{"/./"[ie](oe)}catch(se){try{return oe[z]=!1,"/./"[ie](oe)}catch(pe){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(x,Ae,me){var re=x("../internals/fails");Ae.exports=!re(function(){function z(){}return z.prototype.constructor=null,Object.getPrototypeOf(new z)!==z.prototype})},{"../internals/fails":150}],128:[function(x,Ae,me){"use strict";var re=x("../internals/iterators-core").IteratorPrototype,z=x("../internals/object-create"),ie=x("../internals/create-property-descriptor"),oe=x("../internals/set-to-string-tag"),se=x("../internals/iterators"),pe=function(){return this};Ae.exports=function(ne,ae,ue,de){var he=ae+" Iterator";return ne.prototype=z(re,{next:ie(+!de,ue)}),oe(ne,he,!1,!0),se[he]=pe,ne}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(x,Ae,me){var re=x("../internals/descriptors"),z=x("../internals/object-define-property"),ie=x("../internals/create-property-descriptor");Ae.exports=re?function(oe,se,pe){return z.f(oe,se,ie(1,pe))}:function(oe,se,pe){return oe[se]=pe,oe}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(x,Ae,me){Ae.exports=function(re,z){return{enumerable:!(re&1),configurable:!(re&2),writable:!(re&4),value:z}}},{}],131:[function(x,Ae,me){"use strict";var re=x("../internals/to-property-key"),z=x("../internals/object-define-property"),ie=x("../internals/create-property-descriptor");Ae.exports=function(oe,se,pe){var ne=re(se);ne in oe?z.f(oe,ne,ie(0,pe)):oe[ne]=pe}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/function-call"),ie=x("../internals/is-pure"),oe=x("../internals/function-name"),se=x("../internals/is-callable"),pe=x("../internals/create-iterator-constructor"),ne=x("../internals/object-get-prototype-of"),ae=x("../internals/object-set-prototype-of"),ue=x("../internals/set-to-string-tag"),de=x("../internals/create-non-enumerable-property"),he=x("../internals/redefine"),xe=x("../internals/well-known-symbol"),Se=x("../internals/iterators"),we=x("../internals/iterators-core"),be=oe.PROPER,Me=oe.CONFIGURABLE,Le=we.IteratorPrototype,Ce=we.BUGGY_SAFARI_ITERATORS,Ne=xe("iterator"),Te="keys",De="values",Ee="entries",Pe=function(){return this};Ae.exports=function(Be,Ve,Ie,Ze,Qe,tt,it){pe(Ie,Ve,Ze);var ht=function(yt){if(yt===Qe&&ut)return ut;if(!Ce&&yt in ct)return ct[yt];switch(yt){case Te:return function(){return new Ie(this,yt)};case De:return function(){return new Ie(this,yt)};case Ee:return function(){return new Ie(this,yt)}}return function(){return new Ie(this)}},Ge=Ve+" Iterator",Xe=!1,ct=Be.prototype,pt=ct[Ne]||ct["@@iterator"]||Qe&&ct[Qe],ut=!Ce&&pt||ht(Qe),rt=Ve=="Array"&&ct.entries||pt,qe,nt,xt;if(rt&&(qe=ne(rt.call(new Be)),qe!==Object.prototype&&qe.next&&(!ie&&ne(qe)!==Le&&(ae?ae(qe,Le):se(qe[Ne])||he(qe,Ne,Pe)),ue(qe,Ge,!0,!0),ie&&(Se[Ge]=Pe))),be&&Qe==De&&pt&&pt.name!==De&&(!ie&&Me?de(ct,"name",De):(Xe=!0,ut=function(){return z(pt,this)})),Qe)if(nt={values:ht(De),keys:tt?ut:ht(Te),entries:ht(Ee)},it)for(xt in nt)(Ce||Xe||!(xt in ct))&&he(ct,xt,nt[xt]);else re({target:Ve,proto:!0,forced:Ce||Xe},nt);return(!ie||it)&&ct[Ne]!==ut&&he(ct,Ne,ut,{name:Qe}),Se[Ve]=ut,nt}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(x,Ae,me){var re=x("../internals/path"),z=x("../internals/has-own-property"),ie=x("../internals/well-known-symbol-wrapped"),oe=x("../internals/object-define-property").f;Ae.exports=function(se){var pe=re.Symbol||(re.Symbol={});z(pe,se)||oe(pe,se,{value:ie.f(se)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(x,Ae,me){var re=x("../internals/fails");Ae.exports=!re(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/is-object"),ie=re.document,oe=z(ie)&&z(ie.createElement);Ae.exports=function(se){return oe?ie.createElement(se):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(x,Ae,me){Ae.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],137:[function(x,Ae,me){var re=x("../internals/document-create-element"),z=re("span").classList,ie=z&&z.constructor&&z.constructor.prototype;Ae.exports=ie===Object.prototype?void 0:ie},{"../internals/document-create-element":135}],138:[function(x,Ae,me){var re=x("../internals/engine-user-agent"),z=re.match(/firefox\/(\d+)/i);Ae.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],139:[function(x,Ae,me){Ae.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(x,Ae,me){var re=x("../internals/engine-user-agent");Ae.exports=/MSIE|Trident/.test(re)},{"../internals/engine-user-agent":145}],141:[function(x,Ae,me){var re=x("../internals/engine-user-agent"),z=x("../internals/global");Ae.exports=/ipad|iphone|ipod/i.test(re)&&z.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(x,Ae,me){var re=x("../internals/engine-user-agent");Ae.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(re)},{"../internals/engine-user-agent":145}],143:[function(x,Ae,me){var re=x("../internals/classof-raw"),z=x("../internals/global");Ae.exports=re(z.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(x,Ae,me){var re=x("../internals/engine-user-agent");Ae.exports=/web0s(?!.*chrome)/i.test(re)},{"../internals/engine-user-agent":145}],145:[function(x,Ae,me){var re=x("../internals/get-built-in");Ae.exports=re("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/engine-user-agent"),ie=re.process,oe=re.Deno,se=ie&&ie.versions||oe&&oe.version,pe=se&&se.v8,ne,ae;pe&&(ne=pe.split("."),ae=ne[0]>0&&ne[0]<4?1:+(ne[0]+ne[1])),!ae&&z&&(ne=z.match(/Edge\/(\d+)/),(!ne||ne[1]>=74)&&(ne=z.match(/Chrome\/(\d+)/),ne&&(ae=+ne[1]))),Ae.exports=ae},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(x,Ae,me){var re=x("../internals/engine-user-agent"),z=re.match(/AppleWebKit\/(\d+)\./);Ae.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],148:[function(x,Ae,me){Ae.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/object-get-own-property-descriptor").f,ie=x("../internals/create-non-enumerable-property"),oe=x("../internals/redefine"),se=x("../internals/set-global"),pe=x("../internals/copy-constructor-properties"),ne=x("../internals/is-forced");Ae.exports=function(ae,ue){var de=ae.target,he=ae.global,xe=ae.stat,Se,we,be,Me,Le,Ce;if(he?we=re:xe?we=re[de]||se(de,{}):we=(re[de]||{}).prototype,we)for(be in ue){if(Le=ue[be],ae.noTargetGet?(Ce=z(we,be),Me=Ce&&Ce.value):Me=we[be],Se=ne(he?be:de+(xe?".":"#")+be,ae.forced),!Se&&Me!==void 0){if(typeof Le==typeof Me)continue;pe(Le,Me)}(ae.sham||Me&&Me.sham)&&ie(Le,"sham",!0),oe(we,be,Le,ae)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(x,Ae,me){Ae.exports=function(re){try{return!!re()}catch(z){return!0}}},{}],151:[function(x,Ae,me){"use strict";x("../modules/es.regexp.exec");var re=x("../internals/function-uncurry-this"),z=x("../internals/redefine"),ie=x("../internals/regexp-exec"),oe=x("../internals/fails"),se=x("../internals/well-known-symbol"),pe=x("../internals/create-non-enumerable-property"),ne=se("species"),ae=RegExp.prototype;Ae.exports=function(ue,de,he,xe){var Se=se(ue),we=!oe(function(){var Ce={};return Ce[Se]=function(){return 7},""[ue](Ce)!=7}),be=we&&!oe(function(){var Ce=!1,Ne=/a/;return ue==="split"&&(Ne={},Ne.constructor={},Ne.constructor[ne]=function(){return Ne},Ne.flags="",Ne[Se]=/./[Se]),Ne.exec=function(){return Ce=!0,null},Ne[Se](""),!Ce});if(!we||!be||he){var Me=re(/./[Se]),Le=de(Se,""[ue],function(Ce,Ne,Te,De,Ee){var Pe=re(Ce),Be=Ne.exec;return Be===ie||Be===ae.exec?we&&!Ee?{done:!0,value:Me(Ne,Te,De)}:{done:!0,value:Pe(Te,Ne,De)}:{done:!1}});z(String.prototype,ue,Le[0]),z(ae,Se,Le[1])}xe&&pe(ae[Se],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(x,Ae,me){var re=x("../internals/function-bind-native"),z=Function.prototype,ie=z.apply,oe=z.call;Ae.exports=typeof Reflect=="object"&&Reflect.apply||(re?oe.bind(ie):function(){return oe.apply(ie,arguments)})},{"../internals/function-bind-native":154}],153:[function(x,Ae,me){var re=x("../internals/function-uncurry-this"),z=x("../internals/a-callable"),ie=x("../internals/function-bind-native"),oe=re(re.bind);Ae.exports=function(se,pe){return z(se),pe===void 0?se:ie?oe(se,pe):function(){return se.apply(pe,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(x,Ae,me){var re=x("../internals/fails");Ae.exports=!re(function(){var z=function(){}.bind();return typeof z!="function"||z.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(x,Ae,me){var re=x("../internals/function-bind-native"),z=Function.prototype.call;Ae.exports=re?z.bind(z):function(){return z.apply(z,arguments)}},{"../internals/function-bind-native":154}],156:[function(x,Ae,me){var re=x("../internals/descriptors"),z=x("../internals/has-own-property"),ie=Function.prototype,oe=re&&Object.getOwnPropertyDescriptor,se=z(ie,"name"),pe=se&&function(){}.name==="something",ne=se&&(!re||re&&oe(ie,"name").configurable);Ae.exports={EXISTS:se,PROPER:pe,CONFIGURABLE:ne}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(x,Ae,me){var re=x("../internals/function-bind-native"),z=Function.prototype,ie=z.bind,oe=z.call,se=re&&ie.bind(oe,oe);Ae.exports=re?function(pe){return pe&&se(pe)}:function(pe){return pe&&function(){return oe.apply(pe,arguments)}}},{"../internals/function-bind-native":154}],158:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/is-callable"),ie=function(oe){return z(oe)?oe:void 0};Ae.exports=function(oe,se){return arguments.length<2?ie(re[oe]):re[oe]&&re[oe][se]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(x,Ae,me){var re=x("../internals/classof"),z=x("../internals/get-method"),ie=x("../internals/iterators"),oe=x("../internals/well-known-symbol"),se=oe("iterator");Ae.exports=function(pe){if(pe!=null)return z(pe,se)||z(pe,"@@iterator")||ie[re(pe)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/function-call"),ie=x("../internals/a-callable"),oe=x("../internals/an-object"),se=x("../internals/try-to-string"),pe=x("../internals/get-iterator-method"),ne=re.TypeError;Ae.exports=function(ae,ue){var de=arguments.length<2?pe(ae):ue;if(ie(de))return oe(z(de,ae));throw ne(se(ae)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(x,Ae,me){var re=x("../internals/a-callable");Ae.exports=function(z,ie){var oe=z[ie];return oe==null?void 0:re(oe)}},{"../internals/a-callable":95}],162:[function(x,Ae,me){var re=x("../internals/function-uncurry-this"),z=x("../internals/to-object"),ie=Math.floor,oe=re("".charAt),se=re("".replace),pe=re("".slice),ne=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ae=/\$([$&'`]|\d{1,2})/g;Ae.exports=function(ue,de,he,xe,Se,we){var be=he+ue.length,Me=xe.length,Le=ae;return Se!==void 0&&(Se=z(Se),Le=ne),se(we,Le,function(Ce,Ne){var Te;switch(oe(Ne,0)){case"$":return"$";case"&":return ue;case"`":return pe(de,0,he);case"'":return pe(de,be);case"<":Te=Se[pe(Ne,1,-1)];break;default:var De=+Ne;if(De===0)return Ce;if(De>Me){var Ee=ie(De/10);return Ee===0?Ce:Ee<=Me?xe[Ee-1]===void 0?oe(Ne,1):xe[Ee-1]+oe(Ne,1):Ce}Te=xe[De-1]}return Te===void 0?"":Te})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(x,Ae,me){(function(re){(function(){var z=function(ie){return ie&&ie.Math==Math&&ie};Ae.exports=z(typeof globalThis=="object"&&globalThis)||z(typeof window=="object"&&window)||z(typeof self=="object"&&self)||z(typeof re=="object"&&re)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(x,Ae,me){var re=x("../internals/function-uncurry-this"),z=x("../internals/to-object"),ie=re({}.hasOwnProperty);Ae.exports=Object.hasOwn||function(se,pe){return ie(z(se),pe)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(x,Ae,me){Ae.exports={}},{}],166:[function(x,Ae,me){var re=x("../internals/global");Ae.exports=function(z,ie){var oe=re.console;oe&&oe.error&&(arguments.length==1?oe.error(z):oe.error(z,ie))}},{"../internals/global":163}],167:[function(x,Ae,me){var re=x("../internals/get-built-in");Ae.exports=re("document","documentElement")},{"../internals/get-built-in":158}],168:[function(x,Ae,me){var re=x("../internals/descriptors"),z=x("../internals/fails"),ie=x("../internals/document-create-element");Ae.exports=!re&&!z(function(){return Object.defineProperty(ie("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(x,Ae,me){var re=x("../internals/global"),z=re.Array,ie=Math.abs,oe=Math.pow,se=Math.floor,pe=Math.log,ne=Math.LN2,ae=function(de,he,xe){var Se=z(xe),we=xe*8-he-1,be=(1<<we)-1,Me=be>>1,Le=he===23?oe(2,-24)-oe(2,-77):0,Ce=de<0||de===0&&1/de<0?1:0,Ne=0,Te,De,Ee;for(de=ie(de),de!=de||de===1/0?(De=de!=de?1:0,Te=be):(Te=se(pe(de)/ne),Ee=oe(2,-Te),de*Ee<1&&(Te--,Ee*=2),Te+Me>=1?de+=Le/Ee:de+=Le*oe(2,1-Me),de*Ee>=2&&(Te++,Ee/=2),Te+Me>=be?(De=0,Te=be):Te+Me>=1?(De=(de*Ee-1)*oe(2,he),Te=Te+Me):(De=de*oe(2,Me-1)*oe(2,he),Te=0));he>=8;)Se[Ne++]=De&255,De/=256,he-=8;for(Te=Te<<he|De,we+=he;we>0;)Se[Ne++]=Te&255,Te/=256,we-=8;return Se[--Ne]|=Ce*128,Se},ue=function(de,he){var xe=de.length,Se=xe*8-he-1,we=(1<<Se)-1,be=we>>1,Me=Se-7,Le=xe-1,Ce=de[Le--],Ne=Ce&127,Te;for(Ce>>=7;Me>0;)Ne=Ne*256+de[Le--],Me-=8;for(Te=Ne&(1<<-Me)-1,Ne>>=-Me,Me+=he;Me>0;)Te=Te*256+de[Le--],Me-=8;if(Ne===0)Ne=1-be;else{if(Ne===we)return Te?NaN:Ce?-1/0:1/0;Te=Te+oe(2,he),Ne=Ne-be}return(Ce?-1:1)*Te*oe(2,Ne-he)};Ae.exports={pack:ae,unpack:ue}},{"../internals/global":163}],170:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/function-uncurry-this"),ie=x("../internals/fails"),oe=x("../internals/classof-raw"),se=re.Object,pe=z("".split);Ae.exports=ie(function(){return!se("z").propertyIsEnumerable(0)})?function(ne){return oe(ne)=="String"?pe(ne,""):se(ne)}:se},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(x,Ae,me){var re=x("../internals/is-callable"),z=x("../internals/is-object"),ie=x("../internals/object-set-prototype-of");Ae.exports=function(oe,se,pe){var ne,ae;return ie&&re(ne=se.constructor)&&ne!==pe&&z(ae=ne.prototype)&&ae!==pe.prototype&&ie(oe,ae),oe}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(x,Ae,me){var re=x("../internals/function-uncurry-this"),z=x("../internals/is-callable"),ie=x("../internals/shared-store"),oe=re(Function.toString);z(ie.inspectSource)||(ie.inspectSource=function(se){return oe(se)}),Ae.exports=ie.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(x,Ae,me){var re=x("../internals/native-weak-map"),z=x("../internals/global"),ie=x("../internals/function-uncurry-this"),oe=x("../internals/is-object"),se=x("../internals/create-non-enumerable-property"),pe=x("../internals/has-own-property"),ne=x("../internals/shared-store"),ae=x("../internals/shared-key"),ue=x("../internals/hidden-keys"),de="Object already initialized",he=z.TypeError,xe=z.WeakMap,Se,we,be,Me=function(Pe){return be(Pe)?we(Pe):Se(Pe,{})},Le=function(Pe){return function(Be){var Ve;if(!oe(Be)||(Ve=we(Be)).type!==Pe)throw he("Incompatible receiver, "+Pe+" required");return Ve}};if(re||ne.state){var Ce=ne.state||(ne.state=new xe),Ne=ie(Ce.get),Te=ie(Ce.has),De=ie(Ce.set);Se=function(Pe,Be){if(Te(Ce,Pe))throw new he(de);return Be.facade=Pe,De(Ce,Pe,Be),Be},we=function(Pe){return Ne(Ce,Pe)||{}},be=function(Pe){return Te(Ce,Pe)}}else{var Ee=ae("state");ue[Ee]=!0,Se=function(Pe,Be){if(pe(Pe,Ee))throw new he(de);return Be.facade=Pe,se(Pe,Ee,Be),Be},we=function(Pe){return pe(Pe,Ee)?Pe[Ee]:{}},be=function(Pe){return pe(Pe,Ee)}}Ae.exports={set:Se,get:we,has:be,enforce:Me,getterFor:Le}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(x,Ae,me){var re=x("../internals/well-known-symbol"),z=x("../internals/iterators"),ie=re("iterator"),oe=Array.prototype;Ae.exports=function(se){return se!==void 0&&(z.Array===se||oe[ie]===se)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(x,Ae,me){var re=x("../internals/classof-raw");Ae.exports=Array.isArray||function(ie){return re(ie)=="Array"}},{"../internals/classof-raw":123}],176:[function(x,Ae,me){Ae.exports=function(re){return typeof re=="function"}},{}],177:[function(x,Ae,me){var re=x("../internals/function-uncurry-this"),z=x("../internals/fails"),ie=x("../internals/is-callable"),oe=x("../internals/classof"),se=x("../internals/get-built-in"),pe=x("../internals/inspect-source"),ne=function(){},ae=[],ue=se("Reflect","construct"),de=/^\s*(?:class|function)\b/,he=re(de.exec),xe=!de.exec(ne),Se=function(Me){if(!ie(Me))return!1;try{return ue(ne,ae,Me),!0}catch(Le){return!1}},we=function(Me){if(!ie(Me))return!1;switch(oe(Me)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return xe||!!he(de,pe(Me))}catch(Le){return!0}};we.sham=!0,Ae.exports=!ue||z(function(){var be;return Se(Se.call)||!Se(Object)||!Se(function(){be=!0})||be})?we:Se},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(x,Ae,me){var re=x("../internals/fails"),z=x("../internals/is-callable"),ie=/#|\.prototype\./,oe=function(ue,de){var he=pe[se(ue)];return he==ae?!0:he==ne?!1:z(de)?re(de):!!de},se=oe.normalize=function(ue){return String(ue).replace(ie,".").toLowerCase()},pe=oe.data={},ne=oe.NATIVE="N",ae=oe.POLYFILL="P";Ae.exports=oe},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(x,Ae,me){var re=x("../internals/is-object"),z=Math.floor;Ae.exports=Number.isInteger||function(oe){return!re(oe)&&isFinite(oe)&&z(oe)===oe}},{"../internals/is-object":180}],180:[function(x,Ae,me){var re=x("../internals/is-callable");Ae.exports=function(z){return typeof z=="object"?z!==null:re(z)}},{"../internals/is-callable":176}],181:[function(x,Ae,me){Ae.exports=!1},{}],182:[function(x,Ae,me){var re=x("../internals/is-object"),z=x("../internals/classof-raw"),ie=x("../internals/well-known-symbol"),oe=ie("match");Ae.exports=function(se){var pe;return re(se)&&((pe=se[oe])!==void 0?!!pe:z(se)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/get-built-in"),ie=x("../internals/is-callable"),oe=x("../internals/object-is-prototype-of"),se=x("../internals/use-symbol-as-uid"),pe=re.Object;Ae.exports=se?function(ne){return typeof ne=="symbol"}:function(ne){var ae=z("Symbol");return ie(ae)&&oe(ae.prototype,pe(ne))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/function-bind-context"),ie=x("../internals/function-call"),oe=x("../internals/an-object"),se=x("../internals/try-to-string"),pe=x("../internals/is-array-iterator-method"),ne=x("../internals/length-of-array-like"),ae=x("../internals/object-is-prototype-of"),ue=x("../internals/get-iterator"),de=x("../internals/get-iterator-method"),he=x("../internals/iterator-close"),xe=re.TypeError,Se=function(be,Me){this.stopped=be,this.result=Me},we=Se.prototype;Ae.exports=function(be,Me,Le){var Ce=Le&&Le.that,Ne=!!(Le&&Le.AS_ENTRIES),Te=!!(Le&&Le.IS_ITERATOR),De=!!(Le&&Le.INTERRUPTED),Ee=z(Me,Ce),Pe,Be,Ve,Ie,Ze,Qe,tt,it=function(Ge){return Pe&&he(Pe,"normal",Ge),new Se(!0,Ge)},ht=function(Ge){return Ne?(oe(Ge),De?Ee(Ge[0],Ge[1],it):Ee(Ge[0],Ge[1])):De?Ee(Ge,it):Ee(Ge)};if(Te)Pe=be;else{if(Be=de(be),!Be)throw xe(se(be)+" is not iterable");if(pe(Be)){for(Ve=0,Ie=ne(be);Ie>Ve;Ve++)if(Ze=ht(be[Ve]),Ze&&ae(we,Ze))return Ze;return new Se(!1)}Pe=ue(be,Be)}for(Qe=Pe.next;!(tt=ie(Qe,Pe)).done;){try{Ze=ht(tt.value)}catch(Ge){he(Pe,"throw",Ge)}if(typeof Ze=="object"&&Ze&&ae(we,Ze))return Ze}return new Se(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(x,Ae,me){var re=x("../internals/function-call"),z=x("../internals/an-object"),ie=x("../internals/get-method");Ae.exports=function(oe,se,pe){var ne,ae;z(oe);try{if(ne=ie(oe,"return"),!ne){if(se==="throw")throw pe;return pe}ne=re(ne,oe)}catch(ue){ae=!0,ne=ue}if(se==="throw")throw pe;if(ae)throw ne;return z(ne),pe}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(x,Ae,me){"use strict";var re=x("../internals/fails"),z=x("../internals/is-callable"),ie=x("../internals/object-create"),oe=x("../internals/object-get-prototype-of"),se=x("../internals/redefine"),pe=x("../internals/well-known-symbol"),ne=x("../internals/is-pure"),ae=pe("iterator"),ue=!1,de,he,xe;[].keys&&(xe=[].keys(),"next"in xe?(he=oe(oe(xe)),he!==Object.prototype&&(de=he)):ue=!0);var Se=de==null||re(function(){var we={};return de[ae].call(we)!==we});Se?de={}:ne&&(de=ie(de)),z(de[ae])||se(de,ae,function(){return this}),Ae.exports={IteratorPrototype:de,BUGGY_SAFARI_ITERATORS:ue}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(x,Ae,me){arguments[4][165][0].apply(me,arguments)},{dup:165}],188:[function(x,Ae,me){var re=x("../internals/to-length");Ae.exports=function(z){return re(z.length)}},{"../internals/to-length":249}],189:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/function-bind-context"),ie=x("../internals/object-get-own-property-descriptor").f,oe=x("../internals/task").set,se=x("../internals/engine-is-ios"),pe=x("../internals/engine-is-ios-pebble"),ne=x("../internals/engine-is-webos-webkit"),ae=x("../internals/engine-is-node"),ue=re.MutationObserver||re.WebKitMutationObserver,de=re.document,he=re.process,xe=re.Promise,Se=ie(re,"queueMicrotask"),we=Se&&Se.value,be,Me,Le,Ce,Ne,Te,De,Ee;we||(be=function(){var Pe,Be;for(ae&&(Pe=he.domain)&&Pe.exit();Me;){Be=Me.fn,Me=Me.next;try{Be()}catch(Ve){throw Me?Ce():Le=void 0,Ve}}Le=void 0,Pe&&Pe.enter()},!se&&!ae&&!ne&&ue&&de?(Ne=!0,Te=de.createTextNode(""),new ue(be).observe(Te,{characterData:!0}),Ce=function(){Te.data=Ne=!Ne}):!pe&&xe&&xe.resolve?(De=xe.resolve(void 0),De.constructor=xe,Ee=z(De.then,De),Ce=function(){Ee(be)}):ae?Ce=function(){he.nextTick(be)}:(oe=z(oe,re),Ce=function(){oe(be)})),Ae.exports=we||function(Pe){var Be={fn:Pe,next:void 0};Le&&(Le.next=Be),Me||(Me=Be,Ce()),Le=Be}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(x,Ae,me){var re=x("../internals/native-symbol");Ae.exports=re&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(x,Ae,me){var re=x("../internals/engine-v8-version"),z=x("../internals/fails");Ae.exports=!!Object.getOwnPropertySymbols&&!z(function(){var ie=Symbol();return!String(ie)||!(Object(ie)instanceof Symbol)||!Symbol.sham&&re&&re<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/is-callable"),ie=x("../internals/inspect-source"),oe=re.WeakMap;Ae.exports=z(oe)&&/native code/.test(ie(oe))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(x,Ae,me){"use strict";var re=x("../internals/a-callable"),z=function(ie){var oe,se;this.promise=new ie(function(pe,ne){if(oe!==void 0||se!==void 0)throw TypeError("Bad Promise constructor");oe=pe,se=ne}),this.resolve=re(oe),this.reject=re(se)};Ae.exports.f=function(ie){return new z(ie)}},{"../internals/a-callable":95}],194:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/is-regexp"),ie=re.TypeError;Ae.exports=function(oe){if(z(oe))throw ie("The method doesn't accept regular expressions");return oe}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(x,Ae,me){"use strict";var re=x("../internals/descriptors"),z=x("../internals/function-uncurry-this"),ie=x("../internals/function-call"),oe=x("../internals/fails"),se=x("../internals/object-keys"),pe=x("../internals/object-get-own-property-symbols"),ne=x("../internals/object-property-is-enumerable"),ae=x("../internals/to-object"),ue=x("../internals/indexed-object"),de=Object.assign,he=Object.defineProperty,xe=z([].concat);Ae.exports=!de||oe(function(){if(re&&de({b:1},de(he({},"a",{enumerable:!0,get:function(){he(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Se={},we={},be=Symbol(),Me="abcdefghijklmnopqrst";return Se[be]=7,Me.split("").forEach(function(Le){we[Le]=Le}),de({},Se)[be]!=7||se(de({},we)).join("")!=Me})?function(we,be){for(var Me=ae(we),Le=arguments.length,Ce=1,Ne=pe.f,Te=ne.f;Le>Ce;)for(var De=ue(arguments[Ce++]),Ee=Ne?xe(se(De),Ne(De)):se(De),Pe=Ee.length,Be=0,Ve;Pe>Be;)Ve=Ee[Be++],(!re||ie(Te,De,Ve))&&(Me[Ve]=De[Ve]);return Me}:de},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(x,Ae,me){var re=x("../internals/an-object"),z=x("../internals/object-define-properties"),ie=x("../internals/enum-bug-keys"),oe=x("../internals/hidden-keys"),se=x("../internals/html"),pe=x("../internals/document-create-element"),ne=x("../internals/shared-key"),ae=">",ue="<",de="prototype",he="script",xe=ne("IE_PROTO"),Se=function(){},we=function(Ne){return ue+he+ae+Ne+ue+"/"+he+ae},be=function(Ne){Ne.write(we("")),Ne.close();var Te=Ne.parentWindow.Object;return Ne=null,Te},Me=function(){var Ne=pe("iframe"),Te="java"+he+":",De;return Ne.style.display="none",se.appendChild(Ne),Ne.src=String(Te),De=Ne.contentWindow.document,De.open(),De.write(we("document.F=Object")),De.close(),De.F},Le,Ce=function(){try{Le=new ActiveXObject("htmlfile")}catch(Te){}Ce=typeof document!="undefined"?document.domain&&Le?be(Le):Me():be(Le);for(var Ne=ie.length;Ne--;)delete Ce[de][ie[Ne]];return Ce()};oe[xe]=!0,Ae.exports=Object.create||function(Te,De){var Ee;return Te!==null?(Se[de]=re(Te),Ee=new Se,Se[de]=null,Ee[xe]=Te):Ee=Ce(),De===void 0?Ee:z.f(Ee,De)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(x,Ae,me){var re=x("../internals/descriptors"),z=x("../internals/v8-prototype-define-bug"),ie=x("../internals/object-define-property"),oe=x("../internals/an-object"),se=x("../internals/to-indexed-object"),pe=x("../internals/object-keys");me.f=re&&!z?Object.defineProperties:function(ae,ue){oe(ae);for(var de=se(ue),he=pe(ue),xe=he.length,Se=0,we;xe>Se;)ie.f(ae,we=he[Se++],de[we]);return ae}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/descriptors"),ie=x("../internals/ie8-dom-define"),oe=x("../internals/v8-prototype-define-bug"),se=x("../internals/an-object"),pe=x("../internals/to-property-key"),ne=re.TypeError,ae=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,de="enumerable",he="configurable",xe="writable";me.f=z?oe?function(we,be,Me){if(se(we),be=pe(be),se(Me),typeof we=="function"&&be==="prototype"&&"value"in Me&&xe in Me&&!Me[xe]){var Le=ue(we,be);Le&&Le[xe]&&(we[be]=Me.value,Me={configurable:he in Me?Me[he]:Le[he],enumerable:de in Me?Me[de]:Le[de],writable:!1})}return ae(we,be,Me)}:ae:function(we,be,Me){if(se(we),be=pe(be),se(Me),ie)try{return ae(we,be,Me)}catch(Le){}if("get"in Me||"set"in Me)throw ne("Accessors not supported");return"value"in Me&&(we[be]=Me.value),we}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(x,Ae,me){var re=x("../internals/descriptors"),z=x("../internals/function-call"),ie=x("../internals/object-property-is-enumerable"),oe=x("../internals/create-property-descriptor"),se=x("../internals/to-indexed-object"),pe=x("../internals/to-property-key"),ne=x("../internals/has-own-property"),ae=x("../internals/ie8-dom-define"),ue=Object.getOwnPropertyDescriptor;me.f=re?ue:function(he,xe){if(he=se(he),xe=pe(xe),ae)try{return ue(he,xe)}catch(Se){}if(ne(he,xe))return oe(!z(ie.f,he,xe),he[xe])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(x,Ae,me){var re=x("../internals/classof-raw"),z=x("../internals/to-indexed-object"),ie=x("../internals/object-get-own-property-names").f,oe=x("../internals/array-slice-simple"),se=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],pe=function(ne){try{return ie(ne)}catch(ae){return oe(se)}};Ae.exports.f=function(ae){return se&&re(ae)=="Window"?pe(ae):ie(z(ae))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(x,Ae,me){var re=x("../internals/object-keys-internal"),z=x("../internals/enum-bug-keys"),ie=z.concat("length","prototype");me.f=Object.getOwnPropertyNames||function(se){return re(se,ie)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(x,Ae,me){me.f=Object.getOwnPropertySymbols},{}],203:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/has-own-property"),ie=x("../internals/is-callable"),oe=x("../internals/to-object"),se=x("../internals/shared-key"),pe=x("../internals/correct-prototype-getter"),ne=se("IE_PROTO"),ae=re.Object,ue=ae.prototype;Ae.exports=pe?ae.getPrototypeOf:function(de){var he=oe(de);if(z(he,ne))return he[ne];var xe=he.constructor;return ie(xe)&&he instanceof xe?xe.prototype:he instanceof ae?ue:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(x,Ae,me){var re=x("../internals/function-uncurry-this");Ae.exports=re({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(x,Ae,me){var re=x("../internals/function-uncurry-this"),z=x("../internals/has-own-property"),ie=x("../internals/to-indexed-object"),oe=x("../internals/array-includes").indexOf,se=x("../internals/hidden-keys"),pe=re([].push);Ae.exports=function(ne,ae){var ue=ie(ne),de=0,he=[],xe;for(xe in ue)!z(se,xe)&&z(ue,xe)&&pe(he,xe);for(;ae.length>de;)z(ue,xe=ae[de++])&&(~oe(he,xe)||pe(he,xe));return he}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(x,Ae,me){var re=x("../internals/object-keys-internal"),z=x("../internals/enum-bug-keys");Ae.exports=Object.keys||function(oe){return re(oe,z)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(x,Ae,me){"use strict";var re={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,ie=z&&!re.call({1:2},1);me.f=ie?function(se){var pe=z(this,se);return!!pe&&pe.enumerable}:re},{}],208:[function(x,Ae,me){var re=x("../internals/function-uncurry-this"),z=x("../internals/an-object"),ie=x("../internals/a-possible-prototype");Ae.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var oe=!1,se={},pe;try{pe=re(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),pe(se,[]),oe=se instanceof Array}catch(ne){}return function(ae,ue){return z(ae),ie(ue),oe?pe(ae,ue):ae.__proto__=ue,ae}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(x,Ae,me){var re=x("../internals/descriptors"),z=x("../internals/function-uncurry-this"),ie=x("../internals/object-keys"),oe=x("../internals/to-indexed-object"),se=x("../internals/object-property-is-enumerable").f,pe=z(se),ne=z([].push),ae=function(ue){return function(de){for(var he=oe(de),xe=ie(he),Se=xe.length,we=0,be=[],Me;Se>we;)Me=xe[we++],(!re||pe(he,Me))&&ne(be,ue?[Me,he[Me]]:he[Me]);return be}};Ae.exports={entries:ae(!0),values:ae(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(x,Ae,me){"use strict";var re=x("../internals/to-string-tag-support"),z=x("../internals/classof");Ae.exports=re?{}.toString:function(){return"[object "+z(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/function-call"),ie=x("../internals/is-callable"),oe=x("../internals/is-object"),se=re.TypeError;Ae.exports=function(pe,ne){var ae,ue;if(ne==="string"&&ie(ae=pe.toString)&&!oe(ue=z(ae,pe))||ie(ae=pe.valueOf)&&!oe(ue=z(ae,pe))||ne!=="string"&&ie(ae=pe.toString)&&!oe(ue=z(ae,pe)))return ue;throw se("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(x,Ae,me){var re=x("../internals/get-built-in"),z=x("../internals/function-uncurry-this"),ie=x("../internals/object-get-own-property-names"),oe=x("../internals/object-get-own-property-symbols"),se=x("../internals/an-object"),pe=z([].concat);Ae.exports=re("Reflect","ownKeys")||function(ae){var ue=ie.f(se(ae)),de=oe.f;return de?pe(ue,de(ae)):ue}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(x,Ae,me){var re=x("../internals/global");Ae.exports=re},{"../internals/global":163}],214:[function(x,Ae,me){Ae.exports=function(re){try{return{error:!1,value:re()}}catch(z){return{error:!0,value:z}}}},{}],215:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/promise-native-constructor"),ie=x("../internals/is-callable"),oe=x("../internals/is-forced"),se=x("../internals/inspect-source"),pe=x("../internals/well-known-symbol"),ne=x("../internals/engine-is-browser"),ae=x("../internals/is-pure"),ue=x("../internals/engine-v8-version"),de=z&&z.prototype,he=pe("species"),xe=!1,Se=ie(re.PromiseRejectionEvent),we=oe("Promise",function(){var be=se(z),Me=be!==String(z);if(!Me&&ue===66||ae&&!(de.catch&&de.finally))return!0;if(ue>=51&&/native code/.test(be))return!1;var Le=new z(function(Te){Te(1)}),Ce=function(Te){Te(function(){},function(){})},Ne=Le.constructor={};return Ne[he]=Ce,xe=Le.then(function(){})instanceof Ce,xe?!Me&&ne&&!Se:!0});Ae.exports={CONSTRUCTOR:we,REJECTION_EVENT:Se,SUBCLASSING:xe}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(x,Ae,me){var re=x("../internals/global");Ae.exports=re.Promise},{"../internals/global":163}],217:[function(x,Ae,me){var re=x("../internals/an-object"),z=x("../internals/is-object"),ie=x("../internals/new-promise-capability");Ae.exports=function(oe,se){if(re(oe),z(se)&&se.constructor===oe)return se;var pe=ie.f(oe),ne=pe.resolve;return ne(se),pe.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(x,Ae,me){var re=x("../internals/promise-native-constructor"),z=x("../internals/check-correctness-of-iteration"),ie=x("../internals/promise-constructor-detection").CONSTRUCTOR;Ae.exports=ie||!z(function(oe){re.all(oe).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(x,Ae,me){var re=x("../internals/object-define-property").f;Ae.exports=function(z,ie,oe){oe in z||re(z,oe,{configurable:!0,get:function(){return ie[oe]},set:function(se){ie[oe]=se}})}},{"../internals/object-define-property":198}],220:[function(x,Ae,me){var re=function(){this.head=null,this.tail=null};re.prototype={add:function(z){var ie={item:z,next:null};this.head?this.tail.next=ie:this.head=ie,this.tail=ie},get:function(){var z=this.head;if(z)return this.head=z.next,this.tail===z&&(this.tail=null),z.item}},Ae.exports=re},{}],221:[function(x,Ae,me){var re=x("../internals/redefine");Ae.exports=function(z,ie,oe){for(var se in ie)re(z,se,ie[se],oe);return z}},{"../internals/redefine":222}],222:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/is-callable"),ie=x("../internals/has-own-property"),oe=x("../internals/create-non-enumerable-property"),se=x("../internals/set-global"),pe=x("../internals/inspect-source"),ne=x("../internals/internal-state"),ae=x("../internals/function-name").CONFIGURABLE,ue=ne.get,de=ne.enforce,he=String(String).split("String");(Ae.exports=function(xe,Se,we,be){var Me=be?!!be.unsafe:!1,Le=be?!!be.enumerable:!1,Ce=be?!!be.noTargetGet:!1,Ne=be&&be.name!==void 0?be.name:Se,Te;if(z(we)&&(String(Ne).slice(0,7)==="Symbol("&&(Ne="["+String(Ne).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ie(we,"name")||ae&&we.name!==Ne)&&oe(we,"name",Ne),Te=de(we),Te.source||(Te.source=he.join(typeof Ne=="string"?Ne:""))),xe===re){Le?xe[Se]=we:se(Se,we);return}else Me?!Ce&&xe[Se]&&(Le=!0):delete xe[Se];Le?xe[Se]=we:oe(xe,Se,we)})(Function.prototype,"toString",function(){return z(this)&&ue(this).source||pe(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/function-call"),ie=x("../internals/an-object"),oe=x("../internals/is-callable"),se=x("../internals/classof-raw"),pe=x("../internals/regexp-exec"),ne=re.TypeError;Ae.exports=function(ae,ue){var de=ae.exec;if(oe(de)){var he=z(de,ae,ue);return he!==null&&ie(he),he}if(se(ae)==="RegExp")return z(pe,ae,ue);throw ne("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(x,Ae,me){"use strict";var re=x("../internals/function-call"),z=x("../internals/function-uncurry-this"),ie=x("../internals/to-string"),oe=x("../internals/regexp-flags"),se=x("../internals/regexp-sticky-helpers"),pe=x("../internals/shared"),ne=x("../internals/object-create"),ae=x("../internals/internal-state").get,ue=x("../internals/regexp-unsupported-dot-all"),de=x("../internals/regexp-unsupported-ncg"),he=pe("native-string-replace",String.prototype.replace),xe=RegExp.prototype.exec,Se=xe,we=z("".charAt),be=z("".indexOf),Me=z("".replace),Le=z("".slice),Ce=function(){var Ee=/a/,Pe=/b*/g;return re(xe,Ee,"a"),re(xe,Pe,"a"),Ee.lastIndex!==0||Pe.lastIndex!==0}(),Ne=se.BROKEN_CARET,Te=/()??/.exec("")[1]!==void 0,De=Ce||Te||Ne||ue||de;De&&(Se=function(Pe){var Be=this,Ve=ae(Be),Ie=ie(Pe),Ze=Ve.raw,Qe,tt,it,ht,Ge,Xe,ct;if(Ze)return Ze.lastIndex=Be.lastIndex,Qe=re(Se,Ze,Ie),Be.lastIndex=Ze.lastIndex,Qe;var pt=Ve.groups,ut=Ne&&Be.sticky,rt=re(oe,Be),qe=Be.source,nt=0,xt=Ie;if(ut&&(rt=Me(rt,"y",""),be(rt,"g")===-1&&(rt+="g"),xt=Le(Ie,Be.lastIndex),Be.lastIndex>0&&(!Be.multiline||Be.multiline&&we(Ie,Be.lastIndex-1)!==`
|
|
|
`)&&(qe="(?: "+qe+")",xt=" "+xt,nt++),tt=new RegExp("^(?:"+qe+")",rt)),Te&&(tt=new RegExp("^"+qe+"$(?!\\s)",rt)),Ce&&(it=Be.lastIndex),ht=re(xe,ut?tt:Be,xt),ut?ht?(ht.input=Le(ht.input,nt),ht[0]=Le(ht[0],nt),ht.index=Be.lastIndex,Be.lastIndex+=ht[0].length):Be.lastIndex=0:Ce&&ht&&(Be.lastIndex=Be.global?ht.index+ht[0].length:it),Te&&ht&&ht.length>1&&re(he,ht[0],tt,function(){for(Ge=1;Ge<arguments.length-2;Ge++)arguments[Ge]===void 0&&(ht[Ge]=void 0)}),ht&&pt)for(ht.groups=Xe=ne(null),Ge=0;Ge<pt.length;Ge++)ct=pt[Ge],Xe[ct[0]]=ht[ct[1]];return ht}),Ae.exports=Se},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(x,Ae,me){"use strict";var re=x("../internals/an-object");Ae.exports=function(){var z=re(this),ie="";return z.hasIndices&&(ie+="d"),z.global&&(ie+="g"),z.ignoreCase&&(ie+="i"),z.multiline&&(ie+="m"),z.dotAll&&(ie+="s"),z.unicode&&(ie+="u"),z.sticky&&(ie+="y"),ie}},{"../internals/an-object":101}],226:[function(x,Ae,me){var re=x("../internals/function-call"),z=x("../internals/has-own-property"),ie=x("../internals/object-is-prototype-of"),oe=x("../internals/regexp-flags"),se=RegExp.prototype;Ae.exports=function(pe){var ne=pe.flags;return ne===void 0&&!("flags"in se)&&!z(pe,"flags")&&ie(se,pe)?re(oe,pe):ne}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(x,Ae,me){var re=x("../internals/fails"),z=x("../internals/global"),ie=z.RegExp,oe=re(function(){var ne=ie("a","y");return ne.lastIndex=2,ne.exec("abcd")!=null}),se=oe||re(function(){return!ie("a","y").sticky}),pe=oe||re(function(){var ne=ie("^r","gy");return ne.lastIndex=2,ne.exec("str")!=null});Ae.exports={BROKEN_CARET:pe,MISSED_STICKY:se,UNSUPPORTED_Y:oe}},{"../internals/fails":150,"../internals/global":163}],228:[function(x,Ae,me){var re=x("../internals/fails"),z=x("../internals/global"),ie=z.RegExp;Ae.exports=re(function(){var oe=ie(".","s");return!(oe.dotAll&&oe.exec(`
|
|
|
`)&&oe.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(x,Ae,me){var re=x("../internals/fails"),z=x("../internals/global"),ie=z.RegExp;Ae.exports=re(function(){var oe=ie("(?<a>b)","g");return oe.exec("b").groups.a!=="b"||"b".replace(oe,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(x,Ae,me){var re=x("../internals/global"),z=re.TypeError;Ae.exports=function(ie){if(ie==null)throw z("Can't call method on "+ie);return ie}},{"../internals/global":163}],231:[function(x,Ae,me){Ae.exports=Object.is||function(z,ie){return z===ie?z!==0||1/z===1/ie:z!=z&&ie!=ie}},{}],232:[function(x,Ae,me){var re=x("../internals/global"),z=Object.defineProperty;Ae.exports=function(ie,oe){try{z(re,ie,{value:oe,configurable:!0,writable:!0})}catch(se){re[ie]=oe}return oe}},{"../internals/global":163}],233:[function(x,Ae,me){"use strict";var re=x("../internals/get-built-in"),z=x("../internals/object-define-property"),ie=x("../internals/well-known-symbol"),oe=x("../internals/descriptors"),se=ie("species");Ae.exports=function(pe){var ne=re(pe),ae=z.f;oe&&ne&&!ne[se]&&ae(ne,se,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(x,Ae,me){var re=x("../internals/object-define-property").f,z=x("../internals/has-own-property"),ie=x("../internals/well-known-symbol"),oe=ie("toStringTag");Ae.exports=function(se,pe,ne){se&&!ne&&(se=se.prototype),se&&!z(se,oe)&&re(se,oe,{configurable:!0,value:pe})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(x,Ae,me){var re=x("../internals/shared"),z=x("../internals/uid"),ie=re("keys");Ae.exports=function(oe){return ie[oe]||(ie[oe]=z(oe))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/set-global"),ie="__core-js_shared__",oe=re[ie]||z(ie,{});Ae.exports=oe},{"../internals/global":163,"../internals/set-global":232}],237:[function(x,Ae,me){var re=x("../internals/is-pure"),z=x("../internals/shared-store");(Ae.exports=function(ie,oe){return z[ie]||(z[ie]=oe!==void 0?oe:{})})("versions",[]).push({version:"3.22.1",mode:re?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(x,Ae,me){var re=x("../internals/an-object"),z=x("../internals/a-constructor"),ie=x("../internals/well-known-symbol"),oe=ie("species");Ae.exports=function(se,pe){var ne=re(se).constructor,ae;return ne===void 0||(ae=re(ne)[oe])==null?pe:z(ae)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(x,Ae,me){var re=x("../internals/function-uncurry-this"),z=x("../internals/to-integer-or-infinity"),ie=x("../internals/to-string"),oe=x("../internals/require-object-coercible"),se=re("".charAt),pe=re("".charCodeAt),ne=re("".slice),ae=function(ue){return function(de,he){var xe=ie(oe(de)),Se=z(he),we=xe.length,be,Me;return Se<0||Se>=we?ue?"":void 0:(be=pe(xe,Se),be<55296||be>56319||Se+1===we||(Me=pe(xe,Se+1))<56320||Me>57343?ue?se(xe,Se):be:ue?ne(xe,Se,Se+2):(be-55296<<10)+(Me-56320)+65536)}};Ae.exports={codeAt:ae(!1),charAt:ae(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(x,Ae,me){var re=x("../internals/function-name").PROPER,z=x("../internals/fails"),ie=x("../internals/whitespaces"),oe="\u200B\x85\u180E";Ae.exports=function(se){return z(function(){return!!ie[se]()||oe[se]()!==oe||re&&ie[se].name!==se})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(x,Ae,me){var re=x("../internals/function-uncurry-this"),z=x("../internals/require-object-coercible"),ie=x("../internals/to-string"),oe=x("../internals/whitespaces"),se=re("".replace),pe="["+oe+"]",ne=RegExp("^"+pe+pe+"*"),ae=RegExp(pe+pe+"*$"),ue=function(de){return function(he){var xe=ie(z(he));return de&1&&(xe=se(xe,ne,"")),de&2&&(xe=se(xe,ae,"")),xe}};Ae.exports={start:ue(1),end:ue(2),trim:ue(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(x,Ae,me){var re=x("../internals/function-call"),z=x("../internals/get-built-in"),ie=x("../internals/well-known-symbol"),oe=x("../internals/redefine");Ae.exports=function(){var se=z("Symbol"),pe=se&&se.prototype,ne=pe&&pe.valueOf,ae=ie("toPrimitive");pe&&!pe[ae]&&oe(pe,ae,function(ue){return re(ne,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/function-apply"),ie=x("../internals/function-bind-context"),oe=x("../internals/is-callable"),se=x("../internals/has-own-property"),pe=x("../internals/fails"),ne=x("../internals/html"),ae=x("../internals/array-slice"),ue=x("../internals/document-create-element"),de=x("../internals/validate-arguments-length"),he=x("../internals/engine-is-ios"),xe=x("../internals/engine-is-node"),Se=re.setImmediate,we=re.clearImmediate,be=re.process,Me=re.Dispatch,Le=re.Function,Ce=re.MessageChannel,Ne=re.String,Te=0,De={},Ee="onreadystatechange",Pe,Be,Ve,Ie;try{Pe=re.location}catch(ht){}var Ze=function(ht){if(se(De,ht)){var Ge=De[ht];delete De[ht],Ge()}},Qe=function(ht){return function(){Ze(ht)}},tt=function(ht){Ze(ht.data)},it=function(ht){re.postMessage(Ne(ht),Pe.protocol+"//"+Pe.host)};(!Se||!we)&&(Se=function(Ge){de(arguments.length,1);var Xe=oe(Ge)?Ge:Le(Ge),ct=ae(arguments,1);return De[++Te]=function(){z(Xe,void 0,ct)},Be(Te),Te},we=function(Ge){delete De[Ge]},xe?Be=function(ht){be.nextTick(Qe(ht))}:Me&&Me.now?Be=function(ht){Me.now(Qe(ht))}:Ce&&!he?(Ve=new Ce,Ie=Ve.port2,Ve.port1.onmessage=tt,Be=ie(Ie.postMessage,Ie)):re.addEventListener&&oe(re.postMessage)&&!re.importScripts&&Pe&&Pe.protocol!=="file:"&&!pe(it)?(Be=it,re.addEventListener("message",tt,!1)):Ee in ue("script")?Be=function(ht){ne.appendChild(ue("script"))[Ee]=function(){ne.removeChild(this),Ze(ht)}}:Be=function(ht){setTimeout(Qe(ht),0)}),Ae.exports={set:Se,clear:we}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(x,Ae,me){var re=x("../internals/function-uncurry-this");Ae.exports=re(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(x,Ae,me){var re=x("../internals/to-integer-or-infinity"),z=Math.max,ie=Math.min;Ae.exports=function(oe,se){var pe=re(oe);return pe<0?z(pe+se,0):ie(pe,se)}},{"../internals/to-integer-or-infinity":248}],246:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/to-integer-or-infinity"),ie=x("../internals/to-length"),oe=re.RangeError;Ae.exports=function(se){if(se===void 0)return 0;var pe=z(se),ne=ie(pe);if(pe!==ne)throw oe("Wrong length or index");return ne}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(x,Ae,me){var re=x("../internals/indexed-object"),z=x("../internals/require-object-coercible");Ae.exports=function(ie){return re(z(ie))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(x,Ae,me){var re=Math.ceil,z=Math.floor;Ae.exports=function(ie){var oe=+ie;return oe!==oe||oe===0?0:(oe>0?z:re)(oe)}},{}],249:[function(x,Ae,me){var re=x("../internals/to-integer-or-infinity"),z=Math.min;Ae.exports=function(ie){return ie>0?z(re(ie),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/require-object-coercible"),ie=re.Object;Ae.exports=function(oe){return ie(z(oe))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/to-positive-integer"),ie=re.RangeError;Ae.exports=function(oe,se){var pe=z(oe);if(pe%se)throw ie("Wrong offset");return pe}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/to-integer-or-infinity"),ie=re.RangeError;Ae.exports=function(oe){var se=z(oe);if(se<0)throw ie("The argument can't be less than 0");return se}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/function-call"),ie=x("../internals/is-object"),oe=x("../internals/is-symbol"),se=x("../internals/get-method"),pe=x("../internals/ordinary-to-primitive"),ne=x("../internals/well-known-symbol"),ae=re.TypeError,ue=ne("toPrimitive");Ae.exports=function(de,he){if(!ie(de)||oe(de))return de;var xe=se(de,ue),Se;if(xe){if(he===void 0&&(he="default"),Se=z(xe,de,he),!ie(Se)||oe(Se))return Se;throw ae("Can't convert object to primitive value")}return he===void 0&&(he="number"),pe(de,he)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(x,Ae,me){var re=x("../internals/to-primitive"),z=x("../internals/is-symbol");Ae.exports=function(ie){var oe=re(ie,"string");return z(oe)?oe:oe+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(x,Ae,me){var re=x("../internals/well-known-symbol"),z=re("toStringTag"),ie={};ie[z]="z",Ae.exports=String(ie)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/classof"),ie=re.String;Ae.exports=function(oe){if(z(oe)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ie(oe)}},{"../internals/classof":124,"../internals/global":163}],257:[function(x,Ae,me){var re=x("../internals/global"),z=re.String;Ae.exports=function(ie){try{return z(ie)}catch(oe){return"Object"}}},{"../internals/global":163}],258:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/global"),ie=x("../internals/function-call"),oe=x("../internals/descriptors"),se=x("../internals/typed-array-constructors-require-wrappers"),pe=x("../internals/array-buffer-view-core"),ne=x("../internals/array-buffer"),ae=x("../internals/an-instance"),ue=x("../internals/create-property-descriptor"),de=x("../internals/create-non-enumerable-property"),he=x("../internals/is-integral-number"),xe=x("../internals/to-length"),Se=x("../internals/to-index"),we=x("../internals/to-offset"),be=x("../internals/to-property-key"),Me=x("../internals/has-own-property"),Le=x("../internals/classof"),Ce=x("../internals/is-object"),Ne=x("../internals/is-symbol"),Te=x("../internals/object-create"),De=x("../internals/object-is-prototype-of"),Ee=x("../internals/object-set-prototype-of"),Pe=x("../internals/object-get-own-property-names").f,Be=x("../internals/typed-array-from"),Ve=x("../internals/array-iteration").forEach,Ie=x("../internals/set-species"),Ze=x("../internals/object-define-property"),Qe=x("../internals/object-get-own-property-descriptor"),tt=x("../internals/internal-state"),it=x("../internals/inherit-if-required"),ht=tt.get,Ge=tt.set,Xe=Ze.f,ct=Qe.f,pt=Math.round,ut=z.RangeError,rt=ne.ArrayBuffer,qe=rt.prototype,nt=ne.DataView,xt=pe.NATIVE_ARRAY_BUFFER_VIEWS,yt=pe.TYPED_ARRAY_CONSTRUCTOR,Rt=pe.TYPED_ARRAY_TAG,Ot=pe.TypedArray,lt=pe.TypedArrayPrototype,Ue=pe.aTypedArrayConstructor,$e=pe.isTypedArray,le="BYTES_PER_ELEMENT",fe="Wrong length",Fe=function(We,st){Ue(We);for(var bt=0,at=st.length,kt=new We(at);at>bt;)kt[bt]=st[bt++];return kt},He=function(We,st){Xe(We,st,{get:function(){return ht(this)[st]}})},ye=function(We){var st;return De(qe,We)||(st=Le(We))=="ArrayBuffer"||st=="SharedArrayBuffer"},Re=function(We,st){return $e(We)&&!Ne(st)&&st in We&&he(+st)&&st>=0},ze=function(st,bt){return bt=be(bt),Re(st,bt)?ue(2,st[bt]):ct(st,bt)},Ke=function(st,bt,at){return bt=be(bt),Re(st,bt)&&Ce(at)&&Me(at,"value")&&!Me(at,"get")&&!Me(at,"set")&&!at.configurable&&(!Me(at,"writable")||at.writable)&&(!Me(at,"enumerable")||at.enumerable)?(st[bt]=at.value,st):Xe(st,bt,at)};oe?(xt||(Qe.f=ze,Ze.f=Ke,He(lt,"buffer"),He(lt,"byteOffset"),He(lt,"byteLength"),He(lt,"length")),re({target:"Object",stat:!0,forced:!xt},{getOwnPropertyDescriptor:ze,defineProperty:Ke}),Ae.exports=function(We,st,bt){var at=We.match(/\d+$/)[0]/8,kt=We+(bt?"Clamped":"")+"Array",Ht="get"+We,Ct="set"+We,$t=z[kt],Bt=$t,St=Bt&&Bt.prototype,ft={},dt=function(Zt,tr){var mr=ht(Zt);return mr.view[Ht](tr*at+mr.byteOffset,!0)},Ft=function(Zt,tr,mr){var Er=ht(Zt);bt&&(mr=(mr=pt(mr))<0?0:mr>255?255:mr&255),Er.view[Ct](tr*at+Er.byteOffset,mr,!0)},zt=function(Zt,tr){Xe(Zt,tr,{get:function(){return dt(this,tr)},set:function(mr){return Ft(this,tr,mr)},enumerable:!0})};xt?se&&(Bt=st(function(Zt,tr,mr,Er){return ae(Zt,St),it(function(){return Ce(tr)?ye(tr)?Er!==void 0?new $t(tr,we(mr,at),Er):mr!==void 0?new $t(tr,we(mr,at)):new $t(tr):$e(tr)?Fe(Bt,tr):ie(Be,Bt,tr):new $t(Se(tr))}(),Zt,Bt)}),Ee&&Ee(Bt,Ot),Ve(Pe($t),function(Zt){Zt in Bt||de(Bt,Zt,$t[Zt])}),Bt.prototype=St):(Bt=st(function(Zt,tr,mr,Er){ae(Zt,St);var zr=0,jr=0,Tr,Vr,sn;if(!Ce(tr))sn=Se(tr),Vr=sn*at,Tr=new rt(Vr);else if(ye(tr)){Tr=tr,jr=we(mr,at);var vn=tr.byteLength;if(Er===void 0){if(vn%at||(Vr=vn-jr,Vr<0))throw ut(fe)}else if(Vr=xe(Er)*at,Vr+jr>vn)throw ut(fe);sn=Vr/at}else return $e(tr)?Fe(Bt,tr):ie(Be,Bt,tr);for(Ge(Zt,{buffer:Tr,byteOffset:jr,byteLength:Vr,length:sn,view:new nt(Tr)});zr<sn;)zt(Zt,zr++)}),Ee&&Ee(Bt,Ot),St=Bt.prototype=Te(lt)),St.constructor!==Bt&&de(St,"constructor",Bt),de(St,yt,Bt),Rt&&de(St,Rt,kt),ft[kt]=Bt,re({global:!0,forced:Bt!=$t,sham:!xt},ft),le in Bt||de(Bt,le,at),le in St||de(St,le,at),Ie(kt)}):Ae.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/fails"),ie=x("../internals/check-correctness-of-iteration"),oe=x("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,se=re.ArrayBuffer,pe=re.Int8Array;Ae.exports=!oe||!z(function(){pe(1)})||!z(function(){new pe(-1)})||!ie(function(ne){new pe,new pe(null),new pe(1.5),new pe(ne)},!0)||z(function(){return new pe(new se(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(x,Ae,me){var re=x("../internals/array-from-constructor-and-list"),z=x("../internals/typed-array-species-constructor");Ae.exports=function(ie,oe){return re(z(ie),oe)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(x,Ae,me){var re=x("../internals/function-bind-context"),z=x("../internals/function-call"),ie=x("../internals/a-constructor"),oe=x("../internals/to-object"),se=x("../internals/length-of-array-like"),pe=x("../internals/get-iterator"),ne=x("../internals/get-iterator-method"),ae=x("../internals/is-array-iterator-method"),ue=x("../internals/array-buffer-view-core").aTypedArrayConstructor;Ae.exports=function(he){var xe=ie(this),Se=oe(he),we=arguments.length,be=we>1?arguments[1]:void 0,Me=be!==void 0,Le=ne(Se),Ce,Ne,Te,De,Ee,Pe;if(Le&&!ae(Le))for(Ee=pe(Se,Le),Pe=Ee.next,Se=[];!(De=z(Pe,Ee)).done;)Se.push(De.value);for(Me&&we>2&&(be=re(be,arguments[2])),Ne=se(Se),Te=new(ue(xe))(Ne),Ce=0;Ne>Ce;Ce++)Te[Ce]=Me?be(Se[Ce],Ce):Se[Ce];return Te}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(x,Ae,me){var re=x("../internals/array-buffer-view-core"),z=x("../internals/species-constructor"),ie=re.TYPED_ARRAY_CONSTRUCTOR,oe=re.aTypedArrayConstructor;Ae.exports=function(se){return oe(z(se,se[ie]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(x,Ae,me){var re=x("../internals/function-uncurry-this"),z=0,ie=Math.random(),oe=re(1 .toString);Ae.exports=function(se){return"Symbol("+(se===void 0?"":se)+")_"+oe(++z+ie,36)}},{"../internals/function-uncurry-this":157}],264:[function(x,Ae,me){var re=x("../internals/native-symbol");Ae.exports=re&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(x,Ae,me){var re=x("../internals/descriptors"),z=x("../internals/fails");Ae.exports=re&&z(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(x,Ae,me){var re=x("../internals/global"),z=re.TypeError;Ae.exports=function(ie,oe){if(ie<oe)throw z("Not enough arguments");return ie}},{"../internals/global":163}],267:[function(x,Ae,me){var re=x("../internals/well-known-symbol");me.f=re},{"../internals/well-known-symbol":268}],268:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/shared"),ie=x("../internals/has-own-property"),oe=x("../internals/uid"),se=x("../internals/native-symbol"),pe=x("../internals/use-symbol-as-uid"),ne=z("wks"),ae=re.Symbol,ue=ae&&ae.for,de=pe?ae:ae&&ae.withoutSetter||oe;Ae.exports=function(he){if(!ie(ne,he)||!(se||typeof ne[he]=="string")){var xe="Symbol."+he;se&&ie(ae,he)?ne[he]=ae[he]:pe&&ue?ne[he]=ue(xe):ne[he]=de(xe)}return ne[he]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(x,Ae,me){Ae.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/global"),ie=x("../internals/array-buffer"),oe=x("../internals/set-species"),se="ArrayBuffer",pe=ie[se],ne=z[se];re({global:!0,forced:ne!==pe},{ArrayBuffer:pe}),oe(se)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/function-uncurry-this"),ie=x("../internals/fails"),oe=x("../internals/array-buffer"),se=x("../internals/an-object"),pe=x("../internals/to-absolute-index"),ne=x("../internals/to-length"),ae=x("../internals/species-constructor"),ue=oe.ArrayBuffer,de=oe.DataView,he=de.prototype,xe=z(ue.prototype.slice),Se=z(he.getUint8),we=z(he.setUint8),be=ie(function(){return!new ue(2).slice(1,void 0).byteLength});re({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:be},{slice:function(Le,Ce){if(xe&&Ce===void 0)return xe(se(this),Le);for(var Ne=se(this).byteLength,Te=pe(Le,Ne),De=pe(Ce===void 0?Ne:Ce,Ne),Ee=new(ae(this,ue))(ne(De-Te)),Pe=new de(this),Be=new de(Ee),Ve=0;Te<De;)we(Be,Ve++,Se(Pe,Te++));return Ee}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/global"),ie=x("../internals/fails"),oe=x("../internals/is-array"),se=x("../internals/is-object"),pe=x("../internals/to-object"),ne=x("../internals/length-of-array-like"),ae=x("../internals/create-property"),ue=x("../internals/array-species-create"),de=x("../internals/array-method-has-species-support"),he=x("../internals/well-known-symbol"),xe=x("../internals/engine-v8-version"),Se=he("isConcatSpreadable"),we=9007199254740991,be="Maximum allowed index exceeded",Me=z.TypeError,Le=xe>=51||!ie(function(){var De=[];return De[Se]=!1,De.concat()[0]!==De}),Ce=de("concat"),Ne=function(De){if(!se(De))return!1;var Ee=De[Se];return Ee!==void 0?!!Ee:oe(De)},Te=!Le||!Ce;re({target:"Array",proto:!0,forced:Te},{concat:function(Ee){var Pe=pe(this),Be=ue(Pe,0),Ve=0,Ie,Ze,Qe,tt,it;for(Ie=-1,Qe=arguments.length;Ie<Qe;Ie++)if(it=Ie===-1?Pe:arguments[Ie],Ne(it)){if(tt=ne(it),Ve+tt>we)throw Me(be);for(Ze=0;Ze<tt;Ze++,Ve++)Ze in it&&ae(Be,Ve,it[Ze])}else{if(Ve>=we)throw Me(be);ae(Be,Ve++,it)}return Be.length=Ve,Be}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(x,Ae,me){var re=x("../internals/export"),z=x("../internals/array-fill"),ie=x("../internals/add-to-unscopables");re({target:"Array",proto:!0},{fill:z}),ie("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/array-iteration").filter,ie=x("../internals/array-method-has-species-support"),oe=ie("filter");re({target:"Array",proto:!0,forced:!oe},{filter:function(pe){return z(this,pe,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/array-iteration").find,ie=x("../internals/add-to-unscopables"),oe="find",se=!0;oe in[]&&Array(1)[oe](function(){se=!1}),re({target:"Array",proto:!0,forced:se},{find:function(ne){return z(this,ne,arguments.length>1?arguments[1]:void 0)}}),ie(oe)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(x,Ae,me){var re=x("../internals/export"),z=x("../internals/array-from"),ie=x("../internals/check-correctness-of-iteration"),oe=!ie(function(se){Array.from(se)});re({target:"Array",stat:!0,forced:oe},{from:z})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/array-includes").includes,ie=x("../internals/add-to-unscopables");re({target:"Array",proto:!0},{includes:function(se){return z(this,se,arguments.length>1?arguments[1]:void 0)}}),ie("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(x,Ae,me){"use strict";var re=x("../internals/to-indexed-object"),z=x("../internals/add-to-unscopables"),ie=x("../internals/iterators"),oe=x("../internals/internal-state"),se=x("../internals/object-define-property").f,pe=x("../internals/define-iterator"),ne=x("../internals/is-pure"),ae=x("../internals/descriptors"),ue="Array Iterator",de=oe.set,he=oe.getterFor(ue);Ae.exports=pe(Array,"Array",function(Se,we){de(this,{type:ue,target:re(Se),index:0,kind:we})},function(){var Se=he(this),we=Se.target,be=Se.kind,Me=Se.index++;return!we||Me>=we.length?(Se.target=void 0,{value:void 0,done:!0}):be=="keys"?{value:Me,done:!1}:be=="values"?{value:we[Me],done:!1}:{value:[Me,we[Me]],done:!1}},"values");var xe=ie.Arguments=ie.Array;if(z("keys"),z("values"),z("entries"),!ne&&ae&&xe.name!=="values")try{se(xe,"name",{value:"values"})}catch(Se){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/function-uncurry-this"),ie=x("../internals/indexed-object"),oe=x("../internals/to-indexed-object"),se=x("../internals/array-method-is-strict"),pe=z([].join),ne=ie!=Object,ae=se("join",",");re({target:"Array",proto:!0,forced:ne||!ae},{join:function(de){return pe(oe(this),de===void 0?",":de)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/array-iteration").map,ie=x("../internals/array-method-has-species-support"),oe=ie("map");re({target:"Array",proto:!0,forced:!oe},{map:function(pe){return z(this,pe,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/global"),ie=x("../internals/is-array"),oe=x("../internals/is-constructor"),se=x("../internals/is-object"),pe=x("../internals/to-absolute-index"),ne=x("../internals/length-of-array-like"),ae=x("../internals/to-indexed-object"),ue=x("../internals/create-property"),de=x("../internals/well-known-symbol"),he=x("../internals/array-method-has-species-support"),xe=x("../internals/array-slice"),Se=he("slice"),we=de("species"),be=z.Array,Me=Math.max;re({target:"Array",proto:!0,forced:!Se},{slice:function(Ce,Ne){var Te=ae(this),De=ne(Te),Ee=pe(Ce,De),Pe=pe(Ne===void 0?De:Ne,De),Be,Ve,Ie;if(ie(Te)&&(Be=Te.constructor,oe(Be)&&(Be===be||ie(Be.prototype))?Be=void 0:se(Be)&&(Be=Be[we],Be===null&&(Be=void 0)),Be===be||Be===void 0))return xe(Te,Ee,Pe);for(Ve=new(Be===void 0?be:Be)(Me(Pe-Ee,0)),Ie=0;Ee<Pe;Ee++,Ie++)Ee in Te&&ue(Ve,Ie,Te[Ee]);return Ve.length=Ie,Ve}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/function-uncurry-this"),ie=x("../internals/a-callable"),oe=x("../internals/to-object"),se=x("../internals/length-of-array-like"),pe=x("../internals/to-string"),ne=x("../internals/fails"),ae=x("../internals/array-sort"),ue=x("../internals/array-method-is-strict"),de=x("../internals/engine-ff-version"),he=x("../internals/engine-is-ie-or-edge"),xe=x("../internals/engine-v8-version"),Se=x("../internals/engine-webkit-version"),we=[],be=z(we.sort),Me=z(we.push),Le=ne(function(){we.sort(void 0)}),Ce=ne(function(){we.sort(null)}),Ne=ue("sort"),Te=!ne(function(){if(xe)return xe<70;if(!(de&&de>3)){if(he)return!0;if(Se)return Se<603;var Pe="",Be,Ve,Ie,Ze;for(Be=65;Be<76;Be++){switch(Ve=String.fromCharCode(Be),Be){case 66:case 69:case 70:case 72:Ie=3;break;case 68:case 71:Ie=4;break;default:Ie=2}for(Ze=0;Ze<47;Ze++)we.push({k:Ve+Ze,v:Ie})}for(we.sort(function(Qe,tt){return tt.v-Qe.v}),Ze=0;Ze<we.length;Ze++)Ve=we[Ze].k.charAt(0),Pe.charAt(Pe.length-1)!==Ve&&(Pe+=Ve);return Pe!=="DGBEFHACIJK"}}),De=Le||!Ce||!Ne||!Te,Ee=function(Pe){return function(Be,Ve){return Ve===void 0?-1:Be===void 0?1:Pe!==void 0?+Pe(Be,Ve)||0:pe(Be)>pe(Ve)?1:-1}};re({target:"Array",proto:!0,forced:De},{sort:function(Be){Be!==void 0&&ie(Be);var Ve=oe(this);if(Te)return Be===void 0?be(Ve):be(Ve,Be);var Ie=[],Ze=se(Ve),Qe,tt;for(tt=0;tt<Ze;tt++)tt in Ve&&Me(Ie,Ve[tt]);for(ae(Ie,Ee(Be)),Qe=Ie.length,tt=0;tt<Qe;)Ve[tt]=Ie[tt++];for(;tt<Ze;)delete Ve[tt++];return Ve}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/global"),ie=x("../internals/to-absolute-index"),oe=x("../internals/to-integer-or-infinity"),se=x("../internals/length-of-array-like"),pe=x("../internals/to-object"),ne=x("../internals/array-species-create"),ae=x("../internals/create-property"),ue=x("../internals/array-method-has-species-support"),de=ue("splice"),he=z.TypeError,xe=Math.max,Se=Math.min,we=9007199254740991,be="Maximum allowed length exceeded";re({target:"Array",proto:!0,forced:!de},{splice:function(Le,Ce){var Ne=pe(this),Te=se(Ne),De=ie(Le,Te),Ee=arguments.length,Pe,Be,Ve,Ie,Ze,Qe;if(Ee===0?Pe=Be=0:Ee===1?(Pe=0,Be=Te-De):(Pe=Ee-2,Be=Se(xe(oe(Ce),0),Te-De)),Te+Pe-Be>we)throw he(be);for(Ve=ne(Ne,Be),Ie=0;Ie<Be;Ie++)Ze=De+Ie,Ze in Ne&&ae(Ve,Ie,Ne[Ze]);if(Ve.length=Be,Pe<Be){for(Ie=De;Ie<Te-Be;Ie++)Ze=Ie+Be,Qe=Ie+Pe,Ze in Ne?Ne[Qe]=Ne[Ze]:delete Ne[Qe];for(Ie=Te;Ie>Te-Be+Pe;Ie--)delete Ne[Ie-1]}else if(Pe>Be)for(Ie=Te-Be;Ie>De;Ie--)Ze=Ie+Be-1,Qe=Ie+Pe-1,Ze in Ne?Ne[Qe]=Ne[Ze]:delete Ne[Qe];for(Ie=0;Ie<Pe;Ie++)Ne[Ie+De]=arguments[Ie+2];return Ne.length=Te-Be+Pe,Ve}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(x,Ae,me){var re=x("../internals/descriptors"),z=x("../internals/function-name").EXISTS,ie=x("../internals/function-uncurry-this"),oe=x("../internals/object-define-property").f,se=Function.prototype,pe=ie(se.toString),ne=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ae=ie(ne.exec),ue="name";re&&!z&&oe(se,ue,{configurable:!0,get:function(){try{return ae(ne,pe(this))[1]}catch(de){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(x,Ae,me){var re=x("../internals/export"),z=x("../internals/get-built-in"),ie=x("../internals/function-apply"),oe=x("../internals/function-call"),se=x("../internals/function-uncurry-this"),pe=x("../internals/fails"),ne=x("../internals/is-array"),ae=x("../internals/is-callable"),ue=x("../internals/is-object"),de=x("../internals/is-symbol"),he=x("../internals/array-slice"),xe=x("../internals/native-symbol"),Se=z("JSON","stringify"),we=se(/./.exec),be=se("".charAt),Me=se("".charCodeAt),Le=se("".replace),Ce=se(1 .toString),Ne=/[\uD800-\uDFFF]/g,Te=/^[\uD800-\uDBFF]$/,De=/^[\uDC00-\uDFFF]$/,Ee=!xe||pe(function(){var Ie=z("Symbol")();return Se([Ie])!="[null]"||Se({a:Ie})!="{}"||Se(Object(Ie))!="{}"}),Pe=pe(function(){return Se("\uDF06\uD834")!=='"\\udf06\\ud834"'||Se("\uDEAD")!=='"\\udead"'}),Be=function(Ie,Ze){var Qe=he(arguments),tt=Ze;if(!(!ue(Ze)&&Ie===void 0||de(Ie)))return ne(Ze)||(Ze=function(it,ht){if(ae(tt)&&(ht=oe(tt,this,it,ht)),!de(ht))return ht}),Qe[1]=Ze,ie(Se,null,Qe)},Ve=function(Ie,Ze,Qe){var tt=be(Qe,Ze-1),it=be(Qe,Ze+1);return we(Te,Ie)&&!we(De,it)||we(De,Ie)&&!we(Te,tt)?"\\u"+Ce(Me(Ie,0),16):Ie};Se&&re({target:"JSON",stat:!0,forced:Ee||Pe},{stringify:function(Ze,Qe,tt){var it=he(arguments),ht=ie(Ee?Be:Se,null,it);return Pe&&typeof ht=="string"?Le(ht,Ne,Ve):ht}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(x,Ae,me){"use strict";var re=x("../internals/descriptors"),z=x("../internals/global"),ie=x("../internals/function-uncurry-this"),oe=x("../internals/is-forced"),se=x("../internals/redefine"),pe=x("../internals/has-own-property"),ne=x("../internals/inherit-if-required"),ae=x("../internals/object-is-prototype-of"),ue=x("../internals/is-symbol"),de=x("../internals/to-primitive"),he=x("../internals/fails"),xe=x("../internals/object-get-own-property-names").f,Se=x("../internals/object-get-own-property-descriptor").f,we=x("../internals/object-define-property").f,be=x("../internals/this-number-value"),Me=x("../internals/string-trim").trim,Le="Number",Ce=z[Le],Ne=Ce.prototype,Te=z.TypeError,De=ie("".slice),Ee=ie("".charCodeAt),Pe=function(tt){var it=de(tt,"number");return typeof it=="bigint"?it:Be(it)},Be=function(tt){var it=de(tt,"number"),ht,Ge,Xe,ct,pt,ut,rt,qe;if(ue(it))throw Te("Cannot convert a Symbol value to a number");if(typeof it=="string"&&it.length>2){if(it=Me(it),ht=Ee(it,0),ht===43||ht===45){if(Ge=Ee(it,2),Ge===88||Ge===120)return NaN}else if(ht===48){switch(Ee(it,1)){case 66:case 98:Xe=2,ct=49;break;case 79:case 111:Xe=8,ct=55;break;default:return+it}for(pt=De(it,2),ut=pt.length,rt=0;rt<ut;rt++)if(qe=Ee(pt,rt),qe<48||qe>ct)return NaN;return parseInt(pt,Xe)}}return+it};if(oe(Le,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var Ve=function(it){var ht=arguments.length<1?0:Ce(Pe(it)),Ge=this;return ae(Ne,Ge)&&he(function(){be(Ge)})?ne(Object(ht),Ge,Ve):ht},Ie=re?xe(Ce):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ze=0,Qe;Ie.length>Ze;Ze++)pe(Ce,Qe=Ie[Ze])&&!pe(Ve,Qe)&&we(Ve,Qe,Se(Ce,Qe));Ve.prototype=Ne,Ne.constructor=Ve,se(z,Le,Ve)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(x,Ae,me){var re=x("../internals/export"),z=x("../internals/object-assign");re({target:"Object",stat:!0,forced:Object.assign!==z},{assign:z})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(x,Ae,me){var re=x("../internals/export"),z=x("../internals/object-to-array").entries;re({target:"Object",stat:!0},{entries:function(oe){return z(oe)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(x,Ae,me){var re=x("../internals/export"),z=x("../internals/native-symbol"),ie=x("../internals/fails"),oe=x("../internals/object-get-own-property-symbols"),se=x("../internals/to-object"),pe=!z||ie(function(){oe.f(1)});re({target:"Object",stat:!0,forced:pe},{getOwnPropertySymbols:function(ae){var ue=oe.f;return ue?ue(se(ae)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(x,Ae,me){var re=x("../internals/export"),z=x("../internals/to-object"),ie=x("../internals/object-keys"),oe=x("../internals/fails"),se=oe(function(){ie(1)});re({target:"Object",stat:!0,forced:se},{keys:function(ne){return ie(z(ne))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(x,Ae,me){var re=x("../internals/to-string-tag-support"),z=x("../internals/redefine"),ie=x("../internals/object-to-string");re||z(Object.prototype,"toString",ie,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/function-call"),ie=x("../internals/a-callable"),oe=x("../internals/new-promise-capability"),se=x("../internals/perform"),pe=x("../internals/iterate"),ne=x("../internals/promise-statics-incorrect-iteration");re({target:"Promise",stat:!0,forced:ne},{all:function(ue){var de=this,he=oe.f(de),xe=he.resolve,Se=he.reject,we=se(function(){var be=ie(de.resolve),Me=[],Le=0,Ce=1;pe(ue,function(Ne){var Te=Le++,De=!1;Ce++,z(be,de,Ne).then(function(Ee){De||(De=!0,Me[Te]=Ee,--Ce||xe(Me))},Se)}),--Ce||xe(Me)});return we.error&&Se(we.value),he.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/is-pure"),ie=x("../internals/promise-constructor-detection").CONSTRUCTOR,oe=x("../internals/promise-native-constructor"),se=x("../internals/get-built-in"),pe=x("../internals/is-callable"),ne=x("../internals/redefine"),ae=oe&&oe.prototype;if(re({target:"Promise",proto:!0,forced:ie,real:!0},{catch:function(de){return this.then(void 0,de)}}),!z&&pe(oe)){var ue=se("Promise").prototype.catch;ae.catch!==ue&&ne(ae,"catch",ue,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/is-pure"),ie=x("../internals/engine-is-node"),oe=x("../internals/global"),se=x("../internals/function-call"),pe=x("../internals/redefine"),ne=x("../internals/redefine-all"),ae=x("../internals/object-set-prototype-of"),ue=x("../internals/set-to-string-tag"),de=x("../internals/set-species"),he=x("../internals/a-callable"),xe=x("../internals/is-callable"),Se=x("../internals/is-object"),we=x("../internals/an-instance"),be=x("../internals/species-constructor"),Me=x("../internals/task").set,Le=x("../internals/microtask"),Ce=x("../internals/host-report-errors"),Ne=x("../internals/perform"),Te=x("../internals/queue"),De=x("../internals/internal-state"),Ee=x("../internals/promise-native-constructor"),Pe=x("../internals/promise-constructor-detection"),Be=x("../internals/new-promise-capability"),Ve="Promise",Ie=Pe.CONSTRUCTOR,Ze=Pe.REJECTION_EVENT,Qe=Pe.SUBCLASSING,tt=De.getterFor(Ve),it=De.set,ht=Ee&&Ee.prototype,Ge=Ee,Xe=ht,ct=oe.TypeError,pt=oe.document,ut=oe.process,rt=Be.f,qe=rt,nt=!!(pt&&pt.createEvent&&oe.dispatchEvent),xt="unhandledrejection",yt="rejectionhandled",Rt=0,Ot=1,lt=2,Ue=1,$e=2,le,fe,Fe,He,ye=function(Ct){var $t;return Se(Ct)&&xe($t=Ct.then)?$t:!1},Re=function(Ct,$t){var Bt=$t.value,St=$t.state==Ot,ft=St?Ct.ok:Ct.fail,dt=Ct.resolve,Ft=Ct.reject,zt=Ct.domain,Zt,tr,mr;try{ft?(St||($t.rejection===$e&&bt($t),$t.rejection=Ue),ft===!0?Zt=Bt:(zt&&zt.enter(),Zt=ft(Bt),zt&&(zt.exit(),mr=!0)),Zt===Ct.promise?Ft(ct("Promise-chain cycle")):(tr=ye(Zt))?se(tr,Zt,dt,Ft):dt(Zt)):Ft(Bt)}catch(Er){zt&&!mr&&zt.exit(),Ft(Er)}},ze=function(Ct,$t){Ct.notified||(Ct.notified=!0,Le(function(){for(var Bt=Ct.reactions,St;St=Bt.get();)Re(St,Ct);Ct.notified=!1,$t&&!Ct.rejection&&We(Ct)}))},Ke=function(Ct,$t,Bt){var St,ft;nt?(St=pt.createEvent("Event"),St.promise=$t,St.reason=Bt,St.initEvent(Ct,!1,!0),oe.dispatchEvent(St)):St={promise:$t,reason:Bt},!Ze&&(ft=oe["on"+Ct])?ft(St):Ct===xt&&Ce("Unhandled promise rejection",Bt)},We=function(Ct){se(Me,oe,function(){var $t=Ct.facade,Bt=Ct.value,St=st(Ct),ft;if(St&&(ft=Ne(function(){ie?ut.emit("unhandledRejection",Bt,$t):Ke(xt,$t,Bt)}),Ct.rejection=ie||st(Ct)?$e:Ue,ft.error))throw ft.value})},st=function(Ct){return Ct.rejection!==Ue&&!Ct.parent},bt=function(Ct){se(Me,oe,function(){var $t=Ct.facade;ie?ut.emit("rejectionHandled",$t):Ke(yt,$t,Ct.value)})},at=function(Ct,$t,Bt){return function(St){Ct($t,St,Bt)}},kt=function(Ct,$t,Bt){Ct.done||(Ct.done=!0,Bt&&(Ct=Bt),Ct.value=$t,Ct.state=lt,ze(Ct,!0))},Ht=function(Ct,$t,Bt){if(!Ct.done){Ct.done=!0,Bt&&(Ct=Bt);try{if(Ct.facade===$t)throw ct("Promise can't be resolved itself");var St=ye($t);St?Le(function(){var ft={done:!1};try{se(St,$t,at(Ht,ft,Ct),at(kt,ft,Ct))}catch(dt){kt(ft,dt,Ct)}}):(Ct.value=$t,Ct.state=Ot,ze(Ct,!1))}catch(ft){kt({done:!1},ft,Ct)}}};if(Ie&&(Ge=function($t){we(this,Xe),he($t),se(le,this);var Bt=tt(this);try{$t(at(Ht,Bt),at(kt,Bt))}catch(St){kt(Bt,St)}},Xe=Ge.prototype,le=function($t){it(this,{type:Ve,done:!1,notified:!1,parent:!1,reactions:new Te,rejection:!1,state:Rt,value:void 0})},le.prototype=ne(Xe,{then:function($t,Bt){var St=tt(this),ft=rt(be(this,Ge));return St.parent=!0,ft.ok=xe($t)?$t:!0,ft.fail=xe(Bt)&&Bt,ft.domain=ie?ut.domain:void 0,St.state==Rt?St.reactions.add(ft):Le(function(){Re(ft,St)}),ft.promise}}),fe=function(){var Ct=new le,$t=tt(Ct);this.promise=Ct,this.resolve=at(Ht,$t),this.reject=at(kt,$t)},Be.f=rt=function(Ct){return Ct===Ge||Ct===Fe?new fe(Ct):qe(Ct)},!z&&xe(Ee)&&ht!==Object.prototype)){He=ht.then,Qe||pe(ht,"then",function($t,Bt){var St=this;return new Ge(function(ft,dt){se(He,St,ft,dt)}).then($t,Bt)},{unsafe:!0});try{delete ht.constructor}catch(Ct){}ae&&ae(ht,Xe)}re({global:!0,wrap:!0,forced:Ie},{Promise:Ge}),ue(Ge,Ve,!1,!0),de(Ve)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(x,Ae,me){x("../modules/es.promise.constructor"),x("../modules/es.promise.all"),x("../modules/es.promise.catch"),x("../modules/es.promise.race"),x("../modules/es.promise.reject"),x("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/function-call"),ie=x("../internals/a-callable"),oe=x("../internals/new-promise-capability"),se=x("../internals/perform"),pe=x("../internals/iterate"),ne=x("../internals/promise-statics-incorrect-iteration");re({target:"Promise",stat:!0,forced:ne},{race:function(ue){var de=this,he=oe.f(de),xe=he.reject,Se=se(function(){var we=ie(de.resolve);pe(ue,function(be){z(we,de,be).then(he.resolve,xe)})});return Se.error&&xe(Se.value),he.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/function-call"),ie=x("../internals/new-promise-capability"),oe=x("../internals/promise-constructor-detection").CONSTRUCTOR;re({target:"Promise",stat:!0,forced:oe},{reject:function(pe){var ne=ie.f(this);return z(ne.reject,void 0,pe),ne.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/get-built-in"),ie=x("../internals/is-pure"),oe=x("../internals/promise-native-constructor"),se=x("../internals/promise-constructor-detection").CONSTRUCTOR,pe=x("../internals/promise-resolve"),ne=z("Promise"),ae=ie&&!se;re({target:"Promise",stat:!0,forced:ie||se},{resolve:function(de){return pe(ae&&this===ne?oe:this,de)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(x,Ae,me){var re=x("../internals/descriptors"),z=x("../internals/global"),ie=x("../internals/function-uncurry-this"),oe=x("../internals/is-forced"),se=x("../internals/inherit-if-required"),pe=x("../internals/create-non-enumerable-property"),ne=x("../internals/object-get-own-property-names").f,ae=x("../internals/object-is-prototype-of"),ue=x("../internals/is-regexp"),de=x("../internals/to-string"),he=x("../internals/regexp-get-flags"),xe=x("../internals/regexp-sticky-helpers"),Se=x("../internals/proxy-accessor"),we=x("../internals/redefine"),be=x("../internals/fails"),Me=x("../internals/has-own-property"),Le=x("../internals/internal-state").enforce,Ce=x("../internals/set-species"),Ne=x("../internals/well-known-symbol"),Te=x("../internals/regexp-unsupported-dot-all"),De=x("../internals/regexp-unsupported-ncg"),Ee=Ne("match"),Pe=z.RegExp,Be=Pe.prototype,Ve=z.SyntaxError,Ie=ie(Be.exec),Ze=ie("".charAt),Qe=ie("".replace),tt=ie("".indexOf),it=ie("".slice),ht=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ge=/a/g,Xe=/a/g,ct=new Pe(Ge)!==Ge,pt=xe.MISSED_STICKY,ut=xe.UNSUPPORTED_Y,rt=re&&(!ct||pt||Te||De||be(function(){return Xe[Ee]=!1,Pe(Ge)!=Ge||Pe(Xe)==Xe||Pe(Ge,"i")!="/a/i"})),qe=function(Ot){for(var lt=Ot.length,Ue=0,$e="",le=!1,fe;Ue<=lt;Ue++){if(fe=Ze(Ot,Ue),fe==="\\"){$e+=fe+Ze(Ot,++Ue);continue}!le&&fe==="."?$e+="[\\s\\S]":(fe==="["?le=!0:fe==="]"&&(le=!1),$e+=fe)}return $e},nt=function(Ot){for(var lt=Ot.length,Ue=0,$e="",le=[],fe={},Fe=!1,He=!1,ye=0,Re="",ze;Ue<=lt;Ue++){if(ze=Ze(Ot,Ue),ze==="\\")ze=ze+Ze(Ot,++Ue);else if(ze==="]")Fe=!1;else if(!Fe)switch(!0){case ze==="[":Fe=!0;break;case ze==="(":Ie(ht,it(Ot,Ue+1))&&(Ue+=2,He=!0),$e+=ze,ye++;continue;case(ze===">"&&He):if(Re===""||Me(fe,Re))throw new Ve("Invalid capture group name");fe[Re]=!0,le[le.length]=[Re,ye],He=!1,Re="";continue}He?Re+=ze:$e+=ze}return[$e,le]};if(oe("RegExp",rt)){for(var xt=function(lt,Ue){var $e=ae(Be,this),le=ue(lt),fe=Ue===void 0,Fe=[],He=lt,ye,Re,ze,Ke,We,st;if(!$e&&le&&fe&<.constructor===xt)return lt;if((le||ae(Be,lt))&&(lt=lt.source,fe&&(Ue=he(He))),lt=lt===void 0?"":de(lt),Ue=Ue===void 0?"":de(Ue),He=lt,Te&&"dotAll"in Ge&&(Re=!!Ue&&tt(Ue,"s")>-1,Re&&(Ue=Qe(Ue,/s/g,""))),ye=Ue,pt&&"sticky"in Ge&&(ze=!!Ue&&tt(Ue,"y")>-1,ze&&ut&&(Ue=Qe(Ue,/y/g,""))),De&&(Ke=nt(lt),lt=Ke[0],Fe=Ke[1]),We=se(Pe(lt,Ue),$e?this:Be,xt),(Re||ze||Fe.length)&&(st=Le(We),Re&&(st.dotAll=!0,st.raw=xt(qe(lt),ye)),ze&&(st.sticky=!0),Fe.length&&(st.groups=Fe)),lt!==He)try{pe(We,"source",He===""?"(?:)":He)}catch(bt){}return We},yt=ne(Pe),Rt=0;yt.length>Rt;)Se(xt,Pe,yt[Rt++]);Be.constructor=xt,xt.prototype=Be,we(z,"RegExp",xt)}Ce("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/regexp-exec");re({target:"RegExp",proto:!0,forced:/./.exec!==z},{exec:z})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(x,Ae,me){"use strict";var re=x("../internals/function-name").PROPER,z=x("../internals/redefine"),ie=x("../internals/an-object"),oe=x("../internals/to-string"),se=x("../internals/fails"),pe=x("../internals/regexp-get-flags"),ne="toString",ae=RegExp.prototype,ue=ae[ne],de=se(function(){return ue.call({source:"a",flags:"b"})!="/a/b"}),he=re&&ue.name!=ne;(de||he)&&z(RegExp.prototype,ne,function(){var Se=ie(this),we=oe(Se.source),be=oe(pe(Se));return"/"+we+"/"+be},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/function-uncurry-this"),ie=x("../internals/not-a-regexp"),oe=x("../internals/require-object-coercible"),se=x("../internals/to-string"),pe=x("../internals/correct-is-regexp-logic"),ne=z("".indexOf);re({target:"String",proto:!0,forced:!pe("includes")},{includes:function(ue){return!!~ne(se(oe(this)),se(ie(ue)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(x,Ae,me){"use strict";var re=x("../internals/string-multibyte").charAt,z=x("../internals/to-string"),ie=x("../internals/internal-state"),oe=x("../internals/define-iterator"),se="String Iterator",pe=ie.set,ne=ie.getterFor(se);oe(String,"String",function(ae){pe(this,{type:se,string:z(ae),index:0})},function(){var ue=ne(this),de=ue.string,he=ue.index,xe;return he>=de.length?{value:void 0,done:!0}:(xe=re(de,he),ue.index+=xe.length,{value:xe,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(x,Ae,me){"use strict";var re=x("../internals/function-call"),z=x("../internals/fix-regexp-well-known-symbol-logic"),ie=x("../internals/an-object"),oe=x("../internals/to-length"),se=x("../internals/to-string"),pe=x("../internals/require-object-coercible"),ne=x("../internals/get-method"),ae=x("../internals/advance-string-index"),ue=x("../internals/regexp-exec-abstract");z("match",function(de,he,xe){return[function(we){var be=pe(this),Me=we==null?void 0:ne(we,de);return Me?re(Me,we,be):new RegExp(we)[de](se(be))},function(Se){var we=ie(this),be=se(Se),Me=xe(he,we,be);if(Me.done)return Me.value;if(!we.global)return ue(we,be);var Le=we.unicode;we.lastIndex=0;for(var Ce=[],Ne=0,Te;(Te=ue(we,be))!==null;){var De=se(Te[0]);Ce[Ne]=De,De===""&&(we.lastIndex=ae(be,oe(we.lastIndex),Le)),Ne++}return Ne===0?null:Ce}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(x,Ae,me){"use strict";var re=x("../internals/function-apply"),z=x("../internals/function-call"),ie=x("../internals/function-uncurry-this"),oe=x("../internals/fix-regexp-well-known-symbol-logic"),se=x("../internals/fails"),pe=x("../internals/an-object"),ne=x("../internals/is-callable"),ae=x("../internals/to-integer-or-infinity"),ue=x("../internals/to-length"),de=x("../internals/to-string"),he=x("../internals/require-object-coercible"),xe=x("../internals/advance-string-index"),Se=x("../internals/get-method"),we=x("../internals/get-substitution"),be=x("../internals/regexp-exec-abstract"),Me=x("../internals/well-known-symbol"),Le=Me("replace"),Ce=Math.max,Ne=Math.min,Te=ie([].concat),De=ie([].push),Ee=ie("".indexOf),Pe=ie("".slice),Be=function(Qe){return Qe===void 0?Qe:String(Qe)},Ve=function(){return"a".replace(/./,"$0")==="$0"}(),Ie=function(){return/./[Le]?/./[Le]("a","$0")==="":!1}(),Ze=!se(function(){var Qe=/./;return Qe.exec=function(){var tt=[];return tt.groups={a:"7"},tt},"".replace(Qe,"$<a>")!=="7"});oe("replace",function(Qe,tt,it){var ht=Ie?"$":"$0";return[function(Xe,ct){var pt=he(this),ut=Xe==null?void 0:Se(Xe,Le);return ut?z(ut,Xe,pt,ct):z(tt,de(pt),Xe,ct)},function(Ge,Xe){var ct=pe(this),pt=de(Ge);if(typeof Xe=="string"&&Ee(Xe,ht)===-1&&Ee(Xe,"$<")===-1){var ut=it(tt,ct,pt,Xe);if(ut.done)return ut.value}var rt=ne(Xe);rt||(Xe=de(Xe));var qe=ct.global;if(qe){var nt=ct.unicode;ct.lastIndex=0}for(var xt=[];;){var yt=be(ct,pt);if(yt===null||(De(xt,yt),!qe))break;var Rt=de(yt[0]);Rt===""&&(ct.lastIndex=xe(pt,ue(ct.lastIndex),nt))}for(var Ot="",lt=0,Ue=0;Ue<xt.length;Ue++){yt=xt[Ue];for(var $e=de(yt[0]),le=Ce(Ne(ae(yt.index),pt.length),0),fe=[],Fe=1;Fe<yt.length;Fe++)De(fe,Be(yt[Fe]));var He=yt.groups;if(rt){var ye=Te([$e],fe,le,pt);He!==void 0&&De(ye,He);var Re=de(re(Xe,void 0,ye))}else Re=we($e,pt,le,fe,He,Xe);le>=lt&&(Ot+=Pe(pt,lt,le)+Re,lt=le+$e.length)}return Ot+Pe(pt,lt)}]},!Ze||!Ve||Ie)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(x,Ae,me){"use strict";var re=x("../internals/function-call"),z=x("../internals/fix-regexp-well-known-symbol-logic"),ie=x("../internals/an-object"),oe=x("../internals/require-object-coercible"),se=x("../internals/same-value"),pe=x("../internals/to-string"),ne=x("../internals/get-method"),ae=x("../internals/regexp-exec-abstract");z("search",function(ue,de,he){return[function(Se){var we=oe(this),be=Se==null?void 0:ne(Se,ue);return be?re(be,Se,we):new RegExp(Se)[ue](pe(we))},function(xe){var Se=ie(this),we=pe(xe),be=he(de,Se,we);if(be.done)return be.value;var Me=Se.lastIndex;se(Me,0)||(Se.lastIndex=0);var Le=ae(Se,we);return se(Se.lastIndex,Me)||(Se.lastIndex=Me),Le===null?-1:Le.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(x,Ae,me){"use strict";var re=x("../internals/function-apply"),z=x("../internals/function-call"),ie=x("../internals/function-uncurry-this"),oe=x("../internals/fix-regexp-well-known-symbol-logic"),se=x("../internals/is-regexp"),pe=x("../internals/an-object"),ne=x("../internals/require-object-coercible"),ae=x("../internals/species-constructor"),ue=x("../internals/advance-string-index"),de=x("../internals/to-length"),he=x("../internals/to-string"),xe=x("../internals/get-method"),Se=x("../internals/array-slice-simple"),we=x("../internals/regexp-exec-abstract"),be=x("../internals/regexp-exec"),Me=x("../internals/regexp-sticky-helpers"),Le=x("../internals/fails"),Ce=Me.UNSUPPORTED_Y,Ne=4294967295,Te=Math.min,De=[].push,Ee=ie(/./.exec),Pe=ie(De),Be=ie("".slice),Ve=!Le(function(){var Ie=/(?:)/,Ze=Ie.exec;Ie.exec=function(){return Ze.apply(this,arguments)};var Qe="ab".split(Ie);return Qe.length!==2||Qe[0]!=="a"||Qe[1]!=="b"});oe("split",function(Ie,Ze,Qe){var tt;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?tt=function(it,ht){var Ge=he(ne(this)),Xe=ht===void 0?Ne:ht>>>0;if(Xe===0)return[];if(it===void 0)return[Ge];if(!se(it))return z(Ze,Ge,it,Xe);for(var ct=[],pt=(it.ignoreCase?"i":"")+(it.multiline?"m":"")+(it.unicode?"u":"")+(it.sticky?"y":""),ut=0,rt=new RegExp(it.source,pt+"g"),qe,nt,xt;(qe=z(be,rt,Ge))&&(nt=rt.lastIndex,!(nt>ut&&(Pe(ct,Be(Ge,ut,qe.index)),qe.length>1&&qe.index<Ge.length&&re(De,ct,Se(qe,1)),xt=qe[0].length,ut=nt,ct.length>=Xe)));)rt.lastIndex===qe.index&&rt.lastIndex++;return ut===Ge.length?(xt||!Ee(rt,""))&&Pe(ct,""):Pe(ct,Be(Ge,ut)),ct.length>Xe?Se(ct,0,Xe):ct}:"0".split(void 0,0).length?tt=function(it,ht){return it===void 0&&ht===0?[]:z(Ze,this,it,ht)}:tt=Ze,[function(ht,Ge){var Xe=ne(this),ct=ht==null?void 0:xe(ht,Ie);return ct?z(ct,ht,Xe,Ge):z(tt,he(Xe),ht,Ge)},function(it,ht){var Ge=pe(this),Xe=he(it),ct=Qe(tt,Ge,Xe,ht,tt!==Ze);if(ct.done)return ct.value;var pt=ae(Ge,RegExp),ut=Ge.unicode,rt=(Ge.ignoreCase?"i":"")+(Ge.multiline?"m":"")+(Ge.unicode?"u":"")+(Ce?"g":"y"),qe=new pt(Ce?"^(?:"+Ge.source+")":Ge,rt),nt=ht===void 0?Ne:ht>>>0;if(nt===0)return[];if(Xe.length===0)return we(qe,Xe)===null?[Xe]:[];for(var xt=0,yt=0,Rt=[];yt<Xe.length;){qe.lastIndex=Ce?0:yt;var Ot=we(qe,Ce?Be(Xe,yt):Xe),lt;if(Ot===null||(lt=Te(de(qe.lastIndex+(Ce?yt:0)),Xe.length))===xt)yt=ue(Xe,yt,ut);else{if(Pe(Rt,Be(Xe,xt,yt)),Rt.length===nt)return Rt;for(var Ue=1;Ue<=Ot.length-1;Ue++)if(Pe(Rt,Ot[Ue]),Rt.length===nt)return Rt;yt=xt=lt}}return Pe(Rt,Be(Xe,xt)),Rt}]},!Ve,Ce)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/string-trim").trim,ie=x("../internals/string-trim-forced");re({target:"String",proto:!0,forced:ie("trim")},{trim:function(){return z(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/global"),ie=x("../internals/function-call"),oe=x("../internals/function-uncurry-this"),se=x("../internals/is-pure"),pe=x("../internals/descriptors"),ne=x("../internals/native-symbol"),ae=x("../internals/fails"),ue=x("../internals/has-own-property"),de=x("../internals/object-is-prototype-of"),he=x("../internals/an-object"),xe=x("../internals/to-indexed-object"),Se=x("../internals/to-property-key"),we=x("../internals/to-string"),be=x("../internals/create-property-descriptor"),Me=x("../internals/object-create"),Le=x("../internals/object-keys"),Ce=x("../internals/object-get-own-property-names"),Ne=x("../internals/object-get-own-property-names-external"),Te=x("../internals/object-get-own-property-symbols"),De=x("../internals/object-get-own-property-descriptor"),Ee=x("../internals/object-define-property"),Pe=x("../internals/object-define-properties"),Be=x("../internals/object-property-is-enumerable"),Ve=x("../internals/redefine"),Ie=x("../internals/shared"),Ze=x("../internals/shared-key"),Qe=x("../internals/hidden-keys"),tt=x("../internals/uid"),it=x("../internals/well-known-symbol"),ht=x("../internals/well-known-symbol-wrapped"),Ge=x("../internals/define-well-known-symbol"),Xe=x("../internals/symbol-define-to-primitive"),ct=x("../internals/set-to-string-tag"),pt=x("../internals/internal-state"),ut=x("../internals/array-iteration").forEach,rt=Ze("hidden"),qe="Symbol",nt="prototype",xt=pt.set,yt=pt.getterFor(qe),Rt=Object[nt],Ot=z.Symbol,lt=Ot&&Ot[nt],Ue=z.TypeError,$e=z.QObject,le=De.f,fe=Ee.f,Fe=Ne.f,He=Be.f,ye=oe([].push),Re=Ie("symbols"),ze=Ie("op-symbols"),Ke=Ie("wks"),We=!$e||!$e[nt]||!$e[nt].findChild,st=pe&&ae(function(){return Me(fe({},"a",{get:function(){return fe(this,"a",{value:7}).a}})).a!=7})?function(ft,dt,Ft){var zt=le(Rt,dt);zt&&delete Rt[dt],fe(ft,dt,Ft),zt&&ft!==Rt&&fe(Rt,dt,zt)}:fe,bt=function(ft,dt){var Ft=Re[ft]=Me(lt);return xt(Ft,{type:qe,tag:ft,description:dt}),pe||(Ft.description=dt),Ft},at=function(dt,Ft,zt){dt===Rt&&at(ze,Ft,zt),he(dt);var Zt=Se(Ft);return he(zt),ue(Re,Zt)?(zt.enumerable?(ue(dt,rt)&&dt[rt][Zt]&&(dt[rt][Zt]=!1),zt=Me(zt,{enumerable:be(0,!1)})):(ue(dt,rt)||fe(dt,rt,be(1,{})),dt[rt][Zt]=!0),st(dt,Zt,zt)):fe(dt,Zt,zt)},kt=function(dt,Ft){he(dt);var zt=xe(Ft),Zt=Le(zt).concat(St(zt));return ut(Zt,function(tr){(!pe||ie(Ct,zt,tr))&&at(dt,tr,zt[tr])}),dt},Ht=function(dt,Ft){return Ft===void 0?Me(dt):kt(Me(dt),Ft)},Ct=function(dt){var Ft=Se(dt),zt=ie(He,this,Ft);return this===Rt&&ue(Re,Ft)&&!ue(ze,Ft)?!1:zt||!ue(this,Ft)||!ue(Re,Ft)||ue(this,rt)&&this[rt][Ft]?zt:!0},$t=function(dt,Ft){var zt=xe(dt),Zt=Se(Ft);if(!(zt===Rt&&ue(Re,Zt)&&!ue(ze,Zt))){var tr=le(zt,Zt);return tr&&ue(Re,Zt)&&!(ue(zt,rt)&&zt[rt][Zt])&&(tr.enumerable=!0),tr}},Bt=function(dt){var Ft=Fe(xe(dt)),zt=[];return ut(Ft,function(Zt){!ue(Re,Zt)&&!ue(Qe,Zt)&&ye(zt,Zt)}),zt},St=function(ft){var dt=ft===Rt,Ft=Fe(dt?ze:xe(ft)),zt=[];return ut(Ft,function(Zt){ue(Re,Zt)&&(!dt||ue(Rt,Zt))&&ye(zt,Re[Zt])}),zt};ne||(Ot=function(){if(de(lt,this))throw Ue("Symbol is not a constructor");var dt=!arguments.length||arguments[0]===void 0?void 0:we(arguments[0]),Ft=tt(dt),zt=function(Zt){this===Rt&&ie(zt,ze,Zt),ue(this,rt)&&ue(this[rt],Ft)&&(this[rt][Ft]=!1),st(this,Ft,be(1,Zt))};return pe&&We&&st(Rt,Ft,{configurable:!0,set:zt}),bt(Ft,dt)},lt=Ot[nt],Ve(lt,"toString",function(){return yt(this).tag}),Ve(Ot,"withoutSetter",function(ft){return bt(tt(ft),ft)}),Be.f=Ct,Ee.f=at,Pe.f=kt,De.f=$t,Ce.f=Ne.f=Bt,Te.f=St,ht.f=function(ft){return bt(it(ft),ft)},pe&&(fe(lt,"description",{configurable:!0,get:function(){return yt(this).description}}),se||Ve(Rt,"propertyIsEnumerable",Ct,{unsafe:!0}))),re({global:!0,wrap:!0,forced:!ne,sham:!ne},{Symbol:Ot}),ut(Le(Ke),function(ft){Ge(ft)}),re({target:qe,stat:!0,forced:!ne},{useSetter:function(){We=!0},useSimple:function(){We=!1}}),re({target:"Object",stat:!0,forced:!ne,sham:!pe},{create:Ht,defineProperty:at,defineProperties:kt,getOwnPropertyDescriptor:$t}),re({target:"Object",stat:!0,forced:!ne},{getOwnPropertyNames:Bt}),Xe(),ct(Ot,qe),Qe[rt]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(x,Ae,me){"use strict";var re=x("../internals/export"),z=x("../internals/descriptors"),ie=x("../internals/global"),oe=x("../internals/function-uncurry-this"),se=x("../internals/has-own-property"),pe=x("../internals/is-callable"),ne=x("../internals/object-is-prototype-of"),ae=x("../internals/to-string"),ue=x("../internals/object-define-property").f,de=x("../internals/copy-constructor-properties"),he=ie.Symbol,xe=he&&he.prototype;if(z&&pe(he)&&(!("description"in xe)||he().description!==void 0)){var Se={},we=function(){var Ee=arguments.length<1||arguments[0]===void 0?void 0:ae(arguments[0]),Pe=ne(xe,this)?new he(Ee):Ee===void 0?he():he(Ee);return Ee===""&&(Se[Pe]=!0),Pe};de(we,he),we.prototype=xe,xe.constructor=we;var be=String(he("test"))=="Symbol(test)",Me=oe(xe.toString),Le=oe(xe.valueOf),Ce=/^Symbol\((.*)\)[^)]+$/,Ne=oe("".replace),Te=oe("".slice);ue(xe,"description",{configurable:!0,get:function(){var Ee=Le(this),Pe=Me(Ee);if(se(Se,Ee))return"";var Be=be?Te(Pe,7,-1):Ne(Pe,Ce,"$1");return Be===""?void 0:Be}}),re({global:!0,forced:!0},{Symbol:we})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(x,Ae,me){var re=x("../internals/export"),z=x("../internals/get-built-in"),ie=x("../internals/has-own-property"),oe=x("../internals/to-string"),se=x("../internals/shared"),pe=x("../internals/native-symbol-registry"),ne=se("string-to-symbol-registry"),ae=se("symbol-to-string-registry");re({target:"Symbol",stat:!0,forced:!pe},{for:function(ue){var de=oe(ue);if(ie(ne,de))return ne[de];var he=z("Symbol")(de);return ne[de]=he,ae[he]=de,he}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(x,Ae,me){var re=x("../internals/define-well-known-symbol");re("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(x,Ae,me){x("../modules/es.symbol.constructor"),x("../modules/es.symbol.for"),x("../modules/es.symbol.key-for"),x("../modules/es.json.stringify"),x("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(x,Ae,me){var re=x("../internals/export"),z=x("../internals/has-own-property"),ie=x("../internals/is-symbol"),oe=x("../internals/try-to-string"),se=x("../internals/shared"),pe=x("../internals/native-symbol-registry"),ne=se("symbol-to-string-registry");re({target:"Symbol",stat:!0,forced:!pe},{keyFor:function(ue){if(!ie(ue))throw TypeError(oe(ue)+" is not a symbol");if(z(ne,ue))return ne[ue]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(x,Ae,me){"use strict";var re=x("../internals/function-uncurry-this"),z=x("../internals/array-buffer-view-core"),ie=x("../internals/array-copy-within"),oe=re(ie),se=z.aTypedArray,pe=z.exportTypedArrayMethod;pe("copyWithin",function(ae,ue){return oe(se(this),ae,ue,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/array-iteration").every,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("every",function(pe){return z(ie(this),pe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/function-call"),ie=x("../internals/array-fill"),oe=re.aTypedArray,se=re.exportTypedArrayMethod;se("fill",function(ne){var ae=arguments.length;return z(ie,oe(this),ne,ae>1?arguments[1]:void 0,ae>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/array-iteration").filter,ie=x("../internals/typed-array-from-species-and-list"),oe=re.aTypedArray,se=re.exportTypedArrayMethod;se("filter",function(ne){var ae=z(oe(this),ne,arguments.length>1?arguments[1]:void 0);return ie(this,ae)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/array-iteration").findIndex,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("findIndex",function(pe){return z(ie(this),pe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/array-iteration").find,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("find",function(pe){return z(ie(this),pe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/array-iteration").forEach,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("forEach",function(pe){z(ie(this),pe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/array-includes").includes,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("includes",function(pe){return z(ie(this),pe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/array-includes").indexOf,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("indexOf",function(pe){return z(ie(this),pe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(x,Ae,me){"use strict";var re=x("../internals/global"),z=x("../internals/fails"),ie=x("../internals/function-uncurry-this"),oe=x("../internals/array-buffer-view-core"),se=x("../modules/es.array.iterator"),pe=x("../internals/well-known-symbol"),ne=pe("iterator"),ae=re.Uint8Array,ue=ie(se.values),de=ie(se.keys),he=ie(se.entries),xe=oe.aTypedArray,Se=oe.exportTypedArrayMethod,we=ae&&ae.prototype,be=!z(function(){we[ne].call([1])}),Me=!!we&&we.values&&we[ne]===we.values&&we.values.name==="values",Le=function(){return ue(xe(this))};Se("entries",function(){return he(xe(this))},be),Se("keys",function(){return de(xe(this))},be),Se("values",Le,be||!Me,{name:"values"}),Se(ne,Le,be||!Me,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/function-uncurry-this"),ie=re.aTypedArray,oe=re.exportTypedArrayMethod,se=z([].join);oe("join",function(ne){return se(ie(this),ne)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/function-apply"),ie=x("../internals/array-last-index-of"),oe=re.aTypedArray,se=re.exportTypedArrayMethod;se("lastIndexOf",function(ne){var ae=arguments.length;return z(ie,oe(this),ae>1?[ne,arguments[1]]:[ne])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/array-iteration").map,ie=x("../internals/typed-array-species-constructor"),oe=re.aTypedArray,se=re.exportTypedArrayMethod;se("map",function(ne){return z(oe(this),ne,arguments.length>1?arguments[1]:void 0,function(ae,ue){return new(ie(ae))(ue)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/array-reduce").right,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("reduceRight",function(pe){var ne=arguments.length;return z(ie(this),pe,ne,ne>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/array-reduce").left,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("reduce",function(pe){var ne=arguments.length;return z(ie(this),pe,ne,ne>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=re.aTypedArray,ie=re.exportTypedArrayMethod,oe=Math.floor;ie("reverse",function(){for(var pe=this,ne=z(pe).length,ae=oe(ne/2),ue=0,de;ue<ae;)de=pe[ue],pe[ue++]=pe[--ne],pe[ne]=de;return pe})},{"../internals/array-buffer-view-core":103}],331:[function(x,Ae,me){"use strict";var re=x("../internals/global"),z=x("../internals/function-call"),ie=x("../internals/array-buffer-view-core"),oe=x("../internals/length-of-array-like"),se=x("../internals/to-offset"),pe=x("../internals/to-object"),ne=x("../internals/fails"),ae=re.RangeError,ue=re.Int8Array,de=ue&&ue.prototype,he=de&&de.set,xe=ie.aTypedArray,Se=ie.exportTypedArrayMethod,we=!ne(function(){var Me=new Uint8ClampedArray(2);return z(he,Me,{length:1,0:3},1),Me[1]!==3}),be=we&&ie.NATIVE_ARRAY_BUFFER_VIEWS&&ne(function(){var Me=new ue(2);return Me.set(1),Me.set("2",1),Me[0]!==0||Me[1]!==2});Se("set",function(Le){xe(this);var Ce=se(arguments.length>1?arguments[1]:void 0,1),Ne=pe(Le);if(we)return z(he,this,Ne,Ce);var Te=this.length,De=oe(Ne),Ee=0;if(De+Ce>Te)throw ae("Wrong length");for(;Ee<De;)this[Ce+Ee]=Ne[Ee++]},!we||be)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/typed-array-species-constructor"),ie=x("../internals/fails"),oe=x("../internals/array-slice"),se=re.aTypedArray,pe=re.exportTypedArrayMethod,ne=ie(function(){new Int8Array(1).slice()});pe("slice",function(ue,de){for(var he=oe(se(this),ue,de),xe=z(this),Se=0,we=he.length,be=new xe(we);we>Se;)be[Se]=he[Se++];return be},ne)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/array-iteration").some,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("some",function(pe){return z(ie(this),pe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(x,Ae,me){"use strict";var re=x("../internals/global"),z=x("../internals/function-uncurry-this"),ie=x("../internals/fails"),oe=x("../internals/a-callable"),se=x("../internals/array-sort"),pe=x("../internals/array-buffer-view-core"),ne=x("../internals/engine-ff-version"),ae=x("../internals/engine-is-ie-or-edge"),ue=x("../internals/engine-v8-version"),de=x("../internals/engine-webkit-version"),he=pe.aTypedArray,xe=pe.exportTypedArrayMethod,Se=re.Uint16Array,we=Se&&z(Se.prototype.sort),be=!!we&&!(ie(function(){we(new Se(2),null)})&&ie(function(){we(new Se(2),{})})),Me=!!we&&!ie(function(){if(ue)return ue<74;if(ne)return ne<67;if(ae)return!0;if(de)return de<602;var Ce=new Se(516),Ne=Array(516),Te,De;for(Te=0;Te<516;Te++)De=Te%4,Ce[Te]=515-Te,Ne[Te]=Te-2*De+3;for(we(Ce,function(Ee,Pe){return(Ee/4|0)-(Pe/4|0)}),Te=0;Te<516;Te++)if(Ce[Te]!==Ne[Te])return!0}),Le=function(Ce){return function(Ne,Te){return Ce!==void 0?+Ce(Ne,Te)||0:Te!==Te?-1:Ne!==Ne?1:Ne===0&&Te===0?1/Ne>0&&1/Te<0?1:-1:Ne>Te}};xe("sort",function(Ne){return Ne!==void 0&&oe(Ne),Me?we(this,Ne):se(he(this),Le(Ne))},!Me||be)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core"),z=x("../internals/to-length"),ie=x("../internals/to-absolute-index"),oe=x("../internals/typed-array-species-constructor"),se=re.aTypedArray,pe=re.exportTypedArrayMethod;pe("subarray",function(ae,ue){var de=se(this),he=de.length,xe=ie(ae,he),Se=oe(de);return new Se(de.buffer,de.byteOffset+xe*de.BYTES_PER_ELEMENT,z((ue===void 0?he:ie(ue,he))-xe))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(x,Ae,me){"use strict";var re=x("../internals/global"),z=x("../internals/function-apply"),ie=x("../internals/array-buffer-view-core"),oe=x("../internals/fails"),se=x("../internals/array-slice"),pe=re.Int8Array,ne=ie.aTypedArray,ae=ie.exportTypedArrayMethod,ue=[].toLocaleString,de=!!pe&&oe(function(){ue.call(new pe(1))}),he=oe(function(){return[1,2].toLocaleString()!=new pe([1,2]).toLocaleString()})||!oe(function(){pe.prototype.toLocaleString.call([1,2])});ae("toLocaleString",function(){return z(ue,de?se(ne(this)):ne(this),se(arguments))},he)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(x,Ae,me){"use strict";var re=x("../internals/array-buffer-view-core").exportTypedArrayMethod,z=x("../internals/fails"),ie=x("../internals/global"),oe=x("../internals/function-uncurry-this"),se=ie.Uint8Array,pe=se&&se.prototype||{},ne=[].toString,ae=oe([].join);z(function(){ne.call({})})&&(ne=function(){return ae(this)});var ue=pe.toString!=ne;re("toString",ne,ue)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(x,Ae,me){var re=x("../internals/typed-array-constructor");re("Uint8",function(z){return function(oe,se,pe){return z(this,oe,se,pe)}})},{"../internals/typed-array-constructor":258}],339:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/dom-iterables"),ie=x("../internals/dom-token-list-prototype"),oe=x("../internals/array-for-each"),se=x("../internals/create-non-enumerable-property"),pe=function(ae){if(ae&&ae.forEach!==oe)try{se(ae,"forEach",oe)}catch(ue){ae.forEach=oe}};for(var ne in z)z[ne]&&pe(re[ne]&&re[ne].prototype);pe(ie)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(x,Ae,me){var re=x("../internals/global"),z=x("../internals/dom-iterables"),ie=x("../internals/dom-token-list-prototype"),oe=x("../modules/es.array.iterator"),se=x("../internals/create-non-enumerable-property"),pe=x("../internals/well-known-symbol"),ne=pe("iterator"),ae=pe("toStringTag"),ue=oe.values,de=function(xe,Se){if(xe){if(xe[ne]!==ue)try{se(xe,ne,ue)}catch(be){xe[ne]=ue}if(xe[ae]||se(xe,ae,Se),z[Se]){for(var we in oe)if(xe[we]!==oe[we])try{se(xe,we,oe[we])}catch(be){xe[we]=oe[we]}}}};for(var he in z)de(re[he]&&re[he].prototype,he);de(ie,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(x,Ae,me){function re(Me){return Array.isArray?Array.isArray(Me):be(Me)==="[object Array]"}me.isArray=re;function z(Me){return typeof Me=="boolean"}me.isBoolean=z;function ie(Me){return Me===null}me.isNull=ie;function oe(Me){return Me==null}me.isNullOrUndefined=oe;function se(Me){return typeof Me=="number"}me.isNumber=se;function pe(Me){return typeof Me=="string"}me.isString=pe;function ne(Me){return typeof Me=="symbol"}me.isSymbol=ne;function ae(Me){return Me===void 0}me.isUndefined=ae;function ue(Me){return be(Me)==="[object RegExp]"}me.isRegExp=ue;function de(Me){return typeof Me=="object"&&Me!==null}me.isObject=de;function he(Me){return be(Me)==="[object Date]"}me.isDate=he;function xe(Me){return be(Me)==="[object Error]"||Me instanceof Error}me.isError=xe;function Se(Me){return typeof Me=="function"}me.isFunction=Se;function we(Me){return Me===null||typeof Me=="boolean"||typeof Me=="number"||typeof Me=="string"||typeof Me=="symbol"||typeof Me=="undefined"}me.isPrimitive=we,me.isBuffer=x("buffer").Buffer.isBuffer;function be(Me){return Object.prototype.toString.call(Me)}},{buffer:90}],342:[function(x,Ae,me){(function(re){"use strict";var z=function(){var ne=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,ae=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,ue=/[^-+\dA-Z]/g;return function(de,he,xe,Se){if(arguments.length===1&&pe(de)==="string"&&!/\d/.test(de)&&(he=de,de=void 0),de=de||new Date,de instanceof Date||(de=new Date(de)),isNaN(de))throw TypeError("Invalid date");he=String(z.masks[he]||he||z.masks.default);var we=he.slice(0,4);(we==="UTC:"||we==="GMT:")&&(he=he.slice(4),xe=!0,we==="GMT:"&&(Se=!0));var be=xe?"getUTC":"get",Me=de[be+"Date"](),Le=de[be+"Day"](),Ce=de[be+"Month"](),Ne=de[be+"FullYear"](),Te=de[be+"Hours"](),De=de[be+"Minutes"](),Ee=de[be+"Seconds"](),Pe=de[be+"Milliseconds"](),Be=xe?0:de.getTimezoneOffset(),Ve=oe(de),Ie=se(de),Ze={d:Me,dd:ie(Me),ddd:z.i18n.dayNames[Le],dddd:z.i18n.dayNames[Le+7],m:Ce+1,mm:ie(Ce+1),mmm:z.i18n.monthNames[Ce],mmmm:z.i18n.monthNames[Ce+12],yy:String(Ne).slice(2),yyyy:Ne,h:Te%12||12,hh:ie(Te%12||12),H:Te,HH:ie(Te),M:De,MM:ie(De),s:Ee,ss:ie(Ee),l:ie(Pe,3),L:ie(Math.round(Pe/10)),t:Te<12?"a":"p",tt:Te<12?"am":"pm",T:Te<12?"A":"P",TT:Te<12?"AM":"PM",Z:Se?"GMT":xe?"UTC":(String(de).match(ae)||[""]).pop().replace(ue,""),o:(Be>0?"-":"+")+ie(Math.floor(Math.abs(Be)/60)*100+Math.abs(Be)%60,4),S:["th","st","nd","rd"][Me%10>3?0:(Me%100-Me%10!=10)*Me%10],W:Ve,N:Ie};return he.replace(ne,function(Qe){return Qe in Ze?Ze[Qe]:Qe.slice(1,Qe.length-1)})}}();z.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},z.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function ie(ne,ae){for(ne=String(ne),ae=ae||2;ne.length<ae;)ne="0"+ne;return ne}function oe(ne){var ae=new Date(ne.getFullYear(),ne.getMonth(),ne.getDate());ae.setDate(ae.getDate()-(ae.getDay()+6)%7+3);var ue=new Date(ae.getFullYear(),0,4);ue.setDate(ue.getDate()-(ue.getDay()+6)%7+3);var de=ae.getTimezoneOffset()-ue.getTimezoneOffset();ae.setHours(ae.getHours()-de);var he=(ae-ue)/(864e5*7);return 1+Math.floor(he)}function se(ne){var ae=ne.getDay();return ae===0&&(ae=7),ae}function pe(ne){return ne===null?"null":ne===void 0?"undefined":typeof ne!="object"?typeof ne:Array.isArray(ne)?"array":{}.toString.call(ne).slice(8,-1).toLowerCase()}typeof ke=="function"&&ke.amd?ke(function(){return z}):typeof me=="object"?Ae.exports=z:re.dateFormat=z})(this)},{}],343:[function(x,Ae,me){"use strict";var re=/["'&<>]/;Ae.exports=z;function z(ie){var oe=""+ie,se=re.exec(oe);if(!se)return oe;var pe,ne="",ae=0,ue=0;for(ae=se.index;ae<oe.length;ae++){switch(oe.charCodeAt(ae)){case 34:pe=""";break;case 38:pe="&";break;case 39:pe="'";break;case 60:pe="<";break;case 62:pe=">";break;default:continue}ue!==ae&&(ne+=oe.substring(ue,ae)),ue=ae+1,ne+=pe}return ue!==ae?ne+oe.substring(ue,ae):ne}},{}],344:[function(x,Ae,me){"use strict";var re=typeof Reflect=="object"?Reflect:null,z=re&&typeof re.apply=="function"?re.apply:function(Ee,Pe,Be){return Function.prototype.apply.call(Ee,Pe,Be)},ie;re&&typeof re.ownKeys=="function"?ie=re.ownKeys:Object.getOwnPropertySymbols?ie=function(Ee){return Object.getOwnPropertyNames(Ee).concat(Object.getOwnPropertySymbols(Ee))}:ie=function(Ee){return Object.getOwnPropertyNames(Ee)};function oe(De){console&&console.warn&&console.warn(De)}var se=Number.isNaN||function(Ee){return Ee!==Ee};function pe(){pe.init.call(this)}Ae.exports=pe,Ae.exports.once=Ce,pe.EventEmitter=pe,pe.prototype._events=void 0,pe.prototype._eventsCount=0,pe.prototype._maxListeners=void 0;var ne=10;function ae(De){if(typeof De!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof De)}Object.defineProperty(pe,"defaultMaxListeners",{enumerable:!0,get:function(){return ne},set:function(De){if(typeof De!="number"||De<0||se(De))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+De+".");ne=De}}),pe.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},pe.prototype.setMaxListeners=function(Ee){if(typeof Ee!="number"||Ee<0||se(Ee))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ee+".");return this._maxListeners=Ee,this};function ue(De){return De._maxListeners===void 0?pe.defaultMaxListeners:De._maxListeners}pe.prototype.getMaxListeners=function(){return ue(this)},pe.prototype.emit=function(Ee){for(var Pe=[],Be=1;Be<arguments.length;Be++)Pe.push(arguments[Be]);var Ve=Ee==="error",Ie=this._events;if(Ie!==void 0)Ve=Ve&&Ie.error===void 0;else if(!Ve)return!1;if(Ve){var Ze;if(Pe.length>0&&(Ze=Pe[0]),Ze instanceof Error)throw Ze;var Qe=new Error("Unhandled error."+(Ze?" ("+Ze.message+")":""));throw Qe.context=Ze,Qe}var tt=Ie[Ee];if(tt===void 0)return!1;if(typeof tt=="function")z(tt,this,Pe);else for(var it=tt.length,ht=be(tt,it),Be=0;Be<it;++Be)z(ht[Be],this,Pe);return!0};function de(De,Ee,Pe,Be){var Ve,Ie,Ze;if(ae(Pe),Ie=De._events,Ie===void 0?(Ie=De._events=Object.create(null),De._eventsCount=0):(Ie.newListener!==void 0&&(De.emit("newListener",Ee,Pe.listener?Pe.listener:Pe),Ie=De._events),Ze=Ie[Ee]),Ze===void 0)Ze=Ie[Ee]=Pe,++De._eventsCount;else if(typeof Ze=="function"?Ze=Ie[Ee]=Be?[Pe,Ze]:[Ze,Pe]:Be?Ze.unshift(Pe):Ze.push(Pe),Ve=ue(De),Ve>0&&Ze.length>Ve&&!Ze.warned){Ze.warned=!0;var Qe=new Error("Possible EventEmitter memory leak detected. "+Ze.length+" "+String(Ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");Qe.name="MaxListenersExceededWarning",Qe.emitter=De,Qe.type=Ee,Qe.count=Ze.length,oe(Qe)}return De}pe.prototype.addListener=function(Ee,Pe){return de(this,Ee,Pe,!1)},pe.prototype.on=pe.prototype.addListener,pe.prototype.prependListener=function(Ee,Pe){return de(this,Ee,Pe,!0)};function he(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function xe(De,Ee,Pe){var Be={fired:!1,wrapFn:void 0,target:De,type:Ee,listener:Pe},Ve=he.bind(Be);return Ve.listener=Pe,Be.wrapFn=Ve,Ve}pe.prototype.once=function(Ee,Pe){return ae(Pe),this.on(Ee,xe(this,Ee,Pe)),this},pe.prototype.prependOnceListener=function(Ee,Pe){return ae(Pe),this.prependListener(Ee,xe(this,Ee,Pe)),this},pe.prototype.removeListener=function(Ee,Pe){var Be,Ve,Ie,Ze,Qe;if(ae(Pe),Ve=this._events,Ve===void 0)return this;if(Be=Ve[Ee],Be===void 0)return this;if(Be===Pe||Be.listener===Pe)--this._eventsCount===0?this._events=Object.create(null):(delete Ve[Ee],Ve.removeListener&&this.emit("removeListener",Ee,Be.listener||Pe));else if(typeof Be!="function"){for(Ie=-1,Ze=Be.length-1;Ze>=0;Ze--)if(Be[Ze]===Pe||Be[Ze].listener===Pe){Qe=Be[Ze].listener,Ie=Ze;break}if(Ie<0)return this;Ie===0?Be.shift():Me(Be,Ie),Be.length===1&&(Ve[Ee]=Be[0]),Ve.removeListener!==void 0&&this.emit("removeListener",Ee,Qe||Pe)}return this},pe.prototype.off=pe.prototype.removeListener,pe.prototype.removeAllListeners=function(Ee){var Pe,Be,Ve;if(Be=this._events,Be===void 0)return this;if(Be.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Be[Ee]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Be[Ee]),this;if(arguments.length===0){var Ie=Object.keys(Be),Ze;for(Ve=0;Ve<Ie.length;++Ve)Ze=Ie[Ve],Ze!=="removeListener"&&this.removeAllListeners(Ze);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Pe=Be[Ee],typeof Pe=="function")this.removeListener(Ee,Pe);else if(Pe!==void 0)for(Ve=Pe.length-1;Ve>=0;Ve--)this.removeListener(Ee,Pe[Ve]);return this};function Se(De,Ee,Pe){var Be=De._events;if(Be===void 0)return[];var Ve=Be[Ee];return Ve===void 0?[]:typeof Ve=="function"?Pe?[Ve.listener||Ve]:[Ve]:Pe?Le(Ve):be(Ve,Ve.length)}pe.prototype.listeners=function(Ee){return Se(this,Ee,!0)},pe.prototype.rawListeners=function(Ee){return Se(this,Ee,!1)},pe.listenerCount=function(De,Ee){return typeof De.listenerCount=="function"?De.listenerCount(Ee):we.call(De,Ee)},pe.prototype.listenerCount=we;function we(De){var Ee=this._events;if(Ee!==void 0){var Pe=Ee[De];if(typeof Pe=="function")return 1;if(Pe!==void 0)return Pe.length}return 0}pe.prototype.eventNames=function(){return this._eventsCount>0?ie(this._events):[]};function be(De,Ee){for(var Pe=new Array(Ee),Be=0;Be<Ee;++Be)Pe[Be]=De[Be];return Pe}function Me(De,Ee){for(;Ee+1<De.length;Ee++)De[Ee]=De[Ee+1];De.pop()}function Le(De){for(var Ee=new Array(De.length),Pe=0;Pe<Ee.length;++Pe)Ee[Pe]=De[Pe].listener||De[Pe];return Ee}function Ce(De,Ee){return new Promise(function(Pe,Be){function Ve(Ze){De.removeListener(Ee,Ie),Be(Ze)}function Ie(){typeof De.removeListener=="function"&&De.removeListener("error",Ve),Pe([].slice.call(arguments))}Te(De,Ee,Ie,{once:!0}),Ee!=="error"&&Ne(De,Ve,{once:!0})})}function Ne(De,Ee,Pe){typeof De.on=="function"&&Te(De,"error",Ee,Pe)}function Te(De,Ee,Pe,Be){if(typeof De.on=="function")Be.once?De.once(Ee,Pe):De.on(Ee,Pe);else if(typeof De.addEventListener=="function")De.addEventListener(Ee,function Ve(Ie){Be.once&&De.removeEventListener(Ee,Ve),Pe(Ie)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof De)}},{}],345:[function(x,Ae,me){"use strict";var re=x("is-callable"),z=Object.prototype.toString,ie=Object.prototype.hasOwnProperty,oe=function(ue,de,he){for(var xe=0,Se=ue.length;xe<Se;xe++)ie.call(ue,xe)&&(he==null?de(ue[xe],xe,ue):de.call(he,ue[xe],xe,ue))},se=function(ue,de,he){for(var xe=0,Se=ue.length;xe<Se;xe++)he==null?de(ue.charAt(xe),xe,ue):de.call(he,ue.charAt(xe),xe,ue)},pe=function(ue,de,he){for(var xe in ue)ie.call(ue,xe)&&(he==null?de(ue[xe],xe,ue):de.call(he,ue[xe],xe,ue))},ne=function(ue,de,he){if(!re(de))throw new TypeError("iterator must be a function");var xe;arguments.length>=3&&(xe=he),z.call(ue)==="[object Array]"?oe(ue,de,xe):typeof ue=="string"?se(ue,de,xe):pe(ue,de,xe)};Ae.exports=ne},{"is-callable":367}],346:[function(x,Ae,me){"use strict";var re="Function.prototype.bind called on incompatible ",z=Array.prototype.slice,ie=Object.prototype.toString,oe="[object Function]";Ae.exports=function(pe){var ne=this;if(typeof ne!="function"||ie.call(ne)!==oe)throw new TypeError(re+ne);for(var ae=z.call(arguments,1),ue,de=function(){if(this instanceof ue){var be=ne.apply(this,ae.concat(z.call(arguments)));return Object(be)===be?be:this}else return ne.apply(pe,ae.concat(z.call(arguments)))},he=Math.max(0,ne.length-ae.length),xe=[],Se=0;Se<he;Se++)xe.push("$"+Se);if(ue=Function("binder","return function ("+xe.join(",")+"){ return binder.apply(this,arguments); }")(de),ne.prototype){var we=function(){};we.prototype=ne.prototype,ue.prototype=new we,we.prototype=null}return ue}},{}],347:[function(x,Ae,me){"use strict";var re=x("./implementation");Ae.exports=Function.prototype.bind||re},{"./implementation":346}],348:[function(x,Ae,me){"use strict";var re,z=SyntaxError,ie=Function,oe=TypeError,se=function(tt){try{return ie('"use strict"; return ('+tt+").constructor;")()}catch(it){}},pe=Object.getOwnPropertyDescriptor;if(pe)try{pe({},"")}catch(tt){pe=null}var ne=function(){throw new oe},ae=pe?function(){try{return arguments.callee,ne}catch(tt){try{return pe(arguments,"callee").get}catch(it){return ne}}}():ne,ue=x("has-symbols")(),de=x("has-proto")(),he=Object.getPrototypeOf||(de?function(tt){return tt.__proto__}:null),xe={},Se=typeof Uint8Array=="undefined"||!he?re:he(Uint8Array),we={"%AggregateError%":typeof AggregateError=="undefined"?re:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?re:ArrayBuffer,"%ArrayIteratorPrototype%":ue&&he?he([][Symbol.iterator]()):re,"%AsyncFromSyncIteratorPrototype%":re,"%AsyncFunction%":xe,"%AsyncGenerator%":xe,"%AsyncGeneratorFunction%":xe,"%AsyncIteratorPrototype%":xe,"%Atomics%":typeof Atomics=="undefined"?re:Atomics,"%BigInt%":typeof BigInt=="undefined"?re:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?re:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?re:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?re:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?re:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?re:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?re:FinalizationRegistry,"%Function%":ie,"%GeneratorFunction%":xe,"%Int8Array%":typeof Int8Array=="undefined"?re:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?re:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?re:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ue&&he?he(he([][Symbol.iterator]())):re,"%JSON%":typeof JSON=="object"?JSON:re,"%Map%":typeof Map=="undefined"?re:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ue||!he?re:he(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?re:Promise,"%Proxy%":typeof Proxy=="undefined"?re:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?re:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?re:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ue||!he?re:he(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?re:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ue&&he?he(""[Symbol.iterator]()):re,"%Symbol%":ue?Symbol:re,"%SyntaxError%":z,"%ThrowTypeError%":ae,"%TypedArray%":Se,"%TypeError%":oe,"%Uint8Array%":typeof Uint8Array=="undefined"?re:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?re:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?re:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?re:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?re:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?re:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?re:WeakSet};if(he)try{null.error}catch(tt){var be=he(he(tt));we["%Error.prototype%"]=be}var Me=function tt(it){var ht;if(it==="%AsyncFunction%")ht=se("async function () {}");else if(it==="%GeneratorFunction%")ht=se("function* () {}");else if(it==="%AsyncGeneratorFunction%")ht=se("async function* () {}");else if(it==="%AsyncGenerator%"){var Ge=tt("%AsyncGeneratorFunction%");Ge&&(ht=Ge.prototype)}else if(it==="%AsyncIteratorPrototype%"){var Xe=tt("%AsyncGenerator%");Xe&&he&&(ht=he(Xe.prototype))}return we[it]=ht,ht},Le={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ce=x("function-bind"),Ne=x("has"),Te=Ce.call(Function.call,Array.prototype.concat),De=Ce.call(Function.apply,Array.prototype.splice),Ee=Ce.call(Function.call,String.prototype.replace),Pe=Ce.call(Function.call,String.prototype.slice),Be=Ce.call(Function.call,RegExp.prototype.exec),Ve=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ie=/\\(\\)?/g,Ze=function(it){var ht=Pe(it,0,1),Ge=Pe(it,-1);if(ht==="%"&&Ge!=="%")throw new z("invalid intrinsic syntax, expected closing `%`");if(Ge==="%"&&ht!=="%")throw new z("invalid intrinsic syntax, expected opening `%`");var Xe=[];return Ee(it,Ve,function(ct,pt,ut,rt){Xe[Xe.length]=ut?Ee(rt,Ie,"$1"):pt||ct}),Xe},Qe=function(it,ht){var Ge=it,Xe;if(Ne(Le,Ge)&&(Xe=Le[Ge],Ge="%"+Xe[0]+"%"),Ne(we,Ge)){var ct=we[Ge];if(ct===xe&&(ct=Me(Ge)),typeof ct=="undefined"&&!ht)throw new oe("intrinsic "+it+" exists, but is not available. Please file an issue!");return{alias:Xe,name:Ge,value:ct}}throw new z("intrinsic "+it+" does not exist!")};Ae.exports=function(it,ht){if(typeof it!="string"||it.length===0)throw new oe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ht!="boolean")throw new oe('"allowMissing" argument must be a boolean');if(Be(/^%?[^%]*%?$/,it)===null)throw new z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ge=Ze(it),Xe=Ge.length>0?Ge[0]:"",ct=Qe("%"+Xe+"%",ht),pt=ct.name,ut=ct.value,rt=!1,qe=ct.alias;qe&&(Xe=qe[0],De(Ge,Te([0,1],qe)));for(var nt=1,xt=!0;nt<Ge.length;nt+=1){var yt=Ge[nt],Rt=Pe(yt,0,1),Ot=Pe(yt,-1);if((Rt==='"'||Rt==="'"||Rt==="`"||Ot==='"'||Ot==="'"||Ot==="`")&&Rt!==Ot)throw new z("property names with quotes must have matching quotes");if((yt==="constructor"||!xt)&&(rt=!0),Xe+="."+yt,pt="%"+Xe+"%",Ne(we,pt))ut=we[pt];else if(ut!=null){if(!(yt in ut)){if(!ht)throw new oe("base intrinsic for "+it+" exists, but the property is not available.");return}if(pe&&nt+1>=Ge.length){var lt=pe(ut,yt);xt=!!lt,xt&&"get"in lt&&!("originalValue"in lt.get)?ut=lt.get:ut=ut[yt]}else xt=Ne(ut,yt),ut=ut[yt];xt&&!rt&&(we[pt]=ut)}}return ut}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(x,Ae,me){"use strict";var re=x("get-intrinsic"),z=re("%Object.getOwnPropertyDescriptor%",!0);if(z)try{z([],"length")}catch(ie){z=null}Ae.exports=z},{"get-intrinsic":348}],350:[function(x,Ae,me){"use strict";var re={foo:{}},z=Object;Ae.exports=function(){return{__proto__:re}.foo===re.foo&&!({__proto__:null}instanceof z)}},{}],351:[function(x,Ae,me){"use strict";var re=typeof Symbol!="undefined"&&Symbol,z=x("./shams");Ae.exports=function(){return typeof re!="function"||typeof Symbol!="function"||typeof re("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:z()}},{"./shams":352}],352:[function(x,Ae,me){"use strict";Ae.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var z={},ie=Symbol("test"),oe=Object(ie);if(typeof ie=="string"||Object.prototype.toString.call(ie)!=="[object Symbol]"||Object.prototype.toString.call(oe)!=="[object Symbol]")return!1;var se=42;z[ie]=se;for(ie in z)return!1;if(typeof Object.keys=="function"&&Object.keys(z).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(z).length!==0)return!1;var pe=Object.getOwnPropertySymbols(z);if(pe.length!==1||pe[0]!==ie||!Object.prototype.propertyIsEnumerable.call(z,ie))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var ne=Object.getOwnPropertyDescriptor(z,ie);if(ne.value!==se||ne.enumerable!==!0)return!1}return!0}},{}],353:[function(x,Ae,me){"use strict";var re=x("has-symbols/shams");Ae.exports=function(){return re()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(x,Ae,me){"use strict";var re=x("function-bind");Ae.exports=re.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(x,Ae,me){var re=x("http"),z=x("url"),ie=Ae.exports;for(var oe in re)re.hasOwnProperty(oe)&&(ie[oe]=re[oe]);ie.request=function(pe,ne){return pe=se(pe),re.request.call(this,pe,ne)},ie.get=function(pe,ne){return pe=se(pe),re.get.call(this,pe,ne)};function se(pe){if(typeof pe=="string"&&(pe=z.parse(pe)),pe.protocol||(pe.protocol="https:"),pe.protocol!=="https:")throw new Error('Protocol "'+pe.protocol+'" not supported. Expected "https:"');return pe}},{http:468,url:472}],356:[function(x,Ae,me){"use strict";var re=x("util"),z=x("ms");Ae.exports=function(ie){if(typeof ie=="number")return ie;var oe=z(ie);if(oe===void 0){var se=new Error(re.format("humanize-ms(%j) result undefined",ie));console.warn(se.stack)}return oe}},{ms:376,util:419}],357:[function(x,Ae,me){me.read=function(re,z,ie,oe,se){var pe,ne,ae=se*8-oe-1,ue=(1<<ae)-1,de=ue>>1,he=-7,xe=ie?se-1:0,Se=ie?-1:1,we=re[z+xe];for(xe+=Se,pe=we&(1<<-he)-1,we>>=-he,he+=ae;he>0;pe=pe*256+re[z+xe],xe+=Se,he-=8);for(ne=pe&(1<<-he)-1,pe>>=-he,he+=oe;he>0;ne=ne*256+re[z+xe],xe+=Se,he-=8);if(pe===0)pe=1-de;else{if(pe===ue)return ne?NaN:(we?-1:1)*(1/0);ne=ne+Math.pow(2,oe),pe=pe-de}return(we?-1:1)*ne*Math.pow(2,pe-oe)},me.write=function(re,z,ie,oe,se,pe){var ne,ae,ue,de=pe*8-se-1,he=(1<<de)-1,xe=he>>1,Se=se===23?Math.pow(2,-24)-Math.pow(2,-77):0,we=oe?0:pe-1,be=oe?1:-1,Me=z<0||z===0&&1/z<0?1:0;for(z=Math.abs(z),isNaN(z)||z===1/0?(ae=isNaN(z)?1:0,ne=he):(ne=Math.floor(Math.log(z)/Math.LN2),z*(ue=Math.pow(2,-ne))<1&&(ne--,ue*=2),ne+xe>=1?z+=Se/ue:z+=Se*Math.pow(2,1-xe),z*ue>=2&&(ne++,ue/=2),ne+xe>=he?(ae=0,ne=he):ne+xe>=1?(ae=(z*ue-1)*Math.pow(2,se),ne=ne+xe):(ae=z*Math.pow(2,xe-1)*Math.pow(2,se),ne=0));se>=8;re[ie+we]=ae&255,we+=be,ae/=256,se-=8);for(ne=ne<<se|ae,de+=se;de>0;re[ie+we]=ne&255,we+=be,ne/=256,de-=8);re[ie+we-be]|=Me*128}},{}],358:[function(x,Ae,me){"use strict";var re=[x("./nextTick"),x("./queueMicrotask"),x("./mutation.js"),x("./messageChannel"),x("./stateChange"),x("./timeout")],z,ie,oe=-1,se=[],pe=!1;function ne(){!z||!ie||(z=!1,ie.length?se=ie.concat(se):oe=-1,se.length&&ae())}function ae(){if(!z){pe=!1,z=!0;for(var we=se.length,be=setTimeout(ne);we;){for(ie=se,se=[];ie&&++oe<we;)ie[oe].run();oe=-1,we=se.length}ie=null,oe=-1,z=!1,clearTimeout(be)}}for(var ue,de=-1,he=re.length;++de<he;)if(re[de]&&re[de].test&&re[de].test()){ue=re[de].install(ae);break}function xe(we,be){this.fun=we,this.array=be}xe.prototype.run=function(){var we=this.fun,be=this.array;switch(be.length){case 0:return we();case 1:return we(be[0]);case 2:return we(be[0],be[1]);case 3:return we(be[0],be[1],be[2]);default:return we.apply(null,be)}},Ae.exports=Se;function Se(we){var be=new Array(arguments.length-1);if(arguments.length>1)for(var Me=1;Me<arguments.length;Me++)be[Me-1]=arguments[Me];se.push(new xe(we,be)),!pe&&!z&&(pe=!0,ue())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(x,Ae,me){(function(re){(function(){"use strict";me.test=function(){return re.setImmediate?!1:typeof re.MessageChannel!="undefined"},me.install=function(z){var ie=new re.MessageChannel;return ie.port1.onmessage=z,function(){ie.port2.postMessage(0)}}}).call(this)}).call(this,typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(x,Ae,me){(function(re){(function(){"use strict";var z=re.MutationObserver||re.WebKitMutationObserver;me.test=function(){return z},me.install=function(ie){var oe=0,se=new z(ie),pe=re.document.createTextNode("");return se.observe(pe,{characterData:!0}),function(){pe.data=oe=++oe%2}}}).call(this)}).call(this,typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(x,Ae,me){(function(re){(function(){"use strict";me.test=function(){return typeof re.queueMicrotask=="function"},me.install=function(z){return function(){re.queueMicrotask(z)}}}).call(this)}).call(this,typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(x,Ae,me){(function(re){(function(){"use strict";me.test=function(){return"document"in re&&"onreadystatechange"in re.document.createElement("script")},me.install=function(z){return function(){var ie=re.document.createElement("script");return ie.onreadystatechange=function(){z(),ie.onreadystatechange=null,ie.parentNode.removeChild(ie),ie=null},re.document.documentElement.appendChild(ie),z}}}).call(this)}).call(this,typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(x,Ae,me){"use strict";me.test=function(){return!0},me.install=function(re){return function(){setTimeout(re,0)}}},{}],364:[function(x,Ae,me){typeof Object.create=="function"?Ae.exports=function(z,ie){ie&&(z.super_=ie,z.prototype=Object.create(ie.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}))}:Ae.exports=function(z,ie){if(ie){z.super_=ie;var oe=function(){};oe.prototype=ie.prototype,z.prototype=new oe,z.prototype.constructor=z}}},{}],365:[function(x,Ae,me){"use strict";var re=x("has-tostringtag/shams")(),z=x("call-bind/callBound"),ie=z("Object.prototype.toString"),oe=function(ae){return re&&ae&&typeof ae=="object"&&Symbol.toStringTag in ae?!1:ie(ae)==="[object Arguments]"},se=function(ae){return oe(ae)?!0:ae!==null&&typeof ae=="object"&&typeof ae.length=="number"&&ae.length>=0&&ie(ae)!=="[object Array]"&&ie(ae.callee)==="[object Function]"},pe=function(){return oe(arguments)}();oe.isLegacyArguments=se,Ae.exports=pe?oe:se},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(x,Ae,me){Ae.exports=function(ie){return ie!=null&&(re(ie)||z(ie)||!!ie._isBuffer)};function re(ie){return!!ie.constructor&&typeof ie.constructor.isBuffer=="function"&&ie.constructor.isBuffer(ie)}function z(ie){return typeof ie.readFloatLE=="function"&&typeof ie.slice=="function"&&re(ie.slice(0,0))}},{}],367:[function(x,Ae,me){"use strict";var re=Function.prototype.toString,z=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ie,oe;if(typeof z=="function"&&typeof Object.defineProperty=="function")try{ie=Object.defineProperty({},"length",{get:function(){throw oe}}),oe={},z(function(){throw 42},null,ie)}catch(Ne){Ne!==oe&&(z=null)}else z=null;var se=/^\s*class\b/,pe=function(Te){try{var De=re.call(Te);return se.test(De)}catch(Ee){return!1}},ne=function(Te){try{return pe(Te)?!1:(re.call(Te),!0)}catch(De){return!1}},ae=Object.prototype.toString,ue="[object Object]",de="[object Function]",he="[object GeneratorFunction]",xe="[object HTMLAllCollection]",Se="[object HTML document.all class]",we="[object HTMLCollection]",be=typeof Symbol=="function"&&!!Symbol.toStringTag,Me=!(0 in[,]),Le=function(){return!1};if(typeof document=="object"){var Ce=document.all;ae.call(Ce)===ae.call(document.all)&&(Le=function(Te){if((Me||!Te)&&(typeof Te=="undefined"||typeof Te=="object"))try{var De=ae.call(Te);return(De===xe||De===Se||De===we||De===ue)&&Te("")==null}catch(Ee){}return!1})}Ae.exports=z?function(Te){if(Le(Te))return!0;if(!Te||typeof Te!="function"&&typeof Te!="object")return!1;try{z(Te,null,ie)}catch(De){if(De!==oe)return!1}return!pe(Te)&&ne(Te)}:function(Te){if(Le(Te))return!0;if(!Te||typeof Te!="function"&&typeof Te!="object")return!1;if(be)return ne(Te);if(pe(Te))return!1;var De=ae.call(Te);return De!==de&&De!==he&&!/^\[object HTML/.test(De)?!1:ne(Te)}},{}],368:[function(x,Ae,me){"use strict";var re=Object.prototype.toString,z=Function.prototype.toString,ie=/^\s*(?:function)?\*/,oe=x("has-tostringtag/shams")(),se=Object.getPrototypeOf,pe=function(){if(!oe)return!1;try{return Function("return function*() {}")()}catch(ae){}},ne;Ae.exports=function(ue){if(typeof ue!="function")return!1;if(ie.test(z.call(ue)))return!0;if(!oe){var de=re.call(ue);return de==="[object GeneratorFunction]"}if(!se)return!1;if(typeof ne=="undefined"){var he=pe();ne=he?se(he):!1}return se(ue)===ne}},{"has-tostringtag/shams":353}],369:[function(x,Ae,me){"use strict";var re=x("which-typed-array");Ae.exports=function(ie){return!!re(ie)}},{"which-typed-array":420}],370:[function(x,Ae,me){var re={}.toString;Ae.exports=Array.isArray||function(z){return re.call(z)=="[object Array]"}},{}],371:[function(x,Ae,me){(function(re){(function(){(function(z,ie){typeof me=="object"&&typeof Ae!="undefined"?Ae.exports=ie(z):typeof ke=="function"&&ke.amd?ke(ie):ie(z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof re!="undefined"?re:this,function(z){"use strict";z=z||{};var ie=z.Base64,oe="2.6.4",se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pe=function(it){for(var ht={},Ge=0,Xe=it.length;Ge<Xe;Ge++)ht[it.charAt(Ge)]=Ge;return ht}(se),ne=String.fromCharCode,ae=function(it){if(it.length<2){var ht=it.charCodeAt(0);return ht<128?it:ht<2048?ne(192|ht>>>6)+ne(128|ht&63):ne(224|ht>>>12&15)+ne(128|ht>>>6&63)+ne(128|ht&63)}else{var ht=65536+(it.charCodeAt(0)-55296)*1024+(it.charCodeAt(1)-56320);return ne(240|ht>>>18&7)+ne(128|ht>>>12&63)+ne(128|ht>>>6&63)+ne(128|ht&63)}},ue=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,de=function(it){return it.replace(ue,ae)},he=function(it){var ht=[0,2,1][it.length%3],Ge=it.charCodeAt(0)<<16|(it.length>1?it.charCodeAt(1):0)<<8|(it.length>2?it.charCodeAt(2):0),Xe=[se.charAt(Ge>>>18),se.charAt(Ge>>>12&63),ht>=2?"=":se.charAt(Ge>>>6&63),ht>=1?"=":se.charAt(Ge&63)];return Xe.join("")},xe=z.btoa&&typeof z.btoa=="function"?function(it){return z.btoa(it)}:function(it){if(it.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return it.replace(/[\s\S]{1,3}/g,he)},Se=function(it){return xe(de(String(it)))},we=function(it){return it.replace(/[+\/]/g,function(ht){return ht=="+"?"-":"_"}).replace(/=/g,"")},be=function(it,ht){return ht?we(Se(it)):Se(it)},Me=function(it){return be(it,!0)},Le;z.Uint8Array&&(Le=function(it,ht){for(var Ge="",Xe=0,ct=it.length;Xe<ct;Xe+=3){var pt=it[Xe],ut=it[Xe+1],rt=it[Xe+2],qe=pt<<16|ut<<8|rt;Ge+=se.charAt(qe>>>18)+se.charAt(qe>>>12&63)+(typeof ut!="undefined"?se.charAt(qe>>>6&63):"=")+(typeof rt!="undefined"?se.charAt(qe&63):"=")}return ht?we(Ge):Ge});var Ce=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ne=function(it){switch(it.length){case 4:var ht=(7&it.charCodeAt(0))<<18|(63&it.charCodeAt(1))<<12|(63&it.charCodeAt(2))<<6|63&it.charCodeAt(3),Ge=ht-65536;return ne((Ge>>>10)+55296)+ne((Ge&1023)+56320);case 3:return ne((15&it.charCodeAt(0))<<12|(63&it.charCodeAt(1))<<6|63&it.charCodeAt(2));default:return ne((31&it.charCodeAt(0))<<6|63&it.charCodeAt(1))}},Te=function(it){return it.replace(Ce,Ne)},De=function(it){var ht=it.length,Ge=ht%4,Xe=(ht>0?pe[it.charAt(0)]<<18:0)|(ht>1?pe[it.charAt(1)]<<12:0)|(ht>2?pe[it.charAt(2)]<<6:0)|(ht>3?pe[it.charAt(3)]:0),ct=[ne(Xe>>>16),ne(Xe>>>8&255),ne(Xe&255)];return ct.length-=[0,0,2,1][Ge],ct.join("")},Ee=z.atob&&typeof z.atob=="function"?function(it){return z.atob(it)}:function(it){return it.replace(/\S{1,4}/g,De)},Pe=function(it){return Ee(String(it).replace(/[^A-Za-z0-9\+\/]/g,""))},Be=function(it){return Te(Ee(it))},Ve=function(it){return String(it).replace(/[-_]/g,function(ht){return ht=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ie=function(it){return Be(Ve(it))},Ze;z.Uint8Array&&(Ze=function(it){return Uint8Array.from(Pe(Ve(it)),function(ht){return ht.charCodeAt(0)})});var Qe=function(){var it=z.Base64;return z.Base64=ie,it};if(z.Base64={VERSION:oe,atob:Pe,btoa:xe,fromBase64:Ie,toBase64:be,utob:de,encode:be,encodeURI:Me,btou:Te,decode:Ie,noConflict:Qe,fromUint8Array:Le,toUint8Array:Ze},typeof Object.defineProperty=="function"){var tt=function(it){return{value:it,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",tt(function(){return Ie(this)})),Object.defineProperty(String.prototype,"toBase64",tt(function(it){return be(this,it)})),Object.defineProperty(String.prototype,"toBase64URI",tt(function(){return be(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),typeof Ae!="undefined"&&Ae.exports?Ae.exports.Base64=z.Base64:typeof ke=="function"&&ke.amd&&ke([],function(){return z.Base64}),{Base64:z.Base64}})}).call(this)}).call(this,typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(x,Ae,me){"use strict";Ae.exports=z;var re=Object.prototype.hasOwnProperty;function z(ie,oe,se){if(!ie)throw new TypeError("argument dest is required");if(!oe)throw new TypeError("argument src is required");return se===void 0&&(se=!0),Object.getOwnPropertyNames(oe).forEach(function(ne){if(!(!se&&re.call(ie,ne))){var ae=Object.getOwnPropertyDescriptor(oe,ne);Object.defineProperty(ie,ne,ae)}}),ie}},{}],373:[function(x,Ae,me){"use strict";x("core-js/modules/es.array.map.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.regexp.constructor.js"),x("core-js/modules/es.regexp.to-string.js");function re(){this._types=Object.create(null),this._extensions=Object.create(null);for(var z=0;z<arguments.length;z++)this.define(arguments[z]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}re.prototype.define=function(z,ie){for(var oe in z){var se=z[oe].map(function(ue){return ue.toLowerCase()});oe=oe.toLowerCase();for(var pe=0;pe<se.length;pe++){var ne=se[pe];if(ne[0]!=="*"){if(!ie&&ne in this._types)throw new Error('Attempt to change mapping for "'+ne+'" extension from "'+this._types[ne]+'" to "'+oe+'". Pass `force=true` to allow this, otherwise remove "'+ne+'" from the list of extensions for "'+oe+'".');this._types[ne]=oe}}if(ie||!this._extensions[oe]){var ae=se[0];this._extensions[oe]=ae[0]!=="*"?ae:ae.substr(1)}}},re.prototype.getType=function(z){z=String(z);var ie=z.replace(/^.*[/\\]/,"").toLowerCase(),oe=ie.replace(/^.*\./,"").toLowerCase(),se=ie.length<z.length,pe=oe.length<ie.length-1;return(pe||!se)&&this._types[oe]||null},re.prototype.getExtension=function(z){return z=/^\s*([^;\s]*)/.test(z)&&RegExp.$1,z&&this._extensions[z.toLowerCase()]||null},Ae.exports=re},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(x,Ae,me){"use strict";var re=x("./Mime");Ae.exports=new re(x("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(x,Ae,me){"use strict";Ae.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],376:[function(x,Ae,me){var re=1e3,z=re*60,ie=z*60,oe=ie*24,se=oe*7,pe=oe*365.25;Ae.exports=function(he,xe){xe=xe||{};var Se=typeof he;if(Se==="string"&&he.length>0)return ne(he);if(Se==="number"&&isFinite(he))return xe.long?ue(he):ae(he);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(he))};function ne(he){if(he=String(he),!(he.length>100)){var xe=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(he);if(xe){var Se=parseFloat(xe[1]),we=(xe[2]||"ms").toLowerCase();switch(we){case"years":case"year":case"yrs":case"yr":case"y":return Se*pe;case"weeks":case"week":case"w":return Se*se;case"days":case"day":case"d":return Se*oe;case"hours":case"hour":case"hrs":case"hr":case"h":return Se*ie;case"minutes":case"minute":case"mins":case"min":case"m":return Se*z;case"seconds":case"second":case"secs":case"sec":case"s":return Se*re;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return Se;default:return}}}}function ae(he){var xe=Math.abs(he);return xe>=oe?Math.round(he/oe)+"d":xe>=ie?Math.round(he/ie)+"h":xe>=z?Math.round(he/z)+"m":xe>=re?Math.round(he/re)+"s":he+"ms"}function ue(he){var xe=Math.abs(he);return xe>=oe?de(he,xe,oe,"day"):xe>=ie?de(he,xe,ie,"hour"):xe>=z?de(he,xe,z,"minute"):xe>=re?de(he,xe,re,"second"):he+" ms"}function de(he,xe,Se,we){var be=xe>=Se*1.5;return Math.round(he/Se)+" "+we+(be?"s":"")}},{}],377:[function(x,Ae,me){"use strict";var re=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;function oe(pe){if(pe==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(pe)}function se(){try{if(!Object.assign)return!1;var pe=new String("abc");if(pe[5]="de",Object.getOwnPropertyNames(pe)[0]==="5")return!1;for(var ne={},ae=0;ae<10;ae++)ne["_"+String.fromCharCode(ae)]=ae;var ue=Object.getOwnPropertyNames(ne).map(function(he){return ne[he]});if(ue.join("")!=="0123456789")return!1;var de={};return"abcdefghijklmnopqrst".split("").forEach(function(he){de[he]=he}),Object.keys(Object.assign({},de)).join("")==="abcdefghijklmnopqrst"}catch(he){return!1}}Ae.exports=se()?Object.assign:function(pe,ne){for(var ae,ue=oe(pe),de,he=1;he<arguments.length;he++){ae=Object(arguments[he]);for(var xe in ae)z.call(ae,xe)&&(ue[xe]=ae[xe]);if(re){de=re(ae);for(var Se=0;Se<de.length;Se++)ie.call(ae,de[Se])&&(ue[de[Se]]=ae[de[Se]])}}return ue}},{}],378:[function(x,Ae,me){(function(re){(function(){"use strict";function z(pe){if(typeof pe!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(pe))}function ie(pe,ne){for(var ae="",ue=0,de=-1,he=0,xe,Se=0;Se<=pe.length;++Se){if(Se<pe.length)xe=pe.charCodeAt(Se);else{if(xe===47)break;xe=47}if(xe===47){if(!(de===Se-1||he===1))if(de!==Se-1&&he===2){if(ae.length<2||ue!==2||ae.charCodeAt(ae.length-1)!==46||ae.charCodeAt(ae.length-2)!==46){if(ae.length>2){var we=ae.lastIndexOf("/");if(we!==ae.length-1){we===-1?(ae="",ue=0):(ae=ae.slice(0,we),ue=ae.length-1-ae.lastIndexOf("/")),de=Se,he=0;continue}}else if(ae.length===2||ae.length===1){ae="",ue=0,de=Se,he=0;continue}}ne&&(ae.length>0?ae+="/..":ae="..",ue=2)}else ae.length>0?ae+="/"+pe.slice(de+1,Se):ae=pe.slice(de+1,Se),ue=Se-de-1;de=Se,he=0}else xe===46&&he!==-1?++he:he=-1}return ae}function oe(pe,ne){var ae=ne.dir||ne.root,ue=ne.base||(ne.name||"")+(ne.ext||"");return ae?ae===ne.root?ae+ue:ae+pe+ue:ue}var se={resolve:function(){for(var ne="",ae=!1,ue,de=arguments.length-1;de>=-1&&!ae;de--){var he;de>=0?he=arguments[de]:(ue===void 0&&(ue=re.cwd()),he=ue),z(he),he.length!==0&&(ne=he+"/"+ne,ae=he.charCodeAt(0)===47)}return ne=ie(ne,!ae),ae?ne.length>0?"/"+ne:"/":ne.length>0?ne:"."},normalize:function(ne){if(z(ne),ne.length===0)return".";var ae=ne.charCodeAt(0)===47,ue=ne.charCodeAt(ne.length-1)===47;return ne=ie(ne,!ae),ne.length===0&&!ae&&(ne="."),ne.length>0&&ue&&(ne+="/"),ae?"/"+ne:ne},isAbsolute:function(ne){return z(ne),ne.length>0&&ne.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ne,ae=0;ae<arguments.length;++ae){var ue=arguments[ae];z(ue),ue.length>0&&(ne===void 0?ne=ue:ne+="/"+ue)}return ne===void 0?".":se.normalize(ne)},relative:function(ne,ae){if(z(ne),z(ae),ne===ae||(ne=se.resolve(ne),ae=se.resolve(ae),ne===ae))return"";for(var ue=1;ue<ne.length&&ne.charCodeAt(ue)===47;++ue);for(var de=ne.length,he=de-ue,xe=1;xe<ae.length&&ae.charCodeAt(xe)===47;++xe);for(var Se=ae.length,we=Se-xe,be=he<we?he:we,Me=-1,Le=0;Le<=be;++Le){if(Le===be){if(we>be){if(ae.charCodeAt(xe+Le)===47)return ae.slice(xe+Le+1);if(Le===0)return ae.slice(xe+Le)}else he>be&&(ne.charCodeAt(ue+Le)===47?Me=Le:Le===0&&(Me=0));break}var Ce=ne.charCodeAt(ue+Le),Ne=ae.charCodeAt(xe+Le);if(Ce!==Ne)break;Ce===47&&(Me=Le)}var Te="";for(Le=ue+Me+1;Le<=de;++Le)(Le===de||ne.charCodeAt(Le)===47)&&(Te.length===0?Te+="..":Te+="/..");return Te.length>0?Te+ae.slice(xe+Me):(xe+=Me,ae.charCodeAt(xe)===47&&++xe,ae.slice(xe))},_makeLong:function(ne){return ne},dirname:function(ne){if(z(ne),ne.length===0)return".";for(var ae=ne.charCodeAt(0),ue=ae===47,de=-1,he=!0,xe=ne.length-1;xe>=1;--xe)if(ae=ne.charCodeAt(xe),ae===47){if(!he){de=xe;break}}else he=!1;return de===-1?ue?"/":".":ue&&de===1?"//":ne.slice(0,de)},basename:function(ne,ae){if(ae!==void 0&&typeof ae!="string")throw new TypeError('"ext" argument must be a string');z(ne);var ue=0,de=-1,he=!0,xe;if(ae!==void 0&&ae.length>0&&ae.length<=ne.length){if(ae.length===ne.length&&ae===ne)return"";var Se=ae.length-1,we=-1;for(xe=ne.length-1;xe>=0;--xe){var be=ne.charCodeAt(xe);if(be===47){if(!he){ue=xe+1;break}}else we===-1&&(he=!1,we=xe+1),Se>=0&&(be===ae.charCodeAt(Se)?--Se===-1&&(de=xe):(Se=-1,de=we))}return ue===de?de=we:de===-1&&(de=ne.length),ne.slice(ue,de)}else{for(xe=ne.length-1;xe>=0;--xe)if(ne.charCodeAt(xe)===47){if(!he){ue=xe+1;break}}else de===-1&&(he=!1,de=xe+1);return de===-1?"":ne.slice(ue,de)}},extname:function(ne){z(ne);for(var ae=-1,ue=0,de=-1,he=!0,xe=0,Se=ne.length-1;Se>=0;--Se){var we=ne.charCodeAt(Se);if(we===47){if(!he){ue=Se+1;break}continue}de===-1&&(he=!1,de=Se+1),we===46?ae===-1?ae=Se:xe!==1&&(xe=1):ae!==-1&&(xe=-1)}return ae===-1||de===-1||xe===0||xe===1&&ae===de-1&&ae===ue+1?"":ne.slice(ae,de)},format:function(ne){if(ne===null||typeof ne!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ne);return oe("/",ne)},parse:function(ne){z(ne);var ae={root:"",dir:"",base:"",ext:"",name:""};if(ne.length===0)return ae;var ue=ne.charCodeAt(0),de=ue===47,he;de?(ae.root="/",he=1):he=0;for(var xe=-1,Se=0,we=-1,be=!0,Me=ne.length-1,Le=0;Me>=he;--Me){if(ue=ne.charCodeAt(Me),ue===47){if(!be){Se=Me+1;break}continue}we===-1&&(be=!1,we=Me+1),ue===46?xe===-1?xe=Me:Le!==1&&(Le=1):xe!==-1&&(Le=-1)}return xe===-1||we===-1||Le===0||Le===1&&xe===we-1&&xe===Se+1?we!==-1&&(Se===0&&de?ae.base=ae.name=ne.slice(1,we):ae.base=ae.name=ne.slice(Se,we)):(Se===0&&de?(ae.name=ne.slice(1,xe),ae.base=ne.slice(1,we)):(ae.name=ne.slice(Se,xe),ae.base=ne.slice(Se,we)),ae.ext=ne.slice(xe,we)),Se>0?ae.dir=ne.slice(0,Se-1):de&&(ae.dir="/"),ae},sep:"/",delimiter:":",win32:null,posix:null};se.posix=se,Ae.exports=se}).call(this)}).call(this,x("_process"))},{_process:467}],379:[function(x,Ae,me){(function(re){(function(){(function(){"use strict";var z={function:!0,object:!0},ie=z[typeof window]&&window||this,oe=ie,se=z[typeof me]&&me,pe=z[typeof Ae]&&Ae&&!Ae.nodeType&&Ae,ne=se&&pe&&typeof re=="object"&&re;ne&&(ne.global===ne||ne.window===ne||ne.self===ne)&&(ie=ne);var ae=Math.pow(2,53)-1,ue=/\bOpera/,de=this,he=Object.prototype,xe=he.hasOwnProperty,Se=he.toString;function we(Ie){return Ie=String(Ie),Ie.charAt(0).toUpperCase()+Ie.slice(1)}function be(Ie,Ze,Qe){var tt={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return Ze&&Qe&&/^Win/i.test(Ie)&&!/^Windows Phone /i.test(Ie)&&(tt=tt[/[\d.]+$/.exec(Ie)])&&(Ie="Windows "+tt),Ie=String(Ie),Ze&&Qe&&(Ie=Ie.replace(RegExp(Ze,"i"),Qe)),Ie=Le(Ie.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),Ie}function Me(Ie,Ze){var Qe=-1,tt=Ie?Ie.length:0;if(typeof tt=="number"&&tt>-1&&tt<=ae)for(;++Qe<tt;)Ze(Ie[Qe],Qe,Ie);else Ce(Ie,Ze)}function Le(Ie){return Ie=Pe(Ie),/^(?:webOS|i(?:OS|P))/.test(Ie)?Ie:we(Ie)}function Ce(Ie,Ze){for(var Qe in Ie)xe.call(Ie,Qe)&&Ze(Ie[Qe],Qe,Ie)}function Ne(Ie){return Ie==null?we(Ie):Se.call(Ie).slice(8,-1)}function Te(Ie,Ze){var Qe=Ie!=null?typeof Ie[Ze]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Qe)&&(Qe=="object"?!!Ie[Ze]:!0)}function De(Ie){return String(Ie).replace(/([ -])(?!$)/g,"$1?")}function Ee(Ie,Ze){var Qe=null;return Me(Ie,function(tt,it){Qe=Ze(Qe,tt,it,Ie)}),Qe}function Pe(Ie){return String(Ie).replace(/^ +| +$/g,"")}function Be(Ie){var Ze=ie,Qe=Ie&&typeof Ie=="object"&&Ne(Ie)!="String";Qe&&(Ze=Ie,Ie=null);var tt=Ze.navigator||{},it=tt.userAgent||"";Ie||(Ie=it);var ht=Qe||de==oe,Ge=Qe?!!tt.likeChrome:/\bChrome\b/.test(Ie)&&!/internal|\n/i.test(Se.toString()),Xe="Object",ct=Qe?Xe:"ScriptBridgingProxyObject",pt=Qe?Xe:"Environment",ut=Qe&&Ze.java?"JavaPackage":Ne(Ze.java),rt=Qe?Xe:"RuntimeObject",qe=/\bJava/.test(ut)&&Ze.java,nt=qe&&Ne(Ze.environment)==pt,xt=qe?"a":"\u03B1",yt=qe?"b":"\u03B2",Rt=Ze.document||{},Ot=Ze.operamini||Ze.opera,lt=ue.test(lt=Qe&&Ot?Ot["[[Class]]"]:Ne(Ot))?lt:Ot=null,Ue,$e=Ie,le=[],fe=null,Fe=Ie==it,He=Fe&&Ot&&typeof Ot.version=="function"&&Ot.version(),ye,Re=bt([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ze=kt(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Ke=Ct([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),We=at({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),st=Ht(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function bt(ft){return Ee(ft,function(dt,Ft){return dt||RegExp("\\b"+(Ft.pattern||De(Ft))+"\\b","i").exec(Ie)&&(Ft.label||Ft)})}function at(ft){return Ee(ft,function(dt,Ft,zt){return dt||(Ft[Ke]||Ft[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ke)]||RegExp("\\b"+De(zt)+"(?:\\b|\\w*\\d)","i").exec(Ie))&&zt})}function kt(ft){return Ee(ft,function(dt,Ft){return dt||RegExp("\\b"+(Ft.pattern||De(Ft))+"\\b","i").exec(Ie)&&(Ft.label||Ft)})}function Ht(ft){return Ee(ft,function(dt,Ft){var zt=Ft.pattern||De(Ft);return!dt&&(dt=RegExp("\\b"+zt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Ie))&&(dt=be(dt,zt,Ft.label||Ft)),dt})}function Ct(ft){return Ee(ft,function(dt,Ft){var zt=Ft.pattern||De(Ft);return!dt&&(dt=RegExp("\\b"+zt+" *\\d+[.\\w_]*","i").exec(Ie)||RegExp("\\b"+zt+" *\\w+-[\\w]*","i").exec(Ie)||RegExp("\\b"+zt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Ie))&&((dt=String(Ft.label&&!RegExp(zt,"i").test(Ft.label)?Ft.label:dt).split("/"))[1]&&!/[\d.]+/.test(dt[0])&&(dt[0]+=" "+dt[1]),Ft=Ft.label||Ft,dt=Le(dt[0].replace(RegExp(zt,"i"),Ft).replace(RegExp("; *(?:"+Ft+"[_-])?","i")," ").replace(RegExp("("+Ft+")[-_.]?(\\w)","i"),"$1 $2"))),dt})}function $t(ft){return Ee(ft,function(dt,Ft){return dt||(RegExp(Ft+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Ie)||0)[1]||null})}function Bt(){return this.description||""}if(Re&&(Re=[Re]),/\bAndroid\b/.test(st)&&!Ke&&(Ue=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(Ie))&&(Ke=Pe(Ue[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),We&&!Ke?Ke=Ct([We]):We&&Ke&&(Ke=Ke.replace(RegExp("^("+De(We)+")[-_.\\s]","i"),We+" ").replace(RegExp("^("+De(We)+")[-_.]?(\\w)","i"),We+" $2")),(Ue=/\bGoogle TV\b/.exec(Ke))&&(Ke=Ue[0]),/\bSimulator\b/i.test(Ie)&&(Ke=(Ke?Ke+" ":"")+"Simulator"),ze=="Opera Mini"&&/\bOPiOS\b/.test(Ie)&&le.push("running in Turbo/Uncompressed mode"),ze=="IE"&&/\blike iPhone OS\b/.test(Ie)?(Ue=Be(Ie.replace(/like iPhone OS/,"")),We=Ue.manufacturer,Ke=Ue.product):/^iP/.test(Ke)?(ze||(ze="Safari"),st="iOS"+((Ue=/ OS ([\d_]+)/i.exec(Ie))?" "+Ue[1].replace(/_/g,"."):"")):ze=="Konqueror"&&/^Linux\b/i.test(st)?st="Kubuntu":We&&We!="Google"&&(/Chrome/.test(ze)&&!/\bMobile Safari\b/i.test(Ie)||/\bVita\b/.test(Ke))||/\bAndroid\b/.test(st)&&/^Chrome/.test(ze)&&/\bVersion\//i.test(Ie)?(ze="Android Browser",st=/\bAndroid\b/.test(st)?st:"Android"):ze=="Silk"?(/\bMobi/i.test(Ie)||(st="Android",le.unshift("desktop mode")),/Accelerated *= *true/i.test(Ie)&&le.unshift("accelerated")):ze=="UC Browser"&&/\bUCWEB\b/.test(Ie)?le.push("speed mode"):ze=="PaleMoon"&&(Ue=/\bFirefox\/([\d.]+)\b/.exec(Ie))?le.push("identifying as Firefox "+Ue[1]):ze=="Firefox"&&(Ue=/\b(Mobile|Tablet|TV)\b/i.exec(Ie))?(st||(st="Firefox OS"),Ke||(Ke=Ue[1])):!ze||(Ue=!/\bMinefield\b/i.test(Ie)&&/\b(?:Firefox|Safari)\b/.exec(ze))?(ze&&!Ke&&/[\/,]|^[^(]+?\)/.test(Ie.slice(Ie.indexOf(Ue+"/")+8))&&(ze=null),(Ue=Ke||We||st)&&(Ke||We||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(st))&&(ze=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(st)?st:Ue)+" Browser")):ze=="Electron"&&(Ue=(/\bChrome\/([\d.]+)\b/.exec(Ie)||0)[1])&&le.push("Chromium "+Ue),He||(He=$t(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",De(ze),"(?:Firefox|Minefield|NetFront)"])),(Ue=Re=="iCab"&&parseFloat(He)>3&&"WebKit"||/\bOpera\b/.test(ze)&&(/\bOPR\b/.test(Ie)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Ie)&&!/^(?:Trident|EdgeHTML)$/.test(Re)&&"WebKit"||!Re&&/\bMSIE\b/i.test(Ie)&&(st=="Mac OS"?"Tasman":"Trident")||Re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ze)&&"NetFront")&&(Re=[Ue]),ze=="IE"&&(Ue=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Ie)||0)[1])?(ze+=" Mobile",st="Windows Phone "+(/\+$/.test(Ue)?Ue:Ue+".x"),le.unshift("desktop mode")):/\bWPDesktop\b/i.test(Ie)?(ze="IE Mobile",st="Windows Phone 8.x",le.unshift("desktop mode"),He||(He=(/\brv:([\d.]+)/.exec(Ie)||0)[1])):ze!="IE"&&Re=="Trident"&&(Ue=/\brv:([\d.]+)/.exec(Ie))&&(ze&&le.push("identifying as "+ze+(He?" "+He:"")),ze="IE",He=Ue[1]),Fe){if(Te(Ze,"global"))if(qe&&(Ue=qe.lang.System,$e=Ue.getProperty("os.arch"),st=st||Ue.getProperty("os.name")+" "+Ue.getProperty("os.version")),nt){try{He=Ze.require("ringo/engine").version.join("."),ze="RingoJS"}catch(ft){(Ue=Ze.system)&&Ue.global.system==Ze.system&&(ze="Narwhal",st||(st=Ue[0].os||null))}ze||(ze="Rhino")}else typeof Ze.process=="object"&&!Ze.process.browser&&(Ue=Ze.process)&&(typeof Ue.versions=="object"&&(typeof Ue.versions.electron=="string"?(le.push("Node "+Ue.versions.node),ze="Electron",He=Ue.versions.electron):typeof Ue.versions.nw=="string"&&(le.push("Chromium "+He,"Node "+Ue.versions.node),ze="NW.js",He=Ue.versions.nw)),ze||(ze="Node.js",$e=Ue.arch,st=Ue.platform,He=/[\d.]+/.exec(Ue.version),He=He?He[0]:null));else Ne(Ue=Ze.runtime)==ct?(ze="Adobe AIR",st=Ue.flash.system.Capabilities.os):Ne(Ue=Ze.phantom)==rt?(ze="PhantomJS",He=(Ue=Ue.version||null)&&Ue.major+"."+Ue.minor+"."+Ue.patch):typeof Rt.documentMode=="number"&&(Ue=/\bTrident\/(\d+)/i.exec(Ie))?(He=[He,Rt.documentMode],(Ue=+Ue[1]+4)!=He[1]&&(le.push("IE "+He[1]+" mode"),Re&&(Re[1]=""),He[1]=Ue),He=ze=="IE"?String(He[1].toFixed(1)):He[0]):typeof Rt.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ze)&&(le.push("masking as "+ze+" "+He),ze="IE",He="11.0",Re=["Trident"],st="Windows");st=st&&Le(st)}if(He&&(Ue=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(He)||/(?:alpha|beta)(?: ?\d)?/i.exec(Ie+";"+(Fe&&tt.appMinorVersion))||/\bMinefield\b/i.test(Ie)&&"a")&&(fe=/b/i.test(Ue)?"beta":"alpha",He=He.replace(RegExp(Ue+"\\+?$"),"")+(fe=="beta"?yt:xt)+(/\d+\+?/.exec(Ue)||"")),ze=="Fennec"||ze=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(st))ze="Firefox Mobile";else if(ze=="Maxthon"&&He)He=He.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ke))Ke=="Xbox 360"&&(st=null),Ke=="Xbox 360"&&/\bIEMobile\b/.test(Ie)&&le.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ze)||ze&&!Ke&&!/Browser|Mobi/.test(ze))&&(st=="Windows CE"||/Mobi/i.test(Ie)))ze+=" Mobile";else if(ze=="IE"&&Fe)try{Ze.external===null&&le.unshift("platform preview")}catch(ft){le.unshift("embedded")}else(/\bBlackBerry\b/.test(Ke)||/\bBB10\b/.test(Ie))&&(Ue=(RegExp(Ke.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Ie)||0)[1]||He)?(Ue=[Ue,/BB10/.test(Ie)],st=(Ue[1]?(Ke=null,We="BlackBerry"):"Device Software")+" "+Ue[0],He=null):this!=Ce&&Ke!="Wii"&&(Fe&&Ot||/Opera/.test(ze)&&/\b(?:MSIE|Firefox)\b/i.test(Ie)||ze=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(st)||ze=="IE"&&(st&&!/^Win/.test(st)&&He>5.5||/\bWindows XP\b/.test(st)&&He>8||He==8&&!/\bTrident\b/.test(Ie)))&&!ue.test(Ue=Be.call(Ce,Ie.replace(ue,"")+";"))&&Ue.name&&(Ue="ing as "+Ue.name+((Ue=Ue.version)?" "+Ue:""),ue.test(ze)?(/\bIE\b/.test(Ue)&&st=="Mac OS"&&(st=null),Ue="identify"+Ue):(Ue="mask"+Ue,lt?ze=Le(lt.replace(/([a-z])([A-Z])/g,"$1 $2")):ze="Opera",/\bIE\b/.test(Ue)&&(st=null),Fe||(He=null)),Re=["Presto"],le.push(Ue));(Ue=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Ie)||0)[1])&&(Ue=[parseFloat(Ue.replace(/\.(\d)$/,".0$1")),Ue],ze=="Safari"&&Ue[1].slice(-1)=="+"?(ze="WebKit Nightly",fe="alpha",He=Ue[1].slice(0,-1)):(He==Ue[1]||He==(Ue[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Ie)||0)[1]))&&(He=null),Ue[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Ie)||0)[1],Ue[0]==537.36&&Ue[2]==537.36&&parseFloat(Ue[1])>=28&&Re=="WebKit"&&(Re=["Blink"]),!Fe||!Ge&&!Ue[1]?(Re&&(Re[1]="like Safari"),Ue=(Ue=Ue[0],Ue<400?1:Ue<500?2:Ue<526?3:Ue<533?4:Ue<534?"4+":Ue<535?5:Ue<537?6:Ue<538?7:Ue<601?8:Ue<602?9:Ue<604?10:Ue<606?11:Ue<608?12:"12")):(Re&&(Re[1]="like Chrome"),Ue=Ue[1]||(Ue=Ue[0],Ue<530?1:Ue<532?2:Ue<532.05?3:Ue<533?4:Ue<534.03?5:Ue<534.07?6:Ue<534.1?7:Ue<534.13?8:Ue<534.16?9:Ue<534.24?10:Ue<534.3?11:Ue<535.01?12:Ue<535.02?"13+":Ue<535.07?15:Ue<535.11?16:Ue<535.19?17:Ue<536.05?18:Ue<536.1?19:Ue<537.01?20:Ue<537.11?"21+":Ue<537.13?23:Ue<537.18?24:Ue<537.24?25:Ue<537.36?26:Re!="Blink"?"27":"28")),Re&&(Re[1]+=" "+(Ue+=typeof Ue=="number"?".x":/[.+]/.test(Ue)?"":"+")),ze=="Safari"&&(!He||parseInt(He)>45)?He=Ue:ze=="Chrome"&&/\bHeadlessChrome/i.test(Ie)&&le.unshift("headless")),ze=="Opera"&&(Ue=/\bzbov|zvav$/.exec(st))?(ze+=" ",le.unshift("desktop mode"),Ue=="zvav"?(ze+="Mini",He=null):ze+="Mobile",st=st.replace(RegExp(" *"+Ue+"$"),"")):ze=="Safari"&&/\bChrome\b/.exec(Re&&Re[1])?(le.unshift("desktop mode"),ze="Chrome Mobile",He=null,/\bOS X\b/.test(st)?(We="Apple",st="iOS 4.3+"):st=null):/\bSRWare Iron\b/.test(ze)&&!He&&(He=$t("Chrome")),He&&He.indexOf(Ue=/[\d.]+$/.exec(st))==0&&Ie.indexOf("/"+Ue+"-")>-1&&(st=Pe(st.replace(Ue,""))),st&&st.indexOf(ze)!=-1&&!RegExp(ze+" OS").test(st)&&(st=st.replace(RegExp(" *"+De(ze)+" *"),"")),Re&&!/\b(?:Avant|Nook)\b/.test(ze)&&(/Browser|Lunascape|Maxthon/.test(ze)||ze!="Safari"&&/^iOS/.test(st)&&/\bSafari\b/.test(Re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(ze)&&Re[1])&&(Ue=Re[Re.length-1])&&le.push(Ue),le.length&&(le=["("+le.join("; ")+")"]),We&&Ke&&Ke.indexOf(We)<0&&le.push("on "+We),Ke&&le.push((/^on /.test(le[le.length-1])?"":"on ")+Ke),st&&(Ue=/ ([\d.+]+)$/.exec(st),ye=Ue&&st.charAt(st.length-Ue[0].length-1)=="/",st={architecture:32,family:Ue&&!ye?st.replace(Ue[0],""):st,version:Ue?Ue[1]:null,toString:function(){var ft=this.version;return this.family+(ft&&!ye?" "+ft:"")+(this.architecture==64?" 64-bit":"")}}),(Ue=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec($e))&&!/\bi686\b/i.test($e)?(st&&(st.architecture=64,st.family=st.family.replace(RegExp(" *"+Ue),"")),ze&&(/\bWOW64\b/i.test(Ie)||Fe&&/\w(?:86|32)$/.test(tt.cpuClass||tt.platform)&&!/\bWin64; x64\b/i.test(Ie))&&le.unshift("32-bit")):st&&/^OS X/.test(st.family)&&ze=="Chrome"&&parseFloat(He)>=39&&(st.architecture=64),Ie||(Ie=null);var St={};return St.description=Ie,St.layout=Re&&Re[0],St.manufacturer=We,St.name=ze,St.prerelease=fe,St.product=Ke,St.ua=Ie,St.version=ze&&He,St.os=st||{architecture:null,family:null,version:null,toString:function(){return"null"}},St.parse=Be,St.toString=Bt,St.version&&le.unshift(He),St.name&&le.unshift(ze),st&&ze&&!(st==String(st).split(" ")[0]&&(st==ze.split(" ")[0]||Ke))&&le.push(Ke?"("+st+")":"on "+st),le.length&&(St.description=le.join(" ")),St}var Ve=Be();typeof ke=="function"&&typeof ke.amd=="object"&&ke.amd?(ie.platform=Ve,ke(function(){return Ve})):se&&pe?Ce(Ve,function(Ie,Ze){se[Ze]=Ie}):ie.platform=Ve}).call(this)}).call(this)}).call(this,typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(x,Ae,me){(function(re){(function(){"use strict";typeof re=="undefined"||!re.version||re.version.indexOf("v0.")===0||re.version.indexOf("v1.")===0&&re.version.indexOf("v1.8.")!==0?Ae.exports={nextTick:z}:Ae.exports=re;function z(ie,oe,se,pe){if(typeof ie!="function")throw new TypeError('"callback" argument must be a function');var ne=arguments.length,ae,ue;switch(ne){case 0:case 1:return re.nextTick(ie);case 2:return re.nextTick(function(){ie.call(null,oe)});case 3:return re.nextTick(function(){ie.call(null,oe,se)});case 4:return re.nextTick(function(){ie.call(null,oe,se,pe)});default:for(ae=new Array(ne-1),ue=0;ue<ae.length;)ae[ue++]=arguments[ue];return re.nextTick(function(){ie.apply(null,ae)})}}}).call(this)}).call(this,x("_process"))},{_process:467}],381:[function(x,Ae,me){var re=Ae.exports={},z,ie;function oe(){throw new Error("setTimeout has not been defined")}function se(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=oe}catch(Me){z=oe}try{typeof clearTimeout=="function"?ie=clearTimeout:ie=se}catch(Me){ie=se}})();function pe(Me){if(z===setTimeout)return setTimeout(Me,0);if((z===oe||!z)&&setTimeout)return z=setTimeout,setTimeout(Me,0);try{return z(Me,0)}catch(Le){try{return z.call(null,Me,0)}catch(Ce){return z.call(this,Me,0)}}}function ne(Me){if(ie===clearTimeout)return clearTimeout(Me);if((ie===se||!ie)&&clearTimeout)return ie=clearTimeout,clearTimeout(Me);try{return ie(Me)}catch(Le){try{return ie.call(null,Me)}catch(Ce){return ie.call(this,Me)}}}var ae=[],ue=!1,de,he=-1;function xe(){!ue||!de||(ue=!1,de.length?ae=de.concat(ae):he=-1,ae.length&&Se())}function Se(){if(!ue){var Me=pe(xe);ue=!0;for(var Le=ae.length;Le;){for(de=ae,ae=[];++he<Le;)de&&de[he].run();he=-1,Le=ae.length}de=null,ue=!1,ne(Me)}}re.nextTick=function(Me){var Le=new Array(arguments.length-1);if(arguments.length>1)for(var Ce=1;Ce<arguments.length;Ce++)Le[Ce-1]=arguments[Ce];ae.push(new we(Me,Le)),ae.length===1&&!ue&&pe(Se)};function we(Me,Le){this.fun=Me,this.array=Le}we.prototype.run=function(){this.fun.apply(null,this.array)},re.title="browser",re.browser=!0,re.env={},re.argv=[],re.version="",re.versions={};function be(){}re.on=be,re.addListener=be,re.once=be,re.off=be,re.removeListener=be,re.removeAllListeners=be,re.emit=be,re.prependListener=be,re.prependOnceListener=be,re.listeners=function(Me){return[]},re.binding=function(Me){throw new Error("process.binding is not supported")},re.cwd=function(){return"/"},re.chdir=function(Me){throw new Error("process.chdir is not supported")},re.umask=function(){return 0}},{}],382:[function(x,Ae,me){(function(re){(function(){(function(z){var ie=typeof me=="object"&&me&&!me.nodeType&&me,oe=typeof Ae=="object"&&Ae&&!Ae.nodeType&&Ae,se=typeof re=="object"&&re;(se.global===se||se.window===se||se.self===se)&&(z=se);var pe,ne=2147483647,ae=36,ue=1,de=26,he=38,xe=700,Se=72,we=128,be="-",Me=/^xn--/,Le=/[^\x20-\x7E]/,Ce=/[\x2E\u3002\uFF0E\uFF61]/g,Ne={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Te=ae-ue,De=Math.floor,Ee=String.fromCharCode,Pe;function Be(ut){throw new RangeError(Ne[ut])}function Ve(ut,rt){for(var qe=ut.length,nt=[];qe--;)nt[qe]=rt(ut[qe]);return nt}function Ie(ut,rt){var qe=ut.split("@"),nt="";qe.length>1&&(nt=qe[0]+"@",ut=qe[1]),ut=ut.replace(Ce,".");var xt=ut.split("."),yt=Ve(xt,rt).join(".");return nt+yt}function Ze(ut){for(var rt=[],qe=0,nt=ut.length,xt,yt;qe<nt;)xt=ut.charCodeAt(qe++),xt>=55296&&xt<=56319&&qe<nt?(yt=ut.charCodeAt(qe++),(yt&64512)==56320?rt.push(((xt&1023)<<10)+(yt&1023)+65536):(rt.push(xt),qe--)):rt.push(xt);return rt}function Qe(ut){return Ve(ut,function(rt){var qe="";return rt>65535&&(rt-=65536,qe+=Ee(rt>>>10&1023|55296),rt=56320|rt&1023),qe+=Ee(rt),qe}).join("")}function tt(ut){return ut-48<10?ut-22:ut-65<26?ut-65:ut-97<26?ut-97:ae}function it(ut,rt){return ut+22+75*(ut<26)-((rt!=0)<<5)}function ht(ut,rt,qe){var nt=0;for(ut=qe?De(ut/xe):ut>>1,ut+=De(ut/rt);ut>Te*de>>1;nt+=ae)ut=De(ut/Te);return De(nt+(Te+1)*ut/(ut+he))}function Ge(ut){var rt=[],qe=ut.length,nt,xt=0,yt=we,Rt=Se,Ot,lt,Ue,$e,le,fe,Fe,He,ye;for(Ot=ut.lastIndexOf(be),Ot<0&&(Ot=0),lt=0;lt<Ot;++lt)ut.charCodeAt(lt)>=128&&Be("not-basic"),rt.push(ut.charCodeAt(lt));for(Ue=Ot>0?Ot+1:0;Ue<qe;){for($e=xt,le=1,fe=ae;Ue>=qe&&Be("invalid-input"),Fe=tt(ut.charCodeAt(Ue++)),(Fe>=ae||Fe>De((ne-xt)/le))&&Be("overflow"),xt+=Fe*le,He=fe<=Rt?ue:fe>=Rt+de?de:fe-Rt,!(Fe<He);fe+=ae)ye=ae-He,le>De(ne/ye)&&Be("overflow"),le*=ye;nt=rt.length+1,Rt=ht(xt-$e,nt,$e==0),De(xt/nt)>ne-yt&&Be("overflow"),yt+=De(xt/nt),xt%=nt,rt.splice(xt++,0,yt)}return Qe(rt)}function Xe(ut){var rt,qe,nt,xt,yt,Rt,Ot,lt,Ue,$e,le,fe=[],Fe,He,ye,Re;for(ut=Ze(ut),Fe=ut.length,rt=we,qe=0,yt=Se,Rt=0;Rt<Fe;++Rt)le=ut[Rt],le<128&&fe.push(Ee(le));for(nt=xt=fe.length,xt&&fe.push(be);nt<Fe;){for(Ot=ne,Rt=0;Rt<Fe;++Rt)le=ut[Rt],le>=rt&&le<Ot&&(Ot=le);for(He=nt+1,Ot-rt>De((ne-qe)/He)&&Be("overflow"),qe+=(Ot-rt)*He,rt=Ot,Rt=0;Rt<Fe;++Rt)if(le=ut[Rt],le<rt&&++qe>ne&&Be("overflow"),le==rt){for(lt=qe,Ue=ae;$e=Ue<=yt?ue:Ue>=yt+de?de:Ue-yt,!(lt<$e);Ue+=ae)Re=lt-$e,ye=ae-$e,fe.push(Ee(it($e+Re%ye,0))),lt=De(Re/ye);fe.push(Ee(it(lt,0))),yt=ht(qe,He,nt==xt),qe=0,++nt}++qe,++rt}return fe.join("")}function ct(ut){return Ie(ut,function(rt){return Me.test(rt)?Ge(rt.slice(4).toLowerCase()):rt})}function pt(ut){return Ie(ut,function(rt){return Le.test(rt)?"xn--"+Xe(rt):rt})}if(pe={version:"1.4.1",ucs2:{decode:Ze,encode:Qe},decode:Ge,encode:Xe,toASCII:pt,toUnicode:ct},typeof ke=="function"&&typeof ke.amd=="object"&&ke.amd)ke("punycode",function(){return pe});else if(ie&&oe)if(Ae.exports==ie)oe.exports=pe;else for(Pe in pe)pe.hasOwnProperty(Pe)&&(ie[Pe]=pe[Pe]);else z.punycode=pe})(this)}).call(this)}).call(this,typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(x,Ae,me){"use strict";function re(ie,oe){return Object.prototype.hasOwnProperty.call(ie,oe)}Ae.exports=function(ie,oe,se,pe){oe=oe||"&",se=se||"=";var ne={};if(typeof ie!="string"||ie.length===0)return ne;var ae=/\+/g;ie=ie.split(oe);var ue=1e3;pe&&typeof pe.maxKeys=="number"&&(ue=pe.maxKeys);var de=ie.length;ue>0&&de>ue&&(de=ue);for(var he=0;he<de;++he){var xe=ie[he].replace(ae,"%20"),Se=xe.indexOf(se),we,be,Me,Le;Se>=0?(we=xe.substr(0,Se),be=xe.substr(Se+1)):(we=xe,be=""),Me=decodeURIComponent(we),Le=decodeURIComponent(be),re(ne,Me)?z(ne[Me])?ne[Me].push(Le):ne[Me]=[ne[Me],Le]:ne[Me]=Le}return ne};var z=Array.isArray||function(ie){return Object.prototype.toString.call(ie)==="[object Array]"}},{}],384:[function(x,Ae,me){"use strict";var re=function(se){switch(typeof se){case"string":return se;case"boolean":return se?"true":"false";case"number":return isFinite(se)?se:"";default:return""}};Ae.exports=function(se,pe,ne,ae){return pe=pe||"&",ne=ne||"=",se===null&&(se=void 0),typeof se=="object"?ie(oe(se),function(ue){var de=encodeURIComponent(re(ue))+ne;return z(se[ue])?ie(se[ue],function(he){return de+encodeURIComponent(re(he))}).join(pe):de+encodeURIComponent(re(se[ue]))}).join(pe):ae?encodeURIComponent(re(ae))+ne+encodeURIComponent(re(se)):""};var z=Array.isArray||function(se){return Object.prototype.toString.call(se)==="[object Array]"};function ie(se,pe){if(se.map)return se.map(pe);for(var ne=[],ae=0;ae<se.length;ae++)ne.push(pe(se[ae],ae));return ne}var oe=Object.keys||function(se){var pe=[];for(var ne in se)Object.prototype.hasOwnProperty.call(se,ne)&&pe.push(ne);return pe}},{}],385:[function(x,Ae,me){"use strict";me.decode=me.parse=x("./decode"),me.encode=me.stringify=x("./encode")},{"./decode":383,"./encode":384}],386:[function(x,Ae,me){"use strict";var re=x("process-nextick-args"),z=Object.keys||function(xe){var Se=[];for(var we in xe)Se.push(we);return Se};Ae.exports=ue;var ie=Object.create(x("core-util-is"));ie.inherits=x("inherits");var oe=x("./_stream_readable"),se=x("./_stream_writable");ie.inherits(ue,oe);for(var pe=z(se.prototype),ne=0;ne<pe.length;ne++){var ae=pe[ne];ue.prototype[ae]||(ue.prototype[ae]=se.prototype[ae])}function ue(xe){if(!(this instanceof ue))return new ue(xe);oe.call(this,xe),se.call(this,xe),xe&&xe.readable===!1&&(this.readable=!1),xe&&xe.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,xe&&xe.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",de)}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function de(){this.allowHalfOpen||this._writableState.ended||re.nextTick(he,this)}function he(xe){xe.end()}Object.defineProperty(ue.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(xe){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=xe,this._writableState.destroyed=xe)}}),ue.prototype._destroy=function(xe,Se){this.push(null),this.end(),re.nextTick(Se,xe)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(x,Ae,me){"use strict";Ae.exports=ie;var re=x("./_stream_transform"),z=Object.create(x("core-util-is"));z.inherits=x("inherits"),z.inherits(ie,re);function ie(oe){if(!(this instanceof ie))return new ie(oe);re.call(this,oe)}ie.prototype._transform=function(oe,se,pe){pe(null,oe)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(x,Ae,me){(function(re,z){(function(){"use strict";var ie=x("process-nextick-args");Ae.exports=Ee;var oe=x("isarray"),se;Ee.ReadableState=De;var pe=x("events").EventEmitter,ne=function(le,fe){return le.listeners(fe).length},ae=x("./internal/streams/stream"),ue=x("safe-buffer").Buffer,de=z.Uint8Array||function(){};function he(le){return ue.from(le)}function xe(le){return ue.isBuffer(le)||le instanceof de}var Se=Object.create(x("core-util-is"));Se.inherits=x("inherits");var we=x("util"),be=void 0;we&&we.debuglog?be=we.debuglog("stream"):be=function(){};var Me=x("./internal/streams/BufferList"),Le=x("./internal/streams/destroy"),Ce;Se.inherits(Ee,ae);var Ne=["error","close","destroy","pause","resume"];function Te(le,fe,Fe){if(typeof le.prependListener=="function")return le.prependListener(fe,Fe);!le._events||!le._events[fe]?le.on(fe,Fe):oe(le._events[fe])?le._events[fe].unshift(Fe):le._events[fe]=[Fe,le._events[fe]]}function De(le,fe){se=se||x("./_stream_duplex"),le=le||{};var Fe=fe instanceof se;this.objectMode=!!le.objectMode,Fe&&(this.objectMode=this.objectMode||!!le.readableObjectMode);var He=le.highWaterMark,ye=le.readableHighWaterMark,Re=this.objectMode?16:16*1024;He||He===0?this.highWaterMark=He:Fe&&(ye||ye===0)?this.highWaterMark=ye:this.highWaterMark=Re,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Me,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=le.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,le.encoding&&(Ce||(Ce=x("string_decoder/").StringDecoder),this.decoder=new Ce(le.encoding),this.encoding=le.encoding)}function Ee(le){if(se=se||x("./_stream_duplex"),!(this instanceof Ee))return new Ee(le);this._readableState=new De(le,this),this.readable=!0,le&&(typeof le.read=="function"&&(this._read=le.read),typeof le.destroy=="function"&&(this._destroy=le.destroy)),ae.call(this)}Object.defineProperty(Ee.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(le){this._readableState&&(this._readableState.destroyed=le)}}),Ee.prototype.destroy=Le.destroy,Ee.prototype._undestroy=Le.undestroy,Ee.prototype._destroy=function(le,fe){this.push(null),fe(le)},Ee.prototype.push=function(le,fe){var Fe=this._readableState,He;return Fe.objectMode?He=!0:typeof le=="string"&&(fe=fe||Fe.defaultEncoding,fe!==Fe.encoding&&(le=ue.from(le,fe),fe=""),He=!0),Pe(this,le,fe,!1,He)},Ee.prototype.unshift=function(le){return Pe(this,le,null,!0,!1)};function Pe(le,fe,Fe,He,ye){var Re=le._readableState;if(fe===null)Re.reading=!1,it(le,Re);else{var ze;ye||(ze=Ve(Re,fe)),ze?le.emit("error",ze):Re.objectMode||fe&&fe.length>0?(typeof fe!="string"&&!Re.objectMode&&Object.getPrototypeOf(fe)!==ue.prototype&&(fe=he(fe)),He?Re.endEmitted?le.emit("error",new Error("stream.unshift() after end event")):Be(le,Re,fe,!0):Re.ended?le.emit("error",new Error("stream.push() after EOF")):(Re.reading=!1,Re.decoder&&!Fe?(fe=Re.decoder.write(fe),Re.objectMode||fe.length!==0?Be(le,Re,fe,!1):Xe(le,Re)):Be(le,Re,fe,!1))):He||(Re.reading=!1)}return Ie(Re)}function Be(le,fe,Fe,He){fe.flowing&&fe.length===0&&!fe.sync?(le.emit("data",Fe),le.read(0)):(fe.length+=fe.objectMode?1:Fe.length,He?fe.buffer.unshift(Fe):fe.buffer.push(Fe),fe.needReadable&&ht(le)),Xe(le,fe)}function Ve(le,fe){var Fe;return!xe(fe)&&typeof fe!="string"&&fe!==void 0&&!le.objectMode&&(Fe=new TypeError("Invalid non-string/buffer chunk")),Fe}function Ie(le){return!le.ended&&(le.needReadable||le.length<le.highWaterMark||le.length===0)}Ee.prototype.isPaused=function(){return this._readableState.flowing===!1},Ee.prototype.setEncoding=function(le){return Ce||(Ce=x("string_decoder/").StringDecoder),this._readableState.decoder=new Ce(le),this._readableState.encoding=le,this};var Ze=8388608;function Qe(le){return le>=Ze?le=Ze:(le--,le|=le>>>1,le|=le>>>2,le|=le>>>4,le|=le>>>8,le|=le>>>16,le++),le}function tt(le,fe){return le<=0||fe.length===0&&fe.ended?0:fe.objectMode?1:le!==le?fe.flowing&&fe.length?fe.buffer.head.data.length:fe.length:(le>fe.highWaterMark&&(fe.highWaterMark=Qe(le)),le<=fe.length?le:fe.ended?fe.length:(fe.needReadable=!0,0))}Ee.prototype.read=function(le){be("read",le),le=parseInt(le,10);var fe=this._readableState,Fe=le;if(le!==0&&(fe.emittedReadable=!1),le===0&&fe.needReadable&&(fe.length>=fe.highWaterMark||fe.ended))return be("read: emitReadable",fe.length,fe.ended),fe.length===0&&fe.ended?lt(this):ht(this),null;if(le=tt(le,fe),le===0&&fe.ended)return fe.length===0&<(this),null;var He=fe.needReadable;be("need readable",He),(fe.length===0||fe.length-le<fe.highWaterMark)&&(He=!0,be("length less than watermark",He)),fe.ended||fe.reading?(He=!1,be("reading or ended",He)):He&&(be("do read"),fe.reading=!0,fe.sync=!0,fe.length===0&&(fe.needReadable=!0),this._read(fe.highWaterMark),fe.sync=!1,fe.reading||(le=tt(Fe,fe)));var ye;return le>0?ye=xt(le,fe):ye=null,ye===null?(fe.needReadable=!0,le=0):fe.length-=le,fe.length===0&&(fe.ended||(fe.needReadable=!0),Fe!==le&&fe.ended&<(this)),ye!==null&&this.emit("data",ye),ye};function it(le,fe){if(!fe.ended){if(fe.decoder){var Fe=fe.decoder.end();Fe&&Fe.length&&(fe.buffer.push(Fe),fe.length+=fe.objectMode?1:Fe.length)}fe.ended=!0,ht(le)}}function ht(le){var fe=le._readableState;fe.needReadable=!1,fe.emittedReadable||(be("emitReadable",fe.flowing),fe.emittedReadable=!0,fe.sync?ie.nextTick(Ge,le):Ge(le))}function Ge(le){be("emit readable"),le.emit("readable"),nt(le)}function Xe(le,fe){fe.readingMore||(fe.readingMore=!0,ie.nextTick(ct,le,fe))}function ct(le,fe){for(var Fe=fe.length;!fe.reading&&!fe.flowing&&!fe.ended&&fe.length<fe.highWaterMark&&(be("maybeReadMore read 0"),le.read(0),Fe!==fe.length);)Fe=fe.length;fe.readingMore=!1}Ee.prototype._read=function(le){this.emit("error",new Error("_read() is not implemented"))},Ee.prototype.pipe=function(le,fe){var Fe=this,He=this._readableState;switch(He.pipesCount){case 0:He.pipes=le;break;case 1:He.pipes=[He.pipes,le];break;default:He.pipes.push(le);break}He.pipesCount+=1,be("pipe count=%d opts=%j",He.pipesCount,fe);var ye=(!fe||fe.end!==!1)&&le!==re.stdout&&le!==re.stderr,Re=ye?Ke:Bt;He.endEmitted?ie.nextTick(Re):Fe.once("end",Re),le.on("unpipe",ze);function ze(St,ft){be("onunpipe"),St===Fe&&ft&&ft.hasUnpiped===!1&&(ft.hasUnpiped=!0,bt())}function Ke(){be("onend"),le.end()}var We=pt(Fe);le.on("drain",We);var st=!1;function bt(){be("cleanup"),le.removeListener("close",Ct),le.removeListener("finish",$t),le.removeListener("drain",We),le.removeListener("error",Ht),le.removeListener("unpipe",ze),Fe.removeListener("end",Ke),Fe.removeListener("end",Bt),Fe.removeListener("data",kt),st=!0,He.awaitDrain&&(!le._writableState||le._writableState.needDrain)&&We()}var at=!1;Fe.on("data",kt);function kt(St){be("ondata"),at=!1;var ft=le.write(St);ft===!1&&!at&&((He.pipesCount===1&&He.pipes===le||He.pipesCount>1&&$e(He.pipes,le)!==-1)&&!st&&(be("false write response, pause",Fe._readableState.awaitDrain),Fe._readableState.awaitDrain++,at=!0),Fe.pause())}function Ht(St){be("onerror",St),Bt(),le.removeListener("error",Ht),ne(le,"error")===0&&le.emit("error",St)}Te(le,"error",Ht);function Ct(){le.removeListener("finish",$t),Bt()}le.once("close",Ct);function $t(){be("onfinish"),le.removeListener("close",Ct),Bt()}le.once("finish",$t);function Bt(){be("unpipe"),Fe.unpipe(le)}return le.emit("pipe",Fe),He.flowing||(be("pipe resume"),Fe.resume()),le};function pt(le){return function(){var fe=le._readableState;be("pipeOnDrain",fe.awaitDrain),fe.awaitDrain&&fe.awaitDrain--,fe.awaitDrain===0&&ne(le,"data")&&(fe.flowing=!0,nt(le))}}Ee.prototype.unpipe=function(le){var fe=this._readableState,Fe={hasUnpiped:!1};if(fe.pipesCount===0)return this;if(fe.pipesCount===1)return le&&le!==fe.pipes?this:(le||(le=fe.pipes),fe.pipes=null,fe.pipesCount=0,fe.flowing=!1,le&&le.emit("unpipe",this,Fe),this);if(!le){var He=fe.pipes,ye=fe.pipesCount;fe.pipes=null,fe.pipesCount=0,fe.flowing=!1;for(var Re=0;Re<ye;Re++)He[Re].emit("unpipe",this,Fe);return this}var ze=$e(fe.pipes,le);return ze===-1?this:(fe.pipes.splice(ze,1),fe.pipesCount-=1,fe.pipesCount===1&&(fe.pipes=fe.pipes[0]),le.emit("unpipe",this,Fe),this)},Ee.prototype.on=function(le,fe){var Fe=ae.prototype.on.call(this,le,fe);if(le==="data")this._readableState.flowing!==!1&&this.resume();else if(le==="readable"){var He=this._readableState;!He.endEmitted&&!He.readableListening&&(He.readableListening=He.needReadable=!0,He.emittedReadable=!1,He.reading?He.length&&ht(this):ie.nextTick(ut,this))}return Fe},Ee.prototype.addListener=Ee.prototype.on;function ut(le){be("readable nexttick read 0"),le.read(0)}Ee.prototype.resume=function(){var le=this._readableState;return le.flowing||(be("resume"),le.flowing=!0,rt(this,le)),this};function rt(le,fe){fe.resumeScheduled||(fe.resumeScheduled=!0,ie.nextTick(qe,le,fe))}function qe(le,fe){fe.reading||(be("resume read 0"),le.read(0)),fe.resumeScheduled=!1,fe.awaitDrain=0,le.emit("resume"),nt(le),fe.flowing&&!fe.reading&&le.read(0)}Ee.prototype.pause=function(){return be("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(be("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function nt(le){var fe=le._readableState;for(be("flow",fe.flowing);fe.flowing&&le.read()!==null;);}Ee.prototype.wrap=function(le){var fe=this,Fe=this._readableState,He=!1;le.on("end",function(){if(be("wrapped end"),Fe.decoder&&!Fe.ended){var ze=Fe.decoder.end();ze&&ze.length&&fe.push(ze)}fe.push(null)}),le.on("data",function(ze){if(be("wrapped data"),Fe.decoder&&(ze=Fe.decoder.write(ze)),!(Fe.objectMode&&ze==null)&&!(!Fe.objectMode&&(!ze||!ze.length))){var Ke=fe.push(ze);Ke||(He=!0,le.pause())}});for(var ye in le)this[ye]===void 0&&typeof le[ye]=="function"&&(this[ye]=function(ze){return function(){return le[ze].apply(le,arguments)}}(ye));for(var Re=0;Re<Ne.length;Re++)le.on(Ne[Re],this.emit.bind(this,Ne[Re]));return this._read=function(ze){be("wrapped _read",ze),He&&(He=!1,le.resume())},this},Object.defineProperty(Ee.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ee._fromList=xt;function xt(le,fe){if(fe.length===0)return null;var Fe;return fe.objectMode?Fe=fe.buffer.shift():!le||le>=fe.length?(fe.decoder?Fe=fe.buffer.join(""):fe.buffer.length===1?Fe=fe.buffer.head.data:Fe=fe.buffer.concat(fe.length),fe.buffer.clear()):Fe=yt(le,fe.buffer,fe.decoder),Fe}function yt(le,fe,Fe){var He;return le<fe.head.data.length?(He=fe.head.data.slice(0,le),fe.head.data=fe.head.data.slice(le)):le===fe.head.data.length?He=fe.shift():He=Fe?Rt(le,fe):Ot(le,fe),He}function Rt(le,fe){var Fe=fe.head,He=1,ye=Fe.data;for(le-=ye.length;Fe=Fe.next;){var Re=Fe.data,ze=le>Re.length?Re.length:le;if(ze===Re.length?ye+=Re:ye+=Re.slice(0,le),le-=ze,le===0){ze===Re.length?(++He,Fe.next?fe.head=Fe.next:fe.head=fe.tail=null):(fe.head=Fe,Fe.data=Re.slice(ze));break}++He}return fe.length-=He,ye}function Ot(le,fe){var Fe=ue.allocUnsafe(le),He=fe.head,ye=1;for(He.data.copy(Fe),le-=He.data.length;He=He.next;){var Re=He.data,ze=le>Re.length?Re.length:le;if(Re.copy(Fe,Fe.length-le,0,ze),le-=ze,le===0){ze===Re.length?(++ye,He.next?fe.head=He.next:fe.head=fe.tail=null):(fe.head=He,He.data=Re.slice(ze));break}++ye}return fe.length-=ye,Fe}function lt(le){var fe=le._readableState;if(fe.length>0)throw new Error('"endReadable()" called on non-empty stream');fe.endEmitted||(fe.ended=!0,ie.nextTick(Ue,fe,le))}function Ue(le,fe){!le.endEmitted&&le.length===0&&(le.endEmitted=!0,fe.readable=!1,fe.emit("end"))}function $e(le,fe){for(var Fe=0,He=le.length;Fe<He;Fe++)if(le[Fe]===fe)return Fe;return-1}}).call(this)}).call(this,x("_process"),typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(x,Ae,me){"use strict";Ae.exports=oe;var re=x("./_stream_duplex"),z=Object.create(x("core-util-is"));z.inherits=x("inherits"),z.inherits(oe,re);function ie(ne,ae){var ue=this._transformState;ue.transforming=!1;var de=ue.writecb;if(!de)return this.emit("error",new Error("write callback called multiple times"));ue.writechunk=null,ue.writecb=null,ae!=null&&this.push(ae),de(ne);var he=this._readableState;he.reading=!1,(he.needReadable||he.length<he.highWaterMark)&&this._read(he.highWaterMark)}function oe(ne){if(!(this instanceof oe))return new oe(ne);re.call(this,ne),this._transformState={afterTransform:ie.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ne&&(typeof ne.transform=="function"&&(this._transform=ne.transform),typeof ne.flush=="function"&&(this._flush=ne.flush)),this.on("prefinish",se)}function se(){var ne=this;typeof this._flush=="function"?this._flush(function(ae,ue){pe(ne,ae,ue)}):pe(this,null,null)}oe.prototype.push=function(ne,ae){return this._transformState.needTransform=!1,re.prototype.push.call(this,ne,ae)},oe.prototype._transform=function(ne,ae,ue){throw new Error("_transform() is not implemented")},oe.prototype._write=function(ne,ae,ue){var de=this._transformState;if(de.writecb=ue,de.writechunk=ne,de.writeencoding=ae,!de.transforming){var he=this._readableState;(de.needTransform||he.needReadable||he.length<he.highWaterMark)&&this._read(he.highWaterMark)}},oe.prototype._read=function(ne){var ae=this._transformState;ae.writechunk!==null&&ae.writecb&&!ae.transforming?(ae.transforming=!0,this._transform(ae.writechunk,ae.writeencoding,ae.afterTransform)):ae.needTransform=!0},oe.prototype._destroy=function(ne,ae){var ue=this;re.prototype._destroy.call(this,ne,function(de){ae(de),ue.emit("close")})};function pe(ne,ae,ue){if(ae)return ne.emit("error",ae);if(ue!=null&&ne.push(ue),ne._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(ne._transformState.transforming)throw new Error("Calling transform done when still transforming");return ne.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(x,Ae,me){(function(re,z,ie){(function(){"use strict";var oe=x("process-nextick-args");Ae.exports=Te;function se(qe,nt,xt){this.chunk=qe,this.encoding=nt,this.callback=xt,this.next=null}function pe(qe){var nt=this;this.next=null,this.entry=null,this.finish=function(){rt(nt,qe)}}var ne=!re.browser&&["v0.10","v0.9."].indexOf(re.version.slice(0,5))>-1?ie:oe.nextTick,ae;Te.WritableState=Ce;var ue=Object.create(x("core-util-is"));ue.inherits=x("inherits");var de={deprecate:x("util-deprecate")},he=x("./internal/streams/stream"),xe=x("safe-buffer").Buffer,Se=z.Uint8Array||function(){};function we(qe){return xe.from(qe)}function be(qe){return xe.isBuffer(qe)||qe instanceof Se}var Me=x("./internal/streams/destroy");ue.inherits(Te,he);function Le(){}function Ce(qe,nt){ae=ae||x("./_stream_duplex"),qe=qe||{};var xt=nt instanceof ae;this.objectMode=!!qe.objectMode,xt&&(this.objectMode=this.objectMode||!!qe.writableObjectMode);var yt=qe.highWaterMark,Rt=qe.writableHighWaterMark,Ot=this.objectMode?16:16*1024;yt||yt===0?this.highWaterMark=yt:xt&&(Rt||Rt===0)?this.highWaterMark=Rt:this.highWaterMark=Ot,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var lt=qe.decodeStrings===!1;this.decodeStrings=!lt,this.defaultEncoding=qe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ue){Qe(nt,Ue)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new pe(this)}Ce.prototype.getBuffer=function(){for(var nt=this.bufferedRequest,xt=[];nt;)xt.push(nt),nt=nt.next;return xt},function(){try{Object.defineProperty(Ce.prototype,"buffer",{get:de.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(qe){}}();var Ne;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ne=Function.prototype[Symbol.hasInstance],Object.defineProperty(Te,Symbol.hasInstance,{value:function(qe){return Ne.call(this,qe)?!0:this!==Te?!1:qe&&qe._writableState instanceof Ce}})):Ne=function(qe){return qe instanceof this};function Te(qe){if(ae=ae||x("./_stream_duplex"),!Ne.call(Te,this)&&!(this instanceof ae))return new Te(qe);this._writableState=new Ce(qe,this),this.writable=!0,qe&&(typeof qe.write=="function"&&(this._write=qe.write),typeof qe.writev=="function"&&(this._writev=qe.writev),typeof qe.destroy=="function"&&(this._destroy=qe.destroy),typeof qe.final=="function"&&(this._final=qe.final)),he.call(this)}Te.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function De(qe,nt){var xt=new Error("write after end");qe.emit("error",xt),oe.nextTick(nt,xt)}function Ee(qe,nt,xt,yt){var Rt=!0,Ot=!1;return xt===null?Ot=new TypeError("May not write null values to stream"):typeof xt!="string"&&xt!==void 0&&!nt.objectMode&&(Ot=new TypeError("Invalid non-string/buffer chunk")),Ot&&(qe.emit("error",Ot),oe.nextTick(yt,Ot),Rt=!1),Rt}Te.prototype.write=function(qe,nt,xt){var yt=this._writableState,Rt=!1,Ot=!yt.objectMode&&be(qe);return Ot&&!xe.isBuffer(qe)&&(qe=we(qe)),typeof nt=="function"&&(xt=nt,nt=null),Ot?nt="buffer":nt||(nt=yt.defaultEncoding),typeof xt!="function"&&(xt=Le),yt.ended?De(this,xt):(Ot||Ee(this,yt,qe,xt))&&(yt.pendingcb++,Rt=Be(this,yt,Ot,qe,nt,xt)),Rt},Te.prototype.cork=function(){var qe=this._writableState;qe.corked++},Te.prototype.uncork=function(){var qe=this._writableState;qe.corked&&(qe.corked--,!qe.writing&&!qe.corked&&!qe.finished&&!qe.bufferProcessing&&qe.bufferedRequest&&ht(this,qe))},Te.prototype.setDefaultEncoding=function(nt){if(typeof nt=="string"&&(nt=nt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((nt+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+nt);return this._writableState.defaultEncoding=nt,this};function Pe(qe,nt,xt){return!qe.objectMode&&qe.decodeStrings!==!1&&typeof nt=="string"&&(nt=xe.from(nt,xt)),nt}Object.defineProperty(Te.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Be(qe,nt,xt,yt,Rt,Ot){if(!xt){var lt=Pe(nt,yt,Rt);yt!==lt&&(xt=!0,Rt="buffer",yt=lt)}var Ue=nt.objectMode?1:yt.length;nt.length+=Ue;var $e=nt.length<nt.highWaterMark;if($e||(nt.needDrain=!0),nt.writing||nt.corked){var le=nt.lastBufferedRequest;nt.lastBufferedRequest={chunk:yt,encoding:Rt,isBuf:xt,callback:Ot,next:null},le?le.next=nt.lastBufferedRequest:nt.bufferedRequest=nt.lastBufferedRequest,nt.bufferedRequestCount+=1}else Ve(qe,nt,!1,Ue,yt,Rt,Ot);return $e}function Ve(qe,nt,xt,yt,Rt,Ot,lt){nt.writelen=yt,nt.writecb=lt,nt.writing=!0,nt.sync=!0,xt?qe._writev(Rt,nt.onwrite):qe._write(Rt,Ot,nt.onwrite),nt.sync=!1}function Ie(qe,nt,xt,yt,Rt){--nt.pendingcb,xt?(oe.nextTick(Rt,yt),oe.nextTick(pt,qe,nt),qe._writableState.errorEmitted=!0,qe.emit("error",yt)):(Rt(yt),qe._writableState.errorEmitted=!0,qe.emit("error",yt),pt(qe,nt))}function Ze(qe){qe.writing=!1,qe.writecb=null,qe.length-=qe.writelen,qe.writelen=0}function Qe(qe,nt){var xt=qe._writableState,yt=xt.sync,Rt=xt.writecb;if(Ze(xt),nt)Ie(qe,xt,yt,nt,Rt);else{var Ot=Ge(xt);!Ot&&!xt.corked&&!xt.bufferProcessing&&xt.bufferedRequest&&ht(qe,xt),yt?ne(tt,qe,xt,Ot,Rt):tt(qe,xt,Ot,Rt)}}function tt(qe,nt,xt,yt){xt||it(qe,nt),nt.pendingcb--,yt(),pt(qe,nt)}function it(qe,nt){nt.length===0&&nt.needDrain&&(nt.needDrain=!1,qe.emit("drain"))}function ht(qe,nt){nt.bufferProcessing=!0;var xt=nt.bufferedRequest;if(qe._writev&&xt&&xt.next){var yt=nt.bufferedRequestCount,Rt=new Array(yt),Ot=nt.corkedRequestsFree;Ot.entry=xt;for(var lt=0,Ue=!0;xt;)Rt[lt]=xt,xt.isBuf||(Ue=!1),xt=xt.next,lt+=1;Rt.allBuffers=Ue,Ve(qe,nt,!0,nt.length,Rt,"",Ot.finish),nt.pendingcb++,nt.lastBufferedRequest=null,Ot.next?(nt.corkedRequestsFree=Ot.next,Ot.next=null):nt.corkedRequestsFree=new pe(nt),nt.bufferedRequestCount=0}else{for(;xt;){var $e=xt.chunk,le=xt.encoding,fe=xt.callback,Fe=nt.objectMode?1:$e.length;if(Ve(qe,nt,!1,Fe,$e,le,fe),xt=xt.next,nt.bufferedRequestCount--,nt.writing)break}xt===null&&(nt.lastBufferedRequest=null)}nt.bufferedRequest=xt,nt.bufferProcessing=!1}Te.prototype._write=function(qe,nt,xt){xt(new Error("_write() is not implemented"))},Te.prototype._writev=null,Te.prototype.end=function(qe,nt,xt){var yt=this._writableState;typeof qe=="function"?(xt=qe,qe=null,nt=null):typeof nt=="function"&&(xt=nt,nt=null),qe!=null&&this.write(qe,nt),yt.corked&&(yt.corked=1,this.uncork()),!yt.ending&&!yt.finished&&ut(this,yt,xt)};function Ge(qe){return qe.ending&&qe.length===0&&qe.bufferedRequest===null&&!qe.finished&&!qe.writing}function Xe(qe,nt){qe._final(function(xt){nt.pendingcb--,xt&&qe.emit("error",xt),nt.prefinished=!0,qe.emit("prefinish"),pt(qe,nt)})}function ct(qe,nt){!nt.prefinished&&!nt.finalCalled&&(typeof qe._final=="function"?(nt.pendingcb++,nt.finalCalled=!0,oe.nextTick(Xe,qe,nt)):(nt.prefinished=!0,qe.emit("prefinish")))}function pt(qe,nt){var xt=Ge(nt);return xt&&(ct(qe,nt),nt.pendingcb===0&&(nt.finished=!0,qe.emit("finish"))),xt}function ut(qe,nt,xt){nt.ending=!0,pt(qe,nt),xt&&(nt.finished?oe.nextTick(xt):qe.once("finish",xt)),nt.ended=!0,qe.writable=!1}function rt(qe,nt,xt){var yt=qe.entry;for(qe.entry=null;yt;){var Rt=yt.callback;nt.pendingcb--,Rt(xt),yt=yt.next}nt.corkedRequestsFree?nt.corkedRequestsFree.next=qe:nt.corkedRequestsFree=qe}Object.defineProperty(Te.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(qe){this._writableState&&(this._writableState.destroyed=qe)}}),Te.prototype.destroy=Me.destroy,Te.prototype._undestroy=Me.undestroy,Te.prototype._destroy=function(qe,nt){this.end(),nt(qe)}}).call(this)}).call(this,x("_process"),typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},x("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(x,Ae,me){"use strict";function re(se,pe){if(!(se instanceof pe))throw new TypeError("Cannot call a class as a function")}var z=x("safe-buffer").Buffer,ie=x("util");function oe(se,pe,ne){se.copy(pe,ne)}Ae.exports=function(){function se(){re(this,se),this.head=null,this.tail=null,this.length=0}return se.prototype.push=function(ne){var ae={data:ne,next:null};this.length>0?this.tail.next=ae:this.head=ae,this.tail=ae,++this.length},se.prototype.unshift=function(ne){var ae={data:ne,next:this.head};this.length===0&&(this.tail=ae),this.head=ae,++this.length},se.prototype.shift=function(){if(this.length!==0){var ne=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ne}},se.prototype.clear=function(){this.head=this.tail=null,this.length=0},se.prototype.join=function(ne){if(this.length===0)return"";for(var ae=this.head,ue=""+ae.data;ae=ae.next;)ue+=ne+ae.data;return ue},se.prototype.concat=function(ne){if(this.length===0)return z.alloc(0);if(this.length===1)return this.head.data;for(var ae=z.allocUnsafe(ne>>>0),ue=this.head,de=0;ue;)oe(ue.data,ae,de),de+=ue.data.length,ue=ue.next;return ae},se}(),ie&&ie.inspect&&ie.inspect.custom&&(Ae.exports.prototype[ie.inspect.custom]=function(){var se=ie.inspect({length:this.length});return this.constructor.name+" "+se})},{"safe-buffer":396,util:89}],392:[function(x,Ae,me){"use strict";var re=x("process-nextick-args");function z(se,pe){var ne=this,ae=this._readableState&&this._readableState.destroyed,ue=this._writableState&&this._writableState.destroyed;return ae||ue?(pe?pe(se):se&&(!this._writableState||!this._writableState.errorEmitted)&&re.nextTick(oe,this,se),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(se||null,function(de){!pe&&de?(re.nextTick(oe,ne,de),ne._writableState&&(ne._writableState.errorEmitted=!0)):pe&&pe(de)}),this)}function ie(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function oe(se,pe){se.emit("error",pe)}Ae.exports={destroy:z,undestroy:ie}},{"process-nextick-args":380}],393:[function(x,Ae,me){Ae.exports=x("events").EventEmitter},{events:344}],394:[function(x,Ae,me){me=Ae.exports=x("./lib/_stream_readable.js"),me.Stream=me,me.Readable=me,me.Writable=x("./lib/_stream_writable.js"),me.Duplex=x("./lib/_stream_duplex.js"),me.Transform=x("./lib/_stream_transform.js"),me.PassThrough=x("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(x,Ae,me){var re=function(z){"use strict";var ie=Object.prototype,oe=ie.hasOwnProperty,se,pe=typeof Symbol=="function"?Symbol:{},ne=pe.iterator||"@@iterator",ae=pe.asyncIterator||"@@asyncIterator",ue=pe.toStringTag||"@@toStringTag";function de(ct,pt,ut){return Object.defineProperty(ct,pt,{value:ut,enumerable:!0,configurable:!0,writable:!0}),ct[pt]}try{de({},"")}catch(ct){de=function(pt,ut,rt){return pt[ut]=rt}}function he(ct,pt,ut,rt){var qe=pt&&pt.prototype instanceof Ce?pt:Ce,nt=Object.create(qe.prototype),xt=new ht(rt||[]);return nt._invoke=Ze(ct,ut,xt),nt}z.wrap=he;function xe(ct,pt,ut){try{return{type:"normal",arg:ct.call(pt,ut)}}catch(rt){return{type:"throw",arg:rt}}}var Se="suspendedStart",we="suspendedYield",be="executing",Me="completed",Le={};function Ce(){}function Ne(){}function Te(){}var De={};de(De,ne,function(){return this});var Ee=Object.getPrototypeOf,Pe=Ee&&Ee(Ee(Ge([])));Pe&&Pe!==ie&&oe.call(Pe,ne)&&(De=Pe);var Be=Te.prototype=Ce.prototype=Object.create(De);Ne.prototype=Te,de(Be,"constructor",Te),de(Te,"constructor",Ne),Ne.displayName=de(Te,ue,"GeneratorFunction");function Ve(ct){["next","throw","return"].forEach(function(pt){de(ct,pt,function(ut){return this._invoke(pt,ut)})})}z.isGeneratorFunction=function(ct){var pt=typeof ct=="function"&&ct.constructor;return pt?pt===Ne||(pt.displayName||pt.name)==="GeneratorFunction":!1},z.mark=function(ct){return Object.setPrototypeOf?Object.setPrototypeOf(ct,Te):(ct.__proto__=Te,de(ct,ue,"GeneratorFunction")),ct.prototype=Object.create(Be),ct},z.awrap=function(ct){return{__await:ct}};function Ie(ct,pt){function ut(nt,xt,yt,Rt){var Ot=xe(ct[nt],ct,xt);if(Ot.type==="throw")Rt(Ot.arg);else{var lt=Ot.arg,Ue=lt.value;return Ue&&typeof Ue=="object"&&oe.call(Ue,"__await")?pt.resolve(Ue.__await).then(function($e){ut("next",$e,yt,Rt)},function($e){ut("throw",$e,yt,Rt)}):pt.resolve(Ue).then(function($e){lt.value=$e,yt(lt)},function($e){return ut("throw",$e,yt,Rt)})}}var rt;function qe(nt,xt){function yt(){return new pt(function(Rt,Ot){ut(nt,xt,Rt,Ot)})}return rt=rt?rt.then(yt,yt):yt()}this._invoke=qe}Ve(Ie.prototype),de(Ie.prototype,ae,function(){return this}),z.AsyncIterator=Ie,z.async=function(ct,pt,ut,rt,qe){qe===void 0&&(qe=Promise);var nt=new Ie(he(ct,pt,ut,rt),qe);return z.isGeneratorFunction(pt)?nt:nt.next().then(function(xt){return xt.done?xt.value:nt.next()})};function Ze(ct,pt,ut){var rt=Se;return function(nt,xt){if(rt===be)throw new Error("Generator is already running");if(rt===Me){if(nt==="throw")throw xt;return Xe()}for(ut.method=nt,ut.arg=xt;;){var yt=ut.delegate;if(yt){var Rt=Qe(yt,ut);if(Rt){if(Rt===Le)continue;return Rt}}if(ut.method==="next")ut.sent=ut._sent=ut.arg;else if(ut.method==="throw"){if(rt===Se)throw rt=Me,ut.arg;ut.dispatchException(ut.arg)}else ut.method==="return"&&ut.abrupt("return",ut.arg);rt=be;var Ot=xe(ct,pt,ut);if(Ot.type==="normal"){if(rt=ut.done?Me:we,Ot.arg===Le)continue;return{value:Ot.arg,done:ut.done}}else Ot.type==="throw"&&(rt=Me,ut.method="throw",ut.arg=Ot.arg)}}}function Qe(ct,pt){var ut=ct.iterator[pt.method];if(ut===se){if(pt.delegate=null,pt.method==="throw"){if(ct.iterator.return&&(pt.method="return",pt.arg=se,Qe(ct,pt),pt.method==="throw"))return Le;pt.method="throw",pt.arg=new TypeError("The iterator does not provide a 'throw' method")}return Le}var rt=xe(ut,ct.iterator,pt.arg);if(rt.type==="throw")return pt.method="throw",pt.arg=rt.arg,pt.delegate=null,Le;var qe=rt.arg;if(!qe)return pt.method="throw",pt.arg=new TypeError("iterator result is not an object"),pt.delegate=null,Le;if(qe.done)pt[ct.resultName]=qe.value,pt.next=ct.nextLoc,pt.method!=="return"&&(pt.method="next",pt.arg=se);else return qe;return pt.delegate=null,Le}Ve(Be),de(Be,ue,"Generator"),de(Be,ne,function(){return this}),de(Be,"toString",function(){return"[object Generator]"});function tt(ct){var pt={tryLoc:ct[0]};1 in ct&&(pt.catchLoc=ct[1]),2 in ct&&(pt.finallyLoc=ct[2],pt.afterLoc=ct[3]),this.tryEntries.push(pt)}function it(ct){var pt=ct.completion||{};pt.type="normal",delete pt.arg,ct.completion=pt}function ht(ct){this.tryEntries=[{tryLoc:"root"}],ct.forEach(tt,this),this.reset(!0)}z.keys=function(ct){var pt=[];for(var ut in ct)pt.push(ut);return pt.reverse(),function rt(){for(;pt.length;){var qe=pt.pop();if(qe in ct)return rt.value=qe,rt.done=!1,rt}return rt.done=!0,rt}};function Ge(ct){if(ct){var pt=ct[ne];if(pt)return pt.call(ct);if(typeof ct.next=="function")return ct;if(!isNaN(ct.length)){var ut=-1,rt=function qe(){for(;++ut<ct.length;)if(oe.call(ct,ut))return qe.value=ct[ut],qe.done=!1,qe;return qe.value=se,qe.done=!0,qe};return rt.next=rt}}return{next:Xe}}z.values=Ge;function Xe(){return{value:se,done:!0}}return ht.prototype={constructor:ht,reset:function(ct){if(this.prev=0,this.next=0,this.sent=this._sent=se,this.done=!1,this.delegate=null,this.method="next",this.arg=se,this.tryEntries.forEach(it),!ct)for(var pt in this)pt.charAt(0)==="t"&&oe.call(this,pt)&&!isNaN(+pt.slice(1))&&(this[pt]=se)},stop:function(){this.done=!0;var ct=this.tryEntries[0],pt=ct.completion;if(pt.type==="throw")throw pt.arg;return this.rval},dispatchException:function(ct){if(this.done)throw ct;var pt=this;function ut(Rt,Ot){return nt.type="throw",nt.arg=ct,pt.next=Rt,Ot&&(pt.method="next",pt.arg=se),!!Ot}for(var rt=this.tryEntries.length-1;rt>=0;--rt){var qe=this.tryEntries[rt],nt=qe.completion;if(qe.tryLoc==="root")return ut("end");if(qe.tryLoc<=this.prev){var xt=oe.call(qe,"catchLoc"),yt=oe.call(qe,"finallyLoc");if(xt&&yt){if(this.prev<qe.catchLoc)return ut(qe.catchLoc,!0);if(this.prev<qe.finallyLoc)return ut(qe.finallyLoc)}else if(xt){if(this.prev<qe.catchLoc)return ut(qe.catchLoc,!0)}else if(yt){if(this.prev<qe.finallyLoc)return ut(qe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(ct,pt){for(var ut=this.tryEntries.length-1;ut>=0;--ut){var rt=this.tryEntries[ut];if(rt.tryLoc<=this.prev&&oe.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var qe=rt;break}}qe&&(ct==="break"||ct==="continue")&&qe.tryLoc<=pt&&pt<=qe.finallyLoc&&(qe=null);var nt=qe?qe.completion:{};return nt.type=ct,nt.arg=pt,qe?(this.method="next",this.next=qe.finallyLoc,Le):this.complete(nt)},complete:function(ct,pt){if(ct.type==="throw")throw ct.arg;return ct.type==="break"||ct.type==="continue"?this.next=ct.arg:ct.type==="return"?(this.rval=this.arg=ct.arg,this.method="return",this.next="end"):ct.type==="normal"&&pt&&(this.next=pt),Le},finish:function(ct){for(var pt=this.tryEntries.length-1;pt>=0;--pt){var ut=this.tryEntries[pt];if(ut.finallyLoc===ct)return this.complete(ut.completion,ut.afterLoc),it(ut),Le}},catch:function(ct){for(var pt=this.tryEntries.length-1;pt>=0;--pt){var ut=this.tryEntries[pt];if(ut.tryLoc===ct){var rt=ut.completion;if(rt.type==="throw"){var qe=rt.arg;it(ut)}return qe}}throw new Error("illegal catch attempt")},delegateYield:function(ct,pt,ut){return this.delegate={iterator:Ge(ct),resultName:pt,nextLoc:ut},this.method==="next"&&(this.arg=se),Le}},z}(typeof Ae=="object"?Ae.exports:{});try{regeneratorRuntime=re}catch(z){typeof globalThis=="object"?globalThis.regeneratorRuntime=re:Function("r","regeneratorRuntime = r")(re)}},{}],396:[function(x,Ae,me){var re=x("buffer"),z=re.Buffer;function ie(se,pe){for(var ne in se)pe[ne]=se[ne]}z.from&&z.alloc&&z.allocUnsafe&&z.allocUnsafeSlow?Ae.exports=re:(ie(re,me),me.Buffer=oe);function oe(se,pe,ne){return z(se,pe,ne)}ie(z,oe),oe.from=function(se,pe,ne){if(typeof se=="number")throw new TypeError("Argument must not be a number");return z(se,pe,ne)},oe.alloc=function(se,pe,ne){if(typeof se!="number")throw new TypeError("Argument must be a number");var ae=z(se);return pe!==void 0?typeof ne=="string"?ae.fill(pe,ne):ae.fill(pe):ae.fill(0),ae},oe.allocUnsafe=function(se){if(typeof se!="number")throw new TypeError("Argument must be a number");return z(se)},oe.allocUnsafeSlow=function(se){if(typeof se!="number")throw new TypeError("Argument must be a number");return re.SlowBuffer(se)}},{buffer:90}],397:[function(x,Ae,me){(function(re){(function(){(function(z){z.parser=function(lt,Ue){return new oe(lt,Ue)},z.SAXParser=oe,z.SAXStream=he,z.createStream=de,z.MAX_BUFFER_LENGTH=64*1024;var ie=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];z.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function oe(lt,Ue){if(!(this instanceof oe))return new oe(lt,Ue);var $e=this;pe($e),$e.q=$e.c="",$e.bufferCheckPosition=z.MAX_BUFFER_LENGTH,$e.opt=Ue||{},$e.opt.lowercase=$e.opt.lowercase||$e.opt.lowercasetags,$e.looseCase=$e.opt.lowercase?"toLowerCase":"toUpperCase",$e.tags=[],$e.closed=$e.closedRoot=$e.sawRoot=!1,$e.tag=$e.error=null,$e.strict=!!lt,$e.noscript=!!(lt||$e.opt.noscript),$e.state=Ie.BEGIN,$e.strictEntities=$e.opt.strictEntities,$e.ENTITIES=$e.strictEntities?Object.create(z.XML_ENTITIES):Object.create(z.ENTITIES),$e.attribList=[],$e.opt.xmlns&&($e.ns=Object.create(Me)),$e.trackPosition=$e.opt.position!==!1,$e.trackPosition&&($e.position=$e.line=$e.column=0),Qe($e,"onready")}Object.create||(Object.create=function(lt){function Ue(){}Ue.prototype=lt;var $e=new Ue;return $e}),Object.keys||(Object.keys=function(lt){var Ue=[];for(var $e in lt)lt.hasOwnProperty($e)&&Ue.push($e);return Ue});function se(lt){for(var Ue=Math.max(z.MAX_BUFFER_LENGTH,10),$e=0,le=0,fe=ie.length;le<fe;le++){var Fe=lt[ie[le]].length;if(Fe>Ue)switch(ie[le]){case"textNode":it(lt);break;case"cdata":tt(lt,"oncdata",lt.cdata),lt.cdata="";break;case"script":tt(lt,"onscript",lt.script),lt.script="";break;default:Ge(lt,"Max buffer length exceeded: "+ie[le])}$e=Math.max($e,Fe)}var He=z.MAX_BUFFER_LENGTH-$e;lt.bufferCheckPosition=He+lt.position}function pe(lt){for(var Ue=0,$e=ie.length;Ue<$e;Ue++)lt[ie[Ue]]=""}function ne(lt){it(lt),lt.cdata!==""&&(tt(lt,"oncdata",lt.cdata),lt.cdata=""),lt.script!==""&&(tt(lt,"onscript",lt.script),lt.script="")}oe.prototype={end:function(){Xe(this)},write:Ot,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){ne(this)}};var ae;try{ae=x("stream").Stream}catch(lt){ae=function(){}}var ue=z.EVENTS.filter(function(lt){return lt!=="error"&<!=="end"});function de(lt,Ue){return new he(lt,Ue)}function he(lt,Ue){if(!(this instanceof he))return new he(lt,Ue);ae.apply(this),this._parser=new oe(lt,Ue),this.writable=!0,this.readable=!0;var $e=this;this._parser.onend=function(){$e.emit("end")},this._parser.onerror=function(le){$e.emit("error",le),$e._parser.error=null},this._decoder=null,ue.forEach(function(le){Object.defineProperty($e,"on"+le,{get:function(){return $e._parser["on"+le]},set:function(fe){if(!fe)return $e.removeAllListeners(le),$e._parser["on"+le]=fe,fe;$e.on(le,fe)},enumerable:!0,configurable:!1})})}he.prototype=Object.create(ae.prototype,{constructor:{value:he}}),he.prototype.write=function(lt){if(typeof re=="function"&&typeof re.isBuffer=="function"&&re.isBuffer(lt)){if(!this._decoder){var Ue=x("string_decoder").StringDecoder;this._decoder=new Ue("utf8")}lt=this._decoder.write(lt)}return this._parser.write(lt.toString()),this.emit("data",lt),!0},he.prototype.end=function(lt){return lt&<.length&&this.write(lt),this._parser.end(),!0},he.prototype.on=function(lt,Ue){var $e=this;return!$e._parser["on"+lt]&&ue.indexOf(lt)!==-1&&($e._parser["on"+lt]=function(){var le=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);le.splice(0,0,lt),$e.emit.apply($e,le)}),ae.prototype.on.call($e,lt,Ue)};var xe="[CDATA[",Se="DOCTYPE",we="http://www.w3.org/XML/1998/namespace",be="http://www.w3.org/2000/xmlns/",Me={xml:we,xmlns:be},Le=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Ce=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Ne=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Te=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function De(lt){return lt===" "||lt===`
|
|
|
`||lt==="\r"||lt===" "}function Ee(lt){return lt==='"'||lt==="'"}function Pe(lt){return lt===">"||De(lt)}function Be(lt,Ue){return lt.test(Ue)}function Ve(lt,Ue){return!Be(lt,Ue)}var Ie=0;z.STATE={BEGIN:Ie++,BEGIN_WHITESPACE:Ie++,TEXT:Ie++,TEXT_ENTITY:Ie++,OPEN_WAKA:Ie++,SGML_DECL:Ie++,SGML_DECL_QUOTED:Ie++,DOCTYPE:Ie++,DOCTYPE_QUOTED:Ie++,DOCTYPE_DTD:Ie++,DOCTYPE_DTD_QUOTED:Ie++,COMMENT_STARTING:Ie++,COMMENT:Ie++,COMMENT_ENDING:Ie++,COMMENT_ENDED:Ie++,CDATA:Ie++,CDATA_ENDING:Ie++,CDATA_ENDING_2:Ie++,PROC_INST:Ie++,PROC_INST_BODY:Ie++,PROC_INST_ENDING:Ie++,OPEN_TAG:Ie++,OPEN_TAG_SLASH:Ie++,ATTRIB:Ie++,ATTRIB_NAME:Ie++,ATTRIB_NAME_SAW_WHITE:Ie++,ATTRIB_VALUE:Ie++,ATTRIB_VALUE_QUOTED:Ie++,ATTRIB_VALUE_CLOSED:Ie++,ATTRIB_VALUE_UNQUOTED:Ie++,ATTRIB_VALUE_ENTITY_Q:Ie++,ATTRIB_VALUE_ENTITY_U:Ie++,CLOSE_TAG:Ie++,CLOSE_TAG_SAW_WHITE:Ie++,SCRIPT:Ie++,SCRIPT_ENDING:Ie++},z.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},z.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(z.ENTITIES).forEach(function(lt){var Ue=z.ENTITIES[lt],$e=typeof Ue=="number"?String.fromCharCode(Ue):Ue;z.ENTITIES[lt]=$e});for(var Ze in z.STATE)z.STATE[z.STATE[Ze]]=Ze;Ie=z.STATE;function Qe(lt,Ue,$e){lt[Ue]&<[Ue]($e)}function tt(lt,Ue,$e){lt.textNode&&it(lt),Qe(lt,Ue,$e)}function it(lt){lt.textNode=ht(lt.opt,lt.textNode),lt.textNode&&Qe(lt,"ontext",lt.textNode),lt.textNode=""}function ht(lt,Ue){return lt.trim&&(Ue=Ue.trim()),lt.normalize&&(Ue=Ue.replace(/\s+/g," ")),Ue}function Ge(lt,Ue){return it(lt),lt.trackPosition&&(Ue+=`
|
|
|
Line: `+lt.line+`
|
|
|
Column: `+lt.column+`
|
|
|
Char: `+lt.c),Ue=new Error(Ue),lt.error=Ue,Qe(lt,"onerror",Ue),lt}function Xe(lt){return lt.sawRoot&&!lt.closedRoot&&ct(lt,"Unclosed root tag"),lt.state!==Ie.BEGIN&<.state!==Ie.BEGIN_WHITESPACE&<.state!==Ie.TEXT&&Ge(lt,"Unexpected end"),it(lt),lt.c="",lt.closed=!0,Qe(lt,"onend"),oe.call(lt,lt.strict,lt.opt),lt}function ct(lt,Ue){if(typeof lt!="object"||!(lt instanceof oe))throw new Error("bad call to strictFail");lt.strict&&Ge(lt,Ue)}function pt(lt){lt.strict||(lt.tagName=lt.tagName[lt.looseCase]());var Ue=lt.tags[lt.tags.length-1]||lt,$e=lt.tag={name:lt.tagName,attributes:{}};lt.opt.xmlns&&($e.ns=Ue.ns),lt.attribList.length=0,tt(lt,"onopentagstart",$e)}function ut(lt,Ue){var $e=lt.indexOf(":"),le=$e<0?["",lt]:lt.split(":"),fe=le[0],Fe=le[1];return Ue&<==="xmlns"&&(fe="xmlns",Fe=""),{prefix:fe,local:Fe}}function rt(lt){if(lt.strict||(lt.attribName=lt.attribName[lt.looseCase]()),lt.attribList.indexOf(lt.attribName)!==-1||lt.tag.attributes.hasOwnProperty(lt.attribName)){lt.attribName=lt.attribValue="";return}if(lt.opt.xmlns){var Ue=ut(lt.attribName,!0),$e=Ue.prefix,le=Ue.local;if($e==="xmlns")if(le==="xml"&<.attribValue!==we)ct(lt,"xml: prefix must be bound to "+we+`
|
|
|
Actual: `+lt.attribValue);else if(le==="xmlns"&<.attribValue!==be)ct(lt,"xmlns: prefix must be bound to "+be+`
|
|
|
Actual: `+lt.attribValue);else{var fe=lt.tag,Fe=lt.tags[lt.tags.length-1]||lt;fe.ns===Fe.ns&&(fe.ns=Object.create(Fe.ns)),fe.ns[le]=lt.attribValue}lt.attribList.push([lt.attribName,lt.attribValue])}else lt.tag.attributes[lt.attribName]=lt.attribValue,tt(lt,"onattribute",{name:lt.attribName,value:lt.attribValue});lt.attribName=lt.attribValue=""}function qe(lt,Ue){if(lt.opt.xmlns){var $e=lt.tag,le=ut(lt.tagName);$e.prefix=le.prefix,$e.local=le.local,$e.uri=$e.ns[le.prefix]||"",$e.prefix&&!$e.uri&&(ct(lt,"Unbound namespace prefix: "+JSON.stringify(lt.tagName)),$e.uri=le.prefix);var fe=lt.tags[lt.tags.length-1]||lt;$e.ns&&fe.ns!==$e.ns&&Object.keys($e.ns).forEach(function(kt){tt(lt,"onopennamespace",{prefix:kt,uri:$e.ns[kt]})});for(var Fe=0,He=lt.attribList.length;Fe<He;Fe++){var ye=lt.attribList[Fe],Re=ye[0],ze=ye[1],Ke=ut(Re,!0),We=Ke.prefix,st=Ke.local,bt=We===""?"":$e.ns[We]||"",at={name:Re,value:ze,prefix:We,local:st,uri:bt};We&&We!=="xmlns"&&!bt&&(ct(lt,"Unbound namespace prefix: "+JSON.stringify(We)),at.uri=We),lt.tag.attributes[Re]=at,tt(lt,"onattribute",at)}lt.attribList.length=0}lt.tag.isSelfClosing=!!Ue,lt.sawRoot=!0,lt.tags.push(lt.tag),tt(lt,"onopentag",lt.tag),Ue||(!lt.noscript&<.tagName.toLowerCase()==="script"?lt.state=Ie.SCRIPT:lt.state=Ie.TEXT,lt.tag=null,lt.tagName=""),lt.attribName=lt.attribValue="",lt.attribList.length=0}function nt(lt){if(!lt.tagName){ct(lt,"Weird empty close tag."),lt.textNode+="</>",lt.state=Ie.TEXT;return}if(lt.script){if(lt.tagName!=="script"){lt.script+="</"+lt.tagName+">",lt.tagName="",lt.state=Ie.SCRIPT;return}tt(lt,"onscript",lt.script),lt.script=""}var Ue=lt.tags.length,$e=lt.tagName;lt.strict||($e=$e[lt.looseCase]());for(var le=$e;Ue--;){var fe=lt.tags[Ue];if(fe.name!==le)ct(lt,"Unexpected close tag");else break}if(Ue<0){ct(lt,"Unmatched closing tag: "+lt.tagName),lt.textNode+="</"+lt.tagName+">",lt.state=Ie.TEXT;return}lt.tagName=$e;for(var Fe=lt.tags.length;Fe-- >Ue;){var He=lt.tag=lt.tags.pop();lt.tagName=lt.tag.name,tt(lt,"onclosetag",lt.tagName);var ye={};for(var Re in He.ns)ye[Re]=He.ns[Re];var ze=lt.tags[lt.tags.length-1]||lt;lt.opt.xmlns&&He.ns!==ze.ns&&Object.keys(He.ns).forEach(function(Ke){var We=He.ns[Ke];tt(lt,"onclosenamespace",{prefix:Ke,uri:We})})}Ue===0&&(lt.closedRoot=!0),lt.tagName=lt.attribValue=lt.attribName="",lt.attribList.length=0,lt.state=Ie.TEXT}function xt(lt){var Ue=lt.entity,$e=Ue.toLowerCase(),le,fe="";return lt.ENTITIES[Ue]?lt.ENTITIES[Ue]:lt.ENTITIES[$e]?lt.ENTITIES[$e]:(Ue=$e,Ue.charAt(0)==="#"&&(Ue.charAt(1)==="x"?(Ue=Ue.slice(2),le=parseInt(Ue,16),fe=le.toString(16)):(Ue=Ue.slice(1),le=parseInt(Ue,10),fe=le.toString(10))),Ue=Ue.replace(/^0+/,""),isNaN(le)||fe.toLowerCase()!==Ue?(ct(lt,"Invalid character entity"),"&"+lt.entity+";"):String.fromCodePoint(le))}function yt(lt,Ue){Ue==="<"?(lt.state=Ie.OPEN_WAKA,lt.startTagPosition=lt.position):De(Ue)||(ct(lt,"Non-whitespace before first tag."),lt.textNode=Ue,lt.state=Ie.TEXT)}function Rt(lt,Ue){var $e="";return Ue<lt.length&&($e=lt.charAt(Ue)),$e}function Ot(lt){var Ue=this;if(this.error)throw this.error;if(Ue.closed)return Ge(Ue,"Cannot write after close. Assign an onready handler.");if(lt===null)return Xe(Ue);typeof lt=="object"&&(lt=lt.toString());for(var $e=0,le="";le=Rt(lt,$e++),Ue.c=le,!!le;)switch(Ue.trackPosition&&(Ue.position++,le===`
|
|
|
`?(Ue.line++,Ue.column=0):Ue.column++),Ue.state){case Ie.BEGIN:if(Ue.state=Ie.BEGIN_WHITESPACE,le==="\uFEFF")continue;yt(Ue,le);continue;case Ie.BEGIN_WHITESPACE:yt(Ue,le);continue;case Ie.TEXT:if(Ue.sawRoot&&!Ue.closedRoot){for(var fe=$e-1;le&&le!=="<"&&le!=="&";)le=Rt(lt,$e++),le&&Ue.trackPosition&&(Ue.position++,le===`
|
|
|
`?(Ue.line++,Ue.column=0):Ue.column++);Ue.textNode+=lt.substring(fe,$e-1)}le==="<"&&!(Ue.sawRoot&&Ue.closedRoot&&!Ue.strict)?(Ue.state=Ie.OPEN_WAKA,Ue.startTagPosition=Ue.position):(!De(le)&&(!Ue.sawRoot||Ue.closedRoot)&&ct(Ue,"Text data outside of root node."),le==="&"?Ue.state=Ie.TEXT_ENTITY:Ue.textNode+=le);continue;case Ie.SCRIPT:le==="<"?Ue.state=Ie.SCRIPT_ENDING:Ue.script+=le;continue;case Ie.SCRIPT_ENDING:le==="/"?Ue.state=Ie.CLOSE_TAG:(Ue.script+="<"+le,Ue.state=Ie.SCRIPT);continue;case Ie.OPEN_WAKA:if(le==="!")Ue.state=Ie.SGML_DECL,Ue.sgmlDecl="";else if(!De(le))if(Be(Le,le))Ue.state=Ie.OPEN_TAG,Ue.tagName=le;else if(le==="/")Ue.state=Ie.CLOSE_TAG,Ue.tagName="";else if(le==="?")Ue.state=Ie.PROC_INST,Ue.procInstName=Ue.procInstBody="";else{if(ct(Ue,"Unencoded <"),Ue.startTagPosition+1<Ue.position){var Fe=Ue.position-Ue.startTagPosition;le=new Array(Fe).join(" ")+le}Ue.textNode+="<"+le,Ue.state=Ie.TEXT}continue;case Ie.SGML_DECL:(Ue.sgmlDecl+le).toUpperCase()===xe?(tt(Ue,"onopencdata"),Ue.state=Ie.CDATA,Ue.sgmlDecl="",Ue.cdata=""):Ue.sgmlDecl+le==="--"?(Ue.state=Ie.COMMENT,Ue.comment="",Ue.sgmlDecl=""):(Ue.sgmlDecl+le).toUpperCase()===Se?(Ue.state=Ie.DOCTYPE,(Ue.doctype||Ue.sawRoot)&&ct(Ue,"Inappropriately located doctype declaration"),Ue.doctype="",Ue.sgmlDecl=""):le===">"?(tt(Ue,"onsgmldeclaration",Ue.sgmlDecl),Ue.sgmlDecl="",Ue.state=Ie.TEXT):(Ee(le)&&(Ue.state=Ie.SGML_DECL_QUOTED),Ue.sgmlDecl+=le);continue;case Ie.SGML_DECL_QUOTED:le===Ue.q&&(Ue.state=Ie.SGML_DECL,Ue.q=""),Ue.sgmlDecl+=le;continue;case Ie.DOCTYPE:le===">"?(Ue.state=Ie.TEXT,tt(Ue,"ondoctype",Ue.doctype),Ue.doctype=!0):(Ue.doctype+=le,le==="["?Ue.state=Ie.DOCTYPE_DTD:Ee(le)&&(Ue.state=Ie.DOCTYPE_QUOTED,Ue.q=le));continue;case Ie.DOCTYPE_QUOTED:Ue.doctype+=le,le===Ue.q&&(Ue.q="",Ue.state=Ie.DOCTYPE);continue;case Ie.DOCTYPE_DTD:Ue.doctype+=le,le==="]"?Ue.state=Ie.DOCTYPE:Ee(le)&&(Ue.state=Ie.DOCTYPE_DTD_QUOTED,Ue.q=le);continue;case Ie.DOCTYPE_DTD_QUOTED:Ue.doctype+=le,le===Ue.q&&(Ue.state=Ie.DOCTYPE_DTD,Ue.q="");continue;case Ie.COMMENT:le==="-"?Ue.state=Ie.COMMENT_ENDING:Ue.comment+=le;continue;case Ie.COMMENT_ENDING:le==="-"?(Ue.state=Ie.COMMENT_ENDED,Ue.comment=ht(Ue.opt,Ue.comment),Ue.comment&&tt(Ue,"oncomment",Ue.comment),Ue.comment=""):(Ue.comment+="-"+le,Ue.state=Ie.COMMENT);continue;case Ie.COMMENT_ENDED:le!==">"?(ct(Ue,"Malformed comment"),Ue.comment+="--"+le,Ue.state=Ie.COMMENT):Ue.state=Ie.TEXT;continue;case Ie.CDATA:le==="]"?Ue.state=Ie.CDATA_ENDING:Ue.cdata+=le;continue;case Ie.CDATA_ENDING:le==="]"?Ue.state=Ie.CDATA_ENDING_2:(Ue.cdata+="]"+le,Ue.state=Ie.CDATA);continue;case Ie.CDATA_ENDING_2:le===">"?(Ue.cdata&&tt(Ue,"oncdata",Ue.cdata),tt(Ue,"onclosecdata"),Ue.cdata="",Ue.state=Ie.TEXT):le==="]"?Ue.cdata+="]":(Ue.cdata+="]]"+le,Ue.state=Ie.CDATA);continue;case Ie.PROC_INST:le==="?"?Ue.state=Ie.PROC_INST_ENDING:De(le)?Ue.state=Ie.PROC_INST_BODY:Ue.procInstName+=le;continue;case Ie.PROC_INST_BODY:if(!Ue.procInstBody&&De(le))continue;le==="?"?Ue.state=Ie.PROC_INST_ENDING:Ue.procInstBody+=le;continue;case Ie.PROC_INST_ENDING:le===">"?(tt(Ue,"onprocessinginstruction",{name:Ue.procInstName,body:Ue.procInstBody}),Ue.procInstName=Ue.procInstBody="",Ue.state=Ie.TEXT):(Ue.procInstBody+="?"+le,Ue.state=Ie.PROC_INST_BODY);continue;case Ie.OPEN_TAG:Be(Ce,le)?Ue.tagName+=le:(pt(Ue),le===">"?qe(Ue):le==="/"?Ue.state=Ie.OPEN_TAG_SLASH:(De(le)||ct(Ue,"Invalid character in tag name"),Ue.state=Ie.ATTRIB));continue;case Ie.OPEN_TAG_SLASH:le===">"?(qe(Ue,!0),nt(Ue)):(ct(Ue,"Forward-slash in opening tag not followed by >"),Ue.state=Ie.ATTRIB);continue;case Ie.ATTRIB:if(De(le))continue;le===">"?qe(Ue):le==="/"?Ue.state=Ie.OPEN_TAG_SLASH:Be(Le,le)?(Ue.attribName=le,Ue.attribValue="",Ue.state=Ie.ATTRIB_NAME):ct(Ue,"Invalid attribute name");continue;case Ie.ATTRIB_NAME:le==="="?Ue.state=Ie.ATTRIB_VALUE:le===">"?(ct(Ue,"Attribute without value"),Ue.attribValue=Ue.attribName,rt(Ue),qe(Ue)):De(le)?Ue.state=Ie.ATTRIB_NAME_SAW_WHITE:Be(Ce,le)?Ue.attribName+=le:ct(Ue,"Invalid attribute name");continue;case Ie.ATTRIB_NAME_SAW_WHITE:if(le==="=")Ue.state=Ie.ATTRIB_VALUE;else{if(De(le))continue;ct(Ue,"Attribute without value"),Ue.tag.attributes[Ue.attribName]="",Ue.attribValue="",tt(Ue,"onattribute",{name:Ue.attribName,value:""}),Ue.attribName="",le===">"?qe(Ue):Be(Le,le)?(Ue.attribName=le,Ue.state=Ie.ATTRIB_NAME):(ct(Ue,"Invalid attribute name"),Ue.state=Ie.ATTRIB)}continue;case Ie.ATTRIB_VALUE:if(De(le))continue;Ee(le)?(Ue.q=le,Ue.state=Ie.ATTRIB_VALUE_QUOTED):(ct(Ue,"Unquoted attribute value"),Ue.state=Ie.ATTRIB_VALUE_UNQUOTED,Ue.attribValue=le);continue;case Ie.ATTRIB_VALUE_QUOTED:if(le!==Ue.q){le==="&"?Ue.state=Ie.ATTRIB_VALUE_ENTITY_Q:Ue.attribValue+=le;continue}rt(Ue),Ue.q="",Ue.state=Ie.ATTRIB_VALUE_CLOSED;continue;case Ie.ATTRIB_VALUE_CLOSED:De(le)?Ue.state=Ie.ATTRIB:le===">"?qe(Ue):le==="/"?Ue.state=Ie.OPEN_TAG_SLASH:Be(Le,le)?(ct(Ue,"No whitespace between attributes"),Ue.attribName=le,Ue.attribValue="",Ue.state=Ie.ATTRIB_NAME):ct(Ue,"Invalid attribute name");continue;case Ie.ATTRIB_VALUE_UNQUOTED:if(!Pe(le)){le==="&"?Ue.state=Ie.ATTRIB_VALUE_ENTITY_U:Ue.attribValue+=le;continue}rt(Ue),le===">"?qe(Ue):Ue.state=Ie.ATTRIB;continue;case Ie.CLOSE_TAG:if(Ue.tagName)le===">"?nt(Ue):Be(Ce,le)?Ue.tagName+=le:Ue.script?(Ue.script+="</"+Ue.tagName,Ue.tagName="",Ue.state=Ie.SCRIPT):(De(le)||ct(Ue,"Invalid tagname in closing tag"),Ue.state=Ie.CLOSE_TAG_SAW_WHITE);else{if(De(le))continue;Ve(Le,le)?Ue.script?(Ue.script+="</"+le,Ue.state=Ie.SCRIPT):ct(Ue,"Invalid tagname in closing tag."):Ue.tagName=le}continue;case Ie.CLOSE_TAG_SAW_WHITE:if(De(le))continue;le===">"?nt(Ue):ct(Ue,"Invalid characters in closing tag");continue;case Ie.TEXT_ENTITY:case Ie.ATTRIB_VALUE_ENTITY_Q:case Ie.ATTRIB_VALUE_ENTITY_U:var He,ye;switch(Ue.state){case Ie.TEXT_ENTITY:He=Ie.TEXT,ye="textNode";break;case Ie.ATTRIB_VALUE_ENTITY_Q:He=Ie.ATTRIB_VALUE_QUOTED,ye="attribValue";break;case Ie.ATTRIB_VALUE_ENTITY_U:He=Ie.ATTRIB_VALUE_UNQUOTED,ye="attribValue";break}le===";"?(Ue[ye]+=xt(Ue),Ue.entity="",Ue.state=He):Be(Ue.entity.length?Te:Ne,le)?Ue.entity+=le:(ct(Ue,"Invalid character in entity name"),Ue[ye]+="&"+Ue.entity+le,Ue.entity="",Ue.state=He);continue;default:throw new Error(Ue,"Unknown state: "+Ue.state)}return Ue.position>=Ue.bufferCheckPosition&&se(Ue),Ue}String.fromCodePoint||function(){var lt=String.fromCharCode,Ue=Math.floor,$e=function(){var le=16384,fe=[],Fe,He,ye=-1,Re=arguments.length;if(!Re)return"";for(var ze="";++ye<Re;){var Ke=Number(arguments[ye]);if(!isFinite(Ke)||Ke<0||Ke>1114111||Ue(Ke)!==Ke)throw RangeError("Invalid code point: "+Ke);Ke<=65535?fe.push(Ke):(Ke-=65536,Fe=(Ke>>10)+55296,He=Ke%1024+56320,fe.push(Fe,He)),(ye+1===Re||fe.length>le)&&(ze+=lt.apply(null,fe),fe.length=0)}return ze};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:$e,configurable:!0,writable:!0}):String.fromCodePoint=$e}()})(typeof me=="undefined"?this.sax={}:me)}).call(this)}).call(this,x("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(x,Ae,me){Ae.exports=ie;var re=x("events").EventEmitter,z=x("inherits");z(ie,re),ie.Readable=x("readable-stream/lib/_stream_readable.js"),ie.Writable=x("readable-stream/lib/_stream_writable.js"),ie.Duplex=x("readable-stream/lib/_stream_duplex.js"),ie.Transform=x("readable-stream/lib/_stream_transform.js"),ie.PassThrough=x("readable-stream/lib/_stream_passthrough.js"),ie.finished=x("readable-stream/lib/internal/streams/end-of-stream.js"),ie.pipeline=x("readable-stream/lib/internal/streams/pipeline.js"),ie.Stream=ie;function ie(){re.call(this)}ie.prototype.pipe=function(oe,se){var pe=this;function ne(we){oe.writable&&oe.write(we)===!1&&pe.pause&&pe.pause()}pe.on("data",ne);function ae(){pe.readable&&pe.resume&&pe.resume()}oe.on("drain",ae),!oe._isStdio&&(!se||se.end!==!1)&&(pe.on("end",de),pe.on("close",he));var ue=!1;function de(){ue||(ue=!0,oe.end())}function he(){ue||(ue=!0,typeof oe.destroy=="function"&&oe.destroy())}function xe(we){if(Se(),re.listenerCount(this,"error")===0)throw we}pe.on("error",xe),oe.on("error",xe);function Se(){pe.removeListener("data",ne),oe.removeListener("drain",ae),pe.removeListener("end",de),pe.removeListener("close",he),pe.removeListener("error",xe),oe.removeListener("error",xe),pe.removeListener("end",Se),pe.removeListener("close",Se),oe.removeListener("close",Se)}return pe.on("end",Se),pe.on("close",Se),oe.on("close",Se),oe.emit("pipe",pe),oe}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(x,Ae,me){"use strict";function re(ae,ue){ae.prototype=Object.create(ue.prototype),ae.prototype.constructor=ae,ae.__proto__=ue}var z={};function ie(ae,ue,de){de||(de=Error);function he(Se,we,be){return typeof ue=="string"?ue:ue(Se,we,be)}var xe=function(Se){re(we,Se);function we(be,Me,Le){return Se.call(this,he(be,Me,Le))||this}return we}(de);xe.prototype.name=de.name,xe.prototype.code=ae,z[ae]=xe}function oe(ae,ue){if(Array.isArray(ae)){var de=ae.length;return ae=ae.map(function(he){return String(he)}),de>2?"one of ".concat(ue," ").concat(ae.slice(0,de-1).join(", "),", or ")+ae[de-1]:de===2?"one of ".concat(ue," ").concat(ae[0]," or ").concat(ae[1]):"of ".concat(ue," ").concat(ae[0])}else return"of ".concat(ue," ").concat(String(ae))}function se(ae,ue,de){return ae.substr(!de||de<0?0:+de,ue.length)===ue}function pe(ae,ue,de){return(de===void 0||de>ae.length)&&(de=ae.length),ae.substring(de-ue.length,de)===ue}function ne(ae,ue,de){return typeof de!="number"&&(de=0),de+ue.length>ae.length?!1:ae.indexOf(ue,de)!==-1}ie("ERR_INVALID_OPT_VALUE",function(ae,ue){return'The value "'+ue+'" is invalid for option "'+ae+'"'},TypeError),ie("ERR_INVALID_ARG_TYPE",function(ae,ue,de){var he;typeof ue=="string"&&se(ue,"not ")?(he="must not be",ue=ue.replace(/^not /,"")):he="must be";var xe;if(pe(ae," argument"))xe="The ".concat(ae," ").concat(he," ").concat(oe(ue,"type"));else{var Se=ne(ae,".")?"property":"argument";xe='The "'.concat(ae,'" ').concat(Se," ").concat(he," ").concat(oe(ue,"type"))}return xe+=". Received type ".concat(typeof de),xe},TypeError),ie("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ie("ERR_METHOD_NOT_IMPLEMENTED",function(ae){return"The "+ae+" method is not implemented"}),ie("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ie("ERR_STREAM_DESTROYED",function(ae){return"Cannot call "+ae+" after a stream was destroyed"}),ie("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ie("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ie("ERR_STREAM_WRITE_AFTER_END","write after end"),ie("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ie("ERR_UNKNOWN_ENCODING",function(ae){return"Unknown encoding: "+ae},TypeError),ie("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ae.exports.codes=z},{}],400:[function(x,Ae,me){(function(re){(function(){"use strict";var z=Object.keys||function(he){var xe=[];for(var Se in he)xe.push(Se);return xe};Ae.exports=ae;var ie=x("./_stream_readable"),oe=x("./_stream_writable");x("inherits")(ae,ie);for(var se=z(oe.prototype),pe=0;pe<se.length;pe++){var ne=se[pe];ae.prototype[ne]||(ae.prototype[ne]=oe.prototype[ne])}function ae(he){if(!(this instanceof ae))return new ae(he);ie.call(this,he),oe.call(this,he),this.allowHalfOpen=!0,he&&(he.readable===!1&&(this.readable=!1),he.writable===!1&&(this.writable=!1),he.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",ue)))}Object.defineProperty(ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(ae.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ae.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ue(){this._writableState.ended||re.nextTick(de,this)}function de(he){he.end()}Object.defineProperty(ae.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(xe){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=xe,this._writableState.destroyed=xe)}})}).call(this)}).call(this,x("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(x,Ae,me){"use strict";Ae.exports=z;var re=x("./_stream_transform");x("inherits")(z,re);function z(ie){if(!(this instanceof z))return new z(ie);re.call(this,ie)}z.prototype._transform=function(ie,oe,se){se(null,ie)}},{"./_stream_transform":403,inherits:364}],402:[function(x,Ae,me){(function(re,z){(function(){"use strict";Ae.exports=tt;var ie;tt.ReadableState=Qe;var oe=x("events").EventEmitter,se=function(Re,ze){return Re.listeners(ze).length},pe=x("./internal/streams/stream"),ne=x("buffer").Buffer,ae=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function ue(ye){return ne.from(ye)}function de(ye){return ne.isBuffer(ye)||ye instanceof ae}var he=x("util"),xe;he&&he.debuglog?xe=he.debuglog("stream"):xe=function(){};var Se=x("./internal/streams/buffer_list"),we=x("./internal/streams/destroy"),be=x("./internal/streams/state"),Me=be.getHighWaterMark,Le=x("../errors").codes,Ce=Le.ERR_INVALID_ARG_TYPE,Ne=Le.ERR_STREAM_PUSH_AFTER_EOF,Te=Le.ERR_METHOD_NOT_IMPLEMENTED,De=Le.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ee,Pe,Be;x("inherits")(tt,pe);var Ve=we.errorOrDestroy,Ie=["error","close","destroy","pause","resume"];function Ze(ye,Re,ze){if(typeof ye.prependListener=="function")return ye.prependListener(Re,ze);!ye._events||!ye._events[Re]?ye.on(Re,ze):Array.isArray(ye._events[Re])?ye._events[Re].unshift(ze):ye._events[Re]=[ze,ye._events[Re]]}function Qe(ye,Re,ze){ie=ie||x("./_stream_duplex"),ye=ye||{},typeof ze!="boolean"&&(ze=Re instanceof ie),this.objectMode=!!ye.objectMode,ze&&(this.objectMode=this.objectMode||!!ye.readableObjectMode),this.highWaterMark=Me(this,ye,"readableHighWaterMark",ze),this.buffer=new Se,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=ye.emitClose!==!1,this.autoDestroy=!!ye.autoDestroy,this.destroyed=!1,this.defaultEncoding=ye.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ye.encoding&&(Ee||(Ee=x("string_decoder/").StringDecoder),this.decoder=new Ee(ye.encoding),this.encoding=ye.encoding)}function tt(ye){if(ie=ie||x("./_stream_duplex"),!(this instanceof tt))return new tt(ye);var Re=this instanceof ie;this._readableState=new Qe(ye,this,Re),this.readable=!0,ye&&(typeof ye.read=="function"&&(this._read=ye.read),typeof ye.destroy=="function"&&(this._destroy=ye.destroy)),pe.call(this)}Object.defineProperty(tt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Re){this._readableState&&(this._readableState.destroyed=Re)}}),tt.prototype.destroy=we.destroy,tt.prototype._undestroy=we.undestroy,tt.prototype._destroy=function(ye,Re){Re(ye)},tt.prototype.push=function(ye,Re){var ze=this._readableState,Ke;return ze.objectMode?Ke=!0:typeof ye=="string"&&(Re=Re||ze.defaultEncoding,Re!==ze.encoding&&(ye=ne.from(ye,Re),Re=""),Ke=!0),it(this,ye,Re,!1,Ke)},tt.prototype.unshift=function(ye){return it(this,ye,null,!0,!1)};function it(ye,Re,ze,Ke,We){xe("readableAddChunk",Re);var st=ye._readableState;if(Re===null)st.reading=!1,ut(ye,st);else{var bt;if(We||(bt=Ge(st,Re)),bt)Ve(ye,bt);else if(st.objectMode||Re&&Re.length>0)if(typeof Re!="string"&&!st.objectMode&&Object.getPrototypeOf(Re)!==ne.prototype&&(Re=ue(Re)),Ke)st.endEmitted?Ve(ye,new De):ht(ye,st,Re,!0);else if(st.ended)Ve(ye,new Ne);else{if(st.destroyed)return!1;st.reading=!1,st.decoder&&!ze?(Re=st.decoder.write(Re),st.objectMode||Re.length!==0?ht(ye,st,Re,!1):nt(ye,st)):ht(ye,st,Re,!1)}else Ke||(st.reading=!1,nt(ye,st))}return!st.ended&&(st.length<st.highWaterMark||st.length===0)}function ht(ye,Re,ze,Ke){Re.flowing&&Re.length===0&&!Re.sync?(Re.awaitDrain=0,ye.emit("data",ze)):(Re.length+=Re.objectMode?1:ze.length,Ke?Re.buffer.unshift(ze):Re.buffer.push(ze),Re.needReadable&&rt(ye)),nt(ye,Re)}function Ge(ye,Re){var ze;return!de(Re)&&typeof Re!="string"&&Re!==void 0&&!ye.objectMode&&(ze=new Ce("chunk",["string","Buffer","Uint8Array"],Re)),ze}tt.prototype.isPaused=function(){return this._readableState.flowing===!1},tt.prototype.setEncoding=function(ye){Ee||(Ee=x("string_decoder/").StringDecoder);var Re=new Ee(ye);this._readableState.decoder=Re,this._readableState.encoding=this._readableState.decoder.encoding;for(var ze=this._readableState.buffer.head,Ke="";ze!==null;)Ke+=Re.write(ze.data),ze=ze.next;return this._readableState.buffer.clear(),Ke!==""&&this._readableState.buffer.push(Ke),this._readableState.length=Ke.length,this};var Xe=1073741824;function ct(ye){return ye>=Xe?ye=Xe:(ye--,ye|=ye>>>1,ye|=ye>>>2,ye|=ye>>>4,ye|=ye>>>8,ye|=ye>>>16,ye++),ye}function pt(ye,Re){return ye<=0||Re.length===0&&Re.ended?0:Re.objectMode?1:ye!==ye?Re.flowing&&Re.length?Re.buffer.head.data.length:Re.length:(ye>Re.highWaterMark&&(Re.highWaterMark=ct(ye)),ye<=Re.length?ye:Re.ended?Re.length:(Re.needReadable=!0,0))}tt.prototype.read=function(ye){xe("read",ye),ye=parseInt(ye,10);var Re=this._readableState,ze=ye;if(ye!==0&&(Re.emittedReadable=!1),ye===0&&Re.needReadable&&((Re.highWaterMark!==0?Re.length>=Re.highWaterMark:Re.length>0)||Re.ended))return xe("read: emitReadable",Re.length,Re.ended),Re.length===0&&Re.ended?fe(this):rt(this),null;if(ye=pt(ye,Re),ye===0&&Re.ended)return Re.length===0&&fe(this),null;var Ke=Re.needReadable;xe("need readable",Ke),(Re.length===0||Re.length-ye<Re.highWaterMark)&&(Ke=!0,xe("length less than watermark",Ke)),Re.ended||Re.reading?(Ke=!1,xe("reading or ended",Ke)):Ke&&(xe("do read"),Re.reading=!0,Re.sync=!0,Re.length===0&&(Re.needReadable=!0),this._read(Re.highWaterMark),Re.sync=!1,Re.reading||(ye=pt(ze,Re)));var We;return ye>0?We=le(ye,Re):We=null,We===null?(Re.needReadable=Re.length<=Re.highWaterMark,ye=0):(Re.length-=ye,Re.awaitDrain=0),Re.length===0&&(Re.ended||(Re.needReadable=!0),ze!==ye&&Re.ended&&fe(this)),We!==null&&this.emit("data",We),We};function ut(ye,Re){if(xe("onEofChunk"),!Re.ended){if(Re.decoder){var ze=Re.decoder.end();ze&&ze.length&&(Re.buffer.push(ze),Re.length+=Re.objectMode?1:ze.length)}Re.ended=!0,Re.sync?rt(ye):(Re.needReadable=!1,Re.emittedReadable||(Re.emittedReadable=!0,qe(ye)))}}function rt(ye){var Re=ye._readableState;xe("emitReadable",Re.needReadable,Re.emittedReadable),Re.needReadable=!1,Re.emittedReadable||(xe("emitReadable",Re.flowing),Re.emittedReadable=!0,re.nextTick(qe,ye))}function qe(ye){var Re=ye._readableState;xe("emitReadable_",Re.destroyed,Re.length,Re.ended),!Re.destroyed&&(Re.length||Re.ended)&&(ye.emit("readable"),Re.emittedReadable=!1),Re.needReadable=!Re.flowing&&!Re.ended&&Re.length<=Re.highWaterMark,$e(ye)}function nt(ye,Re){Re.readingMore||(Re.readingMore=!0,re.nextTick(xt,ye,Re))}function xt(ye,Re){for(;!Re.reading&&!Re.ended&&(Re.length<Re.highWaterMark||Re.flowing&&Re.length===0);){var ze=Re.length;if(xe("maybeReadMore read 0"),ye.read(0),ze===Re.length)break}Re.readingMore=!1}tt.prototype._read=function(ye){Ve(this,new Te("_read()"))},tt.prototype.pipe=function(ye,Re){var ze=this,Ke=this._readableState;switch(Ke.pipesCount){case 0:Ke.pipes=ye;break;case 1:Ke.pipes=[Ke.pipes,ye];break;default:Ke.pipes.push(ye);break}Ke.pipesCount+=1,xe("pipe count=%d opts=%j",Ke.pipesCount,Re);var We=(!Re||Re.end!==!1)&&ye!==re.stdout&&ye!==re.stderr,st=We?at:dt;Ke.endEmitted?re.nextTick(st):ze.once("end",st),ye.on("unpipe",bt);function bt(Ft,zt){xe("onunpipe"),Ft===ze&&zt&&zt.hasUnpiped===!1&&(zt.hasUnpiped=!0,Ct())}function at(){xe("onend"),ye.end()}var kt=yt(ze);ye.on("drain",kt);var Ht=!1;function Ct(){xe("cleanup"),ye.removeListener("close",St),ye.removeListener("finish",ft),ye.removeListener("drain",kt),ye.removeListener("error",Bt),ye.removeListener("unpipe",bt),ze.removeListener("end",at),ze.removeListener("end",dt),ze.removeListener("data",$t),Ht=!0,Ke.awaitDrain&&(!ye._writableState||ye._writableState.needDrain)&&kt()}ze.on("data",$t);function $t(Ft){xe("ondata");var zt=ye.write(Ft);xe("dest.write",zt),zt===!1&&((Ke.pipesCount===1&&Ke.pipes===ye||Ke.pipesCount>1&&He(Ke.pipes,ye)!==-1)&&!Ht&&(xe("false write response, pause",Ke.awaitDrain),Ke.awaitDrain++),ze.pause())}function Bt(Ft){xe("onerror",Ft),dt(),ye.removeListener("error",Bt),se(ye,"error")===0&&Ve(ye,Ft)}Ze(ye,"error",Bt);function St(){ye.removeListener("finish",ft),dt()}ye.once("close",St);function ft(){xe("onfinish"),ye.removeListener("close",St),dt()}ye.once("finish",ft);function dt(){xe("unpipe"),ze.unpipe(ye)}return ye.emit("pipe",ze),Ke.flowing||(xe("pipe resume"),ze.resume()),ye};function yt(ye){return function(){var ze=ye._readableState;xe("pipeOnDrain",ze.awaitDrain),ze.awaitDrain&&ze.awaitDrain--,ze.awaitDrain===0&&se(ye,"data")&&(ze.flowing=!0,$e(ye))}}tt.prototype.unpipe=function(ye){var Re=this._readableState,ze={hasUnpiped:!1};if(Re.pipesCount===0)return this;if(Re.pipesCount===1)return ye&&ye!==Re.pipes?this:(ye||(ye=Re.pipes),Re.pipes=null,Re.pipesCount=0,Re.flowing=!1,ye&&ye.emit("unpipe",this,ze),this);if(!ye){var Ke=Re.pipes,We=Re.pipesCount;Re.pipes=null,Re.pipesCount=0,Re.flowing=!1;for(var st=0;st<We;st++)Ke[st].emit("unpipe",this,{hasUnpiped:!1});return this}var bt=He(Re.pipes,ye);return bt===-1?this:(Re.pipes.splice(bt,1),Re.pipesCount-=1,Re.pipesCount===1&&(Re.pipes=Re.pipes[0]),ye.emit("unpipe",this,ze),this)},tt.prototype.on=function(ye,Re){var ze=pe.prototype.on.call(this,ye,Re),Ke=this._readableState;return ye==="data"?(Ke.readableListening=this.listenerCount("readable")>0,Ke.flowing!==!1&&this.resume()):ye==="readable"&&!Ke.endEmitted&&!Ke.readableListening&&(Ke.readableListening=Ke.needReadable=!0,Ke.flowing=!1,Ke.emittedReadable=!1,xe("on readable",Ke.length,Ke.reading),Ke.length?rt(this):Ke.reading||re.nextTick(Ot,this)),ze},tt.prototype.addListener=tt.prototype.on,tt.prototype.removeListener=function(ye,Re){var ze=pe.prototype.removeListener.call(this,ye,Re);return ye==="readable"&&re.nextTick(Rt,this),ze},tt.prototype.removeAllListeners=function(ye){var Re=pe.prototype.removeAllListeners.apply(this,arguments);return(ye==="readable"||ye===void 0)&&re.nextTick(Rt,this),Re};function Rt(ye){var Re=ye._readableState;Re.readableListening=ye.listenerCount("readable")>0,Re.resumeScheduled&&!Re.paused?Re.flowing=!0:ye.listenerCount("data")>0&&ye.resume()}function Ot(ye){xe("readable nexttick read 0"),ye.read(0)}tt.prototype.resume=function(){var ye=this._readableState;return ye.flowing||(xe("resume"),ye.flowing=!ye.readableListening,lt(this,ye)),ye.paused=!1,this};function lt(ye,Re){Re.resumeScheduled||(Re.resumeScheduled=!0,re.nextTick(Ue,ye,Re))}function Ue(ye,Re){xe("resume",Re.reading),Re.reading||ye.read(0),Re.resumeScheduled=!1,ye.emit("resume"),$e(ye),Re.flowing&&!Re.reading&&ye.read(0)}tt.prototype.pause=function(){return xe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(xe("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function $e(ye){var Re=ye._readableState;for(xe("flow",Re.flowing);Re.flowing&&ye.read()!==null;);}tt.prototype.wrap=function(ye){var Re=this,ze=this._readableState,Ke=!1;ye.on("end",function(){if(xe("wrapped end"),ze.decoder&&!ze.ended){var bt=ze.decoder.end();bt&&bt.length&&Re.push(bt)}Re.push(null)}),ye.on("data",function(bt){if(xe("wrapped data"),ze.decoder&&(bt=ze.decoder.write(bt)),!(ze.objectMode&&bt==null)&&!(!ze.objectMode&&(!bt||!bt.length))){var at=Re.push(bt);at||(Ke=!0,ye.pause())}});for(var We in ye)this[We]===void 0&&typeof ye[We]=="function"&&(this[We]=function(at){return function(){return ye[at].apply(ye,arguments)}}(We));for(var st=0;st<Ie.length;st++)ye.on(Ie[st],this.emit.bind(this,Ie[st]));return this._read=function(bt){xe("wrapped _read",bt),Ke&&(Ke=!1,ye.resume())},this},typeof Symbol=="function"&&(tt.prototype[Symbol.asyncIterator]=function(){return Pe===void 0&&(Pe=x("./internal/streams/async_iterator")),Pe(this)}),Object.defineProperty(tt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(tt.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(tt.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Re){this._readableState&&(this._readableState.flowing=Re)}}),tt._fromList=le,Object.defineProperty(tt.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function le(ye,Re){if(Re.length===0)return null;var ze;return Re.objectMode?ze=Re.buffer.shift():!ye||ye>=Re.length?(Re.decoder?ze=Re.buffer.join(""):Re.buffer.length===1?ze=Re.buffer.first():ze=Re.buffer.concat(Re.length),Re.buffer.clear()):ze=Re.buffer.consume(ye,Re.decoder),ze}function fe(ye){var Re=ye._readableState;xe("endReadable",Re.endEmitted),Re.endEmitted||(Re.ended=!0,re.nextTick(Fe,Re,ye))}function Fe(ye,Re){if(xe("endReadableNT",ye.endEmitted,ye.length),!ye.endEmitted&&ye.length===0&&(ye.endEmitted=!0,Re.readable=!1,Re.emit("end"),ye.autoDestroy)){var ze=Re._writableState;(!ze||ze.autoDestroy&&ze.finished)&&Re.destroy()}}typeof Symbol=="function"&&(tt.from=function(ye,Re){return Be===void 0&&(Be=x("./internal/streams/from")),Be(tt,ye,Re)});function He(ye,Re){for(var ze=0,Ke=ye.length;ze<Ke;ze++)if(ye[ze]===Re)return ze;return-1}}).call(this)}).call(this,x("_process"),typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(x,Ae,me){"use strict";Ae.exports=ae;var re=x("../errors").codes,z=re.ERR_METHOD_NOT_IMPLEMENTED,ie=re.ERR_MULTIPLE_CALLBACK,oe=re.ERR_TRANSFORM_ALREADY_TRANSFORMING,se=re.ERR_TRANSFORM_WITH_LENGTH_0,pe=x("./_stream_duplex");x("inherits")(ae,pe);function ne(he,xe){var Se=this._transformState;Se.transforming=!1;var we=Se.writecb;if(we===null)return this.emit("error",new ie);Se.writechunk=null,Se.writecb=null,xe!=null&&this.push(xe),we(he);var be=this._readableState;be.reading=!1,(be.needReadable||be.length<be.highWaterMark)&&this._read(be.highWaterMark)}function ae(he){if(!(this instanceof ae))return new ae(he);pe.call(this,he),this._transformState={afterTransform:ne.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,he&&(typeof he.transform=="function"&&(this._transform=he.transform),typeof he.flush=="function"&&(this._flush=he.flush)),this.on("prefinish",ue)}function ue(){var he=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(xe,Se){de(he,xe,Se)}):de(this,null,null)}ae.prototype.push=function(he,xe){return this._transformState.needTransform=!1,pe.prototype.push.call(this,he,xe)},ae.prototype._transform=function(he,xe,Se){Se(new z("_transform()"))},ae.prototype._write=function(he,xe,Se){var we=this._transformState;if(we.writecb=Se,we.writechunk=he,we.writeencoding=xe,!we.transforming){var be=this._readableState;(we.needTransform||be.needReadable||be.length<be.highWaterMark)&&this._read(be.highWaterMark)}},ae.prototype._read=function(he){var xe=this._transformState;xe.writechunk!==null&&!xe.transforming?(xe.transforming=!0,this._transform(xe.writechunk,xe.writeencoding,xe.afterTransform)):xe.needTransform=!0},ae.prototype._destroy=function(he,xe){pe.prototype._destroy.call(this,he,function(Se){xe(Se)})};function de(he,xe,Se){if(xe)return he.emit("error",xe);if(Se!=null&&he.push(Se),he._writableState.length)throw new se;if(he._transformState.transforming)throw new oe;return he.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(x,Ae,me){(function(re,z){(function(){"use strict";Ae.exports=Qe;function ie($e,le,fe){this.chunk=$e,this.encoding=le,this.callback=fe,this.next=null}function oe($e){var le=this;this.next=null,this.entry=null,this.finish=function(){Ue(le,$e)}}var se;Qe.WritableState=Ie;var pe={deprecate:x("util-deprecate")},ne=x("./internal/streams/stream"),ae=x("buffer").Buffer,ue=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function de($e){return ae.from($e)}function he($e){return ae.isBuffer($e)||$e instanceof ue}var xe=x("./internal/streams/destroy"),Se=x("./internal/streams/state"),we=Se.getHighWaterMark,be=x("../errors").codes,Me=be.ERR_INVALID_ARG_TYPE,Le=be.ERR_METHOD_NOT_IMPLEMENTED,Ce=be.ERR_MULTIPLE_CALLBACK,Ne=be.ERR_STREAM_CANNOT_PIPE,Te=be.ERR_STREAM_DESTROYED,De=be.ERR_STREAM_NULL_VALUES,Ee=be.ERR_STREAM_WRITE_AFTER_END,Pe=be.ERR_UNKNOWN_ENCODING,Be=xe.errorOrDestroy;x("inherits")(Qe,ne);function Ve(){}function Ie($e,le,fe){se=se||x("./_stream_duplex"),$e=$e||{},typeof fe!="boolean"&&(fe=le instanceof se),this.objectMode=!!$e.objectMode,fe&&(this.objectMode=this.objectMode||!!$e.writableObjectMode),this.highWaterMark=we(this,$e,"writableHighWaterMark",fe),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Fe=$e.decodeStrings===!1;this.decodeStrings=!Fe,this.defaultEncoding=$e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(He){ut(le,He)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=$e.emitClose!==!1,this.autoDestroy=!!$e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new oe(this)}Ie.prototype.getBuffer=function(){for(var le=this.bufferedRequest,fe=[];le;)fe.push(le),le=le.next;return fe},function(){try{Object.defineProperty(Ie.prototype,"buffer",{get:pe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($e){}}();var Ze;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ze=Function.prototype[Symbol.hasInstance],Object.defineProperty(Qe,Symbol.hasInstance,{value:function(le){return Ze.call(this,le)?!0:this!==Qe?!1:le&&le._writableState instanceof Ie}})):Ze=function(le){return le instanceof this};function Qe($e){se=se||x("./_stream_duplex");var le=this instanceof se;if(!le&&!Ze.call(Qe,this))return new Qe($e);this._writableState=new Ie($e,this,le),this.writable=!0,$e&&(typeof $e.write=="function"&&(this._write=$e.write),typeof $e.writev=="function"&&(this._writev=$e.writev),typeof $e.destroy=="function"&&(this._destroy=$e.destroy),typeof $e.final=="function"&&(this._final=$e.final)),ne.call(this)}Qe.prototype.pipe=function(){Be(this,new Ne)};function tt($e,le){var fe=new Ee;Be($e,fe),re.nextTick(le,fe)}function it($e,le,fe,Fe){var He;return fe===null?He=new De:typeof fe!="string"&&!le.objectMode&&(He=new Me("chunk",["string","Buffer"],fe)),He?(Be($e,He),re.nextTick(Fe,He),!1):!0}Qe.prototype.write=function($e,le,fe){var Fe=this._writableState,He=!1,ye=!Fe.objectMode&&he($e);return ye&&!ae.isBuffer($e)&&($e=de($e)),typeof le=="function"&&(fe=le,le=null),ye?le="buffer":le||(le=Fe.defaultEncoding),typeof fe!="function"&&(fe=Ve),Fe.ending?tt(this,fe):(ye||it(this,Fe,$e,fe))&&(Fe.pendingcb++,He=Ge(this,Fe,ye,$e,le,fe)),He},Qe.prototype.cork=function(){this._writableState.corked++},Qe.prototype.uncork=function(){var $e=this._writableState;$e.corked&&($e.corked--,!$e.writing&&!$e.corked&&!$e.bufferProcessing&&$e.bufferedRequest&&nt(this,$e))},Qe.prototype.setDefaultEncoding=function(le){if(typeof le=="string"&&(le=le.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((le+"").toLowerCase())>-1))throw new Pe(le);return this._writableState.defaultEncoding=le,this},Object.defineProperty(Qe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ht($e,le,fe){return!$e.objectMode&&$e.decodeStrings!==!1&&typeof le=="string"&&(le=ae.from(le,fe)),le}Object.defineProperty(Qe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ge($e,le,fe,Fe,He,ye){if(!fe){var Re=ht(le,Fe,He);Fe!==Re&&(fe=!0,He="buffer",Fe=Re)}var ze=le.objectMode?1:Fe.length;le.length+=ze;var Ke=le.length<le.highWaterMark;if(Ke||(le.needDrain=!0),le.writing||le.corked){var We=le.lastBufferedRequest;le.lastBufferedRequest={chunk:Fe,encoding:He,isBuf:fe,callback:ye,next:null},We?We.next=le.lastBufferedRequest:le.bufferedRequest=le.lastBufferedRequest,le.bufferedRequestCount+=1}else Xe($e,le,!1,ze,Fe,He,ye);return Ke}function Xe($e,le,fe,Fe,He,ye,Re){le.writelen=Fe,le.writecb=Re,le.writing=!0,le.sync=!0,le.destroyed?le.onwrite(new Te("write")):fe?$e._writev(He,le.onwrite):$e._write(He,ye,le.onwrite),le.sync=!1}function ct($e,le,fe,Fe,He){--le.pendingcb,fe?(re.nextTick(He,Fe),re.nextTick(Ot,$e,le),$e._writableState.errorEmitted=!0,Be($e,Fe)):(He(Fe),$e._writableState.errorEmitted=!0,Be($e,Fe),Ot($e,le))}function pt($e){$e.writing=!1,$e.writecb=null,$e.length-=$e.writelen,$e.writelen=0}function ut($e,le){var fe=$e._writableState,Fe=fe.sync,He=fe.writecb;if(typeof He!="function")throw new Ce;if(pt(fe),le)ct($e,fe,Fe,le,He);else{var ye=xt(fe)||$e.destroyed;!ye&&!fe.corked&&!fe.bufferProcessing&&fe.bufferedRequest&&nt($e,fe),Fe?re.nextTick(rt,$e,fe,ye,He):rt($e,fe,ye,He)}}function rt($e,le,fe,Fe){fe||qe($e,le),le.pendingcb--,Fe(),Ot($e,le)}function qe($e,le){le.length===0&&le.needDrain&&(le.needDrain=!1,$e.emit("drain"))}function nt($e,le){le.bufferProcessing=!0;var fe=le.bufferedRequest;if($e._writev&&fe&&fe.next){var Fe=le.bufferedRequestCount,He=new Array(Fe),ye=le.corkedRequestsFree;ye.entry=fe;for(var Re=0,ze=!0;fe;)He[Re]=fe,fe.isBuf||(ze=!1),fe=fe.next,Re+=1;He.allBuffers=ze,Xe($e,le,!0,le.length,He,"",ye.finish),le.pendingcb++,le.lastBufferedRequest=null,ye.next?(le.corkedRequestsFree=ye.next,ye.next=null):le.corkedRequestsFree=new oe(le),le.bufferedRequestCount=0}else{for(;fe;){var Ke=fe.chunk,We=fe.encoding,st=fe.callback,bt=le.objectMode?1:Ke.length;if(Xe($e,le,!1,bt,Ke,We,st),fe=fe.next,le.bufferedRequestCount--,le.writing)break}fe===null&&(le.lastBufferedRequest=null)}le.bufferedRequest=fe,le.bufferProcessing=!1}Qe.prototype._write=function($e,le,fe){fe(new Le("_write()"))},Qe.prototype._writev=null,Qe.prototype.end=function($e,le,fe){var Fe=this._writableState;return typeof $e=="function"?(fe=$e,$e=null,le=null):typeof le=="function"&&(fe=le,le=null),$e!=null&&this.write($e,le),Fe.corked&&(Fe.corked=1,this.uncork()),Fe.ending||lt(this,Fe,fe),this},Object.defineProperty(Qe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function xt($e){return $e.ending&&$e.length===0&&$e.bufferedRequest===null&&!$e.finished&&!$e.writing}function yt($e,le){$e._final(function(fe){le.pendingcb--,fe&&Be($e,fe),le.prefinished=!0,$e.emit("prefinish"),Ot($e,le)})}function Rt($e,le){!le.prefinished&&!le.finalCalled&&(typeof $e._final=="function"&&!le.destroyed?(le.pendingcb++,le.finalCalled=!0,re.nextTick(yt,$e,le)):(le.prefinished=!0,$e.emit("prefinish")))}function Ot($e,le){var fe=xt(le);if(fe&&(Rt($e,le),le.pendingcb===0&&(le.finished=!0,$e.emit("finish"),le.autoDestroy))){var Fe=$e._readableState;(!Fe||Fe.autoDestroy&&Fe.endEmitted)&&$e.destroy()}return fe}function lt($e,le,fe){le.ending=!0,Ot($e,le),fe&&(le.finished?re.nextTick(fe):$e.once("finish",fe)),le.ended=!0,$e.writable=!1}function Ue($e,le,fe){var Fe=$e.entry;for($e.entry=null;Fe;){var He=Fe.callback;le.pendingcb--,He(fe),Fe=Fe.next}le.corkedRequestsFree.next=$e}Object.defineProperty(Qe.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(le){this._writableState&&(this._writableState.destroyed=le)}}),Qe.prototype.destroy=xe.destroy,Qe.prototype._undestroy=xe.undestroy,Qe.prototype._destroy=function($e,le){le($e)}}).call(this)}).call(this,x("_process"),typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(x,Ae,me){(function(re){(function(){"use strict";var z;function ie(De,Ee,Pe){return Ee=oe(Ee),Ee in De?Object.defineProperty(De,Ee,{value:Pe,enumerable:!0,configurable:!0,writable:!0}):De[Ee]=Pe,De}function oe(De){var Ee=se(De,"string");return typeof Ee=="symbol"?Ee:String(Ee)}function se(De,Ee){if(typeof De!="object"||De===null)return De;var Pe=De[Symbol.toPrimitive];if(Pe!==void 0){var Be=Pe.call(De,Ee||"default");if(typeof Be!="object")return Be;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ee==="string"?String:Number)(De)}var pe=x("./end-of-stream"),ne=Symbol("lastResolve"),ae=Symbol("lastReject"),ue=Symbol("error"),de=Symbol("ended"),he=Symbol("lastPromise"),xe=Symbol("handlePromise"),Se=Symbol("stream");function we(De,Ee){return{value:De,done:Ee}}function be(De){var Ee=De[ne];if(Ee!==null){var Pe=De[Se].read();Pe!==null&&(De[he]=null,De[ne]=null,De[ae]=null,Ee(we(Pe,!1)))}}function Me(De){re.nextTick(be,De)}function Le(De,Ee){return function(Pe,Be){De.then(function(){if(Ee[de]){Pe(we(void 0,!0));return}Ee[xe](Pe,Be)},Be)}}var Ce=Object.getPrototypeOf(function(){}),Ne=Object.setPrototypeOf((z={get stream(){return this[Se]},next:function(){var Ee=this,Pe=this[ue];if(Pe!==null)return Promise.reject(Pe);if(this[de])return Promise.resolve(we(void 0,!0));if(this[Se].destroyed)return new Promise(function(Ze,Qe){re.nextTick(function(){Ee[ue]?Qe(Ee[ue]):Ze(we(void 0,!0))})});var Be=this[he],Ve;if(Be)Ve=new Promise(Le(Be,this));else{var Ie=this[Se].read();if(Ie!==null)return Promise.resolve(we(Ie,!1));Ve=new Promise(this[xe])}return this[he]=Ve,Ve}},ie(z,Symbol.asyncIterator,function(){return this}),ie(z,"return",function(){var Ee=this;return new Promise(function(Pe,Be){Ee[Se].destroy(null,function(Ve){if(Ve){Be(Ve);return}Pe(we(void 0,!0))})})}),z),Ce),Te=function(Ee){var Pe,Be=Object.create(Ne,(Pe={},ie(Pe,Se,{value:Ee,writable:!0}),ie(Pe,ne,{value:null,writable:!0}),ie(Pe,ae,{value:null,writable:!0}),ie(Pe,ue,{value:null,writable:!0}),ie(Pe,de,{value:Ee._readableState.endEmitted,writable:!0}),ie(Pe,xe,{value:function(Ie,Ze){var Qe=Be[Se].read();Qe?(Be[he]=null,Be[ne]=null,Be[ae]=null,Ie(we(Qe,!1))):(Be[ne]=Ie,Be[ae]=Ze)},writable:!0}),Pe));return Be[he]=null,pe(Ee,function(Ve){if(Ve&&Ve.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Ie=Be[ae];Ie!==null&&(Be[he]=null,Be[ne]=null,Be[ae]=null,Ie(Ve)),Be[ue]=Ve;return}var Ze=Be[ne];Ze!==null&&(Be[he]=null,Be[ne]=null,Be[ae]=null,Ze(we(void 0,!0))),Be[de]=!0}),Ee.on("readable",Me.bind(null,Be)),Be};Ae.exports=Te}).call(this)}).call(this,x("_process"))},{"./end-of-stream":408,_process:467}],406:[function(x,Ae,me){"use strict";function re(be,Me){var Le=Object.keys(be);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(be);Me&&(Ce=Ce.filter(function(Ne){return Object.getOwnPropertyDescriptor(be,Ne).enumerable})),Le.push.apply(Le,Ce)}return Le}function z(be){for(var Me=1;Me<arguments.length;Me++){var Le=arguments[Me]!=null?arguments[Me]:{};Me%2?re(Object(Le),!0).forEach(function(Ce){ie(be,Ce,Le[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(be,Object.getOwnPropertyDescriptors(Le)):re(Object(Le)).forEach(function(Ce){Object.defineProperty(be,Ce,Object.getOwnPropertyDescriptor(Le,Ce))})}return be}function ie(be,Me,Le){return Me=ne(Me),Me in be?Object.defineProperty(be,Me,{value:Le,enumerable:!0,configurable:!0,writable:!0}):be[Me]=Le,be}function oe(be,Me){if(!(be instanceof Me))throw new TypeError("Cannot call a class as a function")}function se(be,Me){for(var Le=0;Le<Me.length;Le++){var Ce=Me[Le];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(be,ne(Ce.key),Ce)}}function pe(be,Me,Le){return Me&&se(be.prototype,Me),Le&&se(be,Le),Object.defineProperty(be,"prototype",{writable:!1}),be}function ne(be){var Me=ae(be,"string");return typeof Me=="symbol"?Me:String(Me)}function ae(be,Me){if(typeof be!="object"||be===null)return be;var Le=be[Symbol.toPrimitive];if(Le!==void 0){var Ce=Le.call(be,Me||"default");if(typeof Ce!="object")return Ce;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Me==="string"?String:Number)(be)}var ue=x("buffer"),de=ue.Buffer,he=x("util"),xe=he.inspect,Se=xe&&xe.custom||"inspect";function we(be,Me,Le){de.prototype.copy.call(be,Me,Le)}Ae.exports=function(){function be(){oe(this,be),this.head=null,this.tail=null,this.length=0}return pe(be,[{key:"push",value:function(Le){var Ce={data:Le,next:null};this.length>0?this.tail.next=Ce:this.head=Ce,this.tail=Ce,++this.length}},{key:"unshift",value:function(Le){var Ce={data:Le,next:this.head};this.length===0&&(this.tail=Ce),this.head=Ce,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Le=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Le}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Le){if(this.length===0)return"";for(var Ce=this.head,Ne=""+Ce.data;Ce=Ce.next;)Ne+=Le+Ce.data;return Ne}},{key:"concat",value:function(Le){if(this.length===0)return de.alloc(0);for(var Ce=de.allocUnsafe(Le>>>0),Ne=this.head,Te=0;Ne;)we(Ne.data,Ce,Te),Te+=Ne.data.length,Ne=Ne.next;return Ce}},{key:"consume",value:function(Le,Ce){var Ne;return Le<this.head.data.length?(Ne=this.head.data.slice(0,Le),this.head.data=this.head.data.slice(Le)):Le===this.head.data.length?Ne=this.shift():Ne=Ce?this._getString(Le):this._getBuffer(Le),Ne}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Le){var Ce=this.head,Ne=1,Te=Ce.data;for(Le-=Te.length;Ce=Ce.next;){var De=Ce.data,Ee=Le>De.length?De.length:Le;if(Ee===De.length?Te+=De:Te+=De.slice(0,Le),Le-=Ee,Le===0){Ee===De.length?(++Ne,Ce.next?this.head=Ce.next:this.head=this.tail=null):(this.head=Ce,Ce.data=De.slice(Ee));break}++Ne}return this.length-=Ne,Te}},{key:"_getBuffer",value:function(Le){var Ce=de.allocUnsafe(Le),Ne=this.head,Te=1;for(Ne.data.copy(Ce),Le-=Ne.data.length;Ne=Ne.next;){var De=Ne.data,Ee=Le>De.length?De.length:Le;if(De.copy(Ce,Ce.length-Le,0,Ee),Le-=Ee,Le===0){Ee===De.length?(++Te,Ne.next?this.head=Ne.next:this.head=this.tail=null):(this.head=Ne,Ne.data=De.slice(Ee));break}++Te}return this.length-=Te,Ce}},{key:Se,value:function(Le,Ce){return xe(this,z(z({},Ce),{},{depth:0,customInspect:!1}))}}]),be}()},{buffer:90,util:89}],407:[function(x,Ae,me){(function(re){(function(){"use strict";function z(ae,ue){var de=this,he=this._readableState&&this._readableState.destroyed,xe=this._writableState&&this._writableState.destroyed;return he||xe?(ue?ue(ae):ae&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,re.nextTick(pe,this,ae)):re.nextTick(pe,this,ae)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ae||null,function(Se){!ue&&Se?de._writableState?de._writableState.errorEmitted?re.nextTick(oe,de):(de._writableState.errorEmitted=!0,re.nextTick(ie,de,Se)):re.nextTick(ie,de,Se):ue?(re.nextTick(oe,de),ue(Se)):re.nextTick(oe,de)}),this)}function ie(ae,ue){pe(ae,ue),oe(ae)}function oe(ae){ae._writableState&&!ae._writableState.emitClose||ae._readableState&&!ae._readableState.emitClose||ae.emit("close")}function se(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function pe(ae,ue){ae.emit("error",ue)}function ne(ae,ue){var de=ae._readableState,he=ae._writableState;de&&de.autoDestroy||he&&he.autoDestroy?ae.destroy(ue):ae.emit("error",ue)}Ae.exports={destroy:z,undestroy:se,errorOrDestroy:ne}}).call(this)}).call(this,x("_process"))},{_process:467}],408:[function(x,Ae,me){"use strict";var re=x("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function z(pe){var ne=!1;return function(){if(!ne){ne=!0;for(var ae=arguments.length,ue=new Array(ae),de=0;de<ae;de++)ue[de]=arguments[de];pe.apply(this,ue)}}}function ie(){}function oe(pe){return pe.setHeader&&typeof pe.abort=="function"}function se(pe,ne,ae){if(typeof ne=="function")return se(pe,null,ne);ne||(ne={}),ae=z(ae||ie);var ue=ne.readable||ne.readable!==!1&&pe.readable,de=ne.writable||ne.writable!==!1&&pe.writable,he=function(){pe.writable||Se()},xe=pe._writableState&&pe._writableState.finished,Se=function(){de=!1,xe=!0,ue||ae.call(pe)},we=pe._readableState&&pe._readableState.endEmitted,be=function(){ue=!1,we=!0,de||ae.call(pe)},Me=function(Te){ae.call(pe,Te)},Le=function(){var Te;if(ue&&!we)return(!pe._readableState||!pe._readableState.ended)&&(Te=new re),ae.call(pe,Te);if(de&&!xe)return(!pe._writableState||!pe._writableState.ended)&&(Te=new re),ae.call(pe,Te)},Ce=function(){pe.req.on("finish",Se)};return oe(pe)?(pe.on("complete",Se),pe.on("abort",Le),pe.req?Ce():pe.on("request",Ce)):de&&!pe._writableState&&(pe.on("end",he),pe.on("close",he)),pe.on("end",be),pe.on("finish",Se),ne.error!==!1&&pe.on("error",Me),pe.on("close",Le),function(){pe.removeListener("complete",Se),pe.removeListener("abort",Le),pe.removeListener("request",Ce),pe.req&&pe.req.removeListener("finish",Se),pe.removeListener("end",he),pe.removeListener("close",he),pe.removeListener("finish",Se),pe.removeListener("end",be),pe.removeListener("error",Me),pe.removeListener("close",Le)}}Ae.exports=se},{"../../../errors":399}],409:[function(x,Ae,me){Ae.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(x,Ae,me){"use strict";var re;function z(Se){var we=!1;return function(){we||(we=!0,Se.apply(void 0,arguments))}}var ie=x("../../../errors").codes,oe=ie.ERR_MISSING_ARGS,se=ie.ERR_STREAM_DESTROYED;function pe(Se){if(Se)throw Se}function ne(Se){return Se.setHeader&&typeof Se.abort=="function"}function ae(Se,we,be,Me){Me=z(Me);var Le=!1;Se.on("close",function(){Le=!0}),re===void 0&&(re=x("./end-of-stream")),re(Se,{readable:we,writable:be},function(Ne){if(Ne)return Me(Ne);Le=!0,Me()});var Ce=!1;return function(Ne){if(!Le&&!Ce){if(Ce=!0,ne(Se))return Se.abort();if(typeof Se.destroy=="function")return Se.destroy();Me(Ne||new se("pipe"))}}}function ue(Se){Se()}function de(Se,we){return Se.pipe(we)}function he(Se){return!Se.length||typeof Se[Se.length-1]!="function"?pe:Se.pop()}function xe(){for(var Se=arguments.length,we=new Array(Se),be=0;be<Se;be++)we[be]=arguments[be];var Me=he(we);if(Array.isArray(we[0])&&(we=we[0]),we.length<2)throw new oe("streams");var Le,Ce=we.map(function(Ne,Te){var De=Te<we.length-1,Ee=Te>0;return ae(Ne,De,Ee,function(Pe){Le||(Le=Pe),Pe&&Ce.forEach(ue),!De&&(Ce.forEach(ue),Me(Le))})});return we.reduce(de)}Ae.exports=xe},{"../../../errors":399,"./end-of-stream":408}],411:[function(x,Ae,me){"use strict";var re=x("../../../errors").codes.ERR_INVALID_OPT_VALUE;function z(oe,se,pe){return oe.highWaterMark!=null?oe.highWaterMark:se?oe[pe]:null}function ie(oe,se,pe,ne){var ae=z(se,ne,pe);if(ae!=null){if(!(isFinite(ae)&&Math.floor(ae)===ae)||ae<0){var ue=ne?pe:"highWaterMark";throw new re(ue,ae)}return Math.floor(ae)}return oe.objectMode?16:16*1024}Ae.exports={getHighWaterMark:ie}},{"../../../errors":399}],412:[function(x,Ae,me){arguments[4][393][0].apply(me,arguments)},{dup:393,events:344}],413:[function(x,Ae,me){"use strict";var re=x("safe-buffer").Buffer,z=re.isEncoding||function(Ce){switch(Ce=""+Ce,Ce&&Ce.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ie(Ce){if(!Ce)return"utf8";for(var Ne;;)switch(Ce){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Ce;default:if(Ne)return;Ce=(""+Ce).toLowerCase(),Ne=!0}}function oe(Ce){var Ne=ie(Ce);if(typeof Ne!="string"&&(re.isEncoding===z||!z(Ce)))throw new Error("Unknown encoding: "+Ce);return Ne||Ce}me.StringDecoder=se;function se(Ce){this.encoding=oe(Ce);var Ne;switch(this.encoding){case"utf16le":this.text=xe,this.end=Se,Ne=4;break;case"utf8":this.fillLast=ue,Ne=4;break;case"base64":this.text=we,this.end=be,Ne=3;break;default:this.write=Me,this.end=Le;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=re.allocUnsafe(Ne)}se.prototype.write=function(Ce){if(Ce.length===0)return"";var Ne,Te;if(this.lastNeed){if(Ne=this.fillLast(Ce),Ne===void 0)return"";Te=this.lastNeed,this.lastNeed=0}else Te=0;return Te<Ce.length?Ne?Ne+this.text(Ce,Te):this.text(Ce,Te):Ne||""},se.prototype.end=he,se.prototype.text=de,se.prototype.fillLast=function(Ce){if(this.lastNeed<=Ce.length)return Ce.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ce.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Ce.length),this.lastNeed-=Ce.length};function pe(Ce){return Ce<=127?0:Ce>>5===6?2:Ce>>4===14?3:Ce>>3===30?4:Ce>>6===2?-1:-2}function ne(Ce,Ne,Te){var De=Ne.length-1;if(De<Te)return 0;var Ee=pe(Ne[De]);return Ee>=0?(Ee>0&&(Ce.lastNeed=Ee-1),Ee):--De<Te||Ee===-2?0:(Ee=pe(Ne[De]),Ee>=0?(Ee>0&&(Ce.lastNeed=Ee-2),Ee):--De<Te||Ee===-2?0:(Ee=pe(Ne[De]),Ee>=0?(Ee>0&&(Ee===2?Ee=0:Ce.lastNeed=Ee-3),Ee):0))}function ae(Ce,Ne,Te){if((Ne[0]&192)!==128)return Ce.lastNeed=0,"\uFFFD";if(Ce.lastNeed>1&&Ne.length>1){if((Ne[1]&192)!==128)return Ce.lastNeed=1,"\uFFFD";if(Ce.lastNeed>2&&Ne.length>2&&(Ne[2]&192)!==128)return Ce.lastNeed=2,"\uFFFD"}}function ue(Ce){var Ne=this.lastTotal-this.lastNeed,Te=ae(this,Ce,Ne);if(Te!==void 0)return Te;if(this.lastNeed<=Ce.length)return Ce.copy(this.lastChar,Ne,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ce.copy(this.lastChar,Ne,0,Ce.length),this.lastNeed-=Ce.length}function de(Ce,Ne){var Te=ne(this,Ce,Ne);if(!this.lastNeed)return Ce.toString("utf8",Ne);this.lastTotal=Te;var De=Ce.length-(Te-this.lastNeed);return Ce.copy(this.lastChar,0,De),Ce.toString("utf8",Ne,De)}function he(Ce){var Ne=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?Ne+"\uFFFD":Ne}function xe(Ce,Ne){if((Ce.length-Ne)%2===0){var Te=Ce.toString("utf16le",Ne);if(Te){var De=Te.charCodeAt(Te.length-1);if(De>=55296&&De<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Ce[Ce.length-2],this.lastChar[1]=Ce[Ce.length-1],Te.slice(0,-1)}return Te}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Ce[Ce.length-1],Ce.toString("utf16le",Ne,Ce.length-1)}function Se(Ce){var Ne=Ce&&Ce.length?this.write(Ce):"";if(this.lastNeed){var Te=this.lastTotal-this.lastNeed;return Ne+this.lastChar.toString("utf16le",0,Te)}return Ne}function we(Ce,Ne){var Te=(Ce.length-Ne)%3;return Te===0?Ce.toString("base64",Ne):(this.lastNeed=3-Te,this.lastTotal=3,Te===1?this.lastChar[0]=Ce[Ce.length-1]:(this.lastChar[0]=Ce[Ce.length-2],this.lastChar[1]=Ce[Ce.length-1]),Ce.toString("base64",Ne,Ce.length-Te))}function be(Ce){var Ne=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?Ne+this.lastChar.toString("base64",0,3-this.lastNeed):Ne}function Me(Ce){return Ce.toString(this.encoding)}function Le(Ce){return Ce&&Ce.length?this.write(Ce):""}},{"safe-buffer":396}],414:[function(x,Ae,me){(function(re,z){(function(){var ie=x("process/browser.js").nextTick,oe=Function.prototype.apply,se=Array.prototype.slice,pe={},ne=0;me.setTimeout=function(){return new ae(oe.call(setTimeout,window,arguments),clearTimeout)},me.setInterval=function(){return new ae(oe.call(setInterval,window,arguments),clearInterval)},me.clearTimeout=me.clearInterval=function(ue){ue.close()};function ae(ue,de){this._id=ue,this._clearFn=de}ae.prototype.unref=ae.prototype.ref=function(){},ae.prototype.close=function(){this._clearFn.call(window,this._id)},me.enroll=function(ue,de){clearTimeout(ue._idleTimeoutId),ue._idleTimeout=de},me.unenroll=function(ue){clearTimeout(ue._idleTimeoutId),ue._idleTimeout=-1},me._unrefActive=me.active=function(ue){clearTimeout(ue._idleTimeoutId);var de=ue._idleTimeout;de>=0&&(ue._idleTimeoutId=setTimeout(function(){ue._onTimeout&&ue._onTimeout()},de))},me.setImmediate=typeof re=="function"?re:function(ue){var de=ne++,he=arguments.length<2?!1:se.call(arguments,1);return pe[de]=!0,ie(function(){pe[de]&&(he?ue.apply(null,he):ue.call(null),me.clearImmediate(de))}),de},me.clearImmediate=typeof z=="function"?z:function(ue){delete pe[ue]}}).call(this)}).call(this,x("timers").setImmediate,x("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(x,Ae,me){var re=x("buffer").Buffer;Ae.exports=function(z){if(z instanceof Uint8Array){if(z.byteOffset===0&&z.byteLength===z.buffer.byteLength)return z.buffer;if(typeof z.buffer.slice=="function")return z.buffer.slice(z.byteOffset,z.byteOffset+z.byteLength)}if(re.isBuffer(z)){for(var ie=new Uint8Array(z.length),oe=z.length,se=0;se<oe;se++)ie[se]=z[se];return ie.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(x,Ae,me){(function(re){(function(){Ae.exports=z;function z(oe,se){if(ie("noDeprecation"))return oe;var pe=!1;function ne(){if(!pe){if(ie("throwDeprecation"))throw new Error(se);ie("traceDeprecation")?console.trace(se):console.warn(se),pe=!0}return oe.apply(this,arguments)}return ne}function ie(oe){try{if(!re.localStorage)return!1}catch(pe){return!1}var se=re.localStorage[oe];return se==null?!1:String(se).toLowerCase()==="true"}}).call(this)}).call(this,typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(x,Ae,me){arguments[4][84][0].apply(me,arguments)},{dup:84}],418:[function(x,Ae,me){"use strict";var re=x("is-arguments"),z=x("is-generator-function"),ie=x("which-typed-array"),oe=x("is-typed-array");function se(We){return We.call.bind(We)}var pe=typeof BigInt!="undefined",ne=typeof Symbol!="undefined",ae=se(Object.prototype.toString),ue=se(Number.prototype.valueOf),de=se(String.prototype.valueOf),he=se(Boolean.prototype.valueOf);if(pe)var xe=se(BigInt.prototype.valueOf);if(ne)var Se=se(Symbol.prototype.valueOf);function we(We,st){if(typeof We!="object")return!1;try{return st(We),!0}catch(bt){return!1}}me.isArgumentsObject=re,me.isGeneratorFunction=z,me.isTypedArray=oe;function be(We){return typeof Promise!="undefined"&&We instanceof Promise||We!==null&&typeof We=="object"&&typeof We.then=="function"&&typeof We.catch=="function"}me.isPromise=be;function Me(We){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(We):oe(We)||nt(We)}me.isArrayBufferView=Me;function Le(We){return ie(We)==="Uint8Array"}me.isUint8Array=Le;function Ce(We){return ie(We)==="Uint8ClampedArray"}me.isUint8ClampedArray=Ce;function Ne(We){return ie(We)==="Uint16Array"}me.isUint16Array=Ne;function Te(We){return ie(We)==="Uint32Array"}me.isUint32Array=Te;function De(We){return ie(We)==="Int8Array"}me.isInt8Array=De;function Ee(We){return ie(We)==="Int16Array"}me.isInt16Array=Ee;function Pe(We){return ie(We)==="Int32Array"}me.isInt32Array=Pe;function Be(We){return ie(We)==="Float32Array"}me.isFloat32Array=Be;function Ve(We){return ie(We)==="Float64Array"}me.isFloat64Array=Ve;function Ie(We){return ie(We)==="BigInt64Array"}me.isBigInt64Array=Ie;function Ze(We){return ie(We)==="BigUint64Array"}me.isBigUint64Array=Ze;function Qe(We){return ae(We)==="[object Map]"}Qe.working=typeof Map!="undefined"&&Qe(new Map);function tt(We){return typeof Map=="undefined"?!1:Qe.working?Qe(We):We instanceof Map}me.isMap=tt;function it(We){return ae(We)==="[object Set]"}it.working=typeof Set!="undefined"&&it(new Set);function ht(We){return typeof Set=="undefined"?!1:it.working?it(We):We instanceof Set}me.isSet=ht;function Ge(We){return ae(We)==="[object WeakMap]"}Ge.working=typeof WeakMap!="undefined"&&Ge(new WeakMap);function Xe(We){return typeof WeakMap=="undefined"?!1:Ge.working?Ge(We):We instanceof WeakMap}me.isWeakMap=Xe;function ct(We){return ae(We)==="[object WeakSet]"}ct.working=typeof WeakSet!="undefined"&&ct(new WeakSet);function pt(We){return ct(We)}me.isWeakSet=pt;function ut(We){return ae(We)==="[object ArrayBuffer]"}ut.working=typeof ArrayBuffer!="undefined"&&ut(new ArrayBuffer);function rt(We){return typeof ArrayBuffer=="undefined"?!1:ut.working?ut(We):We instanceof ArrayBuffer}me.isArrayBuffer=rt;function qe(We){return ae(We)==="[object DataView]"}qe.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&qe(new DataView(new ArrayBuffer(1),0,1));function nt(We){return typeof DataView=="undefined"?!1:qe.working?qe(We):We instanceof DataView}me.isDataView=nt;var xt=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function yt(We){return ae(We)==="[object SharedArrayBuffer]"}function Rt(We){return typeof xt=="undefined"?!1:(typeof yt.working=="undefined"&&(yt.working=yt(new xt)),yt.working?yt(We):We instanceof xt)}me.isSharedArrayBuffer=Rt;function Ot(We){return ae(We)==="[object AsyncFunction]"}me.isAsyncFunction=Ot;function lt(We){return ae(We)==="[object Map Iterator]"}me.isMapIterator=lt;function Ue(We){return ae(We)==="[object Set Iterator]"}me.isSetIterator=Ue;function $e(We){return ae(We)==="[object Generator]"}me.isGeneratorObject=$e;function le(We){return ae(We)==="[object WebAssembly.Module]"}me.isWebAssemblyCompiledModule=le;function fe(We){return we(We,ue)}me.isNumberObject=fe;function Fe(We){return we(We,de)}me.isStringObject=Fe;function He(We){return we(We,he)}me.isBooleanObject=He;function ye(We){return pe&&we(We,xe)}me.isBigIntObject=ye;function Re(We){return ne&&we(We,Se)}me.isSymbolObject=Re;function ze(We){return fe(We)||Fe(We)||He(We)||ye(We)||Re(We)}me.isBoxedPrimitive=ze;function Ke(We){return typeof Uint8Array!="undefined"&&(rt(We)||Rt(We))}me.isAnyArrayBuffer=Ke,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(We){Object.defineProperty(me,We,{enumerable:!1,value:function(){throw new Error(We+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(x,Ae,me){(function(re){(function(){var z=Object.getOwnPropertyDescriptors||function(xt){for(var yt=Object.keys(xt),Rt={},Ot=0;Ot<yt.length;Ot++)Rt[yt[Ot]]=Object.getOwnPropertyDescriptor(xt,yt[Ot]);return Rt},ie=/%[sdj%]/g;me.format=function(nt){if(!Ee(nt)){for(var xt=[],yt=0;yt<arguments.length;yt++)xt.push(ne(arguments[yt]));return xt.join(" ")}for(var yt=1,Rt=arguments,Ot=Rt.length,lt=String(nt).replace(ie,function($e){if($e==="%%")return"%";if(yt>=Ot)return $e;switch($e){case"%s":return String(Rt[yt++]);case"%d":return Number(Rt[yt++]);case"%j":try{return JSON.stringify(Rt[yt++])}catch(le){return"[Circular]"}default:return $e}}),Ue=Rt[yt];yt<Ot;Ue=Rt[++yt])Ne(Ue)||!Ie(Ue)?lt+=" "+Ue:lt+=" "+ne(Ue);return lt},me.deprecate=function(nt,xt){if(typeof re!="undefined"&&re.noDeprecation===!0)return nt;if(typeof re=="undefined")return function(){return me.deprecate(nt,xt).apply(this,arguments)};var yt=!1;function Rt(){if(!yt){if(re.throwDeprecation)throw new Error(xt);re.traceDeprecation?console.trace(xt):console.error(xt),yt=!0}return nt.apply(this,arguments)}return Rt};var oe={},se=/^$/;if(re.env.NODE_DEBUG){var pe=re.env.NODE_DEBUG;pe=pe.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),se=new RegExp("^"+pe+"$","i")}me.debuglog=function(nt){if(nt=nt.toUpperCase(),!oe[nt])if(se.test(nt)){var xt=re.pid;oe[nt]=function(){var yt=me.format.apply(me,arguments);console.error("%s %d: %s",nt,xt,yt)}}else oe[nt]=function(){};return oe[nt]};function ne(nt,xt){var yt={seen:[],stylize:ue};return arguments.length>=3&&(yt.depth=arguments[2]),arguments.length>=4&&(yt.colors=arguments[3]),Ce(xt)?yt.showHidden=xt:xt&&me._extend(yt,xt),Be(yt.showHidden)&&(yt.showHidden=!1),Be(yt.depth)&&(yt.depth=2),Be(yt.colors)&&(yt.colors=!1),Be(yt.customInspect)&&(yt.customInspect=!0),yt.colors&&(yt.stylize=ae),he(yt,nt,yt.depth)}me.inspect=ne,ne.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ne.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ae(nt,xt){var yt=ne.styles[xt];return yt?"\x1B["+ne.colors[yt][0]+"m"+nt+"\x1B["+ne.colors[yt][1]+"m":nt}function ue(nt,xt){return nt}function de(nt){var xt={};return nt.forEach(function(yt,Rt){xt[yt]=!0}),xt}function he(nt,xt,yt){if(nt.customInspect&&xt&&tt(xt.inspect)&&xt.inspect!==me.inspect&&!(xt.constructor&&xt.constructor.prototype===xt)){var Rt=xt.inspect(yt,nt);return Ee(Rt)||(Rt=he(nt,Rt,yt)),Rt}var Ot=xe(nt,xt);if(Ot)return Ot;var lt=Object.keys(xt),Ue=de(lt);if(nt.showHidden&&(lt=Object.getOwnPropertyNames(xt)),Qe(xt)&&(lt.indexOf("message")>=0||lt.indexOf("description")>=0))return Se(xt);if(lt.length===0){if(tt(xt)){var $e=xt.name?": "+xt.name:"";return nt.stylize("[Function"+$e+"]","special")}if(Ve(xt))return nt.stylize(RegExp.prototype.toString.call(xt),"regexp");if(Ze(xt))return nt.stylize(Date.prototype.toString.call(xt),"date");if(Qe(xt))return Se(xt)}var le="",fe=!1,Fe=["{","}"];if(Le(xt)&&(fe=!0,Fe=["[","]"]),tt(xt)){var He=xt.name?": "+xt.name:"";le=" [Function"+He+"]"}if(Ve(xt)&&(le=" "+RegExp.prototype.toString.call(xt)),Ze(xt)&&(le=" "+Date.prototype.toUTCString.call(xt)),Qe(xt)&&(le=" "+Se(xt)),lt.length===0&&(!fe||xt.length==0))return Fe[0]+le+Fe[1];if(yt<0)return Ve(xt)?nt.stylize(RegExp.prototype.toString.call(xt),"regexp"):nt.stylize("[Object]","special");nt.seen.push(xt);var ye;return fe?ye=we(nt,xt,yt,Ue,lt):ye=lt.map(function(Re){return be(nt,xt,yt,Ue,Re,fe)}),nt.seen.pop(),Me(ye,le,Fe)}function xe(nt,xt){if(Be(xt))return nt.stylize("undefined","undefined");if(Ee(xt)){var yt="'"+JSON.stringify(xt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return nt.stylize(yt,"string")}if(De(xt))return nt.stylize(""+xt,"number");if(Ce(xt))return nt.stylize(""+xt,"boolean");if(Ne(xt))return nt.stylize("null","null")}function Se(nt){return"["+Error.prototype.toString.call(nt)+"]"}function we(nt,xt,yt,Rt,Ot){for(var lt=[],Ue=0,$e=xt.length;Ue<$e;++Ue)pt(xt,String(Ue))?lt.push(be(nt,xt,yt,Rt,String(Ue),!0)):lt.push("");return Ot.forEach(function(le){le.match(/^\d+$/)||lt.push(be(nt,xt,yt,Rt,le,!0))}),lt}function be(nt,xt,yt,Rt,Ot,lt){var Ue,$e,le;if(le=Object.getOwnPropertyDescriptor(xt,Ot)||{value:xt[Ot]},le.get?le.set?$e=nt.stylize("[Getter/Setter]","special"):$e=nt.stylize("[Getter]","special"):le.set&&($e=nt.stylize("[Setter]","special")),pt(Rt,Ot)||(Ue="["+Ot+"]"),$e||(nt.seen.indexOf(le.value)<0?(Ne(yt)?$e=he(nt,le.value,null):$e=he(nt,le.value,yt-1),$e.indexOf(`
|
|
|
`)>-1&&(lt?$e=$e.split(`
|
|
|
`).map(function(fe){return" "+fe}).join(`
|
|
|
`).slice(2):$e=`
|
|
|
`+$e.split(`
|
|
|
`).map(function(fe){return" "+fe}).join(`
|
|
|
`))):$e=nt.stylize("[Circular]","special")),Be(Ue)){if(lt&&Ot.match(/^\d+$/))return $e;Ue=JSON.stringify(""+Ot),Ue.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ue=Ue.slice(1,-1),Ue=nt.stylize(Ue,"name")):(Ue=Ue.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ue=nt.stylize(Ue,"string"))}return Ue+": "+$e}function Me(nt,xt,yt){var Rt=0,Ot=nt.reduce(function(lt,Ue){return Rt++,Ue.indexOf(`
|
|
|
`)>=0&&Rt++,lt+Ue.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ot>60?yt[0]+(xt===""?"":xt+`
|
|
|
`)+" "+nt.join(`,
|
|
|
`)+" "+yt[1]:yt[0]+xt+" "+nt.join(", ")+" "+yt[1]}me.types=x("./support/types");function Le(nt){return Array.isArray(nt)}me.isArray=Le;function Ce(nt){return typeof nt=="boolean"}me.isBoolean=Ce;function Ne(nt){return nt===null}me.isNull=Ne;function Te(nt){return nt==null}me.isNullOrUndefined=Te;function De(nt){return typeof nt=="number"}me.isNumber=De;function Ee(nt){return typeof nt=="string"}me.isString=Ee;function Pe(nt){return typeof nt=="symbol"}me.isSymbol=Pe;function Be(nt){return nt===void 0}me.isUndefined=Be;function Ve(nt){return Ie(nt)&&ht(nt)==="[object RegExp]"}me.isRegExp=Ve,me.types.isRegExp=Ve;function Ie(nt){return typeof nt=="object"&&nt!==null}me.isObject=Ie;function Ze(nt){return Ie(nt)&&ht(nt)==="[object Date]"}me.isDate=Ze,me.types.isDate=Ze;function Qe(nt){return Ie(nt)&&(ht(nt)==="[object Error]"||nt instanceof Error)}me.isError=Qe,me.types.isNativeError=Qe;function tt(nt){return typeof nt=="function"}me.isFunction=tt;function it(nt){return nt===null||typeof nt=="boolean"||typeof nt=="number"||typeof nt=="string"||typeof nt=="symbol"||typeof nt=="undefined"}me.isPrimitive=it,me.isBuffer=x("./support/isBuffer");function ht(nt){return Object.prototype.toString.call(nt)}function Ge(nt){return nt<10?"0"+nt.toString(10):nt.toString(10)}var Xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ct(){var nt=new Date,xt=[Ge(nt.getHours()),Ge(nt.getMinutes()),Ge(nt.getSeconds())].join(":");return[nt.getDate(),Xe[nt.getMonth()],xt].join(" ")}me.log=function(){console.log("%s - %s",ct(),me.format.apply(me,arguments))},me.inherits=x("inherits"),me._extend=function(nt,xt){if(!xt||!Ie(xt))return nt;for(var yt=Object.keys(xt),Rt=yt.length;Rt--;)nt[yt[Rt]]=xt[yt[Rt]];return nt};function pt(nt,xt){return Object.prototype.hasOwnProperty.call(nt,xt)}var ut=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;me.promisify=function(xt){if(typeof xt!="function")throw new TypeError('The "original" argument must be of type Function');if(ut&&xt[ut]){var yt=xt[ut];if(typeof yt!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(yt,ut,{value:yt,enumerable:!1,writable:!1,configurable:!0}),yt}function yt(){for(var Rt,Ot,lt=new Promise(function(le,fe){Rt=le,Ot=fe}),Ue=[],$e=0;$e<arguments.length;$e++)Ue.push(arguments[$e]);Ue.push(function(le,fe){le?Ot(le):Rt(fe)});try{xt.apply(this,Ue)}catch(le){Ot(le)}return lt}return Object.setPrototypeOf(yt,Object.getPrototypeOf(xt)),ut&&Object.defineProperty(yt,ut,{value:yt,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(yt,z(xt))},me.promisify.custom=ut;function rt(nt,xt){if(!nt){var yt=new Error("Promise was rejected with a falsy value");yt.reason=nt,nt=yt}return xt(nt)}function qe(nt){if(typeof nt!="function")throw new TypeError('The "original" argument must be of type Function');function xt(){for(var yt=[],Rt=0;Rt<arguments.length;Rt++)yt.push(arguments[Rt]);var Ot=yt.pop();if(typeof Ot!="function")throw new TypeError("The last argument must be of type Function");var lt=this,Ue=function(){return Ot.apply(lt,arguments)};nt.apply(this,yt).then(function($e){re.nextTick(Ue.bind(null,null,$e))},function($e){re.nextTick(rt.bind(null,$e,Ue))})}return Object.setPrototypeOf(xt,Object.getPrototypeOf(nt)),Object.defineProperties(xt,z(nt)),xt}me.callbackify=qe}).call(this)}).call(this,x("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(x,Ae,me){(function(re){(function(){"use strict";var z=x("for-each"),ie=x("available-typed-arrays"),oe=x("call-bind"),se=x("call-bind/callBound"),pe=x("gopd"),ne=se("Object.prototype.toString"),ae=x("has-tostringtag/shams")(),ue=typeof globalThis=="undefined"?re:globalThis,de=ie(),he=se("String.prototype.slice"),xe=Object.getPrototypeOf,Se=se("Array.prototype.indexOf",!0)||function(Ce,Ne){for(var Te=0;Te<Ce.length;Te+=1)if(Ce[Te]===Ne)return Te;return-1},we={__proto__:null};ae&&pe&&xe?z(de,function(Le){var Ce=new ue[Le];if(Symbol.toStringTag in Ce){var Ne=xe(Ce),Te=pe(Ne,Symbol.toStringTag);if(!Te){var De=xe(Ne);Te=pe(De,Symbol.toStringTag)}we["$"+Le]=oe(Te.get)}}):z(de,function(Le){var Ce=new ue[Le];we["$"+Le]=oe(Ce.slice)});var be=function(Ce){var Ne=!1;return z(we,function(Te,De){if(!Ne)try{"$"+Te(Ce)===De&&(Ne=he(De,1))}catch(Ee){}}),Ne},Me=function(Ce){var Ne=!1;return z(we,function(Te,De){if(!Ne)try{Te(Ce),Ne=he(De,1)}catch(Ee){}}),Ne};Ae.exports=function(Ce){if(!Ce||typeof Ce!="object")return!1;if(!ae){var Ne=he(ne(Ce),8,-1);return Se(de,Ne)>-1?Ne:Ne!=="Object"?!1:Me(Ce)}return pe?be(Ce):null}}).call(this)}).call(this,typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(x,Ae,me){(function(){"use strict";me.stripBOM=function(re){return re[0]==="\uFEFF"?re.substring(1):re}}).call(this)},{}],422:[function(x,Ae,me){(function(){"use strict";var re,z,ie,oe,se,pe={}.hasOwnProperty;re=x("xmlbuilder"),z=x("./defaults").defaults,oe=function(ne){return typeof ne=="string"&&(ne.indexOf("&")>=0||ne.indexOf(">")>=0||ne.indexOf("<")>=0)},se=function(ne){return"<![CDATA["+ie(ne)+"]]>"},ie=function(ne){return ne.replace("]]>","]]]]><![CDATA[>")},me.Builder=function(){function ne(ae){var ue,de,he;this.options={},de=z["0.2"];for(ue in de)pe.call(de,ue)&&(he=de[ue],this.options[ue]=he);for(ue in ae)pe.call(ae,ue)&&(he=ae[ue],this.options[ue]=he)}return ne.prototype.buildObject=function(ae){var ue,de,he,xe,Se;return ue=this.options.attrkey,de=this.options.charkey,Object.keys(ae).length===1&&this.options.rootName===z["0.2"].rootName?(Se=Object.keys(ae)[0],ae=ae[Se]):Se=this.options.rootName,he=function(we){return function(be,Me){var Le,Ce,Ne,Te,De,Ee;if(typeof Me!="object")we.options.cdata&&oe(Me)?be.raw(se(Me)):be.txt(Me);else if(Array.isArray(Me)){for(Te in Me)if(pe.call(Me,Te)){Ce=Me[Te];for(De in Ce)Ne=Ce[De],be=he(be.ele(De),Ne).up()}}else for(De in Me)if(pe.call(Me,De))if(Ce=Me[De],De===ue){if(typeof Ce=="object")for(Le in Ce)Ee=Ce[Le],be=be.att(Le,Ee)}else if(De===de)we.options.cdata&&oe(Ce)?be=be.raw(se(Ce)):be=be.txt(Ce);else if(Array.isArray(Ce))for(Te in Ce)pe.call(Ce,Te)&&(Ne=Ce[Te],typeof Ne=="string"?we.options.cdata&&oe(Ne)?be=be.ele(De).raw(se(Ne)).up():be=be.ele(De,Ne).up():be=he(be.ele(De),Ne).up());else typeof Ce=="object"?be=he(be.ele(De),Ce).up():typeof Ce=="string"&&we.options.cdata&&oe(Ce)?be=be.ele(De).raw(se(Ce)).up():(Ce==null&&(Ce=""),be=be.ele(De,Ce.toString()).up());return be}}(this),xe=re.create(Se,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),he(xe,ae).end(this.options.renderOpts)},ne}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(x,Ae,me){(function(){me.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(x,Ae,me){(function(){"use strict";var re,z,ie,oe,se,pe,ne,ae,ue,de=function(Se,we){return function(){return Se.apply(we,arguments)}},he=function(Se,we){for(var be in we)xe.call(we,be)&&(Se[be]=we[be]);function Me(){this.constructor=Se}return Me.prototype=we.prototype,Se.prototype=new Me,Se.__super__=we.prototype,Se},xe={}.hasOwnProperty;ae=x("sax"),oe=x("events"),re=x("./bom"),ne=x("./processors"),ue=x("timers").setImmediate,z=x("./defaults").defaults,se=function(Se){return typeof Se=="object"&&Se!=null&&Object.keys(Se).length===0},pe=function(Se,we,be){var Me,Le,Ce;for(Me=0,Le=Se.length;Me<Le;Me++)Ce=Se[Me],we=Ce(we,be);return we},ie=function(Se,we,be){var Me;return Me=Object.create(null),Me.value=be,Me.writable=!0,Me.enumerable=!0,Me.configurable=!0,Object.defineProperty(Se,we,Me)},me.Parser=function(Se){he(we,Se);function we(be){this.parseStringPromise=de(this.parseStringPromise,this),this.parseString=de(this.parseString,this),this.reset=de(this.reset,this),this.assignOrPush=de(this.assignOrPush,this),this.processAsync=de(this.processAsync,this);var Me,Le,Ce;if(!(this instanceof me.Parser))return new me.Parser(be);this.options={},Le=z["0.2"];for(Me in Le)xe.call(Le,Me)&&(Ce=Le[Me],this.options[Me]=Ce);for(Me in be)xe.call(be,Me)&&(Ce=be[Me],this.options[Me]=Ce);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(ne.normalize)),this.reset()}return we.prototype.processAsync=function(){var be,Me;try{return this.remaining.length<=this.options.chunkSize?(be=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(be),this.saxParser.close()):(be=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(be),ue(this.processAsync))}catch(Le){if(Me=Le,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(Me)}},we.prototype.assignOrPush=function(be,Me,Le){return Me in be?(be[Me]instanceof Array||ie(be,Me,[be[Me]]),be[Me].push(Le)):this.options.explicitArray?ie(be,Me,[Le]):ie(be,Me,Le)},we.prototype.reset=function(){var be,Me,Le,Ce;return this.removeAllListeners(),this.saxParser=ae.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Ne){return function(Te){if(Ne.saxParser.resume(),!Ne.saxParser.errThrown)return Ne.saxParser.errThrown=!0,Ne.emit("error",Te)}}(this),this.saxParser.onend=function(Ne){return function(){if(!Ne.saxParser.ended)return Ne.saxParser.ended=!0,Ne.emit("end",Ne.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Ce=[],be=this.options.attrkey,Me=this.options.charkey,this.saxParser.onopentag=function(Ne){return function(Te){var De,Ee,Pe,Be,Ve;if(Pe={},Pe[Me]="",!Ne.options.ignoreAttrs){Ve=Te.attributes;for(De in Ve)xe.call(Ve,De)&&(!(be in Pe)&&!Ne.options.mergeAttrs&&(Pe[be]={}),Ee=Ne.options.attrValueProcessors?pe(Ne.options.attrValueProcessors,Te.attributes[De],De):Te.attributes[De],Be=Ne.options.attrNameProcessors?pe(Ne.options.attrNameProcessors,De):De,Ne.options.mergeAttrs?Ne.assignOrPush(Pe,Be,Ee):ie(Pe[be],Be,Ee))}return Pe["#name"]=Ne.options.tagNameProcessors?pe(Ne.options.tagNameProcessors,Te.name):Te.name,Ne.options.xmlns&&(Pe[Ne.options.xmlnskey]={uri:Te.uri,local:Te.local}),Ce.push(Pe)}}(this),this.saxParser.onclosetag=function(Ne){return function(){var Te,De,Ee,Pe,Be,Ve,Ie,Ze,Qe,tt;if(Ve=Ce.pop(),Be=Ve["#name"],(!Ne.options.explicitChildren||!Ne.options.preserveChildrenOrder)&&delete Ve["#name"],Ve.cdata===!0&&(Te=Ve.cdata,delete Ve.cdata),Qe=Ce[Ce.length-1],Ve[Me].match(/^\s*$/)&&!Te?(De=Ve[Me],delete Ve[Me]):(Ne.options.trim&&(Ve[Me]=Ve[Me].trim()),Ne.options.normalize&&(Ve[Me]=Ve[Me].replace(/\s{2,}/g," ").trim()),Ve[Me]=Ne.options.valueProcessors?pe(Ne.options.valueProcessors,Ve[Me],Be):Ve[Me],Object.keys(Ve).length===1&&Me in Ve&&!Ne.EXPLICIT_CHARKEY&&(Ve=Ve[Me])),se(Ve)&&(typeof Ne.options.emptyTag=="function"?Ve=Ne.options.emptyTag():Ve=Ne.options.emptyTag!==""?Ne.options.emptyTag:De),Ne.options.validator!=null&&(tt="/"+function(){var it,ht,Ge;for(Ge=[],it=0,ht=Ce.length;it<ht;it++)Pe=Ce[it],Ge.push(Pe["#name"]);return Ge}().concat(Be).join("/"),function(){var it;try{return Ve=Ne.options.validator(tt,Qe&&Qe[Be],Ve)}catch(ht){return it=ht,Ne.emit("error",it)}}()),Ne.options.explicitChildren&&!Ne.options.mergeAttrs&&typeof Ve=="object"){if(!Ne.options.preserveChildrenOrder)Pe={},Ne.options.attrkey in Ve&&(Pe[Ne.options.attrkey]=Ve[Ne.options.attrkey],delete Ve[Ne.options.attrkey]),!Ne.options.charsAsChildren&&Ne.options.charkey in Ve&&(Pe[Ne.options.charkey]=Ve[Ne.options.charkey],delete Ve[Ne.options.charkey]),Object.getOwnPropertyNames(Ve).length>0&&(Pe[Ne.options.childkey]=Ve),Ve=Pe;else if(Qe){Qe[Ne.options.childkey]=Qe[Ne.options.childkey]||[],Ie={};for(Ee in Ve)xe.call(Ve,Ee)&&ie(Ie,Ee,Ve[Ee]);Qe[Ne.options.childkey].push(Ie),delete Ve["#name"],Object.keys(Ve).length===1&&Me in Ve&&!Ne.EXPLICIT_CHARKEY&&(Ve=Ve[Me])}}return Ce.length>0?Ne.assignOrPush(Qe,Be,Ve):(Ne.options.explicitRoot&&(Ze=Ve,Ve={},ie(Ve,Be,Ze)),Ne.resultObject=Ve,Ne.saxParser.ended=!0,Ne.emit("end",Ne.resultObject))}}(this),Le=function(Ne){return function(Te){var De,Ee;if(Ee=Ce[Ce.length-1],Ee)return Ee[Me]+=Te,Ne.options.explicitChildren&&Ne.options.preserveChildrenOrder&&Ne.options.charsAsChildren&&(Ne.options.includeWhiteChars||Te.replace(/\\n/g,"").trim()!=="")&&(Ee[Ne.options.childkey]=Ee[Ne.options.childkey]||[],De={"#name":"__text__"},De[Me]=Te,Ne.options.normalize&&(De[Me]=De[Me].replace(/\s{2,}/g," ").trim()),Ee[Ne.options.childkey].push(De)),Ee}}(this),this.saxParser.ontext=Le,this.saxParser.oncdata=function(Ne){return function(Te){var De;if(De=Le(Te),De)return De.cdata=!0}}(this)},we.prototype.parseString=function(be,Me){var Le;Me!=null&&typeof Me=="function"&&(this.on("end",function(Ce){return this.reset(),Me(null,Ce)}),this.on("error",function(Ce){return this.reset(),Me(Ce)}));try{return be=be.toString(),be.trim()===""?(this.emit("end",null),!0):(be=re.stripBOM(be),this.options.async?(this.remaining=be,ue(this.processAsync),this.saxParser):this.saxParser.write(be).close())}catch(Ce){if(Le=Ce,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Le}else return this.emit("error",Le),this.saxParser.errThrown=!0}},we.prototype.parseStringPromise=function(be){return new Promise(function(Me){return function(Le,Ce){return Me.parseString(be,function(Ne,Te){return Ne?Ce(Ne):Le(Te)})}}(this))},we}(oe),me.parseString=function(Se,we,be){var Me,Le,Ce;return be!=null?(typeof be=="function"&&(Me=be),typeof we=="object"&&(Le=we)):(typeof we=="function"&&(Me=we),Le={}),Ce=new me.Parser(Le),Ce.parseString(Se,Me)},me.parseStringPromise=function(Se,we){var be,Me;return typeof we=="object"&&(be=we),Me=new me.Parser(be),Me.parseStringPromise(Se)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(x,Ae,me){(function(){"use strict";var re;re=new RegExp(/(?!xmlns)^.*:/),me.normalize=function(z){return z.toLowerCase()},me.firstCharLowerCase=function(z){return z.charAt(0).toLowerCase()+z.slice(1)},me.stripPrefix=function(z){return z.replace(re,"")},me.parseNumbers=function(z){return isNaN(z)||(z=z%1===0?parseInt(z,10):parseFloat(z)),z},me.parseBooleans=function(z){return/^(?:true|false)$/i.test(z)&&(z=z.toLowerCase()==="true"),z}}).call(this)},{}],426:[function(x,Ae,me){(function(){"use strict";var re,z,ie,oe,se=function(ne,ae){for(var ue in ae)pe.call(ae,ue)&&(ne[ue]=ae[ue]);function de(){this.constructor=ne}return de.prototype=ae.prototype,ne.prototype=new de,ne.__super__=ae.prototype,ne},pe={}.hasOwnProperty;z=x("./defaults"),re=x("./builder"),ie=x("./parser"),oe=x("./processors"),me.defaults=z.defaults,me.processors=oe,me.ValidationError=function(ne){se(ae,ne);function ae(ue){this.message=ue}return ae}(Error),me.Builder=re.Builder,me.Parser=ie.Parser,me.parseString=ie.parseString,me.parseStringPromise=ie.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(x,Ae,me){(function(){Ae.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(x,Ae,me){(function(){Ae.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(x,Ae,me){(function(){var re,z,ie,oe,se,pe,ne,ae=[].slice,ue={}.hasOwnProperty;re=function(){var de,he,xe,Se,we,be;if(be=arguments[0],we=2<=arguments.length?ae.call(arguments,1):[],se(Object.assign))Object.assign.apply(null,arguments);else for(de=0,xe=we.length;de<xe;de++)if(Se=we[de],Se!=null)for(he in Se)ue.call(Se,he)&&(be[he]=Se[he]);return be},se=function(de){return!!de&&Object.prototype.toString.call(de)==="[object Function]"},pe=function(de){var he;return!!de&&((he=typeof de)=="function"||he==="object")},ie=function(de){return se(Array.isArray)?Array.isArray(de):Object.prototype.toString.call(de)==="[object Array]"},oe=function(de){var he;if(ie(de))return!de.length;for(he in de)if(ue.call(de,he))return!1;return!0},ne=function(de){var he,xe;return pe(de)&&(xe=Object.getPrototypeOf(de))&&(he=xe.constructor)&&typeof he=="function"&&he instanceof he&&Function.prototype.toString.call(he)===Function.prototype.toString.call(Object)},z=function(de){return se(de.valueOf)?de.valueOf():de},Ae.exports.assign=re,Ae.exports.isFunction=se,Ae.exports.isObject=pe,Ae.exports.isArray=ie,Ae.exports.isEmpty=oe,Ae.exports.isPlainObject=ne,Ae.exports.getValue=z}).call(this)},{}],430:[function(x,Ae,me){(function(){Ae.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(x,Ae,me){(function(){var re,z,ie;re=x("./NodeType"),ie=x("./XMLNode"),Ae.exports=z=function(){function oe(se,pe,ne){if(this.parent=se,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),pe==null)throw new Error("Missing attribute name. "+this.debugInfo(pe));this.name=this.stringify.name(pe),this.value=this.stringify.attValue(ne),this.type=re.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(oe.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(oe.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(oe.prototype,"textContent",{get:function(){return this.value},set:function(se){return this.value=se||""}}),Object.defineProperty(oe.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(oe.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(oe.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(oe.prototype,"specified",{get:function(){return!0}}),oe.prototype.clone=function(){return Object.create(this)},oe.prototype.toString=function(se){return this.options.writer.attribute(this,this.options.writer.filterOptions(se))},oe.prototype.debugInfo=function(se){return se=se||this.name,se==null?"parent: <"+this.parent.name+">":"attribute: {"+se+"}, parent: <"+this.parent.name+">"},oe.prototype.isEqualNode=function(se){return!(se.namespaceURI!==this.namespaceURI||se.prefix!==this.prefix||se.localName!==this.localName||se.value!==this.value)},oe}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(x,Ae,me){(function(){var re,z,ie,oe=function(pe,ne){for(var ae in ne)se.call(ne,ae)&&(pe[ae]=ne[ae]);function ue(){this.constructor=pe}return ue.prototype=ne.prototype,pe.prototype=new ue,pe.__super__=ne.prototype,pe},se={}.hasOwnProperty;re=x("./NodeType"),ie=x("./XMLCharacterData"),Ae.exports=z=function(pe){oe(ne,pe);function ne(ae,ue){if(ne.__super__.constructor.call(this,ae),ue==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=re.CData,this.value=this.stringify.cdata(ue)}return ne.prototype.clone=function(){return Object.create(this)},ne.prototype.toString=function(ae){return this.options.writer.cdata(this,this.options.writer.filterOptions(ae))},ne}(ie)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(x,Ae,me){(function(){var re,z,ie=function(se,pe){for(var ne in pe)oe.call(pe,ne)&&(se[ne]=pe[ne]);function ae(){this.constructor=se}return ae.prototype=pe.prototype,se.prototype=new ae,se.__super__=pe.prototype,se},oe={}.hasOwnProperty;z=x("./XMLNode"),Ae.exports=re=function(se){ie(pe,se);function pe(ne){pe.__super__.constructor.call(this,ne),this.value=""}return Object.defineProperty(pe.prototype,"data",{get:function(){return this.value},set:function(ne){return this.value=ne||""}}),Object.defineProperty(pe.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(pe.prototype,"textContent",{get:function(){return this.value},set:function(ne){return this.value=ne||""}}),pe.prototype.clone=function(){return Object.create(this)},pe.prototype.substringData=function(ne,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.appendData=function(ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.insertData=function(ne,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.deleteData=function(ne,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.replaceData=function(ne,ae,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.isEqualNode=function(ne){return!(!pe.__super__.isEqualNode.apply(this,arguments).isEqualNode(ne)||ne.data!==this.data)},pe}(z)}).call(this)},{"./XMLNode":450}],434:[function(x,Ae,me){(function(){var re,z,ie,oe=function(pe,ne){for(var ae in ne)se.call(ne,ae)&&(pe[ae]=ne[ae]);function ue(){this.constructor=pe}return ue.prototype=ne.prototype,pe.prototype=new ue,pe.__super__=ne.prototype,pe},se={}.hasOwnProperty;re=x("./NodeType"),z=x("./XMLCharacterData"),Ae.exports=ie=function(pe){oe(ne,pe);function ne(ae,ue){if(ne.__super__.constructor.call(this,ae),ue==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=re.Comment,this.value=this.stringify.comment(ue)}return ne.prototype.clone=function(){return Object.create(this)},ne.prototype.toString=function(ae){return this.options.writer.comment(this,this.options.writer.filterOptions(ae))},ne}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(x,Ae,me){(function(){var re,z,ie;z=x("./XMLDOMErrorHandler"),ie=x("./XMLDOMStringList"),Ae.exports=re=function(){function oe(){var se;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new z,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=se=Object.create(this.defaultParams)}return Object.defineProperty(oe.prototype,"parameterNames",{get:function(){return new ie(Object.keys(this.defaultParams))}}),oe.prototype.getParameter=function(se){return this.params.hasOwnProperty(se)?this.params[se]:null},oe.prototype.canSetParameter=function(se,pe){return!0},oe.prototype.setParameter=function(se,pe){return pe!=null?this.params[se]=pe:delete this.params[se]},oe}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(x,Ae,me){(function(){var re;Ae.exports=re=function(){function z(){}return z.prototype.handleError=function(ie){throw new Error(ie)},z}()}).call(this)},{}],437:[function(x,Ae,me){(function(){var re;Ae.exports=re=function(){function z(){}return z.prototype.hasFeature=function(ie,oe){return!0},z.prototype.createDocumentType=function(ie,oe,se){throw new Error("This DOM method is not implemented.")},z.prototype.createDocument=function(ie,oe,se){throw new Error("This DOM method is not implemented.")},z.prototype.createHTMLDocument=function(ie){throw new Error("This DOM method is not implemented.")},z.prototype.getFeature=function(ie,oe){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],438:[function(x,Ae,me){(function(){var re;Ae.exports=re=function(){function z(ie){this.arr=ie||[]}return Object.defineProperty(z.prototype,"length",{get:function(){return this.arr.length}}),z.prototype.item=function(ie){return this.arr[ie]||null},z.prototype.contains=function(ie){return this.arr.indexOf(ie)!==-1},z}()}).call(this)},{}],439:[function(x,Ae,me){(function(){var re,z,ie,oe=function(pe,ne){for(var ae in ne)se.call(ne,ae)&&(pe[ae]=ne[ae]);function ue(){this.constructor=pe}return ue.prototype=ne.prototype,pe.prototype=new ue,pe.__super__=ne.prototype,pe},se={}.hasOwnProperty;ie=x("./XMLNode"),re=x("./NodeType"),Ae.exports=z=function(pe){oe(ne,pe);function ne(ae,ue,de,he,xe,Se){if(ne.__super__.constructor.call(this,ae),ue==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(de==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(ue));if(!he)throw new Error("Missing DTD attribute type. "+this.debugInfo(ue));if(!xe)throw new Error("Missing DTD attribute default. "+this.debugInfo(ue));if(xe.indexOf("#")!==0&&(xe="#"+xe),!xe.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(ue));if(Se&&!xe.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(ue));this.elementName=this.stringify.name(ue),this.type=re.AttributeDeclaration,this.attributeName=this.stringify.name(de),this.attributeType=this.stringify.dtdAttType(he),Se&&(this.defaultValue=this.stringify.dtdAttDefault(Se)),this.defaultValueType=xe}return ne.prototype.toString=function(ae){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(ae))},ne}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(x,Ae,me){(function(){var re,z,ie,oe=function(pe,ne){for(var ae in ne)se.call(ne,ae)&&(pe[ae]=ne[ae]);function ue(){this.constructor=pe}return ue.prototype=ne.prototype,pe.prototype=new ue,pe.__super__=ne.prototype,pe},se={}.hasOwnProperty;ie=x("./XMLNode"),re=x("./NodeType"),Ae.exports=z=function(pe){oe(ne,pe);function ne(ae,ue,de){if(ne.__super__.constructor.call(this,ae),ue==null)throw new Error("Missing DTD element name. "+this.debugInfo());de||(de="(#PCDATA)"),Array.isArray(de)&&(de="("+de.join(",")+")"),this.name=this.stringify.name(ue),this.type=re.ElementDeclaration,this.value=this.stringify.dtdElementValue(de)}return ne.prototype.toString=function(ae){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(ae))},ne}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(x,Ae,me){(function(){var re,z,ie,oe,se=function(ne,ae){for(var ue in ae)pe.call(ae,ue)&&(ne[ue]=ae[ue]);function de(){this.constructor=ne}return de.prototype=ae.prototype,ne.prototype=new de,ne.__super__=ae.prototype,ne},pe={}.hasOwnProperty;oe=x("./Utility").isObject,ie=x("./XMLNode"),re=x("./NodeType"),Ae.exports=z=function(ne){se(ae,ne);function ae(ue,de,he,xe){if(ae.__super__.constructor.call(this,ue),he==null)throw new Error("Missing DTD entity name. "+this.debugInfo(he));if(xe==null)throw new Error("Missing DTD entity value. "+this.debugInfo(he));if(this.pe=!!de,this.name=this.stringify.name(he),this.type=re.EntityDeclaration,!oe(xe))this.value=this.stringify.dtdEntityValue(xe),this.internal=!0;else{if(!xe.pubID&&!xe.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(he));if(xe.pubID&&!xe.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(he));if(this.internal=!1,xe.pubID!=null&&(this.pubID=this.stringify.dtdPubID(xe.pubID)),xe.sysID!=null&&(this.sysID=this.stringify.dtdSysID(xe.sysID)),xe.nData!=null&&(this.nData=this.stringify.dtdNData(xe.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(he))}}return Object.defineProperty(ae.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ae.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(ae.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(ae.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ae.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(ae.prototype,"xmlVersion",{get:function(){return null}}),ae.prototype.toString=function(ue){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(ue))},ae}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(x,Ae,me){(function(){var re,z,ie,oe=function(pe,ne){for(var ae in ne)se.call(ne,ae)&&(pe[ae]=ne[ae]);function ue(){this.constructor=pe}return ue.prototype=ne.prototype,pe.prototype=new ue,pe.__super__=ne.prototype,pe},se={}.hasOwnProperty;ie=x("./XMLNode"),re=x("./NodeType"),Ae.exports=z=function(pe){oe(ne,pe);function ne(ae,ue,de){if(ne.__super__.constructor.call(this,ae),ue==null)throw new Error("Missing DTD notation name. "+this.debugInfo(ue));if(!de.pubID&&!de.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(ue));this.name=this.stringify.name(ue),this.type=re.NotationDeclaration,de.pubID!=null&&(this.pubID=this.stringify.dtdPubID(de.pubID)),de.sysID!=null&&(this.sysID=this.stringify.dtdSysID(de.sysID))}return Object.defineProperty(ne.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ne.prototype,"systemId",{get:function(){return this.sysID}}),ne.prototype.toString=function(ae){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(ae))},ne}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(x,Ae,me){(function(){var re,z,ie,oe,se=function(ne,ae){for(var ue in ae)pe.call(ae,ue)&&(ne[ue]=ae[ue]);function de(){this.constructor=ne}return de.prototype=ae.prototype,ne.prototype=new de,ne.__super__=ae.prototype,ne},pe={}.hasOwnProperty;oe=x("./Utility").isObject,ie=x("./XMLNode"),re=x("./NodeType"),Ae.exports=z=function(ne){se(ae,ne);function ae(ue,de,he,xe){var Se;ae.__super__.constructor.call(this,ue),oe(de)&&(Se=de,de=Se.version,he=Se.encoding,xe=Se.standalone),de||(de="1.0"),this.type=re.Declaration,this.version=this.stringify.xmlVersion(de),he!=null&&(this.encoding=this.stringify.xmlEncoding(he)),xe!=null&&(this.standalone=this.stringify.xmlStandalone(xe))}return ae.prototype.toString=function(ue){return this.options.writer.declaration(this,this.options.writer.filterOptions(ue))},ae}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(x,Ae,me){(function(){var re,z,ie,oe,se,pe,ne,ae,ue,de=function(xe,Se){for(var we in Se)he.call(Se,we)&&(xe[we]=Se[we]);function be(){this.constructor=xe}return be.prototype=Se.prototype,xe.prototype=new be,xe.__super__=Se.prototype,xe},he={}.hasOwnProperty;ue=x("./Utility").isObject,ae=x("./XMLNode"),re=x("./NodeType"),z=x("./XMLDTDAttList"),oe=x("./XMLDTDEntity"),ie=x("./XMLDTDElement"),se=x("./XMLDTDNotation"),ne=x("./XMLNamedNodeMap"),Ae.exports=pe=function(xe){de(Se,xe);function Se(we,be,Me){var Le,Ce,Ne,Te,De,Ee;if(Se.__super__.constructor.call(this,we),this.type=re.DocType,we.children){for(Te=we.children,Ce=0,Ne=Te.length;Ce<Ne;Ce++)if(Le=Te[Ce],Le.type===re.Element){this.name=Le.name;break}}this.documentObject=we,ue(be)&&(De=be,be=De.pubID,Me=De.sysID),Me==null&&(Ee=[be,Me],Me=Ee[0],be=Ee[1]),be!=null&&(this.pubID=this.stringify.dtdPubID(be)),Me!=null&&(this.sysID=this.stringify.dtdSysID(Me))}return Object.defineProperty(Se.prototype,"entities",{get:function(){var we,be,Me,Le,Ce;for(Le={},Ce=this.children,be=0,Me=Ce.length;be<Me;be++)we=Ce[be],we.type===re.EntityDeclaration&&!we.pe&&(Le[we.name]=we);return new ne(Le)}}),Object.defineProperty(Se.prototype,"notations",{get:function(){var we,be,Me,Le,Ce;for(Le={},Ce=this.children,be=0,Me=Ce.length;be<Me;be++)we=Ce[be],we.type===re.NotationDeclaration&&(Le[we.name]=we);return new ne(Le)}}),Object.defineProperty(Se.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(Se.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(Se.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Se.prototype.element=function(we,be){var Me;return Me=new ie(this,we,be),this.children.push(Me),this},Se.prototype.attList=function(we,be,Me,Le,Ce){var Ne;return Ne=new z(this,we,be,Me,Le,Ce),this.children.push(Ne),this},Se.prototype.entity=function(we,be){var Me;return Me=new oe(this,!1,we,be),this.children.push(Me),this},Se.prototype.pEntity=function(we,be){var Me;return Me=new oe(this,!0,we,be),this.children.push(Me),this},Se.prototype.notation=function(we,be){var Me;return Me=new se(this,we,be),this.children.push(Me),this},Se.prototype.toString=function(we){return this.options.writer.docType(this,this.options.writer.filterOptions(we))},Se.prototype.ele=function(we,be){return this.element(we,be)},Se.prototype.att=function(we,be,Me,Le,Ce){return this.attList(we,be,Me,Le,Ce)},Se.prototype.ent=function(we,be){return this.entity(we,be)},Se.prototype.pent=function(we,be){return this.pEntity(we,be)},Se.prototype.not=function(we,be){return this.notation(we,be)},Se.prototype.up=function(){return this.root()||this.documentObject},Se.prototype.isEqualNode=function(we){return!(!Se.__super__.isEqualNode.apply(this,arguments).isEqualNode(we)||we.name!==this.name||we.publicId!==this.publicId||we.systemId!==this.systemId)},Se}(ae)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(x,Ae,me){(function(){var re,z,ie,oe,se,pe,ne,ae,ue=function(he,xe){for(var Se in xe)de.call(xe,Se)&&(he[Se]=xe[Se]);function we(){this.constructor=he}return we.prototype=xe.prototype,he.prototype=new we,he.__super__=xe.prototype,he},de={}.hasOwnProperty;ae=x("./Utility").isPlainObject,ie=x("./XMLDOMImplementation"),z=x("./XMLDOMConfiguration"),se=x("./XMLNode"),re=x("./NodeType"),ne=x("./XMLStringifier"),pe=x("./XMLStringWriter"),Ae.exports=oe=function(he){ue(xe,he);function xe(Se){xe.__super__.constructor.call(this,null),this.name="#document",this.type=re.Document,this.documentURI=null,this.domConfig=new z,Se||(Se={}),Se.writer||(Se.writer=new pe),this.options=Se,this.stringify=new ne(Se)}return Object.defineProperty(xe.prototype,"implementation",{value:new ie}),Object.defineProperty(xe.prototype,"doctype",{get:function(){var Se,we,be,Me;for(Me=this.children,we=0,be=Me.length;we<be;we++)if(Se=Me[we],Se.type===re.DocType)return Se;return null}}),Object.defineProperty(xe.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(xe.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(xe.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(xe.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===re.Declaration?this.children[0].encoding:null}}),Object.defineProperty(xe.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===re.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(xe.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===re.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(xe.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(xe.prototype,"origin",{get:function(){return null}}),Object.defineProperty(xe.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(xe.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(xe.prototype,"contentType",{get:function(){return null}}),xe.prototype.end=function(Se){var we;return we={},Se?ae(Se)&&(we=Se,Se=this.options.writer):Se=this.options.writer,Se.document(this,Se.filterOptions(we))},xe.prototype.toString=function(Se){return this.options.writer.document(this,this.options.writer.filterOptions(Se))},xe.prototype.createElement=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.createTextNode=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.createComment=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.createCDATASection=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.createProcessingInstruction=function(Se,we){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.createAttribute=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.createEntityReference=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.getElementsByTagName=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.importNode=function(Se,we){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.createElementNS=function(Se,we){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.createAttributeNS=function(Se,we){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.getElementsByTagNameNS=function(Se,we){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.getElementById=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.adoptNode=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.renameNode=function(Se,we,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.getElementsByClassName=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.createEvent=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.createNodeIterator=function(Se,we,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe.prototype.createTreeWalker=function(Se,we,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},xe}(se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(x,Ae,me){(function(){var re,z,ie,oe,se,pe,ne,ae,ue,de,he,xe,Se,we,be,Me,Le,Ce,Ne,Te,De,Ee,Pe,Be,Ve={}.hasOwnProperty;Be=x("./Utility"),Ee=Be.isObject,De=Be.isFunction,Pe=Be.isPlainObject,Te=Be.getValue,re=x("./NodeType"),xe=x("./XMLDocument"),we=x("./XMLElement"),oe=x("./XMLCData"),se=x("./XMLComment"),Me=x("./XMLRaw"),Ne=x("./XMLText"),be=x("./XMLProcessingInstruction"),de=x("./XMLDeclaration"),he=x("./XMLDocType"),pe=x("./XMLDTDAttList"),ae=x("./XMLDTDEntity"),ne=x("./XMLDTDElement"),ue=x("./XMLDTDNotation"),ie=x("./XMLAttribute"),Ce=x("./XMLStringifier"),Le=x("./XMLStringWriter"),z=x("./WriterState"),Ae.exports=Se=function(){function Ie(Ze,Qe,tt){var it;this.name="?xml",this.type=re.Document,Ze||(Ze={}),it={},Ze.writer?Pe(Ze.writer)&&(it=Ze.writer,Ze.writer=new Le):Ze.writer=new Le,this.options=Ze,this.writer=Ze.writer,this.writerOptions=this.writer.filterOptions(it),this.stringify=new Ce(Ze),this.onDataCallback=Qe||function(){},this.onEndCallback=tt||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ie.prototype.createChildNode=function(Ze){var Qe,tt,it,ht,Ge,Xe,ct,pt;switch(Ze.type){case re.CData:this.cdata(Ze.value);break;case re.Comment:this.comment(Ze.value);break;case re.Element:it={},ct=Ze.attribs;for(tt in ct)Ve.call(ct,tt)&&(Qe=ct[tt],it[tt]=Qe.value);this.node(Ze.name,it);break;case re.Dummy:this.dummy();break;case re.Raw:this.raw(Ze.value);break;case re.Text:this.text(Ze.value);break;case re.ProcessingInstruction:this.instruction(Ze.target,Ze.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Ze.constructor.name)}for(pt=Ze.children,Ge=0,Xe=pt.length;Ge<Xe;Ge++)ht=pt[Ge],this.createChildNode(ht),ht.type===re.Element&&this.up();return this},Ie.prototype.dummy=function(){return this},Ie.prototype.node=function(Ze,Qe,tt){var it;if(Ze==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(Ze));return this.openCurrent(),Ze=Te(Ze),Qe==null&&(Qe={}),Qe=Te(Qe),Ee(Qe)||(it=[Qe,tt],tt=it[0],Qe=it[1]),this.currentNode=new we(this,Ze,Qe),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,tt!=null&&this.text(tt),this},Ie.prototype.element=function(Ze,Qe,tt){var it,ht,Ge,Xe,ct,pt;if(this.currentNode&&this.currentNode.type===re.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Ze)||Ee(Ze)||De(Ze))for(Xe=this.options.noValidation,this.options.noValidation=!0,pt=new xe(this.options).element("TEMP_ROOT"),pt.element(Ze),this.options.noValidation=Xe,ct=pt.children,ht=0,Ge=ct.length;ht<Ge;ht++)it=ct[ht],this.createChildNode(it),it.type===re.Element&&this.up();else this.node(Ze,Qe,tt);return this},Ie.prototype.attribute=function(Ze,Qe){var tt,it;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Ze));if(Ze!=null&&(Ze=Te(Ze)),Ee(Ze))for(tt in Ze)Ve.call(Ze,tt)&&(it=Ze[tt],this.attribute(tt,it));else De(Qe)&&(Qe=Qe.apply()),this.options.keepNullAttributes&&Qe==null?this.currentNode.attribs[Ze]=new ie(this,Ze,""):Qe!=null&&(this.currentNode.attribs[Ze]=new ie(this,Ze,Qe));return this},Ie.prototype.text=function(Ze){var Qe;return this.openCurrent(),Qe=new Ne(this,Ze),this.onData(this.writer.text(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ie.prototype.cdata=function(Ze){var Qe;return this.openCurrent(),Qe=new oe(this,Ze),this.onData(this.writer.cdata(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ie.prototype.comment=function(Ze){var Qe;return this.openCurrent(),Qe=new se(this,Ze),this.onData(this.writer.comment(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ie.prototype.raw=function(Ze){var Qe;return this.openCurrent(),Qe=new Me(this,Ze),this.onData(this.writer.raw(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ie.prototype.instruction=function(Ze,Qe){var tt,it,ht,Ge,Xe;if(this.openCurrent(),Ze!=null&&(Ze=Te(Ze)),Qe!=null&&(Qe=Te(Qe)),Array.isArray(Ze))for(tt=0,Ge=Ze.length;tt<Ge;tt++)it=Ze[tt],this.instruction(it);else if(Ee(Ze))for(it in Ze)Ve.call(Ze,it)&&(ht=Ze[it],this.instruction(it,ht));else De(Qe)&&(Qe=Qe.apply()),Xe=new be(this,Ze,Qe),this.onData(this.writer.processingInstruction(Xe,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Ie.prototype.declaration=function(Ze,Qe,tt){var it;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return it=new de(this,Ze,Qe,tt),this.onData(this.writer.declaration(it,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ie.prototype.doctype=function(Ze,Qe,tt){if(this.openCurrent(),Ze==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new he(this,Qe,tt),this.currentNode.rootNodeName=Ze,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ie.prototype.dtdElement=function(Ze,Qe){var tt;return this.openCurrent(),tt=new ne(this,Ze,Qe),this.onData(this.writer.dtdElement(tt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ie.prototype.attList=function(Ze,Qe,tt,it,ht){var Ge;return this.openCurrent(),Ge=new pe(this,Ze,Qe,tt,it,ht),this.onData(this.writer.dtdAttList(Ge,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ie.prototype.entity=function(Ze,Qe){var tt;return this.openCurrent(),tt=new ae(this,!1,Ze,Qe),this.onData(this.writer.dtdEntity(tt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ie.prototype.pEntity=function(Ze,Qe){var tt;return this.openCurrent(),tt=new ae(this,!0,Ze,Qe),this.onData(this.writer.dtdEntity(tt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ie.prototype.notation=function(Ze,Qe){var tt;return this.openCurrent(),tt=new ue(this,Ze,Qe),this.onData(this.writer.dtdNotation(tt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ie.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},Ie.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Ie.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ie.prototype.openNode=function(Ze){var Qe,tt,it,ht;if(!Ze.isOpen){if(!this.root&&this.currentLevel===0&&Ze.type===re.Element&&(this.root=Ze),tt="",Ze.type===re.Element){this.writerOptions.state=z.OpenTag,tt=this.writer.indent(Ze,this.writerOptions,this.currentLevel)+"<"+Ze.name,ht=Ze.attribs;for(it in ht)Ve.call(ht,it)&&(Qe=ht[it],tt+=this.writer.attribute(Qe,this.writerOptions,this.currentLevel));tt+=(Ze.children?">":"/>")+this.writer.endline(Ze,this.writerOptions,this.currentLevel),this.writerOptions.state=z.InsideTag}else this.writerOptions.state=z.OpenTag,tt=this.writer.indent(Ze,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Ze.rootNodeName,Ze.pubID&&Ze.sysID?tt+=' PUBLIC "'+Ze.pubID+'" "'+Ze.sysID+'"':Ze.sysID&&(tt+=' SYSTEM "'+Ze.sysID+'"'),Ze.children?(tt+=" [",this.writerOptions.state=z.InsideTag):(this.writerOptions.state=z.CloseTag,tt+=">"),tt+=this.writer.endline(Ze,this.writerOptions,this.currentLevel);return this.onData(tt,this.currentLevel),Ze.isOpen=!0}},Ie.prototype.closeNode=function(Ze){var Qe;if(!Ze.isClosed)return Qe="",this.writerOptions.state=z.CloseTag,Ze.type===re.Element?Qe=this.writer.indent(Ze,this.writerOptions,this.currentLevel)+"</"+Ze.name+">"+this.writer.endline(Ze,this.writerOptions,this.currentLevel):Qe=this.writer.indent(Ze,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Ze,this.writerOptions,this.currentLevel),this.writerOptions.state=z.None,this.onData(Qe,this.currentLevel),Ze.isClosed=!0},Ie.prototype.onData=function(Ze,Qe){return this.documentStarted=!0,this.onDataCallback(Ze,Qe+1)},Ie.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ie.prototype.debugInfo=function(Ze){return Ze==null?"":"node: <"+Ze+">"},Ie.prototype.ele=function(){return this.element.apply(this,arguments)},Ie.prototype.nod=function(Ze,Qe,tt){return this.node(Ze,Qe,tt)},Ie.prototype.txt=function(Ze){return this.text(Ze)},Ie.prototype.dat=function(Ze){return this.cdata(Ze)},Ie.prototype.com=function(Ze){return this.comment(Ze)},Ie.prototype.ins=function(Ze,Qe){return this.instruction(Ze,Qe)},Ie.prototype.dec=function(Ze,Qe,tt){return this.declaration(Ze,Qe,tt)},Ie.prototype.dtd=function(Ze,Qe,tt){return this.doctype(Ze,Qe,tt)},Ie.prototype.e=function(Ze,Qe,tt){return this.element(Ze,Qe,tt)},Ie.prototype.n=function(Ze,Qe,tt){return this.node(Ze,Qe,tt)},Ie.prototype.t=function(Ze){return this.text(Ze)},Ie.prototype.d=function(Ze){return this.cdata(Ze)},Ie.prototype.c=function(Ze){return this.comment(Ze)},Ie.prototype.r=function(Ze){return this.raw(Ze)},Ie.prototype.i=function(Ze,Qe){return this.instruction(Ze,Qe)},Ie.prototype.att=function(){return this.currentNode&&this.currentNode.type===re.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ie.prototype.a=function(){return this.currentNode&&this.currentNode.type===re.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ie.prototype.ent=function(Ze,Qe){return this.entity(Ze,Qe)},Ie.prototype.pent=function(Ze,Qe){return this.pEntity(Ze,Qe)},Ie.prototype.not=function(Ze,Qe){return this.notation(Ze,Qe)},Ie}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(x,Ae,me){(function(){var re,z,ie,oe=function(pe,ne){for(var ae in ne)se.call(ne,ae)&&(pe[ae]=ne[ae]);function ue(){this.constructor=pe}return ue.prototype=ne.prototype,pe.prototype=new ue,pe.__super__=ne.prototype,pe},se={}.hasOwnProperty;ie=x("./XMLNode"),re=x("./NodeType"),Ae.exports=z=function(pe){oe(ne,pe);function ne(ae){ne.__super__.constructor.call(this,ae),this.type=re.Dummy}return ne.prototype.clone=function(){return Object.create(this)},ne.prototype.toString=function(ae){return""},ne}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(x,Ae,me){(function(){var re,z,ie,oe,se,pe,ne,ae,ue,de=function(xe,Se){for(var we in Se)he.call(Se,we)&&(xe[we]=Se[we]);function be(){this.constructor=xe}return be.prototype=Se.prototype,xe.prototype=new be,xe.__super__=Se.prototype,xe},he={}.hasOwnProperty;ue=x("./Utility"),ae=ue.isObject,ne=ue.isFunction,pe=ue.getValue,se=x("./XMLNode"),re=x("./NodeType"),z=x("./XMLAttribute"),oe=x("./XMLNamedNodeMap"),Ae.exports=ie=function(xe){de(Se,xe);function Se(we,be,Me){var Le,Ce,Ne,Te;if(Se.__super__.constructor.call(this,we),be==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(be),this.type=re.Element,this.attribs={},this.schemaTypeInfo=null,Me!=null&&this.attribute(Me),we.type===re.Document&&(this.isRoot=!0,this.documentObject=we,we.rootObject=this,we.children)){for(Te=we.children,Ce=0,Ne=Te.length;Ce<Ne;Ce++)if(Le=Te[Ce],Le.type===re.DocType){Le.name=this.name;break}}}return Object.defineProperty(Se.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(Se.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(Se.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(Se.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(Se.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(Se.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(Se.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(Se.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new oe(this.attribs)),this.attributeMap}}),Se.prototype.clone=function(){var we,be,Me,Le;Me=Object.create(this),Me.isRoot&&(Me.documentObject=null),Me.attribs={},Le=this.attribs;for(be in Le)he.call(Le,be)&&(we=Le[be],Me.attribs[be]=we.clone());return Me.children=[],this.children.forEach(function(Ce){var Ne;return Ne=Ce.clone(),Ne.parent=Me,Me.children.push(Ne)}),Me},Se.prototype.attribute=function(we,be){var Me,Le;if(we!=null&&(we=pe(we)),ae(we))for(Me in we)he.call(we,Me)&&(Le=we[Me],this.attribute(Me,Le));else ne(be)&&(be=be.apply()),this.options.keepNullAttributes&&be==null?this.attribs[we]=new z(this,we,""):be!=null&&(this.attribs[we]=new z(this,we,be));return this},Se.prototype.removeAttribute=function(we){var be,Me,Le;if(we==null)throw new Error("Missing attribute name. "+this.debugInfo());if(we=pe(we),Array.isArray(we))for(Me=0,Le=we.length;Me<Le;Me++)be=we[Me],delete this.attribs[be];else delete this.attribs[we];return this},Se.prototype.toString=function(we){return this.options.writer.element(this,this.options.writer.filterOptions(we))},Se.prototype.att=function(we,be){return this.attribute(we,be)},Se.prototype.a=function(we,be){return this.attribute(we,be)},Se.prototype.getAttribute=function(we){return this.attribs.hasOwnProperty(we)?this.attribs[we].value:null},Se.prototype.setAttribute=function(we,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getAttributeNode=function(we){return this.attribs.hasOwnProperty(we)?this.attribs[we]:null},Se.prototype.setAttributeNode=function(we){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.removeAttributeNode=function(we){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagName=function(we){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getAttributeNS=function(we,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setAttributeNS=function(we,be,Me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.removeAttributeNS=function(we,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getAttributeNodeNS=function(we,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setAttributeNodeNS=function(we){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagNameNS=function(we,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.hasAttribute=function(we){return this.attribs.hasOwnProperty(we)},Se.prototype.hasAttributeNS=function(we,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setIdAttribute=function(we,be){return this.attribs.hasOwnProperty(we)?this.attribs[we].isId:be},Se.prototype.setIdAttributeNS=function(we,be,Me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setIdAttributeNode=function(we,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagName=function(we){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagNameNS=function(we,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByClassName=function(we){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isEqualNode=function(we){var be,Me,Le;if(!Se.__super__.isEqualNode.apply(this,arguments).isEqualNode(we)||we.namespaceURI!==this.namespaceURI||we.prefix!==this.prefix||we.localName!==this.localName||we.attribs.length!==this.attribs.length)return!1;for(be=Me=0,Le=this.attribs.length-1;0<=Le?Me<=Le:Me>=Le;be=0<=Le?++Me:--Me)if(!this.attribs[be].isEqualNode(we.attribs[be]))return!1;return!0},Se}(se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(x,Ae,me){(function(){var re;Ae.exports=re=function(){function z(ie){this.nodes=ie}return Object.defineProperty(z.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),z.prototype.clone=function(){return this.nodes=null},z.prototype.getNamedItem=function(ie){return this.nodes[ie]},z.prototype.setNamedItem=function(ie){var oe;return oe=this.nodes[ie.nodeName],this.nodes[ie.nodeName]=ie,oe||null},z.prototype.removeNamedItem=function(ie){var oe;return oe=this.nodes[ie],delete this.nodes[ie],oe||null},z.prototype.item=function(ie){return this.nodes[Object.keys(this.nodes)[ie]]||null},z.prototype.getNamedItemNS=function(ie,oe){throw new Error("This DOM method is not implemented.")},z.prototype.setNamedItemNS=function(ie){throw new Error("This DOM method is not implemented.")},z.prototype.removeNamedItemNS=function(ie,oe){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],450:[function(x,Ae,me){(function(){var re,z,ie,oe,se,pe,ne,ae,ue,de,he,xe,Se,we,be,Me,Le,Ce,Ne,Te={}.hasOwnProperty;Ne=x("./Utility"),Ce=Ne.isObject,Le=Ne.isFunction,Me=Ne.isEmpty,be=Ne.getValue,ae=null,ie=null,oe=null,se=null,pe=null,Se=null,we=null,xe=null,ne=null,z=null,he=null,ue=null,re=null,Ae.exports=de=function(){function De(Ee){this.parent=Ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,ae||(ae=x("./XMLElement"),ie=x("./XMLCData"),oe=x("./XMLComment"),se=x("./XMLDeclaration"),pe=x("./XMLDocType"),Se=x("./XMLRaw"),we=x("./XMLText"),xe=x("./XMLProcessingInstruction"),ne=x("./XMLDummy"),z=x("./NodeType"),he=x("./XMLNodeList"),ue=x("./XMLNamedNodeMap"),re=x("./DocumentPosition"))}return Object.defineProperty(De.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(De.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(De.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(De.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(De.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new he(this.children)),this.childNodeList}}),Object.defineProperty(De.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(De.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(De.prototype,"previousSibling",{get:function(){var Ee;return Ee=this.parent.children.indexOf(this),this.parent.children[Ee-1]||null}}),Object.defineProperty(De.prototype,"nextSibling",{get:function(){var Ee;return Ee=this.parent.children.indexOf(this),this.parent.children[Ee+1]||null}}),Object.defineProperty(De.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(De.prototype,"textContent",{get:function(){var Ee,Pe,Be,Ve,Ie;if(this.nodeType===z.Element||this.nodeType===z.DocumentFragment){for(Ie="",Ve=this.children,Pe=0,Be=Ve.length;Pe<Be;Pe++)Ee=Ve[Pe],Ee.textContent&&(Ie+=Ee.textContent);return Ie}else return null},set:function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),De.prototype.setParent=function(Ee){var Pe,Be,Ve,Ie,Ze;for(this.parent=Ee,Ee&&(this.options=Ee.options,this.stringify=Ee.stringify),Ie=this.children,Ze=[],Be=0,Ve=Ie.length;Be<Ve;Be++)Pe=Ie[Be],Ze.push(Pe.setParent(this));return Ze},De.prototype.element=function(Ee,Pe,Be){var Ve,Ie,Ze,Qe,tt,it,ht,Ge,Xe,ct,pt;if(it=null,Pe===null&&Be==null&&(Xe=[{},null],Pe=Xe[0],Be=Xe[1]),Pe==null&&(Pe={}),Pe=be(Pe),Ce(Pe)||(ct=[Pe,Be],Be=ct[0],Pe=ct[1]),Ee!=null&&(Ee=be(Ee)),Array.isArray(Ee))for(Ze=0,ht=Ee.length;Ze<ht;Ze++)Ie=Ee[Ze],it=this.element(Ie);else if(Le(Ee))it=this.element(Ee.apply());else if(Ce(Ee)){for(tt in Ee)if(Te.call(Ee,tt))if(pt=Ee[tt],Le(pt)&&(pt=pt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&tt.indexOf(this.stringify.convertAttKey)===0)it=this.attribute(tt.substr(this.stringify.convertAttKey.length),pt);else if(!this.options.separateArrayItems&&Array.isArray(pt)&&Me(pt))it=this.dummy();else if(Ce(pt)&&Me(pt))it=this.element(tt);else if(!this.options.keepNullNodes&&pt==null)it=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(pt))for(Qe=0,Ge=pt.length;Qe<Ge;Qe++)Ie=pt[Qe],Ve={},Ve[tt]=Ie,it=this.element(Ve);else Ce(pt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&tt.indexOf(this.stringify.convertTextKey)===0?it=this.element(pt):(it=this.element(tt),it.element(pt)):it=this.element(tt,pt)}else!this.options.keepNullNodes&&Be===null?it=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ee.indexOf(this.stringify.convertTextKey)===0?it=this.text(Be):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Ee.indexOf(this.stringify.convertCDataKey)===0?it=this.cdata(Be):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Ee.indexOf(this.stringify.convertCommentKey)===0?it=this.comment(Be):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Ee.indexOf(this.stringify.convertRawKey)===0?it=this.raw(Be):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Ee.indexOf(this.stringify.convertPIKey)===0?it=this.instruction(Ee.substr(this.stringify.convertPIKey.length),Be):it=this.node(Ee,Pe,Be);if(it==null)throw new Error("Could not create any elements with: "+Ee+". "+this.debugInfo());return it},De.prototype.insertBefore=function(Ee,Pe,Be){var Ve,Ie,Ze,Qe,tt;if(Ee!=null&&Ee.type)return Ze=Ee,Qe=Pe,Ze.setParent(this),Qe?(Ie=children.indexOf(Qe),tt=children.splice(Ie),children.push(Ze),Array.prototype.push.apply(children,tt)):children.push(Ze),Ze;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ee));return Ie=this.parent.children.indexOf(this),tt=this.parent.children.splice(Ie),Ve=this.parent.element(Ee,Pe,Be),Array.prototype.push.apply(this.parent.children,tt),Ve},De.prototype.insertAfter=function(Ee,Pe,Be){var Ve,Ie,Ze;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ee));return Ie=this.parent.children.indexOf(this),Ze=this.parent.children.splice(Ie+1),Ve=this.parent.element(Ee,Pe,Be),Array.prototype.push.apply(this.parent.children,Ze),Ve},De.prototype.remove=function(){var Ee,Pe;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Ee=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Ee,Ee-Ee+1].concat(Pe=[])),this.parent},De.prototype.node=function(Ee,Pe,Be){var Ve,Ie;return Ee!=null&&(Ee=be(Ee)),Pe||(Pe={}),Pe=be(Pe),Ce(Pe)||(Ie=[Pe,Be],Be=Ie[0],Pe=Ie[1]),Ve=new ae(this,Ee,Pe),Be!=null&&Ve.text(Be),this.children.push(Ve),Ve},De.prototype.text=function(Ee){var Pe;return Ce(Ee)&&this.element(Ee),Pe=new we(this,Ee),this.children.push(Pe),this},De.prototype.cdata=function(Ee){var Pe;return Pe=new ie(this,Ee),this.children.push(Pe),this},De.prototype.comment=function(Ee){var Pe;return Pe=new oe(this,Ee),this.children.push(Pe),this},De.prototype.commentBefore=function(Ee){var Pe,Be,Ve;return Be=this.parent.children.indexOf(this),Ve=this.parent.children.splice(Be),Pe=this.parent.comment(Ee),Array.prototype.push.apply(this.parent.children,Ve),this},De.prototype.commentAfter=function(Ee){var Pe,Be,Ve;return Be=this.parent.children.indexOf(this),Ve=this.parent.children.splice(Be+1),Pe=this.parent.comment(Ee),Array.prototype.push.apply(this.parent.children,Ve),this},De.prototype.raw=function(Ee){var Pe;return Pe=new Se(this,Ee),this.children.push(Pe),this},De.prototype.dummy=function(){var Ee;return Ee=new ne(this),Ee},De.prototype.instruction=function(Ee,Pe){var Be,Ve,Ie,Ze,Qe;if(Ee!=null&&(Ee=be(Ee)),Pe!=null&&(Pe=be(Pe)),Array.isArray(Ee))for(Ze=0,Qe=Ee.length;Ze<Qe;Ze++)Be=Ee[Ze],this.instruction(Be);else if(Ce(Ee))for(Be in Ee)Te.call(Ee,Be)&&(Ve=Ee[Be],this.instruction(Be,Ve));else Le(Pe)&&(Pe=Pe.apply()),Ie=new xe(this,Ee,Pe),this.children.push(Ie);return this},De.prototype.instructionBefore=function(Ee,Pe){var Be,Ve,Ie;return Ve=this.parent.children.indexOf(this),Ie=this.parent.children.splice(Ve),Be=this.parent.instruction(Ee,Pe),Array.prototype.push.apply(this.parent.children,Ie),this},De.prototype.instructionAfter=function(Ee,Pe){var Be,Ve,Ie;return Ve=this.parent.children.indexOf(this),Ie=this.parent.children.splice(Ve+1),Be=this.parent.instruction(Ee,Pe),Array.prototype.push.apply(this.parent.children,Ie),this},De.prototype.declaration=function(Ee,Pe,Be){var Ve,Ie;return Ve=this.document(),Ie=new se(Ve,Ee,Pe,Be),Ve.children.length===0?Ve.children.unshift(Ie):Ve.children[0].type===z.Declaration?Ve.children[0]=Ie:Ve.children.unshift(Ie),Ve.root()||Ve},De.prototype.dtd=function(Ee,Pe){var Be,Ve,Ie,Ze,Qe,tt,it,ht,Ge,Xe;for(Ve=this.document(),Ie=new pe(Ve,Ee,Pe),Ge=Ve.children,Ze=Qe=0,it=Ge.length;Qe<it;Ze=++Qe)if(Be=Ge[Ze],Be.type===z.DocType)return Ve.children[Ze]=Ie,Ie;for(Xe=Ve.children,Ze=tt=0,ht=Xe.length;tt<ht;Ze=++tt)if(Be=Xe[Ze],Be.isRoot)return Ve.children.splice(Ze,0,Ie),Ie;return Ve.children.push(Ie),Ie},De.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},De.prototype.root=function(){var Ee;for(Ee=this;Ee;){if(Ee.type===z.Document)return Ee.rootObject;if(Ee.isRoot)return Ee;Ee=Ee.parent}},De.prototype.document=function(){var Ee;for(Ee=this;Ee;){if(Ee.type===z.Document)return Ee;Ee=Ee.parent}},De.prototype.end=function(Ee){return this.document().end(Ee)},De.prototype.prev=function(){var Ee;if(Ee=this.parent.children.indexOf(this),Ee<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Ee-1]},De.prototype.next=function(){var Ee;if(Ee=this.parent.children.indexOf(this),Ee===-1||Ee===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Ee+1]},De.prototype.importDocument=function(Ee){var Pe;return Pe=Ee.root().clone(),Pe.parent=this,Pe.isRoot=!1,this.children.push(Pe),this},De.prototype.debugInfo=function(Ee){var Pe,Be;return Ee=Ee||this.name,Ee==null&&!((Pe=this.parent)!=null&&Pe.name)?"":Ee==null?"parent: <"+this.parent.name+">":(Be=this.parent)!=null&&Be.name?"node: <"+Ee+">, parent: <"+this.parent.name+">":"node: <"+Ee+">"},De.prototype.ele=function(Ee,Pe,Be){return this.element(Ee,Pe,Be)},De.prototype.nod=function(Ee,Pe,Be){return this.node(Ee,Pe,Be)},De.prototype.txt=function(Ee){return this.text(Ee)},De.prototype.dat=function(Ee){return this.cdata(Ee)},De.prototype.com=function(Ee){return this.comment(Ee)},De.prototype.ins=function(Ee,Pe){return this.instruction(Ee,Pe)},De.prototype.doc=function(){return this.document()},De.prototype.dec=function(Ee,Pe,Be){return this.declaration(Ee,Pe,Be)},De.prototype.e=function(Ee,Pe,Be){return this.element(Ee,Pe,Be)},De.prototype.n=function(Ee,Pe,Be){return this.node(Ee,Pe,Be)},De.prototype.t=function(Ee){return this.text(Ee)},De.prototype.d=function(Ee){return this.cdata(Ee)},De.prototype.c=function(Ee){return this.comment(Ee)},De.prototype.r=function(Ee){return this.raw(Ee)},De.prototype.i=function(Ee,Pe){return this.instruction(Ee,Pe)},De.prototype.u=function(){return this.up()},De.prototype.importXMLBuilder=function(Ee){return this.importDocument(Ee)},De.prototype.replaceChild=function(Ee,Pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.removeChild=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.appendChild=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.hasChildNodes=function(){return this.children.length!==0},De.prototype.cloneNode=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.isSupported=function(Ee,Pe){return!0},De.prototype.hasAttributes=function(){return this.attribs.length!==0},De.prototype.compareDocumentPosition=function(Ee){var Pe,Be;return Pe=this,Pe===Ee?0:this.document()!==Ee.document()?(Be=re.Disconnected|re.ImplementationSpecific,Math.random()<.5?Be|=re.Preceding:Be|=re.Following,Be):Pe.isAncestor(Ee)?re.Contains|re.Preceding:Pe.isDescendant(Ee)?re.Contains|re.Following:Pe.isPreceding(Ee)?re.Preceding:re.Following},De.prototype.isSameNode=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.lookupPrefix=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.isDefaultNamespace=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.lookupNamespaceURI=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.isEqualNode=function(Ee){var Pe,Be,Ve;if(Ee.nodeType!==this.nodeType||Ee.children.length!==this.children.length)return!1;for(Pe=Be=0,Ve=this.children.length-1;0<=Ve?Be<=Ve:Be>=Ve;Pe=0<=Ve?++Be:--Be)if(!this.children[Pe].isEqualNode(Ee.children[Pe]))return!1;return!0},De.prototype.getFeature=function(Ee,Pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.setUserData=function(Ee,Pe,Be){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.getUserData=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.contains=function(Ee){return Ee?Ee===this||this.isDescendant(Ee):!1},De.prototype.isDescendant=function(Ee){var Pe,Be,Ve,Ie,Ze;for(Ze=this.children,Ve=0,Ie=Ze.length;Ve<Ie;Ve++)if(Pe=Ze[Ve],Ee===Pe||(Be=Pe.isDescendant(Ee),Be))return!0;return!1},De.prototype.isAncestor=function(Ee){return Ee.isDescendant(this)},De.prototype.isPreceding=function(Ee){var Pe,Be;return Pe=this.treePosition(Ee),Be=this.treePosition(this),Pe===-1||Be===-1?!1:Pe<Be},De.prototype.isFollowing=function(Ee){var Pe,Be;return Pe=this.treePosition(Ee),Be=this.treePosition(this),Pe===-1||Be===-1?!1:Pe>Be},De.prototype.treePosition=function(Ee){var Pe,Be;return Be=0,Pe=!1,this.foreachTreeNode(this.document(),function(Ve){if(Be++,!Pe&&Ve===Ee)return Pe=!0}),Pe?Be:-1},De.prototype.foreachTreeNode=function(Ee,Pe){var Be,Ve,Ie,Ze,Qe;for(Ee||(Ee=this.document()),Ze=Ee.children,Ve=0,Ie=Ze.length;Ve<Ie;Ve++){if(Be=Ze[Ve],Qe=Pe(Be))return Qe;if(Qe=this.foreachTreeNode(Be,Pe),Qe)return Qe}},De}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(x,Ae,me){(function(){var re;Ae.exports=re=function(){function z(ie){this.nodes=ie}return Object.defineProperty(z.prototype,"length",{get:function(){return this.nodes.length||0}}),z.prototype.clone=function(){return this.nodes=null},z.prototype.item=function(ie){return this.nodes[ie]||null},z}()}).call(this)},{}],452:[function(x,Ae,me){(function(){var re,z,ie,oe=function(pe,ne){for(var ae in ne)se.call(ne,ae)&&(pe[ae]=ne[ae]);function ue(){this.constructor=pe}return ue.prototype=ne.prototype,pe.prototype=new ue,pe.__super__=ne.prototype,pe},se={}.hasOwnProperty;re=x("./NodeType"),z=x("./XMLCharacterData"),Ae.exports=ie=function(pe){oe(ne,pe);function ne(ae,ue,de){if(ne.__super__.constructor.call(this,ae),ue==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=re.ProcessingInstruction,this.target=this.stringify.insTarget(ue),this.name=this.target,de&&(this.value=this.stringify.insValue(de))}return ne.prototype.clone=function(){return Object.create(this)},ne.prototype.toString=function(ae){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(ae))},ne.prototype.isEqualNode=function(ae){return!(!ne.__super__.isEqualNode.apply(this,arguments).isEqualNode(ae)||ae.target!==this.target)},ne}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(x,Ae,me){(function(){var re,z,ie,oe=function(pe,ne){for(var ae in ne)se.call(ne,ae)&&(pe[ae]=ne[ae]);function ue(){this.constructor=pe}return ue.prototype=ne.prototype,pe.prototype=new ue,pe.__super__=ne.prototype,pe},se={}.hasOwnProperty;re=x("./NodeType"),z=x("./XMLNode"),Ae.exports=ie=function(pe){oe(ne,pe);function ne(ae,ue){if(ne.__super__.constructor.call(this,ae),ue==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=re.Raw,this.value=this.stringify.raw(ue)}return ne.prototype.clone=function(){return Object.create(this)},ne.prototype.toString=function(ae){return this.options.writer.raw(this,this.options.writer.filterOptions(ae))},ne}(z)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(x,Ae,me){(function(){var re,z,ie,oe,se=function(ne,ae){for(var ue in ae)pe.call(ae,ue)&&(ne[ue]=ae[ue]);function de(){this.constructor=ne}return de.prototype=ae.prototype,ne.prototype=new de,ne.__super__=ae.prototype,ne},pe={}.hasOwnProperty;re=x("./NodeType"),oe=x("./XMLWriterBase"),z=x("./WriterState"),Ae.exports=ie=function(ne){se(ae,ne);function ae(ue,de){this.stream=ue,ae.__super__.constructor.call(this,de)}return ae.prototype.endline=function(ue,de,he){return ue.isLastRootNode&&de.state===z.CloseTag?"":ae.__super__.endline.call(this,ue,de,he)},ae.prototype.document=function(ue,de){var he,xe,Se,we,be,Me,Le,Ce,Ne;for(Le=ue.children,xe=Se=0,be=Le.length;Se<be;xe=++Se)he=Le[xe],he.isLastRootNode=xe===ue.children.length-1;for(de=this.filterOptions(de),Ce=ue.children,Ne=[],we=0,Me=Ce.length;we<Me;we++)he=Ce[we],Ne.push(this.writeChildNode(he,de,0));return Ne},ae.prototype.attribute=function(ue,de,he){return this.stream.write(ae.__super__.attribute.call(this,ue,de,he))},ae.prototype.cdata=function(ue,de,he){return this.stream.write(ae.__super__.cdata.call(this,ue,de,he))},ae.prototype.comment=function(ue,de,he){return this.stream.write(ae.__super__.comment.call(this,ue,de,he))},ae.prototype.declaration=function(ue,de,he){return this.stream.write(ae.__super__.declaration.call(this,ue,de,he))},ae.prototype.docType=function(ue,de,he){var xe,Se,we,be;if(he||(he=0),this.openNode(ue,de,he),de.state=z.OpenTag,this.stream.write(this.indent(ue,de,he)),this.stream.write("<!DOCTYPE "+ue.root().name),ue.pubID&&ue.sysID?this.stream.write(' PUBLIC "'+ue.pubID+'" "'+ue.sysID+'"'):ue.sysID&&this.stream.write(' SYSTEM "'+ue.sysID+'"'),ue.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(ue,de,he)),de.state=z.InsideTag,be=ue.children,Se=0,we=be.length;Se<we;Se++)xe=be[Se],this.writeChildNode(xe,de,he+1);de.state=z.CloseTag,this.stream.write("]")}return de.state=z.CloseTag,this.stream.write(de.spaceBeforeSlash+">"),this.stream.write(this.endline(ue,de,he)),de.state=z.None,this.closeNode(ue,de,he)},ae.prototype.element=function(ue,de,he){var xe,Se,we,be,Me,Le,Ce,Ne,Te,De;he||(he=0),this.openNode(ue,de,he),de.state=z.OpenTag,this.stream.write(this.indent(ue,de,he)+"<"+ue.name),Te=ue.attribs;for(Ce in Te)pe.call(Te,Ce)&&(xe=Te[Ce],this.attribute(xe,de,he));if(we=ue.children.length,be=we===0?null:ue.children[0],we===0||ue.children.every(function(Ee){return(Ee.type===re.Text||Ee.type===re.Raw)&&Ee.value===""}))de.allowEmpty?(this.stream.write(">"),de.state=z.CloseTag,this.stream.write("</"+ue.name+">")):(de.state=z.CloseTag,this.stream.write(de.spaceBeforeSlash+"/>"));else if(de.pretty&&we===1&&(be.type===re.Text||be.type===re.Raw)&&be.value!=null)this.stream.write(">"),de.state=z.InsideTag,de.suppressPrettyCount++,Ne=!0,this.writeChildNode(be,de,he+1),de.suppressPrettyCount--,Ne=!1,de.state=z.CloseTag,this.stream.write("</"+ue.name+">");else{for(this.stream.write(">"+this.endline(ue,de,he)),de.state=z.InsideTag,De=ue.children,Me=0,Le=De.length;Me<Le;Me++)Se=De[Me],this.writeChildNode(Se,de,he+1);de.state=z.CloseTag,this.stream.write(this.indent(ue,de,he)+"</"+ue.name+">")}return this.stream.write(this.endline(ue,de,he)),de.state=z.None,this.closeNode(ue,de,he)},ae.prototype.processingInstruction=function(ue,de,he){return this.stream.write(ae.__super__.processingInstruction.call(this,ue,de,he))},ae.prototype.raw=function(ue,de,he){return this.stream.write(ae.__super__.raw.call(this,ue,de,he))},ae.prototype.text=function(ue,de,he){return this.stream.write(ae.__super__.text.call(this,ue,de,he))},ae.prototype.dtdAttList=function(ue,de,he){return this.stream.write(ae.__super__.dtdAttList.call(this,ue,de,he))},ae.prototype.dtdElement=function(ue,de,he){return this.stream.write(ae.__super__.dtdElement.call(this,ue,de,he))},ae.prototype.dtdEntity=function(ue,de,he){return this.stream.write(ae.__super__.dtdEntity.call(this,ue,de,he))},ae.prototype.dtdNotation=function(ue,de,he){return this.stream.write(ae.__super__.dtdNotation.call(this,ue,de,he))},ae}(oe)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(x,Ae,me){(function(){var re,z,ie=function(se,pe){for(var ne in pe)oe.call(pe,ne)&&(se[ne]=pe[ne]);function ae(){this.constructor=se}return ae.prototype=pe.prototype,se.prototype=new ae,se.__super__=pe.prototype,se},oe={}.hasOwnProperty;z=x("./XMLWriterBase"),Ae.exports=re=function(se){ie(pe,se);function pe(ne){pe.__super__.constructor.call(this,ne)}return pe.prototype.document=function(ne,ae){var ue,de,he,xe,Se;for(ae=this.filterOptions(ae),xe="",Se=ne.children,de=0,he=Se.length;de<he;de++)ue=Se[de],xe+=this.writeChildNode(ue,ae,0);return ae.pretty&&xe.slice(-ae.newline.length)===ae.newline&&(xe=xe.slice(0,-ae.newline.length)),xe},pe}(z)}).call(this)},{"./XMLWriterBase":458}],456:[function(x,Ae,me){(function(){var re,z=function(oe,se){return function(){return oe.apply(se,arguments)}},ie={}.hasOwnProperty;Ae.exports=re=function(){function oe(se){this.assertLegalName=z(this.assertLegalName,this),this.assertLegalChar=z(this.assertLegalChar,this);var pe,ne,ae;se||(se={}),this.options=se,this.options.version||(this.options.version="1.0"),ne=se.stringify||{};for(pe in ne)ie.call(ne,pe)&&(ae=ne[pe],this[pe]=ae)}return oe.prototype.name=function(se){return this.options.noValidation?se:this.assertLegalName(""+se||"")},oe.prototype.text=function(se){return this.options.noValidation?se:this.assertLegalChar(this.textEscape(""+se||""))},oe.prototype.cdata=function(se){return this.options.noValidation?se:(se=""+se||"",se=se.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(se))},oe.prototype.comment=function(se){if(this.options.noValidation)return se;if(se=""+se||"",se.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+se);return this.assertLegalChar(se)},oe.prototype.raw=function(se){return this.options.noValidation?se:""+se||""},oe.prototype.attValue=function(se){return this.options.noValidation?se:this.assertLegalChar(this.attEscape(se=""+se||""))},oe.prototype.insTarget=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},oe.prototype.insValue=function(se){if(this.options.noValidation)return se;if(se=""+se||"",se.match(/\?>/))throw new Error("Invalid processing instruction value: "+se);return this.assertLegalChar(se)},oe.prototype.xmlVersion=function(se){if(this.options.noValidation)return se;if(se=""+se||"",!se.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+se);return se},oe.prototype.xmlEncoding=function(se){if(this.options.noValidation)return se;if(se=""+se||"",!se.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+se);return this.assertLegalChar(se)},oe.prototype.xmlStandalone=function(se){return this.options.noValidation?se:se?"yes":"no"},oe.prototype.dtdPubID=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},oe.prototype.dtdSysID=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},oe.prototype.dtdElementValue=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},oe.prototype.dtdAttType=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},oe.prototype.dtdAttDefault=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},oe.prototype.dtdEntityValue=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},oe.prototype.dtdNData=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},oe.prototype.convertAttKey="@",oe.prototype.convertPIKey="?",oe.prototype.convertTextKey="#text",oe.prototype.convertCDataKey="#cdata",oe.prototype.convertCommentKey="#comment",oe.prototype.convertRawKey="#raw",oe.prototype.assertLegalChar=function(se){var pe,ne;if(this.options.noValidation)return se;if(pe="",this.options.version==="1.0"){if(pe=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ne=se.match(pe))throw new Error("Invalid character in string: "+se+" at index "+ne.index)}else if(this.options.version==="1.1"&&(pe=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ne=se.match(pe)))throw new Error("Invalid character in string: "+se+" at index "+ne.index);return se},oe.prototype.assertLegalName=function(se){var pe;if(this.options.noValidation)return se;if(this.assertLegalChar(se),pe=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!se.match(pe))throw new Error("Invalid character in name");return se},oe.prototype.textEscape=function(se){var pe;return this.options.noValidation?se:(pe=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,se.replace(pe,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},oe.prototype.attEscape=function(se){var pe;return this.options.noValidation?se:(pe=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,se.replace(pe,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},oe}()}).call(this)},{}],457:[function(x,Ae,me){(function(){var re,z,ie,oe=function(pe,ne){for(var ae in ne)se.call(ne,ae)&&(pe[ae]=ne[ae]);function ue(){this.constructor=pe}return ue.prototype=ne.prototype,pe.prototype=new ue,pe.__super__=ne.prototype,pe},se={}.hasOwnProperty;re=x("./NodeType"),z=x("./XMLCharacterData"),Ae.exports=ie=function(pe){oe(ne,pe);function ne(ae,ue){if(ne.__super__.constructor.call(this,ae),ue==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=re.Text,this.value=this.stringify.text(ue)}return Object.defineProperty(ne.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(ne.prototype,"wholeText",{get:function(){var ae,ue,de;for(de="",ue=this.previousSibling;ue;)de=ue.data+de,ue=ue.previousSibling;for(de+=this.data,ae=this.nextSibling;ae;)de=de+ae.data,ae=ae.nextSibling;return de}}),ne.prototype.clone=function(){return Object.create(this)},ne.prototype.toString=function(ae){return this.options.writer.text(this,this.options.writer.filterOptions(ae))},ne.prototype.splitText=function(ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ne.prototype.replaceWholeText=function(ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ne}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(x,Ae,me){(function(){var re,z,ie,oe,se,pe,ne,ae,ue,de,he,xe,Se,we,be,Me,Le,Ce={}.hasOwnProperty;Le=x("./Utility").assign,re=x("./NodeType"),ue=x("./XMLDeclaration"),de=x("./XMLDocType"),ie=x("./XMLCData"),oe=x("./XMLComment"),xe=x("./XMLElement"),we=x("./XMLRaw"),be=x("./XMLText"),Se=x("./XMLProcessingInstruction"),he=x("./XMLDummy"),se=x("./XMLDTDAttList"),pe=x("./XMLDTDElement"),ne=x("./XMLDTDEntity"),ae=x("./XMLDTDNotation"),z=x("./WriterState"),Ae.exports=Me=function(){function Ne(Te){var De,Ee,Pe;Te||(Te={}),this.options=Te,Ee=Te.writer||{};for(De in Ee)Ce.call(Ee,De)&&(Pe=Ee[De],this["_"+De]=this[De],this[De]=Pe)}return Ne.prototype.filterOptions=function(Te){var De,Ee,Pe,Be,Ve,Ie,Ze,Qe;return Te||(Te={}),Te=Le({},this.options,Te),De={writer:this},De.pretty=Te.pretty||!1,De.allowEmpty=Te.allowEmpty||!1,De.indent=(Ee=Te.indent)!=null?Ee:" ",De.newline=(Pe=Te.newline)!=null?Pe:`
|
|
|
`,De.offset=(Be=Te.offset)!=null?Be:0,De.dontPrettyTextNodes=(Ve=(Ie=Te.dontPrettyTextNodes)!=null?Ie:Te.dontprettytextnodes)!=null?Ve:0,De.spaceBeforeSlash=(Ze=(Qe=Te.spaceBeforeSlash)!=null?Qe:Te.spacebeforeslash)!=null?Ze:"",De.spaceBeforeSlash===!0&&(De.spaceBeforeSlash=" "),De.suppressPrettyCount=0,De.user={},De.state=z.None,De},Ne.prototype.indent=function(Te,De,Ee){var Pe;return!De.pretty||De.suppressPrettyCount?"":De.pretty&&(Pe=(Ee||0)+De.offset+1,Pe>0)?new Array(Pe).join(De.indent):""},Ne.prototype.endline=function(Te,De,Ee){return!De.pretty||De.suppressPrettyCount?"":De.newline},Ne.prototype.attribute=function(Te,De,Ee){var Pe;return this.openAttribute(Te,De,Ee),Pe=" "+Te.name+'="'+Te.value+'"',this.closeAttribute(Te,De,Ee),Pe},Ne.prototype.cdata=function(Te,De,Ee){var Pe;return this.openNode(Te,De,Ee),De.state=z.OpenTag,Pe=this.indent(Te,De,Ee)+"<![CDATA[",De.state=z.InsideTag,Pe+=Te.value,De.state=z.CloseTag,Pe+="]]>"+this.endline(Te,De,Ee),De.state=z.None,this.closeNode(Te,De,Ee),Pe},Ne.prototype.comment=function(Te,De,Ee){var Pe;return this.openNode(Te,De,Ee),De.state=z.OpenTag,Pe=this.indent(Te,De,Ee)+"<!-- ",De.state=z.InsideTag,Pe+=Te.value,De.state=z.CloseTag,Pe+=" -->"+this.endline(Te,De,Ee),De.state=z.None,this.closeNode(Te,De,Ee),Pe},Ne.prototype.declaration=function(Te,De,Ee){var Pe;return this.openNode(Te,De,Ee),De.state=z.OpenTag,Pe=this.indent(Te,De,Ee)+"<?xml",De.state=z.InsideTag,Pe+=' version="'+Te.version+'"',Te.encoding!=null&&(Pe+=' encoding="'+Te.encoding+'"'),Te.standalone!=null&&(Pe+=' standalone="'+Te.standalone+'"'),De.state=z.CloseTag,Pe+=De.spaceBeforeSlash+"?>",Pe+=this.endline(Te,De,Ee),De.state=z.None,this.closeNode(Te,De,Ee),Pe},Ne.prototype.docType=function(Te,De,Ee){var Pe,Be,Ve,Ie,Ze;if(Ee||(Ee=0),this.openNode(Te,De,Ee),De.state=z.OpenTag,Ie=this.indent(Te,De,Ee),Ie+="<!DOCTYPE "+Te.root().name,Te.pubID&&Te.sysID?Ie+=' PUBLIC "'+Te.pubID+'" "'+Te.sysID+'"':Te.sysID&&(Ie+=' SYSTEM "'+Te.sysID+'"'),Te.children.length>0){for(Ie+=" [",Ie+=this.endline(Te,De,Ee),De.state=z.InsideTag,Ze=Te.children,Be=0,Ve=Ze.length;Be<Ve;Be++)Pe=Ze[Be],Ie+=this.writeChildNode(Pe,De,Ee+1);De.state=z.CloseTag,Ie+="]"}return De.state=z.CloseTag,Ie+=De.spaceBeforeSlash+">",Ie+=this.endline(Te,De,Ee),De.state=z.None,this.closeNode(Te,De,Ee),Ie},Ne.prototype.element=function(Te,De,Ee){var Pe,Be,Ve,Ie,Ze,Qe,tt,it,ht,Ge,Xe,ct,pt,ut;Ee||(Ee=0),Ge=!1,Xe="",this.openNode(Te,De,Ee),De.state=z.OpenTag,Xe+=this.indent(Te,De,Ee)+"<"+Te.name,ct=Te.attribs;for(ht in ct)Ce.call(ct,ht)&&(Pe=ct[ht],Xe+=this.attribute(Pe,De,Ee));if(Ve=Te.children.length,Ie=Ve===0?null:Te.children[0],Ve===0||Te.children.every(function(rt){return(rt.type===re.Text||rt.type===re.Raw)&&rt.value===""}))De.allowEmpty?(Xe+=">",De.state=z.CloseTag,Xe+="</"+Te.name+">"+this.endline(Te,De,Ee)):(De.state=z.CloseTag,Xe+=De.spaceBeforeSlash+"/>"+this.endline(Te,De,Ee));else if(De.pretty&&Ve===1&&(Ie.type===re.Text||Ie.type===re.Raw)&&Ie.value!=null)Xe+=">",De.state=z.InsideTag,De.suppressPrettyCount++,Ge=!0,Xe+=this.writeChildNode(Ie,De,Ee+1),De.suppressPrettyCount--,Ge=!1,De.state=z.CloseTag,Xe+="</"+Te.name+">"+this.endline(Te,De,Ee);else{if(De.dontPrettyTextNodes){for(pt=Te.children,Ze=0,tt=pt.length;Ze<tt;Ze++)if(Be=pt[Ze],(Be.type===re.Text||Be.type===re.Raw)&&Be.value!=null){De.suppressPrettyCount++,Ge=!0;break}}for(Xe+=">"+this.endline(Te,De,Ee),De.state=z.InsideTag,ut=Te.children,Qe=0,it=ut.length;Qe<it;Qe++)Be=ut[Qe],Xe+=this.writeChildNode(Be,De,Ee+1);De.state=z.CloseTag,Xe+=this.indent(Te,De,Ee)+"</"+Te.name+">",Ge&&De.suppressPrettyCount--,Xe+=this.endline(Te,De,Ee),De.state=z.None}return this.closeNode(Te,De,Ee),Xe},Ne.prototype.writeChildNode=function(Te,De,Ee){switch(Te.type){case re.CData:return this.cdata(Te,De,Ee);case re.Comment:return this.comment(Te,De,Ee);case re.Element:return this.element(Te,De,Ee);case re.Raw:return this.raw(Te,De,Ee);case re.Text:return this.text(Te,De,Ee);case re.ProcessingInstruction:return this.processingInstruction(Te,De,Ee);case re.Dummy:return"";case re.Declaration:return this.declaration(Te,De,Ee);case re.DocType:return this.docType(Te,De,Ee);case re.AttributeDeclaration:return this.dtdAttList(Te,De,Ee);case re.ElementDeclaration:return this.dtdElement(Te,De,Ee);case re.EntityDeclaration:return this.dtdEntity(Te,De,Ee);case re.NotationDeclaration:return this.dtdNotation(Te,De,Ee);default:throw new Error("Unknown XML node type: "+Te.constructor.name)}},Ne.prototype.processingInstruction=function(Te,De,Ee){var Pe;return this.openNode(Te,De,Ee),De.state=z.OpenTag,Pe=this.indent(Te,De,Ee)+"<?",De.state=z.InsideTag,Pe+=Te.target,Te.value&&(Pe+=" "+Te.value),De.state=z.CloseTag,Pe+=De.spaceBeforeSlash+"?>",Pe+=this.endline(Te,De,Ee),De.state=z.None,this.closeNode(Te,De,Ee),Pe},Ne.prototype.raw=function(Te,De,Ee){var Pe;return this.openNode(Te,De,Ee),De.state=z.OpenTag,Pe=this.indent(Te,De,Ee),De.state=z.InsideTag,Pe+=Te.value,De.state=z.CloseTag,Pe+=this.endline(Te,De,Ee),De.state=z.None,this.closeNode(Te,De,Ee),Pe},Ne.prototype.text=function(Te,De,Ee){var Pe;return this.openNode(Te,De,Ee),De.state=z.OpenTag,Pe=this.indent(Te,De,Ee),De.state=z.InsideTag,Pe+=Te.value,De.state=z.CloseTag,Pe+=this.endline(Te,De,Ee),De.state=z.None,this.closeNode(Te,De,Ee),Pe},Ne.prototype.dtdAttList=function(Te,De,Ee){var Pe;return this.openNode(Te,De,Ee),De.state=z.OpenTag,Pe=this.indent(Te,De,Ee)+"<!ATTLIST",De.state=z.InsideTag,Pe+=" "+Te.elementName+" "+Te.attributeName+" "+Te.attributeType,Te.defaultValueType!=="#DEFAULT"&&(Pe+=" "+Te.defaultValueType),Te.defaultValue&&(Pe+=' "'+Te.defaultValue+'"'),De.state=z.CloseTag,Pe+=De.spaceBeforeSlash+">"+this.endline(Te,De,Ee),De.state=z.None,this.closeNode(Te,De,Ee),Pe},Ne.prototype.dtdElement=function(Te,De,Ee){var Pe;return this.openNode(Te,De,Ee),De.state=z.OpenTag,Pe=this.indent(Te,De,Ee)+"<!ELEMENT",De.state=z.InsideTag,Pe+=" "+Te.name+" "+Te.value,De.state=z.CloseTag,Pe+=De.spaceBeforeSlash+">"+this.endline(Te,De,Ee),De.state=z.None,this.closeNode(Te,De,Ee),Pe},Ne.prototype.dtdEntity=function(Te,De,Ee){var Pe;return this.openNode(Te,De,Ee),De.state=z.OpenTag,Pe=this.indent(Te,De,Ee)+"<!ENTITY",De.state=z.InsideTag,Te.pe&&(Pe+=" %"),Pe+=" "+Te.name,Te.value?Pe+=' "'+Te.value+'"':(Te.pubID&&Te.sysID?Pe+=' PUBLIC "'+Te.pubID+'" "'+Te.sysID+'"':Te.sysID&&(Pe+=' SYSTEM "'+Te.sysID+'"'),Te.nData&&(Pe+=" NDATA "+Te.nData)),De.state=z.CloseTag,Pe+=De.spaceBeforeSlash+">"+this.endline(Te,De,Ee),De.state=z.None,this.closeNode(Te,De,Ee),Pe},Ne.prototype.dtdNotation=function(Te,De,Ee){var Pe;return this.openNode(Te,De,Ee),De.state=z.OpenTag,Pe=this.indent(Te,De,Ee)+"<!NOTATION",De.state=z.InsideTag,Pe+=" "+Te.name,Te.pubID&&Te.sysID?Pe+=' PUBLIC "'+Te.pubID+'" "'+Te.sysID+'"':Te.pubID?Pe+=' PUBLIC "'+Te.pubID+'"':Te.sysID&&(Pe+=' SYSTEM "'+Te.sysID+'"'),De.state=z.CloseTag,Pe+=De.spaceBeforeSlash+">"+this.endline(Te,De,Ee),De.state=z.None,this.closeNode(Te,De,Ee),Pe},Ne.prototype.openNode=function(Te,De,Ee){},Ne.prototype.closeNode=function(Te,De,Ee){},Ne.prototype.openAttribute=function(Te,De,Ee){},Ne.prototype.closeAttribute=function(Te,De,Ee){},Ne}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(x,Ae,me){(function(){var re,z,ie,oe,se,pe,ne,ae,ue,de;de=x("./Utility"),ae=de.assign,ue=de.isFunction,ie=x("./XMLDOMImplementation"),oe=x("./XMLDocument"),se=x("./XMLDocumentCB"),ne=x("./XMLStringWriter"),pe=x("./XMLStreamWriter"),re=x("./NodeType"),z=x("./WriterState"),Ae.exports.create=function(he,xe,Se,we){var be,Me;if(he==null)throw new Error("Root element needs a name.");return we=ae({},xe,Se,we),be=new oe(we),Me=be.element(he),we.headless||(be.declaration(we),(we.pubID!=null||we.sysID!=null)&&be.dtd(we)),Me},Ae.exports.begin=function(he,xe,Se){var we;return ue(he)&&(we=[he,xe],xe=we[0],Se=we[1],he={}),xe?new se(he,xe,Se):new oe(he)},Ae.exports.stringWriter=function(he){return new ne(he)},Ae.exports.streamWriter=function(he,xe){return new pe(he,xe)},Ae.exports.implementation=new ie,Ae.exports.nodeType=re,Ae.exports.writerState=z}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(x,Ae,me){Ae.exports=z;var re=Object.prototype.hasOwnProperty;function z(){for(var ie={},oe=0;oe<arguments.length;oe++){var se=arguments[oe];for(var pe in se)re.call(se,pe)&&(ie[pe]=se[pe])}return ie}},{}],461:[function(x,Ae,me){"use strict";x("core-js/modules/es.array.fill.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.array.slice.js");var re=x("buffer").Buffer,z=x("./sha"),ie=x("./md5"),oe={sha1:z,md5:ie},se=64,pe=re.alloc(se);pe.fill(0);function ne(de,he,xe){re.isBuffer(he)||(he=re.from(he)),re.isBuffer(xe)||(xe=re.from(xe)),he.length>se?he=de(he):he.length<se&&(he=re.concat([he,pe],se));for(var Se=re.alloc(se),we=re.alloc(se),be=0;be<se;be++)Se[be]=he[be]^54,we[be]=he[be]^92;var Me=de(re.concat([Se,xe]));return de(re.concat([we,Me]))}function ae(de,he){de=de||"sha1";var xe=oe[de],Se=[],we=0;return xe||ue("algorithm:",de,"is not yet supported"),{update:function(Me){return re.isBuffer(Me)||(Me=re.from(Me)),Se.push(Me),we+=Me.length,this},digest:function(Me){var Le=re.concat(Se),Ce=he?ne(xe,he,Le):xe(Le);return Se=null,Me?Ce.toString(Me):Ce}}}function ue(){var de=[].slice.call(arguments).join(" ");throw new Error([de,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}me.createHash=function(de){return ae(de)},me.createHmac=function(de,he){return ae(de,he)},me.createCredentials=function(){ue("sorry,createCredentials is not implemented yet")},me.createCipher=function(){ue("sorry,createCipher is not implemented yet")},me.createCipheriv=function(){ue("sorry,createCipheriv is not implemented yet")},me.createDecipher=function(){ue("sorry,createDecipher is not implemented yet")},me.createDecipheriv=function(){ue("sorry,createDecipheriv is not implemented yet")},me.createSign=function(){ue("sorry,createSign is not implemented yet")},me.createVerify=function(){ue("sorry,createVerify is not implemented yet")},me.createDiffieHellman=function(){ue("sorry,createDiffieHellman is not implemented yet")},me.pbkdf2=function(){ue("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(x,Ae,me){"use strict";x("core-js/modules/es.array.fill.js"),x("core-js/modules/es.array.concat.js");var re=x("buffer").Buffer,z=4,ie=re.alloc(z);ie.fill(0);var oe=8;function se(ae,ue){if(ae.length%z!==0){var de=ae.length+(z-ae.length%z);ae=re.concat([ae,ie],de)}for(var he=[],xe=ue?ae.readInt32BE:ae.readInt32LE,Se=0;Se<ae.length;Se+=z)he.push(xe.call(ae,Se));return he}function pe(ae,ue,de){for(var he=re.alloc(ue),xe=de?he.writeInt32BE:he.writeInt32LE,Se=0;Se<ae.length;Se++)xe.call(he,ae[Se],Se*4,!0);return he}function ne(ae,ue,de,he){re.isBuffer(ae)||(ae=re.from(ae));var xe=ue(se(ae,he),ae.length*oe);return pe(xe,de,he)}Ae.exports={hash:ne}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(x,Ae,me){"use strict";var re=x("./helpers");function z(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function ie(he,xe){he[xe>>5]|=128<<xe%32,he[(xe+64>>>9<<4)+14]=xe;for(var Se=1732584193,we=-271733879,be=-1732584194,Me=271733878,Le=0;Le<he.length;Le+=16){var Ce=Se,Ne=we,Te=be,De=Me;Se=se(Se,we,be,Me,he[Le+0],7,-680876936),Me=se(Me,Se,we,be,he[Le+1],12,-389564586),be=se(be,Me,Se,we,he[Le+2],17,606105819),we=se(we,be,Me,Se,he[Le+3],22,-1044525330),Se=se(Se,we,be,Me,he[Le+4],7,-176418897),Me=se(Me,Se,we,be,he[Le+5],12,1200080426),be=se(be,Me,Se,we,he[Le+6],17,-1473231341),we=se(we,be,Me,Se,he[Le+7],22,-45705983),Se=se(Se,we,be,Me,he[Le+8],7,1770035416),Me=se(Me,Se,we,be,he[Le+9],12,-1958414417),be=se(be,Me,Se,we,he[Le+10],17,-42063),we=se(we,be,Me,Se,he[Le+11],22,-1990404162),Se=se(Se,we,be,Me,he[Le+12],7,1804603682),Me=se(Me,Se,we,be,he[Le+13],12,-40341101),be=se(be,Me,Se,we,he[Le+14],17,-1502002290),we=se(we,be,Me,Se,he[Le+15],22,1236535329),Se=pe(Se,we,be,Me,he[Le+1],5,-165796510),Me=pe(Me,Se,we,be,he[Le+6],9,-1069501632),be=pe(be,Me,Se,we,he[Le+11],14,643717713),we=pe(we,be,Me,Se,he[Le+0],20,-373897302),Se=pe(Se,we,be,Me,he[Le+5],5,-701558691),Me=pe(Me,Se,we,be,he[Le+10],9,38016083),be=pe(be,Me,Se,we,he[Le+15],14,-660478335),we=pe(we,be,Me,Se,he[Le+4],20,-405537848),Se=pe(Se,we,be,Me,he[Le+9],5,568446438),Me=pe(Me,Se,we,be,he[Le+14],9,-1019803690),be=pe(be,Me,Se,we,he[Le+3],14,-187363961),we=pe(we,be,Me,Se,he[Le+8],20,1163531501),Se=pe(Se,we,be,Me,he[Le+13],5,-1444681467),Me=pe(Me,Se,we,be,he[Le+2],9,-51403784),be=pe(be,Me,Se,we,he[Le+7],14,1735328473),we=pe(we,be,Me,Se,he[Le+12],20,-1926607734),Se=ne(Se,we,be,Me,he[Le+5],4,-378558),Me=ne(Me,Se,we,be,he[Le+8],11,-2022574463),be=ne(be,Me,Se,we,he[Le+11],16,1839030562),we=ne(we,be,Me,Se,he[Le+14],23,-35309556),Se=ne(Se,we,be,Me,he[Le+1],4,-1530992060),Me=ne(Me,Se,we,be,he[Le+4],11,1272893353),be=ne(be,Me,Se,we,he[Le+7],16,-155497632),we=ne(we,be,Me,Se,he[Le+10],23,-1094730640),Se=ne(Se,we,be,Me,he[Le+13],4,681279174),Me=ne(Me,Se,we,be,he[Le+0],11,-358537222),be=ne(be,Me,Se,we,he[Le+3],16,-722521979),we=ne(we,be,Me,Se,he[Le+6],23,76029189),Se=ne(Se,we,be,Me,he[Le+9],4,-640364487),Me=ne(Me,Se,we,be,he[Le+12],11,-421815835),be=ne(be,Me,Se,we,he[Le+15],16,530742520),we=ne(we,be,Me,Se,he[Le+2],23,-995338651),Se=ae(Se,we,be,Me,he[Le+0],6,-198630844),Me=ae(Me,Se,we,be,he[Le+7],10,1126891415),be=ae(be,Me,Se,we,he[Le+14],15,-1416354905),we=ae(we,be,Me,Se,he[Le+5],21,-57434055),Se=ae(Se,we,be,Me,he[Le+12],6,1700485571),Me=ae(Me,Se,we,be,he[Le+3],10,-1894986606),be=ae(be,Me,Se,we,he[Le+10],15,-1051523),we=ae(we,be,Me,Se,he[Le+1],21,-2054922799),Se=ae(Se,we,be,Me,he[Le+8],6,1873313359),Me=ae(Me,Se,we,be,he[Le+15],10,-30611744),be=ae(be,Me,Se,we,he[Le+6],15,-1560198380),we=ae(we,be,Me,Se,he[Le+13],21,1309151649),Se=ae(Se,we,be,Me,he[Le+4],6,-145523070),Me=ae(Me,Se,we,be,he[Le+11],10,-1120210379),be=ae(be,Me,Se,we,he[Le+2],15,718787259),we=ae(we,be,Me,Se,he[Le+9],21,-343485551),Se=ue(Se,Ce),we=ue(we,Ne),be=ue(be,Te),Me=ue(Me,De)}return Array(Se,we,be,Me)}function oe(he,xe,Se,we,be,Me){return ue(de(ue(ue(xe,he),ue(we,Me)),be),Se)}function se(he,xe,Se,we,be,Me,Le){return oe(xe&Se|~xe&we,he,xe,be,Me,Le)}function pe(he,xe,Se,we,be,Me,Le){return oe(xe&we|Se&~we,he,xe,be,Me,Le)}function ne(he,xe,Se,we,be,Me,Le){return oe(xe^Se^we,he,xe,be,Me,Le)}function ae(he,xe,Se,we,be,Me,Le){return oe(Se^(xe|~we),he,xe,be,Me,Le)}function ue(he,xe){var Se=(he&65535)+(xe&65535),we=(he>>16)+(xe>>16)+(Se>>16);return we<<16|Se&65535}function de(he,xe){return he<<xe|he>>>32-xe}Ae.exports=function(xe){return re.hash(xe,ie,16)}},{"./helpers":462}],464:[function(x,Ae,me){"use strict";var re=x("./helpers");function z(ne,ae){ne[ae>>5]|=128<<24-ae%32,ne[(ae+64>>9<<4)+15]=ae;for(var ue=Array(80),de=1732584193,he=-271733879,xe=-1732584194,Se=271733878,we=-1009589776,be=0;be<ne.length;be+=16){for(var Me=de,Le=he,Ce=xe,Ne=Se,Te=we,De=0;De<80;De++){De<16?ue[De]=ne[be+De]:ue[De]=pe(ue[De-3]^ue[De-8]^ue[De-14]^ue[De-16],1);var Ee=se(se(pe(de,5),ie(De,he,xe,Se)),se(se(we,ue[De]),oe(De)));we=Se,Se=xe,xe=pe(he,30),he=de,de=Ee}de=se(de,Me),he=se(he,Le),xe=se(xe,Ce),Se=se(Se,Ne),we=se(we,Te)}return Array(de,he,xe,Se,we)}function ie(ne,ae,ue,de){return ne<20?ae&ue|~ae&de:ne<40?ae^ue^de:ne<60?ae&ue|ae&de|ue&de:ae^ue^de}function oe(ne){return ne<20?1518500249:ne<40?1859775393:ne<60?-1894007588:-899497514}function se(ne,ae){var ue=(ne&65535)+(ae&65535),de=(ne>>16)+(ae>>16)+(ue>>16);return de<<16|ue&65535}function pe(ne,ae){return ne<<ae|ne>>>32-ae}Ae.exports=function(ae){return re.hash(ae,z,20,!0)}},{"./helpers":462}],465:[function(x,Ae,me){"use strict";Ae.exports=function(){return function(){}}},{}],466:[function(x,Ae,me){(function(re){(function(){"use strict";var z=x("@babel/runtime/helpers/interopRequireDefault"),ie=z(x("@babel/runtime/helpers/typeof")),oe=x("stream"),se=oe.Stream,pe=x("../lib/common/utils/isArray"),ne=pe.isArray;Ae.exports.string=function(de){return typeof de=="string"},Ae.exports.array=ne,Ae.exports.buffer=re.isBuffer;function ae(ue){return ue instanceof se}Ae.exports.writableStream=function(de){return ae(de)&&typeof de._write=="function"&&(0,ie.default)(de._writableState)==="object"}}).call(this)}).call(this,{isBuffer:x("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(x,Ae,me){"use strict";var re=x("immediate"),z=Ae.exports={};z.nextTick=re,z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function ie(){}z.on=ie,z.addListener=ie,z.once=ie,z.off=ie,z.removeListener=ie,z.removeAllListeners=ie,z.emit=ie,z.prependListener=ie,z.prependOnceListener=ie,z.listeners=function(oe){return[]},z.binding=function(oe){throw new Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(oe){throw new Error("process.chdir is not supported")},z.umask=function(){return 0}},{immediate:358}],468:[function(x,Ae,me){(function(re){(function(){"use strict";x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.search.js");var z=x("./lib/request"),ie=x("./lib/response"),oe=x("xtend"),se=x("builtin-status-codes"),pe=x("url"),ne=me;ne.request=function(ae,ue){typeof ae=="string"?ae=pe.parse(ae):ae=oe(ae);var de=re.location.protocol.search(/^https?:$/)===-1?"http:":"",he=ae.protocol||de,xe=ae.hostname||ae.host,Se=ae.port,we=ae.path||"/";xe&&xe.indexOf(":")!==-1&&(xe="["+xe+"]"),ae.url=(xe?he+"//"+xe:"")+(Se?":"+Se:"")+we,ae.method=(ae.method||"GET").toUpperCase(),ae.headers=ae.headers||{};var be=new z(ae);return ue&&be.on("response",ue),be},ne.get=function(ue,de){var he=ne.request(ue,de);return he.end(),he},ne.ClientRequest=z,ne.IncomingMessage=ie.IncomingMessage,ne.Agent=function(){},ne.Agent.defaultMaxSockets=4,ne.globalAgent=new ne.Agent,ne.STATUS_CODES=se,ne.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(x,Ae,me){(function(re){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.array-buffer.constructor.js"),x("core-js/modules/es.array-buffer.slice.js"),x("core-js/modules/es.array.slice.js"),me.fetch=ne(re.fetch)&&ne(re.ReadableStream),me.writableStream=ne(re.WritableStream),me.abortController=ne(re.AbortController),me.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),me.blobConstructor=!0}catch(ae){}var z;function ie(){if(z!==void 0)return z;if(re.XMLHttpRequest){z=new re.XMLHttpRequest;try{z.open("GET",re.XDomainRequest?"/":"https://example.com")}catch(ae){z=null}}else z=null;return z}function oe(ae){var ue=ie();if(!ue)return!1;try{return ue.responseType=ae,ue.responseType===ae}catch(de){}return!1}var se=typeof re.ArrayBuffer!="undefined",pe=se&&ne(re.ArrayBuffer.prototype.slice);me.arraybuffer=me.fetch||se&&oe("arraybuffer"),me.msstream=!me.fetch&&pe&&oe("ms-stream"),me.mozchunkedarraybuffer=!me.fetch&&se&&oe("moz-chunked-arraybuffer"),me.overrideMimeType=me.fetch||(ie()?ne(ie().overrideMimeType):!1),me.vbArray=ne(re.VBArray);function ne(ae){return typeof ae=="function"}z=null}).call(this)}).call(this,typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(x,Ae,me){(function(re,z,ie){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js");var oe=x("./capability"),se=x("inherits"),pe=x("./response"),ne=x("readable-stream"),ae=x("to-arraybuffer"),ue=pe.IncomingMessage,de=pe.readyStates;function he(be,Me){return oe.fetch&&Me?"fetch":oe.mozchunkedarraybuffer?"moz-chunked-arraybuffer":oe.msstream?"ms-stream":oe.arraybuffer&&be?"arraybuffer":oe.vbArray&&be?"text:vbarray":"text"}var xe=Ae.exports=function(be){var Me=this;ne.Writable.call(Me),Me._opts=be,Me._body=[],Me._headers={},be.auth&&Me.setHeader("Authorization","Basic "+new ie(be.auth).toString("base64")),Object.keys(be.headers).forEach(function(Ne){Me.setHeader(Ne,be.headers[Ne])});var Le,Ce=!0;if(be.mode==="disable-fetch"||"requestTimeout"in be&&!oe.abortController)Ce=!1,Le=!0;else if(be.mode==="prefer-streaming")Le=!1;else if(be.mode==="allow-wrong-content-type")Le=!oe.overrideMimeType;else if(!be.mode||be.mode==="default"||be.mode==="prefer-fast")Le=!0;else throw new Error("Invalid value for opts.mode");Me._mode=he(Le,Ce),Me._fetchTimer=null,Me.on("finish",function(){Me._onFinish()})};se(xe,ne.Writable),xe.prototype.setHeader=function(be,Me){var Le=this,Ce=be.toLowerCase();we.indexOf(Ce)===-1&&(Le._headers[Ce]={name:be,value:Me})},xe.prototype.getHeader=function(be){var Me=this._headers[be.toLowerCase()];return Me?Me.value:null},xe.prototype.removeHeader=function(be){var Me=this;delete Me._headers[be.toLowerCase()]},xe.prototype._onFinish=function(){var be=this;if(!be._destroyed){var Me=be._opts,Le=be._headers,Ce=null;Me.method!=="GET"&&Me.method!=="HEAD"&&(oe.arraybuffer?Ce=ae(ie.concat(be._body)):oe.blobConstructor?Ce=new z.Blob(be._body.map(function(Be){return ae(Be)}),{type:(Le["content-type"]||{}).value||""}):Ce=ie.concat(be._body).toString());var Ne=[];if(Object.keys(Le).forEach(function(Be){var Ve=Le[Be].name,Ie=Le[Be].value;Array.isArray(Ie)?Ie.forEach(function(Ze){Ne.push([Ve,Ze])}):Ne.push([Ve,Ie])}),be._mode==="fetch"){var Te=null,De=null;if(oe.abortController){var Ee=new AbortController;Te=Ee.signal,be._fetchAbortController=Ee,"requestTimeout"in Me&&Me.requestTimeout!==0&&(be._fetchTimer=z.setTimeout(function(){be.emit("requestTimeout"),be._fetchAbortController&&be._fetchAbortController.abort()},Me.requestTimeout))}z.fetch(be._opts.url,{method:be._opts.method,headers:Ne,body:Ce||void 0,mode:"cors",credentials:Me.withCredentials?"include":"same-origin",signal:Te}).then(function(Be){be._fetchResponse=Be,be._connect()},function(Be){z.clearTimeout(be._fetchTimer),be._destroyed||be.emit("error",Be)})}else{var Pe=be._xhr=new z.XMLHttpRequest;try{Pe.open(be._opts.method,be._opts.url,!0)}catch(Be){re.nextTick(function(){be.emit("error",Be)});return}"responseType"in Pe&&(Pe.responseType=be._mode.split(":")[0]),"withCredentials"in Pe&&(Pe.withCredentials=!!Me.withCredentials),be._mode==="text"&&"overrideMimeType"in Pe&&Pe.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in Me&&(Pe.timeout=Me.requestTimeout,Pe.ontimeout=function(){be.emit("requestTimeout")}),Ne.forEach(function(Be){Pe.setRequestHeader(Be[0],Be[1])}),be._response=null,Pe.onreadystatechange=function(){switch(Pe.readyState){case de.LOADING:case de.DONE:be._onXHRProgress();break}},be._mode==="moz-chunked-arraybuffer"&&(Pe.onprogress=function(){be._onXHRProgress()}),Pe.onerror=function(){be._destroyed||be.emit("error",new Error("XHR error"))};try{Pe.send(Ce)}catch(Be){re.nextTick(function(){be.emit("error",Be)});return}}}};function Se(be){try{var Me=be.status;return Me!==null&&Me!==0}catch(Le){return!1}}xe.prototype._onXHRProgress=function(){var be=this;!Se(be._xhr)||be._destroyed||(be._response||be._connect(),be._response._onXHRProgress())},xe.prototype._connect=function(){var be=this;be._destroyed||(be._response=new ue(be._xhr,be._fetchResponse,be._mode,be._fetchTimer),be._response.on("error",function(Me){be.emit("error",Me)}),be.emit("response",be._response))},xe.prototype._write=function(be,Me,Le){var Ce=this;Ce._body.push(be),Le()},xe.prototype.abort=xe.prototype.destroy=function(){var be=this;be._destroyed=!0,z.clearTimeout(be._fetchTimer),be._response&&(be._response._destroyed=!0),be._xhr?be._xhr.abort():be._fetchAbortController&&be._fetchAbortController.abort()},xe.prototype.end=function(be,Me,Le){var Ce=this;typeof be=="function"&&(Le=be,be=void 0),ne.Writable.prototype.end.call(Ce,be,Me,Le)},xe.prototype.flushHeaders=function(){},xe.prototype.setTimeout=function(){},xe.prototype.setNoDelay=function(){},xe.prototype.setSocketKeepAlive=function(){};var we=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,x("_process"),typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},x("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(x,Ae,me){(function(re,z,ie){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.string.match.js"),x("core-js/modules/es.array.iterator.js"),x("core-js/modules/es.array-buffer.slice.js"),x("core-js/modules/es.typed-array.uint8-array.js"),x("core-js/modules/es.typed-array.copy-within.js"),x("core-js/modules/es.typed-array.every.js"),x("core-js/modules/es.typed-array.fill.js"),x("core-js/modules/es.typed-array.filter.js"),x("core-js/modules/es.typed-array.find.js"),x("core-js/modules/es.typed-array.find-index.js"),x("core-js/modules/es.typed-array.for-each.js"),x("core-js/modules/es.typed-array.includes.js"),x("core-js/modules/es.typed-array.index-of.js"),x("core-js/modules/es.typed-array.iterator.js"),x("core-js/modules/es.typed-array.join.js"),x("core-js/modules/es.typed-array.last-index-of.js"),x("core-js/modules/es.typed-array.map.js"),x("core-js/modules/es.typed-array.reduce.js"),x("core-js/modules/es.typed-array.reduce-right.js"),x("core-js/modules/es.typed-array.reverse.js"),x("core-js/modules/es.typed-array.set.js"),x("core-js/modules/es.typed-array.slice.js"),x("core-js/modules/es.typed-array.some.js"),x("core-js/modules/es.typed-array.sort.js"),x("core-js/modules/es.typed-array.subarray.js"),x("core-js/modules/es.typed-array.to-locale-string.js"),x("core-js/modules/es.typed-array.to-string.js"),x("core-js/modules/es.array.slice.js");var oe=x("./capability"),se=x("inherits"),pe=x("readable-stream"),ne=me.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ae=me.IncomingMessage=function(ue,de,he,xe){var Se=this;if(pe.Readable.call(Se),Se._mode=he,Se.headers={},Se.rawHeaders=[],Se.trailers={},Se.rawTrailers=[],Se.on("end",function(){re.nextTick(function(){Se.emit("close")})}),he==="fetch"){var we=function Te(){Me.read().then(function(De){if(!Se._destroyed){if(De.done){z.clearTimeout(xe),Se.push(null);return}Se.push(new ie(De.value)),Te()}}).catch(function(De){z.clearTimeout(xe),Se._destroyed||Se.emit("error",De)})};if(Se._fetchResponse=de,Se.url=de.url,Se.statusCode=de.status,Se.statusMessage=de.statusText,de.headers.forEach(function(Te,De){Se.headers[De.toLowerCase()]=Te,Se.rawHeaders.push(De,Te)}),oe.writableStream){var be=new WritableStream({write:function(De){return new Promise(function(Ee,Pe){Se._destroyed?Pe():Se.push(new ie(De))?Ee():Se._resumeFetch=Ee})},close:function(){z.clearTimeout(xe),Se._destroyed||Se.push(null)},abort:function(De){Se._destroyed||Se.emit("error",De)}});try{de.body.pipeTo(be).catch(function(Te){z.clearTimeout(xe),Se._destroyed||Se.emit("error",Te)});return}catch(Te){}}var Me=de.body.getReader();we()}else{Se._xhr=ue,Se._pos=0,Se.url=ue.responseURL,Se.statusCode=ue.status,Se.statusMessage=ue.statusText;var Le=ue.getAllResponseHeaders().split(/\r?\n/);if(Le.forEach(function(Te){var De=Te.match(/^([^:]+):\s*(.*)/);if(De){var Ee=De[1].toLowerCase();Ee==="set-cookie"?(Se.headers[Ee]===void 0&&(Se.headers[Ee]=[]),Se.headers[Ee].push(De[2])):Se.headers[Ee]!==void 0?Se.headers[Ee]+=", "+De[2]:Se.headers[Ee]=De[2],Se.rawHeaders.push(De[1],De[2])}}),Se._charset="x-user-defined",!oe.overrideMimeType){var Ce=Se.rawHeaders["mime-type"];if(Ce){var Ne=Ce.match(/;\s*charset=([^;])(;|$)/);Ne&&(Se._charset=Ne[1].toLowerCase())}Se._charset||(Se._charset="utf-8")}}};se(ae,pe.Readable),ae.prototype._read=function(){var ue=this,de=ue._resumeFetch;de&&(ue._resumeFetch=null,de())},ae.prototype._onXHRProgress=function(){var ue=this,de=ue._xhr,he=null;switch(ue._mode){case"text:vbarray":if(de.readyState!==ne.DONE)break;try{he=new z.VBArray(de.responseBody).toArray()}catch(Me){}if(he!==null){ue.push(new ie(he));break}case"text":try{he=de.responseText}catch(Me){ue._mode="text:vbarray";break}if(he.length>ue._pos){var xe=he.substr(ue._pos);if(ue._charset==="x-user-defined"){for(var Se=new ie(xe.length),we=0;we<xe.length;we++)Se[we]=xe.charCodeAt(we)&255;ue.push(Se)}else ue.push(xe,ue._charset);ue._pos=he.length}break;case"arraybuffer":if(de.readyState!==ne.DONE||!de.response)break;he=de.response,ue.push(new ie(new Uint8Array(he)));break;case"moz-chunked-arraybuffer":if(he=de.response,de.readyState!==ne.LOADING||!he)break;ue.push(new ie(new Uint8Array(he)));break;case"ms-stream":if(he=de.response,de.readyState!==ne.LOADING)break;var be=new z.MSStreamReader;be.onprogress=function(){be.result.byteLength>ue._pos&&(ue.push(new ie(new Uint8Array(be.result.slice(ue._pos)))),ue._pos=be.result.byteLength)},be.onload=function(){ue.push(null)},be.readAsArrayBuffer(he);break}ue._xhr.readyState===ne.DONE&&ue._mode!=="ms-stream"&&ue.push(null)}}).call(this)}).call(this,x("_process"),typeof Wt!="undefined"?Wt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},x("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/helpers/typeof"));x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.search.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.string.trim.js"),x("core-js/modules/es.string.match.js"),x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.splice.js");var ie=x("punycode"),oe=x("./util");me.parse=De,me.resolve=Pe,me.resolveObject=Be,me.format=Ee,me.Url=se;function se(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var pe=/^([a-z0-9.+-]+:)/i,ne=/:[0-9]*$/,ae=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ue=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],de=["{","}","|","\\","^","`"].concat(ue),he=["'"].concat(de),xe=["%","/","?",";","#"].concat(he),Se=["/","?","#"],we=255,be=/^[+a-z0-9A-Z_-]{0,63}$/,Me=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Le={javascript:!0,"javascript:":!0},Ce={javascript:!0,"javascript:":!0},Ne={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Te=x("querystring");function De(Ve,Ie,Ze){if(Ve&&oe.isObject(Ve)&&Ve instanceof se)return Ve;var Qe=new se;return Qe.parse(Ve,Ie,Ze),Qe}se.prototype.parse=function(Ve,Ie,Ze){if(!oe.isString(Ve))throw new TypeError("Parameter 'url' must be a string, not "+(0,z.default)(Ve));var Qe=Ve.indexOf("?"),tt=Qe!==-1&&Qe<Ve.indexOf("#")?"?":"#",it=Ve.split(tt),ht=/\\/g;it[0]=it[0].replace(ht,"/"),Ve=it.join(tt);var Ge=Ve;if(Ge=Ge.trim(),!Ze&&Ve.split("#").length===1){var Xe=ae.exec(Ge);if(Xe)return this.path=Ge,this.href=Ge,this.pathname=Xe[1],Xe[2]?(this.search=Xe[2],Ie?this.query=Te.parse(this.search.substr(1)):this.query=this.search.substr(1)):Ie&&(this.search="",this.query={}),this}var ct=pe.exec(Ge);if(ct){ct=ct[0];var pt=ct.toLowerCase();this.protocol=pt,Ge=Ge.substr(ct.length)}if(Ze||ct||Ge.match(/^\/\/[^@\/]+@[^@\/]+/)){var ut=Ge.substr(0,2)==="//";ut&&!(ct&&Ce[ct])&&(Ge=Ge.substr(2),this.slashes=!0)}if(!Ce[ct]&&(ut||ct&&!Ne[ct])){for(var rt=-1,qe=0;qe<Se.length;qe++){var nt=Ge.indexOf(Se[qe]);nt!==-1&&(rt===-1||nt<rt)&&(rt=nt)}var xt,yt;rt===-1?yt=Ge.lastIndexOf("@"):yt=Ge.lastIndexOf("@",rt),yt!==-1&&(xt=Ge.slice(0,yt),Ge=Ge.slice(yt+1),this.auth=decodeURIComponent(xt)),rt=-1;for(var qe=0;qe<xe.length;qe++){var nt=Ge.indexOf(xe[qe]);nt!==-1&&(rt===-1||nt<rt)&&(rt=nt)}rt===-1&&(rt=Ge.length),this.host=Ge.slice(0,rt),Ge=Ge.slice(rt),this.parseHost(),this.hostname=this.hostname||"";var Rt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Rt)for(var Ot=this.hostname.split("."),qe=0,lt=Ot.length;qe<lt;qe++){var Ue=Ot[qe];if(Ue&&!Ue.match(be)){for(var $e="",le=0,fe=Ue.length;le<fe;le++)Ue.charCodeAt(le)>127?$e+="x":$e+=Ue[le];if(!$e.match(be)){var Fe=Ot.slice(0,qe),He=Ot.slice(qe+1),ye=Ue.match(Me);ye&&(Fe.push(ye[1]),He.unshift(ye[2])),He.length&&(Ge="/"+He.join(".")+Ge),this.hostname=Fe.join(".");break}}}this.hostname.length>we?this.hostname="":this.hostname=this.hostname.toLowerCase(),Rt||(this.hostname=ie.toASCII(this.hostname));var Re=this.port?":"+this.port:"",ze=this.hostname||"";this.host=ze+Re,this.href+=this.host,Rt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Ge[0]!=="/"&&(Ge="/"+Ge))}if(!Le[pt])for(var qe=0,lt=he.length;qe<lt;qe++){var Ke=he[qe];if(Ge.indexOf(Ke)!==-1){var We=encodeURIComponent(Ke);We===Ke&&(We=escape(Ke)),Ge=Ge.split(Ke).join(We)}}var st=Ge.indexOf("#");st!==-1&&(this.hash=Ge.substr(st),Ge=Ge.slice(0,st));var bt=Ge.indexOf("?");if(bt!==-1?(this.search=Ge.substr(bt),this.query=Ge.substr(bt+1),Ie&&(this.query=Te.parse(this.query)),Ge=Ge.slice(0,bt)):Ie&&(this.search="",this.query={}),Ge&&(this.pathname=Ge),Ne[pt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Re=this.pathname||"",at=this.search||"";this.path=Re+at}return this.href=this.format(),this};function Ee(Ve){return oe.isString(Ve)&&(Ve=De(Ve)),Ve instanceof se?Ve.format():se.prototype.format.call(Ve)}se.prototype.format=function(){var Ve=this.auth||"";Ve&&(Ve=encodeURIComponent(Ve),Ve=Ve.replace(/%3A/i,":"),Ve+="@");var Ie=this.protocol||"",Ze=this.pathname||"",Qe=this.hash||"",tt=!1,it="";this.host?tt=Ve+this.host:this.hostname&&(tt=Ve+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(tt+=":"+this.port)),this.query&&oe.isObject(this.query)&&Object.keys(this.query).length&&(it=Te.stringify(this.query));var ht=this.search||it&&"?"+it||"";return Ie&&Ie.substr(-1)!==":"&&(Ie+=":"),this.slashes||(!Ie||Ne[Ie])&&tt!==!1?(tt="//"+(tt||""),Ze&&Ze.charAt(0)!=="/"&&(Ze="/"+Ze)):tt||(tt=""),Qe&&Qe.charAt(0)!=="#"&&(Qe="#"+Qe),ht&&ht.charAt(0)!=="?"&&(ht="?"+ht),Ze=Ze.replace(/[?#]/g,function(Ge){return encodeURIComponent(Ge)}),ht=ht.replace("#","%23"),Ie+tt+Ze+ht+Qe};function Pe(Ve,Ie){return De(Ve,!1,!0).resolve(Ie)}se.prototype.resolve=function(Ve){return this.resolveObject(De(Ve,!1,!0)).format()};function Be(Ve,Ie){return Ve?De(Ve,!1,!0).resolveObject(Ie):Ie}se.prototype.resolveObject=function(Ve){if(oe.isString(Ve)){var Ie=new se;Ie.parse(Ve,!1,!0),Ve=Ie}for(var Ze=new se,Qe=Object.keys(this),tt=0;tt<Qe.length;tt++){var it=Qe[tt];Ze[it]=this[it]}if(Ze.hash=Ve.hash,Ve.href==="")return Ze.href=Ze.format(),Ze;if(Ve.slashes&&!Ve.protocol){for(var ht=Object.keys(Ve),Ge=0;Ge<ht.length;Ge++){var Xe=ht[Ge];Xe!=="protocol"&&(Ze[Xe]=Ve[Xe])}return Ne[Ze.protocol]&&Ze.hostname&&!Ze.pathname&&(Ze.path=Ze.pathname="/"),Ze.href=Ze.format(),Ze}if(Ve.protocol&&Ve.protocol!==Ze.protocol){if(!Ne[Ve.protocol]){for(var ct=Object.keys(Ve),pt=0;pt<ct.length;pt++){var ut=ct[pt];Ze[ut]=Ve[ut]}return Ze.href=Ze.format(),Ze}if(Ze.protocol=Ve.protocol,!Ve.host&&!Ce[Ve.protocol]){for(var lt=(Ve.pathname||"").split("/");lt.length&&!(Ve.host=lt.shift()););Ve.host||(Ve.host=""),Ve.hostname||(Ve.hostname=""),lt[0]!==""&<.unshift(""),lt.length<2&<.unshift(""),Ze.pathname=lt.join("/")}else Ze.pathname=Ve.pathname;if(Ze.search=Ve.search,Ze.query=Ve.query,Ze.host=Ve.host||"",Ze.auth=Ve.auth,Ze.hostname=Ve.hostname||Ve.host,Ze.port=Ve.port,Ze.pathname||Ze.search){var rt=Ze.pathname||"",qe=Ze.search||"";Ze.path=rt+qe}return Ze.slashes=Ze.slashes||Ve.slashes,Ze.href=Ze.format(),Ze}var nt=Ze.pathname&&Ze.pathname.charAt(0)==="/",xt=Ve.host||Ve.pathname&&Ve.pathname.charAt(0)==="/",yt=xt||nt||Ze.host&&Ve.pathname,Rt=yt,Ot=Ze.pathname&&Ze.pathname.split("/")||[],lt=Ve.pathname&&Ve.pathname.split("/")||[],Ue=Ze.protocol&&!Ne[Ze.protocol];if(Ue&&(Ze.hostname="",Ze.port=null,Ze.host&&(Ot[0]===""?Ot[0]=Ze.host:Ot.unshift(Ze.host)),Ze.host="",Ve.protocol&&(Ve.hostname=null,Ve.port=null,Ve.host&&(lt[0]===""?lt[0]=Ve.host:lt.unshift(Ve.host)),Ve.host=null),yt=yt&&(lt[0]===""||Ot[0]==="")),xt)Ze.host=Ve.host||Ve.host===""?Ve.host:Ze.host,Ze.hostname=Ve.hostname||Ve.hostname===""?Ve.hostname:Ze.hostname,Ze.search=Ve.search,Ze.query=Ve.query,Ot=lt;else if(lt.length)Ot||(Ot=[]),Ot.pop(),Ot=Ot.concat(lt),Ze.search=Ve.search,Ze.query=Ve.query;else if(!oe.isNullOrUndefined(Ve.search)){if(Ue){Ze.hostname=Ze.host=Ot.shift();var $e=Ze.host&&Ze.host.indexOf("@")>0?Ze.host.split("@"):!1;$e&&(Ze.auth=$e.shift(),Ze.host=Ze.hostname=$e.shift())}return Ze.search=Ve.search,Ze.query=Ve.query,(!oe.isNull(Ze.pathname)||!oe.isNull(Ze.search))&&(Ze.path=(Ze.pathname?Ze.pathname:"")+(Ze.search?Ze.search:"")),Ze.href=Ze.format(),Ze}if(!Ot.length)return Ze.pathname=null,Ze.search?Ze.path="/"+Ze.search:Ze.path=null,Ze.href=Ze.format(),Ze;for(var le=Ot.slice(-1)[0],fe=(Ze.host||Ve.host||Ot.length>1)&&(le==="."||le==="..")||le==="",Fe=0,He=Ot.length;He>=0;He--)le=Ot[He],le==="."?Ot.splice(He,1):le===".."?(Ot.splice(He,1),Fe++):Fe&&(Ot.splice(He,1),Fe--);if(!yt&&!Rt)for(;Fe--;Fe)Ot.unshift("..");yt&&Ot[0]!==""&&(!Ot[0]||Ot[0].charAt(0)!=="/")&&Ot.unshift(""),fe&&Ot.join("/").substr(-1)!=="/"&&Ot.push("");var ye=Ot[0]===""||Ot[0]&&Ot[0].charAt(0)==="/";if(Ue){Ze.hostname=Ze.host=ye?"":Ot.length?Ot.shift():"";var $e=Ze.host&&Ze.host.indexOf("@")>0?Ze.host.split("@"):!1;$e&&(Ze.auth=$e.shift(),Ze.host=Ze.hostname=$e.shift())}return yt=yt||Ze.host&&Ot.length,yt&&!ye&&Ot.unshift(""),Ot.length?Ze.pathname=Ot.join("/"):(Ze.pathname=null,Ze.path=null),(!oe.isNull(Ze.pathname)||!oe.isNull(Ze.search))&&(Ze.path=(Ze.pathname?Ze.pathname:"")+(Ze.search?Ze.search:"")),Ze.auth=Ve.auth||Ze.auth,Ze.slashes=Ze.slashes||Ve.slashes,Ze.href=Ze.format(),Ze},se.prototype.parseHost=function(){var Ve=this.host,Ie=ne.exec(Ve);Ie&&(Ie=Ie[0],Ie!==":"&&(this.port=Ie.substr(1)),Ve=Ve.substr(0,Ve.length-Ie.length)),Ve&&(this.hostname=Ve)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(x,Ae,me){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),z=re(x("@babel/runtime/helpers/typeof"));Ae.exports={isString:function(oe){return typeof oe=="string"},isObject:function(oe){return(0,z.default)(oe)==="object"&&oe!==null},isNull:function(oe){return oe===null},isNullOrUndefined:function(oe){return oe==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(x,Ae,me){"use strict";x("core-js/modules/es.number.constructor.js"),me.encodeURIComponent=function(re){try{return encodeURIComponent(re)}catch(z){return re}},me.escape=x("escape-html"),me.timestamp=function(z){if(z){var ie=z;return typeof ie=="string"&&(ie=Number(ie)),String(z).length===10&&(ie*=1e3),new Date(ie)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(x,Ae,me){(function(re,z){(function(){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),oe=ie(x("@babel/runtime/helpers/typeof"));x("core-js/modules/es.string.trim.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.array.concat.js");var se=x("util"),pe=x("url"),ne=x("http"),ae=x("https"),ue=x("debug")("urllib"),de=x("humanize-ms"),he=0,xe=Math.pow(2,31)-10,Se=/^https?:\/\//i;function we(Ce,Ne){return Ce===void 0?Ne:Ce}function be(Ce){return Ce?Ce.split(";")[0].trim().toLowerCase():""}function Me(Ce,Ne){return function(Te,De,Ee){if(Te)return Ne(Te);Ce({data:De,status:Ee.statusCode,headers:Ee.headers,res:Ee})}}me.TIMEOUTS=[de("300s"),de("300s")];var Le=["json","text"];me.request=function(Ne,Te,De){return arguments.length===2&&typeof Te=="function"&&(De=Te,Te=null),typeof De=="function"?me.requestWithCallback(Ne,Te,De):new Promise(function(Ee,Pe){me.requestWithCallback(Ne,Te,Me(Ee,Pe))})},me.requestWithCallback=function(Ne,Te,De){if(!Ne||typeof Ne!="string"&&(0,oe.default)(Ne)!=="object"){var Ee=se.format("expect request url to be a string or a http request options, but got %j",Ne);throw new Error(Ee)}arguments.length===2&&typeof Te=="function"&&(De=Te,Te=null),Te=Te||{},he>=xe&&(he=0);var Pe=++he;Te.requestUrls=Te.requestUrls||[];var Be={requestId:Pe,url:Ne,args:Te,ctx:Te.ctx};Te.emitter&&Te.emitter.emit("request",Be),Te.timeout=Te.timeout||me.TIMEOUTS,Te.maxRedirects=Te.maxRedirects||10,Te.streaming=Te.streaming||Te.customResponse;var Ve=Date.now(),Ie;typeof Ne=="string"?(Se.test(Ne)||(Ne="https://"+Ne),Ie=pe.parse(Ne)):Ie=Ne;var Ze=(Te.type||Te.method||Ie.method||"GET").toUpperCase(),Qe=Ie.port||80,tt=ne,it=we(Te.agent,me.agent),ht=Te.fixJSONCtlChars;Ie.protocol==="https:"&&(tt=ae,it=we(Te.httpsAgent,me.httpsAgent),Ie.port||(Qe=443));var Ge={host:Ie.hostname||Ie.host||"localhost",path:Ie.path||"/",method:Ze,port:Qe,agent:it,headers:Te.headers||{},lookup:Te.lookup};Array.isArray(Te.timeout)?Ge.requestTimeout=Te.timeout[Te.timeout.length-1]:typeof Te.timeout!="undefined"&&(Ge.requestTimeout=Te.timeout);var Xe=Te.auth||Ie.auth;Xe&&(Ge.auth=Xe);var ct=Te.content||Te.data,pt=Ze==="GET"||Ze==="HEAD"||Te.dataAsQueryString;if(!Te.content&&ct&&!(typeof ct=="string"||z.isBuffer(ct)))if(pt)ct=Te.nestedQuerystring?qs.stringify(ct):querystring.stringify(ct);else{var ut=Ge.headers["Content-Type"]||Ge.headers["content-type"];ut||(Te.contentType==="json"?ut="application/json":ut="application/x-www-form-urlencoded",Ge.headers["Content-Type"]=ut),be(ut)==="application/json"?ct=JSON.stringify(ct):ct=Te.nestedQuerystring?qs.stringify(ct):querystring.stringify(ct)}pt&&ct&&(Ge.path+=(Ie.query?"&":"?")+ct,ct=null);var rt=0;if(ct){var qe=ct.length;z.isBuffer(ct)||(qe=z.byteLength(ct)),rt=Ge.headers["Content-Length"]=qe}Te.dataType==="json"&&(Ge.headers.Accept="application/json"),typeof Te.beforeRequest=="function"&&Te.beforeRequest(Ge);var nt=null,xt=null,yt=null,Rt=!1,Ot=!1,lt=0,Ue=-1,$e=!1,le="",fe="",Fe=null;Te.timing&&(Fe={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function He(){nt&&(clearTimeout(nt),nt=null)}function ye(){xt&&(clearTimeout(xt),xt=null)}function Re(Bt,St,ft){if(ye(),!De){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Pe,re.pid,Ge.method,Ne),Bt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),Pe,re.pid,Bt.name,Bt.message,Bt.stack);return}var dt=De;De=null;var Ft={};ft&&(Ue=ft.statusCode,Ft=ft.headers);var zt=Date.now()-Ve;Fe&&(Fe.contentDownload=zt),ue("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",zt,lt,Ue,Ge.method,Ge.host,Ge.path,Ot,Fe);var Zt={status:Ue,statusCode:Ue,headers:Ft,size:lt,aborted:$e,rt:zt,keepAliveSocket:Ot,data:St,requestUrls:Te.requestUrls,timing:Fe,remoteAddress:le,remotePort:fe};if(Bt){var tr="";it&&typeof it.getCurrentStatus=="function"&&(tr=", agent status: "+JSON.stringify(it.getCurrentStatus())),Bt.message+=", "+Ge.method+" "+Ne+" "+Ue+" (connected: "+Rt+", keepalive socket: "+Ot+tr+`)
|
|
|
headers: `+JSON.stringify(Ft),Bt.data=St,Bt.path=Ge.path,Bt.status=Ue,Bt.headers=Ft,Bt.res=Zt}dt(Bt,St,Te.streaming?ft:Zt),Te.emitter&&(Be.url=Ne,Be.socket=Ct&&Ct.connection,Be.options=Ge,Be.size=rt,Te.emitter.emit("response",{requestId:Pe,error:Bt,ctx:Te.ctx,req:Be,res:Zt}))}function ze(Bt){var St=null;if(Te.followRedirect&&statuses.redirect[Bt.statusCode]){Te._followRedirectCount=(Te._followRedirectCount||0)+1;var ft=Bt.headers.location;if(!ft)St=new Error("Got statusCode "+Bt.statusCode+" but cannot resolve next location from headers"),St.name="FollowRedirectError";else if(Te._followRedirectCount>Te.maxRedirects)St=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Ne),St.name="MaxRedirectError";else{var dt=Te.formatRedirectUrl?Te.formatRedirectUrl(Ne,ft):pe.resolve(Ne,ft);ue("Request#%d %s: `redirected` from %s to %s",Pe,Ge.path,Ne,dt),ye(),Te.headers&&Te.headers.Host&&Se.test(ft)&&(Te.headers.Host=null);var Ft=De;return De=null,me.requestWithCallback(dt,Te,Ft),{redirect:!0,error:null}}}return{redirect:!1,error:St}}Te.gzip&&!Ge.headers["Accept-Encoding"]&&!Ge.headers["accept-encoding"]&&(Ge.headers["Accept-Encoding"]="gzip");function Ke(Bt,St,ft){var dt=Bt.headers["content-encoding"];return ft(null,St,dt)}var We=Te.writeStream;ue("Request#%d %s %s with headers %j, options.path: %s",Pe,Ze,Ne,Ge.headers,Ge.path),Te.requestUrls.push(Ne);function st(Bt){if(Fe&&(Fe.waiting=Date.now()-Ve),ue("Request#%d %s `req response` event emit: status %d, headers: %j",Pe,Ne,Bt.statusCode,Bt.headers),Te.streaming){var St=ze(Bt);if(St.redirect){Bt.resume();return}return St.error?(Bt.resume(),Re(St.error,null,Bt)):Re(null,null,Bt)}if(Bt.on("close",function(){ue("Request#%d %s: `res close` event emit, total size %d",Pe,Ne,lt)}),Bt.on("error",function(){ue("Request#%d %s: `res error` event emit, total size %d",Pe,Ne,lt)}),Bt.on("aborted",function(){$e=!0,ue("Request#%d %s: `res aborted` event emit, total size %d",Pe,Ne,lt)}),We){var ft=ze(Bt);if(ft.redirect){Bt.resume();return}return ft.error?(Bt.resume(),We.end(),Re(ft.error,null,Bt)):(Te.consumeWriteStream===!1?Bt.on("end",Re.bind(null,null,null,Bt)):We.on("close",function(){ue("Request#%d %s: writeStream close event emitted",Pe,Ne),Re(yt||null,null,Bt)}),Bt.pipe(We))}var dt=[];Bt.on("data",function(Ft){ue("Request#%d %s: `res data` event emit, size %d",Pe,Ne,Ft.length),lt+=Ft.length,dt.push(Ft)}),Bt.on("end",function(){var Ft=z.concat(dt,lt);if(ue("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Pe,Ne,lt,Bt._dumped),yt)return Re(yt,Ft,Bt);var zt=ze(Bt);if(zt.error)return Re(zt.error,Ft,Bt);zt.redirect||Ke(Bt,Ft,function(Zt,tr,mr){if(Zt)return Re(Zt,Ft,Bt);if(!mr&&Le.indexOf(Te.dataType)>=0){try{tr=decodeBodyByCharset(tr,Bt)}catch(zr){return ue("decodeBodyByCharset error: %s",zr),Re(null,tr,Bt)}if(Te.dataType==="json")if(lt===0)tr=null;else{var Er=parseJSON(tr,ht);Er.error?Zt=Er.error:tr=Er.data}}$e&&ue("Request#%d %s: Remote socket was terminated before `response.end()` was called",Pe,Ne),Re(Zt,tr,Bt)})})}var bt,at;Array.isArray(Te.timeout)?(bt=de(Te.timeout[0]),at=de(Te.timeout[1])):bt=at=de(Te.timeout),ue("ConnectTimeout: %d, ResponseTimeout: %d",bt,at);function kt(){ue("Connect timer ticking, timeout: %d",bt),nt=setTimeout(function(){nt=null,Ue===-1&&(Ue=-2);var Bt="Connect timeout for "+bt+"ms",St="ConnectionTimeoutError";Ct.socket||(St="SocketAssignTimeoutError",Bt+=", working sockets is full"),yt=new Error(Bt),yt.name=St,yt.requestId=Pe,ue("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Pe,Ne,yt.name,Bt,Rt),$t()},bt)}function Ht(){ue("Response timer ticking, timeout: %d",at),xt=setTimeout(function(){xt=null;var Bt="Response timeout for "+at+"ms",St="ResponseTimeoutError";yt=new Error(Bt),yt.name=St,yt.requestId=Pe,ue("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Pe,Ne,yt.name,Bt,Rt),$t()},at)}var Ct;Ge.mode=Te.mode?Te.mode:"";try{Ct=tt.request(Ge,st)}catch(Bt){return Re(Bt)}typeof window=="undefined"?kt():Ct.on("requestTimeout",function(){Ue===-1&&(Ue=-2);var Bt="Connect timeout for "+bt+"ms",St="ConnectionTimeoutError";yt=new Error(Bt),yt.name=St,yt.requestId=Pe,$t()});function $t(){ue("Request#%d %s abort, connected: %s",Pe,Ne,Rt),Ct.socket||(yt.noSocket=!0,Re(yt)),Ct.abort()}return Fe&&Ct.on("finish",function(){Fe.requestSent=Date.now()-Ve}),Ct.once("socket",function(Bt){Fe&&(Fe.queuing=Date.now()-Ve);var St=Bt.readyState;if(St==="opening"){Bt.once("lookup",function(ft,dt,Ft){ue("Request#%d %s lookup: %s, %s, %s",Pe,Ne,ft,dt,Ft),Fe&&(Fe.dnslookup=Date.now()-Ve),dt&&(le=dt)}),Bt.once("connect",function(){Fe&&(Fe.connected=Date.now()-Ve),He(),Ht(),ue("Request#%d %s new socket connected",Pe,Ne),Rt=!0,le||(le=Bt.remoteAddress),fe=Bt.remotePort});return}ue("Request#%d %s reuse socket connected, readyState: %s",Pe,Ne,St),Rt=!0,Ot=!0,le||(le=Bt.remoteAddress),fe=Bt.remotePort,He(),Ht()}),Ct.on("error",function(Bt){(Bt.name==="Error"||Bt.name==="TypeError")&&(Bt.name=Rt?"ResponseError":"RequestError"),Bt.message+=' (req "error")',ue("Request#%d %s `req error` event emit, %s: %s",Pe,Ne,Bt.name,Bt.message),Re(yt||Bt)}),We&&We.once("error",function(Bt){Bt.message+=' (writeStream "error")',yt=Bt,ue("Request#%d %s `writeStream error` event emit, %s: %s",Pe,Ne,Bt.name,Bt.message),$t()}),Te.stream?(Te.stream.pipe(Ct),Te.stream.once("error",function(Bt){Bt.message+=' (stream "error")',yt=Bt,ue("Request#%d %s `readStream error` event emit, %s: %s",Pe,Ne,Bt.name,Bt.message),$t()})):Ct.end(ct),Ct.requestId=Pe,Ct}}).call(this)}).call(this,x("_process"),x("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},50371:function(gr,Wt){"use strict";function ke(){const Ye=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let vt=1;vt<arguments.length;vt++){const x=vt<0||arguments.length<=vt?void 0:arguments[vt];x&&Object.keys(x).forEach(Ae=>{const me=x[Ae];me!==void 0&&(Ye[Ae]=me)})}return Ye}Wt.Z=ke},77578:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Ye}});const Ye=vt=>vt?typeof vt=="function"?vt():vt:null},13845:function(gr,Wt,ke){"use strict";ke.d(Wt,{F:function(){return Ye},Z:function(){return vt}});function Ye(x){return x!=null&&x===x.window}function vt(x,Ae){var me,re;if(typeof window=="undefined")return 0;const z=Ae?"scrollTop":"scrollLeft";let ie=0;return Ye(x)?ie=x[Ae?"pageYOffset":"pageXOffset"]:x instanceof Document?ie=x.documentElement[z]:(x instanceof HTMLElement||x)&&(ie=x[z]),x&&!Ye(x)&&typeof ie!="number"&&(ie=(re=((me=x.ownerDocument)!==null&&me!==void 0?me:x).documentElement)===null||re===void 0?void 0:re[z]),ie}},56762:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return vt}});var Ye=ke(59301);function vt(){const[,x]=Ye.useReducer(Ae=>Ae+1,0);return x}},68031:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Ae}});var Ye=ke(16089);function vt(me,re,z,ie){const oe=z-re;return me/=ie/2,me<1?oe/2*me*me*me+re:oe/2*((me-=2)*me*me+2)+re}var x=ke(13845);function Ae(me){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:z=()=>window,callback:ie,duration:oe=450}=re,se=z(),pe=(0,x.Z)(se,!0),ne=Date.now(),ae=()=>{const de=Date.now()-ne,he=vt(de>oe?oe:de,pe,me,oe);(0,x.F)(se)?se.scrollTo(window.pageXOffset,he):se instanceof Document||se.constructor.name==="HTMLDocument"?se.documentElement.scrollTop=he:se.scrollTop=he,de<oe?(0,Ye.Z)(ae):typeof ie=="function"&&ie()};(0,Ye.Z)(ae)}},19080:function(gr,Wt,ke){"use strict";ke.d(Wt,{F:function(){return me},Z:function(){return Ae}});var Ye=ke(92310),vt=ke.n(Ye);const x=null;function Ae(re,z,ie){return vt()({[`${re}-status-success`]:z==="success",[`${re}-status-warning`]:z==="warning",[`${re}-status-error`]:z==="error",[`${re}-status-validating`]:z==="validating",[`${re}-has-feedback`]:ie})}const me=(re,z)=>z||re},24905:function(gr,Wt,ke){"use strict";ke.d(Wt,{default:function(){return Ne}});var Ye=ke(92310),vt=ke.n(Ye),x=ke(5630),Ae=ke(59301),me=ke(36355),re=ke(1684),z=ke(32441),oe=Ae.createContext(null),se=ke(98447),pe=ke(14088),ne=ke(4572),ae=function(Te,De){var Ee={};for(var Pe in Te)Object.prototype.hasOwnProperty.call(Te,Pe)&&De.indexOf(Pe)<0&&(Ee[Pe]=Te[Pe]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Pe=Object.getOwnPropertySymbols(Te);Be<Pe.length;Be++)De.indexOf(Pe[Be])<0&&Object.prototype.propertyIsEnumerable.call(Te,Pe[Be])&&(Ee[Pe[Be]]=Te[Pe[Be]]);return Ee};const ue=(Te,De)=>{var Ee;const{prefixCls:Pe,className:Be,rootClassName:Ve,children:Ie,indeterminate:Ze=!1,style:Qe,onMouseEnter:tt,onMouseLeave:it,skipGroup:ht=!1,disabled:Ge}=Te,Xe=ae(Te,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:ct,direction:pt,checkbox:ut}=Ae.useContext(me.E_),rt=Ae.useContext(oe),{isFormItemInput:qe}=Ae.useContext(z.aM),nt=Ae.useContext(re.Z),xt=(Ee=(rt==null?void 0:rt.disabled)||Ge)!==null&&Ee!==void 0?Ee:nt,yt=Ae.useRef(Xe.value);Ae.useEffect(()=>{rt==null||rt.registerValue(Xe.value)},[]),Ae.useEffect(()=>{if(!ht)return Xe.value!==yt.current&&(rt==null||rt.cancelValue(yt.current),rt==null||rt.registerValue(Xe.value),yt.current=Xe.value),()=>rt==null?void 0:rt.cancelValue(Xe.value)},[Xe.value]);const Rt=ct("checkbox",Pe),[Ot,lt]=(0,se.ZP)(Rt),Ue=Object.assign({},Xe);rt&&!ht&&(Ue.onChange=function(){Xe.onChange&&Xe.onChange.apply(Xe,arguments),rt.toggleOption&&rt.toggleOption({label:Ie,value:Xe.value})},Ue.name=rt.name,Ue.checked=rt.value.includes(Xe.value));const $e=vt()(`${Rt}-wrapper`,{[`${Rt}-rtl`]:pt==="rtl",[`${Rt}-wrapper-checked`]:Ue.checked,[`${Rt}-wrapper-disabled`]:xt,[`${Rt}-wrapper-in-form-item`]:qe},ut==null?void 0:ut.className,Be,Ve,lt),le=vt()({[`${Rt}-indeterminate`]:Ze},ne.A,lt),fe=Ze?"mixed":void 0;return Ot(Ae.createElement(pe.Z,{component:"Checkbox",disabled:xt},Ae.createElement("label",{className:$e,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),Qe),onMouseEnter:tt,onMouseLeave:it},Ae.createElement(x.Z,Object.assign({"aria-checked":fe},Ue,{prefixCls:Rt,className:le,disabled:xt,ref:De})),Ie!==void 0&&Ae.createElement("span",null,Ie))))};var he=Ae.forwardRef(ue),xe=ke(94480),Se=ke(2738),we=function(Te,De){var Ee={};for(var Pe in Te)Object.prototype.hasOwnProperty.call(Te,Pe)&&De.indexOf(Pe)<0&&(Ee[Pe]=Te[Pe]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Pe=Object.getOwnPropertySymbols(Te);Be<Pe.length;Be++)De.indexOf(Pe[Be])<0&&Object.prototype.propertyIsEnumerable.call(Te,Pe[Be])&&(Ee[Pe[Be]]=Te[Pe[Be]]);return Ee};const be=(Te,De)=>{const{defaultValue:Ee,children:Pe,options:Be=[],prefixCls:Ve,className:Ie,rootClassName:Ze,style:Qe,onChange:tt}=Te,it=we(Te,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ht,direction:Ge}=Ae.useContext(me.E_),[Xe,ct]=Ae.useState(it.value||Ee||[]),[pt,ut]=Ae.useState([]);Ae.useEffect(()=>{"value"in it&&ct(it.value||[])},[it.value]);const rt=Ae.useMemo(()=>Be.map(Fe=>typeof Fe=="string"||typeof Fe=="number"?{label:Fe,value:Fe}:Fe),[Be]),qe=Fe=>{ut(He=>He.filter(ye=>ye!==Fe))},nt=Fe=>{ut(He=>[].concat((0,xe.Z)(He),[Fe]))},xt=Fe=>{const He=Xe.indexOf(Fe.value),ye=(0,xe.Z)(Xe);He===-1?ye.push(Fe.value):ye.splice(He,1),"value"in it||ct(ye),tt==null||tt(ye.filter(Re=>pt.includes(Re)).sort((Re,ze)=>{const Ke=rt.findIndex(st=>st.value===Re),We=rt.findIndex(st=>st.value===ze);return Ke-We}))},yt=ht("checkbox",Ve),Rt=`${yt}-group`,[Ot,lt]=(0,se.ZP)(yt),Ue=(0,Se.Z)(it,["value","disabled"]),$e=Be.length?rt.map(Fe=>Ae.createElement(he,{prefixCls:yt,key:Fe.value.toString(),disabled:"disabled"in Fe?Fe.disabled:it.disabled,value:Fe.value,checked:Xe.includes(Fe.value),onChange:Fe.onChange,className:`${Rt}-item`,style:Fe.style,title:Fe.title},Fe.label)):Pe,le={toggleOption:xt,value:Xe,disabled:it.disabled,name:it.name,registerValue:nt,cancelValue:qe},fe=vt()(Rt,{[`${Rt}-rtl`]:Ge==="rtl"},Ie,Ze,lt);return Ot(Ae.createElement("div",Object.assign({className:fe,style:Qe},Ue,{ref:De}),Ae.createElement(oe.Provider,{value:le},$e)))},Me=Ae.forwardRef(be);var Le=Ae.memo(Me);const Ce=he;Ce.Group=Le,Ce.__ANT_CHECKBOX=!0;var Ne=Ce},98447:function(gr,Wt,ke){"use strict";ke.d(Wt,{C2:function(){return me}});var Ye=ke(17313),vt=ke(37613),x=ke(83116);const Ae=re=>{const{checkboxCls:z}=re,ie=`${z}-wrapper`;return[{[`${z}-group`]:Object.assign(Object.assign({},(0,Ye.Wf)(re)),{display:"inline-flex",flexWrap:"wrap",columnGap:re.marginXS,[`> ${re.antCls}-row`]:{flex:1}}),[ie]:Object.assign(Object.assign({},(0,Ye.Wf)(re)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ie}`]:{marginInlineStart:0},[`&${ie}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[z]:Object.assign(Object.assign({},(0,Ye.Wf)(re)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:re.borderRadiusSM,alignSelf:"center",[`${z}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${z}-inner`]:Object.assign({},(0,Ye.oN)(re))},[`${z}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:re.checkboxSize,height:re.checkboxSize,direction:"ltr",backgroundColor:re.colorBgContainer,border:`${re.lineWidth}px ${re.lineType} ${re.colorBorder}`,borderRadius:re.borderRadiusSM,borderCollapse:"separate",transition:`all ${re.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:re.checkboxSize/14*5,height:re.checkboxSize/14*8,border:`${re.lineWidthBold}px solid ${re.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${re.motionDurationFast} ${re.motionEaseInBack}, opacity ${re.motionDurationFast}`}},"& + span":{paddingInlineStart:re.paddingXS,paddingInlineEnd:re.paddingXS}})},{[`
|
|
|
${ie}:not(${ie}-disabled),
|
|
|
${z}:not(${z}-disabled)
|
|
|
`]:{[`&:hover ${z}-inner`]:{borderColor:re.colorPrimary}},[`${ie}:not(${ie}-disabled)`]:{[`&:hover ${z}-checked:not(${z}-disabled) ${z}-inner`]:{backgroundColor:re.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${z}-checked:not(${z}-disabled):after`]:{borderColor:re.colorPrimaryHover}}},{[`${z}-checked`]:{[`${z}-inner`]:{backgroundColor:re.colorPrimary,borderColor:re.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${re.motionDurationMid} ${re.motionEaseOutBack} ${re.motionDurationFast}`}}},[`
|
|
|
${ie}-checked:not(${ie}-disabled),
|
|
|
${z}-checked:not(${z}-disabled)
|
|
|
`]:{[`&:hover ${z}-inner`]:{backgroundColor:re.colorPrimaryHover,borderColor:"transparent"}}},{[z]:{"&-indeterminate":{[`${z}-inner`]:{backgroundColor:re.colorBgContainer,borderColor:re.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:re.fontSizeLG/2,height:re.fontSizeLG/2,backgroundColor:re.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${ie}-disabled`]:{cursor:"not-allowed"},[`${z}-disabled`]:{[`&, ${z}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${z}-inner`]:{background:re.colorBgContainerDisabled,borderColor:re.colorBorder,"&:after":{borderColor:re.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:re.colorTextDisabled},[`&${z}-indeterminate ${z}-inner::after`]:{background:re.colorTextDisabled}}}]};function me(re,z){const ie=(0,vt.TS)(z,{checkboxCls:`.${re}`,checkboxSize:z.controlInteractiveSize});return[Ae(ie)]}Wt.ZP=(0,x.Z)("Checkbox",(re,z)=>{let{prefixCls:ie}=z;return[me(ie,re)]})},36381:function(gr,Wt,ke){"use strict";ke.d(Wt,{default:function(){return Ue}});var Ye=ke(38819),vt=ke(92310),x=ke.n(vt),Ae=ke(54476),me=ke(94480),re=ke(42978),z=ke(76190),ie=ke(18929),oe=ke(48736),se=ke(59301),pe=ke(75931),ne=ke(11592),ae=ke(20068),ue=ke(77900),de=ke(10228),he=se.forwardRef(function($e,le){var fe=$e.prefixCls,Fe=$e.forceRender,He=$e.className,ye=$e.style,Re=$e.children,ze=$e.isActive,Ke=$e.role,We=se.useState(ze||Fe),st=(0,re.Z)(We,2),bt=st[0],at=st[1];return se.useEffect(function(){(Fe||ze)&&at(!0)},[Fe,ze]),bt?se.createElement("div",{ref:le,className:x()("".concat(fe,"-content"),(0,ae.Z)((0,ae.Z)({},"".concat(fe,"-content-active"),ze),"".concat(fe,"-content-inactive"),!ze),He),style:ye,role:Ke},se.createElement("div",{className:"".concat(fe,"-content-box")},Re)):null});he.displayName="PanelContent";var xe=he,Se=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],we=se.forwardRef(function($e,le){var fe=$e.showArrow,Fe=fe===void 0?!0:fe,He=$e.headerClass,ye=$e.isActive,Re=$e.onItemClick,ze=$e.forceRender,Ke=$e.className,We=$e.prefixCls,st=$e.collapsible,bt=$e.accordion,at=$e.panelKey,kt=$e.extra,Ht=$e.header,Ct=$e.expandIcon,$t=$e.openMotion,Bt=$e.destroyInactivePanel,St=$e.children,ft=(0,pe.Z)($e,Se),dt=st==="disabled",Ft=st==="header",zt=st==="icon",Zt=kt!=null&&typeof kt!="boolean",tr=function(){Re==null||Re(at)},mr=function(sn){(sn.key==="Enter"||sn.keyCode===de.Z.ENTER||sn.which===de.Z.ENTER)&&tr()},Er=typeof Ct=="function"?Ct($e):se.createElement("i",{className:"arrow"});Er&&(Er=se.createElement("div",{className:"".concat(We,"-expand-icon"),onClick:["header","icon"].includes(st)?tr:void 0},Er));var zr=x()((0,ae.Z)((0,ae.Z)((0,ae.Z)({},"".concat(We,"-item"),!0),"".concat(We,"-item-active"),ye),"".concat(We,"-item-disabled"),dt),Ke),jr=x()(He,(0,ae.Z)((0,ae.Z)((0,ae.Z)({},"".concat(We,"-header"),!0),"".concat(We,"-header-collapsible-only"),Ft),"".concat(We,"-icon-collapsible-only"),zt)),Tr={className:jr,"aria-expanded":ye,"aria-disabled":dt,onKeyDown:mr};return!Ft&&!zt&&(Tr.onClick=tr,Tr.role=bt?"tab":"button",Tr.tabIndex=dt?-1:0),se.createElement("div",(0,Ae.Z)({},ft,{ref:le,className:zr}),se.createElement("div",Tr,Fe&&Er,se.createElement("span",{className:"".concat(We,"-header-text"),onClick:st==="header"?tr:void 0},Ht),Zt&&se.createElement("div",{className:"".concat(We,"-extra")},kt)),se.createElement(ue.default,(0,Ae.Z)({visible:ye,leavedClassName:"".concat(We,"-content-hidden")},$t,{forceRender:ze,removeOnLeave:Bt}),function(Vr,sn){var vn=Vr.className,en=Vr.style;return se.createElement(xe,{ref:sn,prefixCls:We,className:vn,style:en,isActive:ye,forceRender:ze,role:bt?"tabpanel":void 0},St)}))}),be=we,Me=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Le=function(le,fe){var Fe=fe.prefixCls,He=fe.accordion,ye=fe.collapsible,Re=fe.destroyInactivePanel,ze=fe.onItemClick,Ke=fe.activeKey,We=fe.openMotion,st=fe.expandIcon;return le.map(function(bt,at){var kt=bt.children,Ht=bt.label,Ct=bt.key,$t=bt.collapsible,Bt=bt.onItemClick,St=bt.destroyInactivePanel,ft=(0,pe.Z)(bt,Me),dt=String(Ct!=null?Ct:at),Ft=$t!=null?$t:ye,zt=St!=null?St:Re,Zt=function(Er){Ft!=="disabled"&&(ze(Er),Bt==null||Bt(Er))},tr=!1;return He?tr=Ke[0]===dt:tr=Ke.indexOf(dt)>-1,se.createElement(be,(0,Ae.Z)({},ft,{prefixCls:Fe,key:dt,panelKey:dt,isActive:tr,accordion:He,openMotion:We,expandIcon:st,header:Ht,collapsible:Ft,onItemClick:Zt,destroyInactivePanel:zt}),kt)})},Ce=function(le,fe,Fe){if(!le)return null;var He=Fe.prefixCls,ye=Fe.accordion,Re=Fe.collapsible,ze=Fe.destroyInactivePanel,Ke=Fe.onItemClick,We=Fe.activeKey,st=Fe.openMotion,bt=Fe.expandIcon,at=le.key||String(fe),kt=le.props,Ht=kt.header,Ct=kt.headerClass,$t=kt.destroyInactivePanel,Bt=kt.collapsible,St=kt.onItemClick,ft=!1;ye?ft=We[0]===at:ft=We.indexOf(at)>-1;var dt=Bt!=null?Bt:Re,Ft=function(tr){dt!=="disabled"&&(Ke(tr),St==null||St(tr))},zt={key:at,panelKey:at,header:Ht,headerClass:Ct,isActive:ft,prefixCls:He,destroyInactivePanel:$t!=null?$t:ze,openMotion:st,accordion:ye,children:le.props.children,onItemClick:Ft,expandIcon:bt,collapsible:dt};return typeof le.type=="string"?le:(Object.keys(zt).forEach(function(Zt){typeof zt[Zt]=="undefined"&&delete zt[Zt]}),se.cloneElement(le,zt))};function Ne($e,le,fe){return Array.isArray($e)?Le($e,fe):(0,ne.Z)(le).map(function(Fe,He){return Ce(Fe,He,fe)})}var Te=Ne,De=ke(26112);function Ee($e){var le=$e;if(!Array.isArray(le)){var fe=(0,z.Z)(le);le=fe==="number"||fe==="string"?[le]:[]}return le.map(function(Fe){return String(Fe)})}var Pe=se.forwardRef(function($e,le){var fe=$e.prefixCls,Fe=fe===void 0?"rc-collapse":fe,He=$e.destroyInactivePanel,ye=He===void 0?!1:He,Re=$e.style,ze=$e.accordion,Ke=$e.className,We=$e.children,st=$e.collapsible,bt=$e.openMotion,at=$e.expandIcon,kt=$e.activeKey,Ht=$e.defaultActiveKey,Ct=$e.onChange,$t=$e.items,Bt=x()(Fe,Ke),St=(0,ie.Z)([],{value:kt,onChange:function(mr){return Ct==null?void 0:Ct(mr)},defaultValue:Ht,postState:Ee}),ft=(0,re.Z)(St,2),dt=ft[0],Ft=ft[1],zt=function(mr){return Ft(function(){if(ze)return dt[0]===mr?[]:[mr];var Er=dt.indexOf(mr),zr=Er>-1;return zr?dt.filter(function(jr){return jr!==mr}):[].concat((0,me.Z)(dt),[mr])})};(0,oe.ZP)(!We,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Zt=Te($t,We,{prefixCls:Fe,accordion:ze,openMotion:bt,expandIcon:at,collapsible:st,destroyInactivePanel:ye,onItemClick:zt,activeKey:dt});return se.createElement("div",(0,Ae.Z)({ref:le,className:Bt,style:Re,role:ze?"tablist":void 0},(0,De.Z)($e,{aria:!0,data:!0})),Zt)}),Be=Object.assign(Pe,{Panel:be}),Ve=Be,Ie=Be.Panel,Ze=ke(2738),Qe=ke(62892),tt=ke(92343),it=ke(36355),ht=ke(19716),Xe=se.forwardRef(($e,le)=>{const{getPrefixCls:fe}=se.useContext(it.E_),{prefixCls:Fe,className:He,showArrow:ye=!0}=$e,Re=fe("collapse",Fe),ze=x()({[`${Re}-no-arrow`]:!ye},He);return se.createElement(Ve.Panel,Object.assign({ref:le},$e,{prefixCls:Re,className:ze}))}),ct=ke(17313),pt=ke(8378),ut=ke(83116),rt=ke(37613);const qe=$e=>{const{componentCls:le,contentBg:fe,padding:Fe,headerBg:He,headerPadding:ye,collapseHeaderPaddingSM:Re,collapseHeaderPaddingLG:ze,collapsePanelBorderRadius:Ke,lineWidth:We,lineType:st,colorBorder:bt,colorText:at,colorTextHeading:kt,colorTextDisabled:Ht,fontSize:Ct,fontSizeLG:$t,lineHeight:Bt,marginSM:St,paddingSM:ft,paddingLG:dt,paddingXS:Ft,motionDurationSlow:zt,fontSizeIcon:Zt,contentPadding:tr}=$e,mr=`${We}px ${st} ${bt}`;return{[le]:Object.assign(Object.assign({},(0,ct.Wf)($e)),{backgroundColor:He,border:mr,borderBottom:0,borderRadius:`${Ke}px`,"&-rtl":{direction:"rtl"},[`& > ${le}-item`]:{borderBottom:mr,"&:last-child":{[`
|
|
|
&,
|
|
|
& > ${le}-header`]:{borderRadius:`0 0 ${Ke}px ${Ke}px`}},[`> ${le}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:ye,color:kt,lineHeight:Bt,cursor:"pointer",transition:`all ${zt}, visibility 0s`,[`> ${le}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${le}-expand-icon`]:{height:Ct*Bt,display:"flex",alignItems:"center",paddingInlineEnd:St},[`${le}-arrow`]:Object.assign(Object.assign({},(0,ct.Ro)()),{fontSize:Zt,svg:{transition:`transform ${zt}`}}),[`${le}-header-text`]:{marginInlineEnd:"auto"}},[`${le}-header-collapsible-only`]:{cursor:"default",[`${le}-header-text`]:{flex:"none",cursor:"pointer"}},[`${le}-icon-collapsible-only`]:{cursor:"default",[`${le}-expand-icon`]:{cursor:"pointer"}}},[`${le}-content`]:{color:at,backgroundColor:fe,borderTop:mr,[`& > ${le}-content-box`]:{padding:tr},"&-hidden":{display:"none"}},"&-small":{[`> ${le}-item`]:{[`> ${le}-header`]:{padding:Re,paddingInlineStart:Ft,[`> ${le}-expand-icon`]:{marginInlineStart:ft-Ft}},[`> ${le}-content > ${le}-content-box`]:{padding:ft}}},"&-large":{[`> ${le}-item`]:{fontSize:$t,[`> ${le}-header`]:{padding:ze,paddingInlineStart:Fe,[`> ${le}-expand-icon`]:{height:$t*Bt,marginInlineStart:dt-Fe}},[`> ${le}-content > ${le}-content-box`]:{padding:dt}}},[`${le}-item:last-child`]:{[`> ${le}-content`]:{borderRadius:`0 0 ${Ke}px ${Ke}px`}},[`& ${le}-item-disabled > ${le}-header`]:{"\n &,\n & > .arrow\n ":{color:Ht,cursor:"not-allowed"}},[`&${le}-icon-position-end`]:{[`& > ${le}-item`]:{[`> ${le}-header`]:{[`${le}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:St}}}}})}},nt=$e=>{const{componentCls:le}=$e,fe=`> ${le}-item > ${le}-header ${le}-arrow svg`;return{[`${le}-rtl`]:{[fe]:{transform:"rotate(180deg)"}}}},xt=$e=>{const{componentCls:le,headerBg:fe,paddingXXS:Fe,colorBorder:He}=$e;return{[`${le}-borderless`]:{backgroundColor:fe,border:0,[`> ${le}-item`]:{borderBottom:`1px solid ${He}`},[`
|
|
|
> ${le}-item:last-child,
|
|
|
> ${le}-item:last-child ${le}-header
|
|
|
`]:{borderRadius:0},[`> ${le}-item:last-child`]:{borderBottom:0},[`> ${le}-item > ${le}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${le}-item > ${le}-content > ${le}-content-box`]:{paddingTop:Fe}}}},yt=$e=>{const{componentCls:le,paddingSM:fe}=$e;return{[`${le}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${le}-item`]:{borderBottom:0,[`> ${le}-content`]:{backgroundColor:"transparent",border:0,[`> ${le}-content-box`]:{paddingBlock:fe}}}}}};var Rt=(0,ut.Z)("Collapse",$e=>{const le=(0,rt.TS)($e,{collapseHeaderPaddingSM:`${$e.paddingXS}px ${$e.paddingSM}px`,collapseHeaderPaddingLG:`${$e.padding}px ${$e.paddingLG}px`,collapsePanelBorderRadius:$e.borderRadiusLG});return[qe(le),xt(le),yt(le),nt(le),(0,pt.Z)(le)]},$e=>({headerPadding:`${$e.paddingSM}px ${$e.padding}px`,headerBg:$e.colorFillAlter,contentPadding:`${$e.padding}px 16px`,contentBg:$e.colorBgContainer})),lt=Object.assign(se.forwardRef(($e,le)=>{const{getPrefixCls:fe,direction:Fe,collapse:He}=se.useContext(it.E_),{prefixCls:ye,className:Re,rootClassName:ze,style:Ke,bordered:We=!0,ghost:st,size:bt,expandIconPosition:at="start",children:kt,expandIcon:Ht}=$e,Ct=(0,ht.Z)(mr=>{var Er;return(Er=bt!=null?bt:mr)!==null&&Er!==void 0?Er:"middle"}),$t=fe("collapse",ye),Bt=fe(),[St,ft]=Rt($t),dt=se.useMemo(()=>at==="left"?"start":at==="right"?"end":at,[at]),Ft=function(){let mr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Er=Ht?Ht(mr):se.createElement(Ye.Z,{rotate:mr.isActive?90:void 0});return(0,tt.Tm)(Er,()=>({className:x()(Er.props.className,`${$t}-arrow`)}))},zt=x()(`${$t}-icon-position-${dt}`,{[`${$t}-borderless`]:!We,[`${$t}-rtl`]:Fe==="rtl",[`${$t}-ghost`]:!!st,[`${$t}-${Ct}`]:Ct!=="middle"},He==null?void 0:He.className,Re,ze,ft),Zt=Object.assign(Object.assign({},(0,Qe.Z)(Bt)),{motionAppear:!1,leavedClassName:`${$t}-content-hidden`}),tr=se.useMemo(()=>kt?(0,ne.Z)(kt).map((mr,Er)=>{var zr,jr;if(!((zr=mr.props)===null||zr===void 0)&&zr.disabled){const Tr=(jr=mr.key)!==null&&jr!==void 0?jr:String(Er),{disabled:Vr,collapsible:sn}=mr.props,vn=Object.assign(Object.assign({},(0,Ze.Z)(mr.props,["disabled"])),{key:Tr,collapsible:sn!=null?sn:Vr?"disabled":void 0});return(0,tt.Tm)(mr,vn)}return mr}):null,[kt]);return St(se.createElement(Ve,Object.assign({ref:le,openMotion:Zt},(0,Ze.Z)($e,["rootClassName"]),{expandIcon:Ft,prefixCls:$t,className:zt,style:Object.assign(Object.assign({},He==null?void 0:He.style),Ke)}),tr))}),{Panel:Xe}),Ue=lt},93891:function(gr,Wt,ke){"use strict";var Ye=ke(59301),vt=ke(36355),x=ke(64165);const Ae=me=>{const{componentName:re}=me,{getPrefixCls:z}=(0,Ye.useContext)(vt.E_),ie=z("empty");switch(re){case"Table":case"List":return Ye.createElement(x.Z,{image:x.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Ye.createElement(x.Z,{image:x.Z.PRESENTED_IMAGE_SIMPLE,className:`${ie}-small`});default:return Ye.createElement(x.Z,null)}};Wt.Z=Ae},43428:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Ot}});var Ye=ke(92310),vt=ke.n(Ye),x=ke(33885),Ae=ke(42978),me=ke(43403),re=ke(34280),z=ke(59301),ie=z.createContext(null),oe=z.createContext({}),se=ie,pe=ke(20068),ne=ke(54476),ae=ke(77900),ue=ke(10228),de=ke(26112),he=ke(70425),xe=function(Ue){var $e=Ue.prefixCls,le=Ue.className,fe=Ue.style,Fe=Ue.children,He=Ue.containerRef,ye=Ue.id,Re=Ue.onMouseEnter,ze=Ue.onMouseOver,Ke=Ue.onMouseLeave,We=Ue.onClick,st=Ue.onKeyDown,bt=Ue.onKeyUp,at={onMouseEnter:Re,onMouseOver:ze,onMouseLeave:Ke,onClick:We,onKeyDown:st,onKeyUp:bt},kt=z.useContext(oe),Ht=kt.panel,Ct=(0,he.useComposeRef)(Ht,He);return z.createElement(z.Fragment,null,z.createElement("div",(0,ne.Z)({id:ye,className:vt()("".concat($e,"-content"),le),style:(0,x.Z)({},fe),"aria-modal":"true",role:"dialog",ref:Ct},at),Fe))},Se=xe,we=ke(48736);function be(lt){return typeof lt=="string"&&String(Number(lt))===lt?((0,we.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(lt)):lt}function Me(lt){warning(!("wrapperClassName"in lt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!lt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Le={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ce(lt,Ue){var $e,le,fe,Fe,He=lt.prefixCls,ye=lt.open,Re=lt.placement,ze=lt.inline,Ke=lt.push,We=lt.forceRender,st=lt.autoFocus,bt=lt.keyboard,at=lt.rootClassName,kt=lt.rootStyle,Ht=lt.zIndex,Ct=lt.className,$t=lt.id,Bt=lt.style,St=lt.motion,ft=lt.width,dt=lt.height,Ft=lt.children,zt=lt.contentWrapperStyle,Zt=lt.mask,tr=lt.maskClosable,mr=lt.maskMotion,Er=lt.maskClassName,zr=lt.maskStyle,jr=lt.afterOpenChange,Tr=lt.onClose,Vr=lt.onMouseEnter,sn=lt.onMouseOver,vn=lt.onMouseLeave,en=lt.onClick,hn=lt.onKeyDown,_n=lt.onKeyUp,tn=z.useRef(),Ln=z.useRef(),Un=z.useRef();z.useImperativeHandle(Ue,function(){return tn.current});var Vn=function(cr){var vr=cr.keyCode,Dr=cr.shiftKey;switch(vr){case ue.Z.TAB:{if(vr===ue.Z.TAB){if(!Dr&&document.activeElement===Un.current){var Ir;(Ir=Ln.current)===null||Ir===void 0||Ir.focus({preventScroll:!0})}else if(Dr&&document.activeElement===Ln.current){var Ar;(Ar=Un.current)===null||Ar===void 0||Ar.focus({preventScroll:!0})}}break}case ue.Z.ESC:{Tr&&bt&&(cr.stopPropagation(),Tr(cr));break}}};z.useEffect(function(){if(ye&&st){var yr;(yr=tn.current)===null||yr===void 0||yr.focus({preventScroll:!0})}},[ye]);var $r=z.useState(!1),Yr=(0,Ae.Z)($r,2),Lr=Yr[0],cn=Yr[1],Pr=z.useContext(se),Wr;Ke===!1?Wr={distance:0}:Ke===!0?Wr={}:Wr=Ke||{};var mn=($e=(le=(fe=Wr)===null||fe===void 0?void 0:fe.distance)!==null&&le!==void 0?le:Pr==null?void 0:Pr.pushDistance)!==null&&$e!==void 0?$e:180,Gt=z.useMemo(function(){return{pushDistance:mn,push:function(){cn(!0)},pull:function(){cn(!1)}}},[mn]);z.useEffect(function(){if(ye){var yr;Pr==null||(yr=Pr.push)===null||yr===void 0||yr.call(Pr)}else{var cr;Pr==null||(cr=Pr.pull)===null||cr===void 0||cr.call(Pr)}},[ye]),z.useEffect(function(){return function(){var yr;Pr==null||(yr=Pr.pull)===null||yr===void 0||yr.call(Pr)}},[]);var Et=Zt&&z.createElement(ae.default,(0,ne.Z)({key:"mask"},mr,{visible:ye}),function(yr,cr){var vr=yr.className,Dr=yr.style;return z.createElement("div",{className:vt()("".concat(He,"-mask"),vr,Er),style:(0,x.Z)((0,x.Z)({},Dr),zr),onClick:tr&&ye?Tr:void 0,ref:cr})}),It=typeof St=="function"?St(Re):St,Dt={};if(Lr&&mn)switch(Re){case"top":Dt.transform="translateY(".concat(mn,"px)");break;case"bottom":Dt.transform="translateY(".concat(-mn,"px)");break;case"left":Dt.transform="translateX(".concat(mn,"px)");break;default:Dt.transform="translateX(".concat(-mn,"px)");break}Re==="left"||Re==="right"?Dt.width=be(ft):Dt.height=be(dt);var Lt={onMouseEnter:Vr,onMouseOver:sn,onMouseLeave:vn,onClick:en,onKeyDown:hn,onKeyUp:_n},Ut=z.createElement(ae.default,(0,ne.Z)({key:"panel"},It,{visible:ye,forceRender:We,onVisibleChanged:function(cr){jr==null||jr(cr)},removeOnLeave:!1,leavedClassName:"".concat(He,"-content-wrapper-hidden")}),function(yr,cr){var vr=yr.className,Dr=yr.style;return z.createElement("div",(0,ne.Z)({className:vt()("".concat(He,"-content-wrapper"),vr),style:(0,x.Z)((0,x.Z)((0,x.Z)({},Dt),Dr),zt)},(0,de.Z)(lt,{data:!0})),z.createElement(Se,(0,ne.Z)({id:$t,containerRef:cr,prefixCls:He,className:Ct,style:Bt},Lt),Ft))}),Qt=(0,x.Z)({},kt);return Ht&&(Qt.zIndex=Ht),z.createElement(se.Provider,{value:Gt},z.createElement("div",{className:vt()(He,"".concat(He,"-").concat(Re),at,(Fe={},(0,pe.Z)(Fe,"".concat(He,"-open"),ye),(0,pe.Z)(Fe,"".concat(He,"-inline"),ze),Fe)),style:Qt,tabIndex:-1,ref:tn,onKeyDown:Vn},Et,z.createElement("div",{tabIndex:0,ref:Ln,style:Le,"aria-hidden":"true","data-sentinel":"start"}),Ut,z.createElement("div",{tabIndex:0,ref:Un,style:Le,"aria-hidden":"true","data-sentinel":"end"})))}var Ne=z.forwardRef(Ce),Te=Ne,De=function(Ue){var $e=Ue.open,le=$e===void 0?!1:$e,fe=Ue.prefixCls,Fe=fe===void 0?"rc-drawer":fe,He=Ue.placement,ye=He===void 0?"right":He,Re=Ue.autoFocus,ze=Re===void 0?!0:Re,Ke=Ue.keyboard,We=Ke===void 0?!0:Ke,st=Ue.width,bt=st===void 0?378:st,at=Ue.mask,kt=at===void 0?!0:at,Ht=Ue.maskClosable,Ct=Ht===void 0?!0:Ht,$t=Ue.getContainer,Bt=Ue.forceRender,St=Ue.afterOpenChange,ft=Ue.destroyOnClose,dt=Ue.onMouseEnter,Ft=Ue.onMouseOver,zt=Ue.onMouseLeave,Zt=Ue.onClick,tr=Ue.onKeyDown,mr=Ue.onKeyUp,Er=Ue.panelRef,zr=z.useState(!1),jr=(0,Ae.Z)(zr,2),Tr=jr[0],Vr=jr[1],sn=z.useState(!1),vn=(0,Ae.Z)(sn,2),en=vn[0],hn=vn[1];(0,re.Z)(function(){hn(!0)},[]);var _n=en?le:!1,tn=z.useRef(),Ln=z.useRef();(0,re.Z)(function(){_n&&(Ln.current=document.activeElement)},[_n]);var Un=function(cn){var Pr;if(Vr(cn),St==null||St(cn),!cn&&Ln.current&&!((Pr=tn.current)!==null&&Pr!==void 0&&Pr.contains(Ln.current))){var Wr;(Wr=Ln.current)===null||Wr===void 0||Wr.focus({preventScroll:!0})}},Vn=z.useMemo(function(){return{panel:Er}},[Er]);if(!Bt&&!Tr&&!_n&&ft)return null;var $r={onMouseEnter:dt,onMouseOver:Ft,onMouseLeave:zt,onClick:Zt,onKeyDown:tr,onKeyUp:mr},Yr=(0,x.Z)((0,x.Z)({},Ue),{},{open:_n,prefixCls:Fe,placement:ye,autoFocus:ze,keyboard:We,width:bt,mask:kt,maskClosable:Ct,inline:$t===!1,afterOpenChange:Un,ref:tn},$r);return z.createElement(oe.Provider,{value:Vn},z.createElement(me.Z,{open:_n||Bt||Tr,autoDestroy:!1,getContainer:$t,autoLock:kt&&(_n||Tr)},z.createElement(Te,Yr)))},Ee=De,Pe=Ee,Be=ke(62892),Ve=ke(36355),Ie=ke(32441),Ze=ke(47729),tt=lt=>{const{prefixCls:Ue,title:$e,footer:le,extra:fe,closeIcon:Fe,closable:He,onClose:ye,headerStyle:Re,drawerStyle:ze,bodyStyle:Ke,footerStyle:We,children:st}=lt,bt=z.useCallback($t=>z.createElement("button",{type:"button",onClick:ye,"aria-label":"Close",className:`${Ue}-close`},$t),[ye]),[at,kt]=(0,Ze.Z)(He,Fe,bt,void 0,!0),Ht=z.useMemo(()=>!$e&&!at?null:z.createElement("div",{style:Re,className:vt()(`${Ue}-header`,{[`${Ue}-header-close-only`]:at&&!$e&&!fe})},z.createElement("div",{className:`${Ue}-header-title`},kt,$e&&z.createElement("div",{className:`${Ue}-title`},$e)),fe&&z.createElement("div",{className:`${Ue}-extra`},fe)),[at,kt,fe,Re,Ue,$e]),Ct=z.useMemo(()=>{if(!le)return null;const $t=`${Ue}-footer`;return z.createElement("div",{className:$t,style:We},le)},[le,We,Ue]);return z.createElement("div",{className:`${Ue}-wrapper-body`,style:ze},Ht,z.createElement("div",{className:`${Ue}-body`,style:Ke},st),Ct)},it=ke(33234),ht=ke(83116),Ge=ke(37613),ct=lt=>{const{componentCls:Ue,motionDurationSlow:$e}=lt,le={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${$e}`}}};return{[Ue]:{[`${Ue}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${$e}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Ue}-panel-motion`]:{"&-left":[le,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[le,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[le,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[le,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const pt=lt=>{const{componentCls:Ue,zIndexPopup:$e,colorBgMask:le,colorBgElevated:fe,motionDurationSlow:Fe,motionDurationMid:He,padding:ye,paddingLG:Re,fontSizeLG:ze,lineHeightLG:Ke,lineWidth:We,lineType:st,colorSplit:bt,marginSM:at,colorIcon:kt,colorIconHover:Ht,colorText:Ct,fontWeightStrong:$t,footerPaddingBlock:Bt,footerPaddingInline:St}=lt,ft=`${Ue}-content-wrapper`;return{[Ue]:{position:"fixed",inset:0,zIndex:$e,pointerEvents:"none","&-pure":{position:"relative",background:fe,[`&${Ue}-left`]:{boxShadow:lt.boxShadowDrawerLeft},[`&${Ue}-right`]:{boxShadow:lt.boxShadowDrawerRight},[`&${Ue}-top`]:{boxShadow:lt.boxShadowDrawerUp},[`&${Ue}-bottom`]:{boxShadow:lt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Ue}-mask`]:{position:"absolute",inset:0,zIndex:$e,background:le,pointerEvents:"auto"},[ft]:{position:"absolute",zIndex:$e,maxWidth:"100vw",transition:`all ${Fe}`,"&-hidden":{display:"none"}},[`&-left > ${ft}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:lt.boxShadowDrawerLeft},[`&-right > ${ft}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:lt.boxShadowDrawerRight},[`&-top > ${ft}`]:{top:0,insetInline:0,boxShadow:lt.boxShadowDrawerUp},[`&-bottom > ${ft}`]:{bottom:0,insetInline:0,boxShadow:lt.boxShadowDrawerDown},[`${Ue}-content`]:{width:"100%",height:"100%",overflow:"auto",background:fe,pointerEvents:"auto"},[`${Ue}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Ue}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${ye}px ${Re}px`,fontSize:ze,lineHeight:Ke,borderBottom:`${We}px ${st} ${bt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Ue}-extra`]:{flex:"none"},[`${Ue}-close`]:{display:"inline-block",marginInlineEnd:at,color:kt,fontWeight:$t,fontSize:ze,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${He}`,textRendering:"auto","&:focus, &:hover":{color:Ht,textDecoration:"none"}},[`${Ue}-title`]:{flex:1,margin:0,color:Ct,fontWeight:lt.fontWeightStrong,fontSize:ze,lineHeight:Ke},[`${Ue}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Re,overflow:"auto"},[`${Ue}-footer`]:{flexShrink:0,padding:`${Bt}px ${St}px`,borderTop:`${We}px ${st} ${bt}`},"&-rtl":{direction:"rtl"}}}};var ut=(0,ht.Z)("Drawer",lt=>{const Ue=(0,Ge.TS)(lt,{});return[pt(Ue),ct(Ue)]},lt=>({zIndexPopup:lt.zIndexPopupBase,footerPaddingBlock:lt.paddingXS,footerPaddingInline:lt.padding})),rt=ke(11575),qe=function(lt,Ue){var $e={};for(var le in lt)Object.prototype.hasOwnProperty.call(lt,le)&&Ue.indexOf(le)<0&&($e[le]=lt[le]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,le=Object.getOwnPropertySymbols(lt);fe<le.length;fe++)Ue.indexOf(le[fe])<0&&Object.prototype.propertyIsEnumerable.call(lt,le[fe])&&($e[le[fe]]=lt[le[fe]]);return $e};const nt=null,xt={distance:180},yt=lt=>{var Ue;const{rootClassName:$e,width:le,height:fe,size:Fe="default",mask:He=!0,push:ye=xt,open:Re,afterOpenChange:ze,onClose:Ke,prefixCls:We,getContainer:st,style:bt,className:at,visible:kt,afterVisibleChange:Ht}=lt,Ct=qe(lt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:$t,getPrefixCls:Bt,direction:St,drawer:ft}=z.useContext(Ve.E_),dt=Bt("drawer",We),[Ft,zt]=ut(dt),Zt=st===void 0&&$t?()=>$t(document.body):st,tr=vt()({"no-mask":!He,[`${dt}-rtl`]:St==="rtl"},$e,zt),mr=z.useMemo(()=>le!=null?le:Fe==="large"?736:378,[le,Fe]),Er=z.useMemo(()=>fe!=null?fe:Fe==="large"?736:378,[fe,Fe]),zr={motionName:(0,Be.m)(dt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},jr=Vr=>({motionName:(0,Be.m)(dt,`panel-motion-${Vr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Tr=(0,rt.H)();return Ft(z.createElement(it.BR,null,z.createElement(Ie.Ux,{status:!0,override:!0},z.createElement(Pe,Object.assign({prefixCls:dt,onClose:Ke,maskMotion:zr,motion:jr},Ct,{open:Re!=null?Re:kt,mask:He,push:ye,width:mr,height:Er,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),bt),className:vt()(ft==null?void 0:ft.className,at),rootClassName:tr,getContainer:Zt,afterOpenChange:ze!=null?ze:Ht,panelRef:Tr}),z.createElement(tt,Object.assign({prefixCls:dt},Ct,{onClose:Ke}))))))},Rt=lt=>{const{prefixCls:Ue,style:$e,className:le,placement:fe="right"}=lt,Fe=qe(lt,["prefixCls","style","className","placement"]),{getPrefixCls:He}=z.useContext(Ve.E_),ye=He("drawer",Ue),[Re,ze]=ut(ye),Ke=vt()(ye,`${ye}-pure`,`${ye}-${fe}`,ze,le);return Re(z.createElement("div",{className:Ke,style:$e},z.createElement(tt,Object.assign({prefixCls:ye},Fe))))};yt._InternalPanelDoNotUseOrYouWillBeFired=Rt;var Ot=yt},91857:function(gr,Wt,ke){"use strict";var Ye=ke(59301),vt=ke(38819),x=ke(92310),Ae=ke.n(x),me=ke(31561),re=ke(70425),z=ke(18929),ie=ke(2738),oe=ke(79676),se=ke(53487),pe=ke(92343),ne=ke(36355),ae=ke(20834),ue=ke(40875),de=ke(88088),he=ke(47211);const xe=null,Se=Le=>{const{menu:Ce,arrow:Ne,prefixCls:Te,children:De,trigger:Ee,disabled:Pe,dropdownRender:Be,getPopupContainer:Ve,overlayClassName:Ie,rootClassName:Ze,open:Qe,onOpenChange:tt,visible:it,onVisibleChange:ht,mouseEnterDelay:Ge=.15,mouseLeaveDelay:Xe=.1,autoAdjustOverflow:ct=!0,placement:pt="",overlay:ut,transitionName:rt}=Le,{getPopupContainer:qe,getPrefixCls:nt,direction:xt}=Ye.useContext(ne.E_),yt=Ye.useMemo(()=>{const at=nt();return rt!==void 0?rt:pt.includes("top")?`${at}-slide-down`:`${at}-slide-up`},[nt,pt,rt]),Rt=Ye.useMemo(()=>pt?pt.includes("Center")?pt.slice(0,pt.indexOf("Center")):pt:xt==="rtl"?"bottomRight":"bottomLeft",[pt,xt]),Ot=nt("dropdown",Te),[lt,Ue]=(0,he.Z)(Ot),[,$e]=(0,de.Z)(),le=Ye.Children.only(De),fe=(0,pe.Tm)(le,{className:Ae()(`${Ot}-trigger`,{[`${Ot}-rtl`]:xt==="rtl"},le.props.className),disabled:Pe}),Fe=Pe?[]:Ee;let He;Fe&&Fe.includes("contextMenu")&&(He=!0);const[ye,Re]=(0,z.Z)(!1,{value:Qe!=null?Qe:it}),ze=(0,re.useEvent)(at=>{tt==null||tt(at),ht==null||ht(at),Re(at)}),Ke=Ae()(Ie,Ze,Ue,{[`${Ot}-rtl`]:xt==="rtl"}),We=(0,oe.Z)({arrowPointAtCenter:typeof Ne=="object"&&Ne.pointAtCenter,autoAdjustOverflow:ct,offset:$e.marginXXS,arrowWidth:Ne?$e.sizePopupArrow:0,borderRadius:$e.borderRadius}),st=Ye.useCallback(()=>{Re(!1)},[]),bt=()=>{let at;return Ce!=null&&Ce.items?at=Ye.createElement(ae.default,Object.assign({},Ce)):typeof ut=="function"?at=ut():at=ut,Be&&(at=Be(at)),at=Ye.Children.only(typeof at=="string"?Ye.createElement("span",null,at):at),Ye.createElement(ue.J,{prefixCls:`${Ot}-menu`,expandIcon:Ye.createElement("span",{className:`${Ot}-menu-submenu-arrow`},Ye.createElement(vt.Z,{className:`${Ot}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:st,validator:kt=>{let{mode:Ht}=kt}},at)};return lt(Ye.createElement(me.Z,Object.assign({alignPoint:He},(0,ie.Z)(Le,["rootClassName"]),{mouseEnterDelay:Ge,mouseLeaveDelay:Xe,visible:ye,builtinPlacements:We,arrow:!!Ne,overlayClassName:Ke,prefixCls:Ot,getPopupContainer:Ve||qe,transitionName:yt,trigger:Fe,overlay:bt,placement:Rt,onVisibleChange:ze}),fe))};function we(Le){return Object.assign(Object.assign({},Le),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const be=(0,se.Z)(Se,"dropdown",Le=>Le,we),Me=Le=>Ye.createElement(be,Object.assign({},Le),Ye.createElement("span",null));Se._InternalPanelDoNotUseOrYouWillBeFired=Me,Wt.Z=Se},38854:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return de}});var Ye=ke(91857),vt=ke(92310),x=ke.n(vt),Ae=ke(59301),me=ke(18785),re=ke(3113),z=ke(36355),ie=ke(81327),oe=ke(33234),se=ke(47211),pe=function(he,xe){var Se={};for(var we in he)Object.prototype.hasOwnProperty.call(he,we)&&xe.indexOf(we)<0&&(Se[we]=he[we]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,we=Object.getOwnPropertySymbols(he);be<we.length;be++)xe.indexOf(we[be])<0&&Object.prototype.propertyIsEnumerable.call(he,we[be])&&(Se[we[be]]=he[we[be]]);return Se};const ne=he=>{const{getPopupContainer:xe,getPrefixCls:Se,direction:we}=Ae.useContext(z.E_),{prefixCls:be,type:Me="default",danger:Le,disabled:Ce,loading:Ne,onClick:Te,htmlType:De,children:Ee,className:Pe,menu:Be,arrow:Ve,autoFocus:Ie,overlay:Ze,trigger:Qe,align:tt,open:it,onOpenChange:ht,placement:Ge,getPopupContainer:Xe,href:ct,icon:pt=Ae.createElement(me.Z,null),title:ut,buttonsRender:rt=bt=>bt,mouseEnterDelay:qe,mouseLeaveDelay:nt,overlayClassName:xt,overlayStyle:yt,destroyPopupOnHide:Rt,dropdownRender:Ot}=he,lt=pe(he,["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"]),Ue=Se("dropdown",be),$e=`${Ue}-button`,[le,fe]=(0,se.Z)(Ue),Fe={menu:Be,arrow:Ve,autoFocus:Ie,align:tt,disabled:Ce,trigger:Ce?[]:Qe,onOpenChange:ht,getPopupContainer:Xe||xe,mouseEnterDelay:qe,mouseLeaveDelay:nt,overlayClassName:xt,overlayStyle:yt,destroyPopupOnHide:Rt,dropdownRender:Ot},{compactSize:He,compactItemClassnames:ye}=(0,oe.ri)(Ue,we),Re=x()($e,ye,Pe,fe);"overlay"in he&&(Fe.overlay=Ze),"open"in he&&(Fe.open=it),"placement"in he?Fe.placement=Ge:Fe.placement=we==="rtl"?"bottomLeft":"bottomRight";const ze=Ae.createElement(re.ZP,{type:Me,danger:Le,disabled:Ce,loading:Ne,onClick:Te,htmlType:De,href:ct,title:ut},Ee),Ke=Ae.createElement(re.ZP,{type:Me,danger:Le,icon:pt}),[We,st]=rt([ze,Ke]);return le(Ae.createElement(ie.Z.Compact,Object.assign({className:Re,size:He,block:!0},lt),We,Ae.createElement(Ye.Z,Object.assign({},Fe),st)))};ne.__ANT_BUTTON=!0;var ae=ne;const ue=Ye.Z;ue.Button=ae;var de=ue},47211:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return pe}});var Ye=ke(17313),vt=ke(13826),x=ke(92899),Ae=ke(29878),me=ke(19447),re=ke(83116),z=ke(37613),oe=ne=>{const{componentCls:ae,menuCls:ue,colorError:de,colorTextLightSolid:he}=ne,xe=`${ue}-item`;return{[`${ae}, ${ae}-menu-submenu`]:{[`${ue} ${xe}`]:{[`&${xe}-danger:not(${xe}-disabled)`]:{color:de,"&:hover":{color:he,backgroundColor:de}}}}}};const se=ne=>{const{componentCls:ae,menuCls:ue,zIndexPopup:de,dropdownArrowDistance:he,sizePopupArrow:xe,antCls:Se,iconCls:we,motionDurationMid:be,dropdownPaddingVertical:Me,fontSize:Le,dropdownEdgeChildPadding:Ce,colorTextDisabled:Ne,fontSizeIcon:Te,controlPaddingHorizontal:De,colorBgElevated:Ee}=ne;return[{[ae]:Object.assign(Object.assign({},(0,Ye.Wf)(ne)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:de,display:"block","&::before":{position:"absolute",insetBlock:-he+xe/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Se}-btn`]:{[`& > ${we}-down, & > ${Se}-btn-icon > ${we}-down`]:{fontSize:Te}},[`${ae}-wrap`]:{position:"relative",[`${Se}-btn > ${we}-down`]:{fontSize:Te},[`${we}-down::before`]:{transition:`transform ${be}`}},[`${ae}-wrap-open`]:{[`${we}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Se}-slide-down-enter${Se}-slide-down-enter-active${ae}-placement-bottomLeft,
|
|
|
&${Se}-slide-down-appear${Se}-slide-down-appear-active${ae}-placement-bottomLeft,
|
|
|
&${Se}-slide-down-enter${Se}-slide-down-enter-active${ae}-placement-bottom,
|
|
|
&${Se}-slide-down-appear${Se}-slide-down-appear-active${ae}-placement-bottom,
|
|
|
&${Se}-slide-down-enter${Se}-slide-down-enter-active${ae}-placement-bottomRight,
|
|
|
&${Se}-slide-down-appear${Se}-slide-down-appear-active${ae}-placement-bottomRight`]:{animationName:vt.fJ},[`&${Se}-slide-up-enter${Se}-slide-up-enter-active${ae}-placement-topLeft,
|
|
|
&${Se}-slide-up-appear${Se}-slide-up-appear-active${ae}-placement-topLeft,
|
|
|
&${Se}-slide-up-enter${Se}-slide-up-enter-active${ae}-placement-top,
|
|
|
&${Se}-slide-up-appear${Se}-slide-up-appear-active${ae}-placement-top,
|
|
|
&${Se}-slide-up-enter${Se}-slide-up-enter-active${ae}-placement-topRight,
|
|
|
&${Se}-slide-up-appear${Se}-slide-up-appear-active${ae}-placement-topRight`]:{animationName:vt.Qt},[`&${Se}-slide-down-leave${Se}-slide-down-leave-active${ae}-placement-bottomLeft,
|
|
|
&${Se}-slide-down-leave${Se}-slide-down-leave-active${ae}-placement-bottom,
|
|
|
&${Se}-slide-down-leave${Se}-slide-down-leave-active${ae}-placement-bottomRight`]:{animationName:vt.Uw},[`&${Se}-slide-up-leave${Se}-slide-up-leave-active${ae}-placement-topLeft,
|
|
|
&${Se}-slide-up-leave${Se}-slide-up-leave-active${ae}-placement-top,
|
|
|
&${Se}-slide-up-leave${Se}-slide-up-leave-active${ae}-placement-topRight`]:{animationName:vt.ly}})},(0,me.ZP)(ne,{colorBg:Ee,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${ae} ${ue}`]:{position:"relative",margin:0},[`${ue}-submenu-popup`]:{position:"absolute",zIndex:de,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${ae}, ${ae}-menu-submenu`]:{[ue]:Object.assign(Object.assign({padding:Ce,listStyleType:"none",backgroundColor:Ee,backgroundClip:"padding-box",borderRadius:ne.borderRadiusLG,outline:"none",boxShadow:ne.boxShadowSecondary},(0,Ye.Qy)(ne)),{[`${ue}-item-group-title`]:{padding:`${Me}px ${De}px`,color:ne.colorTextDescription,transition:`all ${be}`},[`${ue}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ue}-item-icon`]:{minWidth:Le,marginInlineEnd:ne.marginXS,fontSize:ne.fontSizeSM},[`${ue}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${be}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ue}-item, ${ue}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Me}px ${De}px`,color:ne.colorText,fontWeight:"normal",fontSize:Le,lineHeight:ne.lineHeight,cursor:"pointer",transition:`all ${be}`,borderRadius:ne.borderRadiusSM,"&:hover, &-active":{backgroundColor:ne.controlItemBgHover}},(0,Ye.Qy)(ne)),{"&-selected":{color:ne.colorPrimary,backgroundColor:ne.controlItemBgActive,"&:hover, &-active":{backgroundColor:ne.controlItemBgActiveHover}},"&-disabled":{color:Ne,cursor:"not-allowed","&:hover":{color:Ne,backgroundColor:Ee,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ne.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ne.colorSplit},[`${ae}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ne.paddingXS,[`${ae}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ne.colorTextDescription,fontSize:Te,fontStyle:"normal"}}}),[`${ue}-item-group-list`]:{margin:`0 ${ne.marginXS}px`,padding:0,listStyle:"none"},[`${ue}-submenu-title`]:{paddingInlineEnd:De+ne.fontSizeSM},[`${ue}-submenu-vertical`]:{position:"relative"},[`${ue}-submenu${ue}-submenu-disabled ${ae}-menu-submenu-title`]:{[`&, ${ae}-menu-submenu-arrow-icon`]:{color:Ne,backgroundColor:Ee,cursor:"not-allowed"}},[`${ue}-submenu-selected ${ae}-menu-submenu-title`]:{color:ne.colorPrimary}})}},[(0,vt.oN)(ne,"slide-up"),(0,vt.oN)(ne,"slide-down"),(0,x.Fm)(ne,"move-up"),(0,x.Fm)(ne,"move-down"),(0,Ae._y)(ne,"zoom-big")]]};var pe=(0,re.Z)("Dropdown",(ne,ae)=>{let{rootPrefixCls:ue}=ae;const{marginXXS:de,sizePopupArrow:he,controlHeight:xe,fontSize:Se,lineHeight:we,paddingXXS:be,componentCls:Me,borderRadiusLG:Le}=ne,Ce=(xe-Se*we)/2,{dropdownArrowOffset:Ne}=(0,me.fS)({contentRadius:Le}),Te=(0,z.TS)(ne,{menuCls:`${Me}-menu`,rootPrefixCls:ue,dropdownArrowDistance:he/2+de,dropdownArrowOffset:Ne,dropdownPaddingVertical:Ce,dropdownEdgeChildPadding:be});return[se(Te),oe(Te)]},ne=>({zIndexPopup:ne.zIndexPopupBase+50}))},64165:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return be}});var Ye=ke(92310),vt=ke.n(Ye),x=ke(59301),Ae=ke(36355),me=ke(9763),re=ke(64993),z=ke(88088),oe=()=>{const[,Me]=(0,z.Z)(),Ce=new re.C(Me.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return x.createElement("svg",{style:Ce,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(24 31.67)"},x.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),x.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"}),x.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)"}),x.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"}),x.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"})),x.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"}),x.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},x.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),x.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},pe=()=>{const[,Me]=(0,z.Z)(),{colorFill:Le,colorFillTertiary:Ce,colorFillQuaternary:Ne,colorBgContainer:Te}=Me,{borderColor:De,shadowColor:Ee,contentColor:Pe}=(0,x.useMemo)(()=>({borderColor:new re.C(Le).onBackground(Te).toHexShortString(),shadowColor:new re.C(Ce).onBackground(Te).toHexShortString(),contentColor:new re.C(Ne).onBackground(Te).toHexShortString()}),[Le,Ce,Ne,Te]);return x.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},x.createElement("ellipse",{fill:Ee,cx:"32",cy:"33",rx:"32",ry:"7"}),x.createElement("g",{fillRule:"nonzero",stroke:De},x.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"}),x.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:Pe}))))},ne=ke(83116),ae=ke(37613);const ue=Me=>{const{componentCls:Le,margin:Ce,marginXS:Ne,marginXL:Te,fontSize:De,lineHeight:Ee}=Me;return{[Le]:{marginInline:Ne,fontSize:De,lineHeight:Ee,textAlign:"center",[`${Le}-image`]:{height:Me.emptyImgHeight,marginBottom:Ne,opacity:Me.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Le}-description`]:{color:Me.colorText},[`${Le}-footer`]:{marginTop:Ce},"&-normal":{marginBlock:Te,color:Me.colorTextDisabled,[`${Le}-description`]:{color:Me.colorTextDisabled},[`${Le}-image`]:{height:Me.emptyImgHeightMD}},"&-small":{marginBlock:Ne,color:Me.colorTextDisabled,[`${Le}-image`]:{height:Me.emptyImgHeightSM}}}}};var de=(0,ne.Z)("Empty",Me=>{const{componentCls:Le,controlHeightLG:Ce}=Me,Ne=(0,ae.TS)(Me,{emptyImgCls:`${Le}-img`,emptyImgHeight:Ce*2.5,emptyImgHeightMD:Ce,emptyImgHeightSM:Ce*.875});return[ue(Ne)]}),he=function(Me,Le){var Ce={};for(var Ne in Me)Object.prototype.hasOwnProperty.call(Me,Ne)&&Le.indexOf(Ne)<0&&(Ce[Ne]=Me[Ne]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ne=Object.getOwnPropertySymbols(Me);Te<Ne.length;Te++)Le.indexOf(Ne[Te])<0&&Object.prototype.propertyIsEnumerable.call(Me,Ne[Te])&&(Ce[Ne[Te]]=Me[Ne[Te]]);return Ce};const xe=x.createElement(oe,null),Se=x.createElement(pe,null),we=Me=>{var{className:Le,rootClassName:Ce,prefixCls:Ne,image:Te=xe,description:De,children:Ee,imageStyle:Pe,style:Be}=Me,Ve=he(Me,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Ie,direction:Ze,empty:Qe}=x.useContext(Ae.E_),tt=Ie("empty",Ne),[it,ht]=de(tt),[Ge]=(0,me.Z)("Empty"),Xe=typeof De!="undefined"?De:Ge==null?void 0:Ge.description,ct=typeof Xe=="string"?Xe:"empty";let pt=null;return typeof Te=="string"?pt=x.createElement("img",{alt:ct,src:Te}):pt=Te,it(x.createElement("div",Object.assign({className:vt()(ht,tt,Qe==null?void 0:Qe.className,{[`${tt}-normal`]:Te===Se,[`${tt}-rtl`]:Ze==="rtl"},Le,Ce),style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),Be)},Ve),x.createElement("div",{className:`${tt}-image`,style:Pe},pt),Xe&&x.createElement("div",{className:`${tt}-description`},Xe),Ee&&x.createElement("div",{className:`${tt}-footer`},Ee)))};we.PRESENTED_IMAGE_DEFAULT=xe,we.PRESENTED_IMAGE_SIMPLE=Se;var be=we},78241:function(gr,Wt,ke){"use strict";ke.d(Wt,{default:function(){return mn}});var Ye=ke(94480),vt=ke(92310),x=ke.n(vt),Ae=ke(77900),me=ke(59301),re=ke(62892),z=ke(32441);function ie(Gt){const[Et,It]=me.useState(Gt);return me.useEffect(()=>{const Dt=setTimeout(()=>{It(Gt)},Gt.length?0:10);return()=>{clearTimeout(Dt)}},[Gt]),Et}var oe=ke(17313),se=ke(29878),pe=ke(8378),ne=ke(37613),ae=ke(83116),de=Gt=>{const{componentCls:Et}=Gt,It=`${Et}-show-help`,Dt=`${Et}-show-help-item`;return{[It]:{transition:`opacity ${Gt.motionDurationSlow} ${Gt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Dt]:{overflow:"hidden",transition:`height ${Gt.motionDurationSlow} ${Gt.motionEaseInOut},
|
|
|
opacity ${Gt.motionDurationSlow} ${Gt.motionEaseInOut},
|
|
|
transform ${Gt.motionDurationSlow} ${Gt.motionEaseInOut} !important`,[`&${Dt}-appear, &${Dt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Dt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const he=Gt=>({legend:{display:"block",width:"100%",marginBottom:Gt.marginLG,padding:0,color:Gt.colorTextDescription,fontSize:Gt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Gt.lineWidth}px ${Gt.lineType} ${Gt.colorBorder}`},label:{fontSize:Gt.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 ${Gt.controlOutlineWidth}px ${Gt.controlOutline}`},output:{display:"block",paddingTop:15,color:Gt.colorText,fontSize:Gt.fontSize,lineHeight:Gt.lineHeight}}),xe=(Gt,Et)=>{const{formItemCls:It}=Gt;return{[It]:{[`${It}-label > label`]:{height:Et},[`${It}-control-input`]:{minHeight:Et}}}},Se=Gt=>{const{componentCls:Et}=Gt;return{[Gt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(Gt)),he(Gt)),{[`${Et}-text`]:{display:"inline-block",paddingInlineEnd:Gt.paddingSM},"&-small":Object.assign({},xe(Gt,Gt.controlHeightSM)),"&-large":Object.assign({},xe(Gt,Gt.controlHeightLG))})}},we=Gt=>{const{formItemCls:Et,iconCls:It,componentCls:Dt,rootPrefixCls:Lt,labelRequiredMarkColor:Ut,labelColor:Qt,labelFontSize:yr,labelHeight:cr,labelColonMarginInlineStart:vr,labelColonMarginInlineEnd:Dr,itemMarginBottom:Ir}=Gt;return{[Et]:Object.assign(Object.assign({},(0,oe.Wf)(Gt)),{marginBottom:Ir,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Lt}-row`]:{display:"none"},"&-has-warning":{[`${Et}-split`]:{color:Gt.colorError}},"&-has-error":{[`${Et}-split`]:{color:Gt.colorWarning}},[`${Et}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Gt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:cr,color:Qt,fontSize:yr,[`> ${It}`]:{fontSize:Gt.fontSize,verticalAlign:"top"},[`&${Et}-required:not(${Et}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Gt.marginXXS,color:Ut,fontSize:Gt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Dt}-hide-required-mark &`]:{display:"none"}},[`${Et}-optional`]:{display:"inline-block",marginInlineStart:Gt.marginXXS,color:Gt.colorTextDescription,[`${Dt}-hide-required-mark &`]:{display:"none"}},[`${Et}-tooltip`]:{color:Gt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Gt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:vr,marginInlineEnd:Dr},[`&${Et}-no-colon::after`]:{content:'"\\a0"'}}},[`${Et}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Lt}-col-'"]):not([class*="' ${Lt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Gt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Et]:{"&-explain, &-extra":{clear:"both",color:Gt.colorTextDescription,fontSize:Gt.fontSize,lineHeight:Gt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Gt.controlHeightSM,transition:`color ${Gt.motionDurationMid} ${Gt.motionEaseOut}`},"&-explain":{"&-error":{color:Gt.colorError},"&-warning":{color:Gt.colorWarning}}},[`&-with-help ${Et}-explain`]:{height:"auto",opacity:1},[`${Et}-feedback-icon`]:{fontSize:Gt.fontSize,textAlign:"center",visibility:"visible",animationName:se.kr,animationDuration:Gt.motionDurationMid,animationTimingFunction:Gt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Gt.colorSuccess},"&-error":{color:Gt.colorError},"&-warning":{color:Gt.colorWarning},"&-validating":{color:Gt.colorPrimary}}})}},be=Gt=>{const{componentCls:Et,formItemCls:It}=Gt;return{[`${Et}-horizontal`]:{[`${It}-label`]:{flexGrow:0},[`${It}-control`]:{flex:"1 1 0",minWidth:0},[`${It}-label[class$='-24'], ${It}-label[class*='-24 ']`]:{[`& + ${It}-control`]:{minWidth:"unset"}}}}},Me=Gt=>{const{componentCls:Et,formItemCls:It}=Gt;return{[`${Et}-inline`]:{display:"flex",flexWrap:"wrap",[It]:{flex:"none",marginInlineEnd:Gt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${It}-label,
|
|
|
> ${It}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${It}-label`]:{flex:"none"},[`${Et}-text`]:{display:"inline-block"},[`${It}-has-feedback`]:{display:"inline-block"}}}}},Le=Gt=>({padding:Gt.verticalLabelPadding,margin:Gt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ce=Gt=>{const{componentCls:Et,formItemCls:It,rootPrefixCls:Dt}=Gt;return{[`${It} ${It}-label`]:Le(Gt),[Et]:{[It]:{flexWrap:"wrap",[`${It}-label, ${It}-control`]:{[`&:not([class*=" ${Dt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ne=Gt=>{const{componentCls:Et,formItemCls:It,rootPrefixCls:Dt}=Gt;return{[`${Et}-vertical`]:{[It]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Et}-item-control`]:{width:"100%"}}},[`${Et}-vertical ${It}-label,
|
|
|
.${Dt}-col-24${It}-label,
|
|
|
.${Dt}-col-xl-24${It}-label`]:Le(Gt),[`@media (max-width: ${Gt.screenXSMax}px)`]:[Ce(Gt),{[Et]:{[`.${Dt}-col-xs-24${It}-label`]:Le(Gt)}}],[`@media (max-width: ${Gt.screenSMMax}px)`]:{[Et]:{[`.${Dt}-col-sm-24${It}-label`]:Le(Gt)}},[`@media (max-width: ${Gt.screenMDMax}px)`]:{[Et]:{[`.${Dt}-col-md-24${It}-label`]:Le(Gt)}},[`@media (max-width: ${Gt.screenLGMax}px)`]:{[Et]:{[`.${Dt}-col-lg-24${It}-label`]:Le(Gt)}}}},Te=(Gt,Et)=>(0,ne.TS)(Gt,{formItemCls:`${Gt.componentCls}-item`,rootPrefixCls:Et});var De=(0,ae.Z)("Form",(Gt,Et)=>{let{rootPrefixCls:It}=Et;const Dt=Te(Gt,It);return[Se(Dt),we(Dt),de(Dt),be(Dt),Me(Dt),Ne(Dt),(0,pe.Z)(Dt),se.kr]},Gt=>({labelRequiredMarkColor:Gt.colorError,labelColor:Gt.colorTextHeading,labelFontSize:Gt.fontSize,labelHeight:Gt.controlHeight,labelColonMarginInlineStart:Gt.marginXXS/2,labelColonMarginInlineEnd:Gt.marginXS,itemMarginBottom:Gt.marginLG,verticalLabelPadding:`0 0 ${Gt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ee=[];function Pe(Gt,Et,It){let Dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Gt=="string"?Gt:`${Et}-${Dt}`,error:Gt,errorStatus:It}}var Ve=Gt=>{let{help:Et,helpStatus:It,errors:Dt=Ee,warnings:Lt=Ee,className:Ut,fieldId:Qt,onVisibleChanged:yr}=Gt;const{prefixCls:cr}=me.useContext(z.Rk),vr=`${cr}-item-explain`,[,Dr]=De(cr),Ir=(0,me.useMemo)(()=>(0,re.Z)(cr),[cr]),Ar=ie(Dt),qt=ie(Lt),kr=me.useMemo(()=>Et!=null?[Pe(Et,"help",It)]:[].concat((0,Ye.Z)(Ar.map((rr,lr)=>Pe(rr,"error","error",lr))),(0,Ye.Z)(qt.map((rr,lr)=>Pe(rr,"warning","warning",lr)))),[Et,It,Ar,qt]),Xt={};return Qt&&(Xt.id=`${Qt}_help`),me.createElement(Ae.default,{motionDeadline:Ir.motionDeadline,motionName:`${cr}-show-help`,visible:!!kr.length,onVisibleChanged:yr},rr=>{const{className:lr,style:or}=rr;return me.createElement("div",Object.assign({},Xt,{className:x()(vr,lr,Ut,Dr),style:or,role:"alert"}),me.createElement(Ae.CSSMotionList,Object.assign({keys:kr},(0,re.Z)(cr),{motionName:`${cr}-show-help-item`,component:!1}),_r=>{const{key:ur,error:Mr,errorStatus:Pt,className:Jt,style:nr}=_r;return me.createElement("div",{key:ur,className:x()(Jt,{[`${vr}-${Pt}`]:Pt}),style:nr},Mr)}))})},Ie=ke(95013),Ze=ke(36355),Qe=ke(1684),tt=ke(52946),it=ke(19716),ht=ke(16722);const Ge=["parentNode"],Xe="form_item";function ct(Gt){return Gt===void 0||Gt===!1?[]:Array.isArray(Gt)?Gt:[Gt]}function pt(Gt,Et){if(!Gt.length)return;const It=Gt.join("_");return Et?`${Et}_${It}`:Ge.includes(It)?`${Xe}_${It}`:It}function ut(Gt,Et,It,Dt,Lt,Ut){let Qt=Dt;return Ut!==void 0?Qt=Ut:It.validating?Qt="validating":Gt.length?Qt="error":Et.length?Qt="warning":(It.touched||Lt&&It.validated)&&(Qt="success"),Qt}function rt(Gt){return ct(Gt).join("_")}function qe(Gt){const[Et]=(0,Ie.useForm)(),It=me.useRef({}),Dt=me.useMemo(()=>Gt!=null?Gt:Object.assign(Object.assign({},Et),{__INTERNAL__:{itemRef:Lt=>Ut=>{const Qt=rt(Lt);Ut?It.current[Qt]=Ut:delete It.current[Qt]}},scrollToField:function(Lt){let Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Qt=ct(Lt),yr=pt(Qt,Dt.__INTERNAL__.name),cr=yr?document.getElementById(yr):null;cr&&(0,ht.Z)(cr,Object.assign({scrollMode:"if-needed",block:"nearest"},Ut))},getFieldInstance:Lt=>{const Ut=rt(Lt);return It.current[Ut]}}),[Gt,Et]);return[Dt]}var nt=ke(28726),xt=function(Gt,Et){var It={};for(var Dt in Gt)Object.prototype.hasOwnProperty.call(Gt,Dt)&&Et.indexOf(Dt)<0&&(It[Dt]=Gt[Dt]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Dt=Object.getOwnPropertySymbols(Gt);Lt<Dt.length;Lt++)Et.indexOf(Dt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,Dt[Lt])&&(It[Dt[Lt]]=Gt[Dt[Lt]]);return It};const yt=(Gt,Et)=>{const It=me.useContext(Qe.Z),{getPrefixCls:Dt,direction:Lt,form:Ut}=me.useContext(Ze.E_),{prefixCls:Qt,className:yr,rootClassName:cr,size:vr,disabled:Dr=It,form:Ir,colon:Ar,labelAlign:qt,labelWrap:kr,labelCol:Xt,wrapperCol:rr,hideRequiredMark:lr,layout:or="horizontal",scrollToFirstError:_r,requiredMark:ur,onFinishFailed:Mr,name:Pt,style:Jt,feedbackIcons:nr}=Gt,pr=xt(Gt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),fr=(0,it.Z)(vr),br=me.useContext(nt.Z),wr=(0,me.useMemo)(()=>ur!==void 0?ur:Ut&&Ut.requiredMark!==void 0?Ut.requiredMark:!lr,[lr,ur,Ut]),Nr=Ar!=null?Ar:Ut==null?void 0:Ut.colon,Kr=Dt("form",Qt),[Ur,gn]=De(Kr),kn=x()(Kr,`${Kr}-${or}`,{[`${Kr}-hide-required-mark`]:wr===!1,[`${Kr}-rtl`]:Lt==="rtl",[`${Kr}-${fr}`]:fr},gn,Ut==null?void 0:Ut.className,yr,cr),[Nn]=qe(Ir),{__INTERNAL__:yn}=Nn;yn.name=Pt;const rn=(0,me.useMemo)(()=>({name:Pt,labelAlign:qt,labelCol:Xt,labelWrap:kr,wrapperCol:rr,vertical:or==="vertical",colon:Nr,requiredMark:wr,itemRef:yn.itemRef,form:Nn,feedbackIcons:nr}),[Pt,qt,Xt,rr,or,Nr,wr,Nn,nr]);me.useImperativeHandle(Et,()=>Nn);const $n=(Zn,wn)=>{if(Zn){let Mn={block:"nearest"};typeof Zn=="object"&&(Mn=Zn),Nn.scrollToField(wn,Mn)}},Tn=Zn=>{if(Mr==null||Mr(Zn),Zn.errorFields.length){const wn=Zn.errorFields[0].name;if(_r!==void 0){$n(_r,wn);return}Ut&&Ut.scrollToFirstError!==void 0&&$n(Ut.scrollToFirstError,wn)}};return Ur(me.createElement(Qe.n,{disabled:Dr},me.createElement(tt.q,{size:fr},me.createElement(z.RV,Object.assign({},{validateMessages:br}),me.createElement(z.q3.Provider,{value:rn},me.createElement(Ie.default,Object.assign({id:Pt},pr,{name:Pt,onFinishFailed:Tn,form:Nn,style:Object.assign(Object.assign({},Ut==null?void 0:Ut.style),Jt),className:kn})))))))};var Ot=me.forwardRef(yt),lt=ke(41799),Ue=ke(8654),$e=ke(92343),le=ke(11592);function fe(Gt){if(typeof Gt=="function")return Gt;const Et=(0,le.Z)(Gt);return Et.length<=1?Et[0]:Et}const Fe=()=>{const{status:Gt,errors:Et=[],warnings:It=[]}=(0,me.useContext)(z.aM);return{status:Gt,errors:Et,warnings:It}};Fe.Context=z.aM;var He=Fe,ye=ke(16089);function Re(Gt){const[Et,It]=me.useState(Gt),Dt=(0,me.useRef)(null),Lt=(0,me.useRef)([]),Ut=(0,me.useRef)(!1);me.useEffect(()=>(Ut.current=!1,()=>{Ut.current=!0,ye.Z.cancel(Dt.current),Dt.current=null}),[]);function Qt(yr){Ut.current||(Dt.current===null&&(Lt.current=[],Dt.current=(0,ye.Z)(()=>{Dt.current=null,It(cr=>{let vr=cr;return Lt.current.forEach(Dr=>{vr=Dr(vr)}),vr})})),Lt.current.push(yr))}return[Et,Qt]}function ze(){const{itemRef:Gt}=me.useContext(z.q3),Et=me.useRef({});function It(Dt,Lt){const Ut=Lt&&typeof Lt=="object"&&Lt.ref,Qt=Dt.join("_");return(Et.current.name!==Qt||Et.current.originRef!==Ut)&&(Et.current.name=Qt,Et.current.originRef=Ut,Et.current.ref=(0,Ue.sQ)(Gt(Dt),Ut)),Et.current.ref}return It}var Ke=ke(29194),We=ke(34280),st=ke(2738),bt=ke(27382),at=ke(37028);const kt=Gt=>{const{formItemCls:Et}=Gt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Et}-control`]:{display:"flex"}}}};var Ht=(0,ae.b)(["Form","item-item"],(Gt,Et)=>{let{rootPrefixCls:It}=Et;const Dt=Te(Gt,It);return[kt(Dt)]}),$t=Gt=>{const{prefixCls:Et,status:It,wrapperCol:Dt,children:Lt,errors:Ut,warnings:Qt,_internalItemRender:yr,extra:cr,help:vr,fieldId:Dr,marginBottom:Ir,onErrorVisibleChanged:Ar}=Gt,qt=`${Et}-item`,kr=me.useContext(z.q3),Xt=Dt||kr.wrapperCol||{},rr=x()(`${qt}-control`,Xt.className),lr=me.useMemo(()=>Object.assign({},kr),[kr]);delete lr.labelCol,delete lr.wrapperCol;const or=me.createElement("div",{className:`${qt}-control-input`},me.createElement("div",{className:`${qt}-control-input-content`},Lt)),_r=me.useMemo(()=>({prefixCls:Et,status:It}),[Et,It]),ur=Ir!==null||Ut.length||Qt.length?me.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},me.createElement(z.Rk.Provider,{value:_r},me.createElement(Ve,{fieldId:Dr,errors:Ut,warnings:Qt,help:vr,helpStatus:It,className:`${qt}-explain-connected`,onVisibleChanged:Ar})),!!Ir&&me.createElement("div",{style:{width:0,height:Ir}})):null,Mr={};Dr&&(Mr.id=`${Dr}_extra`);const Pt=cr?me.createElement("div",Object.assign({},Mr,{className:`${qt}-extra`}),cr):null,Jt=yr&&yr.mark==="pro_table_render"&&yr.render?yr.render(Gt,{input:or,errorList:ur,extra:Pt}):me.createElement(me.Fragment,null,or,ur,Pt);return me.createElement(z.q3.Provider,{value:lr},me.createElement(at.Z,Object.assign({},Xt,{className:rr}),Jt),me.createElement(Ht,{prefixCls:Et}))},Bt=ke(61485),St=ke(31724),ft=ke(9763),dt=ke(6848),Ft=function(Gt,Et){var It={};for(var Dt in Gt)Object.prototype.hasOwnProperty.call(Gt,Dt)&&Et.indexOf(Dt)<0&&(It[Dt]=Gt[Dt]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Dt=Object.getOwnPropertySymbols(Gt);Lt<Dt.length;Lt++)Et.indexOf(Dt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,Dt[Lt])&&(It[Dt[Lt]]=Gt[Dt[Lt]]);return It};function zt(Gt){return Gt?typeof Gt=="object"&&!me.isValidElement(Gt)?Gt:{title:Gt}:null}var tr=Gt=>{let{prefixCls:Et,label:It,htmlFor:Dt,labelCol:Lt,labelAlign:Ut,colon:Qt,required:yr,requiredMark:cr,tooltip:vr}=Gt;var Dr;const[Ir]=(0,ft.Z)("Form"),{vertical:Ar,labelAlign:qt,labelCol:kr,labelWrap:Xt,colon:rr}=me.useContext(z.q3);if(!It)return null;const lr=Lt||kr||{},or=Ut||qt,_r=`${Et}-item-label`,ur=x()(_r,or==="left"&&`${_r}-left`,lr.className,{[`${_r}-wrap`]:!!Xt});let Mr=It;const Pt=Qt===!0||rr!==!1&&Qt!==!1;Pt&&!Ar&&typeof It=="string"&&It.trim()!==""&&(Mr=It.replace(/[:|:]\s*$/,""));const nr=zt(vr);if(nr){const{icon:wr=me.createElement(Bt.Z,null)}=nr,Nr=Ft(nr,["icon"]),Kr=me.createElement(dt.Z,Object.assign({},Nr),me.cloneElement(wr,{className:`${Et}-item-tooltip`,title:""}));Mr=me.createElement(me.Fragment,null,Mr,Kr)}const pr=cr==="optional",fr=typeof cr=="function";fr?Mr=cr(Mr,{required:!!yr}):pr&&!yr&&(Mr=me.createElement(me.Fragment,null,Mr,me.createElement("span",{className:`${Et}-item-optional`,title:""},(Ir==null?void 0:Ir.optional)||((Dr=St.Z.Form)===null||Dr===void 0?void 0:Dr.optional))));const br=x()({[`${Et}-item-required`]:yr,[`${Et}-item-required-mark-optional`]:pr||fr,[`${Et}-item-no-colon`]:!Pt});return me.createElement(at.Z,Object.assign({},lr,{className:ur}),me.createElement("label",{htmlFor:Dt,className:br,title:typeof It=="string"?It:""},Mr))},mr=ke(29679),Er=ke(19248),zr=ke(96512),jr=ke(58617);const Tr={success:mr.Z,warning:zr.Z,error:Er.Z,validating:jr.Z};function Vr(Gt){let{children:Et,errors:It,warnings:Dt,hasFeedback:Lt,validateStatus:Ut,prefixCls:Qt,meta:yr,noStyle:cr}=Gt;const vr=`${Qt}-item`,{feedbackIcons:Dr}=me.useContext(z.q3),Ir=ut(It,Dt,yr,null,!!Lt,Ut),{isFormItemInput:Ar,status:qt}=me.useContext(z.aM),kr=me.useMemo(()=>{var Xt;let rr;if(Lt){const _r=Lt!==!0&&Lt.icons||Dr,ur=Ir&&((Xt=_r==null?void 0:_r({status:Ir,errors:It,warnings:Dt}))===null||Xt===void 0?void 0:Xt[Ir]),Mr=Ir&&Tr[Ir];rr=ur!==!1&&Mr?me.createElement("span",{className:x()(`${vr}-feedback-icon`,`${vr}-feedback-icon-${Ir}`)},ur||me.createElement(Mr,null)):null}let lr=!0,or=Ir||"";return cr&&(lr=Ar,or=(Ir!=null?Ir:qt)||""),{status:or,errors:It,warnings:Dt,hasFeedback:!!Lt,feedbackIcon:rr,isFormItemInput:lr}},[Ir,Lt,cr,Ar,qt]);return me.createElement(z.aM.Provider,{value:kr},Et)}var sn=function(Gt,Et){var It={};for(var Dt in Gt)Object.prototype.hasOwnProperty.call(Gt,Dt)&&Et.indexOf(Dt)<0&&(It[Dt]=Gt[Dt]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Dt=Object.getOwnPropertySymbols(Gt);Lt<Dt.length;Lt++)Et.indexOf(Dt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,Dt[Lt])&&(It[Dt[Lt]]=Gt[Dt[Lt]]);return It};function vn(Gt){const{prefixCls:Et,className:It,rootClassName:Dt,style:Lt,help:Ut,errors:Qt,warnings:yr,validateStatus:cr,meta:vr,hasFeedback:Dr,hidden:Ir,children:Ar,fieldId:qt,required:kr,isRequired:Xt,onSubItemMetaChange:rr}=Gt,lr=sn(Gt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),or=`${Et}-item`,{requiredMark:_r}=me.useContext(z.q3),ur=me.useRef(null),Mr=ie(Qt),Pt=ie(yr),Jt=Ut!=null,nr=!!(Jt||Qt.length||yr.length),pr=!!ur.current&&(0,Ke.Z)(ur.current),[fr,br]=me.useState(null);(0,We.Z)(()=>{if(nr&&ur.current){const gn=getComputedStyle(ur.current);br(parseInt(gn.marginBottom,10))}},[nr,pr]);const wr=gn=>{gn||br(null)},Kr=function(){let gn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const kn=gn?Mr:vr.errors,Nn=gn?Pt:vr.warnings;return ut(kn,Nn,vr,"",!!Dr,cr)}(),Ur=x()(or,It,Dt,{[`${or}-with-help`]:Jt||Mr.length||Pt.length,[`${or}-has-feedback`]:Kr&&Dr,[`${or}-has-success`]:Kr==="success",[`${or}-has-warning`]:Kr==="warning",[`${or}-has-error`]:Kr==="error",[`${or}-is-validating`]:Kr==="validating",[`${or}-hidden`]:Ir});return me.createElement("div",{className:Ur,style:Lt,ref:ur},me.createElement(bt.Z,Object.assign({className:`${or}-row`},(0,st.Z)(lr,["_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"])),me.createElement(tr,Object.assign({htmlFor:qt},Gt,{requiredMark:_r,required:kr!=null?kr:Xt,prefixCls:Et})),me.createElement($t,Object.assign({},Gt,vr,{errors:Mr,warnings:Pt,prefixCls:Et,status:Kr,help:Ut,marginBottom:fr,onErrorVisibleChanged:wr}),me.createElement(z.qI.Provider,{value:rr},me.createElement(Vr,{prefixCls:Et,meta:vr,errors:vr.errors,warnings:vr.warnings,hasFeedback:Dr,validateStatus:Kr},Ar)))),!!fr&&me.createElement("div",{className:`${or}-margin-offset`,style:{marginBottom:-fr}}))}const en="__SPLIT__",hn=null,_n=me.memo(Gt=>{let{children:Et}=Gt;return Et},(Gt,Et)=>Gt.value===Et.value&&Gt.update===Et.update&&Gt.childProps.length===Et.childProps.length&&Gt.childProps.every((It,Dt)=>It===Et.childProps[Dt]));function tn(Gt){return Gt!=null}function Ln(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Un(Gt){const{name:Et,noStyle:It,className:Dt,dependencies:Lt,prefixCls:Ut,shouldUpdate:Qt,rules:yr,children:cr,required:vr,label:Dr,messageVariables:Ir,trigger:Ar="onChange",validateTrigger:qt,hidden:kr,help:Xt}=Gt,{getPrefixCls:rr}=me.useContext(Ze.E_),{name:lr}=me.useContext(z.q3),or=fe(cr),_r=typeof or=="function",ur=me.useContext(z.qI),{validateTrigger:Mr}=me.useContext(Ie.FieldContext),Pt=qt!==void 0?qt:Mr,Jt=tn(Et),nr=rr("form",Ut),[pr,fr]=De(nr),br=me.useContext(Ie.ListContext),wr=me.useRef(),[Nr,Kr]=Re({}),[Ur,gn]=(0,lt.Z)(()=>Ln()),kn=wn=>{const Mn=br==null?void 0:br.getKey(wn.name);if(gn(wn.destroy?Ln():wn,!0),It&&Xt!==!1&&ur){let Jn=wn.name;if(wn.destroy)Jn=wr.current||Jn;else if(Mn!==void 0){const[zn,hi]=Mn;Jn=[zn].concat((0,Ye.Z)(hi)),wr.current=Jn}ur(wn,Jn)}},Nn=(wn,Mn)=>{Kr(Jn=>{const zn=Object.assign({},Jn),Ei=[].concat((0,Ye.Z)(wn.name.slice(0,-1)),(0,Ye.Z)(Mn)).join(en);return wn.destroy?delete zn[Ei]:zn[Ei]=wn,zn})},[yn,rn]=me.useMemo(()=>{const wn=(0,Ye.Z)(Ur.errors),Mn=(0,Ye.Z)(Ur.warnings);return Object.values(Nr).forEach(Jn=>{wn.push.apply(wn,(0,Ye.Z)(Jn.errors||[])),Mn.push.apply(Mn,(0,Ye.Z)(Jn.warnings||[]))}),[wn,Mn]},[Nr,Ur.errors,Ur.warnings]),$n=ze();function Tn(wn,Mn,Jn){return It&&!kr?me.createElement(Vr,{prefixCls:nr,hasFeedback:Gt.hasFeedback,validateStatus:Gt.validateStatus,meta:Ur,errors:yn,warnings:rn,noStyle:!0},wn):me.createElement(vn,Object.assign({key:"row"},Gt,{className:x()(Dt,fr),prefixCls:nr,fieldId:Mn,isRequired:Jn,errors:yn,warnings:rn,meta:Ur,onSubItemMetaChange:Nn}),wn)}if(!Jt&&!_r&&!Lt)return pr(Tn(or));let Zn={};return typeof Dr=="string"?Zn.label=Dr:Et&&(Zn.label=String(Et)),Ir&&(Zn=Object.assign(Object.assign({},Zn),Ir)),pr(me.createElement(Ie.Field,Object.assign({},Gt,{messageVariables:Zn,trigger:Ar,validateTrigger:Pt,onMetaChange:kn}),(wn,Mn,Jn)=>{const zn=ct(Et).length&&Mn?Mn.name:[],hi=pt(zn,lr),Ei=vr!==void 0?vr:!!(yr&&yr.some(Xr=>{if(Xr&&typeof Xr=="object"&&Xr.required&&!Xr.warningOnly)return!0;if(typeof Xr=="function"){const Hn=Xr(Jn);return Hn&&Hn.required&&!Hn.warningOnly}return!1})),Rn=Object.assign({},wn);let Jr=null;if(Array.isArray(or)&&Jt)Jr=or;else if(!(_r&&(!(Qt||Lt)||Jt))){if(!(Lt&&!_r&&!Jt))if((0,$e.l$)(or)){const Xr=Object.assign(Object.assign({},or.props),Rn);if(Xr.id||(Xr.id=hi),Xt||yn.length>0||rn.length>0||Gt.extra){const ri=[];(Xt||yn.length>0)&&ri.push(`${hi}_help`),Gt.extra&&ri.push(`${hi}_extra`),Xr["aria-describedby"]=ri.join(" ")}yn.length>0&&(Xr["aria-invalid"]="true"),Ei&&(Xr["aria-required"]="true"),(0,Ue.Yr)(or)&&(Xr.ref=$n(zn,or)),new Set([].concat((0,Ye.Z)(ct(Ar)),(0,Ye.Z)(ct(Pt)))).forEach(ri=>{Xr[ri]=function(){for(var ai,Qr,qr,An,gi,nn=arguments.length,pn=new Array(nn),qn=0;qn<nn;qn++)pn[qn]=arguments[qn];(qr=Rn[ri])===null||qr===void 0||(ai=qr).call.apply(ai,[Rn].concat(pn)),(gi=(An=or.props)[ri])===null||gi===void 0||(Qr=gi).call.apply(Qr,[An].concat(pn))}});const Dn=[Xr["aria-required"],Xr["aria-invalid"],Xr["aria-describedby"]];Jr=me.createElement(_n,{value:Rn[Gt.valuePropName||"value"],update:or,childProps:Dn},(0,$e.Tm)(or,Xr))}else _r&&(Qt||Lt)&&!Jt?Jr=or(Jn):Jr=or}return Tn(Jr,hi,Ei)}))}const Vn=Un;Vn.useStatus=He;var $r=Vn,Yr=function(Gt,Et){var It={};for(var Dt in Gt)Object.prototype.hasOwnProperty.call(Gt,Dt)&&Et.indexOf(Dt)<0&&(It[Dt]=Gt[Dt]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Dt=Object.getOwnPropertySymbols(Gt);Lt<Dt.length;Lt++)Et.indexOf(Dt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,Dt[Lt])&&(It[Dt[Lt]]=Gt[Dt[Lt]]);return It},cn=Gt=>{var{prefixCls:Et,children:It}=Gt,Dt=Yr(Gt,["prefixCls","children"]);const{getPrefixCls:Lt}=me.useContext(Ze.E_),Ut=Lt("form",Et),Qt=me.useMemo(()=>({prefixCls:Ut,status:"error"}),[Ut]);return me.createElement(Ie.List,Object.assign({},Dt),(yr,cr,vr)=>me.createElement(z.Rk.Provider,{value:Qt},It(yr.map(Dr=>Object.assign(Object.assign({},Dr),{fieldKey:Dr.key})),cr,{errors:vr.errors,warnings:vr.warnings})))};function Pr(){const{form:Gt}=(0,me.useContext)(z.q3);return Gt}const Wr=Ot;Wr.Item=$r,Wr.List=cn,Wr.ErrorList=Ve,Wr.useForm=qe,Wr.useFormInstance=Pr,Wr.useWatch=Ie.useWatch,Wr.Provider=z.RV,Wr.create=()=>{};var mn=Wr},8628:function(gr,Wt,ke){"use strict";var Ye=ke(59301),vt=ke(34280),x=ke(56762),Ae=ke(69507);function me(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const z=(0,Ye.useRef)({}),ie=(0,x.Z)(),oe=(0,Ae.ZP)();return(0,vt.Z)(()=>{const se=oe.subscribe(pe=>{z.current=pe,re&&ie()});return()=>oe.unsubscribe(se)},[]),z.current}Wt.Z=me},20071:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Bt}});var Ye=ke(84105),vt=ke(87395),x=ke(92310),Ae=ke.n(x),me=ke(54476),re=ke(20068),z=ke(76190),ie=ke(42978),oe=ke(75931),se=ke(67732),pe=ke(83652);function ne(){return typeof BigInt=="function"}function ae(St){return!St&&St!==0&&!Number.isNaN(St)||!String(St).trim()}function ue(St){var ft=St.trim(),dt=ft.startsWith("-");dt&&(ft=ft.slice(1)),ft=ft.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ft.startsWith(".")&&(ft="0".concat(ft));var Ft=ft||"0",zt=Ft.split("."),Zt=zt[0]||"0",tr=zt[1]||"0";Zt==="0"&&tr==="0"&&(dt=!1);var mr=dt?"-":"";return{negative:dt,negativeStr:mr,trimStr:Ft,integerStr:Zt,decimalStr:tr,fullStr:"".concat(mr).concat(Ft)}}function de(St){var ft=String(St);return!Number.isNaN(Number(ft))&&ft.includes("e")}function he(St){var ft=String(St);if(de(St)){var dt=Number(ft.slice(ft.indexOf("e-")+2)),Ft=ft.match(/\.(\d+)/);return Ft!=null&&Ft[1]&&(dt+=Ft[1].length),dt}return ft.includes(".")&&Se(ft)?ft.length-ft.indexOf(".")-1:0}function xe(St){var ft=String(St);if(de(St)){if(St>Number.MAX_SAFE_INTEGER)return String(ne()?BigInt(St).toString():Number.MAX_SAFE_INTEGER);if(St<Number.MIN_SAFE_INTEGER)return String(ne()?BigInt(St).toString():Number.MIN_SAFE_INTEGER);ft=St.toFixed(he(ft))}return ue(ft).fullStr}function Se(St){return typeof St=="number"?!Number.isNaN(St):St?/^\s*-?\d+(\.\d+)?\s*$/.test(St)||/^\s*-?\d+\.\s*$/.test(St)||/^\s*-?\.\d+\s*$/.test(St):!1}var we=function(){function St(ft){if((0,se.Z)(this,St),(0,re.Z)(this,"origin",""),(0,re.Z)(this,"negative",void 0),(0,re.Z)(this,"integer",void 0),(0,re.Z)(this,"decimal",void 0),(0,re.Z)(this,"decimalLen",void 0),(0,re.Z)(this,"empty",void 0),(0,re.Z)(this,"nan",void 0),ae(ft)){this.empty=!0;return}if(this.origin=String(ft),ft==="-"||Number.isNaN(ft)){this.nan=!0;return}var dt=ft;if(de(dt)&&(dt=Number(dt)),dt=typeof dt=="string"?dt:xe(dt),Se(dt)){var Ft=ue(dt);this.negative=Ft.negative;var zt=Ft.trimStr.split(".");this.integer=BigInt(zt[0]);var Zt=zt[1]||"0";this.decimal=BigInt(Zt),this.decimalLen=Zt.length}else this.nan=!0}return(0,pe.Z)(St,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(dt){var Ft="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(dt,"0"));return BigInt(Ft)}},{key:"negate",value:function(){var dt=new St(this.toString());return dt.negative=!dt.negative,dt}},{key:"cal",value:function(dt,Ft,zt){var Zt=Math.max(this.getDecimalStr().length,dt.getDecimalStr().length),tr=this.alignDecimal(Zt),mr=dt.alignDecimal(Zt),Er=Ft(tr,mr).toString(),zr=zt(Zt),jr=ue(Er),Tr=jr.negativeStr,Vr=jr.trimStr,sn="".concat(Tr).concat(Vr.padStart(zr+1,"0"));return new St("".concat(sn.slice(0,-zr),".").concat(sn.slice(-zr)))}},{key:"add",value:function(dt){if(this.isInvalidate())return new St(dt);var Ft=new St(dt);return Ft.isInvalidate()?this:this.cal(Ft,function(zt,Zt){return zt+Zt},function(zt){return zt})}},{key:"multi",value:function(dt){var Ft=new St(dt);return this.isInvalidate()||Ft.isInvalidate()?new St(NaN):this.cal(Ft,function(zt,Zt){return zt*Zt},function(zt){return zt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(dt){return this.toString()===(dt==null?void 0:dt.toString())}},{key:"lessEquals",value:function(dt){return this.add(dt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return dt?this.isInvalidate()?"":ue("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),St}(),be=function(){function St(ft){if((0,se.Z)(this,St),(0,re.Z)(this,"origin",""),(0,re.Z)(this,"number",void 0),(0,re.Z)(this,"empty",void 0),ae(ft)){this.empty=!0;return}this.origin=String(ft),this.number=Number(ft)}return(0,pe.Z)(St,[{key:"negate",value:function(){return new St(-this.toNumber())}},{key:"add",value:function(dt){if(this.isInvalidate())return new St(dt);var Ft=Number(dt);if(Number.isNaN(Ft))return this;var zt=this.number+Ft;if(zt>Number.MAX_SAFE_INTEGER)return new St(Number.MAX_SAFE_INTEGER);if(zt<Number.MIN_SAFE_INTEGER)return new St(Number.MIN_SAFE_INTEGER);var Zt=Math.max(he(this.number),he(Ft));return new St(zt.toFixed(Zt))}},{key:"multi",value:function(dt){var Ft=Number(dt);if(this.isInvalidate()||Number.isNaN(Ft))return new St(NaN);var zt=this.number*Ft;if(zt>Number.MAX_SAFE_INTEGER)return new St(Number.MAX_SAFE_INTEGER);if(zt<Number.MIN_SAFE_INTEGER)return new St(Number.MIN_SAFE_INTEGER);var Zt=Math.max(he(this.number),he(Ft));return new St(zt.toFixed(Zt))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(dt){return this.toNumber()===(dt==null?void 0:dt.toNumber())}},{key:"lessEquals",value:function(dt){return this.add(dt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return dt?this.isInvalidate()?"":xe(this.number):this.origin}}]),St}();function Me(St){return ne()?new we(St):new be(St)}function Le(St,ft,dt){var Ft=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(St==="")return"";var zt=ue(St),Zt=zt.negativeStr,tr=zt.integerStr,mr=zt.decimalStr,Er="".concat(ft).concat(mr),zr="".concat(Zt).concat(tr);if(dt>=0){var jr=Number(mr[dt]);if(jr>=5&&!Ft){var Tr=Me(St).add("".concat(Zt,"0.").concat("0".repeat(dt)).concat(10-jr));return Le(Tr.toString(),ft,dt,Ft)}return dt===0?zr:"".concat(zr).concat(ft).concat(mr.padEnd(dt,"0").slice(0,dt))}return Er===".0"?zr:"".concat(zr).concat(Er)}var Ce=Me,Ne=ke(93681),Te=ke(34280),De=ke(8654),Ee=ke(59301),Pe=ke(48736);function Be(St,ft){var dt=(0,Ee.useRef)(null);function Ft(){try{var Zt=St.selectionStart,tr=St.selectionEnd,mr=St.value,Er=mr.substring(0,Zt),zr=mr.substring(tr);dt.current={start:Zt,end:tr,value:mr,beforeTxt:Er,afterTxt:zr}}catch(jr){}}function zt(){if(St&&dt.current&&ft)try{var Zt=St.value,tr=dt.current,mr=tr.beforeTxt,Er=tr.afterTxt,zr=tr.start,jr=Zt.length;if(Zt.endsWith(Er))jr=Zt.length-dt.current.afterTxt.length;else if(Zt.startsWith(mr))jr=mr.length;else{var Tr=mr[zr-1],Vr=Zt.indexOf(Tr,zr-1);Vr!==-1&&(jr=Vr+1)}St.setSelectionRange(jr,jr)}catch(sn){(0,Pe.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(sn.message))}}return[Ft,zt]}var Ve=ke(49658),Ie=function(){var ft=(0,Ee.useState)(!1),dt=(0,ie.Z)(ft,2),Ft=dt[0],zt=dt[1];return(0,Te.Z)(function(){zt((0,Ve.Z)())},[]),Ft},Ze=Ie,Qe=ke(16089),tt=200,it=600;function ht(St){var ft=St.prefixCls,dt=St.upNode,Ft=St.downNode,zt=St.upDisabled,Zt=St.downDisabled,tr=St.onStep,mr=Ee.useRef(),Er=Ee.useRef([]),zr=Ee.useRef();zr.current=tr;var jr=function(){clearTimeout(mr.current)},Tr=function(Ln,Un){Ln.preventDefault(),jr(),zr.current(Un);function Vn(){zr.current(Un),mr.current=setTimeout(Vn,tt)}mr.current=setTimeout(Vn,it)};Ee.useEffect(function(){return function(){jr(),Er.current.forEach(function(tn){return Qe.Z.cancel(tn)})}},[]);var Vr=Ze();if(Vr)return null;var sn="".concat(ft,"-handler"),vn=Ae()(sn,"".concat(sn,"-up"),(0,re.Z)({},"".concat(sn,"-up-disabled"),zt)),en=Ae()(sn,"".concat(sn,"-down"),(0,re.Z)({},"".concat(sn,"-down-disabled"),Zt)),hn=function(){return Er.current.push((0,Qe.Z)(jr))},_n={unselectable:"on",role:"button",onMouseUp:hn,onMouseLeave:hn};return Ee.createElement("div",{className:"".concat(sn,"-wrap")},Ee.createElement("span",(0,me.Z)({},_n,{onMouseDown:function(Ln){Tr(Ln,!0)},"aria-label":"Increase Value","aria-disabled":zt,className:vn}),dt||Ee.createElement("span",{unselectable:"on",className:"".concat(ft,"-handler-up-inner")})),Ee.createElement("span",(0,me.Z)({},_n,{onMouseDown:function(Ln){Tr(Ln,!1)},"aria-label":"Decrease Value","aria-disabled":Zt,className:en}),Ft||Ee.createElement("span",{unselectable:"on",className:"".concat(ft,"-handler-down-inner")})))}function Ge(St){var ft=typeof St=="number"?xe(St):ue(St).fullStr,dt=ft.includes(".");return dt?ue(ft.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:St+"0"}var Xe=ke(5643),ct=function(){var St=(0,Ee.useRef)(0),ft=function(){Qe.Z.cancel(St.current)};return(0,Ee.useEffect)(function(){return ft},[]),function(dt){ft(),St.current=(0,Qe.Z)(function(){dt()})}},pt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],ut=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],rt=function(ft,dt){return ft||dt.isEmpty()?dt.toString():dt.toNumber()},qe=function(ft){var dt=Ce(ft);return dt.isInvalidate()?null:dt},nt=Ee.forwardRef(function(St,ft){var dt,Ft=St.prefixCls,zt=Ft===void 0?"rc-input-number":Ft,Zt=St.className,tr=St.style,mr=St.min,Er=St.max,zr=St.step,jr=zr===void 0?1:zr,Tr=St.defaultValue,Vr=St.value,sn=St.disabled,vn=St.readOnly,en=St.upHandler,hn=St.downHandler,_n=St.keyboard,tn=St.controls,Ln=tn===void 0?!0:tn,Un=St.classNames,Vn=St.stringMode,$r=St.parser,Yr=St.formatter,Lr=St.precision,cn=St.decimalSeparator,Pr=St.onChange,Wr=St.onInput,mn=St.onPressEnter,Gt=St.onStep,Et=(0,oe.Z)(St,pt),It="".concat(zt,"-input"),Dt=Ee.useRef(null),Lt=Ee.useState(!1),Ut=(0,ie.Z)(Lt,2),Qt=Ut[0],yr=Ut[1],cr=Ee.useRef(!1),vr=Ee.useRef(!1),Dr=Ee.useRef(!1),Ir=Ee.useState(function(){return Ce(Vr!=null?Vr:Tr)}),Ar=(0,ie.Z)(Ir,2),qt=Ar[0],kr=Ar[1];function Xt(Jr){Vr===void 0&&kr(Jr)}var rr=Ee.useCallback(function(Jr,Xr){if(!Xr)return Lr>=0?Lr:Math.max(he(Jr),he(jr))},[Lr,jr]),lr=Ee.useCallback(function(Jr){var Xr=String(Jr);if($r)return $r(Xr);var Hn=Xr;return cn&&(Hn=Hn.replace(cn,".")),Hn.replace(/[^\w.-]+/g,"")},[$r,cn]),or=Ee.useRef(""),_r=Ee.useCallback(function(Jr,Xr){if(Yr)return Yr(Jr,{userTyping:Xr,input:String(or.current)});var Hn=typeof Jr=="number"?xe(Jr):Jr;if(!Xr){var Dn=rr(Hn,Xr);if(Se(Hn)&&(cn||Dn>=0)){var ri=cn||".";Hn=Le(Hn,ri,Dn)}}return Hn},[Yr,rr,cn]),ur=Ee.useState(function(){var Jr=Tr!=null?Tr:Vr;return qt.isInvalidate()&&["string","number"].includes((0,z.Z)(Jr))?Number.isNaN(Jr)?"":Jr:_r(qt.toString(),!1)}),Mr=(0,ie.Z)(ur,2),Pt=Mr[0],Jt=Mr[1];or.current=Pt;function nr(Jr,Xr){Jt(_r(Jr.isInvalidate()?Jr.toString(!1):Jr.toString(!Xr),Xr))}var pr=Ee.useMemo(function(){return qe(Er)},[Er,Lr]),fr=Ee.useMemo(function(){return qe(mr)},[mr,Lr]),br=Ee.useMemo(function(){return!pr||!qt||qt.isInvalidate()?!1:pr.lessEquals(qt)},[pr,qt]),wr=Ee.useMemo(function(){return!fr||!qt||qt.isInvalidate()?!1:qt.lessEquals(fr)},[fr,qt]),Nr=Be(Dt.current,Qt),Kr=(0,ie.Z)(Nr,2),Ur=Kr[0],gn=Kr[1],kn=function(Xr){return pr&&!Xr.lessEquals(pr)?pr:fr&&!fr.lessEquals(Xr)?fr:null},Nn=function(Xr){return!kn(Xr)},yn=function(Xr,Hn){var Dn=Xr,ri=Nn(Dn)||Dn.isEmpty();if(!Dn.isEmpty()&&!Hn&&(Dn=kn(Dn)||Dn,ri=!0),!vn&&!sn&&ri){var ai=Dn.toString(),Qr=rr(ai,Hn);return Qr>=0&&(Dn=Ce(Le(ai,".",Qr)),Nn(Dn)||(Dn=Ce(Le(ai,".",Qr,!0)))),Dn.equals(qt)||(Xt(Dn),Pr==null||Pr(Dn.isEmpty()?null:rt(Vn,Dn)),Vr===void 0&&nr(Dn,Hn)),Dn}return qt},rn=ct(),$n=function Jr(Xr){if(Ur(),or.current=Xr,Jt(Xr),!vr.current){var Hn=lr(Xr),Dn=Ce(Hn);Dn.isNaN()||yn(Dn,!0)}Wr==null||Wr(Xr),rn(function(){var ri=Xr;$r||(ri=Xr.replace(/。/g,".")),ri!==Xr&&Jr(ri)})},Tn=function(){vr.current=!0},Zn=function(){vr.current=!1,$n(Dt.current.value)},wn=function(Xr){$n(Xr.target.value)},Mn=function(Xr){var Hn;if(!(Xr&&br||!Xr&&wr)){cr.current=!1;var Dn=Ce(Dr.current?Ge(jr):jr);Xr||(Dn=Dn.negate());var ri=(qt||Ce(0)).add(Dn.toString()),ai=yn(ri,!1);Gt==null||Gt(rt(Vn,ai),{offset:Dr.current?Ge(jr):jr,type:Xr?"up":"down"}),(Hn=Dt.current)===null||Hn===void 0||Hn.focus()}},Jn=function(Xr){var Hn=Ce(lr(Pt)),Dn=Hn;Hn.isNaN()?Dn=yn(qt,Xr):Dn=yn(Hn,Xr),Vr!==void 0?nr(qt,!1):Dn.isNaN()||nr(Dn,!1)},zn=function(){cr.current=!0},hi=function(Xr){var Hn=Xr.key,Dn=Xr.shiftKey;cr.current=!0,Dr.current=Dn,Hn==="Enter"&&(vr.current||(cr.current=!1),Jn(!1),mn==null||mn(Xr)),_n!==!1&&!vr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Hn)&&(Mn(Hn==="Up"||Hn==="ArrowUp"),Xr.preventDefault())},Ei=function(){cr.current=!1,Dr.current=!1},Rn=function(){Jn(!1),yr(!1),cr.current=!1};return(0,Te.o)(function(){qt.isInvalidate()||nr(qt,!1)},[Lr]),(0,Te.o)(function(){var Jr=Ce(Vr);kr(Jr);var Xr=Ce(lr(Pt));(!Jr.equals(Xr)||!cr.current||Yr)&&nr(Jr,cr.current)},[Vr]),(0,Te.o)(function(){Yr&&gn()},[Pt]),Ee.createElement("div",{className:Ae()(zt,Un==null?void 0:Un.input,Zt,(dt={},(0,re.Z)(dt,"".concat(zt,"-focused"),Qt),(0,re.Z)(dt,"".concat(zt,"-disabled"),sn),(0,re.Z)(dt,"".concat(zt,"-readonly"),vn),(0,re.Z)(dt,"".concat(zt,"-not-a-number"),qt.isNaN()),(0,re.Z)(dt,"".concat(zt,"-out-of-range"),!qt.isInvalidate()&&!Nn(qt)),dt)),style:tr,onFocus:function(){yr(!0)},onBlur:Rn,onKeyDown:hi,onKeyUp:Ei,onCompositionStart:Tn,onCompositionEnd:Zn,onBeforeInput:zn},Ln&&Ee.createElement(ht,{prefixCls:zt,upNode:en,downNode:hn,upDisabled:br,downDisabled:wr,onStep:Mn}),Ee.createElement("div",{className:"".concat(It,"-wrap")},Ee.createElement("input",(0,me.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":mr,"aria-valuemax":Er,"aria-valuenow":qt.isInvalidate()?null:qt.toString(),step:jr},Et,{ref:(0,De.sQ)(Dt,ft),className:It,value:Pt,onChange:wn,disabled:sn,readOnly:vn}))))}),xt=Ee.forwardRef(function(St,ft){var dt=St.disabled,Ft=St.style,zt=St.prefixCls,Zt=St.value,tr=St.prefix,mr=St.suffix,Er=St.addonBefore,zr=St.addonAfter,jr=St.classes,Tr=St.className,Vr=St.classNames,sn=(0,oe.Z)(St,ut),vn=Ee.useRef(null),en=function(_n){vn.current&&(0,Xe.nH)(vn.current,_n)};return Ee.createElement(Ne.BaseInput,{inputElement:Ee.createElement(nt,(0,me.Z)({prefixCls:zt,disabled:dt,classNames:Vr,ref:(0,De.sQ)(vn,ft)},sn)),className:Tr,triggerFocus:en,prefixCls:zt,value:Zt,disabled:dt,style:Ft,prefix:tr,suffix:mr,addonAfter:zr,addonBefore:Er,classes:jr,classNames:Vr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});xt.displayName="InputNumber";var yt=xt,Rt=yt,Ot=ke(19080),lt=ke(36355),Ue=ke(92736),$e=ke(1684),le=ke(19716),fe=ke(32441),Fe=ke(33234),He=ke(9937),ye=ke(17313),Re=ke(74207),ze=ke(83116),Ke=ke(37613);const We=(St,ft)=>{let{componentCls:dt,borderRadiusSM:Ft,borderRadiusLG:zt}=St;const Zt=ft==="lg"?zt:Ft;return{[`&-${ft}`]:{[`${dt}-handler-wrap`]:{borderStartEndRadius:Zt,borderEndEndRadius:Zt},[`${dt}-handler-up`]:{borderStartEndRadius:Zt},[`${dt}-handler-down`]:{borderEndEndRadius:Zt}}}},st=St=>{const{componentCls:ft,lineWidth:dt,lineType:Ft,colorBorder:zt,borderRadius:Zt,fontSizeLG:tr,controlHeightLG:mr,controlHeightSM:Er,colorError:zr,paddingInlineSM:jr,colorTextDescription:Tr,motionDurationMid:Vr,handleHoverColor:sn,paddingInline:vn,paddingBlock:en,handleBg:hn,handleActiveBg:_n,colorTextDisabled:tn,borderRadiusSM:Ln,borderRadiusLG:Un,controlWidth:Vn,handleVisible:$r,handleBorderColor:Yr}=St;return[{[ft]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ye.Wf)(St)),(0,He.ik)(St)),(0,He.bi)(St,ft)),{display:"inline-block",width:Vn,margin:0,padding:0,border:`${dt}px ${Ft} ${zt}`,borderRadius:Zt,"&-rtl":{direction:"rtl",[`${ft}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:tr,borderRadius:Un,[`input${ft}-input`]:{height:mr-2*dt}},"&-sm":{padding:0,borderRadius:Ln,[`input${ft}-input`]:{height:Er-2*dt,padding:`0 ${jr}px`}},"&:hover":Object.assign({},(0,He.pU)(St)),"&-focused":Object.assign({},(0,He.M1)(St)),"&-out-of-range":{[`${ft}-input-wrap`]:{input:{color:zr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,ye.Wf)(St)),(0,He.s7)(St)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${ft}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${ft}-group-addon`]:{borderRadius:Un,fontSize:St.fontSizeLG}},"&-sm":{[`${ft}-group-addon`]:{borderRadius:Ln}},[`${ft}-wrapper-disabled > ${ft}-group-addon`]:Object.assign({},(0,He.Xy)(St))}}),[`&-disabled ${ft}-input`]:{cursor:"not-allowed"},[ft]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,ye.Wf)(St)),{width:"100%",padding:`${en}px ${vn}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Zt,outline:0,transition:`all ${Vr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,He.nz)(St.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[ft]:Object.assign(Object.assign(Object.assign({[`&:hover ${ft}-handler-wrap, &-focused ${ft}-handler-wrap`]:{opacity:1},[`${ft}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:St.handleWidth,height:"100%",background:hn,borderStartStartRadius:0,borderStartEndRadius:Zt,borderEndEndRadius:Zt,borderEndStartRadius:0,opacity:$r===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Vr} linear ${Vr}`,[`${ft}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${ft}-handler-up-inner,
|
|
|
${ft}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:St.handleFontSize}}},[`${ft}-handler`]:{height:"50%",overflow:"hidden",color:Tr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${dt}px ${Ft} ${Yr}`,transition:`all ${Vr} linear`,"&:active":{background:_n},"&:hover":{height:"60%",[`
|
|
|
${ft}-handler-up-inner,
|
|
|
${ft}-handler-down-inner
|
|
|
`]:{color:sn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,ye.Ro)()),{color:Tr,transition:`all ${Vr} linear`,userSelect:"none"})},[`${ft}-handler-up`]:{borderStartEndRadius:Zt},[`${ft}-handler-down`]:{borderBlockStart:`${dt}px ${Ft} ${Yr}`,borderEndEndRadius:Zt}},We(St,"lg")),We(St,"sm")),{"&-disabled, &-readonly":{[`${ft}-handler-wrap`]:{display:"none"},[`${ft}-input`]:{color:"inherit"}},[`
|
|
|
${ft}-handler-up-disabled,
|
|
|
${ft}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${ft}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${ft}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:tn}})},{[`${ft}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${ft}-handler-down`]:{borderBlockStartWidth:0}}}]},bt=St=>{const{componentCls:ft,paddingBlock:dt,paddingInline:Ft,inputAffixPadding:zt,controlWidth:Zt,borderRadiusLG:tr,borderRadiusSM:mr}=St;return{[`${ft}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,He.ik)(St)),(0,He.bi)(St,`${ft}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Zt,padding:0,paddingInlineStart:Ft,"&-lg":{borderRadius:tr},"&-sm":{borderRadius:mr},[`&:not(${ft}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,He.pU)(St)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${ft}-disabled`]:{background:"transparent"},[`> div${ft}`]:{width:"100%",border:"none",outline:"none",[`&${ft}-focused`]:{boxShadow:"none !important"}},[`input${ft}-input`]:{padding:`${dt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${ft}-handler-wrap`]:{zIndex:2},[ft]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:zt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Ft,marginInlineStart:zt}}})}};var at=(0,ze.Z)("InputNumber",St=>{const ft=(0,Ke.TS)(St,(0,He.e5)(St));return[st(ft),bt(ft),(0,Re.c)(ft)]},St=>Object.assign(Object.assign({},(0,He.TM)(St)),{controlWidth:90,handleWidth:St.controlHeightSM-St.lineWidth*2,handleFontSize:St.fontSize/2,handleVisible:"auto",handleActiveBg:St.colorFillAlter,handleBg:St.colorBgContainer,handleHoverColor:St.colorPrimary,handleBorderColor:St.colorBorder})),kt=function(St,ft){var dt={};for(var Ft in St)Object.prototype.hasOwnProperty.call(St,Ft)&&ft.indexOf(Ft)<0&&(dt[Ft]=St[Ft]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Ft=Object.getOwnPropertySymbols(St);zt<Ft.length;zt++)ft.indexOf(Ft[zt])<0&&Object.prototype.propertyIsEnumerable.call(St,Ft[zt])&&(dt[Ft[zt]]=St[Ft[zt]]);return dt};const Ht=Ee.forwardRef((St,ft)=>{const{getPrefixCls:dt,direction:Ft}=Ee.useContext(lt.E_),zt=Ee.useRef(null);Ee.useImperativeHandle(ft,()=>zt.current);const{className:Zt,rootClassName:tr,size:mr,disabled:Er,prefixCls:zr,addonBefore:jr,addonAfter:Tr,prefix:Vr,bordered:sn=!0,readOnly:vn,status:en,controls:hn}=St,_n=kt(St,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),tn=dt("input-number",zr),[Ln,Un]=at(tn),{compactSize:Vn,compactItemClassnames:$r}=(0,Fe.ri)(tn,Ft);let Yr=Ee.createElement(vt.Z,{className:`${tn}-handler-up-inner`}),Lr=Ee.createElement(Ye.Z,{className:`${tn}-handler-down-inner`});const cn=typeof hn=="boolean"?hn:void 0;typeof hn=="object"&&(Yr=typeof hn.upIcon=="undefined"?Yr:Ee.createElement("span",{className:`${tn}-handler-up-inner`},hn.upIcon),Lr=typeof hn.downIcon=="undefined"?Lr:Ee.createElement("span",{className:`${tn}-handler-down-inner`},hn.downIcon));const{hasFeedback:Pr,status:Wr,isFormItemInput:mn,feedbackIcon:Gt}=Ee.useContext(fe.aM),Et=(0,Ot.F)(Wr,en),It=(0,le.Z)(cr=>{var vr;return(vr=mr!=null?mr:Vn)!==null&&vr!==void 0?vr:cr}),Dt=Ee.useContext($e.Z),Lt=Er!=null?Er:Dt,Ut=Ae()({[`${tn}-lg`]:It==="large",[`${tn}-sm`]:It==="small",[`${tn}-rtl`]:Ft==="rtl",[`${tn}-borderless`]:!sn,[`${tn}-in-form-item`]:mn},(0,Ot.Z)(tn,Et),$r,Un),Qt=`${tn}-group`,yr=Ee.createElement(Rt,Object.assign({ref:zt,disabled:Lt,className:Ae()(Zt,tr),upHandler:Yr,downHandler:Lr,prefixCls:tn,readOnly:vn,controls:cn,prefix:Vr,suffix:Pr&&Gt,addonAfter:Tr&&Ee.createElement(Fe.BR,null,Ee.createElement(fe.Ux,{override:!0,status:!0},Tr)),addonBefore:jr&&Ee.createElement(Fe.BR,null,Ee.createElement(fe.Ux,{override:!0,status:!0},jr)),classNames:{input:Ut},classes:{affixWrapper:Ae()((0,Ot.Z)(`${tn}-affix-wrapper`,Et,Pr),{[`${tn}-affix-wrapper-sm`]:It==="small",[`${tn}-affix-wrapper-lg`]:It==="large",[`${tn}-affix-wrapper-rtl`]:Ft==="rtl",[`${tn}-affix-wrapper-borderless`]:!sn},Un),wrapper:Ae()({[`${Qt}-rtl`]:Ft==="rtl",[`${tn}-wrapper-disabled`]:Lt},Un),group:Ae()({[`${tn}-group-wrapper-sm`]:It==="small",[`${tn}-group-wrapper-lg`]:It==="large",[`${tn}-group-wrapper-rtl`]:Ft==="rtl"},(0,Ot.Z)(`${tn}-group-wrapper`,Et,Pr),Un)}},_n));return Ln(yr)}),Ct=Ht,$t=St=>Ee.createElement(Ue.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ee.createElement(Ht,Object.assign({},St)));Ct._InternalPanelDoNotUseOrYouWillBeFired=$t;var Bt=Ct},9432:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return we},n:function(){return xe}});var Ye=ke(19248),vt=ke(92310),x=ke.n(vt),Ae=ke(93681),me=ke(8654),re=ke(59301),z=ke(19080),ie=ke(36355),oe=ke(1684),se=ke(19716),pe=ke(32441),ne=ke(33234),ae=ke(59412),ue=ke(9937);function de(be){return!!(be.prefix||be.suffix||be.allowClear)}var he=function(be,Me){var Le={};for(var Ce in be)Object.prototype.hasOwnProperty.call(be,Ce)&&Me.indexOf(Ce)<0&&(Le[Ce]=be[Ce]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Ce=Object.getOwnPropertySymbols(be);Ne<Ce.length;Ne++)Me.indexOf(Ce[Ne])<0&&Object.prototype.propertyIsEnumerable.call(be,Ce[Ne])&&(Le[Ce[Ne]]=be[Ce[Ne]]);return Le};function xe(be,Me){if(!be)return;be.focus(Me);const{cursor:Le}=Me||{};if(Le){const Ce=be.value.length;switch(Le){case"start":be.setSelectionRange(0,0);break;case"end":be.setSelectionRange(Ce,Ce);break;default:be.setSelectionRange(0,Ce);break}}}var we=(0,re.forwardRef)((be,Me)=>{var Le;const{prefixCls:Ce,bordered:Ne=!0,status:Te,size:De,disabled:Ee,onBlur:Pe,onFocus:Be,suffix:Ve,allowClear:Ie,addonAfter:Ze,addonBefore:Qe,className:tt,style:it,styles:ht,rootClassName:Ge,onChange:Xe,classNames:ct}=be,pt=he(be,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:ut,direction:rt,input:qe}=re.useContext(ie.E_),nt=ut("input",Ce),xt=(0,re.useRef)(null),[yt,Rt]=(0,ue.ZP)(nt),{compactSize:Ot,compactItemClassnames:lt}=(0,ne.ri)(nt,rt),Ue=(0,se.Z)(Ht=>{var Ct;return(Ct=De!=null?De:Ot)!==null&&Ct!==void 0?Ct:Ht}),$e=re.useContext(oe.Z),le=Ee!=null?Ee:$e,{status:fe,hasFeedback:Fe,feedbackIcon:He}=(0,re.useContext)(pe.aM),ye=(0,z.F)(fe,Te),Re=de(be)||!!Fe,ze=(0,re.useRef)(Re);(0,re.useEffect)(()=>{var Ht;Re&&ze.current,ze.current=Re},[Re]);const Ke=(0,ae.Z)(xt,!0),We=Ht=>{Ke(),Pe==null||Pe(Ht)},st=Ht=>{Ke(),Be==null||Be(Ht)},bt=Ht=>{Ke(),Xe==null||Xe(Ht)},at=(Fe||Ve)&&re.createElement(re.Fragment,null,Ve,Fe&&He);let kt;return typeof Ie=="object"&&(Ie!=null&&Ie.clearIcon)?kt=Ie:Ie&&(kt={clearIcon:re.createElement(Ye.Z,null)}),yt(re.createElement(Ae.default,Object.assign({ref:(0,me.sQ)(Me,xt),prefixCls:nt,autoComplete:qe==null?void 0:qe.autoComplete},pt,{disabled:le,onBlur:We,onFocus:st,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),it),styles:Object.assign(Object.assign({},qe==null?void 0:qe.styles),ht),suffix:at,allowClear:kt,className:x()(tt,Ge,lt,qe==null?void 0:qe.className),onChange:bt,addonAfter:Ze&&re.createElement(ne.BR,null,re.createElement(pe.Ux,{override:!0,status:!0},Ze)),addonBefore:Qe&&re.createElement(ne.BR,null,re.createElement(pe.Ux,{override:!0,status:!0},Qe)),classNames:Object.assign(Object.assign(Object.assign({},ct),qe==null?void 0:qe.classNames),{input:x()({[`${nt}-sm`]:Ue==="small",[`${nt}-lg`]:Ue==="large",[`${nt}-rtl`]:rt==="rtl",[`${nt}-borderless`]:!Ne},!Re&&(0,z.Z)(nt,ye),ct==null?void 0:ct.input,(Le=qe==null?void 0:qe.classNames)===null||Le===void 0?void 0:Le.input,Rt)}),classes:{affixWrapper:x()({[`${nt}-affix-wrapper-sm`]:Ue==="small",[`${nt}-affix-wrapper-lg`]:Ue==="large",[`${nt}-affix-wrapper-rtl`]:rt==="rtl",[`${nt}-affix-wrapper-borderless`]:!Ne},(0,z.Z)(`${nt}-affix-wrapper`,ye,Fe),Rt),wrapper:x()({[`${nt}-group-rtl`]:rt==="rtl"},Rt),group:x()({[`${nt}-group-wrapper-sm`]:Ue==="small",[`${nt}-group-wrapper-lg`]:Ue==="large",[`${nt}-group-wrapper-rtl`]:rt==="rtl",[`${nt}-group-wrapper-disabled`]:le},(0,z.Z)(`${nt}-group-wrapper`,ye,Fe),Rt)}})))})},1643:function(gr,Wt,ke){"use strict";var Ye=ke(19248),vt=ke(92310),x=ke.n(vt),Ae=ke(9296),me=ke(59301),re=ke(19080),z=ke(36355),ie=ke(1684),oe=ke(19716),se=ke(32441),pe=ke(9432),ne=ke(9937),ae=function(de,he){var xe={};for(var Se in de)Object.prototype.hasOwnProperty.call(de,Se)&&he.indexOf(Se)<0&&(xe[Se]=de[Se]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Se=Object.getOwnPropertySymbols(de);we<Se.length;we++)he.indexOf(Se[we])<0&&Object.prototype.propertyIsEnumerable.call(de,Se[we])&&(xe[Se[we]]=de[Se[we]]);return xe};const ue=(0,me.forwardRef)((de,he)=>{const{prefixCls:xe,bordered:Se=!0,size:we,disabled:be,status:Me,allowClear:Le,showCount:Ce,classNames:Ne,rootClassName:Te,className:De}=de,Ee=ae(de,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Pe,direction:Be}=me.useContext(z.E_),Ve=(0,oe.Z)(we),Ie=me.useContext(ie.Z),Ze=be!=null?be:Ie,{status:Qe,hasFeedback:tt,feedbackIcon:it}=me.useContext(se.aM),ht=(0,re.F)(Qe,Me),Ge=me.useRef(null);me.useImperativeHandle(he,()=>{var rt;return{resizableTextArea:(rt=Ge.current)===null||rt===void 0?void 0:rt.resizableTextArea,focus:qe=>{var nt,xt;(0,pe.n)((xt=(nt=Ge.current)===null||nt===void 0?void 0:nt.resizableTextArea)===null||xt===void 0?void 0:xt.textArea,qe)},blur:()=>{var qe;return(qe=Ge.current)===null||qe===void 0?void 0:qe.blur()}}});const Xe=Pe("input",xe);let ct;typeof Le=="object"&&(Le!=null&&Le.clearIcon)?ct=Le:Le&&(ct={clearIcon:me.createElement(Ye.Z,null)});const[pt,ut]=(0,ne.ZP)(Xe);return pt(me.createElement(Ae.default,Object.assign({},Ee,{disabled:Ze,allowClear:ct,className:x()(De,Te),classes:{affixWrapper:x()(`${Xe}-textarea-affix-wrapper`,{[`${Xe}-affix-wrapper-rtl`]:Be==="rtl",[`${Xe}-affix-wrapper-borderless`]:!Se,[`${Xe}-affix-wrapper-sm`]:Ve==="small",[`${Xe}-affix-wrapper-lg`]:Ve==="large",[`${Xe}-textarea-show-count`]:Ce},(0,re.Z)(`${Xe}-affix-wrapper`,ht),ut)},classNames:Object.assign(Object.assign({},Ne),{textarea:x()({[`${Xe}-borderless`]:!Se,[`${Xe}-sm`]:Ve==="small",[`${Xe}-lg`]:Ve==="large"},(0,re.Z)(Xe,ht),ut,Ne==null?void 0:Ne.textarea)}),prefixCls:Xe,suffix:tt&&me.createElement("span",{className:`${Xe}-textarea-suffix`},it),showCount:Ce,ref:Ge})))});Wt.Z=ue},59412:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return vt}});var Ye=ke(59301);function vt(x,Ae){const me=(0,Ye.useRef)([]),re=()=>{me.current.push(setTimeout(()=>{var z,ie,oe,se;!((z=x.current)===null||z===void 0)&&z.input&&((ie=x.current)===null||ie===void 0?void 0:ie.input.getAttribute("type"))==="password"&&(!((oe=x.current)===null||oe===void 0)&&oe.input.hasAttribute("value"))&&((se=x.current)===null||se===void 0||se.input.removeAttribute("value"))}))};return(0,Ye.useEffect)(()=>(Ae&&re(),()=>me.current.forEach(z=>{z&&clearTimeout(z)})),[]),re}},92832:function(gr,Wt,ke){"use strict";ke.d(Wt,{default:function(){return Ve}});var Ye=ke(92310),vt=ke.n(Ye),x=ke(59301),Ae=ke(36355),me=ke(32441),re=ke(9937),ie=Ie=>{const{getPrefixCls:Ze,direction:Qe}=(0,x.useContext)(Ae.E_),{prefixCls:tt,className:it}=Ie,ht=Ze("input-group",tt),Ge=Ze("input"),[Xe,ct]=(0,re.ZP)(Ge),pt=vt()(ht,{[`${ht}-lg`]:Ie.size==="large",[`${ht}-sm`]:Ie.size==="small",[`${ht}-compact`]:Ie.compact,[`${ht}-rtl`]:Qe==="rtl"},ct,it),ut=(0,x.useContext)(me.aM),rt=(0,x.useMemo)(()=>Object.assign(Object.assign({},ut),{isFormItemInput:!1}),[ut]);return Xe(x.createElement("span",{className:pt,style:Ie.style,onMouseEnter:Ie.onMouseEnter,onMouseLeave:Ie.onMouseLeave,onFocus:Ie.onFocus,onBlur:Ie.onBlur},x.createElement(me.aM.Provider,{value:rt},Ie.children)))},oe=ke(9432),se=ke(73331),pe=ke(15277),ne=ke(2738),ae=ke(8654),ue=ke(59412),de=function(Ie,Ze){var Qe={};for(var tt in Ie)Object.prototype.hasOwnProperty.call(Ie,tt)&&Ze.indexOf(tt)<0&&(Qe[tt]=Ie[tt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,tt=Object.getOwnPropertySymbols(Ie);it<tt.length;it++)Ze.indexOf(tt[it])<0&&Object.prototype.propertyIsEnumerable.call(Ie,tt[it])&&(Qe[tt[it]]=Ie[tt[it]]);return Qe};const he=Ie=>Ie?x.createElement(pe.Z,null):x.createElement(se.Z,null),xe={click:"onClick",hover:"onMouseOver"};var we=x.forwardRef((Ie,Ze)=>{const{visibilityToggle:Qe=!0}=Ie,tt=typeof Qe=="object"&&Qe.visible!==void 0,[it,ht]=(0,x.useState)(()=>tt?Qe.visible:!1),Ge=(0,x.useRef)(null);x.useEffect(()=>{tt&&ht(Qe.visible)},[tt,Qe]);const Xe=(0,ue.Z)(Ge),ct=()=>{const{disabled:le}=Ie;le||(it&&Xe(),ht(fe=>{var Fe;const He=!fe;return typeof Qe=="object"&&((Fe=Qe.onVisibleChange)===null||Fe===void 0||Fe.call(Qe,He)),He}))},pt=le=>{const{action:fe="click",iconRender:Fe=he}=Ie,He=xe[fe]||"",ye=Fe(it),Re={[He]:ct,className:`${le}-icon`,key:"passwordIcon",onMouseDown:ze=>{ze.preventDefault()},onMouseUp:ze=>{ze.preventDefault()}};return x.cloneElement(x.isValidElement(ye)?ye:x.createElement("span",null,ye),Re)},{className:ut,prefixCls:rt,inputPrefixCls:qe,size:nt}=Ie,xt=de(Ie,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:yt}=x.useContext(Ae.E_),Rt=yt("input",qe),Ot=yt("input-password",rt),lt=Qe&&pt(Ot),Ue=vt()(Ot,ut,{[`${Ot}-${nt}`]:!!nt}),$e=Object.assign(Object.assign({},(0,ne.Z)(xt,["suffix","iconRender","visibilityToggle"])),{type:it?"text":"password",className:Ue,prefixCls:Rt,suffix:lt});return nt&&($e.size=nt),x.createElement(oe.Z,Object.assign({ref:(0,ae.sQ)(Ze,Ge)},$e))}),be=ke(47472),Me=ke(92343),Le=ke(3113),Ce=ke(19716),Ne=ke(33234),Te=function(Ie,Ze){var Qe={};for(var tt in Ie)Object.prototype.hasOwnProperty.call(Ie,tt)&&Ze.indexOf(tt)<0&&(Qe[tt]=Ie[tt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,tt=Object.getOwnPropertySymbols(Ie);it<tt.length;it++)Ze.indexOf(tt[it])<0&&Object.prototype.propertyIsEnumerable.call(Ie,tt[it])&&(Qe[tt[it]]=Ie[tt[it]]);return Qe},Ee=x.forwardRef((Ie,Ze)=>{const{prefixCls:Qe,inputPrefixCls:tt,className:it,size:ht,suffix:Ge,enterButton:Xe=!1,addonAfter:ct,loading:pt,disabled:ut,onSearch:rt,onChange:qe,onCompositionStart:nt,onCompositionEnd:xt}=Ie,yt=Te(Ie,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Rt,direction:Ot}=x.useContext(Ae.E_),lt=x.useRef(!1),Ue=Rt("input-search",Qe),$e=Rt("input",tt),{compactSize:le}=(0,Ne.ri)(Ue,Ot),fe=(0,Ce.Z)($t=>{var Bt;return(Bt=ht!=null?ht:le)!==null&&Bt!==void 0?Bt:$t}),Fe=x.useRef(null),He=$t=>{$t&&$t.target&&$t.type==="click"&&rt&&rt($t.target.value,$t,{source:"clear"}),qe&&qe($t)},ye=$t=>{var Bt;document.activeElement===((Bt=Fe.current)===null||Bt===void 0?void 0:Bt.input)&&$t.preventDefault()},Re=$t=>{var Bt,St;rt&&rt((St=(Bt=Fe.current)===null||Bt===void 0?void 0:Bt.input)===null||St===void 0?void 0:St.value,$t,{source:"input"})},ze=$t=>{lt.current||pt||Re($t)},Ke=typeof Xe=="boolean"?x.createElement(be.Z,null):null,We=`${Ue}-button`;let st;const bt=Xe||{},at=bt.type&&bt.type.__ANT_BUTTON===!0;at||bt.type==="button"?st=(0,Me.Tm)(bt,Object.assign({onMouseDown:ye,onClick:$t=>{var Bt,St;(St=(Bt=bt==null?void 0:bt.props)===null||Bt===void 0?void 0:Bt.onClick)===null||St===void 0||St.call(Bt,$t),Re($t)},key:"enterButton"},at?{className:We,size:fe}:{})):st=x.createElement(Le.ZP,{className:We,type:Xe?"primary":void 0,size:fe,disabled:ut,key:"enterButton",onMouseDown:ye,onClick:Re,loading:pt,icon:Ke},Xe),ct&&(st=[st,(0,Me.Tm)(ct,{key:"addonAfter"})]);const kt=vt()(Ue,{[`${Ue}-rtl`]:Ot==="rtl",[`${Ue}-${fe}`]:!!fe,[`${Ue}-with-button`]:!!Xe},it),Ht=$t=>{lt.current=!0,nt==null||nt($t)},Ct=$t=>{lt.current=!1,xt==null||xt($t)};return x.createElement(oe.Z,Object.assign({ref:(0,ae.sQ)(Fe,Ze),onPressEnter:ze},yt,{size:fe,onCompositionStart:Ht,onCompositionEnd:Ct,prefixCls:$e,addonAfter:st,suffix:Ge,onChange:He,className:kt,disabled:ut}))}),Pe=ke(1643);const Be=oe.Z;Be.Group=ie,Be.Search=Ee,Be.TextArea=Pe.Z,Be.Password=we;var Ve=Be},9937:function(gr,Wt,ke){"use strict";ke.d(Wt,{M1:function(){return z},TM:function(){return Me},Xy:function(){return ie},bi:function(){return pe},e5:function(){return be},ik:function(){return ne},nz:function(){return me},pU:function(){return re},s7:function(){return ae},x0:function(){return se}});var Ye=ke(17313),vt=ke(74207),x=ke(37613),Ae=ke(83116);const me=Le=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Le,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),re=Le=>({borderColor:Le.hoverBorderColor}),z=Le=>({borderColor:Le.activeBorderColor,boxShadow:Le.activeShadow,outline:0}),ie=Le=>({color:Le.colorTextDisabled,backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},re((0,x.TS)(Le,{hoverBorderColor:Le.colorBorder})))}),oe=Le=>{const{paddingBlockLG:Ce,fontSizeLG:Ne,lineHeightLG:Te,borderRadiusLG:De,paddingInlineLG:Ee}=Le;return{padding:`${Ce}px ${Ee}px`,fontSize:Ne,lineHeight:Te,borderRadius:De}},se=Le=>({padding:`${Le.paddingBlockSM}px ${Le.paddingInlineSM}px`,borderRadius:Le.borderRadiusSM}),pe=(Le,Ce)=>{const{componentCls:Ne,colorError:Te,colorWarning:De,errorActiveShadow:Ee,warningActiveShadow:Pe,colorErrorBorderHover:Be,colorWarningBorderHover:Ve}=Le;return{[`&-status-error:not(${Ce}-disabled):not(${Ce}-borderless)${Ce}`]:{borderColor:Te,"&:hover":{borderColor:Be},"&:focus, &-focused":Object.assign({},z((0,x.TS)(Le,{activeBorderColor:Te,activeShadow:Ee}))),[`${Ne}-prefix, ${Ne}-suffix`]:{color:Te}},[`&-status-warning:not(${Ce}-disabled):not(${Ce}-borderless)${Ce}`]:{borderColor:De,"&:hover":{borderColor:Ve},"&:focus, &-focused":Object.assign({},z((0,x.TS)(Le,{activeBorderColor:De,activeShadow:Pe}))),[`${Ne}-prefix, ${Ne}-suffix`]:{color:De}}}},ne=Le=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Le.paddingBlock}px ${Le.paddingInline}px`,color:Le.colorText,fontSize:Le.fontSize,lineHeight:Le.lineHeight,backgroundColor:Le.colorBgContainer,backgroundImage:"none",borderWidth:Le.lineWidth,borderStyle:Le.lineType,borderColor:Le.colorBorder,borderRadius:Le.borderRadius,transition:`all ${Le.motionDurationMid}`},me(Le.colorTextPlaceholder)),{"&:hover":Object.assign({},re(Le)),"&:focus, &-focused":Object.assign({},z(Le)),"&-disabled, &[disabled]":Object.assign({},ie(Le)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Le.controlHeight,lineHeight:Le.lineHeight,verticalAlign:"bottom",transition:`all ${Le.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},oe(Le)),"&-sm":Object.assign({},se(Le)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),ae=Le=>{const{componentCls:Ce,antCls:Ne}=Le;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Le.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Ce}, &-lg > ${Ce}-group-addon`]:Object.assign({},oe(Le)),[`&-sm ${Ce}, &-sm > ${Ce}-group-addon`]:Object.assign({},se(Le)),[`&-lg ${Ne}-select-single ${Ne}-select-selector`]:{height:Le.controlHeightLG},[`&-sm ${Ne}-select-single ${Ne}-select-selector`]:{height:Le.controlHeightSM},[`> ${Ce}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Ce}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Le.paddingInline}px`,color:Le.colorText,fontWeight:"normal",fontSize:Le.fontSize,textAlign:"center",backgroundColor:Le.colorFillAlter,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,borderRadius:Le.borderRadius,transition:`all ${Le.motionDurationSlow}`,lineHeight:1,[`${Ne}-select`]:{margin:`-${Le.paddingBlock+1}px -${Le.paddingInline}px`,[`&${Ne}-select-single:not(${Ne}-select-customize-input)`]:{[`${Ne}-select-selector`]:{backgroundColor:"inherit",border:`${Le.lineWidth}px ${Le.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Ne}-select-selector`]:{color:Le.colorPrimary}}},[`${Ne}-cascader-picker`]:{margin:`-9px -${Le.paddingInline}px`,backgroundColor:"transparent",[`${Ne}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Ce}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Ce}-search-with-button &`]:{zIndex:0}}},[`> ${Ce}:first-child, ${Ce}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ne}-select ${Ne}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ce}-affix-wrapper`]:{[`&:not(:first-child) ${Ce}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Ce}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ce}:last-child, ${Ce}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Ne}-select ${Ne}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Ce}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ce}-search &`]:{borderStartStartRadius:Le.borderRadius,borderEndStartRadius:Le.borderRadius}},[`&:not(:first-child), ${Ce}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Ce}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,Ye.dF)()),{[`${Ce}-group-addon, ${Ce}-group-wrap, > ${Ce}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Le.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${Ce}-affix-wrapper,
|
|
|
& > ${Ce}-number-affix-wrapper,
|
|
|
& > ${Ne}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Le.lineWidth,borderInlineEndWidth:Le.lineWidth},[`${Ce}`]:{float:"none"},[`& > ${Ne}-select > ${Ne}-select-selector,
|
|
|
& > ${Ne}-select-auto-complete ${Ce},
|
|
|
& > ${Ne}-cascader-picker ${Ce},
|
|
|
& > ${Ce}-group-wrapper ${Ce}`]:{borderInlineEndWidth:Le.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Ne}-select-focused`]:{zIndex:1},[`& > ${Ne}-select > ${Ne}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Ne}-select:first-child > ${Ne}-select-selector,
|
|
|
& > ${Ne}-select-auto-complete:first-child ${Ce},
|
|
|
& > ${Ne}-cascader-picker:first-child ${Ce}`]:{borderStartStartRadius:Le.borderRadius,borderEndStartRadius:Le.borderRadius},[`& > *:last-child,
|
|
|
& > ${Ne}-select:last-child > ${Ne}-select-selector,
|
|
|
& > ${Ne}-cascader-picker:last-child ${Ce},
|
|
|
& > ${Ne}-cascader-picker-focused:last-child ${Ce}`]:{borderInlineEndWidth:Le.lineWidth,borderStartEndRadius:Le.borderRadius,borderEndEndRadius:Le.borderRadius},[`& > ${Ne}-select-auto-complete ${Ce}`]:{verticalAlign:"top"},[`${Ce}-group-wrapper + ${Ce}-group-wrapper`]:{marginInlineStart:-Le.lineWidth,[`${Ce}-affix-wrapper`]:{borderRadius:0}},[`${Ce}-group-wrapper:not(:last-child)`]:{[`&${Ce}-search > ${Ce}-group`]:{[`& > ${Ce}-group-addon > ${Ce}-search-button`]:{borderRadius:0},[`& > ${Ce}`]:{borderStartStartRadius:Le.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Le.borderRadius}}}})}},ue=Le=>{const{componentCls:Ce,controlHeightSM:Ne,lineWidth:Te}=Le,Ee=(Ne-Te*2-16)/2;return{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ye.Wf)(Le)),ne(Le)),pe(Le,Ce)),{'&[type="color"]':{height:Le.controlHeight,[`&${Ce}-lg`]:{height:Le.controlHeightLG},[`&${Ce}-sm`]:{height:Ne,paddingTop:Ee,paddingBottom:Ee}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},de=Le=>{const{componentCls:Ce}=Le;return{[`${Ce}-clear-icon`]:{margin:0,color:Le.colorTextQuaternary,fontSize:Le.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Le.motionDurationSlow}`,"&:hover":{color:Le.colorTextTertiary},"&:active":{color:Le.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Le.inputAffixPadding}px`}}}},he=Le=>{const{componentCls:Ce,inputAffixPadding:Ne,colorTextDescription:Te,motionDurationSlow:De,colorIcon:Ee,colorIconHover:Pe,iconCls:Be}=Le;return{[`${Ce}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ne(Le)),{display:"inline-flex",[`&:not(${Ce}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},re(Le)),{zIndex:1,[`${Ce}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Ce}[disabled]`]:{background:"transparent"}},[`> input${Ce}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ce}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Le.paddingXS}},"&-show-count-suffix":{color:Te},"&-show-count-has-suffix":{marginInlineEnd:Le.paddingXXS},"&-prefix":{marginInlineEnd:Ne},"&-suffix":{marginInlineStart:Ne}}}),de(Le)),{[`${Be}${Ce}-password-icon`]:{color:Ee,cursor:"pointer",transition:`all ${De}`,"&:hover":{color:Pe}}}),pe(Le,`${Ce}-affix-wrapper`))}},xe=Le=>{const{componentCls:Ce,colorError:Ne,colorWarning:Te,borderRadiusLG:De,borderRadiusSM:Ee}=Le;return{[`${Ce}-group`]:Object.assign(Object.assign(Object.assign({},(0,Ye.Wf)(Le)),ae(Le)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Ce}-group-addon`]:{borderRadius:De,fontSize:Le.fontSizeLG}},"&-sm":{[`${Ce}-group-addon`]:{borderRadius:Ee}},"&-status-error":{[`${Ce}-group-addon`]:{color:Ne,borderColor:Ne}},"&-status-warning":{[`${Ce}-group-addon`]:{color:Te,borderColor:Te}},"&-disabled":{[`${Ce}-group-addon`]:Object.assign({},ie(Le))},[`&:not(${Ce}-compact-first-item):not(${Ce}-compact-last-item)${Ce}-compact-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderRadius:0}},[`&:not(${Ce}-compact-last-item)${Ce}-compact-first-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ce}-compact-first-item)${Ce}-compact-last-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Se=Le=>{const{componentCls:Ce,antCls:Ne}=Le,Te=`${Ce}-search`;return{[Te]:{[`${Ce}`]:{"&:hover, &:focus":{borderColor:Le.colorPrimaryHover,[`+ ${Ce}-group-addon ${Te}-button:not(${Ne}-btn-primary)`]:{borderInlineStartColor:Le.colorPrimaryHover}}},[`${Ce}-affix-wrapper`]:{borderRadius:0},[`${Ce}-lg`]:{lineHeight:Le.lineHeightLG-2e-4},[`> ${Ce}-group`]:{[`> ${Ce}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Te}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Le.borderRadius,borderEndEndRadius:Le.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Te}-button:not(${Ne}-btn-primary)`]:{color:Le.colorTextDescription,"&:hover":{color:Le.colorPrimaryHover},"&:active":{color:Le.colorPrimaryActive},[`&${Ne}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Te}-button`]:{height:Le.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Te}-button`]:{height:Le.controlHeightLG},[`&-small ${Te}-button`]:{height:Le.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Ce}-compact-item`]:{[`&:not(${Ce}-compact-last-item)`]:{[`${Ce}-group-addon`]:{[`${Ce}-search-button`]:{marginInlineEnd:-Le.lineWidth,borderRadius:0}}},[`&:not(${Ce}-compact-first-item)`]:{[`${Ce},${Ce}-affix-wrapper`]:{borderRadius:0}},[`> ${Ce}-group-addon ${Ce}-search-button,
|
|
|
> ${Ce},
|
|
|
${Ce}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Ce}-affix-wrapper-focused`]:{zIndex:2}}}}},we=Le=>{const{componentCls:Ce,paddingLG:Ne}=Le,Te=`${Ce}-textarea`;return{[Te]:{position:"relative","&-show-count":{[`> ${Ce}`]:{height:"100%"},[`${Ce}-data-count`]:{position:"absolute",bottom:-Le.fontSize*Le.lineHeight,insetInlineEnd:0,color:Le.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Ce}`]:{paddingInlineEnd:Ne}},[`&-affix-wrapper${Te}-has-feedback`]:{[`${Ce}`]:{paddingInlineEnd:Ne}},[`&-affix-wrapper${Ce}-affix-wrapper`]:{padding:0,[`> textarea${Ce}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Ce}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ce}-clear-icon`]:{position:"absolute",insetInlineEnd:Le.paddingXS,insetBlockStart:Le.paddingXS},[`${Te}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Le.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function be(Le){return(0,x.TS)(Le,{inputAffixPadding:Le.paddingXXS})}const Me=Le=>{const{controlHeight:Ce,fontSize:Ne,lineHeight:Te,lineWidth:De,controlHeightSM:Ee,controlHeightLG:Pe,fontSizeLG:Be,lineHeightLG:Ve,paddingSM:Ie,controlPaddingHorizontalSM:Ze,controlPaddingHorizontal:Qe,colorFillAlter:tt,colorPrimaryHover:it,controlOutlineWidth:ht,controlOutline:Ge,colorErrorOutline:Xe,colorWarningOutline:ct}=Le;return{paddingBlock:Math.max(Math.round((Ce-Ne*Te)/2*10)/10-De,3),paddingBlockSM:Math.max(Math.round((Ee-Ne*Te)/2*10)/10-De,0),paddingBlockLG:Math.ceil((Pe-Be*Ve)/2*10)/10-De,paddingInline:Ie-De,paddingInlineSM:Ze-De,paddingInlineLG:Qe-De,addonBg:tt,activeBorderColor:it,hoverBorderColor:it,activeShadow:`0 0 0 ${ht}px ${Ge}`,errorActiveShadow:`0 0 0 ${ht}px ${Xe}`,warningActiveShadow:`0 0 0 ${ht}px ${ct}`}};Wt.ZP=(0,Ae.Z)("Input",Le=>{const Ce=(0,x.TS)(Le,be(Le));return[ue(Ce),we(Ce),he(Ce),xe(Ce),Se(Ce),(0,vt.c)(Ce)]},Me)},45818:function(gr,Wt,ke){"use strict";ke.d(Wt,{D:function(){return be},Z:function(){return Ce}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(Te,De){return vt.createElement(me.Z,(0,Ye.Z)({},Te,{ref:De,icon:Ae}))},z=vt.forwardRef(re),ie=z,oe=ke(33853),se=ke(38819),pe=ke(92310),ne=ke.n(pe),ae=ke(2738),de=Ne=>!isNaN(parseFloat(Ne))&&isFinite(Ne),he=ke(36355),xe=ke(84966),Se=function(Ne,Te){var De={};for(var Ee in Ne)Object.prototype.hasOwnProperty.call(Ne,Ee)&&Te.indexOf(Ee)<0&&(De[Ee]=Ne[Ee]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ee=Object.getOwnPropertySymbols(Ne);Pe<Ee.length;Pe++)Te.indexOf(Ee[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Ee[Pe])&&(De[Ee[Pe]]=Ne[Ee[Pe]]);return De};const we={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},be=vt.createContext({}),Me=(()=>{let Ne=0;return function(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ne+=1,`${Te}${Ne}`}})();var Ce=vt.forwardRef((Ne,Te)=>{const{prefixCls:De,className:Ee,trigger:Pe,children:Be,defaultCollapsed:Ve=!1,theme:Ie="dark",style:Ze={},collapsible:Qe=!1,reverseArrow:tt=!1,width:it=200,collapsedWidth:ht=80,zeroWidthTriggerStyle:Ge,breakpoint:Xe,onCollapse:ct,onBreakpoint:pt}=Ne,ut=Se(Ne,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:rt}=(0,vt.useContext)(xe.Gs),[qe,nt]=(0,vt.useState)("collapsed"in Ne?Ne.collapsed:Ve),[xt,yt]=(0,vt.useState)(!1);(0,vt.useEffect)(()=>{"collapsed"in Ne&&nt(Ne.collapsed)},[Ne.collapsed]);const Rt=(fe,Fe)=>{"collapsed"in Ne||nt(fe),ct==null||ct(fe,Fe)},Ot=(0,vt.useRef)();Ot.current=fe=>{yt(fe.matches),pt==null||pt(fe.matches),qe!==fe.matches&&Rt(fe.matches,"responsive")},(0,vt.useEffect)(()=>{function fe(He){return Ot.current(He)}let Fe;if(typeof window!="undefined"){const{matchMedia:He}=window;if(He&&Xe&&Xe in we){Fe=He(`(max-width: ${we[Xe]})`);try{Fe.addEventListener("change",fe)}catch(ye){Fe.addListener(fe)}fe(Fe)}}return()=>{try{Fe==null||Fe.removeEventListener("change",fe)}catch(He){Fe==null||Fe.removeListener(fe)}}},[Xe]),(0,vt.useEffect)(()=>{const fe=Me("ant-sider-");return rt.addSider(fe),()=>rt.removeSider(fe)},[]);const lt=()=>{Rt(!qe,"clickTrigger")},{getPrefixCls:Ue}=(0,vt.useContext)(he.E_),$e=()=>{const fe=Ue("layout-sider",De),Fe=(0,ae.Z)(ut,["collapsed"]),He=qe?ht:it,ye=de(He)?`${He}px`:String(He),Re=parseFloat(String(ht||0))===0?vt.createElement("span",{onClick:lt,className:ne()(`${fe}-zero-width-trigger`,`${fe}-zero-width-trigger-${tt?"right":"left"}`),style:Ge},Pe||vt.createElement(ie,null)):null,We={expanded:tt?vt.createElement(se.Z,null):vt.createElement(oe.Z,null),collapsed:tt?vt.createElement(oe.Z,null):vt.createElement(se.Z,null)}[qe?"collapsed":"expanded"],st=Pe!==null?Re||vt.createElement("div",{className:`${fe}-trigger`,onClick:lt,style:{width:ye}},Pe||We):null,bt=Object.assign(Object.assign({},Ze),{flex:`0 0 ${ye}`,maxWidth:ye,minWidth:ye,width:ye}),at=ne()(fe,`${fe}-${Ie}`,{[`${fe}-collapsed`]:!!qe,[`${fe}-has-trigger`]:Qe&&Pe!==null&&!Re,[`${fe}-below`]:!!xt,[`${fe}-zero-width`]:parseFloat(ye)===0},Ee);return vt.createElement("aside",Object.assign({className:at},Fe,{style:bt,ref:Te}),vt.createElement("div",{className:`${fe}-children`},Be),Qe||xt&&Re?st:null)},le=vt.useMemo(()=>({siderCollapsed:qe}),[qe]);return vt.createElement(be.Provider,{value:le},$e())})},84966:function(gr,Wt,ke){"use strict";ke.d(Wt,{VY:function(){return be},$_:function(){return we},h4:function(){return Se},Gs:function(){return ae},ZP:function(){return Me}});var Ye=ke(94480),vt=ke(92310),x=ke.n(vt),Ae=ke(2738),me=ke(59301),re=ke(36355),z=ke(83116),oe=Le=>{const{componentCls:Ce,bodyBg:Ne,lightSiderBg:Te,lightTriggerBg:De,lightTriggerColor:Ee}=Le;return{[`${Ce}-sider-light`]:{background:Te,[`${Ce}-sider-trigger`]:{color:Ee,background:De},[`${Ce}-sider-zero-width-trigger`]:{color:Ee,background:De,border:`1px solid ${Ne}`,borderInlineStart:0}}}};const se=Le=>{const{antCls:Ce,componentCls:Ne,colorText:Te,triggerColor:De,footerBg:Ee,triggerBg:Pe,headerHeight:Be,headerPadding:Ve,headerColor:Ie,footerPadding:Ze,triggerHeight:Qe,zeroTriggerHeight:tt,zeroTriggerWidth:it,motionDurationMid:ht,motionDurationSlow:Ge,fontSize:Xe,borderRadius:ct,bodyBg:pt,headerBg:ut,siderBg:rt}=Le;return{[Ne]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:pt,"&, *":{boxSizing:"border-box"},[`&${Ne}-has-sider`]:{flexDirection:"row",[`> ${Ne}, > ${Ne}-content`]:{width:0}},[`${Ne}-header, &${Ne}-footer`]:{flex:"0 0 auto"},[`${Ne}-sider`]:{position:"relative",minWidth:0,background:rt,transition:`all ${ht}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ce}-menu${Ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Qe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Qe,color:De,lineHeight:`${Qe}px`,textAlign:"center",background:Pe,cursor:"pointer",transition:`all ${ht}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Be,insetInlineEnd:-it,zIndex:1,width:it,height:tt,color:De,fontSize:Le.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:rt,borderStartStartRadius:0,borderStartEndRadius:ct,borderEndEndRadius:ct,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ge} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ge}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-it,borderStartStartRadius:ct,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ct}}}}},oe(Le)),{"&-rtl":{direction:"rtl"}}),[`${Ne}-header`]:{height:Be,padding:Ve,color:Ie,lineHeight:`${Be}px`,background:ut,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${Ne}-footer`]:{padding:Ze,color:Te,fontSize:Xe,background:Ee},[`${Ne}-content`]:{flex:"auto",minHeight:0}}};var pe=(0,z.Z)("Layout",Le=>[se(Le)],Le=>{const{colorBgLayout:Ce,controlHeight:Ne,controlHeightLG:Te,colorText:De,controlHeightSM:Ee,marginXXS:Pe,colorTextLightSolid:Be,colorBgContainer:Ve}=Le,Ie=Te*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:Ne*2,headerPadding:`0 ${Ie}px`,headerColor:De,footerPadding:`${Ee}px ${Ie}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:Te+Pe*2,triggerBg:"#002140",triggerColor:Be,zeroTriggerWidth:Te,zeroTriggerHeight:Te,lightSiderBg:Ve,lightTriggerBg:Ve,lightTriggerColor:De}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ne=function(Le,Ce){var Ne={};for(var Te in Le)Object.prototype.hasOwnProperty.call(Le,Te)&&Ce.indexOf(Te)<0&&(Ne[Te]=Le[Te]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Te=Object.getOwnPropertySymbols(Le);De<Te.length;De++)Ce.indexOf(Te[De])<0&&Object.prototype.propertyIsEnumerable.call(Le,Te[De])&&(Ne[Te[De]]=Le[Te[De]]);return Ne};const ae=me.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ue(Le){let{suffixCls:Ce,tagName:Ne,displayName:Te}=Le;return De=>me.forwardRef((Pe,Be)=>me.createElement(De,Object.assign({ref:Be,suffixCls:Ce,tagName:Ne},Pe)))}const de=me.forwardRef((Le,Ce)=>{const{prefixCls:Ne,suffixCls:Te,className:De,tagName:Ee}=Le,Pe=ne(Le,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Be}=me.useContext(re.E_),Ve=Be("layout",Ne),[Ie,Ze]=pe(Ve),Qe=Te?`${Ve}-${Te}`:Ve;return Ie(me.createElement(Ee,Object.assign({className:x()(Ne||Qe,De,Ze),ref:Ce},Pe)))}),he=me.forwardRef((Le,Ce)=>{const{direction:Ne}=me.useContext(re.E_),[Te,De]=me.useState([]),{prefixCls:Ee,className:Pe,rootClassName:Be,children:Ve,hasSider:Ie,tagName:Ze,style:Qe}=Le,tt=ne(Le,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),it=(0,Ae.Z)(tt,["suffixCls"]),{getPrefixCls:ht,layout:Ge}=me.useContext(re.E_),Xe=ht("layout",Ee),[ct,pt]=pe(Xe),ut=x()(Xe,{[`${Xe}-has-sider`]:typeof Ie=="boolean"?Ie:Te.length>0,[`${Xe}-rtl`]:Ne==="rtl"},Ge==null?void 0:Ge.className,Pe,Be,pt),rt=me.useMemo(()=>({siderHook:{addSider:qe=>{De(nt=>[].concat((0,Ye.Z)(nt),[qe]))},removeSider:qe=>{De(nt=>nt.filter(xt=>xt!==qe))}}}),[]);return ct(me.createElement(ae.Provider,{value:rt},me.createElement(Ze,Object.assign({ref:Ce,className:ut,style:Object.assign(Object.assign({},Ge==null?void 0:Ge.style),Qe)},it),Ve)))}),xe=ue({tagName:"div",displayName:"Layout"})(he),Se=ue({suffixCls:"header",tagName:"header",displayName:"Header"})(de),we=ue({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(de),be=ue({suffixCls:"content",tagName:"main",displayName:"Content"})(de);var Me=xe},40875:function(gr,Wt,ke){"use strict";ke.d(Wt,{J:function(){return re}});var Ye=ke(59301),vt=ke(33234),x=ke(70425),Ae=function(z,ie){var oe={};for(var se in z)Object.prototype.hasOwnProperty.call(z,se)&&ie.indexOf(se)<0&&(oe[se]=z[se]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,se=Object.getOwnPropertySymbols(z);pe<se.length;pe++)ie.indexOf(se[pe])<0&&Object.prototype.propertyIsEnumerable.call(z,se[pe])&&(oe[se[pe]]=z[se[pe]]);return oe};const me=Ye.createContext(null),re=Ye.forwardRef((z,ie)=>{const{children:oe}=z,se=Ae(z,["children"]),pe=Ye.useContext(me),ne=Ye.useMemo(()=>Object.assign(Object.assign({},pe),se),[pe,se.prefixCls,se.mode,se.selectable]);return Ye.createElement(me.Provider,{value:ne},Ye.createElement(vt.BR,null,(0,x.supportNodeRef)(oe)?Ye.cloneElement(oe,{ref:ie}):oe))});Wt.Z=me},20834:function(gr,Wt,ke){"use strict";ke.d(Wt,{default:function(){return le}});var Ye=ke(15285),vt=ke(59301),x=ke(45818),Ae=ke(92310),me=ke.n(Ae),re=ke(36355),z=function(fe,Fe){var He={};for(var ye in fe)Object.prototype.hasOwnProperty.call(fe,ye)&&Fe.indexOf(ye)<0&&(He[ye]=fe[ye]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,ye=Object.getOwnPropertySymbols(fe);Re<ye.length;Re++)Fe.indexOf(ye[Re])<0&&Object.prototype.propertyIsEnumerable.call(fe,ye[Re])&&(He[ye[Re]]=fe[ye[Re]]);return He},oe=fe=>{const{prefixCls:Fe,className:He,dashed:ye}=fe,Re=z(fe,["prefixCls","className","dashed"]),{getPrefixCls:ze}=vt.useContext(re.E_),Ke=ze("menu",Fe),We=me()({[`${Ke}-item-divider-dashed`]:!!ye},He);return vt.createElement(Ye.iz,Object.assign({className:We},Re))},se=ke(11592),pe=ke(2738),ne=ke(6848),ae=ke(92343),de=(0,vt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),xe=fe=>{var Fe;const{className:He,children:ye,icon:Re,title:ze,danger:Ke}=fe,{prefixCls:We,firstLevel:st,direction:bt,disableMenuItemTitleTooltip:at,inlineCollapsed:kt}=vt.useContext(de),Ht=dt=>{const Ft=vt.createElement("span",{className:`${We}-title-content`},ye);return(!Re||(0,ae.l$)(ye)&&ye.type==="span")&&ye&&dt&&st&&typeof ye=="string"?vt.createElement("div",{className:`${We}-inline-collapsed-noicon`},ye.charAt(0)):Ft},{siderCollapsed:Ct}=vt.useContext(x.D);let $t=ze;typeof ze=="undefined"?$t=st?ye:"":ze===!1&&($t="");const Bt={title:$t};!Ct&&!kt&&(Bt.title=null,Bt.open=!1);const St=(0,se.Z)(ye).length;let ft=vt.createElement(Ye.ck,Object.assign({},(0,pe.Z)(fe,["title","icon","danger"]),{className:me()({[`${We}-item-danger`]:Ke,[`${We}-item-only-child`]:(Re?St+1:St)===1},He),title:typeof ze=="string"?ze:void 0}),(0,ae.Tm)(Re,{className:me()((0,ae.l$)(Re)?(Fe=Re.props)===null||Fe===void 0?void 0:Fe.className:"",`${We}-item-icon`)}),Ht(kt));return at||(ft=vt.createElement(ne.Z,Object.assign({},Bt,{placement:bt==="rtl"?"left":"right",overlayClassName:`${We}-inline-collapsed-tooltip`}),ft)),ft},we=fe=>{var Fe;const{popupClassName:He,icon:ye,title:Re,theme:ze}=fe,Ke=vt.useContext(de),{prefixCls:We,inlineCollapsed:st,theme:bt}=Ke,at=(0,Ye.Xl)();let kt;if(!ye)kt=st&&!at.length&&Re&&typeof Re=="string"?vt.createElement("div",{className:`${We}-inline-collapsed-noicon`},Re.charAt(0)):vt.createElement("span",{className:`${We}-title-content`},Re);else{const Ct=(0,ae.l$)(Re)&&Re.type==="span";kt=vt.createElement(vt.Fragment,null,(0,ae.Tm)(ye,{className:me()((0,ae.l$)(ye)?(Fe=ye.props)===null||Fe===void 0?void 0:Fe.className:"",`${We}-item-icon`)}),Ct?Re:vt.createElement("span",{className:`${We}-title-content`},Re))}const Ht=vt.useMemo(()=>Object.assign(Object.assign({},Ke),{firstLevel:!1}),[Ke]);return vt.createElement(de.Provider,{value:Ht},vt.createElement(Ye.Wd,Object.assign({},(0,pe.Z)(fe,["icon"]),{title:kt,popupClassName:me()(We,He,`${We}-${ze||bt}`)})))},be=ke(18785),Me=ke(70425),Le=ke(62892),Ce=ke(40875),Ne=function(fe,Fe){var He={};for(var ye in fe)Object.prototype.hasOwnProperty.call(fe,ye)&&Fe.indexOf(ye)<0&&(He[ye]=fe[ye]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,ye=Object.getOwnPropertySymbols(fe);Re<ye.length;Re++)Fe.indexOf(ye[Re])<0&&Object.prototype.propertyIsEnumerable.call(fe,ye[Re])&&(He[ye[Re]]=fe[ye[Re]]);return He};function Te(fe){return(fe||[]).map((Fe,He)=>{if(Fe&&typeof Fe=="object"){const ye=Fe,{label:Re,children:ze,key:Ke,type:We}=ye,st=Ne(ye,["label","children","key","type"]),bt=Ke!=null?Ke:`tmp-${He}`;return ze||We==="group"?We==="group"?vt.createElement(Ye.BW,Object.assign({key:bt},st,{title:Re}),Te(ze)):vt.createElement(we,Object.assign({key:bt},st,{title:Re}),Te(ze)):We==="divider"?vt.createElement(oe,Object.assign({key:bt},st)):vt.createElement(xe,Object.assign({key:bt},st),Re)}return null}).filter(Fe=>Fe)}function De(fe){return vt.useMemo(()=>fe&&Te(fe),[fe])}var Ee=ke(64993),Pe=ke(17313),Be=ke(8378),Ve=ke(13826),Ie=ke(29878),Ze=ke(83116),Qe=ke(37613),it=fe=>{const{componentCls:Fe,motionDurationSlow:He,horizontalLineHeight:ye,colorSplit:Re,lineWidth:ze,lineType:Ke,itemPaddingInline:We}=fe;return{[`${Fe}-horizontal`]:{lineHeight:ye,border:0,borderBottom:`${ze}px ${Ke} ${Re}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Fe}-item, ${Fe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:We},[`> ${Fe}-item:hover,
|
|
|
> ${Fe}-item-active,
|
|
|
> ${Fe}-submenu ${Fe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Fe}-item, ${Fe}-submenu-title`]:{transition:[`border-color ${He}`,`background ${He}`].join(",")},[`${Fe}-submenu-arrow`]:{display:"none"}}}},Ge=fe=>{let{componentCls:Fe,menuArrowOffset:He}=fe;return{[`${Fe}-rtl`]:{direction:"rtl"},[`${Fe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Fe}-rtl${Fe}-vertical,
|
|
|
${Fe}-submenu-rtl ${Fe}-vertical`]:{[`${Fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${He})`},"&::after":{transform:`rotate(45deg) translateY(${He})`}}}}};const Xe=fe=>Object.assign({},(0,Pe.oN)(fe));var pt=(fe,Fe)=>{const{componentCls:He,itemColor:ye,itemSelectedColor:Re,groupTitleColor:ze,itemBg:Ke,subMenuItemBg:We,itemSelectedBg:st,activeBarHeight:bt,activeBarWidth:at,activeBarBorderWidth:kt,motionDurationSlow:Ht,motionEaseInOut:Ct,motionEaseOut:$t,itemPaddingInline:Bt,motionDurationMid:St,itemHoverColor:ft,lineType:dt,colorSplit:Ft,itemDisabledColor:zt,dangerItemColor:Zt,dangerItemHoverColor:tr,dangerItemSelectedColor:mr,dangerItemActiveBg:Er,dangerItemSelectedBg:zr,itemHoverBg:jr,itemActiveBg:Tr,menuSubMenuBg:Vr,horizontalItemSelectedColor:sn,horizontalItemSelectedBg:vn,horizontalItemBorderRadius:en,horizontalItemHoverBg:hn,popupBg:_n}=fe;return{[`${He}-${Fe}, ${He}-${Fe} > ${He}`]:{color:ye,background:Ke,[`&${He}-root:focus-visible`]:Object.assign({},Xe(fe)),[`${He}-item-group-title`]:{color:ze},[`${He}-submenu-selected`]:{[`> ${He}-submenu-title`]:{color:Re}},[`${He}-item-disabled, ${He}-submenu-disabled`]:{color:`${zt} !important`},[`${He}-item:not(${He}-item-selected):not(${He}-submenu-selected)`]:{[`&:hover, > ${He}-submenu-title:hover`]:{color:ft}},[`&:not(${He}-horizontal)`]:{[`${He}-item:not(${He}-item-selected)`]:{"&:hover":{backgroundColor:jr},"&:active":{backgroundColor:Tr}},[`${He}-submenu-title`]:{"&:hover":{backgroundColor:jr},"&:active":{backgroundColor:Tr}}},[`${He}-item-danger`]:{color:Zt,[`&${He}-item:hover`]:{[`&:not(${He}-item-selected):not(${He}-submenu-selected)`]:{color:tr}},[`&${He}-item:active`]:{background:Er}},[`${He}-item a`]:{"&, &:hover":{color:"inherit"}},[`${He}-item-selected`]:{color:Re,[`&${He}-item-danger`]:{color:mr},"a, a:hover":{color:"inherit"}},[`& ${He}-item-selected`]:{backgroundColor:st,[`&${He}-item-danger`]:{backgroundColor:zr}},[`${He}-item, ${He}-submenu-title`]:{[`&:not(${He}-item-disabled):focus-visible`]:Object.assign({},Xe(fe))},[`&${He}-submenu > ${He}`]:{backgroundColor:Vr},[`&${He}-popup > ${He}`]:{backgroundColor:_n},[`&${He}-horizontal`]:Object.assign(Object.assign({},Fe==="dark"?{borderBottom:0}:{}),{[`> ${He}-item, > ${He}-submenu`]:{top:kt,marginTop:-kt,marginBottom:0,borderRadius:en,"&::after":{position:"absolute",insetInline:Bt,bottom:0,borderBottom:`${bt}px solid transparent`,transition:`border-color ${Ht} ${Ct}`,content:'""'},"&:hover, &-active, &-open":{background:hn,"&::after":{borderBottomWidth:bt,borderBottomColor:sn}},"&-selected":{color:sn,backgroundColor:vn,"&:hover":{backgroundColor:vn},"&::after":{borderBottomWidth:bt,borderBottomColor:sn}}}}),[`&${He}-root`]:{[`&${He}-inline, &${He}-vertical`]:{borderInlineEnd:`${kt}px ${dt} ${Ft}`}},[`&${He}-inline`]:{[`${He}-sub${He}-inline`]:{background:We},[`${He}-item, ${He}-submenu-title`]:kt&&at?{width:`calc(100% + ${kt}px)`}:{},[`${He}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${at}px solid ${Re}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${St} ${$t}`,`opacity ${St} ${$t}`].join(","),content:'""'},[`&${He}-item-danger`]:{"&::after":{borderInlineEndColor:mr}}},[`${He}-selected, ${He}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${St} ${Ct}`,`opacity ${St} ${Ct}`].join(",")}}}}}};const ut=fe=>{const{componentCls:Fe,itemHeight:He,itemMarginInline:ye,padding:Re,menuArrowSize:ze,marginXS:Ke,itemMarginBlock:We}=fe,st=Re+ze+Ke;return{[`${Fe}-item`]:{position:"relative",overflow:"hidden"},[`${Fe}-item, ${Fe}-submenu-title`]:{height:He,lineHeight:`${He}px`,paddingInline:Re,overflow:"hidden",textOverflow:"ellipsis",marginInline:ye,marginBlock:We,width:`calc(100% - ${ye*2}px)`},[`> ${Fe}-item,
|
|
|
> ${Fe}-submenu > ${Fe}-submenu-title`]:{height:He,lineHeight:`${He}px`},[`${Fe}-item-group-list ${Fe}-submenu-title,
|
|
|
${Fe}-submenu-title`]:{paddingInlineEnd:st}}};var qe=fe=>{const{componentCls:Fe,iconCls:He,itemHeight:ye,colorTextLightSolid:Re,dropdownWidth:ze,controlHeightLG:Ke,motionDurationMid:We,motionEaseOut:st,paddingXL:bt,itemMarginInline:at,fontSizeLG:kt,motionDurationSlow:Ht,paddingXS:Ct,boxShadowSecondary:$t,collapsedWidth:Bt,collapsedIconSize:St}=fe,ft={height:ye,lineHeight:`${ye}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Fe]:{"&-inline, &-vertical":Object.assign({[`&${Fe}-root`]:{boxShadow:"none"}},ut(fe))},[`${Fe}-submenu-popup`]:{[`${Fe}-vertical`]:Object.assign(Object.assign({},ut(fe)),{boxShadow:$t})}},{[`${Fe}-submenu-popup ${Fe}-vertical${Fe}-sub`]:{minWidth:ze,maxHeight:`calc(100vh - ${Ke*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Fe}-inline`]:{width:"100%",[`&${Fe}-root`]:{[`${Fe}-item, ${Fe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ht}`,`background ${Ht}`,`padding ${We} ${st}`].join(","),[`> ${Fe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Fe}-sub${Fe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Fe}-submenu > ${Fe}-submenu-title`]:ft,[`& ${Fe}-item-group-title`]:{paddingInlineStart:bt}},[`${Fe}-item`]:ft}},{[`${Fe}-inline-collapsed`]:{width:Bt,[`&${Fe}-root`]:{[`${Fe}-item, ${Fe}-submenu ${Fe}-submenu-title`]:{[`> ${Fe}-inline-collapsed-noicon`]:{fontSize:kt,textAlign:"center"}}},[`> ${Fe}-item,
|
|
|
> ${Fe}-item-group > ${Fe}-item-group-list > ${Fe}-item,
|
|
|
> ${Fe}-item-group > ${Fe}-item-group-list > ${Fe}-submenu > ${Fe}-submenu-title,
|
|
|
> ${Fe}-submenu > ${Fe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${kt/2}px - ${at}px)`,textOverflow:"clip",[`
|
|
|
${Fe}-submenu-arrow,
|
|
|
${Fe}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Fe}-item-icon, ${He}`]:{margin:0,fontSize:St,lineHeight:`${ye}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Fe}-item-icon, ${He}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Fe}-item-icon, ${He}`]:{display:"none"},"a, a:hover":{color:Re}},[`${Fe}-item-group-title`]:Object.assign(Object.assign({},Pe.vS),{paddingInline:Ct})}}]};const nt=fe=>{const{componentCls:Fe,motionDurationSlow:He,motionDurationMid:ye,motionEaseInOut:Re,motionEaseOut:ze,iconCls:Ke,iconSize:We,iconMarginInlineEnd:st}=fe;return{[`${Fe}-item, ${Fe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${He}`,`background ${He}`,`padding ${He} ${Re}`].join(","),[`${Fe}-item-icon, ${Ke}`]:{minWidth:We,fontSize:We,transition:[`font-size ${ye} ${ze}`,`margin ${He} ${Re}`,`color ${He}`].join(","),"+ span":{marginInlineStart:st,opacity:1,transition:[`opacity ${He} ${Re}`,`margin ${He}`,`color ${He}`].join(",")}},[`${Fe}-item-icon`]:Object.assign({},(0,Pe.Ro)()),[`&${Fe}-item-only-child`]:{[`> ${Ke}, > ${Fe}-item-icon`]:{marginInlineEnd:0}}},[`${Fe}-item-disabled, ${Fe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Fe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},xt=fe=>{const{componentCls:Fe,motionDurationSlow:He,motionEaseInOut:ye,borderRadius:Re,menuArrowSize:ze,menuArrowOffset:Ke}=fe;return{[`${Fe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:fe.margin,width:ze,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${He} ${ye}, opacity ${He}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ze*.6,height:ze*.15,backgroundColor:"currentcolor",borderRadius:Re,transition:[`background ${He} ${ye}`,`transform ${He} ${ye}`,`top ${He} ${ye}`,`color ${He} ${ye}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ke})`},"&::after":{transform:`rotate(-45deg) translateY(${Ke})`}}}}},yt=fe=>{const{antCls:Fe,componentCls:He,fontSize:ye,motionDurationSlow:Re,motionDurationMid:ze,motionEaseInOut:Ke,paddingXS:We,padding:st,colorSplit:bt,lineWidth:at,zIndexPopup:kt,borderRadiusLG:Ht,subMenuItemBorderRadius:Ct,menuArrowSize:$t,menuArrowOffset:Bt,lineType:St,menuPanelMaskInset:ft,groupTitleLineHeight:dt,groupTitleFontSize:Ft}=fe;return[{"":{[`${He}`]:Object.assign(Object.assign({},(0,Pe.dF)()),{"&-hidden":{display:"none"}})},[`${He}-submenu-hidden`]:{display:"none"}},{[He]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(fe)),(0,Pe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ye,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Re} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${He}-item`]:{flex:"none"}},[`${He}-item, ${He}-submenu, ${He}-submenu-title`]:{borderRadius:fe.itemBorderRadius},[`${He}-item-group-title`]:{padding:`${We}px ${st}px`,fontSize:Ft,lineHeight:dt,transition:`all ${Re}`},[`&-horizontal ${He}-submenu`]:{transition:[`border-color ${Re} ${Ke}`,`background ${Re} ${Ke}`].join(",")},[`${He}-submenu, ${He}-submenu-inline`]:{transition:[`border-color ${Re} ${Ke}`,`background ${Re} ${Ke}`,`padding ${ze} ${Ke}`].join(",")},[`${He}-submenu ${He}-sub`]:{cursor:"initial",transition:[`background ${Re} ${Ke}`,`padding ${Re} ${Ke}`].join(",")},[`${He}-title-content`]:{transition:`color ${Re}`},[`${He}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${He}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:bt,borderStyle:St,borderWidth:0,borderTopWidth:at,marginBlock:at,padding:0,"&-dashed":{borderStyle:"dashed"}}}),nt(fe)),{[`${He}-item-group`]:{[`${He}-item-group-list`]:{margin:0,padding:0,[`${He}-item, ${He}-submenu-title`]:{paddingInline:`${ye*2}px ${st}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:kt,borderRadius:Ht,boxShadow:"none",transformOrigin:"0 0",[`&${He}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ft}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ft},"\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:fe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:fe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:fe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:fe.paddingXS},[`> ${He}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ht},nt(fe)),xt(fe)),{[`${He}-item, ${He}-submenu > ${He}-submenu-title`]:{borderRadius:Ct},[`${He}-submenu-title::after`]:{transition:`transform ${Re} ${Ke}`}})}}),xt(fe)),{[`&-inline-collapsed ${He}-submenu-arrow,
|
|
|
&-inline ${He}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Bt})`},"&::after":{transform:`rotate(45deg) translateX(-${Bt})`}},[`${He}-submenu-open${He}-submenu-inline > ${He}-submenu-title > ${He}-submenu-arrow`]:{transform:`translateY(-${$t*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Bt})`},"&::before":{transform:`rotate(45deg) translateX(${Bt})`}}})},{[`${Fe}-layout-header`]:{[He]:{lineHeight:"inherit"}}}]};var Rt=(fe,Fe)=>(0,Ze.Z)("Menu",ye=>{if(Fe===!1)return[];const{colorBgElevated:Re,colorPrimary:ze,colorTextLightSolid:Ke,controlHeightLG:We,fontSize:st,darkItemColor:bt,darkDangerItemColor:at,darkItemBg:kt,darkSubMenuItemBg:Ht,darkItemSelectedColor:Ct,darkItemSelectedBg:$t,darkDangerItemSelectedBg:Bt,darkItemHoverBg:St,darkGroupTitleColor:ft,darkItemHoverColor:dt,darkItemDisabledColor:Ft,darkDangerItemHoverColor:zt,darkDangerItemSelectedColor:Zt,darkDangerItemActiveBg:tr}=ye,mr=st/7*5,Er=(0,Qe.TS)(ye,{menuArrowSize:mr,menuHorizontalHeight:We*1.15,menuArrowOffset:`${mr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Re}),zr=(0,Qe.TS)(Er,{itemColor:bt,itemHoverColor:dt,groupTitleColor:ft,itemSelectedColor:Ct,itemBg:kt,popupBg:kt,subMenuItemBg:Ht,itemActiveBg:"transparent",itemSelectedBg:$t,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:St,itemDisabledColor:Ft,dangerItemColor:at,dangerItemHoverColor:zt,dangerItemSelectedColor:Zt,dangerItemActiveBg:tr,dangerItemSelectedBg:Bt,menuSubMenuBg:Ht,horizontalItemSelectedColor:Ke,horizontalItemSelectedBg:ze});return[yt(Er),it(Er),qe(Er),pt(Er,"light"),pt(zr,"dark"),Ge(Er),(0,Be.Z)(Er),(0,Ve.oN)(Er,"slide-up"),(0,Ve.oN)(Er,"slide-down"),(0,Ie._y)(Er,"zoom-big")]},ye=>{const{colorPrimary:Re,colorError:ze,colorTextDisabled:Ke,colorErrorBg:We,colorText:st,colorTextDescription:bt,colorBgContainer:at,colorFillAlter:kt,colorFillContent:Ht,lineWidth:Ct,lineWidthBold:$t,controlItemBgActive:Bt,colorBgTextHover:St,controlHeightLG:ft,lineHeight:dt,colorBgElevated:Ft,marginXXS:zt,padding:Zt,fontSize:tr,controlHeightSM:mr,fontSizeLG:Er,colorTextLightSolid:zr,colorErrorHover:jr}=ye,Tr=new Ee.C(zr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ye.zIndexPopupBase+50,radiusItem:ye.borderRadiusLG,itemBorderRadius:ye.borderRadiusLG,radiusSubMenuItem:ye.borderRadiusSM,subMenuItemBorderRadius:ye.borderRadiusSM,colorItemText:st,itemColor:st,colorItemTextHover:st,itemHoverColor:st,colorItemTextHoverHorizontal:Re,horizontalItemHoverColor:Re,colorGroupTitle:bt,groupTitleColor:bt,colorItemTextSelected:Re,itemSelectedColor:Re,colorItemTextSelectedHorizontal:Re,horizontalItemSelectedColor:Re,colorItemBg:at,itemBg:at,colorItemBgHover:St,itemHoverBg:St,colorItemBgActive:Ht,itemActiveBg:Bt,colorSubItemBg:kt,subMenuItemBg:kt,colorItemBgSelected:Bt,itemSelectedBg:Bt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:$t,activeBarHeight:$t,colorActiveBarBorderSize:Ct,activeBarBorderWidth:Ct,colorItemTextDisabled:Ke,itemDisabledColor:Ke,colorDangerItemText:ze,dangerItemColor:ze,colorDangerItemTextHover:ze,dangerItemHoverColor:ze,colorDangerItemTextSelected:ze,dangerItemSelectedColor:ze,colorDangerItemBgActive:We,dangerItemActiveBg:We,colorDangerItemBgSelected:We,dangerItemSelectedBg:We,itemMarginInline:ye.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ft,groupTitleLineHeight:dt,collapsedWidth:ft*2,popupBg:Ft,itemMarginBlock:zt,itemPaddingInline:Zt,horizontalLineHeight:`${ft*1.15}px`,iconSize:tr,iconMarginInlineEnd:mr-tr,collapsedIconSize:Er,groupTitleFontSize:tr,darkItemDisabledColor:new Ee.C(zr).setAlpha(.25).toRgbString(),darkItemColor:Tr,darkDangerItemColor:ze,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:zr,darkItemSelectedBg:Re,darkDangerItemSelectedBg:ze,darkItemHoverBg:"transparent",darkGroupTitleColor:Tr,darkItemHoverColor:zr,darkDangerItemHoverColor:jr,darkDangerItemSelectedColor:zr,darkDangerItemActiveBg:ze}},{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"]]})(fe),Ot=function(fe,Fe){var He={};for(var ye in fe)Object.prototype.hasOwnProperty.call(fe,ye)&&Fe.indexOf(ye)<0&&(He[ye]=fe[ye]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,ye=Object.getOwnPropertySymbols(fe);Re<ye.length;Re++)Fe.indexOf(ye[Re])<0&&Object.prototype.propertyIsEnumerable.call(fe,ye[Re])&&(He[ye[Re]]=fe[ye[Re]]);return He},Ue=(0,vt.forwardRef)((fe,Fe)=>{var He,ye;const Re=vt.useContext(Ce.Z),ze=Re||{},{getPrefixCls:Ke,getPopupContainer:We,direction:st,menu:bt}=vt.useContext(re.E_),at=Ke(),{prefixCls:kt,className:Ht,style:Ct,theme:$t="light",expandIcon:Bt,_internalDisableMenuItemTitleTooltip:St,inlineCollapsed:ft,siderCollapsed:dt,items:Ft,children:zt,rootClassName:Zt,mode:tr,selectable:mr,onClick:Er,overflowedIndicatorPopupClassName:zr}=fe,jr=Ot(fe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Tr=(0,pe.Z)(jr,["collapsedWidth"]),Vr=De(Ft)||zt;(He=ze.validator)===null||He===void 0||He.call(ze,{mode:tr});const sn=(0,Me.useEvent)(function(){var Lr;Er==null||Er.apply(void 0,arguments),(Lr=ze.onClick)===null||Lr===void 0||Lr.call(ze)}),vn=ze.mode||tr,en=mr!=null?mr:ze.selectable,hn=vt.useMemo(()=>dt!==void 0?dt:ft,[ft,dt]),_n={horizontal:{motionName:`${at}-slide-up`},inline:(0,Le.Z)(at),other:{motionName:`${at}-zoom-big`}},tn=Ke("menu",kt||ze.prefixCls),[Ln,Un]=Rt(tn,!Re),Vn=me()(`${tn}-${$t}`,bt==null?void 0:bt.className,Ht);let $r;if(typeof Bt=="function")$r=Bt;else if(Bt===null||Bt===!1)$r=null;else if(ze.expandIcon===null||ze.expandIcon===!1)$r=null;else{const Lr=Bt!=null?Bt:ze.expandIcon;$r=(0,ae.Tm)(Lr,{className:me()(`${tn}-submenu-expand-icon`,(0,ae.l$)(Lr)?(ye=Lr.props)===null||ye===void 0?void 0:ye.className:"")})}const Yr=vt.useMemo(()=>({prefixCls:tn,inlineCollapsed:hn||!1,direction:st,firstLevel:!0,theme:$t,mode:vn,disableMenuItemTitleTooltip:St}),[tn,hn,st,St,$t]);return Ln(vt.createElement(Ce.Z.Provider,{value:null},vt.createElement(de.Provider,{value:Yr},vt.createElement(Ye.ZP,Object.assign({getPopupContainer:We,overflowedIndicator:vt.createElement(be.Z,null),overflowedIndicatorPopupClassName:me()(tn,`${tn}-${$t}`,zr),mode:vn,selectable:en,onClick:sn},Tr,{inlineCollapsed:hn,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),Ct),className:Vn,prefixCls:tn,direction:st,defaultMotions:_n,expandIcon:$r,ref:Fe,rootClassName:me()(Zt,Un)}),Vr))))});const $e=(0,vt.forwardRef)((fe,Fe)=>{const He=(0,vt.useRef)(null),ye=vt.useContext(x.D);return(0,vt.useImperativeHandle)(Fe,()=>({menu:He.current,focus:Re=>{var ze;(ze=He.current)===null||ze===void 0||ze.focus(Re)}})),vt.createElement(Ue,Object.assign({ref:He},fe,ye))});$e.Item=xe,$e.SubMenu=we,$e.Divider=oe,$e.ItemGroup=Ye.BW;var le=$e},58421:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ze}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(We,st){return vt.createElement(me.Z,(0,Ye.Z)({},We,{ref:st,icon:Ae}))},z=vt.forwardRef(re),ie=z,oe=ke(49198),se=ke(33853),pe=ke(38819),ne=ke(92310),ae=ke.n(ne),ue=ke(20068),de=ke(33885),he=ke(67732),xe=ke(83652),Se=ke(42403),we=ke(158),be=ke(26112),Me={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Le=Me,Ce=ke(91735),Ne=function(Ke){(0,Se.Z)(st,Ke);var We=(0,we.Z)(st);function st(){var bt;(0,he.Z)(this,st);for(var at=arguments.length,kt=new Array(at),Ht=0;Ht<at;Ht++)kt[Ht]=arguments[Ht];return bt=We.call.apply(We,[this].concat(kt)),bt.state={goInputText:""},bt.getValidValue=function(){var Ct=bt.state.goInputText;return!Ct||Number.isNaN(Ct)?void 0:Number(Ct)},bt.buildOptionText=function(Ct){return"".concat(Ct," ").concat(bt.props.locale.items_per_page)},bt.changeSize=function(Ct){bt.props.changeSize(Number(Ct))},bt.handleChange=function(Ct){bt.setState({goInputText:Ct.target.value})},bt.handleBlur=function(Ct){var $t=bt.props,Bt=$t.goButton,St=$t.quickGo,ft=$t.rootPrefixCls,dt=bt.state.goInputText;Bt||dt===""||(bt.setState({goInputText:""}),!(Ct.relatedTarget&&(Ct.relatedTarget.className.indexOf("".concat(ft,"-item-link"))>=0||Ct.relatedTarget.className.indexOf("".concat(ft,"-item"))>=0))&&St(bt.getValidValue()))},bt.go=function(Ct){var $t=bt.state.goInputText;$t!==""&&(Ct.keyCode===Le.ENTER||Ct.type==="click")&&(bt.setState({goInputText:""}),bt.props.quickGo(bt.getValidValue()))},bt}return(0,xe.Z)(st,[{key:"getPageSizeOptions",value:function(){var at=this.props,kt=at.pageSize,Ht=at.pageSizeOptions;return Ht.some(function(Ct){return Ct.toString()===kt.toString()})?Ht:Ht.concat([kt.toString()]).sort(function(Ct,$t){var Bt=Number.isNaN(Number(Ct))?0:Number(Ct),St=Number.isNaN(Number($t))?0:Number($t);return Bt-St})}},{key:"render",value:function(){var at=this,kt=this.props,Ht=kt.pageSize,Ct=kt.locale,$t=kt.rootPrefixCls,Bt=kt.changeSize,St=kt.quickGo,ft=kt.goButton,dt=kt.selectComponentClass,Ft=kt.buildOptionText,zt=kt.selectPrefixCls,Zt=kt.disabled,tr=this.state.goInputText,mr="".concat($t,"-options"),Er=dt,zr=null,jr=null,Tr=null;if(!Bt&&!St)return null;var Vr=this.getPageSizeOptions();if(Bt&&Er){var sn=Vr.map(function(vn,en){return vt.createElement(Er.Option,{key:en,value:vn.toString()},(Ft||at.buildOptionText)(vn))});zr=vt.createElement(Er,{disabled:Zt,prefixCls:zt,showSearch:!1,className:"".concat(mr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Ht||Vr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(en){return en.parentNode},"aria-label":Ct.page_size,defaultOpen:!1},sn)}return St&&(ft&&(Tr=typeof ft=="boolean"?vt.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Zt,className:"".concat(mr,"-quick-jumper-button")},Ct.jump_to_confirm):vt.createElement("span",{onClick:this.go,onKeyUp:this.go},ft)),jr=vt.createElement("div",{className:"".concat(mr,"-quick-jumper")},Ct.jump_to,vt.createElement("input",{disabled:Zt,type:"text",value:tr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Ct.page}),Ct.page,Tr)),vt.createElement("li",{className:"".concat(mr)},zr,jr)}}]),st}(vt.Component);Ne.defaultProps={pageSizeOptions:["10","20","50","100"]};var Te=Ne,De=function(We){var st,bt=We.rootPrefixCls,at=We.page,kt=We.active,Ht=We.className,Ct=We.showTitle,$t=We.onClick,Bt=We.onKeyPress,St=We.itemRender,ft="".concat(bt,"-item"),dt=ae()(ft,"".concat(ft,"-").concat(at),(st={},(0,ue.Z)(st,"".concat(ft,"-active"),kt),(0,ue.Z)(st,"".concat(ft,"-disabled"),!at),(0,ue.Z)(st,We.className,Ht),st)),Ft=function(){$t(at)},zt=function(mr){Bt(mr,$t,at)},Zt=St(at,"page",vt.createElement("a",{rel:"nofollow"},at));return Zt?vt.createElement("li",{title:Ct?at.toString():null,className:dt,onClick:Ft,onKeyPress:zt,tabIndex:0},Zt):null},Ee=De;function Pe(){}function Be(Ke){var We=Number(Ke);return typeof We=="number"&&!Number.isNaN(We)&&isFinite(We)&&Math.floor(We)===We}var Ve=function(We,st,bt){return bt};function Ie(Ke,We,st){var bt=typeof Ke=="undefined"?We.pageSize:Ke;return Math.floor((st.total-1)/bt)+1}var Ze=function(Ke){(0,Se.Z)(st,Ke);var We=(0,we.Z)(st);function st(bt){var at;(0,he.Z)(this,st),at=We.call(this,bt),at.paginationNode=vt.createRef(),at.getJumpPrevPage=function(){return Math.max(1,at.state.current-(at.props.showLessItems?3:5))},at.getJumpNextPage=function(){return Math.min(Ie(void 0,at.state,at.props),at.state.current+(at.props.showLessItems?3:5))},at.getItemIcon=function(Bt,St){var ft=at.props.prefixCls,dt=Bt||vt.createElement("button",{type:"button","aria-label":St,className:"".concat(ft,"-item-link")});return typeof Bt=="function"&&(dt=vt.createElement(Bt,(0,de.Z)({},at.props))),dt},at.isValid=function(Bt){var St=at.props.total;return Be(Bt)&&Bt!==at.state.current&&Be(St)&&St>0},at.shouldDisplayQuickJumper=function(){var Bt=at.props,St=Bt.showQuickJumper,ft=Bt.total,dt=at.state.pageSize;return ft<=dt?!1:St},at.handleKeyDown=function(Bt){(Bt.keyCode===Le.ARROW_UP||Bt.keyCode===Le.ARROW_DOWN)&&Bt.preventDefault()},at.handleKeyUp=function(Bt){var St=at.getValidValue(Bt),ft=at.state.currentInputValue;St!==ft&&at.setState({currentInputValue:St}),Bt.keyCode===Le.ENTER?at.handleChange(St):Bt.keyCode===Le.ARROW_UP?at.handleChange(St-1):Bt.keyCode===Le.ARROW_DOWN&&at.handleChange(St+1)},at.handleBlur=function(Bt){var St=at.getValidValue(Bt);at.handleChange(St)},at.changePageSize=function(Bt){var St=at.state.current,ft=Ie(Bt,at.state,at.props);St=St>ft?ft:St,ft===0&&(St=at.state.current),typeof Bt=="number"&&("pageSize"in at.props||at.setState({pageSize:Bt}),"current"in at.props||at.setState({current:St,currentInputValue:St})),at.props.onShowSizeChange(St,Bt),"onChange"in at.props&&at.props.onChange&&at.props.onChange(St,Bt)},at.handleChange=function(Bt){var St=at.props,ft=St.disabled,dt=St.onChange,Ft=at.state,zt=Ft.pageSize,Zt=Ft.current,tr=Ft.currentInputValue;if(at.isValid(Bt)&&!ft){var mr=Ie(void 0,at.state,at.props),Er=Bt;return Bt>mr?Er=mr:Bt<1&&(Er=1),"current"in at.props||at.setState({current:Er}),Er!==tr&&at.setState({currentInputValue:Er}),dt(Er,zt),Er}return Zt},at.prev=function(){at.hasPrev()&&at.handleChange(at.state.current-1)},at.next=function(){at.hasNext()&&at.handleChange(at.state.current+1)},at.jumpPrev=function(){at.handleChange(at.getJumpPrevPage())},at.jumpNext=function(){at.handleChange(at.getJumpNextPage())},at.hasPrev=function(){return at.state.current>1},at.hasNext=function(){return at.state.current<Ie(void 0,at.state,at.props)},at.runIfEnter=function(Bt,St){if(Bt.key==="Enter"||Bt.charCode===13){for(var ft=arguments.length,dt=new Array(ft>2?ft-2:0),Ft=2;Ft<ft;Ft++)dt[Ft-2]=arguments[Ft];St.apply(void 0,dt)}},at.runIfEnterPrev=function(Bt){at.runIfEnter(Bt,at.prev)},at.runIfEnterNext=function(Bt){at.runIfEnter(Bt,at.next)},at.runIfEnterJumpPrev=function(Bt){at.runIfEnter(Bt,at.jumpPrev)},at.runIfEnterJumpNext=function(Bt){at.runIfEnter(Bt,at.jumpNext)},at.handleGoTO=function(Bt){(Bt.keyCode===Le.ENTER||Bt.type==="click")&&at.handleChange(at.state.currentInputValue)},at.renderPrev=function(Bt){var St=at.props,ft=St.prevIcon,dt=St.itemRender,Ft=dt(Bt,"prev",at.getItemIcon(ft,"prev page")),zt=!at.hasPrev();return(0,vt.isValidElement)(Ft)?(0,vt.cloneElement)(Ft,{disabled:zt}):Ft},at.renderNext=function(Bt){var St=at.props,ft=St.nextIcon,dt=St.itemRender,Ft=dt(Bt,"next",at.getItemIcon(ft,"next page")),zt=!at.hasNext();return(0,vt.isValidElement)(Ft)?(0,vt.cloneElement)(Ft,{disabled:zt}):Ft};var kt=bt.onChange!==Pe,Ht="current"in bt;Ht&&!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 Ct=bt.defaultCurrent;"current"in bt&&(Ct=bt.current);var $t=bt.defaultPageSize;return"pageSize"in bt&&($t=bt.pageSize),Ct=Math.min(Ct,Ie($t,void 0,bt)),at.state={current:Ct,currentInputValue:Ct,pageSize:$t},at}return(0,xe.Z)(st,[{key:"componentDidUpdate",value:function(at,kt){var Ht=this.props.prefixCls;if(kt.current!==this.state.current&&this.paginationNode.current){var Ct=this.paginationNode.current.querySelector(".".concat(Ht,"-item-").concat(kt.current));if(Ct&&document.activeElement===Ct){var $t;Ct==null||($t=Ct.blur)===null||$t===void 0||$t.call(Ct)}}}},{key:"getValidValue",value:function(at){var kt=at.target.value,Ht=Ie(void 0,this.state,this.props),Ct=this.state.currentInputValue,$t;return kt===""?$t=kt:Number.isNaN(Number(kt))?$t=Ct:kt>=Ht?$t=Ht:$t=Number(kt),$t}},{key:"getShowSizeChanger",value:function(){var at=this.props,kt=at.showSizeChanger,Ht=at.total,Ct=at.totalBoundaryShowSizeChanger;return typeof kt!="undefined"?kt:Ht>Ct}},{key:"render",value:function(){var at=this.props,kt=at.prefixCls,Ht=at.className,Ct=at.style,$t=at.disabled,Bt=at.hideOnSinglePage,St=at.total,ft=at.locale,dt=at.showQuickJumper,Ft=at.showLessItems,zt=at.showTitle,Zt=at.showTotal,tr=at.simple,mr=at.itemRender,Er=at.showPrevNextJumpers,zr=at.jumpPrevIcon,jr=at.jumpNextIcon,Tr=at.selectComponentClass,Vr=at.selectPrefixCls,sn=at.pageSizeOptions,vn=this.state,en=vn.current,hn=vn.pageSize,_n=vn.currentInputValue;if(Bt===!0&&St<=hn)return null;var tn=Ie(void 0,this.state,this.props),Ln=[],Un=null,Vn=null,$r=null,Yr=null,Lr=null,cn=dt&&dt.goButton,Pr=Ft?1:2,Wr=en-1>0?en-1:0,mn=en+1<tn?en+1:tn,Gt=(0,be.Z)(this.props,{aria:!0,data:!0}),Et=Zt&&vt.createElement("li",{className:"".concat(kt,"-total-text")},Zt(St,[St===0?0:(en-1)*hn+1,en*hn>St?St:en*hn]));if(tr){cn&&(typeof cn=="boolean"?Lr=vt.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ft.jump_to_confirm):Lr=vt.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},cn),Lr=vt.createElement("li",{title:zt?"".concat(ft.jump_to).concat(en,"/").concat(tn):null,className:"".concat(kt,"-simple-pager")},Lr));var It=this.renderPrev(Wr);return vt.createElement("ul",(0,Ye.Z)({className:ae()(kt,"".concat(kt,"-simple"),(0,ue.Z)({},"".concat(kt,"-disabled"),$t),Ht),style:Ct,ref:this.paginationNode},Gt),Et,It?vt.createElement("li",{title:zt?ft.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:ae()("".concat(kt,"-prev"),(0,ue.Z)({},"".concat(kt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},It):null,vt.createElement("li",{title:zt?"".concat(en,"/").concat(tn):null,className:"".concat(kt,"-simple-pager")},vt.createElement("input",{type:"text",value:_n,disabled:$t,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),vt.createElement("span",{className:"".concat(kt,"-slash")},"/"),tn),vt.createElement("li",{title:zt?ft.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:ae()("".concat(kt,"-next"),(0,ue.Z)({},"".concat(kt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(mn)),Lr)}if(tn<=3+Pr*2){var Dt={locale:ft,rootPrefixCls:kt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:zt,itemRender:mr};tn||Ln.push(vt.createElement(Ee,(0,Ye.Z)({},Dt,{key:"noPager",page:1,className:"".concat(kt,"-item-disabled")})));for(var Lt=1;Lt<=tn;Lt+=1){var Ut=en===Lt;Ln.push(vt.createElement(Ee,(0,Ye.Z)({},Dt,{key:Lt,page:Lt,active:Ut})))}}else{var Qt=Ft?ft.prev_3:ft.prev_5,yr=Ft?ft.next_3:ft.next_5,cr=mr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(zr,"prev page")),vr=mr(this.getJumpNextPage(),"jump-next",this.getItemIcon(jr,"next page"));Er&&(Un=cr?vt.createElement("li",{title:zt?Qt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:ae()("".concat(kt,"-jump-prev"),(0,ue.Z)({},"".concat(kt,"-jump-prev-custom-icon"),!!zr))},cr):null,Vn=vr?vt.createElement("li",{title:zt?yr:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:ae()("".concat(kt,"-jump-next"),(0,ue.Z)({},"".concat(kt,"-jump-next-custom-icon"),!!jr))},vr):null),Yr=vt.createElement(Ee,{locale:ft,last:!0,rootPrefixCls:kt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:tn,page:tn,active:!1,showTitle:zt,itemRender:mr}),$r=vt.createElement(Ee,{locale:ft,rootPrefixCls:kt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:zt,itemRender:mr});var Dr=Math.max(1,en-Pr),Ir=Math.min(en+Pr,tn);en-1<=Pr&&(Ir=1+Pr*2),tn-en<=Pr&&(Dr=tn-Pr*2);for(var Ar=Dr;Ar<=Ir;Ar+=1){var qt=en===Ar;Ln.push(vt.createElement(Ee,{locale:ft,rootPrefixCls:kt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ar,page:Ar,active:qt,showTitle:zt,itemRender:mr}))}en-1>=Pr*2&&en!==3&&(Ln[0]=(0,vt.cloneElement)(Ln[0],{className:"".concat(kt,"-item-after-jump-prev")}),Ln.unshift(Un)),tn-en>=Pr*2&&en!==tn-2&&(Ln[Ln.length-1]=(0,vt.cloneElement)(Ln[Ln.length-1],{className:"".concat(kt,"-item-before-jump-next")}),Ln.push(Vn)),Dr!==1&&Ln.unshift($r),Ir!==tn&&Ln.push(Yr)}var kr=!this.hasPrev()||!tn,Xt=!this.hasNext()||!tn,rr=this.renderPrev(Wr),lr=this.renderNext(mn);return vt.createElement("ul",(0,Ye.Z)({className:ae()(kt,Ht,(0,ue.Z)({},"".concat(kt,"-disabled"),$t)),style:Ct,ref:this.paginationNode},Gt),Et,rr?vt.createElement("li",{title:zt?ft.prev_page:null,onClick:this.prev,tabIndex:kr?null:0,onKeyPress:this.runIfEnterPrev,className:ae()("".concat(kt,"-prev"),(0,ue.Z)({},"".concat(kt,"-disabled"),kr)),"aria-disabled":kr},rr):null,Ln,lr?vt.createElement("li",{title:zt?ft.next_page:null,onClick:this.next,tabIndex:Xt?null:0,onKeyPress:this.runIfEnterNext,className:ae()("".concat(kt,"-next"),(0,ue.Z)({},"".concat(kt,"-disabled"),Xt)),"aria-disabled":Xt},lr):null,vt.createElement(Te,{disabled:$t,locale:ft,rootPrefixCls:kt,selectComponentClass:Tr,selectPrefixCls:Vr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:en,pageSize:hn,pageSizeOptions:sn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:cn}))}}],[{key:"getDerivedStateFromProps",value:function(at,kt){var Ht={};if("current"in at&&(Ht.current=at.current,at.current!==kt.current&&(Ht.currentInputValue=Ht.current)),"pageSize"in at&&at.pageSize!==kt.pageSize){var Ct=kt.current,$t=Ie(at.pageSize,kt,at);Ct=Ct>$t?$t:Ct,"current"in at||(Ht.current=Ct,Ht.currentInputValue=Ct),Ht.pageSize=at.pageSize}return Ht}}]),st}(vt.Component);Ze.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Pe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Pe,locale:Ce.Z,style:{},itemRender:Ve,totalBoundaryShowSizeChanger:50};var Qe=Ze,tt=ke(22075),it=ke(36355),ht=ke(19716),Ge=ke(8628),Xe=ke(9763),ct=ke(57809);const pt=Ke=>vt.createElement(ct.default,Object.assign({},Ke,{showSearch:!0,size:"small"})),ut=Ke=>vt.createElement(ct.default,Object.assign({},Ke,{showSearch:!0,size:"middle"}));pt.Option=ct.default.Option,ut.Option=ct.default.Option;var rt=ke(9937),qe=ke(17313),nt=ke(83116),xt=ke(37613);const yt=Ke=>{const{componentCls:We}=Ke;return{[`${We}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${We}-item-link`]:{color:Ke.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${We}-item-link`]:{color:Ke.colorTextDisabled,cursor:"not-allowed"}}},[`&${We}-disabled`]:{cursor:"not-allowed",[`${We}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ke.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ke.colorBorder,backgroundColor:Ke.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ke.itemActiveBgDisabled},a:{color:Ke.itemActiveColorDisabled}}},[`${We}-item-link`]:{color:Ke.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${We}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${We}-simple-pager`]:{color:Ke.colorTextDisabled},[`${We}-jump-prev, ${We}-jump-next`]:{[`${We}-item-link-icon`]:{opacity:0},[`${We}-item-ellipsis`]:{opacity:1}}},[`&${We}-simple`]:{[`${We}-prev, ${We}-next`]:{[`&${We}-disabled ${We}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Rt=Ke=>{const{componentCls:We}=Ke;return{[`&${We}-mini ${We}-total-text, &${We}-mini ${We}-simple-pager`]:{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`},[`&${We}-mini ${We}-item`]:{minWidth:Ke.itemSizeSM,height:Ke.itemSizeSM,margin:0,lineHeight:`${Ke.itemSizeSM-2}px`},[`&${We}-mini:not(${We}-disabled) ${We}-item:not(${We}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ke.colorBgTextHover},"&:active":{backgroundColor:Ke.colorBgTextActive}},[`&${We}-mini ${We}-prev, &${We}-mini ${We}-next`]:{minWidth:Ke.itemSizeSM,height:Ke.itemSizeSM,margin:0,lineHeight:`${Ke.itemSizeSM}px`},[`&${We}-mini:not(${We}-disabled)`]:{[`${We}-prev, ${We}-next`]:{[`&:hover ${We}-item-link`]:{backgroundColor:Ke.colorBgTextHover},[`&:active ${We}-item-link`]:{backgroundColor:Ke.colorBgTextActive},[`&${We}-disabled:hover ${We}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${We}-mini ${We}-prev ${We}-item-link,
|
|
|
&${We}-mini ${We}-next ${We}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`}},[`&${We}-mini ${We}-jump-prev, &${We}-mini ${We}-jump-next`]:{height:Ke.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ke.itemSizeSM}px`},[`&${We}-mini ${We}-options`]:{marginInlineStart:Ke.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ke.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,rt.x0)(Ke)),{width:Ke.paginationMiniQuickJumperInputWidth,height:Ke.controlHeightSM})}}}},Ot=Ke=>{const{componentCls:We}=Ke;return{[`
|
|
|
&${We}-simple ${We}-prev,
|
|
|
&${We}-simple ${We}-next
|
|
|
`]:{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`,verticalAlign:"top",[`${We}-item-link`]:{height:Ke.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ke.colorBgTextHover},"&:active":{backgroundColor:Ke.colorBgTextActive},"&::after":{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`}}},[`&${We}-simple ${We}-simple-pager`]:{display:"inline-block",height:Ke.itemSizeSM,marginInlineEnd:Ke.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ke.marginXS,padding:`0 ${Ke.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ke.itemInputBg,border:`${Ke.lineWidth}px ${Ke.lineType} ${Ke.colorBorder}`,borderRadius:Ke.borderRadius,outline:"none",transition:`border-color ${Ke.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ke.colorPrimary},"&:focus":{borderColor:Ke.colorPrimaryHover,boxShadow:`${Ke.inputOutlineOffset}px 0 ${Ke.controlOutlineWidth}px ${Ke.controlOutline}`},"&[disabled]":{color:Ke.colorTextDisabled,backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder,cursor:"not-allowed"}}}}},lt=Ke=>{const{componentCls:We}=Ke;return{[`${We}-jump-prev, ${We}-jump-next`]:{outline:0,[`${We}-item-container`]:{position:"relative",[`${We}-item-link-icon`]:{color:Ke.colorPrimary,fontSize:Ke.fontSizeSM,opacity:0,transition:`all ${Ke.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${We}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ke.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ke.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ke.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ke.motionDurationMid}`}},"&:hover":{[`${We}-item-link-icon`]:{opacity:1},[`${We}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${We}-prev,
|
|
|
${We}-jump-prev,
|
|
|
${We}-jump-next
|
|
|
`]:{marginInlineEnd:Ke.marginXS},[`
|
|
|
${We}-prev,
|
|
|
${We}-next,
|
|
|
${We}-jump-prev,
|
|
|
${We}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Ke.itemSize,height:Ke.itemSize,color:Ke.colorText,fontFamily:Ke.fontFamily,lineHeight:`${Ke.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ke.borderRadius,cursor:"pointer",transition:`all ${Ke.motionDurationMid}`},[`${We}-prev, ${We}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ke.colorText,cursor:"pointer",userSelect:"none"},[`${We}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ke.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ke.lineWidth}px ${Ke.lineType} transparent`,borderRadius:Ke.borderRadius,outline:"none",transition:`all ${Ke.motionDurationMid}`},[`&:hover ${We}-item-link`]:{backgroundColor:Ke.colorBgTextHover},[`&:active ${We}-item-link`]:{backgroundColor:Ke.colorBgTextActive},[`&${We}-disabled:hover`]:{[`${We}-item-link`]:{backgroundColor:"transparent"}}},[`${We}-slash`]:{marginInlineEnd:Ke.paginationSlashMarginInlineEnd,marginInlineStart:Ke.paginationSlashMarginInlineStart},[`${We}-options`]:{display:"inline-block",marginInlineStart:Ke.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ke.controlHeight,marginInlineStart:Ke.marginXS,lineHeight:`${Ke.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,rt.ik)(Ke)),{width:Ke.controlHeightLG*1.25,height:Ke.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ke.marginXS,marginInlineEnd:Ke.marginXS})}}}},Ue=Ke=>{const{componentCls:We}=Ke;return{[`${We}-item`]:{display:"inline-block",minWidth:Ke.itemSize,height:Ke.itemSize,marginInlineEnd:Ke.marginXS,fontFamily:Ke.fontFamily,lineHeight:`${Ke.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ke.lineWidth}px ${Ke.lineType} transparent`,borderRadius:Ke.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ke.paginationItemPaddingInline}px`,color:Ke.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${We}-item-active)`]:{"&:hover":{transition:`all ${Ke.motionDurationMid}`,backgroundColor:Ke.colorBgTextHover},"&:active":{backgroundColor:Ke.colorBgTextActive}},"&-active":{fontWeight:Ke.fontWeightStrong,backgroundColor:Ke.itemActiveBg,borderColor:Ke.colorPrimary,a:{color:Ke.colorPrimary},"&:hover":{borderColor:Ke.colorPrimaryHover},"&:hover a":{color:Ke.colorPrimaryHover}}}}},$e=Ke=>{const{componentCls:We}=Ke;return{[We]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,qe.Wf)(Ke)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${We}-total-text`]:{display:"inline-block",height:Ke.itemSize,marginInlineEnd:Ke.marginXS,lineHeight:`${Ke.itemSize-2}px`,verticalAlign:"middle"}}),Ue(Ke)),lt(Ke)),Ot(Ke)),Rt(Ke)),yt(Ke)),{[`@media only screen and (max-width: ${Ke.screenLG}px)`]:{[`${We}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ke.screenSM}px)`]:{[`${We}-options`]:{display:"none"}}}),[`&${Ke.componentCls}-rtl`]:{direction:"rtl"}}},le=Ke=>{const{componentCls:We}=Ke;return{[`${We}${We}-disabled:not(${We}-mini)`]:{"&, &:hover":{[`${We}-item-link`]:{borderColor:Ke.colorBorder}},"&:focus-visible":{[`${We}-item-link`]:{borderColor:Ke.colorBorder}},[`${We}-item, ${We}-item-link`]:{backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder,[`&:hover:not(${We}-item-active)`]:{backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder,a:{color:Ke.colorTextDisabled}},[`&${We}-item-active`]:{backgroundColor:Ke.itemActiveBgDisabled}},[`${We}-prev, ${We}-next`]:{"&:hover button":{backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder,color:Ke.colorTextDisabled},[`${We}-item-link`]:{backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder}}},[`${We}:not(${We}-mini)`]:{[`${We}-prev, ${We}-next`]:{"&:hover button":{borderColor:Ke.colorPrimaryHover,backgroundColor:Ke.itemBg},[`${We}-item-link`]:{backgroundColor:Ke.itemLinkBg,borderColor:Ke.colorBorder},[`&:hover ${We}-item-link`]:{borderColor:Ke.colorPrimary,backgroundColor:Ke.itemBg,color:Ke.colorPrimary},[`&${We}-disabled`]:{[`${We}-item-link`]:{borderColor:Ke.colorBorder,color:Ke.colorTextDisabled}}},[`${We}-item`]:{backgroundColor:Ke.itemBg,border:`${Ke.lineWidth}px ${Ke.lineType} ${Ke.colorBorder}`,[`&:hover:not(${We}-item-active)`]:{borderColor:Ke.colorPrimary,backgroundColor:Ke.itemBg,a:{color:Ke.colorPrimary}},"&-active":{borderColor:Ke.colorPrimary}}}}},fe=Ke=>{const{componentCls:We}=Ke;return{[`${We}:not(${We}-disabled)`]:{[`${We}-item`]:Object.assign({},(0,qe.Qy)(Ke)),[`${We}-jump-prev, ${We}-jump-next`]:{"&:focus-visible":Object.assign({[`${We}-item-link-icon`]:{opacity:1},[`${We}-item-ellipsis`]:{opacity:0}},(0,qe.oN)(Ke))},[`${We}-prev, ${We}-next`]:{[`&:focus-visible ${We}-item-link`]:Object.assign({},(0,qe.oN)(Ke))}}}};var Fe=(0,nt.Z)("Pagination",Ke=>{const We=(0,xt.TS)(Ke,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ke.marginXXS/2,paginationMiniQuickJumperInputWidth:Ke.controlHeightLG*1.1,paginationItemPaddingInline:Ke.marginXXS*1.5,paginationEllipsisLetterSpacing:Ke.marginXXS/2,paginationSlashMarginInlineStart:Ke.marginXXS,paginationSlashMarginInlineEnd:Ke.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,rt.e5)(Ke),(0,rt.TM)(Ke));return[$e(We),fe(We),Ke.wireframe&&le(We)]},Ke=>({itemBg:Ke.colorBgContainer,itemSize:Ke.controlHeight,itemSizeSM:Ke.controlHeightSM,itemActiveBg:Ke.colorBgContainer,itemLinkBg:Ke.colorBgContainer,itemActiveColorDisabled:Ke.colorTextDisabled,itemActiveBgDisabled:Ke.controlItemBgActiveDisabled,itemInputBg:Ke.colorBgContainer,miniOptionsSizeChangerTop:0})),He=function(Ke,We){var st={};for(var bt in Ke)Object.prototype.hasOwnProperty.call(Ke,bt)&&We.indexOf(bt)<0&&(st[bt]=Ke[bt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,bt=Object.getOwnPropertySymbols(Ke);at<bt.length;at++)We.indexOf(bt[at])<0&&Object.prototype.propertyIsEnumerable.call(Ke,bt[at])&&(st[bt[at]]=Ke[bt[at]]);return st},Re=Ke=>{const{prefixCls:We,selectPrefixCls:st,className:bt,rootClassName:at,style:kt,size:Ht,locale:Ct,selectComponentClass:$t,responsive:Bt,showSizeChanger:St}=Ke,ft=He(Ke,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:dt}=(0,Ge.Z)(Bt),{getPrefixCls:Ft,direction:zt,pagination:Zt={}}=vt.useContext(it.E_),tr=Ft("pagination",We),[mr,Er]=Fe(tr),zr=St!=null?St:Zt.showSizeChanger,jr=vt.useMemo(()=>{const tn=vt.createElement("span",{className:`${tr}-item-ellipsis`},"\u2022\u2022\u2022"),Ln=vt.createElement("button",{className:`${tr}-item-link`,type:"button",tabIndex:-1},zt==="rtl"?vt.createElement(pe.Z,null):vt.createElement(se.Z,null)),Un=vt.createElement("button",{className:`${tr}-item-link`,type:"button",tabIndex:-1},zt==="rtl"?vt.createElement(se.Z,null):vt.createElement(pe.Z,null)),Vn=vt.createElement("a",{className:`${tr}-item-link`},vt.createElement("div",{className:`${tr}-item-container`},zt==="rtl"?vt.createElement(oe.Z,{className:`${tr}-item-link-icon`}):vt.createElement(ie,{className:`${tr}-item-link-icon`}),tn)),$r=vt.createElement("a",{className:`${tr}-item-link`},vt.createElement("div",{className:`${tr}-item-container`},zt==="rtl"?vt.createElement(ie,{className:`${tr}-item-link-icon`}):vt.createElement(oe.Z,{className:`${tr}-item-link-icon`}),tn));return{prevIcon:Ln,nextIcon:Un,jumpPrevIcon:Vn,jumpNextIcon:$r}},[zt,tr]),[Tr]=(0,Xe.Z)("Pagination",tt.Z),Vr=Object.assign(Object.assign({},Tr),Ct),sn=(0,ht.Z)(Ht),vn=sn==="small"||!!(dt&&!sn&&Bt),en=Ft("select",st),hn=ae()({[`${tr}-mini`]:vn,[`${tr}-rtl`]:zt==="rtl"},Zt==null?void 0:Zt.className,bt,at,Er),_n=Object.assign(Object.assign({},Zt==null?void 0:Zt.style),kt);return mr(vt.createElement(Qe,Object.assign({},jr,ft,{style:_n,prefixCls:tr,selectPrefixCls:en,className:hn,selectComponentClass:$t||(vn?pt:ut),locale:Vr,showSizeChanger:zr})))},ze=Re},14478:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Ee}});var Ye=ke(96512),vt=ke(92310),x=ke.n(vt),Ae=ke(10228),me=ke(18929),re=ke(2738),z=ke(59301),ie=ke(92343),oe=ke(36355),se=ke(60324),pe=ke(92806),ne=ke(77578),ae=ke(3113),ue=ke(67797),de=ke(9763),he=ke(31724),xe=ke(39722),Se=ke(83116);const we=Pe=>{const{componentCls:Be,iconCls:Ve,antCls:Ie,zIndexPopup:Ze,colorText:Qe,colorWarning:tt,marginXXS:it,marginXS:ht,fontSize:Ge,fontWeightStrong:Xe,colorTextHeading:ct}=Pe;return{[Be]:{zIndex:Ze,[`&${Ie}-popover`]:{fontSize:Ge},[`${Be}-message`]:{marginBottom:ht,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Be}-message-icon ${Ve}`]:{color:tt,fontSize:Ge,lineHeight:1,marginInlineEnd:ht},[`${Be}-title`]:{fontWeight:Xe,color:ct,"&:only-child":{fontWeight:"normal"}},[`${Be}-description`]:{marginTop:it,color:Qe}},[`${Be}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:ht}}}}};var be=(0,Se.Z)("Popconfirm",Pe=>we(Pe),Pe=>{const{zIndexPopupBase:Be}=Pe;return{zIndexPopup:Be+60}},{resetStyle:!1}),Me=function(Pe,Be){var Ve={};for(var Ie in Pe)Object.prototype.hasOwnProperty.call(Pe,Ie)&&Be.indexOf(Ie)<0&&(Ve[Ie]=Pe[Ie]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Ie=Object.getOwnPropertySymbols(Pe);Ze<Ie.length;Ze++)Be.indexOf(Ie[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ie[Ze])&&(Ve[Ie[Ze]]=Pe[Ie[Ze]]);return Ve};const Le=Pe=>{const{prefixCls:Be,okButtonProps:Ve,cancelButtonProps:Ie,title:Ze,description:Qe,cancelText:tt,okText:it,okType:ht="primary",icon:Ge=z.createElement(Ye.Z,null),showCancel:Xe=!0,close:ct,onConfirm:pt,onCancel:ut,onPopupClick:rt}=Pe,{getPrefixCls:qe}=z.useContext(oe.E_),[nt]=(0,de.Z)("Popconfirm",he.Z.Popconfirm),xt=(0,ne.Z)(Ze),yt=(0,ne.Z)(Qe);return z.createElement("div",{className:`${Be}-inner-content`,onClick:rt},z.createElement("div",{className:`${Be}-message`},Ge&&z.createElement("span",{className:`${Be}-message-icon`},Ge),z.createElement("div",{className:`${Be}-message-text`},xt&&z.createElement("div",{className:x()(`${Be}-title`)},xt),yt&&z.createElement("div",{className:`${Be}-description`},yt))),z.createElement("div",{className:`${Be}-buttons`},Xe&&z.createElement(ae.ZP,Object.assign({onClick:ut,size:"small"},Ie),tt!=null?tt:nt==null?void 0:nt.cancelText),z.createElement(pe.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,ue.n)(ht)),Ve),actionFn:pt,close:ct,prefixCls:qe("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},it!=null?it:nt==null?void 0:nt.okText)))};var Ne=Pe=>{const{prefixCls:Be,placement:Ve,className:Ie,style:Ze}=Pe,Qe=Me(Pe,["prefixCls","placement","className","style"]),{getPrefixCls:tt}=z.useContext(oe.E_),it=tt("popconfirm",Be),[ht]=be(it);return ht(z.createElement(xe.ZP,{placement:Ve,className:x()(it,Ie),style:Ze,content:z.createElement(Le,Object.assign({prefixCls:it},Qe))}))},Te=function(Pe,Be){var Ve={};for(var Ie in Pe)Object.prototype.hasOwnProperty.call(Pe,Ie)&&Be.indexOf(Ie)<0&&(Ve[Ie]=Pe[Ie]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Ie=Object.getOwnPropertySymbols(Pe);Ze<Ie.length;Ze++)Be.indexOf(Ie[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ie[Ze])&&(Ve[Ie[Ze]]=Pe[Ie[Ze]]);return Ve};const De=z.forwardRef((Pe,Be)=>{const{prefixCls:Ve,placement:Ie="top",trigger:Ze="click",okType:Qe="primary",icon:tt=z.createElement(Ye.Z,null),children:it,overlayClassName:ht,onOpenChange:Ge,onVisibleChange:Xe}=Pe,ct=Te(Pe,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:pt}=z.useContext(oe.E_),[ut,rt]=(0,me.Z)(!1,{value:Pe.open,defaultValue:Pe.defaultOpen}),qe=(le,fe)=>{rt(le,!0),Xe==null||Xe(le),Ge==null||Ge(le,fe)},nt=le=>{qe(!1,le)},xt=le=>{var fe;return(fe=Pe.onConfirm)===null||fe===void 0?void 0:fe.call(void 0,le)},yt=le=>{var fe;qe(!1,le),(fe=Pe.onCancel)===null||fe===void 0||fe.call(void 0,le)},Rt=le=>{le.keyCode===Ae.Z.ESC&&ut&&qe(!1,le)},Ot=le=>{const{disabled:fe=!1}=Pe;fe||qe(le)},lt=pt("popconfirm",Ve),Ue=x()(lt,ht),[$e]=be(lt);return $e(z.createElement(se.Z,Object.assign({},(0,re.Z)(ct,["title"]),{trigger:Ze,placement:Ie,onOpenChange:Ot,open:ut,ref:Be,overlayClassName:Ue,content:z.createElement(Le,Object.assign({okType:Qe,icon:tt},Pe,{prefixCls:lt,close:nt,onConfirm:xt,onCancel:yt})),"data-popover-inject":!0}),(0,ie.Tm)(it,{onKeyDown:le=>{var fe,Fe;z.isValidElement(it)&&((Fe=it==null?void 0:(fe=it.props).onKeyDown)===null||Fe===void 0||Fe.call(fe,le)),Rt(le)}})))});De._InternalPanelDoNotUseOrYouWillBeFired=Ne;var Ee=De},39722:function(gr,Wt,ke){"use strict";ke.d(Wt,{t5:function(){return se}});var Ye=ke(92310),vt=ke.n(Ye),x=ke(55477),Ae=ke(59301),me=ke(36355),re=ke(77578),z=ke(17356),ie=function(ne,ae){var ue={};for(var de in ne)Object.prototype.hasOwnProperty.call(ne,de)&&ae.indexOf(de)<0&&(ue[de]=ne[de]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,de=Object.getOwnPropertySymbols(ne);he<de.length;he++)ae.indexOf(de[he])<0&&Object.prototype.propertyIsEnumerable.call(ne,de[he])&&(ue[de[he]]=ne[de[he]]);return ue};const oe=(ne,ae,ue)=>{if(!(!ae&&!ue))return Ae.createElement(Ae.Fragment,null,ae&&Ae.createElement("div",{className:`${ne}-title`},(0,re.Z)(ae)),Ae.createElement("div",{className:`${ne}-inner-content`},(0,re.Z)(ue)))},se=ne=>{const{hashId:ae,prefixCls:ue,className:de,style:he,placement:xe="top",title:Se,content:we,children:be}=ne;return Ae.createElement("div",{className:vt()(ae,ue,`${ue}-pure`,`${ue}-placement-${xe}`,de),style:he},Ae.createElement("div",{className:`${ue}-arrow`}),Ae.createElement(x.G,Object.assign({},ne,{className:ae,prefixCls:ue}),be||oe(ue,Se,we)))},pe=ne=>{const{prefixCls:ae}=ne,ue=ie(ne,["prefixCls"]),{getPrefixCls:de}=Ae.useContext(me.E_),he=de("popover",ae),[xe,Se]=(0,z.Z)(he);return xe(Ae.createElement(se,Object.assign({},ue,{prefixCls:he,hashId:Se})))};Wt.ZP=pe},60324:function(gr,Wt,ke){"use strict";var Ye=ke(92310),vt=ke.n(Ye),x=ke(59301),Ae=ke(77578),me=ke(62892),re=ke(36355),z=ke(6848),ie=ke(39722),oe=ke(17356),se=function(ae,ue){var de={};for(var he in ae)Object.prototype.hasOwnProperty.call(ae,he)&&ue.indexOf(he)<0&&(de[he]=ae[he]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,he=Object.getOwnPropertySymbols(ae);xe<he.length;xe++)ue.indexOf(he[xe])<0&&Object.prototype.propertyIsEnumerable.call(ae,he[xe])&&(de[he[xe]]=ae[he[xe]]);return de};const pe=ae=>{let{title:ue,content:de,prefixCls:he}=ae;return x.createElement(x.Fragment,null,ue&&x.createElement("div",{className:`${he}-title`},(0,Ae.Z)(ue)),x.createElement("div",{className:`${he}-inner-content`},(0,Ae.Z)(de)))},ne=x.forwardRef((ae,ue)=>{const{prefixCls:de,title:he,content:xe,overlayClassName:Se,placement:we="top",trigger:be="hover",mouseEnterDelay:Me=.1,mouseLeaveDelay:Le=.1,overlayStyle:Ce={}}=ae,Ne=se(ae,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Te}=x.useContext(re.E_),De=Te("popover",de),[Ee,Pe]=(0,oe.Z)(De),Be=Te(),Ve=vt()(Se,Pe);return Ee(x.createElement(z.Z,Object.assign({placement:we,trigger:be,mouseEnterDelay:Me,mouseLeaveDelay:Le,overlayStyle:Ce},Ne,{prefixCls:De,overlayClassName:Ve,ref:ue,overlay:he||xe?x.createElement(pe,{prefixCls:De,title:he,content:xe}):null,transitionName:(0,me.m)(Be,"zoom-big",Ne.transitionName),"data-popover-inject":!0})))});ne._InternalPanelDoNotUseOrYouWillBeFired=ie.ZP,Wt.Z=ne},17356:function(gr,Wt,ke){"use strict";var Ye=ke(17313),vt=ke(29878),x=ke(19447),Ae=ke(33166),me=ke(83116),re=ke(37613);const z=se=>{const{componentCls:pe,popoverColor:ne,minWidth:ae,fontWeightStrong:ue,popoverPadding:de,boxShadowSecondary:he,colorTextHeading:xe,borderRadiusLG:Se,zIndexPopup:we,marginXS:be,colorBgElevated:Me,popoverBg:Le}=se;return[{[pe]:Object.assign(Object.assign({},(0,Ye.Wf)(se)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:we,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Me,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${pe}-content`]:{position:"relative"},[`${pe}-inner`]:{backgroundColor:Le,backgroundClip:"padding-box",borderRadius:Se,boxShadow:he,padding:de},[`${pe}-title`]:{minWidth:ae,marginBottom:be,color:xe,fontWeight:ue},[`${pe}-inner-content`]:{color:ne}})},(0,x.ZP)(se,{colorBg:"var(--antd-arrow-background-color)"}),{[`${pe}-pure`]:{position:"relative",maxWidth:"none",margin:se.sizePopupArrow,display:"inline-block",[`${pe}-content`]:{display:"inline-block"}}}]},ie=se=>{const{componentCls:pe}=se;return{[pe]:Ae.i.map(ne=>{const ae=se[`${ne}6`];return{[`&${pe}-${ne}`]:{"--antd-arrow-background-color":ae,[`${pe}-inner`]:{backgroundColor:ae},[`${pe}-arrow`]:{background:"transparent"}}}})}},oe=se=>{const{componentCls:pe,lineWidth:ne,lineType:ae,colorSplit:ue,paddingSM:de,controlHeight:he,fontSize:xe,lineHeight:Se,padding:we}=se,be=he-Math.round(xe*Se),Me=be/2,Le=be/2-ne,Ce=we;return{[pe]:{[`${pe}-inner`]:{padding:0},[`${pe}-title`]:{margin:0,padding:`${Me}px ${Ce}px ${Le}px`,borderBottom:`${ne}px ${ae} ${ue}`},[`${pe}-inner-content`]:{padding:`${de}px ${Ce}px`}}}};Wt.Z=(0,me.Z)("Popover",se=>{const{colorBgElevated:pe,colorText:ne,wireframe:ae}=se,ue=(0,re.TS)(se,{popoverPadding:12,popoverBg:pe,popoverColor:ne});return[z(ue),ie(ue),ae&&oe(ue),(0,vt._y)(ue,"zoom-big")]},se=>({width:177,minWidth:177,zIndexPopup:se.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return St}});var Ye=ke(59301),vt=ke(29679),x=ke(40001),Ae=ke(19248),me=ke(99267),re=ke(92310),z=ke.n(re),ie=ke(2738),oe=ke(36355),se=ke(54476),pe=ke(33885),ne=ke(75931),ae={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ue=function(){var dt=(0,Ye.useRef)([]),Ft=(0,Ye.useRef)(null);return(0,Ye.useEffect)(function(){var zt=Date.now(),Zt=!1;dt.current.forEach(function(tr){if(tr){Zt=!0;var mr=tr.style;mr.transitionDuration=".3s, .3s, .3s, .06s",Ft.current&&zt-Ft.current<100&&(mr.transitionDuration="0s, 0s")}}),Zt&&(Ft.current=Date.now())}),dt.current},de=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],he=function(dt){var Ft=(0,pe.Z)((0,pe.Z)({},ae),dt),zt=Ft.className,Zt=Ft.percent,tr=Ft.prefixCls,mr=Ft.strokeColor,Er=Ft.strokeLinecap,zr=Ft.strokeWidth,jr=Ft.style,Tr=Ft.trailColor,Vr=Ft.trailWidth,sn=Ft.transition,vn=(0,ne.Z)(Ft,de);delete vn.gapPosition;var en=Array.isArray(Zt)?Zt:[Zt],hn=Array.isArray(mr)?mr:[mr],_n=ue(),tn=zr/2,Ln=100-zr/2,Un="M ".concat(Er==="round"?tn:0,",").concat(tn,`
|
|
|
L `).concat(Er==="round"?Ln:100,",").concat(tn),Vn="0 0 100 ".concat(zr),$r=0;return Ye.createElement("svg",(0,se.Z)({className:z()("".concat(tr,"-line"),zt),viewBox:Vn,preserveAspectRatio:"none",style:jr},vn),Ye.createElement("path",{className:"".concat(tr,"-line-trail"),d:Un,strokeLinecap:Er,stroke:Tr,strokeWidth:Vr||zr,fillOpacity:"0"}),en.map(function(Yr,Lr){var cn=1;switch(Er){case"round":cn=1-zr/100;break;case"square":cn=1-zr/2/100;break;default:cn=1;break}var Pr={strokeDasharray:"".concat(Yr*cn,"px, 100px"),strokeDashoffset:"-".concat($r,"px"),transition:sn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Wr=hn[Lr]||hn[hn.length-1];return $r+=Yr,Ye.createElement("path",{key:Lr,className:"".concat(tr,"-line-path"),d:Un,strokeLinecap:Er,stroke:Wr,strokeWidth:zr,fillOpacity:"0",ref:function(Gt){_n[Lr]=Gt},style:Pr})}))},xe=he,Se=ke(76190),we=ke(42978),be=ke(47273),Me=0,Le=(0,be.Z)();function Ce(){var ft;return Le?(ft=Me,Me+=1):ft="TEST_OR_SSR",ft}var Ne=function(ft){var dt=Ye.useState(),Ft=(0,we.Z)(dt,2),zt=Ft[0],Zt=Ft[1];return Ye.useEffect(function(){Zt("rc_progress_".concat(Ce()))},[]),ft||zt},Te=function(dt){var Ft=dt.bg,zt=dt.children;return Ye.createElement("div",{style:{width:"100%",height:"100%",background:Ft}},zt)};function De(ft,dt){return Object.keys(ft).map(function(Ft){var zt=parseFloat(Ft),Zt="".concat(Math.floor(zt*dt),"%");return"".concat(ft[Ft]," ").concat(Zt)})}var Ee=Ye.forwardRef(function(ft,dt){var Ft=ft.prefixCls,zt=ft.color,Zt=ft.gradientId,tr=ft.radius,mr=ft.style,Er=ft.ptg,zr=ft.strokeLinecap,jr=ft.strokeWidth,Tr=ft.size,Vr=ft.gapDegree,sn=zt&&(0,Se.Z)(zt)==="object",vn=sn?"#FFF":void 0,en=Tr/2,hn=Ye.createElement("circle",{className:"".concat(Ft,"-circle-path"),r:tr,cx:en,cy:en,stroke:vn,strokeLinecap:zr,strokeWidth:jr,opacity:Er===0?0:1,style:mr,ref:dt});if(!sn)return hn;var _n="".concat(Zt,"-conic"),tn=Vr?"".concat(180+Vr/2,"deg"):"0deg",Ln=De(zt,(360-Vr)/360),Un=De(zt,1),Vn="conic-gradient(from ".concat(tn,", ").concat(Ln.join(", "),")"),$r="linear-gradient(to ".concat(Vr?"bottom":"top",", ").concat(Un.join(", "),")");return Ye.createElement(Ye.Fragment,null,Ye.createElement("mask",{id:_n},hn),Ye.createElement("foreignObject",{x:0,y:0,width:Tr,height:Tr,mask:"url(#".concat(_n,")")},Ye.createElement(Te,{bg:$r},Ye.createElement(Te,{bg:Vn}))))}),Pe=Ee,Be=100,Ve=function(dt,Ft,zt,Zt,tr,mr,Er,zr,jr,Tr){var Vr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,sn=zt/100*360*((360-mr)/360),vn=mr===0?0:{bottom:0,top:180,left:90,right:-90}[Er],en=(100-Zt)/100*Ft;jr==="round"&&Zt!==100&&(en+=Tr/2,en>=Ft&&(en=Ft-.01));var hn=Be/2;return{stroke:typeof zr=="string"?zr:void 0,strokeDasharray:"".concat(Ft,"px ").concat(dt),strokeDashoffset:en+Vr,transform:"rotate(".concat(tr+sn+vn,"deg)"),transformOrigin:"".concat(hn,"px ").concat(hn,"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}},Ie=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ze(ft){var dt=ft!=null?ft:[];return Array.isArray(dt)?dt:[dt]}var Qe=function(dt){var Ft=(0,pe.Z)((0,pe.Z)({},ae),dt),zt=Ft.id,Zt=Ft.prefixCls,tr=Ft.steps,mr=Ft.strokeWidth,Er=Ft.trailWidth,zr=Ft.gapDegree,jr=zr===void 0?0:zr,Tr=Ft.gapPosition,Vr=Ft.trailColor,sn=Ft.strokeLinecap,vn=Ft.style,en=Ft.className,hn=Ft.strokeColor,_n=Ft.percent,tn=(0,ne.Z)(Ft,Ie),Ln=Be/2,Un=Ne(zt),Vn="".concat(Un,"-gradient"),$r=Ln-mr/2,Yr=Math.PI*2*$r,Lr=jr>0?90+jr/2:-90,cn=Yr*((360-jr)/360),Pr=(0,Se.Z)(tr)==="object"?tr:{count:tr,space:2},Wr=Pr.count,mn=Pr.space,Gt=Ze(_n),Et=Ze(hn),It=Et.find(function(vr){return vr&&(0,Se.Z)(vr)==="object"}),Dt=It&&(0,Se.Z)(It)==="object",Lt=Dt?"butt":sn,Ut=Ve(Yr,cn,0,100,Lr,jr,Tr,Vr,Lt,mr),Qt=ue(),yr=function(){var Dr=0;return Gt.map(function(Ir,Ar){var qt=Et[Ar]||Et[Et.length-1],kr=Ve(Yr,cn,Dr,Ir,Lr,jr,Tr,qt,Lt,mr);return Dr+=Ir,Ye.createElement(Pe,{key:Ar,color:qt,ptg:Ir,radius:$r,prefixCls:Zt,gradientId:Vn,style:kr,strokeLinecap:Lt,strokeWidth:mr,gapDegree:jr,ref:function(rr){Qt[Ar]=rr},size:Be})}).reverse()},cr=function(){var Dr=Math.round(Wr*(Gt[0]/100)),Ir=100/Wr,Ar=0;return new Array(Wr).fill(null).map(function(qt,kr){var Xt=kr<=Dr-1?Et[0]:Vr,rr=Xt&&(0,Se.Z)(Xt)==="object"?"url(#".concat(Vn,")"):void 0,lr=Ve(Yr,cn,Ar,Ir,Lr,jr,Tr,Xt,"butt",mr,mn);return Ar+=(cn-lr.strokeDashoffset+mn)*100/cn,Ye.createElement("circle",{key:kr,className:"".concat(Zt,"-circle-path"),r:$r,cx:Ln,cy:Ln,stroke:rr,strokeWidth:mr,opacity:1,style:lr,ref:function(_r){Qt[kr]=_r}})})};return Ye.createElement("svg",(0,se.Z)({className:z()("".concat(Zt,"-circle"),en),viewBox:"0 0 ".concat(Be," ").concat(Be),style:vn,id:zt,role:"presentation"},tn),!Wr&&Ye.createElement("circle",{className:"".concat(Zt,"-circle-trail"),r:$r,cx:Ln,cy:Ln,stroke:Vr,strokeLinecap:Lt,strokeWidth:Er||mr,style:Ut}),Wr?cr():yr())},tt=Qe,it={Line:xe,Circle:tt},ht=ke(6848),Ge=ke(30071);function Xe(ft){return!ft||ft<0?0:ft>100?100:ft}function ct(ft){let{success:dt,successPercent:Ft}=ft,zt=Ft;return dt&&"progress"in dt&&(zt=dt.progress),dt&&"percent"in dt&&(zt=dt.percent),zt}const pt=ft=>{let{percent:dt,success:Ft,successPercent:zt}=ft;const Zt=Xe(ct({success:Ft,successPercent:zt}));return[Zt,Xe(Xe(dt)-Zt)]},ut=ft=>{let{success:dt={},strokeColor:Ft}=ft;const{strokeColor:zt}=dt;return[zt||Ge.presetPrimaryColors.green,Ft||null]},rt=(ft,dt,Ft)=>{var zt,Zt,tr,mr;let Er=-1,zr=-1;if(dt==="step"){const jr=Ft.steps,Tr=Ft.strokeWidth;typeof ft=="string"||typeof ft=="undefined"?(Er=ft==="small"?2:14,zr=Tr!=null?Tr:8):typeof ft=="number"?[Er,zr]=[ft,ft]:[Er=14,zr=8]=ft,Er*=jr}else if(dt==="line"){const jr=Ft==null?void 0:Ft.strokeWidth;typeof ft=="string"||typeof ft=="undefined"?zr=jr||(ft==="small"?6:8):typeof ft=="number"?[Er,zr]=[ft,ft]:[Er=-1,zr=8]=ft}else(dt==="circle"||dt==="dashboard")&&(typeof ft=="string"||typeof ft=="undefined"?[Er,zr]=ft==="small"?[60,60]:[120,120]:typeof ft=="number"?[Er,zr]=[ft,ft]:(Er=(Zt=(zt=ft[0])!==null&&zt!==void 0?zt:ft[1])!==null&&Zt!==void 0?Zt:120,zr=(mr=(tr=ft[0])!==null&&tr!==void 0?tr:ft[1])!==null&&mr!==void 0?mr:120));return[Er,zr]},qe=3,nt=ft=>qe/ft*100;var yt=ft=>{const{prefixCls:dt,trailColor:Ft=null,strokeLinecap:zt="round",gapPosition:Zt,gapDegree:tr,width:mr=120,type:Er,children:zr,success:jr,size:Tr=mr}=ft,[Vr,sn]=rt(Tr,"circle");let{strokeWidth:vn}=ft;vn===void 0&&(vn=Math.max(nt(Vr),6));const en={width:Vr,height:sn,fontSize:Vr*.15+6},hn=Ye.useMemo(()=>{if(tr||tr===0)return tr;if(Er==="dashboard")return 75},[tr,Er]),_n=Zt||Er==="dashboard"&&"bottom"||void 0,tn=Object.prototype.toString.call(ft.strokeColor)==="[object Object]",Ln=ut({success:jr,strokeColor:ft.strokeColor}),Un=z()(`${dt}-inner`,{[`${dt}-circle-gradient`]:tn}),Vn=Ye.createElement(tt,{percent:pt(ft),strokeWidth:vn,trailWidth:vn,strokeColor:Ln,strokeLinecap:zt,trailColor:Ft,prefixCls:dt,gapDegree:hn,gapPosition:_n});return Ye.createElement("div",{className:Un,style:en},Vr<=20?Ye.createElement(ht.Z,{title:zr},Ye.createElement("span",null,Vn)):Ye.createElement(Ye.Fragment,null,Vn,zr))},Rt=function(ft,dt){var Ft={};for(var zt in ft)Object.prototype.hasOwnProperty.call(ft,zt)&&dt.indexOf(zt)<0&&(Ft[zt]=ft[zt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,zt=Object.getOwnPropertySymbols(ft);Zt<zt.length;Zt++)dt.indexOf(zt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(ft,zt[Zt])&&(Ft[zt[Zt]]=ft[zt[Zt]]);return Ft};const Ot=ft=>{let dt=[];return Object.keys(ft).forEach(Ft=>{const zt=parseFloat(Ft.replace(/%/g,""));isNaN(zt)||dt.push({key:zt,value:ft[Ft]})}),dt=dt.sort((Ft,zt)=>Ft.key-zt.key),dt.map(Ft=>{let{key:zt,value:Zt}=Ft;return`${Zt} ${zt}%`}).join(", ")},lt=(ft,dt)=>{const{from:Ft=Ge.presetPrimaryColors.blue,to:zt=Ge.presetPrimaryColors.blue,direction:Zt=dt==="rtl"?"to left":"to right"}=ft,tr=Rt(ft,["from","to","direction"]);if(Object.keys(tr).length!==0){const mr=Ot(tr);return{backgroundImage:`linear-gradient(${Zt}, ${mr})`}}return{backgroundImage:`linear-gradient(${Zt}, ${Ft}, ${zt})`}};var $e=ft=>{const{prefixCls:dt,direction:Ft,percent:zt,size:Zt,strokeWidth:tr,strokeColor:mr,strokeLinecap:Er="round",children:zr,trailColor:jr=null,success:Tr}=ft,Vr=mr&&typeof mr!="string"?lt(mr,Ft):{backgroundColor:mr},sn=Er==="square"||Er==="butt"?0:void 0,vn={backgroundColor:jr||void 0,borderRadius:sn},en=Zt!=null?Zt:[-1,tr||(Zt==="small"?6:8)],[hn,_n]=rt(en,"line",{strokeWidth:tr}),tn=Object.assign({width:`${Xe(zt)}%`,height:_n,borderRadius:sn},Vr),Ln=ct(ft),Un={width:`${Xe(Ln)}%`,height:_n,borderRadius:sn,backgroundColor:Tr==null?void 0:Tr.strokeColor},Vn={width:hn<0?"100%":hn,height:_n};return Ye.createElement(Ye.Fragment,null,Ye.createElement("div",{className:`${dt}-outer`,style:Vn},Ye.createElement("div",{className:`${dt}-inner`,style:vn},Ye.createElement("div",{className:`${dt}-bg`,style:tn}),Ln!==void 0?Ye.createElement("div",{className:`${dt}-success-bg`,style:Un}):null)),zr)},fe=ft=>{const{size:dt,steps:Ft,percent:zt=0,strokeWidth:Zt=8,strokeColor:tr,trailColor:mr=null,prefixCls:Er,children:zr}=ft,jr=Math.round(Ft*(zt/100)),Tr=dt==="small"?2:14,Vr=dt!=null?dt:[Tr,Zt],[sn,vn]=rt(Vr,"step",{steps:Ft,strokeWidth:Zt}),en=sn/Ft,hn=new Array(Ft);for(let _n=0;_n<Ft;_n++){const tn=Array.isArray(tr)?tr[_n]:tr;hn[_n]=Ye.createElement("div",{key:_n,className:z()(`${Er}-steps-item`,{[`${Er}-steps-item-active`]:_n<=jr-1}),style:{backgroundColor:_n<=jr-1?tn:mr,width:en,height:vn}})}return Ye.createElement("div",{className:`${Er}-steps-outer`},hn,zr)},Fe=ke(36237),He=ke(17313),ye=ke(83116),Re=ke(37613);const ze=ft=>{const dt=ft?"100%":"-100%";return new Fe.Keyframes(`antProgress${ft?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${dt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${dt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ke=ft=>{const{componentCls:dt,iconCls:Ft}=ft;return{[dt]:Object.assign(Object.assign({},(0,He.Wf)(ft)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ft.fontSize,marginInlineEnd:ft.marginXS,marginBottom:ft.marginXS},[`${dt}-outer`]:{display:"inline-block",width:"100%"},[`&${dt}-show-info`]:{[`${dt}-outer`]:{marginInlineEnd:`calc(-2em - ${ft.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ft.paddingXS}px)`}},[`${dt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ft.remainingColor,borderRadius:ft.lineBorderRadius},[`${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:ft.defaultColor}},[`${dt}-success-bg, ${dt}-bg`]:{position:"relative",backgroundColor:ft.defaultColor,borderRadius:ft.lineBorderRadius,transition:`all ${ft.motionDurationSlow} ${ft.motionEaseInOutCirc}`},[`${dt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ft.colorSuccess},[`${dt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ft.marginXS,color:ft.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ft]:{fontSize:ft.fontSize}},[`&${dt}-status-active`]:{[`${dt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ft.colorBgContainer,borderRadius:ft.lineBorderRadius,opacity:0,animationName:ze(),animationDuration:ft.progressActiveMotionDuration,animationTimingFunction:ft.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${dt}-rtl${dt}-status-active`]:{[`${dt}-bg::before`]:{animationName:ze(!0)}},[`&${dt}-status-exception`]:{[`${dt}-bg`]:{backgroundColor:ft.colorError},[`${dt}-text`]:{color:ft.colorError}},[`&${dt}-status-exception ${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:ft.colorError}},[`&${dt}-status-success`]:{[`${dt}-bg`]:{backgroundColor:ft.colorSuccess},[`${dt}-text`]:{color:ft.colorSuccess}},[`&${dt}-status-success ${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:ft.colorSuccess}}})}},We=ft=>{const{componentCls:dt,iconCls:Ft}=ft;return{[dt]:{[`${dt}-circle-trail`]:{stroke:ft.remainingColor},[`&${dt}-circle ${dt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${dt}-circle ${dt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ft.circleTextColor,fontSize:ft.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ft]:{fontSize:`${ft.fontSize/ft.fontSizeSM}em`}},[`${dt}-circle&-status-exception`]:{[`${dt}-text`]:{color:ft.colorError}},[`${dt}-circle&-status-success`]:{[`${dt}-text`]:{color:ft.colorSuccess}}},[`${dt}-inline-circle`]:{lineHeight:1,[`${dt}-inner`]:{verticalAlign:"bottom"}}}},st=ft=>{const{componentCls:dt}=ft;return{[dt]:{[`${dt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ft.progressStepMinWidth,marginInlineEnd:ft.progressStepMarginInlineEnd,backgroundColor:ft.remainingColor,transition:`all ${ft.motionDurationSlow}`,"&-active":{backgroundColor:ft.defaultColor}}}}}},bt=ft=>{const{componentCls:dt,iconCls:Ft}=ft;return{[dt]:{[`${dt}-small&-line, ${dt}-small&-line ${dt}-text ${Ft}`]:{fontSize:ft.fontSizeSM}}}};var at=(0,ye.Z)("Progress",ft=>{const dt=ft.marginXXS/2,Ft=(0,Re.TS)(ft,{progressStepMarginInlineEnd:dt,progressStepMinWidth:dt,progressActiveMotionDuration:"2.4s"});return[Ke(Ft),We(Ft),st(Ft),bt(Ft)]},ft=>({circleTextColor:ft.colorText,defaultColor:ft.colorInfo,remainingColor:ft.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),kt=function(ft,dt){var Ft={};for(var zt in ft)Object.prototype.hasOwnProperty.call(ft,zt)&&dt.indexOf(zt)<0&&(Ft[zt]=ft[zt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,zt=Object.getOwnPropertySymbols(ft);Zt<zt.length;Zt++)dt.indexOf(zt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(ft,zt[Zt])&&(Ft[zt[Zt]]=ft[zt[Zt]]);return Ft};const Ht=null,Ct=["normal","exception","active","success"];var Bt=Ye.forwardRef((ft,dt)=>{const{prefixCls:Ft,className:zt,rootClassName:Zt,steps:tr,strokeColor:mr,percent:Er=0,size:zr="default",showInfo:jr=!0,type:Tr="line",status:Vr,format:sn,style:vn}=ft,en=kt(ft,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),hn=Ye.useMemo(()=>{var Gt,Et;const It=ct(ft);return parseInt(It!==void 0?(Gt=It!=null?It:0)===null||Gt===void 0?void 0:Gt.toString():(Et=Er!=null?Er:0)===null||Et===void 0?void 0:Et.toString(),10)},[Er,ft.success,ft.successPercent]),_n=Ye.useMemo(()=>!Ct.includes(Vr)&&hn>=100?"success":Vr||"normal",[Vr,hn]),{getPrefixCls:tn,direction:Ln,progress:Un}=Ye.useContext(oe.E_),Vn=tn("progress",Ft),[$r,Yr]=at(Vn),Lr=Ye.useMemo(()=>{if(!jr)return null;const Gt=ct(ft);let Et;const It=sn||(Lt=>`${Lt}%`),Dt=Tr==="line";return sn||_n!=="exception"&&_n!=="success"?Et=It(Xe(Er),Xe(Gt)):_n==="exception"?Et=Dt?Ye.createElement(Ae.Z,null):Ye.createElement(me.Z,null):_n==="success"&&(Et=Dt?Ye.createElement(vt.Z,null):Ye.createElement(x.Z,null)),Ye.createElement("span",{className:`${Vn}-text`,title:typeof Et=="string"?Et:void 0},Et)},[jr,Er,hn,_n,Tr,Vn,sn]),cn=Array.isArray(mr)?mr[0]:mr,Pr=typeof mr=="string"||Array.isArray(mr)?mr:void 0;let Wr;Tr==="line"?Wr=tr?Ye.createElement(fe,Object.assign({},ft,{strokeColor:Pr,prefixCls:Vn,steps:tr}),Lr):Ye.createElement($e,Object.assign({},ft,{strokeColor:cn,prefixCls:Vn,direction:Ln}),Lr):(Tr==="circle"||Tr==="dashboard")&&(Wr=Ye.createElement(yt,Object.assign({},ft,{strokeColor:cn,prefixCls:Vn,progressStatus:_n}),Lr));const mn=z()(Vn,`${Vn}-status-${_n}`,`${Vn}-${Tr==="dashboard"&&"circle"||tr&&"steps"||Tr}`,{[`${Vn}-inline-circle`]:Tr==="circle"&&rt(zr,"circle")[0]<=20,[`${Vn}-show-info`]:jr,[`${Vn}-${zr}`]:typeof zr=="string",[`${Vn}-rtl`]:Ln==="rtl"},Un==null?void 0:Un.className,zt,Zt,Yr);return $r(Ye.createElement("div",Object.assign({ref:dt,style:Object.assign(Object.assign({},Un==null?void 0:Un.style),vn),className:mn,role:"progressbar","aria-valuenow":hn},(0,ie.Z)(en,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Wr))}),St=Bt},5112:function(gr,Wt,ke){"use strict";ke.d(Wt,{ZP:function(){return Ge}});var Ye=ke(92310),vt=ke.n(Ye),x=ke(18929),Ae=ke(26112),me=ke(59301),re=ke(36355),z=ke(19716);const ie=me.createContext(null),oe=ie.Provider;var se=ie;const pe=me.createContext(null),ne=pe.Provider;var ae=ke(5630),ue=ke(8654),de=ke(1684),he=ke(32441),xe=ke(17313),Se=ke(83116),we=ke(37613);const be=Xe=>{const{componentCls:ct,antCls:pt}=Xe,ut=`${ct}-group`;return{[ut]:Object.assign(Object.assign({},(0,xe.Wf)(Xe)),{display:"inline-block",fontSize:0,[`&${ut}-rtl`]:{direction:"rtl"},[`${pt}-badge ${pt}-badge-count`]:{zIndex:1},[`> ${pt}-badge:not(:first-child) > ${pt}-button-wrapper`]:{borderInlineStart:"none"}})}},Me=Xe=>{const{componentCls:ct,wrapperMarginInlineEnd:pt,colorPrimary:ut,radioSize:rt,motionDurationSlow:qe,motionDurationMid:nt,motionEaseInOutCirc:xt,colorBgContainer:yt,colorBorder:Rt,lineWidth:Ot,dotSize:lt,colorBgContainerDisabled:Ue,colorTextDisabled:$e,paddingXS:le,dotColorDisabled:fe,lineType:Fe,radioDotDisabledSize:He,wireframe:ye,colorWhite:Re}=Xe,ze=`${ct}-inner`;return{[`${ct}-wrapper`]:Object.assign(Object.assign({},(0,xe.Wf)(Xe)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:pt,cursor:"pointer",[`&${ct}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Xe.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${ct}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Ot}px ${Fe} ${ut}`,borderRadius:"50%",visibility:"hidden",content:'""'},[ct]:Object.assign(Object.assign({},(0,xe.Wf)(Xe)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${ct}-wrapper:hover &,
|
|
|
&:hover ${ze}`]:{borderColor:ut},[`${ct}-input:focus-visible + ${ze}`]:Object.assign({},(0,xe.oN)(Xe)),[`${ct}:hover::after, ${ct}-wrapper:hover &::after`]:{visibility:"visible"},[`${ct}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:rt,height:rt,marginBlockStart:rt/-2,marginInlineStart:rt/-2,backgroundColor:ye?ut:Re,borderBlockStart:0,borderInlineStart:0,borderRadius:rt,transform:"scale(0)",opacity:0,transition:`all ${qe} ${xt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:rt,height:rt,backgroundColor:yt,borderColor:Rt,borderStyle:"solid",borderWidth:Ot,borderRadius:"50%",transition:`all ${nt}`},[`${ct}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${ct}-checked`]:{[ze]:{borderColor:ut,backgroundColor:ye?yt:ut,"&::after":{transform:`scale(${lt/rt})`,opacity:1,transition:`all ${qe} ${xt}`}}},[`${ct}-disabled`]:{cursor:"not-allowed",[ze]:{backgroundColor:Ue,borderColor:Rt,cursor:"not-allowed","&::after":{backgroundColor:fe}},[`${ct}-input`]:{cursor:"not-allowed"},[`${ct}-disabled + span`]:{color:$e,cursor:"not-allowed"},[`&${ct}-checked`]:{[ze]:{"&::after":{transform:`scale(${He/rt})`}}}},[`span${ct} + *`]:{paddingInlineStart:le,paddingInlineEnd:le}})}},Le=Xe=>{const{buttonColor:ct,controlHeight:pt,componentCls:ut,lineWidth:rt,lineType:qe,colorBorder:nt,motionDurationSlow:xt,motionDurationMid:yt,buttonPaddingInline:Rt,fontSize:Ot,buttonBg:lt,fontSizeLG:Ue,controlHeightLG:$e,controlHeightSM:le,paddingXS:fe,borderRadius:Fe,borderRadiusSM:He,borderRadiusLG:ye,buttonCheckedBg:Re,buttonSolidCheckedColor:ze,colorTextDisabled:Ke,colorBgContainerDisabled:We,buttonCheckedBgDisabled:st,buttonCheckedColorDisabled:bt,colorPrimary:at,colorPrimaryHover:kt,colorPrimaryActive:Ht,buttonSolidCheckedBg:Ct,buttonSolidCheckedHoverBg:$t,buttonSolidCheckedActiveBg:Bt}=Xe;return{[`${ut}-button-wrapper`]:{position:"relative",display:"inline-block",height:pt,margin:0,paddingInline:Rt,paddingBlock:0,color:ct,fontSize:Ot,lineHeight:`${pt-rt*2}px`,background:lt,border:`${rt}px ${qe} ${nt}`,borderBlockStartWidth:rt+.02,borderInlineStartWidth:0,borderInlineEndWidth:rt,cursor:"pointer",transition:[`color ${yt}`,`background ${yt}`,`box-shadow ${yt}`].join(","),a:{color:ct},[`> ${ut}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-rt,insetInlineStart:-rt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:rt,paddingInline:0,backgroundColor:nt,transition:`background-color ${xt}`,content:'""'}},"&:first-child":{borderInlineStart:`${rt}px ${qe} ${nt}`,borderStartStartRadius:Fe,borderEndStartRadius:Fe},"&:last-child":{borderStartEndRadius:Fe,borderEndEndRadius:Fe},"&:first-child:last-child":{borderRadius:Fe},[`${ut}-group-large &`]:{height:$e,fontSize:Ue,lineHeight:`${$e-rt*2}px`,"&:first-child":{borderStartStartRadius:ye,borderEndStartRadius:ye},"&:last-child":{borderStartEndRadius:ye,borderEndEndRadius:ye}},[`${ut}-group-small &`]:{height:le,paddingInline:fe-rt,paddingBlock:0,lineHeight:`${le-rt*2}px`,"&:first-child":{borderStartStartRadius:He,borderEndStartRadius:He},"&:last-child":{borderStartEndRadius:He,borderEndEndRadius:He}},"&:hover":{position:"relative",color:at},"&:has(:focus-visible)":Object.assign({},(0,xe.oN)(Xe)),[`${ut}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${ut}-button-wrapper-disabled)`]:{zIndex:1,color:at,background:Re,borderColor:at,"&::before":{backgroundColor:at},"&:first-child":{borderColor:at},"&:hover":{color:kt,borderColor:kt,"&::before":{backgroundColor:kt}},"&:active":{color:Ht,borderColor:Ht,"&::before":{backgroundColor:Ht}}},[`${ut}-group-solid &-checked:not(${ut}-button-wrapper-disabled)`]:{color:ze,background:Ct,borderColor:Ct,"&:hover":{color:ze,background:$t,borderColor:$t},"&:active":{color:ze,background:Bt,borderColor:Bt}},"&-disabled":{color:Ke,backgroundColor:We,borderColor:nt,cursor:"not-allowed","&:first-child, &:hover":{color:Ke,backgroundColor:We,borderColor:nt}},[`&-disabled${ut}-button-wrapper-checked`]:{color:bt,backgroundColor:st,borderColor:nt,boxShadow:"none"}}}},Ce=Xe=>Xe-4*2;var Ne=(0,Se.Z)("Radio",Xe=>{const{controlOutline:ct,controlOutlineWidth:pt,radioSize:ut}=Xe,rt=`0 0 0 ${pt}px ${ct}`,qe=rt,nt=Ce(ut),xt=(0,we.TS)(Xe,{radioDotDisabledSize:nt,radioFocusShadow:rt,radioButtonFocusShadow:qe});return[be(xt),Me(xt),Le(xt)]},Xe=>{const{wireframe:ct,padding:pt,marginXS:ut,lineWidth:rt,fontSizeLG:qe,colorText:nt,colorBgContainer:xt,colorTextDisabled:yt,controlItemBgActiveDisabled:Rt,colorTextLightSolid:Ot,colorPrimary:lt,colorPrimaryHover:Ue,colorPrimaryActive:$e}=Xe,le=4,fe=qe,Fe=ct?Ce(fe):fe-(le+rt)*2;return{radioSize:fe,dotSize:Fe,dotColorDisabled:yt,buttonSolidCheckedColor:Ot,buttonSolidCheckedBg:lt,buttonSolidCheckedHoverBg:Ue,buttonSolidCheckedActiveBg:$e,buttonBg:xt,buttonCheckedBg:xt,buttonColor:nt,buttonCheckedBgDisabled:Rt,buttonCheckedColorDisabled:yt,buttonPaddingInline:pt-rt,wrapperMarginInlineEnd:ut}}),Te=ke(14088),De=ke(4572),Ee=function(Xe,ct){var pt={};for(var ut in Xe)Object.prototype.hasOwnProperty.call(Xe,ut)&&ct.indexOf(ut)<0&&(pt[ut]=Xe[ut]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,ut=Object.getOwnPropertySymbols(Xe);rt<ut.length;rt++)ct.indexOf(ut[rt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,ut[rt])&&(pt[ut[rt]]=Xe[ut[rt]]);return pt};const Pe=(Xe,ct)=>{var pt,ut;const rt=me.useContext(se),qe=me.useContext(pe),{getPrefixCls:nt,direction:xt,radio:yt}=me.useContext(re.E_),Rt=me.useRef(null),Ot=(0,ue.sQ)(ct,Rt),{isFormItemInput:lt}=me.useContext(he.aM),Ue=Ht=>{var Ct,$t;(Ct=Xe.onChange)===null||Ct===void 0||Ct.call(Xe,Ht),($t=rt==null?void 0:rt.onChange)===null||$t===void 0||$t.call(rt,Ht)},{prefixCls:$e,className:le,rootClassName:fe,children:Fe,style:He}=Xe,ye=Ee(Xe,["prefixCls","className","rootClassName","children","style"]),Re=nt("radio",$e),ze=((rt==null?void 0:rt.optionType)||qe)==="button",Ke=ze?`${Re}-button`:Re,[We,st]=Ne(Re),bt=Object.assign({},ye),at=me.useContext(de.Z);rt&&(bt.name=rt.name,bt.onChange=Ue,bt.checked=Xe.value===rt.value,bt.disabled=(pt=bt.disabled)!==null&&pt!==void 0?pt:rt.disabled),bt.disabled=(ut=bt.disabled)!==null&&ut!==void 0?ut:at;const kt=vt()(`${Ke}-wrapper`,{[`${Ke}-wrapper-checked`]:bt.checked,[`${Ke}-wrapper-disabled`]:bt.disabled,[`${Ke}-wrapper-rtl`]:xt==="rtl",[`${Ke}-wrapper-in-form-item`]:lt},yt==null?void 0:yt.className,le,fe,st);return We(me.createElement(Te.Z,{component:"Radio",disabled:bt.disabled},me.createElement("label",{className:kt,style:Object.assign(Object.assign({},yt==null?void 0:yt.style),He),onMouseEnter:Xe.onMouseEnter,onMouseLeave:Xe.onMouseLeave},me.createElement(ae.Z,Object.assign({},bt,{className:vt()(bt.className,!ze&&De.A),type:"radio",prefixCls:Ke,ref:Ot})),Fe!==void 0?me.createElement("span",null,Fe):null)))};var Ve=me.forwardRef(Pe);const Ie=me.forwardRef((Xe,ct)=>{const{getPrefixCls:pt,direction:ut}=me.useContext(re.E_),[rt,qe]=(0,x.Z)(Xe.defaultValue,{value:Xe.value}),nt=Ct=>{const $t=rt,Bt=Ct.target.value;"value"in Xe||qe(Bt);const{onChange:St}=Xe;St&&Bt!==$t&&St(Ct)},{prefixCls:xt,className:yt,rootClassName:Rt,options:Ot,buttonStyle:lt="outline",disabled:Ue,children:$e,size:le,style:fe,id:Fe,onMouseEnter:He,onMouseLeave:ye,onFocus:Re,onBlur:ze}=Xe,Ke=pt("radio",xt),We=`${Ke}-group`,[st,bt]=Ne(Ke);let at=$e;Ot&&Ot.length>0&&(at=Ot.map(Ct=>typeof Ct=="string"||typeof Ct=="number"?me.createElement(Ve,{key:Ct.toString(),prefixCls:Ke,disabled:Ue,value:Ct,checked:rt===Ct},Ct):me.createElement(Ve,{key:`radio-group-value-options-${Ct.value}`,prefixCls:Ke,disabled:Ct.disabled||Ue,value:Ct.value,checked:rt===Ct.value,title:Ct.title,style:Ct.style},Ct.label)));const kt=(0,z.Z)(le),Ht=vt()(We,`${We}-${lt}`,{[`${We}-${kt}`]:kt,[`${We}-rtl`]:ut==="rtl"},yt,Rt,bt);return st(me.createElement("div",Object.assign({},(0,Ae.Z)(Xe,{aria:!0,data:!0}),{className:Ht,style:fe,onMouseEnter:He,onMouseLeave:ye,onFocus:Re,onBlur:ze,id:Fe,ref:ct}),me.createElement(oe,{value:{onChange:nt,value:rt,disabled:Xe.disabled,name:Xe.name,optionType:Xe.optionType}},at)))});var Ze=me.memo(Ie),Qe=function(Xe,ct){var pt={};for(var ut in Xe)Object.prototype.hasOwnProperty.call(Xe,ut)&&ct.indexOf(ut)<0&&(pt[ut]=Xe[ut]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,ut=Object.getOwnPropertySymbols(Xe);rt<ut.length;rt++)ct.indexOf(ut[rt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,ut[rt])&&(pt[ut[rt]]=Xe[ut[rt]]);return pt};const tt=(Xe,ct)=>{const{getPrefixCls:pt}=me.useContext(re.E_),{prefixCls:ut}=Xe,rt=Qe(Xe,["prefixCls"]),qe=pt("radio",ut);return me.createElement(ne,{value:"button"},me.createElement(Ve,Object.assign({prefixCls:qe},rt,{type:"radio",ref:ct})))};var it=me.forwardRef(tt);const ht=Ve;ht.Button=it,ht.Group=Ze,ht.__ANT_RADIO=!0;var Ge=ht},57809:function(gr,Wt,ke){"use strict";var Ye=ke(92310),vt=ke.n(Ye),x=ke(77861),Ae=ke(2738),me=ke(59301),re=ke(53487),z=ke(62892),ie=ke(19080),oe=ke(36355),se=ke(1684),pe=ke(93891),ne=ke(19716),ae=ke(32441),ue=ke(33234),de=ke(14154),he=ke(58582),xe=ke(84443),Se=ke(66339),we=function(Ne,Te){var De={};for(var Ee in Ne)Object.prototype.hasOwnProperty.call(Ne,Ee)&&Te.indexOf(Ee)<0&&(De[Ee]=Ne[Ee]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ee=Object.getOwnPropertySymbols(Ne);Pe<Ee.length;Pe++)Te.indexOf(Ee[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Ee[Pe])&&(De[Ee[Pe]]=Ne[Ee[Pe]]);return De};const be="SECRET_COMBOBOX_MODE_DO_NOT_USE",Me=(Ne,Te)=>{var De,{prefixCls:Ee,bordered:Pe=!0,className:Be,rootClassName:Ve,getPopupContainer:Ie,popupClassName:Ze,dropdownClassName:Qe,listHeight:tt=256,placement:it,listItemHeight:ht=24,size:Ge,disabled:Xe,notFoundContent:ct,status:pt,builtinPlacements:ut,dropdownMatchSelectWidth:rt,popupMatchSelectWidth:qe,direction:nt,style:xt,allowClear:yt}=Ne,Rt=we(Ne,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Ot,getPrefixCls:lt,renderEmpty:Ue,direction:$e,virtual:le,popupMatchSelectWidth:fe,popupOverflow:Fe,select:He}=me.useContext(oe.E_),ye=lt("select",Ee),Re=lt(),ze=nt!=null?nt:$e,{compactSize:Ke,compactItemClassnames:We}=(0,ue.ri)(ye,ze),[st,bt]=(0,de.Z)(ye),at=me.useMemo(()=>{const{mode:_n}=Rt;if(_n!=="combobox")return _n===be?"combobox":_n},[Rt.mode]),kt=at==="multiple"||at==="tags",Ht=(0,xe.Z)(Rt.suffixIcon,Rt.showArrow),Ct=(De=qe!=null?qe:rt)!==null&&De!==void 0?De:fe,{status:$t,hasFeedback:Bt,isFormItemInput:St,feedbackIcon:ft}=me.useContext(ae.aM),dt=(0,ie.F)($t,pt);let Ft;ct!==void 0?Ft=ct:at==="combobox"?Ft=null:Ft=(Ue==null?void 0:Ue("Select"))||me.createElement(pe.Z,{componentName:"Select"});const{suffixIcon:zt,itemIcon:Zt,removeIcon:tr,clearIcon:mr}=(0,Se.Z)(Object.assign(Object.assign({},Rt),{multiple:kt,hasFeedback:Bt,feedbackIcon:ft,showSuffixIcon:Ht,prefixCls:ye,showArrow:Rt.showArrow,componentName:"Select"})),Er=yt===!0?{clearIcon:mr}:yt,zr=(0,Ae.Z)(Rt,["suffixIcon","itemIcon"]),jr=vt()(Ze||Qe,{[`${ye}-dropdown-${ze}`]:ze==="rtl"},Ve,bt),Tr=(0,ne.Z)(_n=>{var tn;return(tn=Ge!=null?Ge:Ke)!==null&&tn!==void 0?tn:_n}),Vr=me.useContext(se.Z),sn=Xe!=null?Xe:Vr,vn=vt()({[`${ye}-lg`]:Tr==="large",[`${ye}-sm`]:Tr==="small",[`${ye}-rtl`]:ze==="rtl",[`${ye}-borderless`]:!Pe,[`${ye}-in-form-item`]:St},(0,ie.Z)(ye,dt,Bt),We,He==null?void 0:He.className,Be,Ve,bt),en=me.useMemo(()=>it!==void 0?it:ze==="rtl"?"bottomRight":"bottomLeft",[it,ze]),hn=(0,he.Z)(ut,Fe);return st(me.createElement(x.ZP,Object.assign({ref:Te,virtual:le,showSearch:He==null?void 0:He.showSearch},zr,{style:Object.assign(Object.assign({},He==null?void 0:He.style),xt),dropdownMatchSelectWidth:Ct,builtinPlacements:hn,transitionName:(0,z.m)(Re,"slide-up",Rt.transitionName),listHeight:tt,listItemHeight:ht,mode:at,prefixCls:ye,placement:en,direction:ze,suffixIcon:zt,menuItemSelectedIcon:Zt,removeIcon:tr,allowClear:Er,notFoundContent:Ft,className:vn,getPopupContainer:Ie||Ot,dropdownClassName:jr,disabled:sn})))},Le=me.forwardRef(Me),Ce=(0,re.Z)(Le);Le.SECRET_COMBOBOX_MODE_DO_NOT_USE=be,Le.Option=x.Wx,Le.OptGroup=x.Xo,Le._InternalPanelDoNotUseOrYouWillBeFired=Ce,Wt.default=Le},14154:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Le}});var Ye=ke(17313),vt=ke(74207),x=ke(37613),Ae=ke(83116),me=ke(13826),re=ke(92899);const z=Ce=>{const{optionHeight:Ne,optionFontSize:Te,optionLineHeight:De,optionPadding:Ee}=Ce;return{position:"relative",display:"block",minHeight:Ne,padding:Ee,color:Ce.colorText,fontWeight:"normal",fontSize:Te,lineHeight:De,boxSizing:"border-box"}};var oe=Ce=>{const{antCls:Ne,componentCls:Te}=Ce,De=`${Te}-item`,Ee=`&${Ne}-slide-up-enter${Ne}-slide-up-enter-active`,Pe=`&${Ne}-slide-up-appear${Ne}-slide-up-appear-active`,Be=`&${Ne}-slide-up-leave${Ne}-slide-up-leave-active`,Ve=`${Te}-dropdown-placement-`;return[{[`${Te}-dropdown`]:Object.assign(Object.assign({},(0,Ye.Wf)(Ce)),{position:"absolute",top:-9999,zIndex:Ce.zIndexPopup,boxSizing:"border-box",padding:Ce.paddingXXS,overflow:"hidden",fontSize:Ce.fontSize,fontVariant:"initial",backgroundColor:Ce.colorBgElevated,borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary,[`
|
|
|
${Ee}${Ve}bottomLeft,
|
|
|
${Pe}${Ve}bottomLeft
|
|
|
`]:{animationName:me.fJ},[`
|
|
|
${Ee}${Ve}topLeft,
|
|
|
${Pe}${Ve}topLeft,
|
|
|
${Ee}${Ve}topRight,
|
|
|
${Pe}${Ve}topRight
|
|
|
`]:{animationName:me.Qt},[`${Be}${Ve}bottomLeft`]:{animationName:me.Uw},[`
|
|
|
${Be}${Ve}topLeft,
|
|
|
${Be}${Ve}topRight
|
|
|
`]:{animationName:me.ly},"&-hidden":{display:"none"},[`${De}`]:Object.assign(Object.assign({},z(Ce)),{cursor:"pointer",transition:`background ${Ce.motionDurationSlow} ease`,borderRadius:Ce.borderRadiusSM,"&-group":{color:Ce.colorTextDescription,fontSize:Ce.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ye.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${De}-option-disabled)`]:{backgroundColor:Ce.optionActiveBg},[`&-selected:not(${De}-option-disabled)`]:{color:Ce.optionSelectedColor,fontWeight:Ce.optionSelectedFontWeight,backgroundColor:Ce.optionSelectedBg,[`${De}-option-state`]:{color:Ce.colorPrimary}},"&-disabled":{[`&${De}-option-selected`]:{backgroundColor:Ce.colorBgContainerDisabled},color:Ce.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ce.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,me.oN)(Ce,"slide-up"),(0,me.oN)(Ce,"slide-down"),(0,re.Fm)(Ce,"move-up"),(0,re.Fm)(Ce,"move-down")]};const se=2,pe=Ce=>{let{controlHeightSM:Ne,controlHeight:Te,lineWidth:De}=Ce;const Ee=(Te-Ne)/2-De,Pe=Math.ceil(Ee/2);return[Ee,Pe]};function ne(Ce,Ne){const{componentCls:Te,iconCls:De}=Ce,Ee=`${Te}-selection-overflow`,Pe=Ce.multipleSelectItemHeight,[Be]=pe(Ce),Ve=Ne?`${Te}-${Ne}`:"";return{[`${Te}-multiple${Ve}`]:{fontSize:Ce.fontSize,[Ee]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Te}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Be-se}px ${se*2}px`,borderRadius:Ce.borderRadius,[`${Te}-show-search&`]:{cursor:"text"},[`${Te}-disabled&`]:{background:Ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${se}px 0`,lineHeight:`${Pe}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Te}-show-arrow ${Te}-selector,
|
|
|
&${Te}-allow-clear ${Te}-selector
|
|
|
`]:{paddingInlineEnd:Ce.fontSizeIcon+Ce.controlPaddingHorizontal},[`${Te}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Pe,marginTop:se,marginBottom:se,lineHeight:`${Pe-Ce.lineWidth*2}px`,background:Ce.multipleItemBg,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.multipleItemBorderColor}`,borderRadius:Ce.borderRadiusSM,cursor:"default",transition:`font-size ${Ce.motionDurationSlow}, line-height ${Ce.motionDurationSlow}, height ${Ce.motionDurationSlow}`,userSelect:"none",marginInlineEnd:se*2,paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS/2,[`${Te}-disabled&`]:{color:Ce.multipleItemColorDisabled,borderColor:Ce.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ce.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Ye.Ro)()),{display:"inline-flex",alignItems:"center",color:Ce.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${De}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ce.colorIconHover}})},[`${Ee}-item + ${Ee}-item`]:{[`${Te}-selection-search`]:{marginInlineStart:0}},[`${Te}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ce.inputPaddingHorizontalBase-Be,"\n &-input,\n &-mirror\n ":{height:Pe,fontFamily:Ce.fontFamily,lineHeight:`${Pe}px`,transition:`all ${Ce.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Te}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ce.inputPaddingHorizontalBase,insetInlineEnd:Ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ce.motionDurationSlow}`}}}}var ue=Ce=>{const{componentCls:Ne}=Ce,Te=(0,x.TS)(Ce,{controlHeight:Ce.controlHeightSM,multipleSelectItemHeight:Ce.controlHeightXS,borderRadius:Ce.borderRadiusSM,borderRadiusSM:Ce.borderRadiusXS}),De=(0,x.TS)(Ce,{fontSize:Ce.fontSizeLG,controlHeight:Ce.controlHeightLG,multipleSelectItemHeight:Ce.multipleItemHeightLG,borderRadius:Ce.borderRadiusLG,borderRadiusSM:Ce.borderRadius}),[,Ee]=pe(Ce);return[ne(Ce),ne(Te,"sm"),{[`${Ne}-multiple${Ne}-sm`]:{[`${Ne}-selection-placeholder`]:{insetInline:Ce.controlPaddingHorizontalSM-Ce.lineWidth},[`${Ne}-selection-search`]:{marginInlineStart:Ee}}},ne(De,"lg")]};function de(Ce,Ne){const{componentCls:Te,inputPaddingHorizontalBase:De,borderRadius:Ee}=Ce,Pe=Ce.controlHeight-Ce.lineWidth*2,Be=Math.ceil(Ce.fontSize*1.25),Ve=Ne?`${Te}-${Ne}`:"";return{[`${Te}-single${Ve}`]:{fontSize:Ce.fontSize,[`${Te}-selector`]:Object.assign(Object.assign({},(0,Ye.Wf)(Ce)),{display:"flex",borderRadius:Ee,[`${Te}-selection-search`]:{position:"absolute",top:0,insetInlineStart:De,insetInlineEnd:De,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Te}-selection-item,
|
|
|
${Te}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Pe}px`,transition:`all ${Ce.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Pe}px`}},[`${Te}-selection-item`]:{position:"relative",userSelect:"none"},[`${Te}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Te}-selection-item:after`,`${Te}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Te}-show-arrow ${Te}-selection-item,
|
|
|
&${Te}-show-arrow ${Te}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Be},[`&${Te}-open ${Te}-selection-item`]:{color:Ce.colorTextPlaceholder},[`&:not(${Te}-customize-input)`]:{[`${Te}-selector`]:{width:"100%",height:Ce.controlHeight,padding:`0 ${De}px`,[`${Te}-selection-search-input`]:{height:Pe},"&:after":{lineHeight:`${Pe}px`}}},[`&${Te}-customize-input`]:{[`${Te}-selector`]:{"&:after":{display:"none"},[`${Te}-selection-search`]:{position:"static",width:"100%"},[`${Te}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${De}px`,"&:after":{display:"none"}}}}}}}function he(Ce){const{componentCls:Ne}=Ce,Te=Ce.controlPaddingHorizontalSM-Ce.lineWidth;return[de(Ce),de((0,x.TS)(Ce,{controlHeight:Ce.controlHeightSM,borderRadius:Ce.borderRadiusSM}),"sm"),{[`${Ne}-single${Ne}-sm`]:{[`&:not(${Ne}-customize-input)`]:{[`${Ne}-selection-search`]:{insetInlineStart:Te,insetInlineEnd:Te},[`${Ne}-selector`]:{padding:`0 ${Te}px`},[`&${Ne}-show-arrow ${Ne}-selection-search`]:{insetInlineEnd:Te+Ce.fontSize*1.5},[`
|
|
|
&${Ne}-show-arrow ${Ne}-selection-item,
|
|
|
&${Ne}-show-arrow ${Ne}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ce.fontSize*1.5}}}},de((0,x.TS)(Ce,{controlHeight:Ce.singleItemHeightLG,fontSize:Ce.fontSizeLG,borderRadius:Ce.borderRadiusLG}),"lg")]}const xe=Ce=>{const{componentCls:Ne,selectorBg:Te}=Ce;return{position:"relative",backgroundColor:Te,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ne}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ne}-disabled&`]:{color:Ce.colorTextDisabled,background:Ce.colorBgContainerDisabled,cursor:"not-allowed",[`${Ne}-multiple&`]:{background:Ce.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Se=function(Ce,Ne){let Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:De,borderHoverColor:Ee,outlineColor:Pe,antCls:Be}=Ne,Ve=Te?{[`${De}-selector`]:{borderColor:Ee}}:{};return{[Ce]:{[`&:not(${De}-disabled):not(${De}-customize-input):not(${Be}-pagination-size-changer)`]:Object.assign(Object.assign({},Ve),{[`${De}-focused& ${De}-selector`]:{borderColor:Ee,boxShadow:`0 0 0 ${Ne.controlOutlineWidth}px ${Pe}`,outline:0},[`&:hover ${De}-selector`]:{borderColor:Ee}})}}},we=Ce=>{const{componentCls:Ne}=Ce;return{[`${Ne}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},be=Ce=>{const{componentCls:Ne,inputPaddingHorizontalBase:Te,iconCls:De}=Ce;return{[Ne]:Object.assign(Object.assign({},(0,Ye.Wf)(Ce)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ne}-customize-input) ${Ne}-selector`]:Object.assign(Object.assign({},xe(Ce)),we(Ce)),[`${Ne}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Ye.vS),[`${Ne}-selection-placeholder`]:Object.assign(Object.assign({},Ye.vS),{flex:1,color:Ce.colorTextPlaceholder,pointerEvents:"none"}),[`${Ne}-arrow`]:Object.assign(Object.assign({},(0,Ye.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Te,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[De]:{verticalAlign:"top",transition:`transform ${Ce.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ne}-suffix)`]:{pointerEvents:"auto"}},[`${Ne}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ne}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Te,zIndex:1,display:"inline-block",width:Ce.fontSizeIcon,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ce.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ce.motionDurationMid} ease, opacity ${Ce.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ce.colorTextTertiary}},"&:hover":{[`${Ne}-clear`]:{opacity:1}}}),[`${Ne}-has-feedback`]:{[`${Ne}-clear`]:{insetInlineEnd:Te+Ce.fontSize+Ce.paddingXS}}}},Me=Ce=>{const{componentCls:Ne}=Ce;return[{[Ne]:{[`&-borderless ${Ne}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ne}-in-form-item`]:{width:"100%"}}},be(Ce),he(Ce),ue(Ce),oe(Ce),{[`${Ne}-rtl`]:{direction:"rtl"}},Se(Ne,(0,x.TS)(Ce,{borderHoverColor:Ce.colorPrimaryHover,outlineColor:Ce.controlOutline})),Se(`${Ne}-status-error`,(0,x.TS)(Ce,{borderHoverColor:Ce.colorErrorHover,outlineColor:Ce.colorErrorOutline}),!0),Se(`${Ne}-status-warning`,(0,x.TS)(Ce,{borderHoverColor:Ce.colorWarningHover,outlineColor:Ce.colorWarningOutline}),!0),(0,vt.c)(Ce,{borderElCls:`${Ne}-selector`,focusElCls:`${Ne}-focused`})]};var Le=(0,Ae.Z)("Select",(Ce,Ne)=>{let{rootPrefixCls:Te}=Ne;const De=(0,x.TS)(Ce,{rootPrefixCls:Te,inputPaddingHorizontalBase:Ce.paddingSM-1,multipleSelectItemHeight:Ce.multipleItemHeight});return[Me(De)]},Ce=>{const{fontSize:Ne,lineHeight:Te,controlHeight:De,controlPaddingHorizontal:Ee,zIndexPopupBase:Pe,colorText:Be,fontWeightStrong:Ve,controlItemBgActive:Ie,controlItemBgHover:Ze,colorBgContainer:Qe,colorFillSecondary:tt,controlHeightLG:it,controlHeightSM:ht,colorBgContainerDisabled:Ge,colorTextDisabled:Xe}=Ce;return{zIndexPopup:Pe+50,optionSelectedColor:Be,optionSelectedFontWeight:Ve,optionSelectedBg:Ie,optionActiveBg:Ze,optionPadding:`${(De-Ne*Te)/2}px ${Ee}px`,optionFontSize:Ne,optionLineHeight:Te,optionHeight:De,selectorBg:Qe,clearBg:Qe,singleItemHeightLG:it,multipleItemBg:tt,multipleItemBorderColor:"transparent",multipleItemHeight:ht,multipleItemHeightLG:De,multipleSelectorBgDisabled:Ge,multipleItemColorDisabled:Xe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return vt}});const Ye=x=>{const me={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:x==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},me),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},me),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},me),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},me),{points:["br","tr"],offset:[0,-4]})}};function vt(x,Ae){return x||Ye(Ae)}},84443:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Ye}});function Ye(vt,x){return x!==void 0?x:vt!==null}},66339:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});var Ye=ke(40001),vt=ke(19248),x=ke(99267),Ae=ke(84105),me=ke(58617),re=ke(47472),z=ke(59301);function ie(oe){let{suffixIcon:se,clearIcon:pe,menuItemSelectedIcon:ne,removeIcon:ae,loading:ue,multiple:de,hasFeedback:he,prefixCls:xe,showSuffixIcon:Se,feedbackIcon:we,showArrow:be,componentName:Me}=oe;const Le=pe!=null?pe:z.createElement(vt.Z,null),Ce=Ee=>se===null&&!he&&!be?null:z.createElement(z.Fragment,null,Se!==!1&&Ee,he&&we);let Ne=null;if(se!==void 0)Ne=Ce(se);else if(ue)Ne=Ce(z.createElement(me.Z,{spin:!0}));else{const Ee=`${xe}-suffix`;Ne=Pe=>{let{open:Be,showSearch:Ve}=Pe;return Ce(Be&&Ve?z.createElement(re.Z,{className:Ee}):z.createElement(Ae.Z,{className:Ee}))}}let Te=null;ne!==void 0?Te=ne:de?Te=z.createElement(Ye.Z,null):Te=null;let De=null;return ae!==void 0?De=ae:De=z.createElement(x.Z,null),{clearIcon:Le,suffixIcon:Ne,itemIcon:Te,removeIcon:De}}},8378:function(gr,Wt){"use strict";const ke=Ye=>({[Ye.componentCls]:{[`${Ye.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${Ye.motionDurationMid} ${Ye.motionEaseInOut},
|
|
|
opacity ${Ye.motionDurationMid} ${Ye.motionEaseInOut} !important`}},[`${Ye.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${Ye.motionDurationMid} ${Ye.motionEaseInOut},
|
|
|
opacity ${Ye.motionDurationMid} ${Ye.motionEaseInOut} !important`}}});Wt.Z=ke},92899:function(gr,Wt,ke){"use strict";ke.d(Wt,{Fm:function(){return ne}});var Ye=ke(36237),vt=ke(95406);const x=new Ye.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ae=new Ye.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),me=new Ye.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),re=new Ye.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),z=new Ye.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ie=new Ye.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),oe=new Ye.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),se=new Ye.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),pe={"move-up":{inKeyframes:oe,outKeyframes:se},"move-down":{inKeyframes:x,outKeyframes:Ae},"move-left":{inKeyframes:me,outKeyframes:re},"move-right":{inKeyframes:z,outKeyframes:ie}},ne=(ae,ue)=>{const{antCls:de}=ae,he=`${de}-${ue}`,{inKeyframes:xe,outKeyframes:Se}=pe[ue];return[(0,vt.R)(he,xe,Se,ae.motionDurationMid),{[`
|
|
|
${he}-enter,
|
|
|
${he}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:ae.motionEaseOutCirc},[`${he}-leave`]:{animationTimingFunction:ae.motionEaseInOutCirc}}]}},13826:function(gr,Wt,ke){"use strict";ke.d(Wt,{Qt:function(){return me},Uw:function(){return Ae},fJ:function(){return x},ly:function(){return re},oN:function(){return ne}});var Ye=ke(36237),vt=ke(95406);const x=new Ye.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ae=new Ye.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),me=new Ye.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),re=new Ye.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),z=new Ye.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ie=new Ye.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),oe=new Ye.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),se=new Ye.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),pe={"slide-up":{inKeyframes:x,outKeyframes:Ae},"slide-down":{inKeyframes:me,outKeyframes:re},"slide-left":{inKeyframes:z,outKeyframes:ie},"slide-right":{inKeyframes:oe,outKeyframes:se}},ne=(ae,ue)=>{const{antCls:de}=ae,he=`${de}-${ue}`,{inKeyframes:xe,outKeyframes:Se}=pe[ue];return[(0,vt.R)(he,xe,Se,ae.motionDurationMid),{[`
|
|
|
${he}-enter,
|
|
|
${he}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:ae.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${he}-leave`]:{animationTimingFunction:ae.motionEaseInQuint}}]}},15969:function(gr,Wt,ke){"use strict";ke.d(Wt,{N:function(){return Ye}});const Ye=vt=>({color:vt.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${vt.motionDurationSlow}`,"&:focus, &:hover":{color:vt.colorLinkHover},"&:active":{color:vt.colorLinkActive}})},78673:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Ve}});var Ye=ke(58617),vt=ke(92310),x=ke.n(vt),Ae=ke(54476),me=ke(20068),re=ke(42978),z=ke(75931),ie=ke(59301),oe=ke(18929),se=ke(10228),pe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ne=ie.forwardRef(function(Ie,Ze){var Qe,tt=Ie.prefixCls,it=tt===void 0?"rc-switch":tt,ht=Ie.className,Ge=Ie.checked,Xe=Ie.defaultChecked,ct=Ie.disabled,pt=Ie.loadingIcon,ut=Ie.checkedChildren,rt=Ie.unCheckedChildren,qe=Ie.onClick,nt=Ie.onChange,xt=Ie.onKeyDown,yt=(0,z.Z)(Ie,pe),Rt=(0,oe.Z)(!1,{value:Ge,defaultValue:Xe}),Ot=(0,re.Z)(Rt,2),lt=Ot[0],Ue=Ot[1];function $e(He,ye){var Re=lt;return ct||(Re=He,Ue(Re),nt==null||nt(Re,ye)),Re}function le(He){He.which===se.Z.LEFT?$e(!1,He):He.which===se.Z.RIGHT&&$e(!0,He),xt==null||xt(He)}function fe(He){var ye=$e(!lt,He);qe==null||qe(ye,He)}var Fe=x()(it,ht,(Qe={},(0,me.Z)(Qe,"".concat(it,"-checked"),lt),(0,me.Z)(Qe,"".concat(it,"-disabled"),ct),Qe));return ie.createElement("button",(0,Ae.Z)({},yt,{type:"button",role:"switch","aria-checked":lt,disabled:ct,className:Fe,ref:Ze,onKeyDown:le,onClick:fe}),pt,ie.createElement("span",{className:"".concat(it,"-inner")},ie.createElement("span",{className:"".concat(it,"-inner-checked")},ut),ie.createElement("span",{className:"".concat(it,"-inner-unchecked")},rt)))});ne.displayName="Switch";var ae=ne,ue=ke(14088),de=ke(36355),he=ke(1684),xe=ke(19716),Se=ke(64993),we=ke(17313),be=ke(83116),Me=ke(37613);const Le=Ie=>{const{componentCls:Ze,trackHeightSM:Qe,trackPadding:tt,trackMinWidthSM:it,innerMinMarginSM:ht,innerMaxMarginSM:Ge,handleSizeSM:Xe}=Ie,ct=`${Ze}-inner`;return{[Ze]:{[`&${Ze}-small`]:{minWidth:it,height:Qe,lineHeight:`${Qe}px`,[`${Ze}-inner`]:{paddingInlineStart:Ge,paddingInlineEnd:ht,[`${ct}-checked`]:{marginInlineStart:`calc(-100% + ${Xe+tt*2}px - ${Ge*2}px)`,marginInlineEnd:`calc(100% - ${Xe+tt*2}px + ${Ge*2}px)`},[`${ct}-unchecked`]:{marginTop:-Qe,marginInlineStart:0,marginInlineEnd:0}},[`${Ze}-handle`]:{width:Xe,height:Xe},[`${Ze}-loading-icon`]:{top:(Xe-Ie.switchLoadingIconSize)/2,fontSize:Ie.switchLoadingIconSize},[`&${Ze}-checked`]:{[`${Ze}-inner`]:{paddingInlineStart:ht,paddingInlineEnd:Ge,[`${ct}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ct}-unchecked`]:{marginInlineStart:`calc(100% - ${Xe+tt*2}px + ${Ge*2}px)`,marginInlineEnd:`calc(-100% + ${Xe+tt*2}px - ${Ge*2}px)`}},[`${Ze}-handle`]:{insetInlineStart:`calc(100% - ${Xe+tt}px)`}},[`&:not(${Ze}-disabled):active`]:{[`&:not(${Ze}-checked) ${ct}`]:{[`${ct}-unchecked`]:{marginInlineStart:Ie.marginXXS/2,marginInlineEnd:-Ie.marginXXS/2}},[`&${Ze}-checked ${ct}`]:{[`${ct}-checked`]:{marginInlineStart:-Ie.marginXXS/2,marginInlineEnd:Ie.marginXXS/2}}}}}}},Ce=Ie=>{const{componentCls:Ze,handleSize:Qe}=Ie;return{[Ze]:{[`${Ze}-loading-icon${Ie.iconCls}`]:{position:"relative",top:(Qe-Ie.fontSize)/2,color:Ie.switchLoadingIconColor,verticalAlign:"top"},[`&${Ze}-checked ${Ze}-loading-icon`]:{color:Ie.switchColor}}}},Ne=Ie=>{const{componentCls:Ze,motion:Qe,trackPadding:tt,handleBg:it,handleShadow:ht,handleSize:Ge}=Ie,Xe=`${Ze}-handle`;return{[Ze]:{[Xe]:{position:"absolute",top:tt,insetInlineStart:tt,width:Ge,height:Ge,transition:`all ${Ie.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:it,borderRadius:Ge/2,boxShadow:ht,transition:`all ${Ie.switchDuration} ease-in-out`,content:'""'}},[`&${Ze}-checked ${Xe}`]:{insetInlineStart:`calc(100% - ${Ge+tt}px)`},[`&:not(${Ze}-disabled):active`]:Qe?{[`${Xe}::before`]:{insetInlineEnd:Ie.switchHandleActiveInset,insetInlineStart:0},[`&${Ze}-checked ${Xe}::before`]:{insetInlineEnd:0,insetInlineStart:Ie.switchHandleActiveInset}}:{}}}},Te=Ie=>{const{componentCls:Ze,trackHeight:Qe,trackPadding:tt,innerMinMargin:it,innerMaxMargin:ht,handleSize:Ge}=Ie,Xe=`${Ze}-inner`;return{[Ze]:{[Xe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ht,paddingInlineEnd:it,transition:`padding-inline-start ${Ie.switchDuration} ease-in-out, padding-inline-end ${Ie.switchDuration} ease-in-out`,[`${Xe}-checked, ${Xe}-unchecked`]:{display:"block",color:Ie.colorTextLightSolid,fontSize:Ie.fontSizeSM,transition:`margin-inline-start ${Ie.switchDuration} ease-in-out, margin-inline-end ${Ie.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Xe}-checked`]:{marginInlineStart:`calc(-100% + ${Ge+tt*2}px - ${ht*2}px)`,marginInlineEnd:`calc(100% - ${Ge+tt*2}px + ${ht*2}px)`},[`${Xe}-unchecked`]:{marginTop:-Qe,marginInlineStart:0,marginInlineEnd:0}},[`&${Ze}-checked ${Xe}`]:{paddingInlineStart:it,paddingInlineEnd:ht,[`${Xe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Xe}-unchecked`]:{marginInlineStart:`calc(100% - ${Ge+tt*2}px + ${ht*2}px)`,marginInlineEnd:`calc(-100% + ${Ge+tt*2}px - ${ht*2}px)`}},[`&:not(${Ze}-disabled):active`]:{[`&:not(${Ze}-checked) ${Xe}`]:{[`${Xe}-unchecked`]:{marginInlineStart:tt*2,marginInlineEnd:-tt*2}},[`&${Ze}-checked ${Xe}`]:{[`${Xe}-checked`]:{marginInlineStart:-tt*2,marginInlineEnd:tt*2}}}}}},De=Ie=>{const{componentCls:Ze,trackHeight:Qe,trackMinWidth:tt}=Ie;return{[Ze]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,we.Wf)(Ie)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:tt,height:Qe,lineHeight:`${Qe}px`,verticalAlign:"middle",background:Ie.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ie.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ze}-disabled)`]:{background:Ie.colorTextTertiary}}),(0,we.Qy)(Ie)),{[`&${Ze}-checked`]:{background:Ie.switchColor,[`&:hover:not(${Ze}-disabled)`]:{background:Ie.colorPrimaryHover}},[`&${Ze}-loading, &${Ze}-disabled`]:{cursor:"not-allowed",opacity:Ie.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ze}-rtl`]:{direction:"rtl"}})}};var Ee=(0,be.Z)("Switch",Ie=>{const Ze=(0,Me.TS)(Ie,{switchDuration:Ie.motionDurationMid,switchColor:Ie.colorPrimary,switchDisabledOpacity:Ie.opacityLoading,switchLoadingIconSize:Ie.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Ie.opacityLoading})`,switchHandleActiveInset:"-30%"});return[De(Ze),Te(Ze),Ne(Ze),Ce(Ze),Le(Ze)]},Ie=>{const{fontSize:Ze,lineHeight:Qe,controlHeight:tt,colorWhite:it}=Ie,ht=Ze*Qe,Ge=tt/2,Xe=2,ct=ht-Xe*2,pt=Ge-Xe*2;return{trackHeight:ht,trackHeightSM:Ge,trackMinWidth:ct*2+Xe*4,trackMinWidthSM:pt*2+Xe*2,trackPadding:Xe,handleBg:it,handleSize:ct,handleSizeSM:pt,handleShadow:`0 2px 4px 0 ${new Se.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:ct/2,innerMaxMargin:ct+Xe+Xe*2,innerMinMarginSM:pt/2,innerMaxMarginSM:pt+Xe+Xe*2}}),Pe=function(Ie,Ze){var Qe={};for(var tt in Ie)Object.prototype.hasOwnProperty.call(Ie,tt)&&Ze.indexOf(tt)<0&&(Qe[tt]=Ie[tt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,tt=Object.getOwnPropertySymbols(Ie);it<tt.length;it++)Ze.indexOf(tt[it])<0&&Object.prototype.propertyIsEnumerable.call(Ie,tt[it])&&(Qe[tt[it]]=Ie[tt[it]]);return Qe};const Be=ie.forwardRef((Ie,Ze)=>{const{prefixCls:Qe,size:tt,disabled:it,loading:ht,className:Ge,rootClassName:Xe,style:ct}=Ie,pt=Pe(Ie,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:ut,direction:rt,switch:qe}=ie.useContext(de.E_),nt=ie.useContext(he.Z),xt=(it!=null?it:nt)||ht,yt=ut("switch",Qe),Rt=ie.createElement("div",{className:`${yt}-handle`},ht&&ie.createElement(Ye.Z,{className:`${yt}-loading-icon`})),[Ot,lt]=Ee(yt),Ue=(0,xe.Z)(tt),$e=x()(qe==null?void 0:qe.className,{[`${yt}-small`]:Ue==="small",[`${yt}-loading`]:ht,[`${yt}-rtl`]:rt==="rtl"},Ge,Xe,lt),le=Object.assign(Object.assign({},qe==null?void 0:qe.style),ct);return Ot(ie.createElement(ue.Z,{component:"Switch"},ie.createElement(ae,Object.assign({},pt,{prefixCls:yt,className:$e,style:le,disabled:xt,ref:Ze,loadingIcon:Rt}))))});Be.__ANT_SWITCH=!0;var Ve=Be},1710:function(gr,Wt,ke){"use strict";ke.d(Wt,{default:function(){return qu}});var Ye={},vt="rc-table-internal-hook",x=ke(42978),Ae=ke(6089),me=ke(34280),re=ke(13697),z=ke(59301),ie=ke(4676);function oe(_t){var At=z.createContext(void 0),Kt=function(sr){var er=sr.value,Cr=sr.children,Sr=z.useRef(er);Sr.current=er;var xr=z.useState(function(){return{getValue:function(){return Sr.current},listeners:new Set}}),Rr=(0,x.Z)(xr,1),Gr=Rr[0];return(0,me.Z)(function(){(0,ie.unstable_batchedUpdates)(function(){Gr.listeners.forEach(function(Fr){Fr(er)})})},[er]),z.createElement(At.Provider,{value:Gr},Cr)};return{Context:At,Provider:Kt,defaultValue:_t}}function se(_t,At){var Kt=(0,Ae.Z)(typeof At=="function"?At:function(Fr){if(At===void 0)return Fr;if(!Array.isArray(At))return Fr[At];var dn={};return At.forEach(function(ln){dn[ln]=Fr[ln]}),dn}),Yt=z.useContext(_t==null?void 0:_t.Context),sr=Yt||{},er=sr.listeners,Cr=sr.getValue,Sr=z.useRef();Sr.current=Kt(Yt?Cr():_t==null?void 0:_t.defaultValue);var xr=z.useState({}),Rr=(0,x.Z)(xr,2),Gr=Rr[1];return(0,me.Z)(function(){if(!Yt)return;function Fr(dn){var ln=Kt(dn);(0,re.Z)(Sr.current,ln,!0)||Gr({})}return er.add(Fr),function(){er.delete(Fr)}},[Yt]),Sr.current}var pe=ke(54476),ne=ke(8654);function ae(){var _t=z.createContext(null);function At(){return z.useContext(_t)}function Kt(sr,er){var Cr=(0,ne.Yr)(sr),Sr=function(Rr,Gr){var Fr=Cr?{ref:Gr}:{},dn=z.useRef(0),ln=z.useRef(Rr),un=At();return un!==null?z.createElement(sr,(0,pe.Z)({},Rr,Fr)):((!er||er(ln.current,Rr))&&(dn.current+=1),ln.current=Rr,z.createElement(_t.Provider,{value:dn.current},z.createElement(sr,(0,pe.Z)({},Rr,Fr))))};return Cr?z.forwardRef(Sr):Sr}function Yt(sr,er){var Cr=(0,ne.Yr)(sr),Sr=function(Rr,Gr){var Fr=Cr?{ref:Gr}:{};return At(),z.createElement(sr,(0,pe.Z)({},Rr,Fr))};return Cr?z.memo(z.forwardRef(Sr),er):z.memo(Sr,er)}return{makeImmutable:Kt,responseImmutable:Yt,useImmutableMark:At}}var ue=ae(),de=ue.makeImmutable,he=ue.responseImmutable,xe=ue.useImmutableMark,Se=ae(),we=Se.makeImmutable,be=Se.responseImmutable,Me=Se.useImmutableMark,Le=oe(),Ce=Le;function Ne(_t,At){var Kt=z.useRef(0);Kt.current+=1;var Yt=z.useRef(_t),sr=[];Object.keys(_t||{}).map(function(Cr){var Sr;(_t==null?void 0:_t[Cr])!==((Sr=Yt.current)===null||Sr===void 0?void 0:Sr[Cr])&&sr.push(Cr)}),Yt.current=_t;var er=z.useRef([]);return sr.length&&(er.current=sr),z.useDebugValue(Kt.current),z.useDebugValue(er.current.join(", ")),At&&console.log("".concat(At,":"),Kt.current,er.current),Kt.current}var Te=null,De=z.memo(function(){var _t=Ne();return z.createElement("h1",null,"Render Times: ",_t)});De.displayName="RenderBlock";var Ee=ke(76190),Pe=ke(33885),Be=ke(20068),Ve=ke(92310),Ie=ke.n(Ve),Ze=ke(80547),Qe=ke(97938),tt=ke(48736),it=z.createContext({renderWithProps:!1}),ht=it,Ge="RC_TABLE_KEY";function Xe(_t){return _t==null?[]:Array.isArray(_t)?_t:[_t]}function ct(_t){var At=[],Kt={};return _t.forEach(function(Yt){for(var sr=Yt||{},er=sr.key,Cr=sr.dataIndex,Sr=er||Xe(Cr).join("-")||Ge;Kt[Sr];)Sr="".concat(Sr,"_next");Kt[Sr]=!0,At.push(Sr)}),At}function pt(_t){return _t!=null}function ut(_t){return _t&&(0,Ee.Z)(_t)==="object"&&!Array.isArray(_t)&&!z.isValidElement(_t)}function rt(_t,At,Kt,Yt,sr,er){var Cr=z.useContext(ht),Sr=Me(),xr=(0,Ze.Z)(function(){if(pt(Yt))return[Yt];var Rr=At==null||At===""?[]:Array.isArray(At)?At:[At],Gr=(0,Qe.Z)(_t,Rr),Fr=Gr,dn=void 0;if(sr){var ln=sr(Gr,_t,Kt);ut(ln)?(Fr=ln.children,dn=ln.props,Cr.renderWithProps=!0):Fr=ln}return[Fr,dn]},[Sr,_t,Yt,At,sr,Kt],function(Rr,Gr){if(er){var Fr=(0,x.Z)(Rr,2),dn=Fr[1],ln=(0,x.Z)(Gr,2),un=ln[1];return er(un,dn)}return Cr.renderWithProps?!0:!(0,re.Z)(Rr,Gr,!0)});return xr}function qe(_t,At,Kt,Yt){var sr=_t+At-1;return _t<=Yt&&sr>=Kt}function nt(_t,At){return se(Ce,function(Kt){var Yt=qe(_t,At||1,Kt.hoverStartRow,Kt.hoverEndRow);return[Yt,Kt.onHover]})}var xt=function(At){var Kt=At.ellipsis,Yt=At.rowType,sr=At.children,er,Cr=Kt===!0?{showTitle:!0}:Kt;return Cr&&(Cr.showTitle||Yt==="header")&&(typeof sr=="string"||typeof sr=="number"?er=sr.toString():z.isValidElement(sr)&&typeof sr.props.children=="string"&&(er=sr.props.children)),er};function yt(_t){var At,Kt,Yt,sr,er,Cr,Sr,xr,Rr=_t.component,Gr=_t.children,Fr=_t.ellipsis,dn=_t.scope,ln=_t.prefixCls,un=_t.className,Gn=_t.align,Bn=_t.record,Xn=_t.render,jn=_t.dataIndex,ii=_t.renderIndex,Si=_t.shouldCellUpdate,_i=_t.index,pi=_t.rowType,$i=_t.colSpan,Yi=_t.rowSpan,si=_t.fixLeft,yi=_t.fixRight,ci=_t.firstFixLeft,In=_t.lastFixLeft,di=_t.firstFixRight,Ni=_t.lastFixRight,aa=_t.appendNode,Ii=_t.additionalProps,Qn=Ii===void 0?{}:Ii,Zi=_t.isSticky,Ji="".concat(ln,"-cell"),_a=se(Ce,["supportSticky","allColumnsFixedLeft"]),wa=_a.supportSticky,no=_a.allColumnsFixedLeft,Ua=rt(Bn,jn,ii,Gr,Xn,Si),Gi=(0,x.Z)(Ua,2),go=Gi[0],ma=Gi[1],Qa={},Va=typeof si=="number"&&wa,Mo=typeof yi=="number"&&wa;Va&&(Qa.position="sticky",Qa.left=si),Mo&&(Qa.position="sticky",Qa.right=yi);var Pi=(At=(Kt=(Yt=ma==null?void 0:ma.colSpan)!==null&&Yt!==void 0?Yt:Qn.colSpan)!==null&&Kt!==void 0?Kt:$i)!==null&&At!==void 0?At:1,ki=(sr=(er=(Cr=ma==null?void 0:ma.rowSpan)!==null&&Cr!==void 0?Cr:Qn.rowSpan)!==null&&er!==void 0?er:Yi)!==null&&sr!==void 0?sr:1,Ti=nt(_i,ki),xi=(0,x.Z)(Ti,2),Sa=xi[0],Ci=xi[1],Ui=function(xo){var jo;Bn&&Ci(_i,_i+ki-1),Qn==null||(jo=Qn.onMouseEnter)===null||jo===void 0||jo.call(Qn,xo)},ga=function(xo){var jo;Bn&&Ci(-1,-1),Qn==null||(jo=Qn.onMouseLeave)===null||jo===void 0||jo.call(Qn,xo)};if(Pi===0||ki===0)return null;var fa=(Sr=Qn.title)!==null&&Sr!==void 0?Sr:xt({rowType:pi,ellipsis:Fr,children:go}),Vo=Ie()(Ji,un,(xr={},(0,Be.Z)(xr,"".concat(Ji,"-fix-left"),Va&&wa),(0,Be.Z)(xr,"".concat(Ji,"-fix-left-first"),ci&&wa),(0,Be.Z)(xr,"".concat(Ji,"-fix-left-last"),In&&wa),(0,Be.Z)(xr,"".concat(Ji,"-fix-left-all"),In&&no&&wa),(0,Be.Z)(xr,"".concat(Ji,"-fix-right"),Mo&&wa),(0,Be.Z)(xr,"".concat(Ji,"-fix-right-first"),di&&wa),(0,Be.Z)(xr,"".concat(Ji,"-fix-right-last"),Ni&&wa),(0,Be.Z)(xr,"".concat(Ji,"-ellipsis"),Fr),(0,Be.Z)(xr,"".concat(Ji,"-with-append"),aa),(0,Be.Z)(xr,"".concat(Ji,"-fix-sticky"),(Va||Mo)&&Zi&&wa),(0,Be.Z)(xr,"".concat(Ji,"-row-hover"),!ma&&Sa),xr),Qn.className,ma==null?void 0:ma.className),_o={};Gn&&(_o.textAlign=Gn);var Ns=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},Qa),Qn.style),_o),ma==null?void 0:ma.style),vo=go;return(0,Ee.Z)(vo)==="object"&&!Array.isArray(vo)&&!z.isValidElement(vo)&&(vo=null),Fr&&(In||di)&&(vo=z.createElement("span",{className:"".concat(Ji,"-content")},vo)),z.createElement(Rr,(0,pe.Z)({},ma,Qn,{className:Vo,style:Ns,title:fa,scope:dn,onMouseEnter:Ui,onMouseLeave:ga,colSpan:Pi!==1?Pi:null,rowSpan:ki!==1?ki:null}),aa,vo)}var Rt=z.memo(yt);function Ot(_t,At,Kt,Yt,sr,er){var Cr=Kt[_t]||{},Sr=Kt[At]||{},xr,Rr;Cr.fixed==="left"?xr=Yt.left[sr==="rtl"?At:_t]:Sr.fixed==="right"&&(Rr=Yt.right[sr==="rtl"?_t:At]);var Gr=!1,Fr=!1,dn=!1,ln=!1,un=Kt[At+1],Gn=Kt[_t-1],Bn=!(er!=null&&er.children);if(sr==="rtl"){if(xr!==void 0){var Xn=Gn&&Gn.fixed==="left";ln=!Xn&&Bn}else if(Rr!==void 0){var jn=un&&un.fixed==="right";dn=!jn&&Bn}}else if(xr!==void 0){var ii=un&&un.fixed==="left";Gr=!ii&&Bn}else if(Rr!==void 0){var Si=Gn&&Gn.fixed==="right";Fr=!Si&&Bn}return{fixLeft:xr,fixRight:Rr,lastFixLeft:Gr,firstFixRight:Fr,lastFixRight:dn,firstFixLeft:ln,isSticky:Yt.isSticky}}var lt=z.createContext({}),Ue=lt;function $e(_t){var At=_t.className,Kt=_t.index,Yt=_t.children,sr=_t.colSpan,er=sr===void 0?1:sr,Cr=_t.rowSpan,Sr=_t.align,xr=se(Ce,["prefixCls","direction"]),Rr=xr.prefixCls,Gr=xr.direction,Fr=z.useContext(Ue),dn=Fr.scrollColumnIndex,ln=Fr.stickyOffsets,un=Fr.flattenColumns,Gn=Fr.columns,Bn=Kt+er-1,Xn=Bn+1===dn?er+1:er,jn=Ot(Kt,Kt+Xn-1,un,ln,Gr,Gn==null?void 0:Gn[Kt]);return z.createElement(Rt,(0,pe.Z)({className:At,index:Kt,component:"td",prefixCls:Rr,record:null,dataIndex:null,align:Sr,colSpan:Xn,rowSpan:Cr,render:function(){return Yt}},jn))}var le=ke(75931),fe=["children"];function Fe(_t){var At=_t.children,Kt=(0,le.Z)(_t,fe);return z.createElement("tr",Kt,At)}function He(_t){var At=_t.children;return At}He.Row=Fe,He.Cell=$e;var ye=He;function Re(_t){var At=_t.children,Kt=_t.stickyOffsets,Yt=_t.flattenColumns,sr=_t.columns,er=se(Ce,"prefixCls"),Cr=Yt.length-1,Sr=Yt[Cr],xr=z.useMemo(function(){return{stickyOffsets:Kt,flattenColumns:Yt,scrollColumnIndex:Sr!=null&&Sr.scrollbar?Cr:null,columns:sr}},[Sr,Yt,Cr,Kt,sr]);return z.createElement(Ue.Provider,{value:xr},z.createElement("tfoot",{className:"".concat(er,"-summary")},At))}var ze=be(Re),Ke=ye,We=ke(70425),st=ke(29301),bt=ke(29194),at=ke(24514),kt=ke(75152),Ht=ke(26112);function Ct(_t,At,Kt,Yt,sr,er,Cr){_t.push({record:At,indent:Kt,index:Cr});var Sr=er(At),xr=sr==null?void 0:sr.has(Sr);if(At&&Array.isArray(At[Yt])&&xr)for(var Rr=0;Rr<At[Yt].length;Rr+=1)Ct(_t,At[Yt][Rr],Kt+1,Yt,sr,er,Rr)}function $t(_t,At,Kt,Yt){var sr=z.useMemo(function(){if(Kt!=null&&Kt.size){for(var er=[],Cr=0;Cr<(_t==null?void 0:_t.length);Cr+=1){var Sr=_t[Cr];Ct(er,Sr,0,At,Kt,Yt,Cr)}return er}return _t==null?void 0:_t.map(function(xr,Rr){return{record:xr,indent:0,index:Rr}})},[_t,At,Kt,Yt]);return sr}function Bt(_t){var At=_t.prefixCls,Kt=_t.children,Yt=_t.component,sr=_t.cellComponent,er=_t.className,Cr=_t.expanded,Sr=_t.colSpan,xr=_t.isEmpty,Rr=se(Ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Gr=Rr.scrollbarSize,Fr=Rr.fixHeader,dn=Rr.fixColumn,ln=Rr.componentWidth,un=Rr.horizonScroll,Gn=Kt;return(xr?un&&ln:dn)&&(Gn=z.createElement("div",{style:{width:ln-(Fr?Gr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(At,"-expanded-row-fixed")},Gn)),z.createElement(Yt,{className:er,style:{display:Cr?null:"none"}},z.createElement(Rt,{component:sr,prefixCls:At,colSpan:Sr},Gn))}var St=Bt;function ft(_t,At,Kt,Yt){var sr=se(Ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),er=sr.flattenColumns,Cr=sr.expandableType,Sr=sr.expandedKeys,xr=sr.childrenColumnName,Rr=sr.onTriggerExpand,Gr=sr.rowExpandable,Fr=sr.onRow,dn=sr.expandRowByClick,ln=sr.rowClassName,un=Cr==="nest",Gn=Cr==="row"&&(!Gr||Gr(_t)),Bn=Gn||un,Xn=Sr&&Sr.has(At),jn=xr&&_t&&_t[xr],ii=(0,We.useEvent)(Rr),Si=Fr==null?void 0:Fr(_t,Kt),_i=Si==null?void 0:Si.onClick,pi=function(yi){dn&&Bn&&Rr(_t,yi);for(var ci=arguments.length,In=new Array(ci>1?ci-1:0),di=1;di<ci;di++)In[di-1]=arguments[di];_i==null||_i.apply(void 0,[yi].concat(In))},$i;typeof ln=="string"?$i=ln:typeof ln=="function"&&($i=ln(_t,Kt,Yt));var Yi=ct(er);return(0,Pe.Z)((0,Pe.Z)({},sr),{},{columnsKey:Yi,nestExpandable:un,expanded:Xn,hasNestChildren:jn,record:_t,onTriggerExpand:ii,rowSupportExpand:Gn,expandable:Bn,rowProps:(0,Pe.Z)((0,Pe.Z)({},Si),{},{className:Ie()($i,Si==null?void 0:Si.className),onClick:pi})})}function dt(_t,At,Kt,Yt,sr){var er=_t.record,Cr=_t.prefixCls,Sr=_t.columnsKey,xr=_t.fixedInfoList,Rr=_t.expandIconColumnIndex,Gr=_t.nestExpandable,Fr=_t.indentSize,dn=_t.expandIcon,ln=_t.expanded,un=_t.hasNestChildren,Gn=_t.onTriggerExpand,Bn=Sr[Kt],Xn=xr[Kt],jn;Kt===(Rr||0)&&Gr&&(jn=z.createElement(z.Fragment,null,z.createElement("span",{style:{paddingLeft:"".concat(Fr*Yt,"px")},className:"".concat(Cr,"-row-indent indent-level-").concat(Yt)}),dn({prefixCls:Cr,expanded:ln,expandable:un,record:er,onExpand:Gn})));var ii;return At.onCell&&(ii=At.onCell(er,sr)),{key:Bn,fixedInfo:Xn,appendCellNode:jn,additionalCellProps:ii||{}}}function Ft(_t){var At=_t.className,Kt=_t.style,Yt=_t.record,sr=_t.index,er=_t.renderIndex,Cr=_t.rowKey,Sr=_t.indent,xr=Sr===void 0?0:Sr,Rr=_t.rowComponent,Gr=_t.cellComponent,Fr=_t.scopeCellComponent,dn=ft(Yt,Cr,sr,xr),ln=dn.prefixCls,un=dn.flattenColumns,Gn=dn.expandedRowClassName,Bn=dn.expandedRowRender,Xn=dn.rowProps,jn=dn.expanded,ii=dn.rowSupportExpand,Si=z.useState(!1),_i=(0,x.Z)(Si,2),pi=_i[0],$i=_i[1];z.useEffect(function(){jn&&$i(!0)},[jn]);var Yi=z.createElement(Rr,(0,pe.Z)({},Xn,{"data-row-key":Cr,className:Ie()(At,"".concat(ln,"-row"),"".concat(ln,"-row-level-").concat(xr),Xn==null?void 0:Xn.className),style:(0,Pe.Z)((0,Pe.Z)({},Kt),Xn==null?void 0:Xn.style)}),un.map(function(In,di){var Ni=In.render,aa=In.dataIndex,Ii=In.className,Qn=dt(dn,In,di,xr,sr),Zi=Qn.key,Ji=Qn.fixedInfo,_a=Qn.appendCellNode,wa=Qn.additionalCellProps;return z.createElement(Rt,(0,pe.Z)({className:Ii,ellipsis:In.ellipsis,align:In.align,scope:In.rowScope,component:In.rowScope?Fr:Gr,prefixCls:ln,key:Zi,record:Yt,index:sr,renderIndex:er,dataIndex:aa,render:Ni,shouldCellUpdate:In.shouldCellUpdate},Ji,{appendNode:_a,additionalProps:wa}))})),si;if(ii&&(pi||jn)){var yi=Bn(Yt,sr,xr+1,jn),ci=Gn&&Gn(Yt,sr,xr);si=z.createElement(St,{expanded:jn,className:Ie()("".concat(ln,"-expanded-row"),"".concat(ln,"-expanded-row-level-").concat(xr+1),ci),prefixCls:ln,component:Rr,cellComponent:Gr,colSpan:un.length,isEmpty:!1},yi)}return z.createElement(z.Fragment,null,Yi,si)}Ft.displayName="BodyRow";var zt=be(Ft);function Zt(_t){var At=_t.columnKey,Kt=_t.onColumnResize,Yt=z.useRef();return z.useEffect(function(){Yt.current&&Kt(At,Yt.current.offsetWidth)},[]),z.createElement(st.Z,{data:At},z.createElement("td",{ref:Yt,style:{padding:0,border:0,height:0}},z.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function tr(_t){var At=_t.prefixCls,Kt=_t.columnsKey,Yt=_t.onColumnResize;return z.createElement("tr",{"aria-hidden":"true",className:"".concat(At,"-measure-row"),style:{height:0,fontSize:0}},z.createElement(st.Z.Collection,{onBatchResize:function(er){er.forEach(function(Cr){var Sr=Cr.data,xr=Cr.size;Yt(Sr,xr.offsetWidth)})}},Kt.map(function(sr){return z.createElement(Zt,{key:sr,columnKey:sr,onColumnResize:Yt})})))}function mr(_t){var At=_t.data,Kt=_t.measureColumnWidth,Yt=se(Ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),sr=Yt.prefixCls,er=Yt.getComponent,Cr=Yt.onColumnResize,Sr=Yt.flattenColumns,xr=Yt.getRowKey,Rr=Yt.expandedKeys,Gr=Yt.childrenColumnName,Fr=Yt.emptyNode,dn=$t(At,Gr,Rr,xr),ln=z.useRef({renderWithProps:!1}),un=er(["body","wrapper"],"tbody"),Gn=er(["body","row"],"tr"),Bn=er(["body","cell"],"td"),Xn=er(["body","cell"],"th"),jn;At.length?jn=dn.map(function(Si,_i){var pi=Si.record,$i=Si.indent,Yi=Si.index,si=xr(pi,_i);return z.createElement(zt,{key:si,rowKey:si,record:pi,index:_i,renderIndex:Yi,rowComponent:Gn,cellComponent:Bn,scopeCellComponent:Xn,getRowKey:xr,indent:$i})}):jn=z.createElement(St,{expanded:!0,className:"".concat(sr,"-placeholder"),prefixCls:sr,component:Gn,cellComponent:Bn,colSpan:Sr.length,isEmpty:!0},Fr);var ii=ct(Sr);return z.createElement(ht.Provider,{value:ln.current},z.createElement(un,{className:"".concat(sr,"-tbody")},Kt&&z.createElement(tr,{prefixCls:sr,columnsKey:ii,onColumnResize:Cr}),jn))}mr.displayName="Body";var Er=be(mr),zr=["expandable"],jr="RC_TABLE_INTERNAL_COL_DEFINE";function Tr(_t){var At=_t.expandable,Kt=(0,le.Z)(_t,zr),Yt;return"expandable"in _t?Yt=(0,Pe.Z)((0,Pe.Z)({},Kt),At):Yt=Kt,Yt.showExpandColumn===!1&&(Yt.expandIconColumnIndex=-1),Yt}var Vr=["columnType"];function sn(_t){for(var At=_t.colWidths,Kt=_t.columns,Yt=_t.columCount,sr=[],er=Yt||Kt.length,Cr=!1,Sr=er-1;Sr>=0;Sr-=1){var xr=At[Sr],Rr=Kt&&Kt[Sr],Gr=Rr&&Rr[jr];if(xr||Gr||Cr){var Fr=Gr||{},dn=Fr.columnType,ln=(0,le.Z)(Fr,Vr);sr.unshift(z.createElement("col",(0,pe.Z)({key:Sr,style:{width:xr}},ln))),Cr=!0}}return z.createElement("colgroup",null,sr)}var vn=sn,en=ke(94480),hn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function _n(_t,At){return(0,z.useMemo)(function(){for(var Kt=[],Yt=0;Yt<At;Yt+=1){var sr=_t[Yt];if(sr!==void 0)Kt[Yt]=sr;else return null}return Kt},[_t.join("_"),At])}var tn=z.forwardRef(function(_t,At){var Kt=_t.className,Yt=_t.noData,sr=_t.columns,er=_t.flattenColumns,Cr=_t.colWidths,Sr=_t.columCount,xr=_t.stickyOffsets,Rr=_t.direction,Gr=_t.fixHeader,Fr=_t.stickyTopOffset,dn=_t.stickyBottomOffset,ln=_t.stickyClassName,un=_t.onScroll,Gn=_t.maxContentScroll,Bn=_t.children,Xn=(0,le.Z)(_t,hn),jn=se(Ce,["prefixCls","scrollbarSize","isSticky"]),ii=jn.prefixCls,Si=jn.scrollbarSize,_i=jn.isSticky,pi=_i&&!Gr?0:Si,$i=z.useRef(null),Yi=z.useCallback(function(Ii){(0,ne.mH)(At,Ii),(0,ne.mH)($i,Ii)},[]);z.useEffect(function(){var Ii;function Qn(Zi){var Ji=Zi,_a=Ji.currentTarget,wa=Ji.deltaX;wa&&(un({currentTarget:_a,scrollLeft:_a.scrollLeft+wa}),Zi.preventDefault())}return(Ii=$i.current)===null||Ii===void 0||Ii.addEventListener("wheel",Qn),function(){var Zi;(Zi=$i.current)===null||Zi===void 0||Zi.removeEventListener("wheel",Qn)}},[]);var si=z.useMemo(function(){return er.every(function(Ii){return Ii.width})},[er]),yi=er[er.length-1],ci={fixed:yi?yi.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ii,"-cell-scrollbar")}}},In=(0,z.useMemo)(function(){return pi?[].concat((0,en.Z)(sr),[ci]):sr},[pi,sr]),di=(0,z.useMemo)(function(){return pi?[].concat((0,en.Z)(er),[ci]):er},[pi,er]),Ni=(0,z.useMemo)(function(){var Ii=xr.right,Qn=xr.left;return(0,Pe.Z)((0,Pe.Z)({},xr),{},{left:Rr==="rtl"?[].concat((0,en.Z)(Qn.map(function(Zi){return Zi+pi})),[0]):Qn,right:Rr==="rtl"?Ii:[].concat((0,en.Z)(Ii.map(function(Zi){return Zi+pi})),[0]),isSticky:_i})},[pi,xr,_i]),aa=_n(Cr,Sr);return z.createElement("div",{style:(0,Pe.Z)({overflow:"hidden"},_i?{top:Fr,bottom:dn}:{}),ref:Yi,className:Ie()(Kt,(0,Be.Z)({},ln,!!ln))},z.createElement("table",{style:{tableLayout:"fixed",visibility:Yt||aa?null:"hidden"}},(!Yt||!Gn||si)&&z.createElement(vn,{colWidths:aa?[].concat((0,en.Z)(aa),[pi]):[],columCount:Sr+1,columns:di}),Bn((0,Pe.Z)((0,Pe.Z)({},Xn),{},{stickyOffsets:Ni,columns:In,flattenColumns:di}))))});tn.displayName="FixedHolder";var Ln=z.memo(tn);function Un(_t){var At=_t.cells,Kt=_t.stickyOffsets,Yt=_t.flattenColumns,sr=_t.rowComponent,er=_t.cellComponent,Cr=_t.tdCellComponent,Sr=_t.onHeaderRow,xr=_t.index,Rr=se(Ce,["prefixCls","direction"]),Gr=Rr.prefixCls,Fr=Rr.direction,dn;Sr&&(dn=Sr(At.map(function(un){return un.column}),xr));var ln=ct(At.map(function(un){return un.column}));return z.createElement(sr,dn,At.map(function(un,Gn){var Bn=un.column,Xn=Ot(un.colStart,un.colEnd,Yt,Kt,Fr,Bn),jn;return Bn&&Bn.onHeaderCell&&(jn=un.column.onHeaderCell(Bn)),z.createElement(Rt,(0,pe.Z)({},un,{scope:Bn.title?un.colSpan>1?"colgroup":"col":null,ellipsis:Bn.ellipsis,align:Bn.align,component:Bn.title?er:Cr,prefixCls:Gr,key:ln[Gn]},Xn,{additionalProps:jn,rowType:"header"}))}))}Un.displayName="HeaderRow";var Vn=Un;function $r(_t){var At=[];function Kt(Cr,Sr){var xr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;At[xr]=At[xr]||[];var Rr=Sr,Gr=Cr.filter(Boolean).map(function(Fr){var dn={key:Fr.key,className:Fr.className||"",children:Fr.title,column:Fr,colStart:Rr},ln=1,un=Fr.children;return un&&un.length>0&&(ln=Kt(un,Rr,xr+1).reduce(function(Gn,Bn){return Gn+Bn},0),dn.hasSubColumns=!0),"colSpan"in Fr&&(ln=Fr.colSpan),"rowSpan"in Fr&&(dn.rowSpan=Fr.rowSpan),dn.colSpan=ln,dn.colEnd=dn.colStart+ln-1,At[xr].push(dn),Rr+=ln,ln});return Gr}Kt(_t,0);for(var Yt=At.length,sr=function(Sr){At[Sr].forEach(function(xr){!("rowSpan"in xr)&&!xr.hasSubColumns&&(xr.rowSpan=Yt-Sr)})},er=0;er<Yt;er+=1)sr(er);return At}function Yr(_t){var At=_t.stickyOffsets,Kt=_t.columns,Yt=_t.flattenColumns,sr=_t.onHeaderRow,er=se(Ce,["prefixCls","getComponent"]),Cr=er.prefixCls,Sr=er.getComponent,xr=z.useMemo(function(){return $r(Kt)},[Kt]),Rr=Sr(["header","wrapper"],"thead"),Gr=Sr(["header","row"],"tr"),Fr=Sr(["header","cell"],"th"),dn=Sr(["header","cell"],"td");return z.createElement(Rr,{className:"".concat(Cr,"-thead")},xr.map(function(ln,un){var Gn=z.createElement(Vn,{key:un,flattenColumns:Yt,cells:ln,stickyOffsets:At,rowComponent:Gr,cellComponent:Fr,tdCellComponent:dn,onHeaderRow:sr,index:un});return Gn}))}var Lr=be(Yr),cn=ke(11592);function Pr(_t){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof At=="number"?At:At.endsWith("%")?_t*parseFloat(At)/100:null}function Wr(_t,At){return z.useMemo(function(){if(At&&At>0){var Kt=0,Yt=0;_t.forEach(function(Rr){var Gr=Pr(At,Rr.width);Gr?Kt+=Gr:Yt+=1});var sr=At-Kt,er=Yt,Cr=sr/Yt,Sr=0,xr=_t.map(function(Rr){var Gr=(0,Pe.Z)({},Rr),Fr=Pr(At,Gr.width);if(Fr)Gr.width=Fr;else{var dn=Math.floor(Cr);Gr.width=er===1?sr:dn,sr-=dn,er-=1}return Sr+=Gr.width,Gr});return[xr,Sr]}return[_t,At]},[_t,At])}var mn=["children"],Gt=["fixed"];function Et(_t){return(0,cn.Z)(_t).filter(function(At){return z.isValidElement(At)}).map(function(At){var Kt=At.key,Yt=At.props,sr=Yt.children,er=(0,le.Z)(Yt,mn),Cr=(0,Pe.Z)({key:Kt},er);return sr&&(Cr.children=Et(sr)),Cr})}function It(_t){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return _t.filter(function(Kt){return Kt&&(0,Ee.Z)(Kt)==="object"}).reduce(function(Kt,Yt,sr){var er=Yt.fixed,Cr=er===!0?"left":er,Sr="".concat(At,"-").concat(sr),xr=Yt.children;return xr&&xr.length>0?[].concat((0,en.Z)(Kt),(0,en.Z)(It(xr,Sr).map(function(Rr){return(0,Pe.Z)({fixed:Cr},Rr)}))):[].concat((0,en.Z)(Kt),[(0,Pe.Z)((0,Pe.Z)({key:Sr},Yt),{},{fixed:Cr})])},[])}function Dt(_t){for(var At=!0,Kt=0;Kt<_t.length;Kt+=1){var Yt=_t[Kt];if(At&&Yt.fixed!=="left")At=!1;else if(!At&&Yt.fixed==="left"){warning(!1,"Index ".concat(Kt-1," of `columns` missing `fixed='left'` prop."));break}}for(var sr=!0,er=_t.length-1;er>=0;er-=1){var Cr=_t[er];if(sr&&Cr.fixed!=="right")sr=!1;else if(!sr&&Cr.fixed==="right"){warning(!1,"Index ".concat(er+1," of `columns` missing `fixed='right'` prop."));break}}}function Lt(_t){return _t.map(function(At){var Kt=At.fixed,Yt=(0,le.Z)(At,Gt),sr=Kt;return Kt==="left"?sr="right":Kt==="right"&&(sr="left"),(0,Pe.Z)({fixed:sr},Yt)})}function Ut(_t,At){var Kt=_t.prefixCls,Yt=_t.columns,sr=_t.children,er=_t.expandable,Cr=_t.expandedKeys,Sr=_t.columnTitle,xr=_t.getRowKey,Rr=_t.onTriggerExpand,Gr=_t.expandIcon,Fr=_t.rowExpandable,dn=_t.expandIconColumnIndex,ln=_t.direction,un=_t.expandRowByClick,Gn=_t.columnWidth,Bn=_t.fixed,Xn=_t.scrollWidth,jn=z.useMemo(function(){return Yt||Et(sr)},[Yt,sr]),ii=z.useMemo(function(){if(er){var yi,ci=jn.slice();if(!ci.includes(Ye)){var In=dn||0;In>=0&&ci.splice(In,0,Ye)}var di=ci.indexOf(Ye);ci=ci.filter(function(Qn,Zi){return Qn!==Ye||Zi===di});var Ni=jn[di],aa;(Bn==="left"||Bn)&&!dn?aa="left":(Bn==="right"||Bn)&&dn===jn.length?aa="right":aa=Ni?Ni.fixed:null;var Ii=(yi={},(0,Be.Z)(yi,jr,{className:"".concat(Kt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Be.Z)(yi,"title",Sr),(0,Be.Z)(yi,"fixed",aa),(0,Be.Z)(yi,"className","".concat(Kt,"-row-expand-icon-cell")),(0,Be.Z)(yi,"width",Gn),(0,Be.Z)(yi,"render",function(Zi,Ji,_a){var wa=xr(Ji,_a),no=Cr.has(wa),Ua=Fr?Fr(Ji):!0,Gi=Gr({prefixCls:Kt,expanded:no,expandable:Ua,record:Ji,onExpand:Rr});return un?z.createElement("span",{onClick:function(ma){return ma.stopPropagation()}},Gi):Gi}),yi);return ci.map(function(Qn){return Qn===Ye?Ii:Qn})}return jn.filter(function(Qn){return Qn!==Ye})},[er,jn,xr,Cr,Gr,ln]),Si=z.useMemo(function(){var yi=ii;return At&&(yi=At(yi)),yi.length||(yi=[{render:function(){return null}}]),yi},[At,ii,ln]),_i=z.useMemo(function(){return ln==="rtl"?Lt(It(Si)):It(Si)},[Si,ln,Xn]),pi=Wr(_i,Xn),$i=(0,x.Z)(pi,2),Yi=$i[0],si=$i[1];return[Si,Yi,si]}var Qt=Ut;function yr(_t){var At,Kt=_t.prefixCls,Yt=_t.record,sr=_t.onExpand,er=_t.expanded,Cr=_t.expandable,Sr="".concat(Kt,"-row-expand-icon");if(!Cr)return z.createElement("span",{className:Ie()(Sr,"".concat(Kt,"-row-spaced"))});var xr=function(Gr){sr(Yt,Gr),Gr.stopPropagation()};return z.createElement("span",{className:Ie()(Sr,(At={},(0,Be.Z)(At,"".concat(Kt,"-row-expanded"),er),(0,Be.Z)(At,"".concat(Kt,"-row-collapsed"),!er),At)),onClick:xr})}function cr(_t,At,Kt){var Yt=[];function sr(er){(er||[]).forEach(function(Cr,Sr){Yt.push(At(Cr,Sr)),sr(Cr[Kt])})}return sr(_t),Yt}function vr(_t,At,Kt){var Yt=Tr(_t),sr=Yt.expandIcon,er=Yt.expandedRowKeys,Cr=Yt.defaultExpandedRowKeys,Sr=Yt.defaultExpandAllRows,xr=Yt.expandedRowRender,Rr=Yt.onExpand,Gr=Yt.onExpandedRowsChange,Fr=Yt.childrenColumnName,dn=sr||yr,ln=Fr||"children",un=z.useMemo(function(){return xr?"row":_t.expandable&&_t.internalHooks===vt&&_t.expandable.__PARENT_RENDER_ICON__||At.some(function(_i){return _i&&(0,Ee.Z)(_i)==="object"&&_i[ln]})?"nest":!1},[!!xr,At]),Gn=z.useState(function(){return Cr||(Sr?cr(At,Kt,ln):[])}),Bn=(0,x.Z)(Gn,2),Xn=Bn[0],jn=Bn[1],ii=z.useMemo(function(){return new Set(er||Xn||[])},[er,Xn]),Si=z.useCallback(function(_i){var pi=Kt(_i,At.indexOf(_i)),$i,Yi=ii.has(pi);Yi?(ii.delete(pi),$i=(0,en.Z)(ii)):$i=[].concat((0,en.Z)(ii),[pi]),jn($i),Rr&&Rr(!Yi,_i),Gr&&Gr($i)},[Kt,ii,At,Rr,Gr]);return[Yt,un,ii,dn,ln,Si]}function Dr(_t,At,Kt,Yt){var sr=_t.map(function(er,Cr){return Ot(Cr,Cr,_t,At,Kt,Yt==null?void 0:Yt[Cr])});return(0,Ze.Z)(function(){return sr},[sr],function(er,Cr){return!(0,re.Z)(er,Cr)})}function Ir(_t){var At=(0,z.useRef)(_t),Kt=(0,z.useState)({}),Yt=(0,x.Z)(Kt,2),sr=Yt[1],er=(0,z.useRef)(null),Cr=(0,z.useRef)([]);function Sr(xr){Cr.current.push(xr);var Rr=Promise.resolve();er.current=Rr,Rr.then(function(){if(er.current===Rr){var Gr=Cr.current,Fr=At.current;Cr.current=[],Gr.forEach(function(dn){At.current=dn(At.current)}),er.current=null,Fr!==At.current&&sr({})}})}return(0,z.useEffect)(function(){return function(){er.current=null}},[]),[At.current,Sr]}function Ar(_t){var At=(0,z.useRef)(_t||null),Kt=(0,z.useRef)();function Yt(){window.clearTimeout(Kt.current)}function sr(Cr){At.current=Cr,Yt(),Kt.current=window.setTimeout(function(){At.current=null,Kt.current=void 0},100)}function er(){return At.current}return(0,z.useEffect)(function(){return Yt},[]),[sr,er]}function qt(){var _t=z.useState(-1),At=(0,x.Z)(_t,2),Kt=At[0],Yt=At[1],sr=z.useState(-1),er=(0,x.Z)(sr,2),Cr=er[0],Sr=er[1],xr=z.useCallback(function(Rr,Gr){Yt(Rr),Sr(Gr)},[]);return[Kt,Cr,xr]}var kr=ke(47273),Xt=(0,kr.Z)()?window:null;function rr(_t,At){var Kt=(0,Ee.Z)(_t)==="object"?_t:{},Yt=Kt.offsetHeader,sr=Yt===void 0?0:Yt,er=Kt.offsetSummary,Cr=er===void 0?0:er,Sr=Kt.offsetScroll,xr=Sr===void 0?0:Sr,Rr=Kt.getContainer,Gr=Rr===void 0?function(){return Xt}:Rr,Fr=Gr()||Xt;return z.useMemo(function(){var dn=!!_t;return{isSticky:dn,stickyClassName:dn?"".concat(At,"-sticky-holder"):"",offsetHeader:sr,offsetSummary:Cr,offsetScroll:xr,container:Fr}},[xr,sr,Cr,At,Fr])}function lr(_t,At,Kt){var Yt=(0,z.useMemo)(function(){for(var sr=[],er=[],Cr=0,Sr=0,xr=0;xr<At;xr+=1)if(Kt==="rtl"){er[xr]=Sr,Sr+=_t[xr]||0;var Rr=At-xr-1;sr[Rr]=Cr,Cr+=_t[Rr]||0}else{sr[xr]=Cr,Cr+=_t[xr]||0;var Gr=At-xr-1;er[Gr]=Sr,Sr+=_t[Gr]||0}return{left:sr,right:er}},[_t,At,Kt]);return Yt}var or=lr;function _r(_t){var At=_t.className,Kt=_t.children;return z.createElement("div",{className:At},Kt)}var ur=_r,Mr=ke(8224),Pt=ke(55468),Jt=function(At,Kt){var Yt,sr,er=At.scrollBodyRef,Cr=At.onScroll,Sr=At.offsetScroll,xr=At.container,Rr=se(Ce,"prefixCls"),Gr=((Yt=er.current)===null||Yt===void 0?void 0:Yt.scrollWidth)||0,Fr=((sr=er.current)===null||sr===void 0?void 0:sr.clientWidth)||0,dn=Gr&&Fr*(Fr/Gr),ln=z.useRef(),un=Ir({scrollLeft:0,isHiddenScrollBar:!1}),Gn=(0,x.Z)(un,2),Bn=Gn[0],Xn=Gn[1],jn=z.useRef({delta:0,x:0}),ii=z.useState(!1),Si=(0,x.Z)(ii,2),_i=Si[0],pi=Si[1],$i=function(){pi(!1)},Yi=function(di){di.persist(),jn.current.delta=di.pageX-Bn.scrollLeft,jn.current.x=0,pi(!0),di.preventDefault()},si=function(di){var Ni,aa=di||((Ni=window)===null||Ni===void 0?void 0:Ni.event),Ii=aa.buttons;if(!_i||Ii===0){_i&&pi(!1);return}var Qn=jn.current.x+di.pageX-jn.current.x-jn.current.delta;Qn<=0&&(Qn=0),Qn+dn>=Fr&&(Qn=Fr-dn),Cr({scrollLeft:Qn/Fr*(Gr+2)}),jn.current.x=di.pageX},yi=function(){if(er.current){var di=(0,Pt.os)(er.current).top,Ni=di+er.current.offsetHeight,aa=xr===window?document.documentElement.scrollTop+window.innerHeight:(0,Pt.os)(xr).top+xr.clientHeight;Ni-(0,kt.Z)()<=aa||di>=aa-Sr?Xn(function(Ii){return(0,Pe.Z)((0,Pe.Z)({},Ii),{},{isHiddenScrollBar:!0})}):Xn(function(Ii){return(0,Pe.Z)((0,Pe.Z)({},Ii),{},{isHiddenScrollBar:!1})})}},ci=function(di){Xn(function(Ni){return(0,Pe.Z)((0,Pe.Z)({},Ni),{},{scrollLeft:di/Gr*Fr||0})})};return z.useImperativeHandle(Kt,function(){return{setScrollLeft:ci}}),z.useEffect(function(){var In=(0,Mr.Z)(document.body,"mouseup",$i,!1),di=(0,Mr.Z)(document.body,"mousemove",si,!1);return yi(),function(){In.remove(),di.remove()}},[dn,_i]),z.useEffect(function(){var In=(0,Mr.Z)(xr,"scroll",yi,!1),di=(0,Mr.Z)(window,"resize",yi,!1);return function(){In.remove(),di.remove()}},[xr]),z.useEffect(function(){Bn.isHiddenScrollBar||Xn(function(In){var di=er.current;return di?(0,Pe.Z)((0,Pe.Z)({},In),{},{scrollLeft:di.scrollLeft/di.scrollWidth*di.clientWidth}):In})},[Bn.isHiddenScrollBar]),Gr<=Fr||!dn||Bn.isHiddenScrollBar?null:z.createElement("div",{style:{height:(0,kt.Z)(),width:Fr,bottom:Sr},className:"".concat(Rr,"-sticky-scroll")},z.createElement("div",{onMouseDown:Yi,ref:ln,className:Ie()("".concat(Rr,"-sticky-scroll-bar"),(0,Be.Z)({},"".concat(Rr,"-sticky-scroll-bar-active"),_i)),style:{width:"".concat(dn,"px"),transform:"translate3d(".concat(Bn.scrollLeft,"px, 0, 0)")}}))},nr=z.forwardRef(Jt);function pr(_t){return null}var fr=pr;function br(_t){return null}var wr=br,Nr="rc-table",Kr=[],Ur={};function gn(){return"No Data"}function kn(_t){var At,Kt=(0,Pe.Z)({rowKey:"key",prefixCls:Nr,emptyText:gn},_t),Yt=Kt.prefixCls,sr=Kt.className,er=Kt.rowClassName,Cr=Kt.style,Sr=Kt.data,xr=Kt.rowKey,Rr=Kt.scroll,Gr=Kt.tableLayout,Fr=Kt.direction,dn=Kt.title,ln=Kt.footer,un=Kt.summary,Gn=Kt.caption,Bn=Kt.id,Xn=Kt.showHeader,jn=Kt.components,ii=Kt.emptyText,Si=Kt.onRow,_i=Kt.onHeaderRow,pi=Kt.internalHooks,$i=Kt.transformColumns,Yi=Kt.internalRefs,si=Kt.tailor,yi=Kt.sticky,ci=Sr||Kr,In=!!ci.length,di=pi===vt,Ni=z.useCallback(function(Ea,Pa){return(0,Qe.Z)(jn,Ea)||Pa},[jn]),aa=z.useMemo(function(){return typeof xr=="function"?xr:function(Ea){var Pa=Ea&&Ea[xr];return Pa}},[xr]),Ii=Ni(["body"]),Qn=qt(),Zi=(0,x.Z)(Qn,3),Ji=Zi[0],_a=Zi[1],wa=Zi[2],no=vr(Kt,ci,aa),Ua=(0,x.Z)(no,6),Gi=Ua[0],go=Ua[1],ma=Ua[2],Qa=Ua[3],Va=Ua[4],Mo=Ua[5],Pi=Rr==null?void 0:Rr.x,ki=z.useState(0),Ti=(0,x.Z)(ki,2),xi=Ti[0],Sa=Ti[1],Ci=Qt((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},Kt),Gi),{},{expandable:!!Gi.expandedRowRender,columnTitle:Gi.columnTitle,expandedKeys:ma,getRowKey:aa,onTriggerExpand:Mo,expandIcon:Qa,expandIconColumnIndex:Gi.expandIconColumnIndex,direction:Fr,scrollWidth:di&&si&&typeof Pi=="number"?Pi:null}),di?$i:null),Ui=(0,x.Z)(Ci,3),ga=Ui[0],fa=Ui[1],Vo=Ui[2],_o=Vo!=null?Vo:Pi,Ns=z.useMemo(function(){return{columns:ga,flattenColumns:fa}},[ga,fa]),vo=z.useRef(),Ws=z.useRef(),xo=z.useRef(),jo=z.useRef(),yl=z.useRef(),xa=z.useState(!1),On=(0,x.Z)(xa,2),Ta=On[0],Co=On[1],ko=z.useState(!1),Hi=(0,x.Z)(ko,2),Ra=Hi[0],Fo=Hi[1],Ds=Ir(new Map),cl=(0,x.Z)(Ds,2),ps=cl[0],Go=cl[1],tl=ct(fa),Xo=tl.map(function(Ea){return ps.get(Ea)}),ms=z.useMemo(function(){return Xo},[Xo.join("_")]),rs=or(ms,fa.length,Fr),io=Rr&&pt(Rr.y),ao=Rr&&pt(_o)||!!Gi.fixed,cs=ao&&fa.some(function(Ea){var Pa=Ea.fixed;return Pa}),bl=z.useRef(),js=rr(yi,Yt),ul=js.isSticky,Nl=js.offsetHeader,iu=js.offsetSummary,Ca=js.offsetScroll,Fa=js.stickyClassName,Do=js.container,$a=z.useMemo(function(){return un==null?void 0:un(ci)},[un,ci]),Io=(io||ul)&&z.isValidElement($a)&&$a.type===ye&&$a.props.fixed,Yo,xs,xl;io&&(xs={overflowY:"scroll",maxHeight:Rr.y}),ao&&(Yo={overflowX:"auto"},io||(xs={overflowY:"hidden"}),xl={width:_o===!0?"auto":_o,minWidth:"100%"});var _u=z.useCallback(function(Ea,Pa){(0,bt.Z)(vo.current)&&Go(function(vs){if(vs.get(Ea)!==Pa){var El=new Map(vs);return El.set(Ea,Pa),El}return vs})},[]),Xl=Ar(null),wl=(0,x.Z)(Xl,2),ya=wl[0],so=wl[1];function dl(Ea,Pa){Pa&&(typeof Pa=="function"?Pa(Ea):Pa.scrollLeft!==Ea&&(Pa.scrollLeft=Ea,Pa.scrollLeft!==Ea&&setTimeout(function(){Pa.scrollLeft=Ea},0)))}var lc=(0,Ae.Z)(function(Ea){var Pa=Ea.currentTarget,vs=Ea.scrollLeft,El=Fr==="rtl",Ml=typeof vs=="number"?vs:Pa.scrollLeft,Au=Pa||Ur;if(!so()||so()===Au){var Ao;ya(Au),dl(Ml,Ws.current),dl(Ml,xo.current),dl(Ml,yl.current),dl(Ml,(Ao=bl.current)===null||Ao===void 0?void 0:Ao.setScrollLeft)}var nl=Pa||Ws.current;if(nl){var Ou=nl.scrollWidth,Jl=nl.clientWidth;if(Ou===Jl){Co(!1),Fo(!1);return}El?(Co(-Ml<Ou-Jl),Fo(-Ml>0)):(Co(Ml>0),Fo(Ml<Ou-Jl))}}),Fs=function(){ao&&xo.current?lc({currentTarget:xo.current}):(Co(!1),Fo(!1))},ed=function(Pa){var vs=Pa.width;vs!==xi&&(Fs(),Sa(vo.current?vo.current.offsetWidth:vs))},To=z.useRef(!1);z.useEffect(function(){To.current&&Fs()},[ao,Sr,ga.length]),z.useEffect(function(){To.current=!0},[]);var ku=z.useState(0),td=(0,x.Z)(ku,2),au=td[0],ou=td[1],wc=z.useState(!0),cc=(0,x.Z)(wc,2),Fn=cc[0],Tu=cc[1];z.useEffect(function(){(!si||!di)&&(xo.current instanceof Element?ou((0,kt.o)(xo.current).width):ou((0,kt.o)(jo.current).width)),Tu((0,at.G)("position","sticky"))},[]),z.useEffect(function(){di&&Yi&&(Yi.body.current=xo.current)});var su=z.useCallback(function(Ea){return z.createElement(z.Fragment,null,z.createElement(Lr,Ea),Io==="top"&&z.createElement(ze,Ea,$a))},[Io,$a]),lu=z.useCallback(function(Ea){return z.createElement(ze,Ea,$a)},[$a]),rl=Ni(["table"],"table"),Yl=z.useMemo(function(){return Gr||(cs?_o==="max-content"?"auto":"fixed":io||ul||fa.some(function(Ea){var Pa=Ea.ellipsis;return Pa})?"fixed":"auto")},[io,cs,fa,Gr,ul]),Sc,uc={colWidths:ms,columCount:fa.length,stickyOffsets:rs,onHeaderRow:_i,fixHeader:io,scroll:Rr},qa=z.useMemo(function(){return In?null:typeof ii=="function"?ii():ii},[In,ii]),rd=z.createElement(Er,{data:ci,measureColumnWidth:io||ao||ul}),cu=z.createElement(vn,{colWidths:fa.map(function(Ea){var Pa=Ea.width;return Pa}),columns:fa}),Sl=Gn!=null?z.createElement("caption",{className:"".concat(Yt,"-caption")},Gn):void 0,Hc=(0,Ht.Z)(Kt,{data:!0}),jl=(0,Ht.Z)(Kt,{aria:!0});if(io||ul){var Fl;typeof Ii=="function"?(Fl=Ii(ci,{scrollbarSize:au,ref:xo,onScroll:lc}),uc.colWidths=fa.map(function(Ea,Pa){var vs=Ea.width,El=Pa===fa.length-1?vs-au:vs;return typeof El=="number"&&!Number.isNaN(El)?El:0})):Fl=z.createElement("div",{style:(0,Pe.Z)((0,Pe.Z)({},Yo),xs),onScroll:lc,ref:xo,className:Ie()("".concat(Yt,"-body"))},z.createElement(rl,(0,pe.Z)({style:(0,Pe.Z)((0,Pe.Z)({},xl),{},{tableLayout:Yl})},jl),Sl,cu,rd,!Io&&$a&&z.createElement(ze,{stickyOffsets:rs,flattenColumns:fa,columns:ga},$a)));var gs=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({noData:!ci.length,maxContentScroll:ao&&_o==="max-content"},uc),Ns),{},{direction:Fr,stickyClassName:Fa,onScroll:lc});Sc=z.createElement(z.Fragment,null,Xn!==!1&&z.createElement(Ln,(0,pe.Z)({},gs,{stickyTopOffset:Nl,className:"".concat(Yt,"-header"),ref:Ws}),su),Fl,Io&&Io!=="top"&&z.createElement(Ln,(0,pe.Z)({},gs,{stickyBottomOffset:iu,className:"".concat(Yt,"-summary"),ref:yl}),lu),ul&&z.createElement(nr,{ref:bl,offsetScroll:Ca,scrollBodyRef:xo,onScroll:lc,container:Do}))}else Sc=z.createElement("div",{style:(0,Pe.Z)((0,Pe.Z)({},Yo),xs),className:Ie()("".concat(Yt,"-content")),onScroll:lc,ref:xo},z.createElement(rl,(0,pe.Z)({style:(0,Pe.Z)((0,Pe.Z)({},xl),{},{tableLayout:Yl})},jl),Sl,cu,Xn!==!1&&z.createElement(Lr,(0,pe.Z)({},uc,Ns)),rd,$a&&z.createElement(ze,{stickyOffsets:rs,flattenColumns:fa,columns:ga},$a)));var $s=z.createElement("div",(0,pe.Z)({className:Ie()(Yt,sr,(At={},(0,Be.Z)(At,"".concat(Yt,"-rtl"),Fr==="rtl"),(0,Be.Z)(At,"".concat(Yt,"-ping-left"),Ta),(0,Be.Z)(At,"".concat(Yt,"-ping-right"),Ra),(0,Be.Z)(At,"".concat(Yt,"-layout-fixed"),Gr==="fixed"),(0,Be.Z)(At,"".concat(Yt,"-fixed-header"),io),(0,Be.Z)(At,"".concat(Yt,"-fixed-column"),cs),(0,Be.Z)(At,"".concat(Yt,"-scroll-horizontal"),ao),(0,Be.Z)(At,"".concat(Yt,"-has-fix-left"),fa[0]&&fa[0].fixed),(0,Be.Z)(At,"".concat(Yt,"-has-fix-right"),fa[fa.length-1]&&fa[fa.length-1].fixed==="right"),At)),style:Cr,id:Bn,ref:vo},Hc),dn&&z.createElement(ur,{className:"".concat(Yt,"-title")},dn(ci)),z.createElement("div",{ref:jo,className:"".concat(Yt,"-container")},Sc),ln&&z.createElement(ur,{className:"".concat(Yt,"-footer")},ln(ci)));ao&&($s=z.createElement(st.Z,{onResize:ed},$s));var ns=Dr(fa,rs,Fr,ga),Cl=z.useMemo(function(){return{scrollX:_o,prefixCls:Yt,getComponent:Ni,scrollbarSize:au,direction:Fr,fixedInfoList:ns,isSticky:ul,supportSticky:Fn,componentWidth:xi,fixHeader:io,fixColumn:cs,horizonScroll:ao,tableLayout:Yl,rowClassName:er,expandedRowClassName:Gi.expandedRowClassName,expandIcon:Qa,expandableType:go,expandRowByClick:Gi.expandRowByClick,expandedRowRender:Gi.expandedRowRender,onTriggerExpand:Mo,expandIconColumnIndex:Gi.expandIconColumnIndex,indentSize:Gi.indentSize,allColumnsFixedLeft:fa.every(function(Ea){return Ea.fixed==="left"}),emptyNode:qa,columns:ga,flattenColumns:fa,onColumnResize:_u,hoverStartRow:Ji,hoverEndRow:_a,onHover:wa,rowExpandable:Gi.rowExpandable,onRow:Si,getRowKey:aa,expandedKeys:ma,childrenColumnName:Va}},[_o,Yt,Ni,au,Fr,ns,ul,Fn,xi,io,cs,ao,Yl,er,Gi.expandedRowClassName,Qa,go,Gi.expandRowByClick,Gi.expandedRowRender,Mo,Gi.expandIconColumnIndex,Gi.indentSize,qa,ga,fa,_u,Ji,_a,wa,Gi.rowExpandable,Si,aa,ma,Va]);return z.createElement(Ce.Provider,{value:Cl},$s)}function Nn(_t){return we(kn,_t)}var yn=Nn();yn.EXPAND_COLUMN=Ye,yn.INTERNAL_HOOKS=vt,yn.Column=fr,yn.ColumnGroup=wr,yn.Summary=Ke;var rn=yn,$n=ke(48911),Tn=oe(null),Zn=oe(null);function wn(_t,At,Kt){var Yt=At||1;return Kt[_t+Yt]-(Kt[_t]||0)}function Mn(_t){var At=_t.rowInfo,Kt=_t.column,Yt=_t.colIndex,sr=_t.indent,er=_t.index,Cr=_t.renderIndex,Sr=_t.record,xr=_t.style,Rr=_t.className,Gr=_t.inverse,Fr=_t.getHeight,dn=Kt.render,ln=Kt.dataIndex,un=Kt.className,Gn=Kt.width,Bn=se(Zn,["columnsOffset"]),Xn=Bn.columnsOffset,jn=dt(At,Kt,Yt,sr,er),ii=jn.key,Si=jn.fixedInfo,_i=jn.appendCellNode,pi=jn.additionalCellProps,$i=pi.style,Yi=pi.colSpan,si=Yi===void 0?1:Yi,yi=pi.rowSpan,ci=yi===void 0?1:yi,In=Yt-1,di=wn(In,si,Xn),Ni=si>1?Gn-di:0,aa=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},$i),xr),{},{flex:"0 0 ".concat(di,"px"),width:"".concat(di,"px"),marginRight:Ni,pointerEvents:"auto"}),Ii=z.useMemo(function(){return Gr?ci<=1:si===0||ci===0||ci>1},[ci,si,Gr]);Ii?aa.visibility="hidden":Gr&&(aa.height=Fr==null?void 0:Fr(ci));var Qn=Ii?function(){return null}:dn,Zi={};return(ci===0||si===0)&&(Zi.rowSpan=1,Zi.colSpan=1),z.createElement(Rt,(0,pe.Z)({className:Ie()(un,Rr),ellipsis:Kt.ellipsis,align:Kt.align,scope:Kt.rowScope,component:"div",prefixCls:At.prefixCls,key:ii,record:Sr,index:er,renderIndex:Cr,dataIndex:ln,render:Qn,shouldCellUpdate:Kt.shouldCellUpdate},Si,{appendNode:_i,additionalProps:(0,Pe.Z)((0,Pe.Z)({},pi),{},{style:aa},Zi)}))}var Jn=Mn,zn=["data","index","className","rowKey","style","extra","getHeight"],hi=z.forwardRef(function(_t,At){var Kt=_t.data,Yt=_t.index,sr=_t.className,er=_t.rowKey,Cr=_t.style,Sr=_t.extra,xr=_t.getHeight,Rr=(0,le.Z)(_t,zn),Gr=Kt.record,Fr=Kt.indent,dn=Kt.index,ln=se(Ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),un=ln.scrollX,Gn=ln.flattenColumns,Bn=ln.prefixCls,Xn=ln.fixColumn,jn=ln.componentWidth,ii=ft(Gr,er,Yt,Fr),Si=ii.rowSupportExpand,_i=ii.expanded,pi=ii.rowProps,$i=ii.expandedRowRender,Yi=ii.expandedRowClassName,si;if(Si&&_i){var yi=$i(Gr,Yt,Fr+1,_i),ci=Yi==null?void 0:Yi(Gr,Yt,Fr),In={};Xn&&(In={style:(0,Be.Z)({},"--virtual-width","".concat(jn,"px"))});var di="".concat(Bn,"-expanded-row-cell");si=z.createElement("div",{className:Ie()("".concat(Bn,"-expanded-row"),"".concat(Bn,"-expanded-row-level-").concat(Fr+1),ci)},z.createElement(Rt,{component:"div",prefixCls:Bn,className:Ie()(di,(0,Be.Z)({},"".concat(di,"-fixed"),Xn)),additionalProps:In},yi))}var Ni=(0,Pe.Z)((0,Pe.Z)({},Cr),{},{width:un});Sr&&(Ni.position="absolute",Ni.pointerEvents="none");var aa=z.createElement("div",(0,pe.Z)({},pi,Rr,{ref:Si?null:At,className:Ie()(sr,"".concat(Bn,"-row"),pi==null?void 0:pi.className,(0,Be.Z)({},"".concat(Bn,"-row-extra"),Sr)),style:(0,Pe.Z)((0,Pe.Z)({},Ni),pi==null?void 0:pi.style)}),Gn.map(function(Ii,Qn){return z.createElement(Jn,{key:Qn,rowInfo:ii,column:Ii,colIndex:Qn,indent:Fr,index:Yt,renderIndex:dn,record:Gr,inverse:Sr,getHeight:xr})}));return Si?z.createElement("div",{ref:At},aa,si):aa}),Ei=be(hi),Rn=Ei,Jr=z.forwardRef(function(_t,At){var Kt=_t.data,Yt=_t.onScroll,sr=se(Ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),er=sr.flattenColumns,Cr=sr.onColumnResize,Sr=sr.getRowKey,xr=sr.expandedKeys,Rr=sr.prefixCls,Gr=sr.childrenColumnName,Fr=sr.emptyNode,dn=sr.scrollX,ln=se(Tn),un=ln.scrollY,Gn=ln.listItemHeight,Bn=z.useRef(),Xn=$t(Kt,Gr,xr,Sr),jn=z.useMemo(function(){var si=0;return er.map(function(yi){var ci=yi.width,In=yi.key;return si+=ci,[In,ci,si]})},[er]),ii=z.useMemo(function(){return jn.map(function(si){return si[2]})},[jn]);z.useEffect(function(){jn.forEach(function(si){var yi=(0,x.Z)(si,2),ci=yi[0],In=yi[1];Cr(ci,In)})},[jn]),z.useImperativeHandle(At,function(){var si={};return Object.defineProperty(si,"scrollLeft",{get:function(){var ci;return((ci=Bn.current)===null||ci===void 0?void 0:ci.getScrollInfo().x)||0},set:function(ci){var In;(In=Bn.current)===null||In===void 0||In.scrollTo({left:ci})}}),si});var Si=function(yi,ci){var In,di=(In=Xn[ci])===null||In===void 0?void 0:In.record,Ni=yi.onCell;if(Ni){var aa,Ii=Ni(di,ci);return(aa=Ii==null?void 0:Ii.rowSpan)!==null&&aa!==void 0?aa:1}return 1},_i=function(yi){var ci=yi.start,In=yi.end,di=yi.getSize,Ni=yi.offsetY;if(In<0)return null;for(var aa=er.filter(function(Pi){return Si(Pi,ci)===0}),Ii=ci,Qn=function(ki){if(aa=aa.filter(function(Ti){return Si(Ti,ki)===0}),!aa.length)return Ii=ki,"break"},Zi=ci;Zi>=0;Zi-=1){var Ji=Qn(Zi);if(Ji==="break")break}for(var _a=er.filter(function(Pi){return Si(Pi,In)!==1}),wa=In,no=function(ki){if(_a=_a.filter(function(Ti){return Si(Ti,ki)!==1}),!_a.length)return wa=Math.max(ki-1,In),"break"},Ua=In;Ua<Xn.length;Ua+=1){var Gi=no(Ua);if(Gi==="break")break}for(var go=[],ma=function(ki){var Ti=Xn[ki];if(!Ti)return"continue";er.some(function(xi){return Si(xi,ki)>1})&&go.push(ki)},Qa=Ii;Qa<=wa;Qa+=1)var Va=ma(Qa);var Mo=go.map(function(Pi){var ki=Xn[Pi],Ti=Sr(ki.record,Pi),xi=function(Ui){var ga=Pi+Ui-1,fa=Sr(Xn[ga].record,ga),Vo=di(Ti,fa);return Vo.bottom-Vo.top},Sa=di(Ti);return z.createElement(Rn,{key:Pi,data:ki,rowKey:Ti,index:Pi,style:{top:-Ni+Sa.top},extra:!0,getHeight:xi})});return Mo},pi=z.useMemo(function(){return{columnsOffset:ii}},[ii]),$i="".concat(Rr,"-tbody"),Yi;return Xn.length?Yi=z.createElement($n.Z,{fullHeight:!1,ref:Bn,className:Ie()($i,"".concat($i,"-virtual")),height:un,itemHeight:Gn||24,data:Xn,itemKey:function(yi){return Sr(yi.record)},scrollWidth:dn,onVirtualScroll:function(yi){var ci=yi.x;Yt({scrollLeft:ci})},extraRender:_i},function(si,yi,ci){var In=Sr(si.record,yi);return z.createElement(Rn,(0,pe.Z)({data:si,rowKey:In,index:yi},ci))}):Yi=z.createElement("div",{className:Ie()("".concat(Rr,"-placeholder"))},z.createElement(Rt,{component:"div",prefixCls:Rr},Fr)),z.createElement(Zn.Provider,{value:pi},Yi)}),Xr=be(Jr),Hn=Xr,Dn=function(At,Kt){var Yt=Kt.ref,sr=Kt.onScroll;return z.createElement(Hn,{ref:Yt,data:At,onScroll:sr})},ri=100;function ai(_t){var At=_t.columns,Kt=_t.scroll,Yt=_t.prefixCls,sr=Yt===void 0?Nr:Yt,er=_t.className,Cr=_t.listItemHeight,Sr=Kt||{},xr=Sr.x,Rr=Sr.y;typeof xr!="number"&&(xr=((At||[]).length+1)*ri),typeof Rr!="number"&&(Rr=500);var Gr=z.useMemo(function(){return{scrollY:Rr,listItemHeight:Cr}},[Rr,Cr]);return z.createElement(Tn.Provider,{value:Gr},z.createElement(rn,(0,pe.Z)({},_t,{className:Ie()(er,"".concat(sr,"-virtual")),scroll:(0,Pe.Z)((0,Pe.Z)({},Kt),{},{x:xr}),components:{body:Dn},columns:At,internalHooks:vt,tailor:!0})))}function Qr(_t){return we(ai,_t)}var qr=Qr(),An=null;function gi(_t){return null}var nn=gi;function pn(_t){return null}var qn=pn,li=ke(2738),ji=ke(68031),Li=ke(36355),Bi=ke(93891),ni=ke(19716),ra=ke(8628),ca=ke(31724),Sn=ke(58421),Cn=ke(71418),bn=ke(88088);function Wn(_t){return function(Kt){let{prefixCls:Yt,onExpand:sr,record:er,expanded:Cr,expandable:Sr}=Kt;const xr=`${Yt}-row-expand-icon`;return z.createElement("button",{type:"button",onClick:Rr=>{sr(er,Rr),Rr.stopPropagation()},className:Ie()(xr,{[`${xr}-spaced`]:!Sr,[`${xr}-expanded`]:Sr&&Cr,[`${xr}-collapsed`]:Sr&&!Cr}),"aria-label":Cr?_t.collapse:_t.expand,"aria-expanded":Cr})}}var Ki=Wn;function qi(_t,At){return"key"in _t&&_t.key!==void 0&&_t.key!==null?_t.key:_t.dataIndex?Array.isArray(_t.dataIndex)?_t.dataIndex.join("."):_t.dataIndex:At}function oa(_t,At){return At?`${At}-${_t}`:`${_t}`}function na(_t,At){return typeof _t=="function"?_t(At):_t}function Xi(_t,At){const Kt=na(_t,At);return Object.prototype.toString.call(Kt)==="[object Object]"?"":Kt}var ba={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"},Na=ba,Ia=ke(7657),yo=function(At,Kt){return z.createElement(Ia.Z,(0,pe.Z)({},At,{ref:Kt,icon:Na}))},Oi=z.forwardRef(yo),Fi=Oi,ka=ke(56762);function Vi(_t){const At=z.useRef(_t),Kt=(0,ka.Z)();return[()=>At.current,Yt=>{At.current=Yt,Kt()}]}var ia=ke(3113),da=ke(24905),sa=ke(38854),ui=ke(64165),Di=ke(20834),Mi=ke(40875),mi=ke(5112),ea=ke(17574),Qi=ke(47472),Ka=ke(92832);function Ya(_t){let{value:At,onChange:Kt,filterSearch:Yt,tablePrefixCls:sr,locale:er}=_t;return Yt?z.createElement("div",{className:`${sr}-filter-dropdown-search`},z.createElement(Ka.default,{prefix:z.createElement(Qi.Z,null),placeholder:er.filterSearchPlaceholder,onChange:Kt,value:At,htmlSize:1,className:`${sr}-filter-dropdown-search-input`})):null}var Ha=Ya,oo=ke(10228);const ha=_t=>{const{keyCode:At}=_t;At===oo.Z.ENTER&&_t.stopPropagation()};var eo=z.forwardRef((_t,At)=>z.createElement("div",{className:_t.className,onClick:Kt=>Kt.stopPropagation(),onKeyDown:ha,ref:At},_t.children));function to(_t){let At=[];return(_t||[]).forEach(Kt=>{let{value:Yt,children:sr}=Kt;At.push(Yt),sr&&(At=[].concat((0,en.Z)(At),(0,en.Z)(to(sr))))}),At}function bo(_t){return _t.some(At=>{let{children:Kt}=At;return Kt})}function ro(_t,At){return typeof At=="string"||typeof At=="number"?At==null?void 0:At.toString().toLowerCase().includes(_t.trim().toLowerCase()):!1}function pl(_t){let{filters:At,prefixCls:Kt,filteredKeys:Yt,filterMultiple:sr,searchValue:er,filterSearch:Cr}=_t;return At.map((Sr,xr)=>{const Rr=String(Sr.value);if(Sr.children)return{key:Rr||xr,label:Sr.text,popupClassName:`${Kt}-dropdown-submenu`,children:pl({filters:Sr.children,prefixCls:Kt,filteredKeys:Yt,filterMultiple:sr,searchValue:er,filterSearch:Cr})};const Gr=sr?da.default:mi.ZP,Fr={key:Sr.value!==void 0?Rr:xr,label:z.createElement(z.Fragment,null,z.createElement(Gr,{checked:Yt.includes(Rr)}),z.createElement("span",null,Sr.text))};return er.trim()?typeof Cr=="function"?Cr(er,Sr)?Fr:null:ro(er,Sr.text)?Fr:null:Fr})}function ks(_t){var At,Kt;const{tablePrefixCls:Yt,prefixCls:sr,column:er,dropdownPrefixCls:Cr,columnKey:Sr,filterMultiple:xr,filterMode:Rr="menu",filterSearch:Gr=!1,filterState:Fr,triggerFilter:dn,locale:ln,children:un,getPopupContainer:Gn}=_t,{filterDropdownOpen:Bn,onFilterDropdownOpenChange:Xn,filterResetToDefaultFilteredValue:jn,defaultFilteredValue:ii,filterDropdownVisible:Si,onFilterDropdownVisibleChange:_i}=er,[pi,$i]=z.useState(!1),Yi=!!(Fr&&(!((At=Fr.filteredKeys)===null||At===void 0)&&At.length||Fr.forceFiltered)),si=Ci=>{$i(Ci),Xn==null||Xn(Ci),_i==null||_i(Ci)},yi=(Kt=Bn!=null?Bn:Si)!==null&&Kt!==void 0?Kt:pi,ci=Fr==null?void 0:Fr.filteredKeys,[In,di]=Vi(ci||[]),Ni=Ci=>{let{selectedKeys:Ui}=Ci;di(Ui)},aa=(Ci,Ui)=>{let{node:ga,checked:fa}=Ui;Ni(xr?{selectedKeys:Ci}:{selectedKeys:fa&&ga.key?[ga.key]:[]})};z.useEffect(()=>{pi&&Ni({selectedKeys:ci||[]})},[ci]);const[Ii,Qn]=z.useState([]),Zi=Ci=>{Qn(Ci)},[Ji,_a]=z.useState(""),wa=Ci=>{const{value:Ui}=Ci.target;_a(Ui)};z.useEffect(()=>{pi||_a("")},[pi]);const no=Ci=>{const Ui=Ci&&Ci.length?Ci:null;if(Ui===null&&(!Fr||!Fr.filteredKeys)||(0,re.Z)(Ui,Fr==null?void 0:Fr.filteredKeys,!0))return null;dn({column:er,key:Sr,filteredKeys:Ui})},Ua=()=>{si(!1),no(In())},Gi=function(){let{confirm:Ci,closeDropdown:Ui}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ci&&no([]),Ui&&si(!1),_a(""),di(jn?(ii||[]).map(ga=>String(ga)):[])},go=function(){let{closeDropdown:Ci}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ci&&si(!1),no(In())},ma=Ci=>{Ci&&ci!==void 0&&di(ci||[]),si(Ci),!Ci&&!er.filterDropdown&&Ua()},Qa=Ie()({[`${Cr}-menu-without-submenu`]:!bo(er.filters||[])}),Va=Ci=>{if(Ci.target.checked){const Ui=to(er==null?void 0:er.filters).map(ga=>String(ga));di(Ui)}else di([])},Mo=Ci=>{let{filters:Ui}=Ci;return(Ui||[]).map((ga,fa)=>{const Vo=String(ga.value),_o={title:ga.text,key:ga.value!==void 0?Vo:fa};return ga.children&&(_o.children=Mo({filters:ga.children})),_o})},Pi=Ci=>{var Ui;return Object.assign(Object.assign({},Ci),{text:Ci.title,value:Ci.key,children:((Ui=Ci.children)===null||Ui===void 0?void 0:Ui.map(ga=>Pi(ga)))||[]})};let ki;if(typeof er.filterDropdown=="function")ki=er.filterDropdown({prefixCls:`${Cr}-custom`,setSelectedKeys:Ci=>Ni({selectedKeys:Ci}),selectedKeys:In(),confirm:go,clearFilters:Gi,filters:er.filters,visible:yi,close:()=>{si(!1)}});else if(er.filterDropdown)ki=er.filterDropdown;else{const Ci=In()||[],Ui=()=>(er.filters||[]).length===0?z.createElement(ui.Z,{image:ui.Z.PRESENTED_IMAGE_SIMPLE,description:ln.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Rr==="tree"?z.createElement(z.Fragment,null,z.createElement(Ha,{filterSearch:Gr,value:Ji,onChange:wa,tablePrefixCls:Yt,locale:ln}),z.createElement("div",{className:`${Yt}-filter-dropdown-tree`},xr?z.createElement(da.default,{checked:Ci.length===to(er.filters).length,indeterminate:Ci.length>0&&Ci.length<to(er.filters).length,className:`${Yt}-filter-dropdown-checkall`,onChange:Va},ln.filterCheckall):null,z.createElement(ea.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:xr,checkStrictly:!xr,className:`${Cr}-menu`,onCheck:aa,checkedKeys:Ci,selectedKeys:Ci,showIcon:!1,treeData:Mo({filters:er.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Ji.trim()?fa=>typeof Gr=="function"?Gr(Ji,Pi(fa)):ro(Ji,fa.title):void 0}))):z.createElement(z.Fragment,null,z.createElement(Ha,{filterSearch:Gr,value:Ji,onChange:wa,tablePrefixCls:Yt,locale:ln}),z.createElement(Di.default,{selectable:!0,multiple:xr,prefixCls:`${Cr}-menu`,className:Qa,onSelect:Ni,onDeselect:Ni,selectedKeys:Ci,getPopupContainer:Gn,openKeys:Ii,onOpenChange:Zi,items:pl({filters:er.filters||[],filterSearch:Gr,prefixCls:sr,filteredKeys:In(),filterMultiple:xr,searchValue:Ji})})),ga=()=>jn?(0,re.Z)((ii||[]).map(fa=>String(fa)),Ci,!0):Ci.length===0;ki=z.createElement(z.Fragment,null,Ui(),z.createElement("div",{className:`${sr}-dropdown-btns`},z.createElement(ia.ZP,{type:"link",size:"small",disabled:ga(),onClick:()=>Gi()},ln.filterReset),z.createElement(ia.ZP,{type:"primary",size:"small",onClick:Ua},ln.filterConfirm)))}er.filterDropdown&&(ki=z.createElement(Mi.J,{selectable:void 0},ki));const Ti=()=>z.createElement(eo,{className:`${sr}-dropdown`},ki);let xi;typeof er.filterIcon=="function"?xi=er.filterIcon(Yi):er.filterIcon?xi=er.filterIcon:xi=z.createElement(Fi,null);const{direction:Sa}=z.useContext(Li.E_);return z.createElement("div",{className:`${sr}-column`},z.createElement("span",{className:`${Yt}-column-title`},un),z.createElement(sa.Z,{dropdownRender:Ti,trigger:["click"],open:yi,onOpenChange:ma,getPopupContainer:Gn,placement:Sa==="rtl"?"bottomLeft":"bottomRight"},z.createElement("span",{role:"button",tabIndex:-1,className:Ie()(`${sr}-trigger`,{active:Yi}),onClick:Ci=>{Ci.stopPropagation()}},xi)))}var Ts=ks;function os(_t,At,Kt){let Yt=[];return(_t||[]).forEach((sr,er)=>{var Cr;const Sr=oa(er,Kt);if(sr.filters||"filterDropdown"in sr||"onFilter"in sr)if("filteredValue"in sr){let xr=sr.filteredValue;"filterDropdown"in sr||(xr=(Cr=xr==null?void 0:xr.map(String))!==null&&Cr!==void 0?Cr:xr),Yt.push({column:sr,key:qi(sr,Sr),filteredKeys:xr,forceFiltered:sr.filtered})}else Yt.push({column:sr,key:qi(sr,Sr),filteredKeys:At&&sr.defaultFilteredValue?sr.defaultFilteredValue:void 0,forceFiltered:sr.filtered});"children"in sr&&(Yt=[].concat((0,en.Z)(Yt),(0,en.Z)(os(sr.children,At,Sr))))}),Yt}function Tl(_t,At,Kt,Yt,sr,er,Cr,Sr){return Kt.map((xr,Rr)=>{const Gr=oa(Rr,Sr),{filterMultiple:Fr=!0,filterMode:dn,filterSearch:ln}=xr;let un=xr;if(un.filters||un.filterDropdown){const Gn=qi(un,Gr),Bn=Yt.find(Xn=>{let{key:jn}=Xn;return Gn===jn});un=Object.assign(Object.assign({},un),{title:Xn=>z.createElement(Ts,{tablePrefixCls:_t,prefixCls:`${_t}-filter`,dropdownPrefixCls:At,column:un,columnKey:Gn,filterState:Bn,filterMultiple:Fr,filterMode:dn,filterSearch:ln,triggerFilter:er,locale:sr,getPopupContainer:Cr},na(xr.title,Xn))})}return"children"in un&&(un=Object.assign(Object.assign({},un),{children:Tl(_t,At,un.children,Yt,sr,er,Cr,Gr)})),un})}function As(_t){const At={};return _t.forEach(Kt=>{let{key:Yt,filteredKeys:sr,column:er}=Kt;const{filters:Cr,filterDropdown:Sr}=er;if(Sr)At[Yt]=sr||null;else if(Array.isArray(sr)){const xr=to(Cr);At[Yt]=xr.filter(Rr=>sr.includes(String(Rr)))}else At[Yt]=null}),At}function Ro(_t,At){return At.reduce((Kt,Yt)=>{const{column:{onFilter:sr,filters:er},filteredKeys:Cr}=Yt;return sr&&Cr&&Cr.length?Kt.filter(Sr=>Cr.some(xr=>{const Rr=to(er),Gr=Rr.findIndex(dn=>String(dn)===String(xr)),Fr=Gr!==-1?Rr[Gr]:xr;return sr(Fr,Sr)})):Kt},_t)}const So=_t=>_t.flatMap(At=>"children"in At?[At].concat((0,en.Z)(So(At.children||[]))):[At]);function zs(_t){let{prefixCls:At,dropdownPrefixCls:Kt,mergedColumns:Yt,onFilterChange:sr,getPopupContainer:er,locale:Cr}=_t;const Sr=z.useMemo(()=>So(Yt||[]),[Yt]),[xr,Rr]=z.useState(()=>os(Sr,!0)),Gr=z.useMemo(()=>{const un=os(Sr,!1);if(un.length===0)return un;let Gn=!0,Bn=!0;if(un.forEach(Xn=>{let{filteredKeys:jn}=Xn;jn!==void 0?Gn=!1:Bn=!1}),Gn){const Xn=(Sr||[]).map((jn,ii)=>qi(jn,oa(ii)));return xr.filter(jn=>{let{key:ii}=jn;return Xn.includes(ii)}).map(jn=>{const ii=Sr[Xn.findIndex(Si=>Si===jn.key)];return Object.assign(Object.assign({},jn),{column:Object.assign(Object.assign({},jn.column),ii),forceFiltered:ii.filtered})})}return un},[Sr,xr]),Fr=z.useMemo(()=>As(Gr),[Gr]),dn=un=>{const Gn=Gr.filter(Bn=>{let{key:Xn}=Bn;return Xn!==un.key});Gn.push(un),Rr(Gn),sr(As(Gn),Gn)};return[un=>Tl(At,Kt,un,Gr,Cr,dn,er),Gr,Fr]}var Gs=zs;function Xs(_t,At,Kt){const Yt=z.useRef({});function sr(er){if(!Yt.current||Yt.current.data!==_t||Yt.current.childrenColumnName!==At||Yt.current.getRowKey!==Kt){let Sr=function(xr){xr.forEach((Rr,Gr)=>{const Fr=Kt(Rr,Gr);Cr.set(Fr,Rr),Rr&&typeof Rr=="object"&&At in Rr&&Sr(Rr[At]||[])})};const Cr=new Map;Sr(_t),Yt.current={data:_t,childrenColumnName:At,kvMap:Cr,getRowKey:Kt}}return Yt.current.kvMap.get(er)}return[sr]}var Al=ke(50371),ol=function(_t,At){var Kt={};for(var Yt in _t)Object.prototype.hasOwnProperty.call(_t,Yt)&&At.indexOf(Yt)<0&&(Kt[Yt]=_t[Yt]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sr=0,Yt=Object.getOwnPropertySymbols(_t);sr<Yt.length;sr++)At.indexOf(Yt[sr])<0&&Object.prototype.propertyIsEnumerable.call(_t,Yt[sr])&&(Kt[Yt[sr]]=_t[Yt[sr]]);return Kt};const ss=10;function es(_t,At){const Kt={current:_t.current,pageSize:_t.pageSize};return Object.keys(At&&typeof At=="object"?At:{}).forEach(sr=>{const er=_t[sr];typeof er!="function"&&(Kt[sr]=er)}),Kt}function ja(_t,At,Kt){const Yt=Kt&&typeof Kt=="object"?Kt:{},{total:sr=0}=Yt,er=ol(Yt,["total"]),[Cr,Sr]=(0,z.useState)(()=>({current:"defaultCurrent"in er?er.defaultCurrent:1,pageSize:"defaultPageSize"in er?er.defaultPageSize:ss})),xr=(0,Al.Z)(Cr,er,{total:sr>0?sr:_t}),Rr=Math.ceil((sr||_t)/xr.pageSize);xr.current>Rr&&(xr.current=Rr||1);const Gr=(dn,ln)=>{Sr({current:dn!=null?dn:1,pageSize:ln||xr.pageSize})},Fr=(dn,ln)=>{var un;Kt&&((un=Kt.onChange)===null||un===void 0||un.call(Kt,dn,ln)),Gr(dn,ln),At(dn,ln||(xr==null?void 0:xr.pageSize))};return Kt===!1?[{},()=>{}]:[Object.assign(Object.assign({},xr),{onChange:Fr}),Gr]}var Ys=ja,Ol=ke(84105),Ks=ke(35654),va=ke(90782),ua=ke(71430),Wa=ke(18929);const uo={},Ja="SELECT_ALL",Bo="SELECT_INVERT",Ho="SELECT_NONE",fs=[],Wo=(_t,At)=>{let Kt=[];return(At||[]).forEach(Yt=>{Kt.push(Yt),Yt&&typeof Yt=="object"&&_t in Yt&&(Kt=[].concat((0,en.Z)(Kt),(0,en.Z)(Wo(_t,Yt[_t]))))}),Kt};var Os=(_t,At)=>{const{preserveSelectedRowKeys:Kt,selectedRowKeys:Yt,defaultSelectedRowKeys:sr,getCheckboxProps:er,onChange:Cr,onSelect:Sr,onSelectAll:xr,onSelectInvert:Rr,onSelectNone:Gr,onSelectMultiple:Fr,columnWidth:dn,type:ln,selections:un,fixed:Gn,renderCell:Bn,hideSelectAll:Xn,checkStrictly:jn=!0}=At||{},{prefixCls:ii,data:Si,pageData:_i,getRecordByKey:pi,getRowKey:$i,expandType:Yi,childrenColumnName:si,locale:yi,getPopupContainer:ci}=_t,[In,di]=(0,Wa.Z)(Yt||sr||fs,{value:Yt}),Ni=z.useRef(new Map),aa=(0,z.useCallback)(Pi=>{if(Kt){const ki=new Map;Pi.forEach(Ti=>{let xi=pi(Ti);!xi&&Ni.current.has(Ti)&&(xi=Ni.current.get(Ti)),ki.set(Ti,xi)}),Ni.current=ki}},[pi,Kt]);z.useEffect(()=>{aa(In)},[In]);const{keyEntities:Ii}=(0,z.useMemo)(()=>{if(jn)return{keyEntities:null};let Pi=Si;if(Kt){const ki=new Set(Si.map((xi,Sa)=>$i(xi,Sa))),Ti=Array.from(Ni.current).reduce((xi,Sa)=>{let[Ci,Ui]=Sa;return ki.has(Ci)?xi:xi.concat(Ui)},[]);Pi=[].concat((0,en.Z)(Pi),(0,en.Z)(Ti))}return(0,ua.I8)(Pi,{externalGetKey:$i,childrenPropName:si})},[Si,$i,jn,si,Kt]),Qn=(0,z.useMemo)(()=>Wo(si,_i),[si,_i]),Zi=(0,z.useMemo)(()=>{const Pi=new Map;return Qn.forEach((ki,Ti)=>{const xi=$i(ki,Ti),Sa=(er?er(ki):null)||{};Pi.set(xi,Sa)}),Pi},[Qn,$i,er]),Ji=(0,z.useCallback)(Pi=>{var ki;return!!(!((ki=Zi.get($i(Pi)))===null||ki===void 0)&&ki.disabled)},[Zi,$i]),[_a,wa]=(0,z.useMemo)(()=>{if(jn)return[In||[],[]];const{checkedKeys:Pi,halfCheckedKeys:ki}=(0,va.S)(In,!0,Ii,Ji);return[Pi||[],ki]},[In,jn,Ii,Ji]),no=(0,z.useMemo)(()=>{const Pi=ln==="radio"?_a.slice(0,1):_a;return new Set(Pi)},[_a,ln]),Ua=(0,z.useMemo)(()=>ln==="radio"?new Set:new Set(wa),[wa,ln]),[Gi,go]=(0,z.useState)(null);z.useEffect(()=>{At||di(fs)},[!!At]);const ma=(0,z.useCallback)((Pi,ki)=>{let Ti,xi;aa(Pi),Kt?(Ti=Pi,xi=Pi.map(Sa=>Ni.current.get(Sa))):(Ti=[],xi=[],Pi.forEach(Sa=>{const Ci=pi(Sa);Ci!==void 0&&(Ti.push(Sa),xi.push(Ci))})),di(Ti),Cr==null||Cr(Ti,xi,{type:ki})},[di,pi,Cr,Kt]),Qa=(0,z.useCallback)((Pi,ki,Ti,xi)=>{if(Sr){const Sa=Ti.map(Ci=>pi(Ci));Sr(pi(Pi),ki,Sa,xi)}ma(Ti,"single")},[Sr,pi,ma]),Va=(0,z.useMemo)(()=>!un||Xn?null:(un===!0?[Ja,Bo,Ho]:un).map(ki=>ki===Ja?{key:"all",text:yi.selectionAll,onSelect(){ma(Si.map((Ti,xi)=>$i(Ti,xi)).filter(Ti=>{const xi=Zi.get(Ti);return!(xi!=null&&xi.disabled)||no.has(Ti)}),"all")}}:ki===Bo?{key:"invert",text:yi.selectInvert,onSelect(){const Ti=new Set(no);_i.forEach((Sa,Ci)=>{const Ui=$i(Sa,Ci),ga=Zi.get(Ui);ga!=null&&ga.disabled||(Ti.has(Ui)?Ti.delete(Ui):Ti.add(Ui))});const xi=Array.from(Ti);Rr&&Rr(xi),ma(xi,"invert")}}:ki===Ho?{key:"none",text:yi.selectNone,onSelect(){Gr==null||Gr(),ma(Array.from(no).filter(Ti=>{const xi=Zi.get(Ti);return xi==null?void 0:xi.disabled}),"none")}}:ki).map(ki=>Object.assign(Object.assign({},ki),{onSelect:function(){for(var Ti,xi,Sa=arguments.length,Ci=new Array(Sa),Ui=0;Ui<Sa;Ui++)Ci[Ui]=arguments[Ui];(xi=ki.onSelect)===null||xi===void 0||(Ti=xi).call.apply(Ti,[ki].concat(Ci)),go(null)}})),[un,no,_i,$i,Rr,ma]);return[(0,z.useCallback)(Pi=>{var ki;if(!At)return Pi.filter(xa=>xa!==uo);let Ti=(0,en.Z)(Pi);const xi=new Set(no),Sa=Qn.map($i).filter(xa=>!Zi.get(xa).disabled),Ci=Sa.every(xa=>xi.has(xa)),Ui=Sa.some(xa=>xi.has(xa)),ga=()=>{const xa=[];Ci?Sa.forEach(Ta=>{xi.delete(Ta),xa.push(Ta)}):Sa.forEach(Ta=>{xi.has(Ta)||(xi.add(Ta),xa.push(Ta))});const On=Array.from(xi);xr==null||xr(!Ci,On.map(Ta=>pi(Ta)),xa.map(Ta=>pi(Ta))),ma(On,"all"),go(null)};let fa;if(ln!=="radio"){let xa;if(Va){const Hi={getPopupContainer:ci,items:Va.map((Ra,Fo)=>{const{key:Ds,text:cl,onSelect:ps}=Ra;return{key:Ds!=null?Ds:Fo,onClick:()=>{ps==null||ps(Sa)},label:cl}})};xa=z.createElement("div",{className:`${ii}-selection-extra`},z.createElement(sa.Z,{menu:Hi,getPopupContainer:ci},z.createElement("span",null,z.createElement(Ol.Z,null))))}const On=Qn.map((Hi,Ra)=>{const Fo=$i(Hi,Ra),Ds=Zi.get(Fo)||{};return Object.assign({checked:xi.has(Fo)},Ds)}).filter(Hi=>{let{disabled:Ra}=Hi;return Ra}),Ta=!!On.length&&On.length===Qn.length,Co=Ta&&On.every(Hi=>{let{checked:Ra}=Hi;return Ra}),ko=Ta&&On.some(Hi=>{let{checked:Ra}=Hi;return Ra});fa=!Xn&&z.createElement("div",{className:`${ii}-selection`},z.createElement(da.default,{checked:Ta?Co:!!Qn.length&&Ci,indeterminate:Ta?!Co&&ko:!Ci&&Ui,onChange:ga,disabled:Qn.length===0||Ta,"aria-label":xa?"Custom selection":"Select all",skipGroup:!0}),xa)}let Vo;ln==="radio"?Vo=(xa,On,Ta)=>{const Co=$i(On,Ta),ko=xi.has(Co);return{node:z.createElement(mi.ZP,Object.assign({},Zi.get(Co),{checked:ko,onClick:Hi=>Hi.stopPropagation(),onChange:Hi=>{xi.has(Co)||Qa(Co,!0,[Co],Hi.nativeEvent)}})),checked:ko}}:Vo=(xa,On,Ta)=>{var Co;const ko=$i(On,Ta),Hi=xi.has(ko),Ra=Ua.has(ko),Fo=Zi.get(ko);let Ds;return Yi==="nest"?Ds=Ra:Ds=(Co=Fo==null?void 0:Fo.indeterminate)!==null&&Co!==void 0?Co:Ra,{node:z.createElement(da.default,Object.assign({},Fo,{indeterminate:Ds,checked:Hi,skipGroup:!0,onClick:cl=>cl.stopPropagation(),onChange:cl=>{let{nativeEvent:ps}=cl;const{shiftKey:Go}=ps;let tl=-1,Xo=-1;if(Go&&jn){const ms=new Set([Gi,ko]);Sa.some((rs,io)=>{if(ms.has(rs))if(tl===-1)tl=io;else return Xo=io,!0;return!1})}if(Xo!==-1&&tl!==Xo&&jn){const ms=Sa.slice(tl,Xo+1),rs=[];Hi?ms.forEach(ao=>{xi.has(ao)&&(rs.push(ao),xi.delete(ao))}):ms.forEach(ao=>{xi.has(ao)||(rs.push(ao),xi.add(ao))});const io=Array.from(xi);Fr==null||Fr(!Hi,io.map(ao=>pi(ao)),rs.map(ao=>pi(ao))),ma(io,"multiple")}else{const ms=_a;if(jn){const rs=Hi?(0,Ks._5)(ms,ko):(0,Ks.L0)(ms,ko);Qa(ko,!Hi,rs,ps)}else{const rs=(0,va.S)([].concat((0,en.Z)(ms),[ko]),!0,Ii,Ji),{checkedKeys:io,halfCheckedKeys:ao}=rs;let cs=io;if(Hi){const bl=new Set(io);bl.delete(ko),cs=(0,va.S)(Array.from(bl),{checked:!1,halfCheckedKeys:ao},Ii,Ji).checkedKeys}Qa(ko,!Hi,cs,ps)}}go(Hi?null:ko)}})),checked:Hi}};const _o=(xa,On,Ta)=>{const{node:Co,checked:ko}=Vo(xa,On,Ta);return Bn?Bn(ko,On,Ta,Co):Co};if(!Ti.includes(uo))if(Ti.findIndex(xa=>{var On;return((On=xa[jr])===null||On===void 0?void 0:On.columnType)==="EXPAND_COLUMN"})===0){const[xa,...On]=Ti;Ti=[xa,uo].concat((0,en.Z)(On))}else Ti=[uo].concat((0,en.Z)(Ti));const Ns=Ti.indexOf(uo);Ti=Ti.filter((xa,On)=>xa!==uo||On===Ns);const vo=Ti[Ns-1],Ws=Ti[Ns+1];let xo=Gn;xo===void 0&&((Ws==null?void 0:Ws.fixed)!==void 0?xo=Ws.fixed:(vo==null?void 0:vo.fixed)!==void 0&&(xo=vo.fixed)),xo&&vo&&((ki=vo[jr])===null||ki===void 0?void 0:ki.columnType)==="EXPAND_COLUMN"&&vo.fixed===void 0&&(vo.fixed=xo);const jo=Ie()(`${ii}-selection-col`,{[`${ii}-selection-col-with-dropdown`]:un&&ln==="checkbox"}),yl={fixed:xo,width:dn,className:`${ii}-selection-column`,title:At.columnTitle||fa,render:_o,onCell:At.onCell,[jr]:{className:jo}};return Ti.map(xa=>xa===uo?yl:xa)},[$i,Qn,At,_a,no,Ua,dn,Va,Yi,Gi,Zi,Fr,Qa,Ji]),no]},Zo=ke(89489),vc=ke(59477),ml=ke(6848);const gl="ascend",nc="descend";function Ul(_t){return typeof _t.sorter=="object"&&typeof _t.sorter.multiple=="number"?_t.sorter.multiple:!1}function Dl(_t){return typeof _t=="function"?_t:_t&&typeof _t=="object"&&_t.compare?_t.compare:!1}function Jc(_t,At){return At?_t[_t.indexOf(At)+1]:_t[0]}function sl(_t,At,Kt){let Yt=[];function sr(er,Cr){Yt.push({column:er,key:qi(er,Cr),multiplePriority:Ul(er),sortOrder:er.sortOrder})}return(_t||[]).forEach((er,Cr)=>{const Sr=oa(Cr,Kt);er.children?("sortOrder"in er&&sr(er,Sr),Yt=[].concat((0,en.Z)(Yt),(0,en.Z)(sl(er.children,At,Sr)))):er.sorter&&("sortOrder"in er?sr(er,Sr):At&&er.defaultSortOrder&&Yt.push({column:er,key:qi(er,Sr),multiplePriority:Ul(er),sortOrder:er.defaultSortOrder}))}),Yt}function ic(_t,At,Kt,Yt,sr,er,Cr,Sr){return(At||[]).map((xr,Rr)=>{const Gr=oa(Rr,Sr);let Fr=xr;if(Fr.sorter){const dn=Fr.sortDirections||sr,ln=Fr.showSorterTooltip===void 0?Cr:Fr.showSorterTooltip,un=qi(Fr,Gr),Gn=Kt.find(Yi=>{let{key:si}=Yi;return si===un}),Bn=Gn?Gn.sortOrder:null,Xn=Jc(dn,Bn);let jn;if(xr.sortIcon)jn=xr.sortIcon({sortOrder:Bn});else{const Yi=dn.includes(gl)&&z.createElement(vc.Z,{className:Ie()(`${_t}-column-sorter-up`,{active:Bn===gl})}),si=dn.includes(nc)&&z.createElement(Zo.Z,{className:Ie()(`${_t}-column-sorter-down`,{active:Bn===nc})});jn=z.createElement("span",{className:Ie()(`${_t}-column-sorter`,{[`${_t}-column-sorter-full`]:!!(Yi&&si)})},z.createElement("span",{className:`${_t}-column-sorter-inner`,"aria-hidden":"true"},Yi,si))}const{cancelSort:ii,triggerAsc:Si,triggerDesc:_i}=er||{};let pi=ii;Xn===nc?pi=_i:Xn===gl&&(pi=Si);const $i=typeof ln=="object"?ln:{title:pi};Fr=Object.assign(Object.assign({},Fr),{className:Ie()(Fr.className,{[`${_t}-column-sort`]:Bn}),title:Yi=>{const si=z.createElement("div",{className:`${_t}-column-sorters`},z.createElement("span",{className:`${_t}-column-title`},na(xr.title,Yi)),jn);return ln?z.createElement(ml.Z,Object.assign({},$i),si):si},onHeaderCell:Yi=>{const si=xr.onHeaderCell&&xr.onHeaderCell(Yi)||{},yi=si.onClick,ci=si.onKeyDown;si.onClick=Ni=>{Yt({column:xr,key:un,sortOrder:Xn,multiplePriority:Ul(xr)}),yi==null||yi(Ni)},si.onKeyDown=Ni=>{Ni.keyCode===oo.Z.ENTER&&(Yt({column:xr,key:un,sortOrder:Xn,multiplePriority:Ul(xr)}),ci==null||ci(Ni))};const In=Xi(xr.title,{}),di=In==null?void 0:In.toString();return Bn?si["aria-sort"]=Bn==="ascend"?"ascending":"descending":si["aria-label"]=di||"",si.className=Ie()(si.className,`${_t}-column-has-sorters`),si.tabIndex=0,xr.ellipsis&&(si.title=(In!=null?In:"").toString()),si}})}return"children"in Fr&&(Fr=Object.assign(Object.assign({},Fr),{children:ic(_t,Fr.children,Kt,Yt,sr,er,Cr,Gr)})),Fr})}function ll(_t){const{column:At,sortOrder:Kt}=_t;return{column:At,order:Kt,field:At.dataIndex,columnKey:At.key}}function vl(_t){const At=_t.filter(Kt=>{let{sortOrder:Yt}=Kt;return Yt}).map(ll);return At.length===0&&_t.length?Object.assign(Object.assign({},ll(_t[_t.length-1])),{column:void 0}):At.length<=1?At[0]||{}:At}function Oa(_t,At,Kt){const Yt=At.slice().sort((Cr,Sr)=>Sr.multiplePriority-Cr.multiplePriority),sr=_t.slice(),er=Yt.filter(Cr=>{let{column:{sorter:Sr},sortOrder:xr}=Cr;return Dl(Sr)&&xr});return er.length?sr.sort((Cr,Sr)=>{for(let xr=0;xr<er.length;xr+=1){const Rr=er[xr],{column:{sorter:Gr},sortOrder:Fr}=Rr,dn=Dl(Gr);if(dn&&Fr){const ln=dn(Cr,Sr,Fr);if(ln!==0)return Fr===gl?ln:-ln}}return 0}).map(Cr=>{const Sr=Cr[Kt];return Sr?Object.assign(Object.assign({},Cr),{[Kt]:Oa(Sr,At,Kt)}):Cr}):sr}function Ba(_t){let{prefixCls:At,mergedColumns:Kt,onSorterChange:Yt,sortDirections:sr,tableLocale:er,showSorterTooltip:Cr}=_t;const[Sr,xr]=z.useState(sl(Kt,!0)),Rr=z.useMemo(()=>{let un=!0;const Gn=sl(Kt,!1);if(!Gn.length)return Sr;const Bn=[];function Xn(ii){un?Bn.push(ii):Bn.push(Object.assign(Object.assign({},ii),{sortOrder:null}))}let jn=null;return Gn.forEach(ii=>{jn===null?(Xn(ii),ii.sortOrder&&(ii.multiplePriority===!1?un=!1:jn=!0)):(jn&&ii.multiplePriority!==!1||(un=!1),Xn(ii))}),Bn},[Kt,Sr]),Gr=z.useMemo(()=>{const un=Rr.map(Gn=>{let{column:Bn,sortOrder:Xn}=Gn;return{column:Bn,order:Xn}});return{sortColumns:un,sortColumn:un[0]&&un[0].column,sortOrder:un[0]&&un[0].order}},[Rr]);function Fr(un){let Gn;un.multiplePriority===!1||!Rr.length||Rr[0].multiplePriority===!1?Gn=[un]:Gn=[].concat((0,en.Z)(Rr.filter(Bn=>{let{key:Xn}=Bn;return Xn!==un.key})),[un]),xr(Gn),Yt(vl(Gn),Gn)}return[un=>ic(At,un,Rr,Fr,sr,er,Cr),Rr,Gr,()=>vl(Rr)]}function Za(_t,At){return _t.map(Kt=>{const Yt=Object.assign({},Kt);return Yt.title=na(Kt.title,At),"children"in Yt&&(Yt.children=Za(Yt.children,At)),Yt})}function hs(_t){return[z.useCallback(Kt=>Za(Kt,_t),[_t])]}var Uo=Nn((_t,At)=>{const{_renderTimes:Kt}=_t,{_renderTimes:Yt}=At;return Kt!==Yt}),Hs=Qr((_t,At)=>{const{_renderTimes:Kt}=_t,{_renderTimes:Yt}=At;return Kt!==Yt}),ls=ke(64993),No=ke(17313),Js=ke(83116),Qs=ke(37613),Il=_t=>{const{componentCls:At}=_t,Kt=`${_t.lineWidth}px ${_t.lineType} ${_t.tableBorderColor}`,Yt=(sr,er,Cr)=>({[`&${At}-${sr}`]:{[`> ${At}-container`]:{[`> ${At}-content, > ${At}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${At}-expanded-row-fixed`]:{margin:`-${er}px -${Cr+_t.lineWidth}px`}}}}}});return{[`${At}-wrapper`]:{[`${At}${At}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${At}-title`]:{border:Kt,borderBottom:0},[`> ${At}-container`]:{borderInlineStart:Kt,borderTop:Kt,[`
|
|
|
> ${At}-content,
|
|
|
> ${At}-header,
|
|
|
> ${At}-body,
|
|
|
> ${At}-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:Kt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Kt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${At}-cell-fix-right-first::after`]:{borderInlineEnd:Kt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${At}-expanded-row-fixed`]:{margin:`-${_t.tablePaddingVertical}px -${_t.tablePaddingHorizontal+_t.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:_t.lineWidth,bottom:0,borderInlineEnd:Kt,content:'""'}}}}}},[`&${At}-scroll-horizontal`]:{[`> ${At}-container > ${At}-body`]:{"> table > tbody":{[`
|
|
|
> tr${At}-expanded-row,
|
|
|
> tr${At}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Yt("middle",_t.tablePaddingVerticalMiddle,_t.tablePaddingHorizontalMiddle)),Yt("small",_t.tablePaddingVerticalSmall,_t.tablePaddingHorizontalSmall)),{[`> ${At}-footer`]:{border:Kt,borderTop:0}}),[`${At}-cell`]:{[`${At}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${_t.lineWidth}px 0 ${_t.lineWidth}px ${_t.tableHeaderBg}`}},[`${At}-bordered ${At}-cell-scrollbar`]:{borderInlineEnd:Kt}}}},yc=_t=>{const{componentCls:At}=_t;return{[`${At}-wrapper`]:{[`${At}-cell-ellipsis`]:Object.assign(Object.assign({},No.vS),{wordBreak:"keep-all",[`
|
|
|
&${At}-cell-fix-left-last,
|
|
|
&${At}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${At}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${At}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},xu=_t=>{const{componentCls:At}=_t;return{[`${At}-wrapper`]:{[`${At}-tbody > tr${At}-placeholder`]:{textAlign:"center",color:_t.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:_t.colorBgContainer}}}}},$c=ke(15969),qc=_t=>{const{componentCls:At,antCls:Kt,controlInteractiveSize:Yt,motionDurationSlow:sr,lineWidth:er,paddingXS:Cr,lineType:Sr,tableBorderColor:xr,tableExpandIconBg:Rr,tableExpandColumnWidth:Gr,borderRadius:Fr,fontSize:dn,fontSizeSM:ln,lineHeight:un,tablePaddingVertical:Gn,tablePaddingHorizontal:Bn,tableExpandedRowBg:Xn,paddingXXS:jn}=_t,ii=Yt/2-er,Si=ii*2+er*3,_i=`${er}px ${Sr} ${xr}`,pi=jn-er;return{[`${At}-wrapper`]:{[`${At}-expand-icon-col`]:{width:Gr},[`${At}-row-expand-icon-cell`]:{textAlign:"center",[`${At}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${At}-row-indent`]:{height:1,float:"left"},[`${At}-row-expand-icon`]:Object.assign(Object.assign({},(0,$c.N)(_t)),{position:"relative",float:"left",boxSizing:"border-box",width:Si,height:Si,padding:0,color:"inherit",lineHeight:`${Si}px`,background:Rr,border:_i,borderRadius:Fr,transform:`scale(${Yt/Si})`,transition:`all ${sr}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${sr} ease-out`,content:'""'},"&::before":{top:ii,insetInlineEnd:pi,insetInlineStart:pi,height:er},"&::after":{top:pi,bottom:pi,insetInlineStart:ii,width:er,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"}}),[`${At}-row-indent + ${At}-row-expand-icon`]:{marginTop:(dn*un-er*3)/2-Math.ceil((ln*1.4-er*3)/2),marginInlineEnd:Cr},[`tr${At}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Xn}},[`${Kt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${At}-expanded-row-fixed`]:{position:"relative",margin:`-${Gn}px -${Bn}px`,padding:`${Gn}px ${Bn}px`}}}},wu=_t=>{const{componentCls:At,antCls:Kt,iconCls:Yt,tableFilterDropdownWidth:sr,tableFilterDropdownSearchWidth:er,paddingXXS:Cr,paddingXS:Sr,colorText:xr,lineWidth:Rr,lineType:Gr,tableBorderColor:Fr,tableHeaderIconColor:dn,fontSizeSM:ln,tablePaddingHorizontal:un,borderRadius:Gn,motionDurationSlow:Bn,colorTextDescription:Xn,colorPrimary:jn,tableHeaderFilterActiveBg:ii,colorTextDisabled:Si,tableFilterDropdownBg:_i,tableFilterDropdownHeight:pi,controlItemBgHover:$i,controlItemBgActive:Yi,boxShadowSecondary:si,filterDropdownMenuBg:yi}=_t,ci=`${Kt}-dropdown`,In=`${At}-filter-dropdown`,di=`${Kt}-tree`,Ni=`${Rr}px ${Gr} ${Fr}`;return[{[`${At}-wrapper`]:{[`${At}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${At}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Cr,marginInline:`${Cr}px ${-un/2}px`,padding:`0 ${Cr}px`,color:dn,fontSize:ln,borderRadius:Gn,cursor:"pointer",transition:`all ${Bn}`,"&:hover":{color:Xn,background:ii},"&.active":{color:jn}}}},{[`${Kt}-dropdown`]:{[In]:Object.assign(Object.assign({},(0,No.Wf)(_t)),{minWidth:sr,backgroundColor:_i,borderRadius:Gn,boxShadow:si,overflow:"hidden",[`${ci}-menu`]:{maxHeight:pi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:yi,"&:empty::after":{display:"block",padding:`${Sr}px 0`,color:Si,fontSize:ln,textAlign:"center",content:'"Not Found"'}},[`${In}-tree`]:{paddingBlock:`${Sr}px 0`,paddingInline:Sr,[di]:{padding:0},[`${di}-treenode ${di}-node-content-wrapper:hover`]:{backgroundColor:$i},[`${di}-treenode-checkbox-checked ${di}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Yi}}},[`${In}-search`]:{padding:Sr,borderBottom:Ni,"&-input":{input:{minWidth:er},[Yt]:{color:Si}}},[`${In}-checkall`]:{width:"100%",marginBottom:Cr,marginInlineStart:Cr},[`${In}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Sr-Rr}px ${Sr}px`,overflow:"hidden",borderTop:Ni}})}},{[`${Kt}-dropdown ${In}, ${In}-submenu`]:{[`${Kt}-checkbox-wrapper + span`]:{paddingInlineStart:Sr,color:xr},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},ac=_t=>{const{componentCls:At,lineWidth:Kt,colorSplit:Yt,motionDurationSlow:sr,zIndexTableFixed:er,tableBg:Cr,zIndexTableSticky:Sr}=_t,xr=Yt;return{[`${At}-wrapper`]:{[`
|
|
|
${At}-cell-fix-left,
|
|
|
${At}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:er,background:Cr},[`
|
|
|
${At}-cell-fix-left-first::after,
|
|
|
${At}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Kt,width:30,transform:"translateX(100%)",transition:`box-shadow ${sr}`,content:'""',pointerEvents:"none"},[`${At}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${At}-cell-fix-right-first::after,
|
|
|
${At}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Kt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${sr}`,content:'""',pointerEvents:"none"},[`${At}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Sr+1,width:30,transition:`box-shadow ${sr}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${At}-ping-left`]:{[`&:not(${At}-has-fix-left) ${At}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${xr}`}},[`
|
|
|
${At}-cell-fix-left-first::after,
|
|
|
${At}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${xr}`},[`${At}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${At}-ping-right`]:{[`&:not(${At}-has-fix-right) ${At}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${xr}`}},[`
|
|
|
${At}-cell-fix-right-first::after,
|
|
|
${At}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${xr}`}}}}},Cu=_t=>{const{componentCls:At,antCls:Kt}=_t;return{[`${At}-wrapper`]:{[`${At}-pagination${Kt}-pagination`]:{margin:`${_t.margin}px 0`},[`${At}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:_t.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Pl=_t=>{const{componentCls:At,tableRadius:Kt}=_t;return{[`${At}-wrapper`]:{[At]:{[`${At}-title, ${At}-header`]:{borderRadius:`${Kt}px ${Kt}px 0 0`},[`${At}-title + ${At}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${At}-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:Kt,borderStartEndRadius:Kt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Kt},"> *:last-child":{borderStartEndRadius:Kt}}},"&-footer":{borderRadius:`0 0 ${Kt}px ${Kt}px`}}}}},Xu=_t=>{const{componentCls:At}=_t;return{[`${At}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${At}-pagination-left`]:{justifyContent:"flex-end"},[`${At}-pagination-right`]:{justifyContent:"flex-start"},[`${At}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${At}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${At}-row-indent`]:{float:"right"}}}}},ru=_t=>{const{componentCls:At,antCls:Kt,iconCls:Yt,fontSizeIcon:sr,padding:er,paddingXS:Cr,tableHeaderIconColor:Sr,tableHeaderIconColorHover:xr,tableSelectionColumnWidth:Rr}=_t;return{[`${At}-wrapper`]:{[`${At}-selection-col`]:{width:Rr,[`&${At}-selection-col-with-dropdown`]:{width:Rr+sr+er/4}},[`${At}-bordered ${At}-selection-col`]:{width:Rr+Cr*2,[`&${At}-selection-col-with-dropdown`]:{width:Rr+sr+er/4+Cr*2}},[`
|
|
|
table tr th${At}-selection-column,
|
|
|
table tr td${At}-selection-column
|
|
|
`]:{paddingInlineEnd:_t.paddingXS,paddingInlineStart:_t.paddingXS,textAlign:"center",[`${Kt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${At}-selection-column${At}-cell-fix-left`]:{zIndex:_t.zIndexTableFixed+1},[`table tr th${At}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${At}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${At}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${_t.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${_t.tablePaddingHorizontal/4}px`,[Yt]:{color:Sr,fontSize:sr,verticalAlign:"baseline","&:hover":{color:xr}}}}}},sc=_t=>{const{componentCls:At}=_t,Kt=(Yt,sr,er,Cr)=>({[`${At}${At}-${Yt}`]:{fontSize:Cr,[`
|
|
|
${At}-title,
|
|
|
${At}-footer,
|
|
|
${At}-cell,
|
|
|
${At}-thead > tr > th,
|
|
|
${At}-tbody > tr > th,
|
|
|
${At}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${sr}px ${er}px`},[`${At}-filter-trigger`]:{marginInlineEnd:`-${er/2}px`},[`${At}-expanded-row-fixed`]:{margin:`-${sr}px -${er}px`},[`${At}-tbody`]:{[`${At}-wrapper:only-child ${At}`]:{marginBlock:`-${sr}px`,marginInline:`${_t.tableExpandColumnWidth-er}px -${er}px`}},[`${At}-selection-column`]:{paddingInlineStart:`${er/4}px`}}});return{[`${At}-wrapper`]:Object.assign(Object.assign({},Kt("middle",_t.tablePaddingVerticalMiddle,_t.tablePaddingHorizontalMiddle,_t.tableFontSizeMiddle)),Kt("small",_t.tablePaddingVerticalSmall,_t.tablePaddingHorizontalSmall,_t.tableFontSizeSmall))}},Kc=_t=>{const{componentCls:At,marginXXS:Kt,fontSizeIcon:Yt,tableHeaderIconColor:sr,tableHeaderIconColorHover:er}=_t;return{[`${At}-wrapper`]:{[`${At}-thead th${At}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${_t.motionDurationSlow}`,"&:hover":{background:_t.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:_t.colorPrimary},[`
|
|
|
&${At}-cell-fix-left:hover,
|
|
|
&${At}-cell-fix-right:hover
|
|
|
`]:{background:_t.tableFixedHeaderSortActiveBg}},[`${At}-thead th${At}-column-sort`]:{background:_t.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${At}-column-sort`]:{background:_t.tableBodySortBg},[`${At}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${At}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${At}-column-sorter`]:{marginInlineStart:Kt,color:sr,fontSize:0,transition:`color ${_t.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Yt,"&.active":{color:_t.colorPrimary}},[`${At}-column-sorter-up + ${At}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${At}-column-sorters:hover ${At}-column-sorter`]:{color:er}}}},Vl=_t=>{const{componentCls:At,opacityLoading:Kt,tableScrollThumbBg:Yt,tableScrollThumbBgHover:sr,tableScrollThumbSize:er,tableScrollBg:Cr,zIndexTableSticky:Sr,stickyScrollBarBorderRadius:xr}=_t,Rr=`${_t.lineWidth}px ${_t.lineType} ${_t.tableBorderColor}`;return{[`${At}-wrapper`]:{[`${At}-sticky`]:{"&-holder":{position:"sticky",zIndex:Sr,background:_t.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${er}px !important`,zIndex:Sr,display:"flex",alignItems:"center",background:Cr,borderTop:Rr,opacity:Kt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:er,backgroundColor:Yt,borderRadius:xr,transition:`all ${_t.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:sr}}}}}}},Ll=_t=>{const{componentCls:At,lineWidth:Kt,tableBorderColor:Yt}=_t,sr=`${Kt}px ${_t.lineType} ${Yt}`;return{[`${At}-wrapper`]:{[`${At}-summary`]:{position:"relative",zIndex:_t.zIndexTableFixed,background:_t.tableBg,"> tr":{"> th, > td":{borderBottom:sr}}},[`div${At}-summary`]:{boxShadow:`0 -${Kt}px 0 ${Yt}`}}}},Rl=_t=>{const{componentCls:At}=_t,Kt=`${_t.lineWidth}px ${_t.lineType} ${_t.tableBorderColor}`,Yt=`${At}-expanded-row-cell`;return{[`${At}-wrapper`]:{[`${At}-tbody-virtual`]:{[`${At}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${At}-cell`]:{borderBottom:Kt},[`${At}-expanded-row`]:{[`${Yt}${Yt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${_t.lineWidth}px)`,borderInlineEnd:"none"}}},[`${At}-bordered`]:{[`${At}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Kt,position:"absolute"},[`${At}-cell`]:{borderInlineEnd:Kt,[`&${At}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-_t.lineWidth,borderInlineStart:Kt}}}}}}};const Bs=_t=>{const{componentCls:At,fontWeightStrong:Kt,tablePaddingVertical:Yt,tablePaddingHorizontal:sr,lineWidth:er,lineType:Cr,tableBorderColor:Sr,tableFontSize:xr,tableBg:Rr,tableRadius:Gr,tableHeaderTextColor:Fr,motionDurationMid:dn,tableHeaderBg:ln,tableHeaderCellSplitColor:un,tableRowHoverBg:Gn,tableSelectedRowBg:Bn,tableSelectedRowHoverBg:Xn,tableFooterTextColor:jn,tableFooterBg:ii,paddingContentVerticalLG:Si}=_t,_i=`${er}px ${Cr} ${Sr}`;return{[`${At}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,No.dF)()),{[At]:Object.assign(Object.assign({},(0,No.Wf)(_t)),{fontSize:xr,background:Rr,borderRadius:`${Gr}px ${Gr}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Gr}px ${Gr}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${At}-cell,
|
|
|
${At}-thead > tr > th,
|
|
|
${At}-tbody > tr > th,
|
|
|
${At}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Si}px ${sr}px`,overflowWrap:"break-word"},[`${At}-title`]:{padding:`${Yt}px ${sr}px`},[`${At}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Fr,fontWeight:Kt,textAlign:"start",background:ln,borderBottom:_i,transition:`background ${dn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${At}-selection-column):not(${At}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:un,transform:"translateY(-50%)",transition:`background-color ${dn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${At}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${dn}, border-color ${dn}`,borderBottom:_i,[`
|
|
|
> ${At}-wrapper:only-child,
|
|
|
> ${At}-expanded-row-fixed > ${At}-wrapper:only-child
|
|
|
`]:{[At]:{marginBlock:`-${Yt}px`,marginInline:`${_t.tableExpandColumnWidth-sr}px -${sr}px`,[`${At}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Fr,fontWeight:Kt,textAlign:"start",background:ln,borderBottom:_i,transition:`background ${dn} ease`},[`
|
|
|
&${At}-row:hover > th,
|
|
|
&${At}-row:hover > td,
|
|
|
> th${At}-cell-row-hover,
|
|
|
> td${At}-cell-row-hover
|
|
|
`]:{background:Gn},[`&${At}-row-selected`]:{"> th, > td":{background:Bn},"&:hover > th, &:hover > td":{background:Xn}}}},[`${At}-footer`]:{padding:`${Yt}px ${sr}px`,color:jn,background:ii}})}};var Gl=(0,Js.Z)("Table",_t=>{const{colorTextHeading:At,colorSplit:Kt,colorIcon:Yt,colorIconHover:sr,opacityLoading:er,colorBgContainer:Cr,controlInteractiveSize:Sr,headerBg:xr,headerColor:Rr,headerSortActiveBg:Gr,headerSortHoverBg:Fr,bodySortBg:dn,rowHoverBg:ln,rowSelectedBg:un,rowSelectedHoverBg:Gn,rowExpandedBg:Bn,cellPaddingBlock:Xn,cellPaddingInline:jn,cellPaddingBlockMD:ii,cellPaddingInlineMD:Si,cellPaddingBlockSM:_i,cellPaddingInlineSM:pi,borderColor:$i,footerBg:Yi,footerColor:si,headerBorderRadius:yi,cellFontSize:ci,cellFontSizeMD:In,cellFontSizeSM:di,headerSplitColor:Ni,fixedHeaderSortActiveBg:aa,headerFilterHoverBg:Ii,filterDropdownBg:Qn,expandIconBg:Zi,selectionColumnWidth:Ji,stickyScrollBarBg:_a}=_t,wa=new ls.C(Yt),no=new ls.C(sr),Ua=2,Gi=(0,Qs.TS)(_t,{tableFontSize:ci,tableBg:Cr,tableRadius:yi,tablePaddingVertical:Xn,tablePaddingHorizontal:jn,tablePaddingVerticalMiddle:ii,tablePaddingHorizontalMiddle:Si,tablePaddingVerticalSmall:_i,tablePaddingHorizontalSmall:pi,tableBorderColor:$i,tableHeaderTextColor:Rr,tableHeaderBg:xr,tableFooterTextColor:si,tableFooterBg:Yi,tableHeaderCellSplitColor:Ni,tableHeaderSortBg:Gr,tableHeaderSortHoverBg:Fr,tableHeaderIconColor:wa.clone().setAlpha(wa.getAlpha()*er).toRgbString(),tableHeaderIconColorHover:no.clone().setAlpha(no.getAlpha()*er).toRgbString(),tableBodySortBg:dn,tableFixedHeaderSortActiveBg:aa,tableHeaderFilterActiveBg:Ii,tableFilterDropdownBg:Qn,tableRowHoverBg:ln,tableSelectedRowBg:un,tableSelectedRowHoverBg:Gn,zIndexTableFixed:Ua,zIndexTableSticky:Ua+1,tableFontSizeMiddle:In,tableFontSizeSmall:di,tableSelectionColumnWidth:Ji,tableExpandIconBg:Zi,tableExpandColumnWidth:Sr+2*_t.padding,tableExpandedRowBg:Bn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:_a,tableScrollThumbBgHover:At,tableScrollBg:Kt});return[Bs(Gi),Cu(Gi),Ll(Gi),Kc(Gi),wu(Gi),Il(Gi),Pl(Gi),qc(Gi),Ll(Gi),xu(Gi),ru(Gi),ac(Gi),Vl(Gi),yc(Gi),sc(Gi),Xu(Gi),Rl(Gi)]},_t=>{const{colorFillAlter:At,colorBgContainer:Kt,colorTextHeading:Yt,colorFillSecondary:sr,colorFillContent:er,controlItemBgActive:Cr,controlItemBgActiveHover:Sr,padding:xr,paddingSM:Rr,paddingXS:Gr,colorBorderSecondary:Fr,borderRadiusLG:dn,fontSize:ln,controlHeight:un,colorTextPlaceholder:Gn}=_t,Bn=new ls.C(sr).onBackground(Kt).toHexShortString(),Xn=new ls.C(er).onBackground(Kt).toHexShortString(),jn=new ls.C(At).onBackground(Kt).toHexShortString();return{headerBg:jn,headerColor:Yt,headerSortActiveBg:Bn,headerSortHoverBg:Xn,bodySortBg:jn,rowHoverBg:jn,rowSelectedBg:Cr,rowSelectedHoverBg:Sr,rowExpandedBg:At,cellPaddingBlock:xr,cellPaddingInline:xr,cellPaddingBlockMD:Rr,cellPaddingInlineMD:Gr,cellPaddingBlockSM:Gr,cellPaddingInlineSM:Gr,borderColor:Fr,headerBorderRadius:dn,footerBg:jn,footerColor:Yt,cellFontSize:ln,cellFontSizeMD:ln,cellFontSizeSM:ln,headerSplitColor:Fr,fixedHeaderSortActiveBg:Bn,headerFilterHoverBg:er,filterDropdownMenuBg:Kt,filterDropdownBg:Kt,expandIconBg:Kt,selectionColumnWidth:un,stickyScrollBarBg:Gn,stickyScrollBarBorderRadius:100}});const nu=[],Eu=(_t,At)=>{const{prefixCls:Kt,className:Yt,rootClassName:sr,style:er,size:Cr,bordered:Sr,dropdownPrefixCls:xr,dataSource:Rr,pagination:Gr,rowSelection:Fr,rowKey:dn="key",rowClassName:ln,columns:un,children:Gn,childrenColumnName:Bn,onChange:Xn,getPopupContainer:jn,loading:ii,expandIcon:Si,expandable:_i,expandedRowRender:pi,expandIconColumnIndex:$i,indentSize:Yi,scroll:si,sortDirections:yi,locale:ci,showSorterTooltip:In=!0,virtual:di}=_t,Ni=z.useMemo(()=>un||Et(Gn),[un,Gn]),aa=z.useMemo(()=>Ni.some(Ca=>Ca.responsive),[Ni]),Ii=(0,ra.Z)(aa),Qn=z.useMemo(()=>{const Ca=new Set(Object.keys(Ii).filter(Fa=>Ii[Fa]));return Ni.filter(Fa=>!Fa.responsive||Fa.responsive.some(Do=>Ca.has(Do)))},[Ni,Ii]),Zi=(0,li.Z)(_t,["className","style","columns"]),{locale:Ji=ca.Z,direction:_a,table:wa,renderEmpty:no,getPrefixCls:Ua,getPopupContainer:Gi}=z.useContext(Li.E_),go=(0,ni.Z)(Cr),ma=Object.assign(Object.assign({},Ji.Table),ci),Qa=Rr||nu,Va=Ua("table",Kt),Mo=Ua("dropdown",xr),Pi=Object.assign({childrenColumnName:Bn,expandIconColumnIndex:$i},_i),{childrenColumnName:ki="children"}=Pi,Ti=z.useMemo(()=>Qa.some(Ca=>Ca==null?void 0:Ca[ki])?"nest":pi||_i&&_i.expandedRowRender?"row":null,[Qa]),xi={body:z.useRef()},Sa=z.useMemo(()=>typeof dn=="function"?dn:Ca=>Ca==null?void 0:Ca[dn],[dn]),[Ci]=Xs(Qa,ki,Sa),Ui={},ga=function(Ca,Fa){let Do=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var $a,Io,Yo;const xs=Object.assign(Object.assign({},Ui),Ca);Do&&(($a=Ui.resetPagination)===null||$a===void 0||$a.call(Ui),!((Io=xs.pagination)===null||Io===void 0)&&Io.current&&(xs.pagination.current=1),Gr&&Gr.onChange&&Gr.onChange(1,(Yo=xs.pagination)===null||Yo===void 0?void 0:Yo.pageSize)),si&&si.scrollToFirstRowOnChange!==!1&&xi.body.current&&(0,ji.Z)(0,{getContainer:()=>xi.body.current}),Xn==null||Xn(xs.pagination,xs.filters,xs.sorter,{currentDataSource:Ro(Oa(Qa,xs.sorterStates,ki),xs.filterStates),action:Fa})},fa=(Ca,Fa)=>{ga({sorter:Ca,sorterStates:Fa},"sort",!1)},[Vo,_o,Ns,vo]=Ba({prefixCls:Va,mergedColumns:Qn,onSorterChange:fa,sortDirections:yi||["ascend","descend"],tableLocale:ma,showSorterTooltip:In}),Ws=z.useMemo(()=>Oa(Qa,_o,ki),[Qa,_o]);Ui.sorter=vo(),Ui.sorterStates=_o;const xo=(Ca,Fa)=>{ga({filters:Ca,filterStates:Fa},"filter",!0)},[jo,yl,xa]=Gs({prefixCls:Va,locale:ma,dropdownPrefixCls:Mo,mergedColumns:Qn,onFilterChange:xo,getPopupContainer:jn||Gi}),On=Ro(Ws,yl);Ui.filters=xa,Ui.filterStates=yl;const Ta=z.useMemo(()=>{const Ca={};return Object.keys(xa).forEach(Fa=>{xa[Fa]!==null&&(Ca[Fa]=xa[Fa])}),Object.assign(Object.assign({},Ns),{filters:Ca})},[Ns,xa]),[Co]=hs(Ta),ko=(Ca,Fa)=>{ga({pagination:Object.assign(Object.assign({},Ui.pagination),{current:Ca,pageSize:Fa})},"paginate")},[Hi,Ra]=Ys(On.length,ko,Gr);Ui.pagination=Gr===!1?{}:es(Hi,Gr),Ui.resetPagination=Ra;const Fo=z.useMemo(()=>{if(Gr===!1||!Hi.pageSize)return On;const{current:Ca=1,total:Fa,pageSize:Do=ss}=Hi;return On.length<Fa?On.length>Do?On.slice((Ca-1)*Do,Ca*Do):On:On.slice((Ca-1)*Do,Ca*Do)},[!!Gr,On,Hi&&Hi.current,Hi&&Hi.pageSize,Hi&&Hi.total]),[Ds,cl]=Os({prefixCls:Va,data:On,pageData:Fo,getRowKey:Sa,getRecordByKey:Ci,expandType:Ti,childrenColumnName:ki,locale:ma,getPopupContainer:jn||Gi},Fr),ps=(Ca,Fa,Do)=>{let $a;return typeof ln=="function"?$a=Ie()(ln(Ca,Fa,Do)):$a=Ie()(ln),Ie()({[`${Va}-row-selected`]:cl.has(Sa(Ca,Fa))},$a)};Pi.__PARENT_RENDER_ICON__=Pi.expandIcon,Pi.expandIcon=Pi.expandIcon||Si||Ki(ma),Ti==="nest"&&Pi.expandIconColumnIndex===void 0?Pi.expandIconColumnIndex=Fr?1:0:Pi.expandIconColumnIndex>0&&Fr&&(Pi.expandIconColumnIndex-=1),typeof Pi.indentSize!="number"&&(Pi.indentSize=typeof Yi=="number"?Yi:15);const Go=z.useCallback(Ca=>Co(Ds(jo(Vo(Ca)))),[Vo,jo,Ds]);let tl,Xo;if(Gr!==!1&&(Hi!=null&&Hi.total)){let Ca;Hi.size?Ca=Hi.size:Ca=go==="small"||go==="middle"?"small":void 0;const Fa=Io=>z.createElement(Sn.Z,Object.assign({},Hi,{className:Ie()(`${Va}-pagination ${Va}-pagination-${Io}`,Hi.className),size:Ca})),Do=_a==="rtl"?"left":"right",{position:$a}=Hi;if($a!==null&&Array.isArray($a)){const Io=$a.find(xl=>xl.includes("top")),Yo=$a.find(xl=>xl.includes("bottom")),xs=$a.every(xl=>`${xl}`=="none");!Io&&!Yo&&!xs&&(Xo=Fa(Do)),Io&&(tl=Fa(Io.toLowerCase().replace("top",""))),Yo&&(Xo=Fa(Yo.toLowerCase().replace("bottom","")))}else Xo=Fa(Do)}let ms;typeof ii=="boolean"?ms={spinning:ii}:typeof ii=="object"&&(ms=Object.assign({spinning:!0},ii));const[rs,io]=Gl(Va),[,ao]=(0,bn.Z)(),cs=Ie()(`${Va}-wrapper`,wa==null?void 0:wa.className,{[`${Va}-wrapper-rtl`]:_a==="rtl"},Yt,sr,io),bl=Object.assign(Object.assign({},wa==null?void 0:wa.style),er),js=ci&&ci.emptyText||(no==null?void 0:no("Table"))||z.createElement(Bi.Z,{componentName:"Table"}),ul=di?Hs:Uo,Nl={},iu=z.useMemo(()=>{const{fontSize:Ca,lineHeight:Fa,padding:Do,paddingXS:$a,paddingSM:Io}=ao,Yo=Math.floor(Ca*Fa);switch(go){case"large":return Do*2+Yo;case"small":return $a*2+Yo;default:return Io*2+Yo}},[ao,go]);return di&&(Nl.listItemHeight=iu),rs(z.createElement("div",{ref:At,className:cs,style:bl},z.createElement(Cn.Z,Object.assign({spinning:!1},ms),tl,z.createElement(ul,Object.assign({},Nl,Zi,{columns:Qn,direction:_a,expandable:Pi,prefixCls:Va,className:Ie()({[`${Va}-middle`]:go==="middle",[`${Va}-small`]:go==="small",[`${Va}-bordered`]:Sr,[`${Va}-empty`]:Qa.length===0}),data:Fo,rowKey:Sa,rowClassName:ps,emptyText:js,internalHooks:vt,internalRefs:xi,transformColumns:Go})),Xo)))};var Mu=z.forwardRef(Eu);const Qu=(_t,At)=>{const Kt=z.useRef(0);return Kt.current+=1,z.createElement(Mu,Object.assign({},_t,{ref:At,_renderTimes:Kt.current}))},bs=z.forwardRef(Qu);bs.SELECTION_COLUMN=uo,bs.EXPAND_COLUMN=Ye,bs.SELECTION_ALL=Ja,bs.SELECTION_INVERT=Bo,bs.SELECTION_NONE=Ho,bs.Column=nn,bs.ColumnGroup=qn,bs.Summary=Ke;var Bl=bs,qu=Bl},99313:function(gr,Wt,ke){"use strict";ke.d(Wt,{default:function(){return Gt}});var Ye=ke(99267),vt=ke(18785),x=ke(62772),Ae=ke(92310),me=ke.n(Ae),re=ke(54476),z=ke(20068),ie=ke(33885),oe=ke(42978),se=ke(76190),pe=ke(75931),ne=ke(59301),ae=ke(49658),ue=ke(18929),de=ke(77900),he=(0,ne.createContext)(null),xe=ne.forwardRef(function(Et,It){var Dt=Et.prefixCls,Lt=Et.className,Ut=Et.style,Qt=Et.id,yr=Et.active,cr=Et.tabKey,vr=Et.children;return ne.createElement("div",{id:Qt&&"".concat(Qt,"-panel-").concat(cr),role:"tabpanel",tabIndex:yr?0:-1,"aria-labelledby":Qt&&"".concat(Qt,"-tab-").concat(cr),"aria-hidden":!yr,style:Ut,className:me()(Dt,yr&&"".concat(Dt,"-active"),Lt),ref:It},vr)}),Se=xe,we=["key","forceRender","style","className"];function be(Et){var It=Et.id,Dt=Et.activeKey,Lt=Et.animated,Ut=Et.tabPosition,Qt=Et.destroyInactiveTabPane,yr=ne.useContext(he),cr=yr.prefixCls,vr=yr.tabs,Dr=Lt.tabPane,Ir="".concat(cr,"-tabpane");return ne.createElement("div",{className:me()("".concat(cr,"-content-holder"))},ne.createElement("div",{className:me()("".concat(cr,"-content"),"".concat(cr,"-content-").concat(Ut),(0,z.Z)({},"".concat(cr,"-content-animated"),Dr))},vr.map(function(Ar){var qt=Ar.key,kr=Ar.forceRender,Xt=Ar.style,rr=Ar.className,lr=(0,pe.Z)(Ar,we),or=qt===Dt;return ne.createElement(de.default,(0,re.Z)({key:qt,visible:or,forceRender:kr,removeOnLeave:!!Qt,leavedClassName:"".concat(Ir,"-hidden")},Lt.tabPaneMotion),function(_r,ur){var Mr=_r.style,Pt=_r.className;return ne.createElement(Se,(0,re.Z)({},lr,{prefixCls:Ir,id:It,tabKey:qt,animated:Dr,active:or,style:(0,ie.Z)((0,ie.Z)({},Xt),Mr),className:me()(rr,Pt),ref:ur}))})})))}var Me=ke(94480),Le=ke(29301),Ce=ke(6089),Ne=ke(8654),Te={width:0,height:0,left:0,top:0};function De(Et,It,Dt){return(0,ne.useMemo)(function(){for(var Lt,Ut=new Map,Qt=It.get((Lt=Et[0])===null||Lt===void 0?void 0:Lt.key)||Te,yr=Qt.left+Qt.width,cr=0;cr<Et.length;cr+=1){var vr=Et[cr].key,Dr=It.get(vr);if(!Dr){var Ir;Dr=It.get((Ir=Et[cr-1])===null||Ir===void 0?void 0:Ir.key)||Te}var Ar=Ut.get(vr)||(0,ie.Z)({},Dr);Ar.right=yr-Ar.left-Ar.width,Ut.set(vr,Ar)}return Ut},[Et.map(function(Lt){return Lt.key}).join("_"),It,Dt])}function Ee(Et,It){var Dt=ne.useRef(Et),Lt=ne.useState({}),Ut=(0,oe.Z)(Lt,2),Qt=Ut[1];function yr(cr){var vr=typeof cr=="function"?cr(Dt.current):cr;vr!==Dt.current&&It(vr,Dt.current),Dt.current=vr,Qt({})}return[Dt.current,yr]}var Pe=.1,Be=.01,Ve=20,Ie=Math.pow(.995,Ve);function Ze(Et,It){var Dt=(0,ne.useState)(),Lt=(0,oe.Z)(Dt,2),Ut=Lt[0],Qt=Lt[1],yr=(0,ne.useState)(0),cr=(0,oe.Z)(yr,2),vr=cr[0],Dr=cr[1],Ir=(0,ne.useState)(0),Ar=(0,oe.Z)(Ir,2),qt=Ar[0],kr=Ar[1],Xt=(0,ne.useState)(),rr=(0,oe.Z)(Xt,2),lr=rr[0],or=rr[1],_r=(0,ne.useRef)();function ur(fr){var br=fr.touches[0],wr=br.screenX,Nr=br.screenY;Qt({x:wr,y:Nr}),window.clearInterval(_r.current)}function Mr(fr){if(Ut){fr.preventDefault();var br=fr.touches[0],wr=br.screenX,Nr=br.screenY;Qt({x:wr,y:Nr});var Kr=wr-Ut.x,Ur=Nr-Ut.y;It(Kr,Ur);var gn=Date.now();Dr(gn),kr(gn-vr),or({x:Kr,y:Ur})}}function Pt(){if(Ut&&(Qt(null),or(null),lr)){var fr=lr.x/qt,br=lr.y/qt,wr=Math.abs(fr),Nr=Math.abs(br);if(Math.max(wr,Nr)<Pe)return;var Kr=fr,Ur=br;_r.current=window.setInterval(function(){if(Math.abs(Kr)<Be&&Math.abs(Ur)<Be){window.clearInterval(_r.current);return}Kr*=Ie,Ur*=Ie,It(Kr*Ve,Ur*Ve)},Ve)}}var Jt=(0,ne.useRef)();function nr(fr){var br=fr.deltaX,wr=fr.deltaY,Nr=0,Kr=Math.abs(br),Ur=Math.abs(wr);Kr===Ur?Nr=Jt.current==="x"?br:wr:Kr>Ur?(Nr=br,Jt.current="x"):(Nr=wr,Jt.current="y"),It(-Nr,-Nr)&&fr.preventDefault()}var pr=(0,ne.useRef)(null);pr.current={onTouchStart:ur,onTouchMove:Mr,onTouchEnd:Pt,onWheel:nr},ne.useEffect(function(){function fr(Kr){pr.current.onTouchStart(Kr)}function br(Kr){pr.current.onTouchMove(Kr)}function wr(Kr){pr.current.onTouchEnd(Kr)}function Nr(Kr){pr.current.onWheel(Kr)}return document.addEventListener("touchmove",br,{passive:!1}),document.addEventListener("touchend",wr,{passive:!1}),Et.current.addEventListener("touchstart",fr,{passive:!1}),Et.current.addEventListener("wheel",Nr),function(){document.removeEventListener("touchmove",br),document.removeEventListener("touchend",wr)}},[])}var Qe=ke(34280);function tt(Et){var It=(0,ne.useState)(0),Dt=(0,oe.Z)(It,2),Lt=Dt[0],Ut=Dt[1],Qt=(0,ne.useRef)(0),yr=(0,ne.useRef)();return yr.current=Et,(0,Qe.o)(function(){var cr;(cr=yr.current)===null||cr===void 0||cr.call(yr)},[Lt]),function(){Qt.current===Lt&&(Qt.current+=1,Ut(Qt.current))}}function it(Et){var It=(0,ne.useRef)([]),Dt=(0,ne.useState)({}),Lt=(0,oe.Z)(Dt,2),Ut=Lt[1],Qt=(0,ne.useRef)(typeof Et=="function"?Et():Et),yr=tt(function(){var vr=Qt.current;It.current.forEach(function(Dr){vr=Dr(vr)}),It.current=[],Qt.current=vr,Ut({})});function cr(vr){It.current.push(vr),yr()}return[Qt.current,cr]}var ht={width:0,height:0,left:0,top:0,right:0};function Ge(Et,It,Dt,Lt,Ut,Qt,yr){var cr=yr.tabs,vr=yr.tabPosition,Dr=yr.rtl,Ir,Ar,qt;return["top","bottom"].includes(vr)?(Ir="width",Ar=Dr?"right":"left",qt=Math.abs(Dt)):(Ir="height",Ar="top",qt=-Dt),(0,ne.useMemo)(function(){if(!cr.length)return[0,0];for(var kr=cr.length,Xt=kr,rr=0;rr<kr;rr+=1){var lr=Et.get(cr[rr].key)||ht;if(lr[Ar]+lr[Ir]>qt+It){Xt=rr-1;break}}for(var or=0,_r=kr-1;_r>=0;_r-=1){var ur=Et.get(cr[_r].key)||ht;if(ur[Ar]<qt){or=_r+1;break}}return or>=Xt?[0,0]:[or,Xt]},[Et,It,Lt,Ut,Qt,qt,vr,cr.map(function(kr){return kr.key}).join("_"),Dr])}function Xe(Et){var It;return Et instanceof Map?(It={},Et.forEach(function(Dt,Lt){It[Lt]=Dt})):It=Et,JSON.stringify(It)}var ct="TABS_DQ";function pt(Et){return String(Et).replace(/"/g,ct)}function ut(Et,It,Dt,Lt){return!(!Dt||Lt||Et===!1||Et===void 0&&(It===!1||It===null))}function rt(Et,It){var Dt=Et.prefixCls,Lt=Et.editable,Ut=Et.locale,Qt=Et.style;return!Lt||Lt.showAdd===!1?null:ne.createElement("button",{ref:It,type:"button",className:"".concat(Dt,"-nav-add"),style:Qt,"aria-label":(Ut==null?void 0:Ut.addAriaLabel)||"Add tab",onClick:function(cr){Lt.onEdit("add",{event:cr})}},Lt.addIcon||"+")}var qe=ne.forwardRef(rt),nt=ne.forwardRef(function(Et,It){var Dt=Et.position,Lt=Et.prefixCls,Ut=Et.extra;if(!Ut)return null;var Qt,yr={};return(0,se.Z)(Ut)==="object"&&!ne.isValidElement(Ut)?yr=Ut:yr.right=Ut,Dt==="right"&&(Qt=yr.right),Dt==="left"&&(Qt=yr.left),Qt?ne.createElement("div",{className:"".concat(Lt,"-extra-content"),ref:It},Qt):null}),xt=nt,yt=ke(31561),Rt=ke(15285),Ot=ke(10228);function lt(Et,It){var Dt=Et.prefixCls,Lt=Et.id,Ut=Et.tabs,Qt=Et.locale,yr=Et.mobile,cr=Et.moreIcon,vr=cr===void 0?"More":cr,Dr=Et.moreTransitionName,Ir=Et.style,Ar=Et.className,qt=Et.editable,kr=Et.tabBarGutter,Xt=Et.rtl,rr=Et.removeAriaLabel,lr=Et.onTabClick,or=Et.getPopupContainer,_r=Et.popupClassName,ur=(0,ne.useState)(!1),Mr=(0,oe.Z)(ur,2),Pt=Mr[0],Jt=Mr[1],nr=(0,ne.useState)(null),pr=(0,oe.Z)(nr,2),fr=pr[0],br=pr[1],wr="".concat(Lt,"-more-popup"),Nr="".concat(Dt,"-dropdown"),Kr=fr!==null?"".concat(wr,"-").concat(fr):null,Ur=Qt==null?void 0:Qt.dropdownAriaLabel;function gn(Zn,wn){Zn.preventDefault(),Zn.stopPropagation(),qt.onEdit("remove",{key:wn,event:Zn})}var kn=ne.createElement(Rt.ZP,{onClick:function(wn){var Mn=wn.key,Jn=wn.domEvent;lr(Mn,Jn),Jt(!1)},prefixCls:"".concat(Nr,"-menu"),id:wr,tabIndex:-1,role:"listbox","aria-activedescendant":Kr,selectedKeys:[fr],"aria-label":Ur!==void 0?Ur:"expanded dropdown"},Ut.map(function(Zn){var wn=Zn.closable,Mn=Zn.disabled,Jn=Zn.closeIcon,zn=Zn.key,hi=Zn.label,Ei=ut(wn,Jn,qt,Mn);return ne.createElement(Rt.sN,{key:zn,id:"".concat(wr,"-").concat(zn),role:"option","aria-controls":Lt&&"".concat(Lt,"-panel-").concat(zn),disabled:Mn},ne.createElement("span",null,hi),Ei&&ne.createElement("button",{type:"button","aria-label":rr||"remove",tabIndex:0,className:"".concat(Nr,"-menu-item-remove"),onClick:function(Jr){Jr.stopPropagation(),gn(Jr,zn)}},Jn||qt.removeIcon||"\xD7"))}));function Nn(Zn){for(var wn=Ut.filter(function(Ei){return!Ei.disabled}),Mn=wn.findIndex(function(Ei){return Ei.key===fr})||0,Jn=wn.length,zn=0;zn<Jn;zn+=1){Mn=(Mn+Zn+Jn)%Jn;var hi=wn[Mn];if(!hi.disabled){br(hi.key);return}}}function yn(Zn){var wn=Zn.which;if(!Pt){[Ot.Z.DOWN,Ot.Z.SPACE,Ot.Z.ENTER].includes(wn)&&(Jt(!0),Zn.preventDefault());return}switch(wn){case Ot.Z.UP:Nn(-1),Zn.preventDefault();break;case Ot.Z.DOWN:Nn(1),Zn.preventDefault();break;case Ot.Z.ESC:Jt(!1);break;case Ot.Z.SPACE:case Ot.Z.ENTER:fr!==null&&lr(fr,Zn);break}}(0,ne.useEffect)(function(){var Zn=document.getElementById(Kr);Zn&&Zn.scrollIntoView&&Zn.scrollIntoView(!1)},[fr]),(0,ne.useEffect)(function(){Pt||br(null)},[Pt]);var rn=(0,z.Z)({},Xt?"marginRight":"marginLeft",kr);Ut.length||(rn.visibility="hidden",rn.order=1);var $n=me()((0,z.Z)({},"".concat(Nr,"-rtl"),Xt)),Tn=yr?null:ne.createElement(yt.Z,{prefixCls:Nr,overlay:kn,trigger:["hover"],visible:Ut.length?Pt:!1,transitionName:Dr,onVisibleChange:Jt,overlayClassName:me()($n,_r),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:or},ne.createElement("button",{type:"button",className:"".concat(Dt,"-nav-more"),style:rn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":wr,id:"".concat(Lt,"-more"),"aria-expanded":Pt,onKeyDown:yn},vr));return ne.createElement("div",{className:me()("".concat(Dt,"-nav-operations"),Ar),style:Ir,ref:It},Tn,ne.createElement(qe,{prefixCls:Dt,locale:Qt,editable:qt}))}var Ue=ne.memo(ne.forwardRef(lt),function(Et,It){return It.tabMoving});function $e(Et){var It,Dt=Et.prefixCls,Lt=Et.id,Ut=Et.active,Qt=Et.tab,yr=Qt.key,cr=Qt.label,vr=Qt.disabled,Dr=Qt.closeIcon,Ir=Et.closable,Ar=Et.renderWrapper,qt=Et.removeAriaLabel,kr=Et.editable,Xt=Et.onClick,rr=Et.onFocus,lr=Et.style,or="".concat(Dt,"-tab"),_r=ut(Ir,Dr,kr,vr);function ur(Jt){vr||Xt(Jt)}function Mr(Jt){Jt.preventDefault(),Jt.stopPropagation(),kr.onEdit("remove",{key:yr,event:Jt})}var Pt=ne.createElement("div",{key:yr,"data-node-key":pt(yr),className:me()(or,(It={},(0,z.Z)(It,"".concat(or,"-with-remove"),_r),(0,z.Z)(It,"".concat(or,"-active"),Ut),(0,z.Z)(It,"".concat(or,"-disabled"),vr),It)),style:lr,onClick:ur},ne.createElement("div",{role:"tab","aria-selected":Ut,id:Lt&&"".concat(Lt,"-tab-").concat(yr),className:"".concat(or,"-btn"),"aria-controls":Lt&&"".concat(Lt,"-panel-").concat(yr),"aria-disabled":vr,tabIndex:vr?null:0,onClick:function(nr){nr.stopPropagation(),ur(nr)},onKeyDown:function(nr){[Ot.Z.SPACE,Ot.Z.ENTER].includes(nr.which)&&(nr.preventDefault(),ur(nr))},onFocus:rr},cr),_r&&ne.createElement("button",{type:"button","aria-label":qt||"remove",tabIndex:0,className:"".concat(or,"-remove"),onClick:function(nr){nr.stopPropagation(),Mr(nr)}},Dr||kr.removeIcon||"\xD7"));return Ar?Ar(Pt):Pt}var le=$e,fe=ke(16089),Fe=function(It){var Dt=It.activeTabOffset,Lt=It.horizontal,Ut=It.rtl,Qt=It.indicatorSize,yr=(0,ne.useState)(),cr=(0,oe.Z)(yr,2),vr=cr[0],Dr=cr[1],Ir=(0,ne.useRef)(),Ar=function(Xt){return typeof Qt=="function"?Qt(Xt):typeof Qt=="number"?Qt:Xt};function qt(){fe.Z.cancel(Ir.current)}return(0,ne.useEffect)(function(){var kr={};return Dt&&(Lt?(Ut?(kr.right=Dt.right+Dt.width/2,kr.transform="translateX(50%)"):(kr.left=Dt.left+Dt.width/2,kr.transform="translateX(-50%)"),kr.width=Ar(Dt.width)):(kr.top=Dt.top+Dt.height/2,kr.transform="translateY(-50%)",kr.height=Ar(Dt.height))),qt(),Ir.current=(0,fe.Z)(function(){Dr(kr)}),qt},[Dt,Lt,Ut,Qt]),{style:vr}},He=Fe,ye=function(It){var Dt=It.current||{},Lt=Dt.offsetWidth,Ut=Lt===void 0?0:Lt,Qt=Dt.offsetHeight,yr=Qt===void 0?0:Qt;return[Ut,yr]},Re=function(It,Dt){return It[Dt?0:1]};function ze(Et,It){var Dt,Lt=ne.useContext(he),Ut=Lt.prefixCls,Qt=Lt.tabs,yr=Et.className,cr=Et.style,vr=Et.id,Dr=Et.animated,Ir=Et.activeKey,Ar=Et.rtl,qt=Et.extra,kr=Et.editable,Xt=Et.locale,rr=Et.tabPosition,lr=Et.tabBarGutter,or=Et.children,_r=Et.onTabClick,ur=Et.onTabScroll,Mr=Et.indicatorSize,Pt=(0,ne.useRef)(),Jt=(0,ne.useRef)(),nr=(0,ne.useRef)(),pr=(0,ne.useRef)(),fr=(0,ne.useRef)(),br=(0,ne.useRef)(),wr=(0,ne.useRef)(),Nr=rr==="top"||rr==="bottom",Kr=Ee(0,function(ha,pa){Nr&&ur&&ur({direction:ha>pa?"left":"right"})}),Ur=(0,oe.Z)(Kr,2),gn=Ur[0],kn=Ur[1],Nn=Ee(0,function(ha,pa){!Nr&&ur&&ur({direction:ha>pa?"top":"bottom"})}),yn=(0,oe.Z)(Nn,2),rn=yn[0],$n=yn[1],Tn=(0,ne.useState)([0,0]),Zn=(0,oe.Z)(Tn,2),wn=Zn[0],Mn=Zn[1],Jn=(0,ne.useState)([0,0]),zn=(0,oe.Z)(Jn,2),hi=zn[0],Ei=zn[1],Rn=(0,ne.useState)([0,0]),Jr=(0,oe.Z)(Rn,2),Xr=Jr[0],Hn=Jr[1],Dn=(0,ne.useState)([0,0]),ri=(0,oe.Z)(Dn,2),ai=ri[0],Qr=ri[1],qr=it(new Map),An=(0,oe.Z)(qr,2),gi=An[0],nn=An[1],pn=De(Qt,gi,hi[0]),qn=Re(wn,Nr),li=Re(hi,Nr),ji=Re(Xr,Nr),Li=Re(ai,Nr),Bi=qn<li+ji,ni=Bi?qn-Li:qn-ji,ra="".concat(Ut,"-nav-operations-hidden"),ca=0,Sn=0;Nr&&Ar?(ca=0,Sn=Math.max(0,li-ni)):(ca=Math.min(0,ni-li),Sn=0);function Cn(ha){return ha<ca?ca:ha>Sn?Sn:ha}var bn=(0,ne.useRef)(),Wn=(0,ne.useState)(),Ki=(0,oe.Z)(Wn,2),qi=Ki[0],oa=Ki[1];function na(){oa(Date.now())}function Xi(){window.clearTimeout(bn.current)}Ze(pr,function(ha,pa){function eo(to,bo){to(function(ro){var pl=Cn(ro+bo);return pl})}return Bi?(Nr?eo(kn,ha):eo($n,pa),Xi(),na(),!0):!1}),(0,ne.useEffect)(function(){return Xi(),qi&&(bn.current=window.setTimeout(function(){oa(0)},100)),Xi},[qi]);var ba=Ge(pn,ni,Nr?gn:rn,li,ji,Li,(0,ie.Z)((0,ie.Z)({},Et),{},{tabs:Qt})),Na=(0,oe.Z)(ba,2),Ia=Na[0],yo=Na[1],Oi=(0,Ce.Z)(function(){var ha=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ir,pa=pn.get(ha)||{width:0,height:0,left:0,right:0,top:0};if(Nr){var eo=gn;Ar?pa.right<gn?eo=pa.right:pa.right+pa.width>gn+ni&&(eo=pa.right+pa.width-ni):pa.left<-gn?eo=-pa.left:pa.left+pa.width>-gn+ni&&(eo=-(pa.left+pa.width-ni)),$n(0),kn(Cn(eo))}else{var to=rn;pa.top<-rn?to=-pa.top:pa.top+pa.height>-rn+ni&&(to=-(pa.top+pa.height-ni)),kn(0),$n(Cn(to))}}),Fi={};rr==="top"||rr==="bottom"?Fi[Ar?"marginRight":"marginLeft"]=lr:Fi.marginTop=lr;var ka=Qt.map(function(ha,pa){var eo=ha.key;return ne.createElement(le,{id:vr,prefixCls:Ut,key:eo,tab:ha,style:pa===0?void 0:Fi,closable:ha.closable,editable:kr,active:eo===Ir,renderWrapper:or,removeAriaLabel:Xt==null?void 0:Xt.removeAriaLabel,onClick:function(bo){_r(eo,bo)},onFocus:function(){Oi(eo),na(),pr.current&&(Ar||(pr.current.scrollLeft=0),pr.current.scrollTop=0)}})}),Vi=function(){return nn(function(){var pa=new Map;return Qt.forEach(function(eo){var to,bo=eo.key,ro=(to=fr.current)===null||to===void 0?void 0:to.querySelector('[data-node-key="'.concat(pt(bo),'"]'));ro&&pa.set(bo,{width:ro.offsetWidth,height:ro.offsetHeight,left:ro.offsetLeft,top:ro.offsetTop})}),pa})};(0,ne.useEffect)(function(){Vi()},[Qt.map(function(ha){return ha.key}).join("_")]);var ia=tt(function(){var ha=ye(Pt),pa=ye(Jt),eo=ye(nr);Mn([ha[0]-pa[0]-eo[0],ha[1]-pa[1]-eo[1]]);var to=ye(wr);Hn(to);var bo=ye(br);Qr(bo);var ro=ye(fr);Ei([ro[0]-to[0],ro[1]-to[1]]),Vi()}),da=Qt.slice(0,Ia),sa=Qt.slice(yo+1),ui=[].concat((0,Me.Z)(da),(0,Me.Z)(sa)),Di=pn.get(Ir),Mi=He({activeTabOffset:Di,horizontal:Nr,rtl:Ar,indicatorSize:Mr}),mi=Mi.style;(0,ne.useEffect)(function(){Oi()},[Ir,ca,Sn,Xe(Di),Xe(pn),Nr]),(0,ne.useEffect)(function(){ia()},[Ar]);var ea=!!ui.length,Qi="".concat(Ut,"-nav-wrap"),Ka,Ya,Ha,oo;return Nr?Ar?(Ya=gn>0,Ka=gn!==Sn):(Ka=gn<0,Ya=gn!==ca):(Ha=rn<0,oo=rn!==ca),ne.createElement(Le.Z,{onResize:ia},ne.createElement("div",{ref:(0,Ne.x1)(It,Pt),role:"tablist",className:me()("".concat(Ut,"-nav"),yr),style:cr,onKeyDown:function(){na()}},ne.createElement(xt,{ref:Jt,position:"left",extra:qt,prefixCls:Ut}),ne.createElement(Le.Z,{onResize:ia},ne.createElement("div",{className:me()(Qi,(Dt={},(0,z.Z)(Dt,"".concat(Qi,"-ping-left"),Ka),(0,z.Z)(Dt,"".concat(Qi,"-ping-right"),Ya),(0,z.Z)(Dt,"".concat(Qi,"-ping-top"),Ha),(0,z.Z)(Dt,"".concat(Qi,"-ping-bottom"),oo),Dt)),ref:pr},ne.createElement(Le.Z,{onResize:ia},ne.createElement("div",{ref:fr,className:"".concat(Ut,"-nav-list"),style:{transform:"translate(".concat(gn,"px, ").concat(rn,"px)"),transition:qi?"none":void 0}},ka,ne.createElement(qe,{ref:wr,prefixCls:Ut,locale:Xt,editable:kr,style:(0,ie.Z)((0,ie.Z)({},ka.length===0?void 0:Fi),{},{visibility:ea?"hidden":null})}),ne.createElement("div",{className:me()("".concat(Ut,"-ink-bar"),(0,z.Z)({},"".concat(Ut,"-ink-bar-animated"),Dr.inkBar)),style:mi}))))),ne.createElement(Ue,(0,re.Z)({},Et,{removeAriaLabel:Xt==null?void 0:Xt.removeAriaLabel,ref:br,prefixCls:Ut,tabs:ui,className:!ea&&ra,tabMoving:!!qi})),ne.createElement(xt,{ref:nr,position:"right",extra:qt,prefixCls:Ut})))}var Ke=ne.forwardRef(ze),We=["renderTabBar"],st=["label","key"];function bt(Et){var It=Et.renderTabBar,Dt=(0,pe.Z)(Et,We),Lt=ne.useContext(he),Ut=Lt.tabs;if(It){var Qt=(0,ie.Z)((0,ie.Z)({},Dt),{},{panes:Ut.map(function(yr){var cr=yr.label,vr=yr.key,Dr=(0,pe.Z)(yr,st);return ne.createElement(Se,(0,re.Z)({tab:cr,key:vr,tabKey:vr},Dr))})});return It(Qt,Ke)}return ne.createElement(Ke,Dt)}var at=ke(48736);function kt(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},It;return Et===!1?It={inkBar:!1,tabPane:!1}:Et===!0?It={inkBar:!0,tabPane:!1}:It=(0,ie.Z)({inkBar:!0},(0,se.Z)(Et)==="object"?Et:{}),It.tabPaneMotion&&It.tabPane===void 0&&(It.tabPane=!0),!It.tabPaneMotion&&It.tabPane&&(It.tabPane=!1),It}var Ht=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Ct=0;function $t(Et,It){var Dt,Lt=Et.id,Ut=Et.prefixCls,Qt=Ut===void 0?"rc-tabs":Ut,yr=Et.className,cr=Et.items,vr=Et.direction,Dr=Et.activeKey,Ir=Et.defaultActiveKey,Ar=Et.editable,qt=Et.animated,kr=Et.tabPosition,Xt=kr===void 0?"top":kr,rr=Et.tabBarGutter,lr=Et.tabBarStyle,or=Et.tabBarExtraContent,_r=Et.locale,ur=Et.moreIcon,Mr=Et.moreTransitionName,Pt=Et.destroyInactiveTabPane,Jt=Et.renderTabBar,nr=Et.onChange,pr=Et.onTabClick,fr=Et.onTabScroll,br=Et.getPopupContainer,wr=Et.popupClassName,Nr=Et.indicatorSize,Kr=(0,pe.Z)(Et,Ht),Ur=ne.useMemo(function(){return(cr||[]).filter(function(Qr){return Qr&&(0,se.Z)(Qr)==="object"&&"key"in Qr})},[cr]),gn=vr==="rtl",kn=kt(qt),Nn=(0,ne.useState)(!1),yn=(0,oe.Z)(Nn,2),rn=yn[0],$n=yn[1];(0,ne.useEffect)(function(){$n((0,ae.Z)())},[]);var Tn=(0,ue.Z)(function(){var Qr;return(Qr=Ur[0])===null||Qr===void 0?void 0:Qr.key},{value:Dr,defaultValue:Ir}),Zn=(0,oe.Z)(Tn,2),wn=Zn[0],Mn=Zn[1],Jn=(0,ne.useState)(function(){return Ur.findIndex(function(Qr){return Qr.key===wn})}),zn=(0,oe.Z)(Jn,2),hi=zn[0],Ei=zn[1];(0,ne.useEffect)(function(){var Qr=Ur.findIndex(function(An){return An.key===wn});if(Qr===-1){var qr;Qr=Math.max(0,Math.min(hi,Ur.length-1)),Mn((qr=Ur[Qr])===null||qr===void 0?void 0:qr.key)}Ei(Qr)},[Ur.map(function(Qr){return Qr.key}).join("_"),wn,hi]);var Rn=(0,ue.Z)(null,{value:Lt}),Jr=(0,oe.Z)(Rn,2),Xr=Jr[0],Hn=Jr[1];(0,ne.useEffect)(function(){Lt||(Hn("rc-tabs-".concat(Ct)),Ct+=1)},[]);function Dn(Qr,qr){pr==null||pr(Qr,qr);var An=Qr!==wn;Mn(Qr),An&&(nr==null||nr(Qr))}var ri={id:Xr,activeKey:wn,animated:kn,tabPosition:Xt,rtl:gn,mobile:rn},ai=(0,ie.Z)((0,ie.Z)({},ri),{},{editable:Ar,locale:_r,moreIcon:ur,moreTransitionName:Mr,tabBarGutter:rr,onTabClick:Dn,onTabScroll:fr,extra:or,style:lr,panes:null,getPopupContainer:br,popupClassName:wr,indicatorSize:Nr});return ne.createElement(he.Provider,{value:{tabs:Ur,prefixCls:Qt}},ne.createElement("div",(0,re.Z)({ref:It,id:Lt,className:me()(Qt,"".concat(Qt,"-").concat(Xt),(Dt={},(0,z.Z)(Dt,"".concat(Qt,"-mobile"),rn),(0,z.Z)(Dt,"".concat(Qt,"-editable"),Ar),(0,z.Z)(Dt,"".concat(Qt,"-rtl"),gn),Dt),yr)},Kr),ne.createElement(bt,(0,re.Z)({},ai,{renderTabBar:Jt})),ne.createElement(be,(0,re.Z)({destroyInactiveTabPane:Pt},ri,{animated:kn}))))}var Bt=ne.forwardRef($t),St=Bt,ft=St,dt=ke(36355),Ft=ke(19716),Zt=()=>null,tr=ke(62892);const mr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Er(Et){let It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Dt;return It===!1?Dt={inkBar:!1,tabPane:!1}:It===!0?Dt={inkBar:!0,tabPane:!0}:Dt=Object.assign({inkBar:!0},typeof It=="object"?It:{}),Dt.tabPane&&(Dt.tabPaneMotion=Object.assign(Object.assign({},mr),{motionName:(0,tr.m)(Et,"switch")})),Dt}var zr=ke(11592),jr=function(Et,It){var Dt={};for(var Lt in Et)Object.prototype.hasOwnProperty.call(Et,Lt)&&It.indexOf(Lt)<0&&(Dt[Lt]=Et[Lt]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Lt=Object.getOwnPropertySymbols(Et);Ut<Lt.length;Ut++)It.indexOf(Lt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(Et,Lt[Ut])&&(Dt[Lt[Ut]]=Et[Lt[Ut]]);return Dt};function Tr(Et){return Et.filter(It=>It)}function Vr(Et,It){if(Et)return Et;const Dt=(0,zr.Z)(It).map(Lt=>{if(ne.isValidElement(Lt)){const{key:Ut,props:Qt}=Lt,yr=Qt||{},{tab:cr}=yr,vr=jr(yr,["tab"]);return Object.assign(Object.assign({key:String(Ut)},vr),{label:cr})}return null});return Tr(Dt)}var sn=ke(17313),vn=ke(83116),en=ke(37613),hn=ke(13826),tn=Et=>{const{componentCls:It,motionDurationSlow:Dt}=Et;return[{[It]:{[`${It}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Dt}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Dt}`}}}}},[(0,hn.oN)(Et,"slide-up"),(0,hn.oN)(Et,"slide-down")]]};const Ln=Et=>{const{componentCls:It,tabsCardPadding:Dt,cardBg:Lt,cardGutter:Ut,colorBorderSecondary:Qt,itemSelectedColor:yr}=Et;return{[`${It}-card`]:{[`> ${It}-nav, > div > ${It}-nav`]:{[`${It}-tab`]:{margin:0,padding:Dt,background:Lt,border:`${Et.lineWidth}px ${Et.lineType} ${Qt}`,transition:`all ${Et.motionDurationSlow} ${Et.motionEaseInOut}`},[`${It}-tab-active`]:{color:yr,background:Et.colorBgContainer},[`${It}-ink-bar`]:{visibility:"hidden"}},[`&${It}-top, &${It}-bottom`]:{[`> ${It}-nav, > div > ${It}-nav`]:{[`${It}-tab + ${It}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Ut}px`}}}},[`&${It}-top`]:{[`> ${It}-nav, > div > ${It}-nav`]:{[`${It}-tab`]:{borderRadius:`${Et.borderRadiusLG}px ${Et.borderRadiusLG}px 0 0`},[`${It}-tab-active`]:{borderBottomColor:Et.colorBgContainer}}},[`&${It}-bottom`]:{[`> ${It}-nav, > div > ${It}-nav`]:{[`${It}-tab`]:{borderRadius:`0 0 ${Et.borderRadiusLG}px ${Et.borderRadiusLG}px`},[`${It}-tab-active`]:{borderTopColor:Et.colorBgContainer}}},[`&${It}-left, &${It}-right`]:{[`> ${It}-nav, > div > ${It}-nav`]:{[`${It}-tab + ${It}-tab`]:{marginTop:`${Ut}px`}}},[`&${It}-left`]:{[`> ${It}-nav, > div > ${It}-nav`]:{[`${It}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Et.borderRadiusLG}px 0 0 ${Et.borderRadiusLG}px`}},[`${It}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Et.colorBgContainer}}}},[`&${It}-right`]:{[`> ${It}-nav, > div > ${It}-nav`]:{[`${It}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Et.borderRadiusLG}px ${Et.borderRadiusLG}px 0`}},[`${It}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Et.colorBgContainer}}}}}}},Un=Et=>{const{componentCls:It,itemHoverColor:Dt,dropdownEdgeChildVerticalPadding:Lt}=Et;return{[`${It}-dropdown`]:Object.assign(Object.assign({},(0,sn.Wf)(Et)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Et.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${It}-dropdown-menu`]:{maxHeight:Et.tabsDropdownHeight,margin:0,padding:`${Lt}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Et.colorBgContainer,backgroundClip:"padding-box",borderRadius:Et.borderRadiusLG,outline:"none",boxShadow:Et.boxShadowSecondary,"&-item":Object.assign(Object.assign({},sn.vS),{display:"flex",alignItems:"center",minWidth:Et.tabsDropdownWidth,margin:0,padding:`${Et.paddingXXS}px ${Et.paddingSM}px`,color:Et.colorText,fontWeight:"normal",fontSize:Et.fontSize,lineHeight:Et.lineHeight,cursor:"pointer",transition:`all ${Et.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Et.marginSM},color:Et.colorTextDescription,fontSize:Et.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Dt}},"&:hover":{background:Et.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Et.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Vn=Et=>{const{componentCls:It,margin:Dt,colorBorderSecondary:Lt,horizontalMargin:Ut,verticalItemPadding:Qt,verticalItemMargin:yr}=Et;return{[`${It}-top, ${It}-bottom`]:{flexDirection:"column",[`> ${It}-nav, > div > ${It}-nav`]:{margin:Ut,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Et.lineWidth}px ${Et.lineType} ${Lt}`,content:"''"},[`${It}-ink-bar`]:{height:Et.lineWidthBold,"&-animated":{transition:`width ${Et.motionDurationSlow}, left ${Et.motionDurationSlow},
|
|
|
right ${Et.motionDurationSlow}`}},[`${It}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Et.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Et.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Et.boxShadowTabsOverflowRight},[`&${It}-nav-wrap-ping-left::before`]:{opacity:1},[`&${It}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${It}-top`]:{[`> ${It}-nav,
|
|
|
> div > ${It}-nav`]:{"&::before":{bottom:0},[`${It}-ink-bar`]:{bottom:0}}},[`${It}-bottom`]:{[`> ${It}-nav, > div > ${It}-nav`]:{order:1,marginTop:`${Dt}px`,marginBottom:0,"&::before":{top:0},[`${It}-ink-bar`]:{top:0}},[`> ${It}-content-holder, > div > ${It}-content-holder`]:{order:0}},[`${It}-left, ${It}-right`]:{[`> ${It}-nav, > div > ${It}-nav`]:{flexDirection:"column",minWidth:Et.controlHeight*1.25,[`${It}-tab`]:{padding:Qt,textAlign:"center"},[`${It}-tab + ${It}-tab`]:{margin:yr},[`${It}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Et.controlHeight},"&::before":{top:0,boxShadow:Et.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Et.boxShadowTabsOverflowBottom},[`&${It}-nav-wrap-ping-top::before`]:{opacity:1},[`&${It}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${It}-ink-bar`]:{width:Et.lineWidthBold,"&-animated":{transition:`height ${Et.motionDurationSlow}, top ${Et.motionDurationSlow}`}},[`${It}-nav-list, ${It}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${It}-left`]:{[`> ${It}-nav, > div > ${It}-nav`]:{[`${It}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${It}-content-holder, > div > ${It}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Et.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Et.lineWidth}px ${Et.lineType} ${Et.colorBorder}`},[`> ${It}-content > ${It}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Et.paddingLG}}}},[`${It}-right`]:{[`> ${It}-nav, > div > ${It}-nav`]:{order:1,[`${It}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${It}-content-holder, > div > ${It}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Et.lineWidth},borderRight:{_skip_check_:!0,value:`${Et.lineWidth}px ${Et.lineType} ${Et.colorBorder}`},[`> ${It}-content > ${It}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Et.paddingLG}}}}}},$r=Et=>{const{componentCls:It,cardPaddingSM:Dt,cardPaddingLG:Lt,horizontalItemPaddingSM:Ut,horizontalItemPaddingLG:Qt}=Et;return{[It]:{"&-small":{[`> ${It}-nav`]:{[`${It}-tab`]:{padding:Ut,fontSize:Et.titleFontSizeSM}}},"&-large":{[`> ${It}-nav`]:{[`${It}-tab`]:{padding:Qt,fontSize:Et.titleFontSizeLG}}}},[`${It}-card`]:{[`&${It}-small`]:{[`> ${It}-nav`]:{[`${It}-tab`]:{padding:Dt}},[`&${It}-bottom`]:{[`> ${It}-nav ${It}-tab`]:{borderRadius:`0 0 ${Et.borderRadius}px ${Et.borderRadius}px`}},[`&${It}-top`]:{[`> ${It}-nav ${It}-tab`]:{borderRadius:`${Et.borderRadius}px ${Et.borderRadius}px 0 0`}},[`&${It}-right`]:{[`> ${It}-nav ${It}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Et.borderRadius}px ${Et.borderRadius}px 0`}}},[`&${It}-left`]:{[`> ${It}-nav ${It}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Et.borderRadius}px 0 0 ${Et.borderRadius}px`}}}},[`&${It}-large`]:{[`> ${It}-nav`]:{[`${It}-tab`]:{padding:Lt}}}}}},Yr=Et=>{const{componentCls:It,itemActiveColor:Dt,itemHoverColor:Lt,iconCls:Ut,tabsHorizontalItemMargin:Qt,horizontalItemPadding:yr,itemSelectedColor:cr,itemColor:vr}=Et,Dr=`${It}-tab`;return{[Dr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:yr,fontSize:Et.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:vr,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Dt}},(0,sn.Qy)(Et)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Et.marginXXS},marginLeft:{_skip_check_:!0,value:Et.marginXS},color:Et.colorTextDescription,fontSize:Et.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Et.motionDurationSlow}`,"&:hover":{color:Et.colorTextHeading}},"&:hover":{color:Lt},[`&${Dr}-active ${Dr}-btn`]:{color:cr,textShadow:Et.tabsActiveTextShadow},[`&${Dr}-disabled`]:{color:Et.colorTextDisabled,cursor:"not-allowed"},[`&${Dr}-disabled ${Dr}-btn, &${Dr}-disabled ${It}-remove`]:{"&:focus, &:active":{color:Et.colorTextDisabled}},[`& ${Dr}-remove ${Ut}`]:{margin:0},[Ut]:{marginRight:{_skip_check_:!0,value:Et.marginSM}}},[`${Dr} + ${Dr}`]:{margin:{_skip_check_:!0,value:Qt}}}},Lr=Et=>{const{componentCls:It,tabsHorizontalItemMarginRTL:Dt,iconCls:Lt,cardGutter:Ut}=Et;return{[`${It}-rtl`]:{direction:"rtl",[`${It}-nav`]:{[`${It}-tab`]:{margin:{_skip_check_:!0,value:Dt},[`${It}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Lt]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Et.marginSM}px`}},[`${It}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Et.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Et.marginXXS}px`},[Lt]:{margin:0}}}},[`&${It}-left`]:{[`> ${It}-nav`]:{order:1},[`> ${It}-content-holder`]:{order:0}},[`&${It}-right`]:{[`> ${It}-nav`]:{order:0},[`> ${It}-content-holder`]:{order:1}},[`&${It}-card${It}-top, &${It}-card${It}-bottom`]:{[`> ${It}-nav, > div > ${It}-nav`]:{[`${It}-tab + ${It}-tab`]:{marginRight:{_skip_check_:!0,value:Ut},marginLeft:{_skip_check_:!0,value:0}}}}},[`${It}-dropdown-rtl`]:{direction:"rtl"},[`${It}-menu-item`]:{[`${It}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},cn=Et=>{const{componentCls:It,tabsCardPadding:Dt,cardHeight:Lt,cardGutter:Ut,itemHoverColor:Qt,itemActiveColor:yr,colorBorderSecondary:cr}=Et;return{[It]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,sn.Wf)(Et)),{display:"flex",[`> ${It}-nav, > div > ${It}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${It}-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 ${Et.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${It}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Et.motionDurationSlow}`},[`${It}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${It}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${It}-nav-more`]:{position:"relative",padding:Dt,background:"transparent",border:0,color:Et.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Et.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${It}-nav-add`]:Object.assign({minWidth:Lt,marginLeft:{_skip_check_:!0,value:Ut},padding:`0 ${Et.paddingXS}px`,background:"transparent",border:`${Et.lineWidth}px ${Et.lineType} ${cr}`,borderRadius:`${Et.borderRadiusLG}px ${Et.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Et.colorText,transition:`all ${Et.motionDurationSlow} ${Et.motionEaseInOut}`,"&:hover":{color:Qt},"&:active, &:focus:not(:focus-visible)":{color:yr}},(0,sn.Qy)(Et))},[`${It}-extra-content`]:{flex:"none"},[`${It}-ink-bar`]:{position:"absolute",background:Et.inkBarColor,pointerEvents:"none"}}),Yr(Et)),{[`${It}-content`]:{position:"relative",width:"100%"},[`${It}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${It}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${It}-centered`]:{[`> ${It}-nav, > div > ${It}-nav`]:{[`${It}-nav-wrap`]:{[`&:not([class*='${It}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Pr=(0,vn.Z)("Tabs",Et=>{const It=(0,en.TS)(Et,{tabsCardPadding:Et.cardPadding||`${(Et.cardHeight-Math.round(Et.fontSize*Et.lineHeight))/2-Et.lineWidth}px ${Et.padding}px`,dropdownEdgeChildVerticalPadding:Et.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Et.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Et.horizontalItemGutter}px`});return[$r(It),Lr(It),Vn(It),Un(It),Ln(It),cn(It),tn(It)]},Et=>{const It=Et.controlHeightLG;return{zIndexPopup:Et.zIndexPopupBase+50,cardBg:Et.colorFillAlter,cardHeight:It,cardPadding:"",cardPaddingSM:`${Et.paddingXXS*1.5}px ${Et.padding}px`,cardPaddingLG:`${Et.paddingXS}px ${Et.padding}px ${Et.paddingXXS*1.5}px`,titleFontSize:Et.fontSize,titleFontSizeLG:Et.fontSizeLG,titleFontSizeSM:Et.fontSize,inkBarColor:Et.colorPrimary,horizontalMargin:`0 0 ${Et.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Et.paddingSM}px 0`,horizontalItemPaddingSM:`${Et.paddingXS}px 0`,horizontalItemPaddingLG:`${Et.padding}px 0`,verticalItemPadding:`${Et.paddingXS}px ${Et.paddingLG}px`,verticalItemMargin:`${Et.margin}px 0 0 0`,itemColor:Et.colorText,itemSelectedColor:Et.colorPrimary,itemHoverColor:Et.colorPrimaryHover,itemActiveColor:Et.colorPrimaryActive,cardGutter:Et.marginXXS/2}}),Wr=function(Et,It){var Dt={};for(var Lt in Et)Object.prototype.hasOwnProperty.call(Et,Lt)&&It.indexOf(Lt)<0&&(Dt[Lt]=Et[Lt]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Lt=Object.getOwnPropertySymbols(Et);Ut<Lt.length;Ut++)It.indexOf(Lt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(Et,Lt[Ut])&&(Dt[Lt[Ut]]=Et[Lt[Ut]]);return Dt};const mn=Et=>{const{type:It,className:Dt,rootClassName:Lt,size:Ut,onEdit:Qt,hideAdd:yr,centered:cr,addIcon:vr,popupClassName:Dr,children:Ir,items:Ar,animated:qt,style:kr,indicatorSize:Xt}=Et,rr=Wr(Et,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:lr,moreIcon:or=ne.createElement(vt.Z,null)}=rr,{direction:_r,tabs:ur,getPrefixCls:Mr,getPopupContainer:Pt}=ne.useContext(dt.E_),Jt=Mr("tabs",lr),[nr,pr]=Pr(Jt);let fr;It==="editable-card"&&(fr={onEdit:(gn,kn)=>{let{key:Nn,event:yn}=kn;Qt==null||Qt(gn==="add"?yn:Nn,gn)},removeIcon:ne.createElement(Ye.Z,null),addIcon:vr||ne.createElement(x.Z,null),showAdd:yr!==!0});const br=Mr(),wr=Vr(Ar,Ir),Nr=Er(Jt,qt),Kr=(0,Ft.Z)(Ut),Ur=Object.assign(Object.assign({},ur==null?void 0:ur.style),kr);return nr(ne.createElement(ft,Object.assign({direction:_r,getPopupContainer:Pt,moreTransitionName:`${br}-slide-up`},rr,{items:wr,className:me()({[`${Jt}-${Kr}`]:Kr,[`${Jt}-card`]:["card","editable-card"].includes(It),[`${Jt}-editable-card`]:It==="editable-card",[`${Jt}-centered`]:cr},ur==null?void 0:ur.className,Dt,Lt,pr),popupClassName:me()(Dr,pr),style:Ur,editable:fr,moreIcon:or,prefixCls:Jt,animated:Nr,indicatorSize:Xt!=null?Xt:ur==null?void 0:ur.indicatorSize})))};mn.TabPane=Zt;var Gt=mn},17574:function(gr,Wt,ke){"use strict";ke.d(Wt,{default:function(){return Ge}});var Ye=ke(60091),vt=ke(94480),x=ke(52671),Ae=ke(8657),me=ke(54476),re=ke(59301),z={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"},ie=z,oe=ke(7657),se=function(ct,pt){return re.createElement(oe.Z,(0,me.Z)({},ct,{ref:pt,icon:ie}))},pe=re.forwardRef(se),ne=pe,ae=ke(92310),ue=ke.n(ae),de=ke(35654),he=ke(71430),xe=ke(36355),Se=ke(56082),we=ke(62892),be=ke(20648);const Me=4;function Le(Xe){const{dropPosition:ct,dropLevelOffset:pt,prefixCls:ut,indent:rt,direction:qe="ltr"}=Xe,nt=qe==="ltr"?"left":"right",xt=qe==="ltr"?"right":"left",yt={[nt]:-pt*rt+Me,[xt]:0};switch(ct){case-1:yt.top=-3;break;case 1:yt.bottom=-3;break;default:yt.bottom=-3,yt[nt]=rt+Me;break}return re.createElement("div",{style:yt,className:`${ut}-drop-indicator`})}var Ce=ke(71997),Te=re.forwardRef((Xe,ct)=>{const{getPrefixCls:pt,direction:ut,virtual:rt,tree:qe}=re.useContext(xe.E_),{prefixCls:nt,className:xt,showIcon:yt=!1,showLine:Rt,switcherIcon:Ot,blockNode:lt=!1,children:Ue,checkable:$e=!1,selectable:le=!0,draggable:fe,motion:Fe,style:He}=Xe,ye=pt("tree",nt),Re=pt(),ze=Fe!=null?Fe:Object.assign(Object.assign({},(0,we.Z)(Re)),{motionAppear:!1}),Ke=Object.assign(Object.assign({},Xe),{checkable:$e,selectable:le,showIcon:yt,motion:ze,blockNode:lt,showLine:!!Rt,dropIndicatorRender:Le}),[We,st]=(0,be.ZP)(ye),bt=re.useMemo(()=>{if(!fe)return!1;let kt={};switch(typeof fe){case"function":kt.nodeDraggable=fe;break;case"object":kt=Object.assign({},fe);break;default:break}return kt.icon!==!1&&(kt.icon=kt.icon||re.createElement(Se.Z,null)),kt},[fe]),at=kt=>re.createElement(Ce.Z,{prefixCls:ye,switcherIcon:Ot,treeNodeProps:kt,showLine:Rt});return We(re.createElement(Ye.Z,Object.assign({itemHeight:20,ref:ct,virtual:rt},Ke,{style:Object.assign(Object.assign({},qe==null?void 0:qe.style),He),prefixCls:ye,className:ue()({[`${ye}-icon-hide`]:!yt,[`${ye}-block-node`]:lt,[`${ye}-unselectable`]:!le,[`${ye}-rtl`]:ut==="rtl"},qe==null?void 0:qe.className,xt,st),direction:ut,checkable:$e&&re.createElement("span",{className:`${ye}-checkbox-inner`}),selectable:le,switcherIcon:at,draggable:bt}),Ue))}),De;(function(Xe){Xe[Xe.None=0]="None",Xe[Xe.Start=1]="Start",Xe[Xe.End=2]="End"})(De||(De={}));function Ee(Xe,ct){function pt(ut){const{key:rt,children:qe}=ut;ct(rt,ut)!==!1&&Ee(qe||[],ct)}Xe.forEach(pt)}function Pe(Xe){let{treeData:ct,expandedKeys:pt,startKey:ut,endKey:rt}=Xe;const qe=[];let nt=De.None;if(ut&&ut===rt)return[ut];if(!ut||!rt)return[];function xt(yt){return yt===ut||yt===rt}return Ee(ct,yt=>{if(nt===De.End)return!1;if(xt(yt)){if(qe.push(yt),nt===De.None)nt=De.Start;else if(nt===De.Start)return nt=De.End,!1}else nt===De.Start&&qe.push(yt);return pt.includes(yt)}),qe}function Be(Xe,ct){const pt=(0,vt.Z)(ct),ut=[];return Ee(Xe,(rt,qe)=>{const nt=pt.indexOf(rt);return nt!==-1&&(ut.push(qe),pt.splice(nt,1)),!!pt.length}),ut}var Ve=function(Xe,ct){var pt={};for(var ut in Xe)Object.prototype.hasOwnProperty.call(Xe,ut)&&ct.indexOf(ut)<0&&(pt[ut]=Xe[ut]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,ut=Object.getOwnPropertySymbols(Xe);rt<ut.length;rt++)ct.indexOf(ut[rt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,ut[rt])&&(pt[ut[rt]]=Xe[ut[rt]]);return pt};function Ie(Xe){const{isLeaf:ct,expanded:pt}=Xe;return ct?re.createElement(x.Z,null):pt?re.createElement(Ae.Z,null):re.createElement(ne,null)}function Ze(Xe){let{treeData:ct,children:pt}=Xe;return ct||(0,he.zn)(pt)}const Qe=(Xe,ct)=>{var{defaultExpandAll:pt,defaultExpandParent:ut,defaultExpandedKeys:rt}=Xe,qe=Ve(Xe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const nt=re.useRef(),xt=re.useRef(),yt=()=>{const{keyEntities:bt}=(0,he.I8)(Ze(qe));let at;return pt?at=Object.keys(bt):ut?at=(0,de.r7)(qe.expandedKeys||rt||[],bt):at=qe.expandedKeys||rt,at},[Rt,Ot]=re.useState(qe.selectedKeys||qe.defaultSelectedKeys||[]),[lt,Ue]=re.useState(()=>yt());re.useEffect(()=>{"selectedKeys"in qe&&Ot(qe.selectedKeys)},[qe.selectedKeys]),re.useEffect(()=>{"expandedKeys"in qe&&Ue(qe.expandedKeys)},[qe.expandedKeys]);const $e=(bt,at)=>{var kt;return"expandedKeys"in qe||Ue(bt),(kt=qe.onExpand)===null||kt===void 0?void 0:kt.call(qe,bt,at)},le=(bt,at)=>{var kt;const{multiple:Ht}=qe,{node:Ct,nativeEvent:$t}=at,{key:Bt=""}=Ct,St=Ze(qe),ft=Object.assign(Object.assign({},at),{selected:!0}),dt=($t==null?void 0:$t.ctrlKey)||($t==null?void 0:$t.metaKey),Ft=$t==null?void 0:$t.shiftKey;let zt;Ht&&dt?(zt=bt,nt.current=Bt,xt.current=zt,ft.selectedNodes=Be(St,zt)):Ht&&Ft?(zt=Array.from(new Set([].concat((0,vt.Z)(xt.current||[]),(0,vt.Z)(Pe({treeData:St,expandedKeys:lt,startKey:Bt,endKey:nt.current}))))),ft.selectedNodes=Be(St,zt)):(zt=[Bt],nt.current=Bt,xt.current=zt,ft.selectedNodes=Be(St,zt)),(kt=qe.onSelect)===null||kt===void 0||kt.call(qe,zt,ft),"selectedKeys"in qe||Ot(zt)},{getPrefixCls:fe,direction:Fe}=re.useContext(xe.E_),{prefixCls:He,className:ye,showIcon:Re=!0,expandAction:ze="click"}=qe,Ke=Ve(qe,["prefixCls","className","showIcon","expandAction"]),We=fe("tree",He),st=ue()(`${We}-directory`,{[`${We}-directory-rtl`]:Fe==="rtl"},ye);return re.createElement(Te,Object.assign({icon:Ie,ref:ct,blockNode:!0},Ke,{showIcon:Re,expandAction:ze,prefixCls:We,className:st,expandedKeys:lt,selectedKeys:Rt,onSelect:le,onExpand:$e}))};var it=re.forwardRef(Qe);const ht=Te;ht.DirectoryTree=it,ht.TreeNode=Ye.O;var Ge=ht},20648:function(gr,Wt,ke){"use strict";ke.d(Wt,{TM:function(){return ae},Yk:function(){return ne}});var Ye=ke(36237),vt=ke(98447),x=ke(17313),Ae=ke(8378),me=ke(37613),re=ke(83116);const z=new Ye.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ie=(ue,de)=>({[`.${ue}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${de.motionDurationSlow}`}}}),oe=(ue,de)=>({[`.${ue}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:de.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${de.lineWidthBold}px solid ${de.colorPrimary}`,borderRadius:"50%",content:'""'}}}),se=(ue,de)=>{const{treeCls:he,treeNodeCls:xe,treeNodePadding:Se,titleHeight:we,nodeSelectedBg:be,nodeHoverBg:Me}=de,Le=de.paddingXS;return{[he]:Object.assign(Object.assign({},(0,x.Wf)(de)),{background:de.colorBgContainer,borderRadius:de.borderRadius,transition:`background-color ${de.motionDurationSlow}`,[`&${he}-rtl`]:{[`${he}-switcher`]:{"&_close":{[`${he}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${he}-active-focused)`]:Object.assign({},(0,x.oN)(de)),[`${he}-list-holder-inner`]:{alignItems:"flex-start"},[`&${he}-block-node`]:{[`${he}-list-holder-inner`]:{alignItems:"stretch",[`${he}-node-content-wrapper`]:{flex:"auto"},[`${xe}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Se,insetInlineStart:0,border:`1px solid ${de.colorPrimary}`,opacity:0,animationName:z,animationDuration:de.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${xe}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Se}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${he}-node-content-wrapper`]:{color:de.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${he}-node-content-wrapper`]:Object.assign({},(0,x.oN)(de)),[`&:not(${xe}-disabled).filter-node ${he}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${he}-draggable-icon`]:{flexShrink:0,width:we,lineHeight:`${we}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${de.motionDurationSlow}`,[`${xe}:hover &`]:{opacity:.45}},[`&${xe}-disabled`]:{[`${he}-draggable-icon`]:{visibility:"hidden"}}}},[`${he}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:we}},[`${he}-draggable-icon`]:{visibility:"hidden"},[`${he}-switcher`]:Object.assign(Object.assign({},ie(ue,de)),{position:"relative",flex:"none",alignSelf:"stretch",width:we,margin:0,lineHeight:`${we}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${he}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:de.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:we/2,bottom:-Se,marginInlineStart:-1,borderInlineEnd:`1px solid ${de.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:we/2*.8,height:we/2,borderBottom:`1px solid ${de.colorBorder}`,content:'""'}}}),[`${he}-checkbox`]:{top:"initial",marginInlineEnd:Le},[`${he}-node-content-wrapper, ${he}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:we,margin:0,padding:`0 ${de.paddingXS/2}px`,color:"inherit",lineHeight:`${we}px`,background:"transparent",borderRadius:de.borderRadius,cursor:"pointer",transition:`all ${de.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Me},[`&${he}-node-selected`]:{backgroundColor:be},[`${he}-iconEle`]:{display:"inline-block",width:we,height:we,lineHeight:`${we}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${he}-unselectable ${he}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${he}-node-content-wrapper`]:Object.assign({lineHeight:`${we}px`,userSelect:"none"},oe(ue,de)),[`${xe}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${de.colorPrimary}`}},"&-show-line":{[`${he}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:we/2,bottom:-Se,borderInlineEnd:`1px solid ${de.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${he}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${xe}-leaf-last`]:{[`${he}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${we/2}px !important`}}}}})}},pe=ue=>{const{treeCls:de,treeNodeCls:he,treeNodePadding:xe,directoryNodeSelectedBg:Se,directoryNodeSelectedColor:we}=ue;return{[`${de}${de}-directory`]:{[he]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:xe,insetInlineStart:0,transition:`background-color ${ue.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ue.controlItemBgHover}},"> *":{zIndex:1},[`${de}-switcher`]:{transition:`color ${ue.motionDurationMid}`},[`${de}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${de}-node-selected`]:{color:we,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:Se},[`${de}-switcher`]:{color:we},[`${de}-node-content-wrapper`]:{color:we,background:"transparent"}}}}}},ne=(ue,de)=>{const he=`.${ue}`,xe=`${he}-treenode`,Se=de.paddingXS/2,we=(0,me.TS)(de,{treeCls:he,treeNodeCls:xe,treeNodePadding:Se});return[se(ue,we),pe(we)]},ae=ue=>{const{controlHeightSM:de}=ue;return{titleHeight:de,nodeHoverBg:ue.controlItemBgHover,nodeSelectedBg:ue.controlItemBgActive}};Wt.ZP=(0,re.Z)("Tree",(ue,de)=>{let{prefixCls:he}=de;return[{[ue.componentCls]:(0,vt.C2)(`${he}-checkbox`,ue)},ne(he,ue),(0,Ae.Z)(ue)]},ue=>{const{colorTextLightSolid:de,colorPrimary:he}=ue;return Object.assign(Object.assign({},ae(ue)),{directoryNodeSelectedColor:de,directoryNodeSelectedBg:he})})},71997:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return xe}});var Ye=ke(54476),vt=ke(59301),x={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"},Ae=x,me=ke(7657),re=function(we,be){return vt.createElement(me.Z,(0,Ye.Z)({},we,{ref:be,icon:Ae}))},z=vt.forwardRef(re),ie=z,oe=ke(52671),se=ke(58617),pe=ke(15075),ne=ke(43531),ae=ke(92310),ue=ke.n(ae),de=ke(92343),xe=Se=>{const{prefixCls:we,switcherIcon:be,treeNodeProps:Me,showLine:Le}=Se,{isLeaf:Ce,expanded:Ne,loading:Te}=Me;if(Te)return vt.createElement(se.Z,{className:`${we}-switcher-loading-icon`});let De;if(Le&&typeof Le=="object"&&(De=Le.showLeafIcon),Ce){if(!Le)return null;if(typeof De!="boolean"&&De){const Be=typeof De=="function"?De(Me):De,Ve=`${we}-switcher-line-custom-icon`;return(0,de.l$)(Be)?(0,de.Tm)(Be,{className:ue()(Be.props.className||"",Ve)}):Be}return De?vt.createElement(oe.Z,{className:`${we}-switcher-line-icon`}):vt.createElement("span",{className:`${we}-switcher-leaf-line`})}const Ee=`${we}-switcher-icon`,Pe=typeof be=="function"?be(Me):be;return(0,de.l$)(Pe)?(0,de.Tm)(Pe,{className:ue()(Pe.props.className||"",Ee)}):Pe!==void 0?Pe:Le?Ne?vt.createElement(pe.Z,{className:`${we}-switcher-line-icon`}):vt.createElement(ne.Z,{className:`${we}-switcher-line-icon`}):vt.createElement(ie,{className:Ee})}},54580:function(gr,Wt,ke){"use strict";ke.d(Wt,{default:function(){return kr}});var Ye=ke(59301),vt=ke(94480),x=ke(92310),Ae=ke.n(x),me=ke(54476),re=ke(67732),z=ke(83652),ie=ke(42403),oe=ke(158),se=ke(20068),pe=ke(75931),ne=ke(75044),ae=ke(76190),ue=ke(3202),de=ke(26112);function he(Xt,rr){var lr="cannot ".concat(Xt.method," ").concat(Xt.action," ").concat(rr.status,"'"),or=new Error(lr);return or.status=rr.status,or.method=Xt.method,or.url=Xt.action,or}function xe(Xt){var rr=Xt.responseText||Xt.response;if(!rr)return rr;try{return JSON.parse(rr)}catch(lr){return rr}}function Se(Xt){var rr=new XMLHttpRequest;Xt.onProgress&&rr.upload&&(rr.upload.onprogress=function(ur){ur.total>0&&(ur.percent=ur.loaded/ur.total*100),Xt.onProgress(ur)});var lr=new FormData;Xt.data&&Object.keys(Xt.data).forEach(function(_r){var ur=Xt.data[_r];if(Array.isArray(ur)){ur.forEach(function(Mr){lr.append("".concat(_r,"[]"),Mr)});return}lr.append(_r,ur)}),Xt.file instanceof Blob?lr.append(Xt.filename,Xt.file,Xt.file.name):lr.append(Xt.filename,Xt.file),rr.onerror=function(ur){Xt.onError(ur)},rr.onload=function(){return rr.status<200||rr.status>=300?Xt.onError(he(Xt,rr),xe(rr)):Xt.onSuccess(xe(rr),rr)},rr.open(Xt.method,Xt.action,!0),Xt.withCredentials&&"withCredentials"in rr&&(rr.withCredentials=!0);var or=Xt.headers||{};return or["X-Requested-With"]!==null&&rr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(or).forEach(function(_r){or[_r]!==null&&rr.setRequestHeader(_r,or[_r])}),rr.send(lr),{abort:function(){rr.abort()}}}var we=+new Date,be=0;function Me(){return"rc-upload-".concat(we,"-").concat(++be)}var Le=ke(48736),Ce=function(Xt,rr){if(Xt&&rr){var lr=Array.isArray(rr)?rr:rr.split(","),or=Xt.name||"",_r=Xt.type||"",ur=_r.replace(/\/.*$/,"");return lr.some(function(Mr){var Pt=Mr.trim();if(/^\*(\/\*)?$/.test(Mr))return!0;if(Pt.charAt(0)==="."){var Jt=or.toLowerCase(),nr=Pt.toLowerCase(),pr=[nr];return(nr===".jpg"||nr===".jpeg")&&(pr=[".jpg",".jpeg"]),pr.some(function(fr){return Jt.endsWith(fr)})}return/\/\*$/.test(Pt)?ur===Pt.replace(/\/.*$/,""):_r===Pt?!0:/^\w+$/.test(Pt)?((0,Le.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Pt,"'.Skip for check.")),!0):!1})}return!0};function Ne(Xt,rr){var lr=Xt.createReader(),or=[];function _r(){lr.readEntries(function(ur){var Mr=Array.prototype.slice.apply(ur);or=or.concat(Mr);var Pt=!Mr.length;Pt?rr(or):_r()})}_r()}var Te=function(rr,lr,or){var _r=function ur(Mr,Pt){Mr&&(Mr.path=Pt||"",Mr.isFile?Mr.file(function(Jt){or(Jt)&&(Mr.fullPath&&!Jt.webkitRelativePath&&(Object.defineProperties(Jt,{webkitRelativePath:{writable:!0}}),Jt.webkitRelativePath=Mr.fullPath.replace(/^\//,""),Object.defineProperties(Jt,{webkitRelativePath:{writable:!1}})),lr([Jt]))}):Mr.isDirectory&&Ne(Mr,function(Jt){Jt.forEach(function(nr){ur(nr,"".concat(Pt).concat(Mr.name,"/"))})}))};rr.forEach(function(ur){_r(ur.webkitGetAsEntry())})},De=Te,Ee=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Pe=function(Xt){(0,ie.Z)(lr,Xt);var rr=(0,oe.Z)(lr);function lr(){var or;(0,re.Z)(this,lr);for(var _r=arguments.length,ur=new Array(_r),Mr=0;Mr<_r;Mr++)ur[Mr]=arguments[Mr];return or=rr.call.apply(rr,[this].concat(ur)),or.state={uid:Me()},or.reqs={},or.fileInput=void 0,or._isMounted=void 0,or.onChange=function(Pt){var Jt=or.props,nr=Jt.accept,pr=Jt.directory,fr=Pt.target.files,br=(0,vt.Z)(fr).filter(function(wr){return!pr||Ce(wr,nr)});or.uploadFiles(br),or.reset()},or.onClick=function(Pt){var Jt=or.fileInput;if(Jt){var nr=Pt.target,pr=or.props.onClick;if(nr&&nr.tagName==="BUTTON"){var fr=Jt.parentNode;fr.focus(),nr.blur()}Jt.click(),pr&&pr(Pt)}},or.onKeyDown=function(Pt){Pt.key==="Enter"&&or.onClick(Pt)},or.onFileDrop=function(Pt){var Jt=or.props.multiple;if(Pt.preventDefault(),Pt.type!=="dragover")if(or.props.directory)De(Array.prototype.slice.call(Pt.dataTransfer.items),or.uploadFiles,function(pr){return Ce(pr,or.props.accept)});else{var nr=(0,vt.Z)(Pt.dataTransfer.files).filter(function(pr){return Ce(pr,or.props.accept)});Jt===!1&&(nr=nr.slice(0,1)),or.uploadFiles(nr)}},or.uploadFiles=function(Pt){var Jt=(0,vt.Z)(Pt),nr=Jt.map(function(pr){return pr.uid=Me(),or.processFile(pr,Jt)});Promise.all(nr).then(function(pr){var fr=or.props.onBatchStart;fr==null||fr(pr.map(function(br){var wr=br.origin,Nr=br.parsedFile;return{file:wr,parsedFile:Nr}})),pr.filter(function(br){return br.parsedFile!==null}).forEach(function(br){or.post(br)})})},or.processFile=function(){var Pt=(0,ue.Z)((0,ne.Z)().mark(function Jt(nr,pr){var fr,br,wr,Nr,Kr,Ur,gn,kn,Nn;return(0,ne.Z)().wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:if(fr=or.props.beforeUpload,br=nr,!fr){rn.next=14;break}return rn.prev=3,rn.next=6,fr(nr,pr);case 6:br=rn.sent,rn.next=12;break;case 9:rn.prev=9,rn.t0=rn.catch(3),br=!1;case 12:if(br!==!1){rn.next=14;break}return rn.abrupt("return",{origin:nr,parsedFile:null,action:null,data:null});case 14:if(wr=or.props.action,typeof wr!="function"){rn.next=21;break}return rn.next=18,wr(nr);case 18:Nr=rn.sent,rn.next=22;break;case 21:Nr=wr;case 22:if(Kr=or.props.data,typeof Kr!="function"){rn.next=29;break}return rn.next=26,Kr(nr);case 26:Ur=rn.sent,rn.next=30;break;case 29:Ur=Kr;case 30:return gn=((0,ae.Z)(br)==="object"||typeof br=="string")&&br?br:nr,gn instanceof File?kn=gn:kn=new File([gn],nr.name,{type:nr.type}),Nn=kn,Nn.uid=nr.uid,rn.abrupt("return",{origin:nr,data:Ur,parsedFile:Nn,action:Nr});case 35:case"end":return rn.stop()}},Jt,null,[[3,9]])}));return function(Jt,nr){return Pt.apply(this,arguments)}}(),or.saveFileInput=function(Pt){or.fileInput=Pt},or}return(0,z.Z)(lr,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(_r){var ur=this,Mr=_r.data,Pt=_r.origin,Jt=_r.action,nr=_r.parsedFile;if(this._isMounted){var pr=this.props,fr=pr.onStart,br=pr.customRequest,wr=pr.name,Nr=pr.headers,Kr=pr.withCredentials,Ur=pr.method,gn=Pt.uid,kn=br||Se,Nn={action:Jt,filename:wr,data:Mr,file:nr,headers:Nr,withCredentials:Kr,method:Ur||"post",onProgress:function(rn){var $n=ur.props.onProgress;$n==null||$n(rn,nr)},onSuccess:function(rn,$n){var Tn=ur.props.onSuccess;Tn==null||Tn(rn,nr,$n),delete ur.reqs[gn]},onError:function(rn,$n){var Tn=ur.props.onError;Tn==null||Tn(rn,$n,nr),delete ur.reqs[gn]}};fr(Pt),this.reqs[gn]=kn(Nn)}}},{key:"reset",value:function(){this.setState({uid:Me()})}},{key:"abort",value:function(_r){var ur=this.reqs;if(_r){var Mr=_r.uid?_r.uid:_r;ur[Mr]&&ur[Mr].abort&&ur[Mr].abort(),delete ur[Mr]}else Object.keys(ur).forEach(function(Pt){ur[Pt]&&ur[Pt].abort&&ur[Pt].abort(),delete ur[Pt]})}},{key:"render",value:function(){var _r=this.props,ur=_r.component,Mr=_r.prefixCls,Pt=_r.className,Jt=_r.disabled,nr=_r.id,pr=_r.style,fr=_r.multiple,br=_r.accept,wr=_r.capture,Nr=_r.children,Kr=_r.directory,Ur=_r.openFileDialogOnClick,gn=_r.onMouseEnter,kn=_r.onMouseLeave,Nn=(0,pe.Z)(_r,Ee),yn=Ae()((0,se.Z)((0,se.Z)((0,se.Z)({},Mr,!0),"".concat(Mr,"-disabled"),Jt),Pt,Pt)),rn=Kr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},$n=Jt?{}:{onClick:Ur?this.onClick:function(){},onKeyDown:Ur?this.onKeyDown:function(){},onMouseEnter:gn,onMouseLeave:kn,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Ye.createElement(ur,(0,me.Z)({},$n,{className:yn,role:"button",style:pr}),Ye.createElement("input",(0,me.Z)({},(0,de.Z)(Nn,{aria:!0,data:!0}),{id:nr,disabled:Jt,type:"file",ref:this.saveFileInput,onClick:function(Zn){return Zn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:br},rn,{multiple:fr,onChange:this.onChange},wr!=null?{capture:wr}:{})),Nr)}}]),lr}(Ye.Component),Be=Pe;function Ve(){}var Ie=function(Xt){(0,ie.Z)(lr,Xt);var rr=(0,oe.Z)(lr);function lr(){var or;(0,re.Z)(this,lr);for(var _r=arguments.length,ur=new Array(_r),Mr=0;Mr<_r;Mr++)ur[Mr]=arguments[Mr];return or=rr.call.apply(rr,[this].concat(ur)),or.uploader=void 0,or.saveUploader=function(Pt){or.uploader=Pt},or}return(0,z.Z)(lr,[{key:"abort",value:function(_r){this.uploader.abort(_r)}},{key:"render",value:function(){return Ye.createElement(Be,(0,me.Z)({},this.props,{ref:this.saveUploader}))}}]),lr}(Ye.Component);Ie.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ve,onError:Ve,onSuccess:Ve,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ze=Ie,Qe=Ze,tt=ke(18929),it=ke(4676),ht=ke(36355),Ge=ke(1684),Xe=ke(9763),ct=ke(31724),pt={icon:function(rr,lr){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:lr}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:rr}}]}},name:"file",theme:"twotone"},ut=pt,rt=ke(7657),qe=function(rr,lr){return Ye.createElement(rt.Z,(0,me.Z)({},rr,{ref:lr,icon:ut}))},nt=Ye.forwardRef(qe),xt=nt,yt=ke(58617),Rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Ot=Rt,lt=function(rr,lr){return Ye.createElement(rt.Z,(0,me.Z)({},rr,{ref:lr,icon:Ot}))},Ue=Ye.forwardRef(lt),$e=Ue,le={icon:function(rr,lr){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:rr}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:lr}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:lr}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:lr}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:rr}}]}},name:"picture",theme:"twotone"},fe=le,Fe=function(rr,lr){return Ye.createElement(rt.Z,(0,me.Z)({},rr,{ref:lr,icon:fe}))},He=Ye.forwardRef(Fe),ye=He,Re=ke(77900),ze=ke(56762),Ke=ke(62892),We=ke(92343),st=ke(3113);function bt(Xt){return Object.assign(Object.assign({},Xt),{lastModified:Xt.lastModified,lastModifiedDate:Xt.lastModifiedDate,name:Xt.name,size:Xt.size,type:Xt.type,uid:Xt.uid,percent:0,originFileObj:Xt})}function at(Xt,rr){const lr=(0,vt.Z)(rr),or=lr.findIndex(_r=>{let{uid:ur}=_r;return ur===Xt.uid});return or===-1?lr.push(Xt):lr[or]=Xt,lr}function kt(Xt,rr){const lr=Xt.uid!==void 0?"uid":"name";return rr.filter(or=>or[lr]===Xt[lr])[0]}function Ht(Xt,rr){const lr=Xt.uid!==void 0?"uid":"name",or=rr.filter(_r=>_r[lr]!==Xt[lr]);return or.length===rr.length?null:or}const Ct=function(){const rr=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),or=rr[rr.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(or)||[""])[0]},$t=Xt=>Xt.indexOf("image/")===0,Bt=Xt=>{if(Xt.type&&!Xt.thumbUrl)return $t(Xt.type);const rr=Xt.thumbUrl||Xt.url||"",lr=Ct(rr);return/^data:image\//.test(rr)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(lr)?!0:!(/^data:/.test(rr)||lr)},St=200;function ft(Xt){return new Promise(rr=>{if(!Xt.type||!$t(Xt.type)){rr("");return}const lr=document.createElement("canvas");lr.width=St,lr.height=St,lr.style.cssText=`position: fixed; left: 0; top: 0; width: ${St}px; height: ${St}px; z-index: 9999; display: none;`,document.body.appendChild(lr);const or=lr.getContext("2d"),_r=new Image;if(_r.onload=()=>{const{width:ur,height:Mr}=_r;let Pt=St,Jt=St,nr=0,pr=0;ur>Mr?(Jt=Mr*(St/ur),pr=-(Jt-Pt)/2):(Pt=ur*(St/Mr),nr=-(Pt-Jt)/2),or.drawImage(_r,nr,pr,Pt,Jt);const fr=lr.toDataURL();document.body.removeChild(lr),window.URL.revokeObjectURL(_r.src),rr(fr)},_r.crossOrigin="anonymous",Xt.type.startsWith("image/svg+xml")){const ur=new FileReader;ur.onload=()=>{ur.result&&(_r.src=ur.result)},ur.readAsDataURL(Xt)}else if(Xt.type.startsWith("image/gif")){const ur=new FileReader;ur.onload=()=>{ur.result&&rr(ur.result)},ur.readAsDataURL(Xt)}else _r.src=window.URL.createObjectURL(Xt)})}var dt=ke(26227),Ft=ke(41464),zt=ke(15277),Zt=ke(93948),tr=ke(6848),Er=Ye.forwardRef((Xt,rr)=>{let{prefixCls:lr,className:or,style:_r,locale:ur,listType:Mr,file:Pt,items:Jt,progress:nr,iconRender:pr,actionIconRender:fr,itemRender:br,isImgUrl:wr,showPreviewIcon:Nr,showRemoveIcon:Kr,showDownloadIcon:Ur,previewIcon:gn,removeIcon:kn,downloadIcon:Nn,onPreview:yn,onDownload:rn,onClose:$n}=Xt;var Tn,Zn;const{status:wn}=Pt,[Mn,Jn]=Ye.useState(wn);Ye.useEffect(()=>{wn!=="removed"&&Jn(wn)},[wn]);const[zn,hi]=Ye.useState(!1);Ye.useEffect(()=>{const Li=setTimeout(()=>{hi(!0)},300);return()=>{clearTimeout(Li)}},[]);const Ei=pr(Pt);let Rn=Ye.createElement("div",{className:`${lr}-icon`},Ei);if(Mr==="picture"||Mr==="picture-card"||Mr==="picture-circle")if(Mn==="uploading"||!Pt.thumbUrl&&!Pt.url){const Li=Ae()(`${lr}-list-item-thumbnail`,{[`${lr}-list-item-file`]:Mn!=="uploading"});Rn=Ye.createElement("div",{className:Li},Ei)}else{const Li=wr!=null&&wr(Pt)?Ye.createElement("img",{src:Pt.thumbUrl||Pt.url,alt:Pt.name,className:`${lr}-list-item-image`,crossOrigin:Pt.crossOrigin}):Ei,Bi=Ae()(`${lr}-list-item-thumbnail`,{[`${lr}-list-item-file`]:wr&&!wr(Pt)});Rn=Ye.createElement("a",{className:Bi,onClick:ni=>yn(Pt,ni),href:Pt.url||Pt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Li)}const Jr=Ae()(`${lr}-list-item`,`${lr}-list-item-${Mn}`),Xr=typeof Pt.linkProps=="string"?JSON.parse(Pt.linkProps):Pt.linkProps,Hn=Kr?fr((typeof kn=="function"?kn(Pt):kn)||Ye.createElement(dt.Z,null),()=>$n(Pt),lr,ur.removeFile):null,Dn=Ur&&Mn==="done"?fr((typeof Nn=="function"?Nn(Pt):Nn)||Ye.createElement(Ft.Z,null),()=>rn(Pt),lr,ur.downloadFile):null,ri=Mr!=="picture-card"&&Mr!=="picture-circle"&&Ye.createElement("span",{key:"download-delete",className:Ae()(`${lr}-list-item-actions`,{picture:Mr==="picture"})},Dn,Hn),ai=Ae()(`${lr}-list-item-name`),Qr=Pt.url?[Ye.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ai,title:Pt.name},Xr,{href:Pt.url,onClick:Li=>yn(Pt,Li)}),Pt.name),ri]:[Ye.createElement("span",{key:"view",className:ai,onClick:Li=>yn(Pt,Li),title:Pt.name},Pt.name),ri],qr={pointerEvents:"none",opacity:.5},An=Nr?Ye.createElement("a",{href:Pt.url||Pt.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Pt.url||Pt.thumbUrl?void 0:qr,onClick:Li=>yn(Pt,Li),title:ur.previewFile},typeof gn=="function"?gn(Pt):gn||Ye.createElement(zt.Z,null)):null,gi=(Mr==="picture-card"||Mr==="picture-circle")&&Mn!=="uploading"&&Ye.createElement("span",{className:`${lr}-list-item-actions`},An,Mn==="done"&&Dn,Hn),{getPrefixCls:nn}=Ye.useContext(ht.E_),pn=nn(),qn=Ye.createElement("div",{className:Jr},Rn,Qr,gi,zn&&Ye.createElement(Re.default,{motionName:`${pn}-fade`,visible:Mn==="uploading",motionDeadline:2e3},Li=>{let{className:Bi}=Li;const ni="percent"in Pt?Ye.createElement(Zt.Z,Object.assign({},nr,{type:"line",percent:Pt.percent,"aria-label":Pt["aria-label"],"aria-labelledby":Pt["aria-labelledby"]})):null;return Ye.createElement("div",{className:Ae()(`${lr}-list-item-progress`,Bi)},ni)})),li=Pt.response&&typeof Pt.response=="string"?Pt.response:((Tn=Pt.error)===null||Tn===void 0?void 0:Tn.statusText)||((Zn=Pt.error)===null||Zn===void 0?void 0:Zn.message)||ur.uploadError,ji=Mn==="error"?Ye.createElement(tr.Z,{title:li,getPopupContainer:Li=>Li.parentNode},qn):qn;return Ye.createElement("div",{className:Ae()(`${lr}-list-item-container`,or),style:_r,ref:rr},br?br(ji,Pt,Jt,{download:rn.bind(null,Pt),preview:yn.bind(null,Pt),remove:$n.bind(null,Pt)}):ji)});const zr=(Xt,rr)=>{const{listType:lr="text",previewFile:or=ft,onPreview:_r,onDownload:ur,onRemove:Mr,locale:Pt,iconRender:Jt,isImageUrl:nr=Bt,prefixCls:pr,items:fr=[],showPreviewIcon:br=!0,showRemoveIcon:wr=!0,showDownloadIcon:Nr=!1,removeIcon:Kr,previewIcon:Ur,downloadIcon:gn,progress:kn={size:[-1,2],showInfo:!1},appendAction:Nn,appendActionVisible:yn=!0,itemRender:rn,disabled:$n}=Xt,Tn=(0,ze.Z)(),[Zn,wn]=Ye.useState(!1);Ye.useEffect(()=>{lr!=="picture"&&lr!=="picture-card"&&lr!=="picture-circle"||(fr||[]).forEach(qr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(qr.originFileObj instanceof File||qr.originFileObj instanceof Blob)||qr.thumbUrl!==void 0||(qr.thumbUrl="",or&&or(qr.originFileObj).then(An=>{qr.thumbUrl=An||"",Tn()}))})},[lr,fr,or]),Ye.useEffect(()=>{wn(!0)},[]);const Mn=(qr,An)=>{if(_r)return An==null||An.preventDefault(),_r(qr)},Jn=qr=>{typeof ur=="function"?ur(qr):qr.url&&window.open(qr.url)},zn=qr=>{Mr==null||Mr(qr)},hi=qr=>{if(Jt)return Jt(qr,lr);const An=qr.status==="uploading",gi=nr&&nr(qr)?Ye.createElement(ye,null):Ye.createElement(xt,null);let nn=An?Ye.createElement(yt.Z,null):Ye.createElement($e,null);return lr==="picture"?nn=An?Ye.createElement(yt.Z,null):gi:(lr==="picture-card"||lr==="picture-circle")&&(nn=An?Pt.uploading:gi),nn},Ei=(qr,An,gi,nn)=>{const pn={type:"text",size:"small",title:nn,onClick:qn=>{An(),(0,We.l$)(qr)&&qr.props.onClick&&qr.props.onClick(qn)},className:`${gi}-list-item-action`,disabled:$n};if((0,We.l$)(qr)){const qn=(0,We.Tm)(qr,Object.assign(Object.assign({},qr.props),{onClick:()=>{}}));return Ye.createElement(st.ZP,Object.assign({},pn,{icon:qn}))}return Ye.createElement(st.ZP,Object.assign({},pn),Ye.createElement("span",null,qr))};Ye.useImperativeHandle(rr,()=>({handlePreview:Mn,handleDownload:Jn}));const{getPrefixCls:Rn}=Ye.useContext(ht.E_),Jr=Rn("upload",pr),Xr=Rn(),Hn=Ae()(`${Jr}-list`,`${Jr}-list-${lr}`),Dn=(0,vt.Z)(fr.map(qr=>({key:qr.uid,file:qr})));let ai={motionDeadline:2e3,motionName:`${Jr}-${lr==="picture-card"||lr==="picture-circle"?"animate-inline":"animate"}`,keys:Dn,motionAppear:Zn};const Qr=Ye.useMemo(()=>{const qr=Object.assign({},(0,Ke.Z)(Xr));return delete qr.onAppearEnd,delete qr.onEnterEnd,delete qr.onLeaveEnd,qr},[Xr]);return lr!=="picture-card"&&lr!=="picture-circle"&&(ai=Object.assign(Object.assign({},Qr),ai)),Ye.createElement("div",{className:Hn},Ye.createElement(Re.CSSMotionList,Object.assign({},ai,{component:!1}),qr=>{let{key:An,file:gi,className:nn,style:pn}=qr;return Ye.createElement(Er,{key:An,locale:Pt,prefixCls:Jr,className:nn,style:pn,file:gi,items:fr,progress:kn,listType:lr,isImgUrl:nr,showPreviewIcon:br,showRemoveIcon:wr,showDownloadIcon:Nr,removeIcon:Kr,previewIcon:Ur,downloadIcon:gn,iconRender:hi,actionIconRender:Ei,itemRender:rn,onPreview:Mn,onDownload:Jn,onClose:zn})}),Nn&&Ye.createElement(Re.default,Object.assign({},ai,{visible:yn,forceRender:!0}),qr=>{let{className:An,style:gi}=qr;return(0,We.Tm)(Nn,nn=>({className:Ae()(nn.className,An),style:Object.assign(Object.assign(Object.assign({},gi),{pointerEvents:An?"none":void 0}),nn.style)}))}))};var Tr=Ye.forwardRef(zr),Vr=ke(17313),sn=ke(8378),vn=ke(83116),en=ke(37613),_n=Xt=>{const{componentCls:rr,iconCls:lr}=Xt;return{[`${rr}-wrapper`]:{[`${rr}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Xt.colorFillAlter,border:`${Xt.lineWidth}px dashed ${Xt.colorBorder}`,borderRadius:Xt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Xt.motionDurationSlow}`,[rr]:{padding:`${Xt.padding}px 0`},[`${rr}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${rr}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${rr}-disabled):hover`]:{borderColor:Xt.colorPrimaryHover},[`p${rr}-drag-icon`]:{marginBottom:Xt.margin,[lr]:{color:Xt.colorPrimary,fontSize:Xt.uploadThumbnailSize}},[`p${rr}-text`]:{margin:`0 0 ${Xt.marginXXS}px`,color:Xt.colorTextHeading,fontSize:Xt.fontSizeLG},[`p${rr}-hint`]:{color:Xt.colorTextDescription,fontSize:Xt.fontSize},[`&${rr}-disabled`]:{cursor:"not-allowed",[`p${rr}-drag-icon ${lr},
|
|
|
p${rr}-text,
|
|
|
p${rr}-hint
|
|
|
`]:{color:Xt.colorTextDisabled}}}}}},Ln=Xt=>{const{componentCls:rr,antCls:lr,iconCls:or,fontSize:_r,lineHeight:ur}=Xt,Mr=`${rr}-list-item`,Pt=`${Mr}-actions`,Jt=`${Mr}-action`,nr=Math.round(_r*ur);return{[`${rr}-wrapper`]:{[`${rr}-list`]:Object.assign(Object.assign({},(0,Vr.dF)()),{lineHeight:Xt.lineHeight,[Mr]:{position:"relative",height:Xt.lineHeight*_r,marginTop:Xt.marginXS,fontSize:_r,display:"flex",alignItems:"center",transition:`background-color ${Xt.motionDurationSlow}`,"&:hover":{backgroundColor:Xt.controlItemBgHover},[`${Mr}-name`]:Object.assign(Object.assign({},Vr.vS),{padding:`0 ${Xt.paddingXS}px`,lineHeight:ur,flex:"auto",transition:`all ${Xt.motionDurationSlow}`}),[Pt]:{[Jt]:{opacity:0},[`${Jt}${lr}-btn-sm`]:{height:nr,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${Jt}:focus-visible,
|
|
|
&.picture ${Jt}
|
|
|
`]:{opacity:1},[or]:{color:Xt.actionsColor,transition:`all ${Xt.motionDurationSlow}`},[`&:hover ${or}`]:{color:Xt.colorText}},[`${rr}-icon ${or}`]:{color:Xt.colorTextDescription,fontSize:_r},[`${Mr}-progress`]:{position:"absolute",bottom:-Xt.uploadProgressOffset,width:"100%",paddingInlineStart:_r+Xt.paddingXS,fontSize:_r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Mr}:hover ${Jt}`]:{opacity:1,color:Xt.colorText},[`${Mr}-error`]:{color:Xt.colorError,[`${Mr}-name, ${rr}-icon ${or}`]:{color:Xt.colorError},[Pt]:{[`${or}, ${or}:hover`]:{color:Xt.colorError},[Jt]:{opacity:1}}},[`${rr}-list-item-container`]:{transition:`opacity ${Xt.motionDurationSlow}, height ${Xt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Un=ke(36237),Vn=ke(1950);const $r=new Un.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yr=new Un.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var cn=Xt=>{const{componentCls:rr}=Xt,lr=`${rr}-animate-inline`;return[{[`${rr}-wrapper`]:{[`${lr}-appear, ${lr}-enter, ${lr}-leave`]:{animationDuration:Xt.motionDurationSlow,animationTimingFunction:Xt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${lr}-appear, ${lr}-enter`]:{animationName:$r},[`${lr}-leave`]:{animationName:Yr}}},{[`${rr}-wrapper`]:(0,Vn.J$)(Xt)},$r,Yr]},Pr=ke(30071),Wr=ke(64993);const mn=Xt=>{const{componentCls:rr,iconCls:lr,uploadThumbnailSize:or,uploadProgressOffset:_r}=Xt,ur=`${rr}-list`,Mr=`${ur}-item`;return{[`${rr}-wrapper`]:{[`
|
|
|
${ur}${ur}-picture,
|
|
|
${ur}${ur}-picture-card,
|
|
|
${ur}${ur}-picture-circle
|
|
|
`]:{[Mr]:{position:"relative",height:or+Xt.lineWidth*2+Xt.paddingXS*2,padding:Xt.paddingXS,border:`${Xt.lineWidth}px ${Xt.lineType} ${Xt.colorBorder}`,borderRadius:Xt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Mr}-thumbnail`]:Object.assign(Object.assign({},Vr.vS),{width:or,height:or,lineHeight:`${or+Xt.paddingSM}px`,textAlign:"center",flex:"none",[lr]:{fontSize:Xt.fontSizeHeading2,color:Xt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Mr}-progress`]:{bottom:_r,width:`calc(100% - ${Xt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:or+Xt.paddingXS}},[`${Mr}-error`]:{borderColor:Xt.colorError,[`${Mr}-thumbnail ${lr}`]:{[`svg path[fill='${Pr.blue[0]}']`]:{fill:Xt.colorErrorBg},[`svg path[fill='${Pr.blue.primary}']`]:{fill:Xt.colorError}}},[`${Mr}-uploading`]:{borderStyle:"dashed",[`${Mr}-name`]:{marginBottom:_r}}},[`${ur}${ur}-picture-circle ${Mr}`]:{[`&, &::before, ${Mr}-thumbnail`]:{borderRadius:"50%"}}}}},Gt=Xt=>{const{componentCls:rr,iconCls:lr,fontSizeLG:or,colorTextLightSolid:_r}=Xt,ur=`${rr}-list`,Mr=`${ur}-item`,Pt=Xt.uploadPicCardSize;return{[`
|
|
|
${rr}-wrapper${rr}-picture-card-wrapper,
|
|
|
${rr}-wrapper${rr}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Vr.dF)()),{display:"inline-block",width:"100%",[`${rr}${rr}-select`]:{width:Pt,height:Pt,marginInlineEnd:Xt.marginXS,marginBottom:Xt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Xt.colorFillAlter,border:`${Xt.lineWidth}px dashed ${Xt.colorBorder}`,borderRadius:Xt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Xt.motionDurationSlow}`,[`> ${rr}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${rr}-disabled):hover`]:{borderColor:Xt.colorPrimary}},[`${ur}${ur}-picture-card, ${ur}${ur}-picture-circle`]:{[`${ur}-item-container`]:{display:"inline-block",width:Pt,height:Pt,marginBlock:`0 ${Xt.marginXS}px`,marginInline:`0 ${Xt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Mr]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Xt.paddingXS*2}px)`,height:`calc(100% - ${Xt.paddingXS*2}px)`,backgroundColor:Xt.colorBgMask,opacity:0,transition:`all ${Xt.motionDurationSlow}`,content:'" "'}},[`${Mr}:hover`]:{[`&::before, ${Mr}-actions`]:{opacity:1}},[`${Mr}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Xt.motionDurationSlow}`,[`${lr}-eye, ${lr}-download, ${lr}-delete`]:{zIndex:10,width:or,margin:`0 ${Xt.marginXXS}px`,fontSize:or,cursor:"pointer",transition:`all ${Xt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Mr}-actions, ${Mr}-actions:hover`]:{[`${lr}-eye, ${lr}-download, ${lr}-delete`]:{color:new Wr.C(_r).setAlpha(.65).toRgbString(),"&:hover":{color:_r}}},[`${Mr}-thumbnail, ${Mr}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Mr}-name`]:{display:"none",textAlign:"center"},[`${Mr}-file + ${Mr}-name`]:{position:"absolute",bottom:Xt.margin,display:"block",width:`calc(100% - ${Xt.paddingXS*2}px)`},[`${Mr}-uploading`]:{[`&${Mr}`]:{backgroundColor:Xt.colorFillAlter},[`&::before, ${lr}-eye, ${lr}-download, ${lr}-delete`]:{display:"none"}},[`${Mr}-progress`]:{bottom:Xt.marginXL,width:`calc(100% - ${Xt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${rr}-wrapper${rr}-picture-circle-wrapper`]:{[`${rr}${rr}-select`]:{borderRadius:"50%"}}}};var It=Xt=>{const{componentCls:rr}=Xt;return{[`${rr}-rtl`]:{direction:"rtl"}}};const Dt=Xt=>{const{componentCls:rr,colorTextDisabled:lr}=Xt;return{[`${rr}-wrapper`]:Object.assign(Object.assign({},(0,Vr.Wf)(Xt)),{[rr]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${rr}-select`]:{display:"inline-block"},[`${rr}-disabled`]:{color:lr,cursor:"not-allowed"}})}};var Lt=(0,vn.Z)("Upload",Xt=>{const{fontSizeHeading3:rr,fontSize:lr,lineHeight:or,lineWidth:_r,controlHeightLG:ur}=Xt,Mr=Math.round(lr*or),Pt=(0,en.TS)(Xt,{uploadThumbnailSize:rr*2,uploadProgressOffset:Mr/2+_r,uploadPicCardSize:ur*2.55});return[Dt(Pt),_n(Pt),mn(Pt),Gt(Pt),Ln(Pt),cn(Pt),It(Pt),(0,sn.Z)(Pt)]},Xt=>({actionsColor:Xt.colorTextDescription})),Ut=function(Xt,rr,lr,or){function _r(ur){return ur instanceof lr?ur:new lr(function(Mr){Mr(ur)})}return new(lr||(lr=Promise))(function(ur,Mr){function Pt(pr){try{nr(or.next(pr))}catch(fr){Mr(fr)}}function Jt(pr){try{nr(or.throw(pr))}catch(fr){Mr(fr)}}function nr(pr){pr.done?ur(pr.value):_r(pr.value).then(Pt,Jt)}nr((or=or.apply(Xt,rr||[])).next())})};const Qt=`__LIST_IGNORE_${Date.now()}__`,yr=(Xt,rr)=>{const{fileList:lr,defaultFileList:or,onRemove:_r,showUploadList:ur=!0,listType:Mr="text",onPreview:Pt,onDownload:Jt,onChange:nr,onDrop:pr,previewFile:fr,disabled:br,locale:wr,iconRender:Nr,isImageUrl:Kr,progress:Ur,prefixCls:gn,className:kn,type:Nn="select",children:yn,style:rn,itemRender:$n,maxCount:Tn,data:Zn={},multiple:wn=!1,action:Mn="",accept:Jn="",supportServerRender:zn=!0,rootClassName:hi}=Xt,Ei=Ye.useContext(Ge.Z),Rn=br!=null?br:Ei,[Jr,Xr]=(0,tt.Z)(or||[],{value:lr,postState:Oi=>Oi!=null?Oi:[]}),[Hn,Dn]=Ye.useState("drop"),ri=Ye.useRef(null);Ye.useMemo(()=>{const Oi=Date.now();(lr||[]).forEach((Fi,ka)=>{!Fi.uid&&!Object.isFrozen(Fi)&&(Fi.uid=`__AUTO__${Oi}_${ka}__`)})},[lr]);const ai=(Oi,Fi,ka)=>{let Vi=(0,vt.Z)(Fi),ia=!1;Tn===1?Vi=Vi.slice(-1):Tn&&(ia=Vi.length>Tn,Vi=Vi.slice(0,Tn)),(0,it.flushSync)(()=>{Xr(Vi)});const da={file:Oi,fileList:Vi};ka&&(da.event=ka),(!ia||Vi.some(sa=>sa.uid===Oi.uid))&&(0,it.flushSync)(()=>{nr==null||nr(da)})},Qr=(Oi,Fi)=>Ut(void 0,void 0,void 0,function*(){const{beforeUpload:ka,transformFile:Vi}=Xt;let ia=Oi;if(ka){const da=yield ka(Oi,Fi);if(da===!1)return!1;if(delete Oi[Qt],da===Qt)return Object.defineProperty(Oi,Qt,{value:!0,configurable:!0}),!1;typeof da=="object"&&da&&(ia=da)}return Vi&&(ia=yield Vi(ia)),ia}),qr=Oi=>{const Fi=Oi.filter(ia=>!ia.file[Qt]);if(!Fi.length)return;const ka=Fi.map(ia=>bt(ia.file));let Vi=(0,vt.Z)(Jr);ka.forEach(ia=>{Vi=at(ia,Vi)}),ka.forEach((ia,da)=>{let sa=ia;if(Fi[da].parsedFile)ia.status="uploading";else{const{originFileObj:ui}=ia;let Di;try{Di=new File([ui],ui.name,{type:ui.type})}catch(Mi){Di=new Blob([ui],{type:ui.type}),Di.name=ui.name,Di.lastModifiedDate=new Date,Di.lastModified=new Date().getTime()}Di.uid=ia.uid,sa=Di}ai(sa,Vi)})},An=(Oi,Fi,ka)=>{try{typeof Oi=="string"&&(Oi=JSON.parse(Oi))}catch(da){}if(!kt(Fi,Jr))return;const Vi=bt(Fi);Vi.status="done",Vi.percent=100,Vi.response=Oi,Vi.xhr=ka;const ia=at(Vi,Jr);ai(Vi,ia)},gi=(Oi,Fi)=>{if(!kt(Fi,Jr))return;const ka=bt(Fi);ka.status="uploading",ka.percent=Oi.percent;const Vi=at(ka,Jr);ai(ka,Vi,Oi)},nn=(Oi,Fi,ka)=>{if(!kt(ka,Jr))return;const Vi=bt(ka);Vi.error=Oi,Vi.response=Fi,Vi.status="error";const ia=at(Vi,Jr);ai(Vi,ia)},pn=Oi=>{let Fi;Promise.resolve(typeof _r=="function"?_r(Oi):_r).then(ka=>{var Vi;if(ka===!1)return;const ia=Ht(Oi,Jr);ia&&(Fi=Object.assign(Object.assign({},Oi),{status:"removed"}),Jr==null||Jr.forEach(da=>{const sa=Fi.uid!==void 0?"uid":"name";da[sa]===Fi[sa]&&!Object.isFrozen(da)&&(da.status="removed")}),(Vi=ri.current)===null||Vi===void 0||Vi.abort(Fi),ai(Fi,ia))})},qn=Oi=>{Dn(Oi.type),Oi.type==="drop"&&(pr==null||pr(Oi))};Ye.useImperativeHandle(rr,()=>({onBatchStart:qr,onSuccess:An,onProgress:gi,onError:nn,fileList:Jr,upload:ri.current}));const{getPrefixCls:li,direction:ji,upload:Li}=Ye.useContext(ht.E_),Bi=li("upload",gn),ni=Object.assign(Object.assign({onBatchStart:qr,onError:nn,onProgress:gi,onSuccess:An},Xt),{data:Zn,multiple:wn,action:Mn,accept:Jn,supportServerRender:zn,prefixCls:Bi,disabled:Rn,beforeUpload:Qr,onChange:void 0});delete ni.className,delete ni.style,(!yn||Rn)&&delete ni.id;const[ra,ca]=Lt(Bi),[Sn]=(0,Xe.Z)("Upload",ct.Z.Upload),{showRemoveIcon:Cn,showPreviewIcon:bn,showDownloadIcon:Wn,removeIcon:Ki,previewIcon:qi,downloadIcon:oa}=typeof ur=="boolean"?{}:ur,na=(Oi,Fi)=>ur?Ye.createElement(Tr,{prefixCls:Bi,listType:Mr,items:Jr,previewFile:fr,onPreview:Pt,onDownload:Jt,onRemove:pn,showRemoveIcon:!Rn&&Cn,showPreviewIcon:bn,showDownloadIcon:Wn,removeIcon:Ki,previewIcon:qi,downloadIcon:oa,iconRender:Nr,locale:Object.assign(Object.assign({},Sn),wr),isImageUrl:Kr,progress:Ur,appendAction:Oi,appendActionVisible:Fi,itemRender:$n,disabled:Rn}):Oi,Xi=Ae()(`${Bi}-wrapper`,kn,hi,ca,Li==null?void 0:Li.className,{[`${Bi}-rtl`]:ji==="rtl",[`${Bi}-picture-card-wrapper`]:Mr==="picture-card",[`${Bi}-picture-circle-wrapper`]:Mr==="picture-circle"}),ba=Object.assign(Object.assign({},Li==null?void 0:Li.style),rn);if(Nn==="drag"){const Oi=Ae()(ca,Bi,`${Bi}-drag`,{[`${Bi}-drag-uploading`]:Jr.some(Fi=>Fi.status==="uploading"),[`${Bi}-drag-hover`]:Hn==="dragover",[`${Bi}-disabled`]:Rn,[`${Bi}-rtl`]:ji==="rtl"});return ra(Ye.createElement("span",{className:Xi},Ye.createElement("div",{className:Oi,style:ba,onDrop:qn,onDragOver:qn,onDragLeave:qn},Ye.createElement(Qe,Object.assign({},ni,{ref:ri,className:`${Bi}-btn`}),Ye.createElement("div",{className:`${Bi}-drag-container`},yn))),na()))}const Na=Ae()(Bi,`${Bi}-select`,{[`${Bi}-disabled`]:Rn}),yo=(Oi=>Ye.createElement("div",{className:Na,style:Oi},Ye.createElement(Qe,Object.assign({},ni,{ref:ri}))))(yn?void 0:{display:"none"});return ra(Mr==="picture-card"||Mr==="picture-circle"?Ye.createElement("span",{className:Xi},na(yo,!!yn)):Ye.createElement("span",{className:Xi},yo,na()))};var vr=Ye.forwardRef(yr),Dr=function(Xt,rr){var lr={};for(var or in Xt)Object.prototype.hasOwnProperty.call(Xt,or)&&rr.indexOf(or)<0&&(lr[or]=Xt[or]);if(Xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _r=0,or=Object.getOwnPropertySymbols(Xt);_r<or.length;_r++)rr.indexOf(or[_r])<0&&Object.prototype.propertyIsEnumerable.call(Xt,or[_r])&&(lr[or[_r]]=Xt[or[_r]]);return lr},Ar=Ye.forwardRef((Xt,rr)=>{var{style:lr,height:or}=Xt,_r=Dr(Xt,["style","height"]);return Ye.createElement(vr,Object.assign({ref:rr},_r,{type:"drag",style:Object.assign(Object.assign({},lr),{height:or})}))});const qt=vr;qt.Dragger=Ar,qt.LIST_IGNORE=Qt;var kr=qt},99498:function(gr,Wt,ke){(function(Ye){Ye(ke(89780))})(function(Ye){Ye.defineOption("placeholder","",function(ie,oe,se){var pe=se&&se!=Ye.Init;if(oe&&!pe)ie.on("blur",me),ie.on("change",re),ie.on("swapDoc",re),Ye.on(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose=function(){Ae(ie)}),re(ie);else if(!oe&&pe){ie.off("blur",me),ie.off("change",re),ie.off("swapDoc",re),Ye.off(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose),vt(ie);var ne=ie.getWrapperElement();ne.className=ne.className.replace(" CodeMirror-empty","")}oe&&!ie.hasFocus()&&me(ie)});function vt(ie){ie.state.placeholder&&(ie.state.placeholder.parentNode.removeChild(ie.state.placeholder),ie.state.placeholder=null)}function x(ie){vt(ie);var oe=ie.state.placeholder=document.createElement("pre");oe.style.cssText="height: 0; overflow: visible",oe.style.direction=ie.getOption("direction"),oe.className="CodeMirror-placeholder CodeMirror-line-like";var se=ie.getOption("placeholder");typeof se=="string"&&(se=document.createTextNode(se)),oe.appendChild(se),ie.display.lineSpace.insertBefore(oe,ie.display.lineSpace.firstChild)}function Ae(ie){setTimeout(function(){var oe=!1,se=ie.getInputField();se.nodeName=="TEXTAREA"?oe=!se.value:ie.lineCount()==1&&(oe=!/[^\u200b]/.test(se.querySelector(".CodeMirror-line").textContent)),oe?x(ie):vt(ie)},20)}function me(ie){z(ie)&&x(ie)}function re(ie){var oe=ie.getWrapperElement(),se=z(ie);oe.className=oe.className.replace(" CodeMirror-empty","")+(se?" CodeMirror-empty":""),se?x(ie):vt(ie)}function z(ie){return ie.lineCount()===1&&ie.getLine(0)===""}})},25717:function(gr,Wt,ke){(function(Ye){Ye(ke(89780))})(function(Ye){var vt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=Ye.Pos;Ye.defineOption("autoCloseBrackets",!1,function(de,he,xe){xe&&xe!=Ye.Init&&(de.removeKeyMap(me),de.state.closeBrackets=null),he&&(re(Ae(he,"pairs")),de.state.closeBrackets=he,de.addKeyMap(me))});function Ae(de,he){return he=="pairs"&&typeof de=="string"?de:typeof de=="object"&&de[he]!=null?de[he]:vt[he]}var me={Backspace:oe,Enter:se};function re(de){for(var he=0;he<de.length;he++){var xe=de.charAt(he),Se="'"+xe+"'";me[Se]||(me[Se]=z(xe))}}re(vt.pairs+"`");function z(de){return function(he){return ne(he,de)}}function ie(de){var he=de.state.closeBrackets;if(!he||he.override)return he;var xe=de.getModeAt(de.getCursor());return xe.closeBrackets||he}function oe(de){var he=ie(de);if(!he||de.getOption("disableInput"))return Ye.Pass;for(var xe=Ae(he,"pairs"),Se=de.listSelections(),we=0;we<Se.length;we++){if(!Se[we].empty())return Ye.Pass;var be=ae(de,Se[we].head);if(!be||xe.indexOf(be)%2!=0)return Ye.Pass}for(var we=Se.length-1;we>=0;we--){var Me=Se[we].head;de.replaceRange("",x(Me.line,Me.ch-1),x(Me.line,Me.ch+1),"+delete")}}function se(de){var he=ie(de),xe=he&&Ae(he,"explode");if(!xe||de.getOption("disableInput"))return Ye.Pass;for(var Se=de.listSelections(),we=0;we<Se.length;we++){if(!Se[we].empty())return Ye.Pass;var be=ae(de,Se[we].head);if(!be||xe.indexOf(be)%2!=0)return Ye.Pass}de.operation(function(){var Me=de.lineSeparator()||`
|
|
|
`;de.replaceSelection(Me+Me,null),de.execCommand("goCharLeft"),Se=de.listSelections();for(var Le=0;Le<Se.length;Le++){var Ce=Se[Le].head.line;de.indentLine(Ce,null,!0),de.indentLine(Ce+1,null,!0)}})}function pe(de){var he=Ye.cmpPos(de.anchor,de.head)>0;return{anchor:new x(de.anchor.line,de.anchor.ch+(he?-1:1)),head:new x(de.head.line,de.head.ch+(he?1:-1))}}function ne(de,he){var xe=ie(de);if(!xe||de.getOption("disableInput"))return Ye.Pass;var Se=Ae(xe,"pairs"),we=Se.indexOf(he);if(we==-1)return Ye.Pass;for(var be=Ae(xe,"closeBefore"),Me=Ae(xe,"triples"),Le=Se.charAt(we+1)==he,Ce=de.listSelections(),Ne=we%2==0,Te,De=0;De<Ce.length;De++){var Ee=Ce[De],Pe=Ee.head,Be,Ve=de.getRange(Pe,x(Pe.line,Pe.ch+1));if(Ne&&!Ee.empty())Be="surround";else if((Le||!Ne)&&Ve==he)Le&&ue(de,Pe)?Be="both":Me.indexOf(he)>=0&&de.getRange(Pe,x(Pe.line,Pe.ch+3))==he+he+he?Be="skipThree":Be="skip";else if(Le&&Pe.ch>1&&Me.indexOf(he)>=0&&de.getRange(x(Pe.line,Pe.ch-2),Pe)==he+he){if(Pe.ch>2&&/\bstring/.test(de.getTokenTypeAt(x(Pe.line,Pe.ch-2))))return Ye.Pass;Be="addFour"}else if(Le){var Ie=Pe.ch==0?" ":de.getRange(x(Pe.line,Pe.ch-1),Pe);if(!Ye.isWordChar(Ve)&&Ie!=he&&!Ye.isWordChar(Ie))Be="both";else return Ye.Pass}else if(Ne&&(Ve.length===0||/\s/.test(Ve)||be.indexOf(Ve)>-1))Be="both";else return Ye.Pass;if(!Te)Te=Be;else if(Te!=Be)return Ye.Pass}var Ze=we%2?Se.charAt(we-1):he,Qe=we%2?he:Se.charAt(we+1);de.operation(function(){if(Te=="skip")de.execCommand("goCharRight");else if(Te=="skipThree")for(var tt=0;tt<3;tt++)de.execCommand("goCharRight");else if(Te=="surround"){for(var it=de.getSelections(),tt=0;tt<it.length;tt++)it[tt]=Ze+it[tt]+Qe;de.replaceSelections(it,"around"),it=de.listSelections().slice();for(var tt=0;tt<it.length;tt++)it[tt]=pe(it[tt]);de.setSelections(it)}else Te=="both"?(de.replaceSelection(Ze+Qe,null),de.triggerElectric(Ze+Qe),de.execCommand("goCharLeft")):Te=="addFour"&&(de.replaceSelection(Ze+Ze+Ze+Ze,"before"),de.execCommand("goCharRight"))})}function ae(de,he){var xe=de.getRange(x(he.line,he.ch-1),x(he.line,he.ch+1));return xe.length==2?xe:null}function ue(de,he){var xe=de.getTokenAt(x(he.line,he.ch+1));return/\bstring/.test(xe.type)&&xe.start==he.ch&&(he.ch==0||!/\bstring/.test(de.getTokenTypeAt(he)))}})},6313:function(gr,Wt,ke){(function(Ye){Ye(ke(89780),ke(32855))})(function(Ye){Ye.defineOption("autoCloseTags",!1,function(oe,se,pe){if(pe!=Ye.Init&&pe&&oe.removeKeyMap("autoCloseTags"),!!se){var ne={name:"autoCloseTags"};(typeof se!="object"||se.whenClosing!==!1)&&(ne["'/'"]=function(ae){return re(ae)}),(typeof se!="object"||se.whenOpening!==!1)&&(ne["'>'"]=function(ae){return Ae(ae)}),oe.addKeyMap(ne)}});var vt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],x=["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 Ae(oe){if(oe.getOption("disableInput"))return Ye.Pass;for(var se=oe.listSelections(),pe=[],ne=oe.getOption("autoCloseTags"),ae=0;ae<se.length;ae++){if(!se[ae].empty())return Ye.Pass;var ue=se[ae].head,de=oe.getTokenAt(ue),he=Ye.innerMode(oe.getMode(),de.state),xe=he.state,Se=he.mode.xmlCurrentTag&&he.mode.xmlCurrentTag(xe),we=Se&&Se.name;if(!we)return Ye.Pass;var be=he.mode.configuration=="html",Me=typeof ne=="object"&&ne.dontCloseTags||be&&vt,Le=typeof ne=="object"&&ne.indentTags||be&&x;de.end>ue.ch&&(we=we.slice(0,we.length-de.end+ue.ch));var Ce=we.toLowerCase();if(!we||de.type=="string"&&(de.end!=ue.ch||!/[\"\']/.test(de.string.charAt(de.string.length-1))||de.string.length==1)||de.type=="tag"&&Se.close||de.string.indexOf("/")==ue.ch-de.start-1||Me&&z(Me,Ce)>-1||ie(oe,he.mode.xmlCurrentContext&&he.mode.xmlCurrentContext(xe)||[],we,ue,!0))return Ye.Pass;var Ne=typeof ne=="object"&&ne.emptyTags;if(Ne&&z(Ne,we)>-1){pe[ae]={text:"/>",newPos:Ye.Pos(ue.line,ue.ch+2)};continue}var Te=Le&&z(Le,Ce)>-1;pe[ae]={indent:Te,text:">"+(Te?`
|
|
|
|
|
|
`:"")+"</"+we+">",newPos:Te?Ye.Pos(ue.line+1,0):Ye.Pos(ue.line,ue.ch+1)}}for(var De=typeof ne=="object"&&ne.dontIndentOnAutoClose,ae=se.length-1;ae>=0;ae--){var Ee=pe[ae];oe.replaceRange(Ee.text,se[ae].head,se[ae].anchor,"+insert");var Pe=oe.listSelections().slice(0);Pe[ae]={head:Ee.newPos,anchor:Ee.newPos},oe.setSelections(Pe),!De&&Ee.indent&&(oe.indentLine(Ee.newPos.line,null,!0),oe.indentLine(Ee.newPos.line+1,null,!0))}}function me(oe,se){for(var pe=oe.listSelections(),ne=[],ae=se?"/":"</",ue=oe.getOption("autoCloseTags"),de=typeof ue=="object"&&ue.dontIndentOnSlash,he=0;he<pe.length;he++){if(!pe[he].empty())return Ye.Pass;var xe=pe[he].head,Se=oe.getTokenAt(xe),we=Ye.innerMode(oe.getMode(),Se.state),be=we.state;if(se&&(Se.type=="string"||Se.string.charAt(0)!="<"||Se.start!=xe.ch-1))return Ye.Pass;var Me,Le=we.mode.name!="xml"&&oe.getMode().name=="htmlmixed";if(Le&&we.mode.name=="javascript")Me=ae+"script";else if(Le&&we.mode.name=="css")Me=ae+"style";else{var Ce=we.mode.xmlCurrentContext&&we.mode.xmlCurrentContext(be);if(!Ce||Ce.length&&ie(oe,Ce,Ce[Ce.length-1],xe))return Ye.Pass;Me=ae+Ce[Ce.length-1]}oe.getLine(xe.line).charAt(Se.end)!=">"&&(Me+=">"),ne[he]=Me}if(oe.replaceSelections(ne),pe=oe.listSelections(),!de)for(var he=0;he<pe.length;he++)(he==pe.length-1||pe[he].head.line<pe[he+1].head.line)&&oe.indentLine(pe[he].head.line)}function re(oe){return oe.getOption("disableInput")?Ye.Pass:me(oe,!0)}Ye.commands.closeTag=function(oe){return me(oe)};function z(oe,se){if(oe.indexOf)return oe.indexOf(se);for(var pe=0,ne=oe.length;pe<ne;++pe)if(oe[pe]==se)return pe;return-1}function ie(oe,se,pe,ne,ae){if(!Ye.scanForClosingTag)return!1;var ue=Math.min(oe.lastLine()+1,ne.line+500),de=Ye.scanForClosingTag(oe,ne,null,ue);if(!de||de.tag!=pe)return!1;for(var he=ae?1:0,xe=se.length-1;xe>=0&&se[xe]==pe;xe--)++he;ne=de.to;for(var xe=1;xe<he;xe++){var Se=Ye.scanForClosingTag(oe,ne,null,ue);if(!Se||Se.tag!=pe)return!1;ne=Se.to}return!0}})},32855:function(gr,Wt,ke){(function(Ye){Ye(ke(89780))})(function(Ye){"use strict";var vt=Ye.Pos;function x(xe,Se){return xe.line-Se.line||xe.ch-Se.ch}var Ae="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",me=Ae+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",re=new RegExp("<(/?)(["+Ae+"]["+me+"]*)","g");function z(xe,Se,we,be){this.line=Se,this.ch=we,this.cm=xe,this.text=xe.getLine(Se),this.min=be?Math.max(be.from,xe.firstLine()):xe.firstLine(),this.max=be?Math.min(be.to-1,xe.lastLine()):xe.lastLine()}function ie(xe,Se){var we=xe.cm.getTokenTypeAt(vt(xe.line,Se));return we&&/\btag\b/.test(we)}function oe(xe){if(!(xe.line>=xe.max))return xe.ch=0,xe.text=xe.cm.getLine(++xe.line),!0}function se(xe){if(!(xe.line<=xe.min))return xe.text=xe.cm.getLine(--xe.line),xe.ch=xe.text.length,!0}function pe(xe){for(;;){var Se=xe.text.indexOf(">",xe.ch);if(Se==-1){if(oe(xe))continue;return}if(!ie(xe,Se+1)){xe.ch=Se+1;continue}var we=xe.text.lastIndexOf("/",Se),be=we>-1&&!/\S/.test(xe.text.slice(we+1,Se));return xe.ch=Se+1,be?"selfClose":"regular"}}function ne(xe){for(;;){var Se=xe.ch?xe.text.lastIndexOf("<",xe.ch-1):-1;if(Se==-1){if(se(xe))continue;return}if(!ie(xe,Se+1)){xe.ch=Se;continue}re.lastIndex=Se,xe.ch=Se;var we=re.exec(xe.text);if(we&&we.index==Se)return we}}function ae(xe){for(;;){re.lastIndex=xe.ch;var Se=re.exec(xe.text);if(!Se){if(oe(xe))continue;return}if(!ie(xe,Se.index+1)){xe.ch=Se.index+1;continue}return xe.ch=Se.index+Se[0].length,Se}}function ue(xe){for(;;){var Se=xe.ch?xe.text.lastIndexOf(">",xe.ch-1):-1;if(Se==-1){if(se(xe))continue;return}if(!ie(xe,Se+1)){xe.ch=Se;continue}var we=xe.text.lastIndexOf("/",Se),be=we>-1&&!/\S/.test(xe.text.slice(we+1,Se));return xe.ch=Se+1,be?"selfClose":"regular"}}function de(xe,Se){for(var we=[];;){var be=ae(xe),Me,Le=xe.line,Ce=xe.ch-(be?be[0].length:0);if(!be||!(Me=pe(xe)))return;if(Me!="selfClose")if(be[1]){for(var Ne=we.length-1;Ne>=0;--Ne)if(we[Ne]==be[2]){we.length=Ne;break}if(Ne<0&&(!Se||Se==be[2]))return{tag:be[2],from:vt(Le,Ce),to:vt(xe.line,xe.ch)}}else we.push(be[2])}}function he(xe,Se){for(var we=[];;){var be=ue(xe);if(!be)return;if(be=="selfClose"){ne(xe);continue}var Me=xe.line,Le=xe.ch,Ce=ne(xe);if(!Ce)return;if(Ce[1])we.push(Ce[2]);else{for(var Ne=we.length-1;Ne>=0;--Ne)if(we[Ne]==Ce[2]){we.length=Ne;break}if(Ne<0&&(!Se||Se==Ce[2]))return{tag:Ce[2],from:vt(xe.line,xe.ch),to:vt(Me,Le)}}}}Ye.registerHelper("fold","xml",function(xe,Se){for(var we=new z(xe,Se.line,0);;){var be=ae(we);if(!be||we.line!=Se.line)return;var Me=pe(we);if(!Me)return;if(!be[1]&&Me!="selfClose"){var Le=vt(we.line,we.ch),Ce=de(we,be[2]);return Ce&&x(Ce.from,Le)>0?{from:Le,to:Ce.from}:null}}}),Ye.findMatchingTag=function(xe,Se,we){var be=new z(xe,Se.line,Se.ch,we);if(!(be.text.indexOf(">")==-1&&be.text.indexOf("<")==-1)){var Me=pe(be),Le=Me&&vt(be.line,be.ch),Ce=Me&&ne(be);if(!(!Me||!Ce||x(be,Se)>0)){var Ne={from:vt(be.line,be.ch),to:Le,tag:Ce[2]};return Me=="selfClose"?{open:Ne,close:null,at:"open"}:Ce[1]?{open:he(be,Ce[2]),close:Ne,at:"close"}:(be=new z(xe,Le.line,Le.ch,we),{open:Ne,close:de(be,Ce[2]),at:"open"})}}},Ye.findEnclosingTag=function(xe,Se,we,be){for(var Me=new z(xe,Se.line,Se.ch,we);;){var Le=he(Me,be);if(!Le)break;var Ce=new z(xe,Se.line,Se.ch,we),Ne=de(Ce,Le.tag);if(Ne)return{open:Le,close:Ne}}},Ye.scanForClosingTag=function(xe,Se,we,be){var Me=new z(xe,Se.line,Se.ch,be?{from:0,to:be}:null);return de(Me,we)}})},89780:function(gr){(function(Wt,ke){gr.exports=ke()})(this,function(){"use strict";var Wt=navigator.userAgent,ke=navigator.platform,Ye=/gecko\/\d/i.test(Wt),vt=/MSIE \d/.test(Wt),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Wt),Ae=/Edge\/(\d+)/.exec(Wt),me=vt||x||Ae,re=me&&(vt?document.documentMode||6:+(Ae||x)[1]),z=!Ae&&/WebKit\//.test(Wt),ie=z&&/Qt\/\d+\.\d+/.test(Wt),oe=!Ae&&/Chrome\//.test(Wt),se=/Opera\//.test(Wt),pe=/Apple Computer/.test(navigator.vendor),ne=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Wt),ae=/PhantomJS/.test(Wt),ue=!Ae&&/AppleWebKit/.test(Wt)&&/Mobile\/\w+/.test(Wt),de=/Android/.test(Wt),he=ue||de||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Wt),xe=ue||/Mac/.test(ke),Se=/\bCrOS\b/.test(Wt),we=/win/i.test(ke),be=se&&Wt.match(/Version\/(\d*\.\d*)/);be&&(be=Number(be[1])),be&&be>=15&&(se=!1,z=!0);var Me=xe&&(ie||se&&(be==null||be<12.11)),Le=Ye||me&&re>=9;function Ce(E){return new RegExp("(^|\\s)"+E+"(?:$|\\s)\\s*")}var Ne=function(E,te){var ve=E.className,ge=Ce(te).exec(ve);if(ge){var Oe=ve.slice(ge.index+ge[0].length);E.className=ve.slice(0,ge.index)+(Oe?ge[1]+Oe:"")}};function Te(E){for(var te=E.childNodes.length;te>0;--te)E.removeChild(E.firstChild);return E}function De(E,te){return Te(E).appendChild(te)}function Ee(E,te,ve,ge){var Oe=document.createElement(E);if(ve&&(Oe.className=ve),ge&&(Oe.style.cssText=ge),typeof te=="string")Oe.appendChild(document.createTextNode(te));else if(te)for(var Je=0;Je<te.length;++Je)Oe.appendChild(te[Je]);return Oe}function Pe(E,te,ve,ge){var Oe=Ee(E,te,ve,ge);return Oe.setAttribute("role","presentation"),Oe}var Be;document.createRange?Be=function(E,te,ve,ge){var Oe=document.createRange();return Oe.setEnd(ge||E,ve),Oe.setStart(E,te),Oe}:Be=function(E,te,ve){var ge=document.body.createTextRange();try{ge.moveToElementText(E.parentNode)}catch(Oe){return ge}return ge.collapse(!0),ge.moveEnd("character",ve),ge.moveStart("character",te),ge};function Ve(E,te){if(te.nodeType==3&&(te=te.parentNode),E.contains)return E.contains(te);do if(te.nodeType==11&&(te=te.host),te==E)return!0;while(te=te.parentNode)}function Ie(){var E;try{E=document.activeElement}catch(te){E=document.body||null}for(;E&&E.shadowRoot&&E.shadowRoot.activeElement;)E=E.shadowRoot.activeElement;return E}function Ze(E,te){var ve=E.className;Ce(te).test(ve)||(E.className+=(ve?" ":"")+te)}function Qe(E,te){for(var ve=E.split(" "),ge=0;ge<ve.length;ge++)ve[ge]&&!Ce(ve[ge]).test(te)&&(te+=" "+ve[ge]);return te}var tt=function(E){E.select()};ue?tt=function(E){E.selectionStart=0,E.selectionEnd=E.value.length}:me&&(tt=function(E){try{E.select()}catch(te){}});function it(E){var te=Array.prototype.slice.call(arguments,1);return function(){return E.apply(null,te)}}function ht(E,te,ve){te||(te={});for(var ge in E)E.hasOwnProperty(ge)&&(ve!==!1||!te.hasOwnProperty(ge))&&(te[ge]=E[ge]);return te}function Ge(E,te,ve,ge,Oe){te==null&&(te=E.search(/[^\s\u00a0]/),te==-1&&(te=E.length));for(var Je=ge||0,mt=Oe||0;;){var Mt=E.indexOf(" ",Je);if(Mt<0||Mt>=te)return mt+(te-Je);mt+=Mt-Je,mt+=ve-mt%ve,Je=Mt+1}}var Xe=function(){this.id=null,this.f=null,this.time=0,this.handler=it(this.onTimeout,this)};Xe.prototype.onTimeout=function(E){E.id=0,E.time<=+new Date?E.f():setTimeout(E.handler,E.time-+new Date)},Xe.prototype.set=function(E,te){this.f=te;var ve=+new Date+E;(!this.id||ve<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,E),this.time=ve)};function ct(E,te){for(var ve=0;ve<E.length;++ve)if(E[ve]==te)return ve;return-1}var pt=50,ut={toString:function(){return"CodeMirror.Pass"}},rt={scroll:!1},qe={origin:"*mouse"},nt={origin:"+move"};function xt(E,te,ve){for(var ge=0,Oe=0;;){var Je=E.indexOf(" ",ge);Je==-1&&(Je=E.length);var mt=Je-ge;if(Je==E.length||Oe+mt>=te)return ge+Math.min(mt,te-Oe);if(Oe+=Je-ge,Oe+=ve-Oe%ve,ge=Je+1,Oe>=te)return ge}}var yt=[""];function Rt(E){for(;yt.length<=E;)yt.push(Ot(yt)+" ");return yt[E]}function Ot(E){return E[E.length-1]}function lt(E,te){for(var ve=[],ge=0;ge<E.length;ge++)ve[ge]=te(E[ge],ge);return ve}function Ue(E,te,ve){for(var ge=0,Oe=ve(te);ge<E.length&&ve(E[ge])<=Oe;)ge++;E.splice(ge,0,te)}function $e(){}function le(E,te){var ve;return Object.create?ve=Object.create(E):($e.prototype=E,ve=new $e),te&&ht(te,ve),ve}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Fe(E){return/\w/.test(E)||E>"\x80"&&(E.toUpperCase()!=E.toLowerCase()||fe.test(E))}function He(E,te){return te?te.source.indexOf("\\w")>-1&&Fe(E)?!0:te.test(E):Fe(E)}function ye(E){for(var te in E)if(E.hasOwnProperty(te)&&E[te])return!1;return!0}var Re=/[\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 ze(E){return E.charCodeAt(0)>=768&&Re.test(E)}function Ke(E,te,ve){for(;(ve<0?te>0:te<E.length)&&ze(E.charAt(te));)te+=ve;return te}function We(E,te,ve){for(var ge=te>ve?-1:1;;){if(te==ve)return te;var Oe=(te+ve)/2,Je=ge<0?Math.ceil(Oe):Math.floor(Oe);if(Je==te)return E(Je)?te:ve;E(Je)?ve=Je:te=Je+ge}}function st(E,te,ve,ge){if(!E)return ge(te,ve,"ltr",0);for(var Oe=!1,Je=0;Je<E.length;++Je){var mt=E[Je];(mt.from<ve&&mt.to>te||te==ve&&mt.to==te)&&(ge(Math.max(mt.from,te),Math.min(mt.to,ve),mt.level==1?"rtl":"ltr",Je),Oe=!0)}Oe||ge(te,ve,"ltr")}var bt=null;function at(E,te,ve){var ge;bt=null;for(var Oe=0;Oe<E.length;++Oe){var Je=E[Oe];if(Je.from<te&&Je.to>te)return Oe;Je.to==te&&(Je.from!=Je.to&&ve=="before"?ge=Oe:bt=Oe),Je.from==te&&(Je.from!=Je.to&&ve!="before"?ge=Oe:bt=Oe)}return ge!=null?ge:bt}var kt=function(){var E="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",te="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ve(Nt){return Nt<=247?E.charAt(Nt):1424<=Nt&&Nt<=1524?"R":1536<=Nt&&Nt<=1785?te.charAt(Nt-1536):1774<=Nt&&Nt<=2220?"r":8192<=Nt&&Nt<=8203?"w":Nt==8204?"b":"L"}var ge=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Oe=/[stwN]/,Je=/[LRr]/,mt=/[Lb1n]/,Mt=/[1n]/;function Tt(Nt,ir,hr){this.level=Nt,this.from=ir,this.to=hr}return function(Nt,ir){var hr=ir=="ltr"?"L":"R";if(Nt.length==0||ir=="ltr"&&!ge.test(Nt))return!1;for(var Br=Nt.length,Or=[],on=0;on<Br;++on)Or.push(ve(Nt.charCodeAt(on)));for(var En=0,ei=hr;En<Br;++En){var fi=Or[En];fi=="m"?Or[En]=ei:ei=fi}for(var vi=0,oi=hr;vi<Br;++vi){var bi=Or[vi];bi=="1"&&oi=="r"?Or[vi]="n":Je.test(bi)&&(oi=bi,bi=="r"&&(Or[vi]="R"))}for(var zi=1,Wi=Or[0];zi<Br-1;++zi){var Ma=Or[zi];Ma=="+"&&Wi=="1"&&Or[zi+1]=="1"?Or[zi]="1":Ma==","&&Wi==Or[zi+1]&&(Wi=="1"||Wi=="n")&&(Or[zi]=Wi),Wi=Ma}for(var ho=0;ho<Br;++ho){var ys=Or[ho];if(ys==",")Or[ho]="N";else if(ys=="%"){var Po=void 0;for(Po=ho+1;Po<Br&&Or[Po]=="%";++Po);for(var Zs=ho&&Or[ho-1]=="!"||Po<Br&&Or[Po]=="1"?"1":"N",Us=ho;Us<Po;++Us)Or[Us]=Zs;ho=Po-1}}for(var is=0,Vs=hr;is<Br;++is){var la=Or[is];Vs=="L"&&la=="1"?Or[is]="L":Je.test(la)&&(Vs=la)}for(var $o=0;$o<Br;++$o)if(Oe.test(Or[$o])){var Lo=void 0;for(Lo=$o+1;Lo<Br&&Oe.test(Or[Lo]);++Lo);for(var zo=($o?Or[$o-1]:hr)=="L",Jo=(Lo<Br?Or[Lo]:hr)=="L",Zc=zo==Jo?zo?"L":"R":hr,il=$o;il<Lo;++il)Or[il]=Zc;$o=Lo-1}for(var Ss=[],Ga,us=0;us<Br;)if(mt.test(Or[us])){var cd=us;for(++us;us<Br&&mt.test(Or[us]);++us);Ss.push(new Tt(0,cd,us))}else{var pc=us,kc=Ss.length,Ql=ir=="rtl"?1:0;for(++us;us<Br&&Or[us]!="L";++us);for(var as=pc;as<us;)if(Mt.test(Or[as])){pc<as&&(Ss.splice(kc,0,new Tt(1,pc,as)),kc+=Ql);var Uc=as;for(++as;as<us&&Mt.test(Or[as]);++as);Ss.splice(kc,0,new Tt(2,Uc,as)),kc+=Ql,pc=as}else++as;pc<us&&Ss.splice(kc,0,new Tt(1,pc,us))}return ir=="ltr"&&(Ss[0].level==1&&(Ga=Nt.match(/^\s+/))&&(Ss[0].from=Ga[0].length,Ss.unshift(new Tt(0,0,Ga[0].length))),Ot(Ss).level==1&&(Ga=Nt.match(/\s+$/))&&(Ot(Ss).to-=Ga[0].length,Ss.push(new Tt(0,Br-Ga[0].length,Br)))),ir=="rtl"?Ss.reverse():Ss}}();function Ht(E,te){var ve=E.order;return ve==null&&(ve=E.order=kt(E.text,te)),ve}var Ct=[],$t=function(E,te,ve){if(E.addEventListener)E.addEventListener(te,ve,!1);else if(E.attachEvent)E.attachEvent("on"+te,ve);else{var ge=E._handlers||(E._handlers={});ge[te]=(ge[te]||Ct).concat(ve)}};function Bt(E,te){return E._handlers&&E._handlers[te]||Ct}function St(E,te,ve){if(E.removeEventListener)E.removeEventListener(te,ve,!1);else if(E.detachEvent)E.detachEvent("on"+te,ve);else{var ge=E._handlers,Oe=ge&&ge[te];if(Oe){var Je=ct(Oe,ve);Je>-1&&(ge[te]=Oe.slice(0,Je).concat(Oe.slice(Je+1)))}}}function ft(E,te){var ve=Bt(E,te);if(ve.length)for(var ge=Array.prototype.slice.call(arguments,2),Oe=0;Oe<ve.length;++Oe)ve[Oe].apply(null,ge)}function dt(E,te,ve){return typeof te=="string"&&(te={type:te,preventDefault:function(){this.defaultPrevented=!0}}),ft(E,ve||te.type,E,te),Er(te)||te.codemirrorIgnore}function Ft(E){var te=E._handlers&&E._handlers.cursorActivity;if(te)for(var ve=E.curOp.cursorActivityHandlers||(E.curOp.cursorActivityHandlers=[]),ge=0;ge<te.length;++ge)ct(ve,te[ge])==-1&&ve.push(te[ge])}function zt(E,te){return Bt(E,te).length>0}function Zt(E){E.prototype.on=function(te,ve){$t(this,te,ve)},E.prototype.off=function(te,ve){St(this,te,ve)}}function tr(E){E.preventDefault?E.preventDefault():E.returnValue=!1}function mr(E){E.stopPropagation?E.stopPropagation():E.cancelBubble=!0}function Er(E){return E.defaultPrevented!=null?E.defaultPrevented:E.returnValue==!1}function zr(E){tr(E),mr(E)}function jr(E){return E.target||E.srcElement}function Tr(E){var te=E.which;return te==null&&(E.button&1?te=1:E.button&2?te=3:E.button&4&&(te=2)),xe&&E.ctrlKey&&te==1&&(te=3),te}var Vr=function(){if(me&&re<9)return!1;var E=Ee("div");return"draggable"in E||"dragDrop"in E}(),sn;function vn(E){if(sn==null){var te=Ee("span","\u200B");De(E,Ee("span",[te,document.createTextNode("x")])),E.firstChild.offsetHeight!=0&&(sn=te.offsetWidth<=1&&te.offsetHeight>2&&!(me&&re<8))}var ve=sn?Ee("span","\u200B"):Ee("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ve.setAttribute("cm-text",""),ve}var en;function hn(E){if(en!=null)return en;var te=De(E,document.createTextNode("A\u062EA")),ve=Be(te,0,1).getBoundingClientRect(),ge=Be(te,1,2).getBoundingClientRect();return Te(E),!ve||ve.left==ve.right?!1:en=ge.right-ve.right<3}var _n=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(E){for(var te=0,ve=[],ge=E.length;te<=ge;){var Oe=E.indexOf(`
|
|
|
`,te);Oe==-1&&(Oe=E.length);var Je=E.slice(te,E.charAt(Oe-1)=="\r"?Oe-1:Oe),mt=Je.indexOf("\r");mt!=-1?(ve.push(Je.slice(0,mt)),te+=mt+1):(ve.push(Je),te=Oe+1)}return ve}:function(E){return E.split(/\r\n?|\n/)},tn=window.getSelection?function(E){try{return E.selectionStart!=E.selectionEnd}catch(te){return!1}}:function(E){var te;try{te=E.ownerDocument.selection.createRange()}catch(ve){}return!te||te.parentElement()!=E?!1:te.compareEndPoints("StartToEnd",te)!=0},Ln=function(){var E=Ee("div");return"oncopy"in E?!0:(E.setAttribute("oncopy","return;"),typeof E.oncopy=="function")}(),Un=null;function Vn(E){if(Un!=null)return Un;var te=De(E,Ee("span","x")),ve=te.getBoundingClientRect(),ge=Be(te,0,1).getBoundingClientRect();return Un=Math.abs(ve.left-ge.left)>1}var $r={},Yr={};function Lr(E,te){arguments.length>2&&(te.dependencies=Array.prototype.slice.call(arguments,2)),$r[E]=te}function cn(E,te){Yr[E]=te}function Pr(E){if(typeof E=="string"&&Yr.hasOwnProperty(E))E=Yr[E];else if(E&&typeof E.name=="string"&&Yr.hasOwnProperty(E.name)){var te=Yr[E.name];typeof te=="string"&&(te={name:te}),E=le(te,E),E.name=te.name}else{if(typeof E=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(E))return Pr("application/xml");if(typeof E=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(E))return Pr("application/json")}return typeof E=="string"?{name:E}:E||{name:"null"}}function Wr(E,te){te=Pr(te);var ve=$r[te.name];if(!ve)return Wr(E,"text/plain");var ge=ve(E,te);if(mn.hasOwnProperty(te.name)){var Oe=mn[te.name];for(var Je in Oe)Oe.hasOwnProperty(Je)&&(ge.hasOwnProperty(Je)&&(ge["_"+Je]=ge[Je]),ge[Je]=Oe[Je])}if(ge.name=te.name,te.helperType&&(ge.helperType=te.helperType),te.modeProps)for(var mt in te.modeProps)ge[mt]=te.modeProps[mt];return ge}var mn={};function Gt(E,te){var ve=mn.hasOwnProperty(E)?mn[E]:mn[E]={};ht(te,ve)}function Et(E,te){if(te===!0)return te;if(E.copyState)return E.copyState(te);var ve={};for(var ge in te){var Oe=te[ge];Oe instanceof Array&&(Oe=Oe.concat([])),ve[ge]=Oe}return ve}function It(E,te){for(var ve;E.innerMode&&(ve=E.innerMode(te),!(!ve||ve.mode==E));)te=ve.state,E=ve.mode;return ve||{mode:E,state:te}}function Dt(E,te,ve){return E.startState?E.startState(te,ve):!0}var Lt=function(E,te,ve){this.pos=this.start=0,this.string=E,this.tabSize=te||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ve};Lt.prototype.eol=function(){return this.pos>=this.string.length},Lt.prototype.sol=function(){return this.pos==this.lineStart},Lt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Lt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Lt.prototype.eat=function(E){var te=this.string.charAt(this.pos),ve;if(typeof E=="string"?ve=te==E:ve=te&&(E.test?E.test(te):E(te)),ve)return++this.pos,te},Lt.prototype.eatWhile=function(E){for(var te=this.pos;this.eat(E););return this.pos>te},Lt.prototype.eatSpace=function(){for(var E=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>E},Lt.prototype.skipToEnd=function(){this.pos=this.string.length},Lt.prototype.skipTo=function(E){var te=this.string.indexOf(E,this.pos);if(te>-1)return this.pos=te,!0},Lt.prototype.backUp=function(E){this.pos-=E},Lt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ge(this.string,this.lineStart,this.tabSize):0)},Lt.prototype.indentation=function(){return Ge(this.string,null,this.tabSize)-(this.lineStart?Ge(this.string,this.lineStart,this.tabSize):0)},Lt.prototype.match=function(E,te,ve){if(typeof E=="string"){var ge=function(mt){return ve?mt.toLowerCase():mt},Oe=this.string.substr(this.pos,E.length);if(ge(Oe)==ge(E))return te!==!1&&(this.pos+=E.length),!0}else{var Je=this.string.slice(this.pos).match(E);return Je&&Je.index>0?null:(Je&&te!==!1&&(this.pos+=Je[0].length),Je)}},Lt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Lt.prototype.hideFirstChars=function(E,te){this.lineStart+=E;try{return te()}finally{this.lineStart-=E}},Lt.prototype.lookAhead=function(E){var te=this.lineOracle;return te&&te.lookAhead(E)},Lt.prototype.baseToken=function(){var E=this.lineOracle;return E&&E.baseToken(this.pos)};function Ut(E,te){if(te-=E.first,te<0||te>=E.size)throw new Error("There is no line "+(te+E.first)+" in the document.");for(var ve=E;!ve.lines;)for(var ge=0;;++ge){var Oe=ve.children[ge],Je=Oe.chunkSize();if(te<Je){ve=Oe;break}te-=Je}return ve.lines[te]}function Qt(E,te,ve){var ge=[],Oe=te.line;return E.iter(te.line,ve.line+1,function(Je){var mt=Je.text;Oe==ve.line&&(mt=mt.slice(0,ve.ch)),Oe==te.line&&(mt=mt.slice(te.ch)),ge.push(mt),++Oe}),ge}function yr(E,te,ve){var ge=[];return E.iter(te,ve,function(Oe){ge.push(Oe.text)}),ge}function cr(E,te){var ve=te-E.height;if(ve)for(var ge=E;ge;ge=ge.parent)ge.height+=ve}function vr(E){if(E.parent==null)return null;for(var te=E.parent,ve=ct(te.lines,E),ge=te.parent;ge;te=ge,ge=ge.parent)for(var Oe=0;ge.children[Oe]!=te;++Oe)ve+=ge.children[Oe].chunkSize();return ve+te.first}function Dr(E,te){var ve=E.first;e:do{for(var ge=0;ge<E.children.length;++ge){var Oe=E.children[ge],Je=Oe.height;if(te<Je){E=Oe;continue e}te-=Je,ve+=Oe.chunkSize()}return ve}while(!E.lines);for(var mt=0;mt<E.lines.length;++mt){var Mt=E.lines[mt],Tt=Mt.height;if(te<Tt)break;te-=Tt}return ve+mt}function Ir(E,te){return te>=E.first&&te<E.first+E.size}function Ar(E,te){return String(E.lineNumberFormatter(te+E.firstLineNumber))}function qt(E,te,ve){if(ve===void 0&&(ve=null),!(this instanceof qt))return new qt(E,te,ve);this.line=E,this.ch=te,this.sticky=ve}function kr(E,te){return E.line-te.line||E.ch-te.ch}function Xt(E,te){return E.sticky==te.sticky&&kr(E,te)==0}function rr(E){return qt(E.line,E.ch)}function lr(E,te){return kr(E,te)<0?te:E}function or(E,te){return kr(E,te)<0?E:te}function _r(E,te){return Math.max(E.first,Math.min(te,E.first+E.size-1))}function ur(E,te){if(te.line<E.first)return qt(E.first,0);var ve=E.first+E.size-1;return te.line>ve?qt(ve,Ut(E,ve).text.length):Mr(te,Ut(E,te.line).text.length)}function Mr(E,te){var ve=E.ch;return ve==null||ve>te?qt(E.line,te):ve<0?qt(E.line,0):E}function Pt(E,te){for(var ve=[],ge=0;ge<te.length;ge++)ve[ge]=ur(E,te[ge]);return ve}var Jt=function(E,te){this.state=E,this.lookAhead=te},nr=function(E,te,ve,ge){this.state=te,this.doc=E,this.line=ve,this.maxLookAhead=ge||0,this.baseTokens=null,this.baseTokenPos=1};nr.prototype.lookAhead=function(E){var te=this.doc.getLine(this.line+E);return te!=null&&E>this.maxLookAhead&&(this.maxLookAhead=E),te},nr.prototype.baseToken=function(E){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=E;)this.baseTokenPos+=2;var te=this.baseTokens[this.baseTokenPos+1];return{type:te&&te.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-E}},nr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},nr.fromSaved=function(E,te,ve){return te instanceof Jt?new nr(E,Et(E.mode,te.state),ve,te.lookAhead):new nr(E,Et(E.mode,te),ve)},nr.prototype.save=function(E){var te=E!==!1?Et(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Jt(te,this.maxLookAhead):te};function pr(E,te,ve,ge){var Oe=[E.state.modeGen],Je={};Nn(E,te.text,E.doc.mode,ve,function(Nt,ir){return Oe.push(Nt,ir)},Je,ge);for(var mt=ve.state,Mt=function(Nt){ve.baseTokens=Oe;var ir=E.state.overlays[Nt],hr=1,Br=0;ve.state=!0,Nn(E,te.text,ir.mode,ve,function(Or,on){for(var En=hr;Br<Or;){var ei=Oe[hr];ei>Or&&Oe.splice(hr,1,Or,Oe[hr+1],ei),hr+=2,Br=Math.min(Or,ei)}if(on)if(ir.opaque)Oe.splice(En,hr-En,Or,"overlay "+on),hr=En+2;else for(;En<hr;En+=2){var fi=Oe[En+1];Oe[En+1]=(fi?fi+" ":"")+"overlay "+on}},Je),ve.state=mt,ve.baseTokens=null,ve.baseTokenPos=1},Tt=0;Tt<E.state.overlays.length;++Tt)Mt(Tt);return{styles:Oe,classes:Je.bgClass||Je.textClass?Je:null}}function fr(E,te,ve){if(!te.styles||te.styles[0]!=E.state.modeGen){var ge=br(E,vr(te)),Oe=te.text.length>E.options.maxHighlightLength&&Et(E.doc.mode,ge.state),Je=pr(E,te,ge);Oe&&(ge.state=Oe),te.stateAfter=ge.save(!Oe),te.styles=Je.styles,Je.classes?te.styleClasses=Je.classes:te.styleClasses&&(te.styleClasses=null),ve===E.doc.highlightFrontier&&(E.doc.modeFrontier=Math.max(E.doc.modeFrontier,++E.doc.highlightFrontier))}return te.styles}function br(E,te,ve){var ge=E.doc,Oe=E.display;if(!ge.mode.startState)return new nr(ge,!0,te);var Je=yn(E,te,ve),mt=Je>ge.first&&Ut(ge,Je-1).stateAfter,Mt=mt?nr.fromSaved(ge,mt,Je):new nr(ge,Dt(ge.mode),Je);return ge.iter(Je,te,function(Tt){wr(E,Tt.text,Mt);var Nt=Mt.line;Tt.stateAfter=Nt==te-1||Nt%5==0||Nt>=Oe.viewFrom&&Nt<Oe.viewTo?Mt.save():null,Mt.nextLine()}),ve&&(ge.modeFrontier=Mt.line),Mt}function wr(E,te,ve,ge){var Oe=E.doc.mode,Je=new Lt(te,E.options.tabSize,ve);for(Je.start=Je.pos=ge||0,te==""&&Nr(Oe,ve.state);!Je.eol();)Kr(Oe,Je,ve.state),Je.start=Je.pos}function Nr(E,te){if(E.blankLine)return E.blankLine(te);if(E.innerMode){var ve=It(E,te);if(ve.mode.blankLine)return ve.mode.blankLine(ve.state)}}function Kr(E,te,ve,ge){for(var Oe=0;Oe<10;Oe++){ge&&(ge[0]=It(E,ve).mode);var Je=E.token(te,ve);if(te.pos>te.start)return Je}throw new Error("Mode "+E.name+" failed to advance stream.")}var Ur=function(E,te,ve){this.start=E.start,this.end=E.pos,this.string=E.current(),this.type=te||null,this.state=ve};function gn(E,te,ve,ge){var Oe=E.doc,Je=Oe.mode,mt;te=ur(Oe,te);var Mt=Ut(Oe,te.line),Tt=br(E,te.line,ve),Nt=new Lt(Mt.text,E.options.tabSize,Tt),ir;for(ge&&(ir=[]);(ge||Nt.pos<te.ch)&&!Nt.eol();)Nt.start=Nt.pos,mt=Kr(Je,Nt,Tt.state),ge&&ir.push(new Ur(Nt,mt,Et(Oe.mode,Tt.state)));return ge?ir:new Ur(Nt,mt,Tt.state)}function kn(E,te){if(E)for(;;){var ve=E.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ve)break;E=E.slice(0,ve.index)+E.slice(ve.index+ve[0].length);var ge=ve[1]?"bgClass":"textClass";te[ge]==null?te[ge]=ve[2]:new RegExp("(?:^|\\s)"+ve[2]+"(?:$|\\s)").test(te[ge])||(te[ge]+=" "+ve[2])}return E}function Nn(E,te,ve,ge,Oe,Je,mt){var Mt=ve.flattenSpans;Mt==null&&(Mt=E.options.flattenSpans);var Tt=0,Nt=null,ir=new Lt(te,E.options.tabSize,ge),hr,Br=E.options.addModeClass&&[null];for(te==""&&kn(Nr(ve,ge.state),Je);!ir.eol();){if(ir.pos>E.options.maxHighlightLength?(Mt=!1,mt&&wr(E,te,ge,ir.pos),ir.pos=te.length,hr=null):hr=kn(Kr(ve,ir,ge.state,Br),Je),Br){var Or=Br[0].name;Or&&(hr="m-"+(hr?Or+" "+hr:Or))}if(!Mt||Nt!=hr){for(;Tt<ir.start;)Tt=Math.min(ir.start,Tt+5e3),Oe(Tt,Nt);Nt=hr}ir.start=ir.pos}for(;Tt<ir.pos;){var on=Math.min(ir.pos,Tt+5e3);Oe(on,Nt),Tt=on}}function yn(E,te,ve){for(var ge,Oe,Je=E.doc,mt=ve?-1:te-(E.doc.mode.innerMode?1e3:100),Mt=te;Mt>mt;--Mt){if(Mt<=Je.first)return Je.first;var Tt=Ut(Je,Mt-1),Nt=Tt.stateAfter;if(Nt&&(!ve||Mt+(Nt instanceof Jt?Nt.lookAhead:0)<=Je.modeFrontier))return Mt;var ir=Ge(Tt.text,null,E.options.tabSize);(Oe==null||ge>ir)&&(Oe=Mt-1,ge=ir)}return Oe}function rn(E,te){if(E.modeFrontier=Math.min(E.modeFrontier,te),!(E.highlightFrontier<te-10)){for(var ve=E.first,ge=te-1;ge>ve;ge--){var Oe=Ut(E,ge).stateAfter;if(Oe&&(!(Oe instanceof Jt)||ge+Oe.lookAhead<te)){ve=ge+1;break}}E.highlightFrontier=Math.min(E.highlightFrontier,ve)}}var $n=!1,Tn=!1;function Zn(){$n=!0}function wn(){Tn=!0}function Mn(E,te,ve){this.marker=E,this.from=te,this.to=ve}function Jn(E,te){if(E)for(var ve=0;ve<E.length;++ve){var ge=E[ve];if(ge.marker==te)return ge}}function zn(E,te){for(var ve,ge=0;ge<E.length;++ge)E[ge]!=te&&(ve||(ve=[])).push(E[ge]);return ve}function hi(E,te){E.markedSpans=E.markedSpans?E.markedSpans.concat([te]):[te],te.marker.attachLine(E)}function Ei(E,te,ve){var ge;if(E)for(var Oe=0;Oe<E.length;++Oe){var Je=E[Oe],mt=Je.marker,Mt=Je.from==null||(mt.inclusiveLeft?Je.from<=te:Je.from<te);if(Mt||Je.from==te&&mt.type=="bookmark"&&(!ve||!Je.marker.insertLeft)){var Tt=Je.to==null||(mt.inclusiveRight?Je.to>=te:Je.to>te);(ge||(ge=[])).push(new Mn(mt,Je.from,Tt?null:Je.to))}}return ge}function Rn(E,te,ve){var ge;if(E)for(var Oe=0;Oe<E.length;++Oe){var Je=E[Oe],mt=Je.marker,Mt=Je.to==null||(mt.inclusiveRight?Je.to>=te:Je.to>te);if(Mt||Je.from==te&&mt.type=="bookmark"&&(!ve||Je.marker.insertLeft)){var Tt=Je.from==null||(mt.inclusiveLeft?Je.from<=te:Je.from<te);(ge||(ge=[])).push(new Mn(mt,Tt?null:Je.from-te,Je.to==null?null:Je.to-te))}}return ge}function Jr(E,te){if(te.full)return null;var ve=Ir(E,te.from.line)&&Ut(E,te.from.line).markedSpans,ge=Ir(E,te.to.line)&&Ut(E,te.to.line).markedSpans;if(!ve&&!ge)return null;var Oe=te.from.ch,Je=te.to.ch,mt=kr(te.from,te.to)==0,Mt=Ei(ve,Oe,mt),Tt=Rn(ge,Je,mt),Nt=te.text.length==1,ir=Ot(te.text).length+(Nt?Oe:0);if(Mt)for(var hr=0;hr<Mt.length;++hr){var Br=Mt[hr];if(Br.to==null){var Or=Jn(Tt,Br.marker);Or?Nt&&(Br.to=Or.to==null?null:Or.to+ir):Br.to=Oe}}if(Tt)for(var on=0;on<Tt.length;++on){var En=Tt[on];if(En.to!=null&&(En.to+=ir),En.from==null){var ei=Jn(Mt,En.marker);ei||(En.from=ir,Nt&&(Mt||(Mt=[])).push(En))}else En.from+=ir,Nt&&(Mt||(Mt=[])).push(En)}Mt&&(Mt=Xr(Mt)),Tt&&Tt!=Mt&&(Tt=Xr(Tt));var fi=[Mt];if(!Nt){var vi=te.text.length-2,oi;if(vi>0&&Mt)for(var bi=0;bi<Mt.length;++bi)Mt[bi].to==null&&(oi||(oi=[])).push(new Mn(Mt[bi].marker,null,null));for(var zi=0;zi<vi;++zi)fi.push(oi);fi.push(Tt)}return fi}function Xr(E){for(var te=0;te<E.length;++te){var ve=E[te];ve.from!=null&&ve.from==ve.to&&ve.marker.clearWhenEmpty!==!1&&E.splice(te--,1)}return E.length?E:null}function Hn(E,te,ve){var ge=null;if(E.iter(te.line,ve.line+1,function(Or){if(Or.markedSpans)for(var on=0;on<Or.markedSpans.length;++on){var En=Or.markedSpans[on].marker;En.readOnly&&(!ge||ct(ge,En)==-1)&&(ge||(ge=[])).push(En)}}),!ge)return null;for(var Oe=[{from:te,to:ve}],Je=0;Je<ge.length;++Je)for(var mt=ge[Je],Mt=mt.find(0),Tt=0;Tt<Oe.length;++Tt){var Nt=Oe[Tt];if(!(kr(Nt.to,Mt.from)<0||kr(Nt.from,Mt.to)>0)){var ir=[Tt,1],hr=kr(Nt.from,Mt.from),Br=kr(Nt.to,Mt.to);(hr<0||!mt.inclusiveLeft&&!hr)&&ir.push({from:Nt.from,to:Mt.from}),(Br>0||!mt.inclusiveRight&&!Br)&&ir.push({from:Mt.to,to:Nt.to}),Oe.splice.apply(Oe,ir),Tt+=ir.length-3}}return Oe}function Dn(E){var te=E.markedSpans;if(te){for(var ve=0;ve<te.length;++ve)te[ve].marker.detachLine(E);E.markedSpans=null}}function ri(E,te){if(te){for(var ve=0;ve<te.length;++ve)te[ve].marker.attachLine(E);E.markedSpans=te}}function ai(E){return E.inclusiveLeft?-1:0}function Qr(E){return E.inclusiveRight?1:0}function qr(E,te){var ve=E.lines.length-te.lines.length;if(ve!=0)return ve;var ge=E.find(),Oe=te.find(),Je=kr(ge.from,Oe.from)||ai(E)-ai(te);if(Je)return-Je;var mt=kr(ge.to,Oe.to)||Qr(E)-Qr(te);return mt||te.id-E.id}function An(E,te){var ve=Tn&&E.markedSpans,ge;if(ve)for(var Oe=void 0,Je=0;Je<ve.length;++Je)Oe=ve[Je],Oe.marker.collapsed&&(te?Oe.from:Oe.to)==null&&(!ge||qr(ge,Oe.marker)<0)&&(ge=Oe.marker);return ge}function gi(E){return An(E,!0)}function nn(E){return An(E,!1)}function pn(E,te){var ve=Tn&&E.markedSpans,ge;if(ve)for(var Oe=0;Oe<ve.length;++Oe){var Je=ve[Oe];Je.marker.collapsed&&(Je.from==null||Je.from<te)&&(Je.to==null||Je.to>te)&&(!ge||qr(ge,Je.marker)<0)&&(ge=Je.marker)}return ge}function qn(E,te,ve,ge,Oe){var Je=Ut(E,te),mt=Tn&&Je.markedSpans;if(mt)for(var Mt=0;Mt<mt.length;++Mt){var Tt=mt[Mt];if(Tt.marker.collapsed){var Nt=Tt.marker.find(0),ir=kr(Nt.from,ve)||ai(Tt.marker)-ai(Oe),hr=kr(Nt.to,ge)||Qr(Tt.marker)-Qr(Oe);if(!(ir>=0&&hr<=0||ir<=0&&hr>=0)&&(ir<=0&&(Tt.marker.inclusiveRight&&Oe.inclusiveLeft?kr(Nt.to,ve)>=0:kr(Nt.to,ve)>0)||ir>=0&&(Tt.marker.inclusiveRight&&Oe.inclusiveLeft?kr(Nt.from,ge)<=0:kr(Nt.from,ge)<0)))return!0}}}function li(E){for(var te;te=gi(E);)E=te.find(-1,!0).line;return E}function ji(E){for(var te;te=nn(E);)E=te.find(1,!0).line;return E}function Li(E){for(var te,ve;te=nn(E);)E=te.find(1,!0).line,(ve||(ve=[])).push(E);return ve}function Bi(E,te){var ve=Ut(E,te),ge=li(ve);return ve==ge?te:vr(ge)}function ni(E,te){if(te>E.lastLine())return te;var ve=Ut(E,te),ge;if(!ra(E,ve))return te;for(;ge=nn(ve);)ve=ge.find(1,!0).line;return vr(ve)+1}function ra(E,te){var ve=Tn&&te.markedSpans;if(ve){for(var ge=void 0,Oe=0;Oe<ve.length;++Oe)if(ge=ve[Oe],!!ge.marker.collapsed){if(ge.from==null)return!0;if(!ge.marker.widgetNode&&ge.from==0&&ge.marker.inclusiveLeft&&ca(E,te,ge))return!0}}}function ca(E,te,ve){if(ve.to==null){var ge=ve.marker.find(1,!0);return ca(E,ge.line,Jn(ge.line.markedSpans,ve.marker))}if(ve.marker.inclusiveRight&&ve.to==te.text.length)return!0;for(var Oe=void 0,Je=0;Je<te.markedSpans.length;++Je)if(Oe=te.markedSpans[Je],Oe.marker.collapsed&&!Oe.marker.widgetNode&&Oe.from==ve.to&&(Oe.to==null||Oe.to!=ve.from)&&(Oe.marker.inclusiveLeft||ve.marker.inclusiveRight)&&ca(E,te,Oe))return!0}function Sn(E){E=li(E);for(var te=0,ve=E.parent,ge=0;ge<ve.lines.length;++ge){var Oe=ve.lines[ge];if(Oe==E)break;te+=Oe.height}for(var Je=ve.parent;Je;ve=Je,Je=ve.parent)for(var mt=0;mt<Je.children.length;++mt){var Mt=Je.children[mt];if(Mt==ve)break;te+=Mt.height}return te}function Cn(E){if(E.height==0)return 0;for(var te=E.text.length,ve,ge=E;ve=gi(ge);){var Oe=ve.find(0,!0);ge=Oe.from.line,te+=Oe.from.ch-Oe.to.ch}for(ge=E;ve=nn(ge);){var Je=ve.find(0,!0);te-=ge.text.length-Je.from.ch,ge=Je.to.line,te+=ge.text.length-Je.to.ch}return te}function bn(E){var te=E.display,ve=E.doc;te.maxLine=Ut(ve,ve.first),te.maxLineLength=Cn(te.maxLine),te.maxLineChanged=!0,ve.iter(function(ge){var Oe=Cn(ge);Oe>te.maxLineLength&&(te.maxLineLength=Oe,te.maxLine=ge)})}var Wn=function(E,te,ve){this.text=E,ri(this,te),this.height=ve?ve(this):1};Wn.prototype.lineNo=function(){return vr(this)},Zt(Wn);function Ki(E,te,ve,ge){E.text=te,E.stateAfter&&(E.stateAfter=null),E.styles&&(E.styles=null),E.order!=null&&(E.order=null),Dn(E),ri(E,ve);var Oe=ge?ge(E):1;Oe!=E.height&&cr(E,Oe)}function qi(E){E.parent=null,Dn(E)}var oa={},na={};function Xi(E,te){if(!E||/^\s*$/.test(E))return null;var ve=te.addModeClass?na:oa;return ve[E]||(ve[E]=E.replace(/\S+/g,"cm-$&"))}function ba(E,te){var ve=Pe("span",null,null,z?"padding-right: .1px":null),ge={pre:Pe("pre",[ve],"CodeMirror-line"),content:ve,col:0,pos:0,cm:E,trailingSpace:!1,splitSpaces:E.getOption("lineWrapping")};te.measure={};for(var Oe=0;Oe<=(te.rest?te.rest.length:0);Oe++){var Je=Oe?te.rest[Oe-1]:te.line,mt=void 0;ge.pos=0,ge.addToken=Ia,hn(E.display.measure)&&(mt=Ht(Je,E.doc.direction))&&(ge.addToken=Oi(ge.addToken,mt)),ge.map=[];var Mt=te!=E.display.externalMeasured&&vr(Je);ka(Je,ge,fr(E,Je,Mt)),Je.styleClasses&&(Je.styleClasses.bgClass&&(ge.bgClass=Qe(Je.styleClasses.bgClass,ge.bgClass||"")),Je.styleClasses.textClass&&(ge.textClass=Qe(Je.styleClasses.textClass,ge.textClass||""))),ge.map.length==0&&ge.map.push(0,0,ge.content.appendChild(vn(E.display.measure))),Oe==0?(te.measure.map=ge.map,te.measure.cache={}):((te.measure.maps||(te.measure.maps=[])).push(ge.map),(te.measure.caches||(te.measure.caches=[])).push({}))}if(z){var Tt=ge.content.lastChild;(/\bcm-tab\b/.test(Tt.className)||Tt.querySelector&&Tt.querySelector(".cm-tab"))&&(ge.content.className="cm-tab-wrap-hack")}return ft(E,"renderLine",E,te.line,ge.pre),ge.pre.className&&(ge.textClass=Qe(ge.pre.className,ge.textClass||"")),ge}function Na(E){var te=Ee("span","\u2022","cm-invalidchar");return te.title="\\u"+E.charCodeAt(0).toString(16),te.setAttribute("aria-label",te.title),te}function Ia(E,te,ve,ge,Oe,Je,mt){if(te){var Mt=E.splitSpaces?yo(te,E.trailingSpace):te,Tt=E.cm.state.specialChars,Nt=!1,ir;if(!Tt.test(te))E.col+=te.length,ir=document.createTextNode(Mt),E.map.push(E.pos,E.pos+te.length,ir),me&&re<9&&(Nt=!0),E.pos+=te.length;else{ir=document.createDocumentFragment();for(var hr=0;;){Tt.lastIndex=hr;var Br=Tt.exec(te),Or=Br?Br.index-hr:te.length-hr;if(Or){var on=document.createTextNode(Mt.slice(hr,hr+Or));me&&re<9?ir.appendChild(Ee("span",[on])):ir.appendChild(on),E.map.push(E.pos,E.pos+Or,on),E.col+=Or,E.pos+=Or}if(!Br)break;hr+=Or+1;var En=void 0;if(Br[0]==" "){var ei=E.cm.options.tabSize,fi=ei-E.col%ei;En=ir.appendChild(Ee("span",Rt(fi),"cm-tab")),En.setAttribute("role","presentation"),En.setAttribute("cm-text"," "),E.col+=fi}else Br[0]=="\r"||Br[0]==`
|
|
|
`?(En=ir.appendChild(Ee("span",Br[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),En.setAttribute("cm-text",Br[0]),E.col+=1):(En=E.cm.options.specialCharPlaceholder(Br[0]),En.setAttribute("cm-text",Br[0]),me&&re<9?ir.appendChild(Ee("span",[En])):ir.appendChild(En),E.col+=1);E.map.push(E.pos,E.pos+1,En),E.pos++}}if(E.trailingSpace=Mt.charCodeAt(te.length-1)==32,ve||ge||Oe||Nt||Je||mt){var vi=ve||"";ge&&(vi+=ge),Oe&&(vi+=Oe);var oi=Ee("span",[ir],vi,Je);if(mt)for(var bi in mt)mt.hasOwnProperty(bi)&&bi!="style"&&bi!="class"&&oi.setAttribute(bi,mt[bi]);return E.content.appendChild(oi)}E.content.appendChild(ir)}}function yo(E,te){if(E.length>1&&!/ /.test(E))return E;for(var ve=te,ge="",Oe=0;Oe<E.length;Oe++){var Je=E.charAt(Oe);Je==" "&&ve&&(Oe==E.length-1||E.charCodeAt(Oe+1)==32)&&(Je="\xA0"),ge+=Je,ve=Je==" "}return ge}function Oi(E,te){return function(ve,ge,Oe,Je,mt,Mt,Tt){Oe=Oe?Oe+" cm-force-border":"cm-force-border";for(var Nt=ve.pos,ir=Nt+ge.length;;){for(var hr=void 0,Br=0;Br<te.length&&(hr=te[Br],!(hr.to>Nt&&hr.from<=Nt));Br++);if(hr.to>=ir)return E(ve,ge,Oe,Je,mt,Mt,Tt);E(ve,ge.slice(0,hr.to-Nt),Oe,Je,null,Mt,Tt),Je=null,ge=ge.slice(hr.to-Nt),Nt=hr.to}}}function Fi(E,te,ve,ge){var Oe=!ge&&ve.widgetNode;Oe&&E.map.push(E.pos,E.pos+te,Oe),!ge&&E.cm.display.input.needsContentAttribute&&(Oe||(Oe=E.content.appendChild(document.createElement("span"))),Oe.setAttribute("cm-marker",ve.id)),Oe&&(E.cm.display.input.setUneditable(Oe),E.content.appendChild(Oe)),E.pos+=te,E.trailingSpace=!1}function ka(E,te,ve){var ge=E.markedSpans,Oe=E.text,Je=0;if(!ge){for(var mt=1;mt<ve.length;mt+=2)te.addToken(te,Oe.slice(Je,Je=ve[mt]),Xi(ve[mt+1],te.cm.options));return}for(var Mt=Oe.length,Tt=0,Nt=1,ir="",hr,Br,Or=0,on,En,ei,fi,vi;;){if(Or==Tt){on=En=ei=Br="",vi=null,fi=null,Or=1/0;for(var oi=[],bi=void 0,zi=0;zi<ge.length;++zi){var Wi=ge[zi],Ma=Wi.marker;if(Ma.type=="bookmark"&&Wi.from==Tt&&Ma.widgetNode)oi.push(Ma);else if(Wi.from<=Tt&&(Wi.to==null||Wi.to>Tt||Ma.collapsed&&Wi.to==Tt&&Wi.from==Tt)){if(Wi.to!=null&&Wi.to!=Tt&&Or>Wi.to&&(Or=Wi.to,En=""),Ma.className&&(on+=" "+Ma.className),Ma.css&&(Br=(Br?Br+";":"")+Ma.css),Ma.startStyle&&Wi.from==Tt&&(ei+=" "+Ma.startStyle),Ma.endStyle&&Wi.to==Or&&(bi||(bi=[])).push(Ma.endStyle,Wi.to),Ma.title&&((vi||(vi={})).title=Ma.title),Ma.attributes)for(var ho in Ma.attributes)(vi||(vi={}))[ho]=Ma.attributes[ho];Ma.collapsed&&(!fi||qr(fi.marker,Ma)<0)&&(fi=Wi)}else Wi.from>Tt&&Or>Wi.from&&(Or=Wi.from)}if(bi)for(var ys=0;ys<bi.length;ys+=2)bi[ys+1]==Or&&(En+=" "+bi[ys]);if(!fi||fi.from==Tt)for(var Po=0;Po<oi.length;++Po)Fi(te,0,oi[Po]);if(fi&&(fi.from||0)==Tt){if(Fi(te,(fi.to==null?Mt+1:fi.to)-Tt,fi.marker,fi.from==null),fi.to==null)return;fi.to==Tt&&(fi=!1)}}if(Tt>=Mt)break;for(var Zs=Math.min(Mt,Or);;){if(ir){var Us=Tt+ir.length;if(!fi){var is=Us>Zs?ir.slice(0,Zs-Tt):ir;te.addToken(te,is,hr?hr+on:on,ei,Tt+is.length==Or?En:"",Br,vi)}if(Us>=Zs){ir=ir.slice(Zs-Tt),Tt=Zs;break}Tt=Us,ei=""}ir=Oe.slice(Je,Je=ve[Nt++]),hr=Xi(ve[Nt++],te.cm.options)}}}function Vi(E,te,ve){this.line=te,this.rest=Li(te),this.size=this.rest?vr(Ot(this.rest))-ve+1:1,this.node=this.text=null,this.hidden=ra(E,te)}function ia(E,te,ve){for(var ge=[],Oe,Je=te;Je<ve;Je=Oe){var mt=new Vi(E.doc,Ut(E.doc,Je),Je);Oe=Je+mt.size,ge.push(mt)}return ge}var da=null;function sa(E){da?da.ops.push(E):E.ownsGroup=da={ops:[E],delayedCallbacks:[]}}function ui(E){var te=E.delayedCallbacks,ve=0;do{for(;ve<te.length;ve++)te[ve].call(null);for(var ge=0;ge<E.ops.length;ge++){var Oe=E.ops[ge];if(Oe.cursorActivityHandlers)for(;Oe.cursorActivityCalled<Oe.cursorActivityHandlers.length;)Oe.cursorActivityHandlers[Oe.cursorActivityCalled++].call(null,Oe.cm)}}while(ve<te.length)}function Di(E,te){var ve=E.ownsGroup;if(ve)try{ui(ve)}finally{da=null,te(ve)}}var Mi=null;function mi(E,te){var ve=Bt(E,te);if(ve.length){var ge=Array.prototype.slice.call(arguments,2),Oe;da?Oe=da.delayedCallbacks:Mi?Oe=Mi:(Oe=Mi=[],setTimeout(ea,0));for(var Je=function(Mt){Oe.push(function(){return ve[Mt].apply(null,ge)})},mt=0;mt<ve.length;++mt)Je(mt)}}function ea(){var E=Mi;Mi=null;for(var te=0;te<E.length;++te)E[te]()}function Qi(E,te,ve,ge){for(var Oe=0;Oe<te.changes.length;Oe++){var Je=te.changes[Oe];Je=="text"?oo(E,te):Je=="gutter"?pa(E,te,ve,ge):Je=="class"?ha(E,te):Je=="widget"&&eo(E,te,ge)}te.changes=null}function Ka(E){return E.node==E.text&&(E.node=Ee("div",null,null,"position: relative"),E.text.parentNode&&E.text.parentNode.replaceChild(E.node,E.text),E.node.appendChild(E.text),me&&re<8&&(E.node.style.zIndex=2)),E.node}function Ya(E,te){var ve=te.bgClass?te.bgClass+" "+(te.line.bgClass||""):te.line.bgClass;if(ve&&(ve+=" CodeMirror-linebackground"),te.background)ve?te.background.className=ve:(te.background.parentNode.removeChild(te.background),te.background=null);else if(ve){var ge=Ka(te);te.background=ge.insertBefore(Ee("div",null,ve),ge.firstChild),E.display.input.setUneditable(te.background)}}function Ha(E,te){var ve=E.display.externalMeasured;return ve&&ve.line==te.line?(E.display.externalMeasured=null,te.measure=ve.measure,ve.built):ba(E,te)}function oo(E,te){var ve=te.text.className,ge=Ha(E,te);te.text==te.node&&(te.node=ge.pre),te.text.parentNode.replaceChild(ge.pre,te.text),te.text=ge.pre,ge.bgClass!=te.bgClass||ge.textClass!=te.textClass?(te.bgClass=ge.bgClass,te.textClass=ge.textClass,ha(E,te)):ve&&(te.text.className=ve)}function ha(E,te){Ya(E,te),te.line.wrapClass?Ka(te).className=te.line.wrapClass:te.node!=te.text&&(te.node.className="");var ve=te.textClass?te.textClass+" "+(te.line.textClass||""):te.line.textClass;te.text.className=ve||""}function pa(E,te,ve,ge){if(te.gutter&&(te.node.removeChild(te.gutter),te.gutter=null),te.gutterBackground&&(te.node.removeChild(te.gutterBackground),te.gutterBackground=null),te.line.gutterClass){var Oe=Ka(te);te.gutterBackground=Ee("div",null,"CodeMirror-gutter-background "+te.line.gutterClass,"left: "+(E.options.fixedGutter?ge.fixedPos:-ge.gutterTotalWidth)+"px; width: "+ge.gutterTotalWidth+"px"),E.display.input.setUneditable(te.gutterBackground),Oe.insertBefore(te.gutterBackground,te.text)}var Je=te.line.gutterMarkers;if(E.options.lineNumbers||Je){var mt=Ka(te),Mt=te.gutter=Ee("div",null,"CodeMirror-gutter-wrapper","left: "+(E.options.fixedGutter?ge.fixedPos:-ge.gutterTotalWidth)+"px");if(E.display.input.setUneditable(Mt),mt.insertBefore(Mt,te.text),te.line.gutterClass&&(Mt.className+=" "+te.line.gutterClass),E.options.lineNumbers&&(!Je||!Je["CodeMirror-linenumbers"])&&(te.lineNumber=Mt.appendChild(Ee("div",Ar(E.options,ve),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ge.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+E.display.lineNumInnerWidth+"px"))),Je)for(var Tt=0;Tt<E.display.gutterSpecs.length;++Tt){var Nt=E.display.gutterSpecs[Tt].className,ir=Je.hasOwnProperty(Nt)&&Je[Nt];ir&&Mt.appendChild(Ee("div",[ir],"CodeMirror-gutter-elt","left: "+ge.gutterLeft[Nt]+"px; width: "+ge.gutterWidth[Nt]+"px"))}}}function eo(E,te,ve){te.alignable&&(te.alignable=null);for(var ge=Ce("CodeMirror-linewidget"),Oe=te.node.firstChild,Je=void 0;Oe;Oe=Je)Je=Oe.nextSibling,ge.test(Oe.className)&&te.node.removeChild(Oe);bo(E,te,ve)}function to(E,te,ve,ge){var Oe=Ha(E,te);return te.text=te.node=Oe.pre,Oe.bgClass&&(te.bgClass=Oe.bgClass),Oe.textClass&&(te.textClass=Oe.textClass),ha(E,te),pa(E,te,ve,ge),bo(E,te,ge),te.node}function bo(E,te,ve){if(ro(E,te.line,te,ve,!0),te.rest)for(var ge=0;ge<te.rest.length;ge++)ro(E,te.rest[ge],te,ve,!1)}function ro(E,te,ve,ge,Oe){if(te.widgets)for(var Je=Ka(ve),mt=0,Mt=te.widgets;mt<Mt.length;++mt){var Tt=Mt[mt],Nt=Ee("div",[Tt.node],"CodeMirror-linewidget"+(Tt.className?" "+Tt.className:""));Tt.handleMouseEvents||Nt.setAttribute("cm-ignore-events","true"),pl(Tt,Nt,ve,ge),E.display.input.setUneditable(Nt),Oe&&Tt.above?Je.insertBefore(Nt,ve.gutter||ve.text):Je.appendChild(Nt),mi(Tt,"redraw")}}function pl(E,te,ve,ge){if(E.noHScroll){(ve.alignable||(ve.alignable=[])).push(te);var Oe=ge.wrapperWidth;te.style.left=ge.fixedPos+"px",E.coverGutter||(Oe-=ge.gutterTotalWidth,te.style.paddingLeft=ge.gutterTotalWidth+"px"),te.style.width=Oe+"px"}E.coverGutter&&(te.style.zIndex=5,te.style.position="relative",E.noHScroll||(te.style.marginLeft=-ge.gutterTotalWidth+"px"))}function ks(E){if(E.height!=null)return E.height;var te=E.doc.cm;if(!te)return 0;if(!Ve(document.body,E.node)){var ve="position: relative;";E.coverGutter&&(ve+="margin-left: -"+te.display.gutters.offsetWidth+"px;"),E.noHScroll&&(ve+="width: "+te.display.wrapper.clientWidth+"px;"),De(te.display.measure,Ee("div",[E.node],null,ve))}return E.height=E.node.parentNode.offsetHeight}function Ts(E,te){for(var ve=jr(te);ve!=E.wrapper;ve=ve.parentNode)if(!ve||ve.nodeType==1&&ve.getAttribute("cm-ignore-events")=="true"||ve.parentNode==E.sizer&&ve!=E.mover)return!0}function os(E){return E.lineSpace.offsetTop}function Tl(E){return E.mover.offsetHeight-E.lineSpace.offsetHeight}function As(E){if(E.cachedPaddingH)return E.cachedPaddingH;var te=De(E.measure,Ee("pre","x","CodeMirror-line-like")),ve=window.getComputedStyle?window.getComputedStyle(te):te.currentStyle,ge={left:parseInt(ve.paddingLeft),right:parseInt(ve.paddingRight)};return!isNaN(ge.left)&&!isNaN(ge.right)&&(E.cachedPaddingH=ge),ge}function Ro(E){return pt-E.display.nativeBarWidth}function So(E){return E.display.scroller.clientWidth-Ro(E)-E.display.barWidth}function zs(E){return E.display.scroller.clientHeight-Ro(E)-E.display.barHeight}function Gs(E,te,ve){var ge=E.options.lineWrapping,Oe=ge&&So(E);if(!te.measure.heights||ge&&te.measure.width!=Oe){var Je=te.measure.heights=[];if(ge){te.measure.width=Oe;for(var mt=te.text.firstChild.getClientRects(),Mt=0;Mt<mt.length-1;Mt++){var Tt=mt[Mt],Nt=mt[Mt+1];Math.abs(Tt.bottom-Nt.bottom)>2&&Je.push((Tt.bottom+Nt.top)/2-ve.top)}}Je.push(ve.bottom-ve.top)}}function Xs(E,te,ve){if(E.line==te)return{map:E.measure.map,cache:E.measure.cache};for(var ge=0;ge<E.rest.length;ge++)if(E.rest[ge]==te)return{map:E.measure.maps[ge],cache:E.measure.caches[ge]};for(var Oe=0;Oe<E.rest.length;Oe++)if(vr(E.rest[Oe])>ve)return{map:E.measure.maps[Oe],cache:E.measure.caches[Oe],before:!0}}function Al(E,te){te=li(te);var ve=vr(te),ge=E.display.externalMeasured=new Vi(E.doc,te,ve);ge.lineN=ve;var Oe=ge.built=ba(E,ge);return ge.text=Oe.pre,De(E.display.lineMeasure,Oe.pre),ge}function ol(E,te,ve,ge){return ja(E,es(E,te),ve,ge)}function ss(E,te){if(te>=E.display.viewFrom&&te<E.display.viewTo)return E.display.view[ls(E,te)];var ve=E.display.externalMeasured;if(ve&&te>=ve.lineN&&te<ve.lineN+ve.size)return ve}function es(E,te){var ve=vr(te),ge=ss(E,ve);ge&&!ge.text?ge=null:ge&&ge.changes&&(Qi(E,ge,ve,Ba(E)),E.curOp.forceUpdate=!0),ge||(ge=Al(E,te));var Oe=Xs(ge,te,ve);return{line:te,view:ge,rect:null,map:Oe.map,cache:Oe.cache,before:Oe.before,hasHeights:!1}}function ja(E,te,ve,ge,Oe){te.before&&(ve=-1);var Je=ve+(ge||""),mt;return te.cache.hasOwnProperty(Je)?mt=te.cache[Je]:(te.rect||(te.rect=te.view.text.getBoundingClientRect()),te.hasHeights||(Gs(E,te.view,te.rect),te.hasHeights=!0),mt=va(E,te,ve,ge),mt.bogus||(te.cache[Je]=mt)),{left:mt.left,right:mt.right,top:Oe?mt.rtop:mt.top,bottom:Oe?mt.rbottom:mt.bottom}}var Ys={left:0,right:0,top:0,bottom:0};function Ol(E,te,ve){for(var ge,Oe,Je,mt,Mt,Tt,Nt=0;Nt<E.length;Nt+=3)if(Mt=E[Nt],Tt=E[Nt+1],te<Mt?(Oe=0,Je=1,mt="left"):te<Tt?(Oe=te-Mt,Je=Oe+1):(Nt==E.length-3||te==Tt&&E[Nt+3]>te)&&(Je=Tt-Mt,Oe=Je-1,te>=Tt&&(mt="right")),Oe!=null){if(ge=E[Nt+2],Mt==Tt&&ve==(ge.insertLeft?"left":"right")&&(mt=ve),ve=="left"&&Oe==0)for(;Nt&&E[Nt-2]==E[Nt-3]&&E[Nt-1].insertLeft;)ge=E[(Nt-=3)+2],mt="left";if(ve=="right"&&Oe==Tt-Mt)for(;Nt<E.length-3&&E[Nt+3]==E[Nt+4]&&!E[Nt+5].insertLeft;)ge=E[(Nt+=3)+2],mt="right";break}return{node:ge,start:Oe,end:Je,collapse:mt,coverStart:Mt,coverEnd:Tt}}function Ks(E,te){var ve=Ys;if(te=="left")for(var ge=0;ge<E.length&&(ve=E[ge]).left==ve.right;ge++);else for(var Oe=E.length-1;Oe>=0&&(ve=E[Oe]).left==ve.right;Oe--);return ve}function va(E,te,ve,ge){var Oe=Ol(te.map,ve,ge),Je=Oe.node,mt=Oe.start,Mt=Oe.end,Tt=Oe.collapse,Nt;if(Je.nodeType==3){for(var ir=0;ir<4;ir++){for(;mt&&ze(te.line.text.charAt(Oe.coverStart+mt));)--mt;for(;Oe.coverStart+Mt<Oe.coverEnd&&ze(te.line.text.charAt(Oe.coverStart+Mt));)++Mt;if(me&&re<9&&mt==0&&Mt==Oe.coverEnd-Oe.coverStart?Nt=Je.parentNode.getBoundingClientRect():Nt=Ks(Be(Je,mt,Mt).getClientRects(),ge),Nt.left||Nt.right||mt==0)break;Mt=mt,mt=mt-1,Tt="right"}me&&re<11&&(Nt=ua(E.display.measure,Nt))}else{mt>0&&(Tt=ge="right");var hr;E.options.lineWrapping&&(hr=Je.getClientRects()).length>1?Nt=hr[ge=="right"?hr.length-1:0]:Nt=Je.getBoundingClientRect()}if(me&&re<9&&!mt&&(!Nt||!Nt.left&&!Nt.right)){var Br=Je.parentNode.getClientRects()[0];Br?Nt={left:Br.left,right:Br.left+Oa(E.display),top:Br.top,bottom:Br.bottom}:Nt=Ys}for(var Or=Nt.top-te.rect.top,on=Nt.bottom-te.rect.top,En=(Or+on)/2,ei=te.view.measure.heights,fi=0;fi<ei.length-1&&!(En<ei[fi]);fi++);var vi=fi?ei[fi-1]:0,oi=ei[fi],bi={left:(Tt=="right"?Nt.right:Nt.left)-te.rect.left,right:(Tt=="left"?Nt.left:Nt.right)-te.rect.left,top:vi,bottom:oi};return!Nt.left&&!Nt.right&&(bi.bogus=!0),E.options.singleCursorHeightPerLine||(bi.rtop=Or,bi.rbottom=on),bi}function ua(E,te){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Vn(E))return te;var ve=screen.logicalXDPI/screen.deviceXDPI,ge=screen.logicalYDPI/screen.deviceYDPI;return{left:te.left*ve,right:te.right*ve,top:te.top*ge,bottom:te.bottom*ge}}function Wa(E){if(E.measure&&(E.measure.cache={},E.measure.heights=null,E.rest))for(var te=0;te<E.rest.length;te++)E.measure.caches[te]={}}function uo(E){E.display.externalMeasure=null,Te(E.display.lineMeasure);for(var te=0;te<E.display.view.length;te++)Wa(E.display.view[te])}function Ja(E){uo(E),E.display.cachedCharWidth=E.display.cachedTextHeight=E.display.cachedPaddingH=null,E.options.lineWrapping||(E.display.maxLineChanged=!0),E.display.lineNumChars=null}function Bo(){return oe&&de?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ho(){return oe&&de?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function fs(E){var te=0;if(E.widgets)for(var ve=0;ve<E.widgets.length;++ve)E.widgets[ve].above&&(te+=ks(E.widgets[ve]));return te}function Wo(E,te,ve,ge,Oe){if(!Oe){var Je=fs(te);ve.top+=Je,ve.bottom+=Je}if(ge=="line")return ve;ge||(ge="local");var mt=Sn(te);if(ge=="local"?mt+=os(E.display):mt-=E.display.viewOffset,ge=="page"||ge=="window"){var Mt=E.display.lineSpace.getBoundingClientRect();mt+=Mt.top+(ge=="window"?0:Ho());var Tt=Mt.left+(ge=="window"?0:Bo());ve.left+=Tt,ve.right+=Tt}return ve.top+=mt,ve.bottom+=mt,ve}function Rs(E,te,ve){if(ve=="div")return te;var ge=te.left,Oe=te.top;if(ve=="page")ge-=Bo(),Oe-=Ho();else if(ve=="local"||!ve){var Je=E.display.sizer.getBoundingClientRect();ge+=Je.left,Oe+=Je.top}var mt=E.display.lineSpace.getBoundingClientRect();return{left:ge-mt.left,top:Oe-mt.top}}function Os(E,te,ve,ge,Oe){return ge||(ge=Ut(E.doc,te.line)),Wo(E,ge,ol(E,ge,te.ch,Oe),ve)}function Zo(E,te,ve,ge,Oe,Je){ge=ge||Ut(E.doc,te.line),Oe||(Oe=es(E,ge));function mt(on,En){var ei=ja(E,Oe,on,En?"right":"left",Je);return En?ei.left=ei.right:ei.right=ei.left,Wo(E,ge,ei,ve)}var Mt=Ht(ge,E.doc.direction),Tt=te.ch,Nt=te.sticky;if(Tt>=ge.text.length?(Tt=ge.text.length,Nt="before"):Tt<=0&&(Tt=0,Nt="after"),!Mt)return mt(Nt=="before"?Tt-1:Tt,Nt=="before");function ir(on,En,ei){var fi=Mt[En],vi=fi.level==1;return mt(ei?on-1:on,vi!=ei)}var hr=at(Mt,Tt,Nt),Br=bt,Or=ir(Tt,hr,Nt=="before");return Br!=null&&(Or.other=ir(Tt,Br,Nt!="before")),Or}function vc(E,te){var ve=0;te=ur(E.doc,te),E.options.lineWrapping||(ve=Oa(E.display)*te.ch);var ge=Ut(E.doc,te.line),Oe=Sn(ge)+os(E.display);return{left:ve,right:ve,top:Oe,bottom:Oe+ge.height}}function ml(E,te,ve,ge,Oe){var Je=qt(E,te,ve);return Je.xRel=Oe,ge&&(Je.outside=ge),Je}function gl(E,te,ve){var ge=E.doc;if(ve+=E.display.viewOffset,ve<0)return ml(ge.first,0,null,-1,-1);var Oe=Dr(ge,ve),Je=ge.first+ge.size-1;if(Oe>Je)return ml(ge.first+ge.size-1,Ut(ge,Je).text.length,null,1,1);te<0&&(te=0);for(var mt=Ut(ge,Oe);;){var Mt=Jc(E,mt,Oe,te,ve),Tt=pn(mt,Mt.ch+(Mt.xRel>0||Mt.outside>0?1:0));if(!Tt)return Mt;var Nt=Tt.find(1);if(Nt.line==Oe)return Nt;mt=Ut(ge,Oe=Nt.line)}}function nc(E,te,ve,ge){ge-=fs(te);var Oe=te.text.length,Je=We(function(mt){return ja(E,ve,mt-1).bottom<=ge},Oe,0);return Oe=We(function(mt){return ja(E,ve,mt).top>ge},Je,Oe),{begin:Je,end:Oe}}function Ul(E,te,ve,ge){ve||(ve=es(E,te));var Oe=Wo(E,te,ja(E,ve,ge),"line").top;return nc(E,te,ve,Oe)}function Dl(E,te,ve,ge){return E.bottom<=ve?!1:E.top>ve?!0:(ge?E.left:E.right)>te}function Jc(E,te,ve,ge,Oe){Oe-=Sn(te);var Je=es(E,te),mt=fs(te),Mt=0,Tt=te.text.length,Nt=!0,ir=Ht(te,E.doc.direction);if(ir){var hr=(E.options.lineWrapping?ic:sl)(E,te,ve,Je,ir,ge,Oe);Nt=hr.level!=1,Mt=Nt?hr.from:hr.to-1,Tt=Nt?hr.to:hr.from-1}var Br=null,Or=null,on=We(function(zi){var Wi=ja(E,Je,zi);return Wi.top+=mt,Wi.bottom+=mt,Dl(Wi,ge,Oe,!1)?(Wi.top<=Oe&&Wi.left<=ge&&(Br=zi,Or=Wi),!0):!1},Mt,Tt),En,ei,fi=!1;if(Or){var vi=ge-Or.left<Or.right-ge,oi=vi==Nt;on=Br+(oi?0:1),ei=oi?"after":"before",En=vi?Or.left:Or.right}else{!Nt&&(on==Tt||on==Mt)&&on++,ei=on==0?"after":on==te.text.length?"before":ja(E,Je,on-(Nt?1:0)).bottom+mt<=Oe==Nt?"after":"before";var bi=Zo(E,qt(ve,on,ei),"line",te,Je);En=bi.left,fi=Oe<bi.top?-1:Oe>=bi.bottom?1:0}return on=Ke(te.text,on,1),ml(ve,on,ei,fi,ge-En)}function sl(E,te,ve,ge,Oe,Je,mt){var Mt=We(function(hr){var Br=Oe[hr],Or=Br.level!=1;return Dl(Zo(E,qt(ve,Or?Br.to:Br.from,Or?"before":"after"),"line",te,ge),Je,mt,!0)},0,Oe.length-1),Tt=Oe[Mt];if(Mt>0){var Nt=Tt.level!=1,ir=Zo(E,qt(ve,Nt?Tt.from:Tt.to,Nt?"after":"before"),"line",te,ge);Dl(ir,Je,mt,!0)&&ir.top>mt&&(Tt=Oe[Mt-1])}return Tt}function ic(E,te,ve,ge,Oe,Je,mt){var Mt=nc(E,te,ge,mt),Tt=Mt.begin,Nt=Mt.end;/\s/.test(te.text.charAt(Nt-1))&&Nt--;for(var ir=null,hr=null,Br=0;Br<Oe.length;Br++){var Or=Oe[Br];if(!(Or.from>=Nt||Or.to<=Tt)){var on=Or.level!=1,En=ja(E,ge,on?Math.min(Nt,Or.to)-1:Math.max(Tt,Or.from)).right,ei=En<Je?Je-En+1e9:En-Je;(!ir||hr>ei)&&(ir=Or,hr=ei)}}return ir||(ir=Oe[Oe.length-1]),ir.from<Tt&&(ir={from:Tt,to:ir.to,level:ir.level}),ir.to>Nt&&(ir={from:ir.from,to:Nt,level:ir.level}),ir}var ll;function vl(E){if(E.cachedTextHeight!=null)return E.cachedTextHeight;if(ll==null){ll=Ee("pre",null,"CodeMirror-line-like");for(var te=0;te<49;++te)ll.appendChild(document.createTextNode("x")),ll.appendChild(Ee("br"));ll.appendChild(document.createTextNode("x"))}De(E.measure,ll);var ve=ll.offsetHeight/50;return ve>3&&(E.cachedTextHeight=ve),Te(E.measure),ve||1}function Oa(E){if(E.cachedCharWidth!=null)return E.cachedCharWidth;var te=Ee("span","xxxxxxxxxx"),ve=Ee("pre",[te],"CodeMirror-line-like");De(E.measure,ve);var ge=te.getBoundingClientRect(),Oe=(ge.right-ge.left)/10;return Oe>2&&(E.cachedCharWidth=Oe),Oe||10}function Ba(E){for(var te=E.display,ve={},ge={},Oe=te.gutters.clientLeft,Je=te.gutters.firstChild,mt=0;Je;Je=Je.nextSibling,++mt){var Mt=E.display.gutterSpecs[mt].className;ve[Mt]=Je.offsetLeft+Je.clientLeft+Oe,ge[Mt]=Je.clientWidth}return{fixedPos:Za(te),gutterTotalWidth:te.gutters.offsetWidth,gutterLeft:ve,gutterWidth:ge,wrapperWidth:te.wrapper.clientWidth}}function Za(E){return E.scroller.getBoundingClientRect().left-E.sizer.getBoundingClientRect().left}function hs(E){var te=vl(E.display),ve=E.options.lineWrapping,ge=ve&&Math.max(5,E.display.scroller.clientWidth/Oa(E.display)-3);return function(Oe){if(ra(E.doc,Oe))return 0;var Je=0;if(Oe.widgets)for(var mt=0;mt<Oe.widgets.length;mt++)Oe.widgets[mt].height&&(Je+=Oe.widgets[mt].height);return ve?Je+(Math.ceil(Oe.text.length/ge)||1)*te:Je+te}}function Uo(E){var te=E.doc,ve=hs(E);te.iter(function(ge){var Oe=ve(ge);Oe!=ge.height&&cr(ge,Oe)})}function Hs(E,te,ve,ge){var Oe=E.display;if(!ve&&jr(te).getAttribute("cm-not-content")=="true")return null;var Je,mt,Mt=Oe.lineSpace.getBoundingClientRect();try{Je=te.clientX-Mt.left,mt=te.clientY-Mt.top}catch(hr){return null}var Tt=gl(E,Je,mt),Nt;if(ge&&Tt.xRel>0&&(Nt=Ut(E.doc,Tt.line).text).length==Tt.ch){var ir=Ge(Nt,Nt.length,E.options.tabSize)-Nt.length;Tt=qt(Tt.line,Math.max(0,Math.round((Je-As(E.display).left)/Oa(E.display))-ir))}return Tt}function ls(E,te){if(te>=E.display.viewTo||(te-=E.display.viewFrom,te<0))return null;for(var ve=E.display.view,ge=0;ge<ve.length;ge++)if(te-=ve[ge].size,te<0)return ge}function No(E,te,ve,ge){te==null&&(te=E.doc.first),ve==null&&(ve=E.doc.first+E.doc.size),ge||(ge=0);var Oe=E.display;if(ge&&ve<Oe.viewTo&&(Oe.updateLineNumbers==null||Oe.updateLineNumbers>te)&&(Oe.updateLineNumbers=te),E.curOp.viewChanged=!0,te>=Oe.viewTo)Tn&&Bi(E.doc,te)<Oe.viewTo&&Qs(E);else if(ve<=Oe.viewFrom)Tn&&ni(E.doc,ve+ge)>Oe.viewFrom?Qs(E):(Oe.viewFrom+=ge,Oe.viewTo+=ge);else if(te<=Oe.viewFrom&&ve>=Oe.viewTo)Qs(E);else if(te<=Oe.viewFrom){var Je=el(E,ve,ve+ge,1);Je?(Oe.view=Oe.view.slice(Je.index),Oe.viewFrom=Je.lineN,Oe.viewTo+=ge):Qs(E)}else if(ve>=Oe.viewTo){var mt=el(E,te,te,-1);mt?(Oe.view=Oe.view.slice(0,mt.index),Oe.viewTo=mt.lineN):Qs(E)}else{var Mt=el(E,te,te,-1),Tt=el(E,ve,ve+ge,1);Mt&&Tt?(Oe.view=Oe.view.slice(0,Mt.index).concat(ia(E,Mt.lineN,Tt.lineN)).concat(Oe.view.slice(Tt.index)),Oe.viewTo+=ge):Qs(E)}var Nt=Oe.externalMeasured;Nt&&(ve<Nt.lineN?Nt.lineN+=ge:te<Nt.lineN+Nt.size&&(Oe.externalMeasured=null))}function Js(E,te,ve){E.curOp.viewChanged=!0;var ge=E.display,Oe=E.display.externalMeasured;if(Oe&&te>=Oe.lineN&&te<Oe.lineN+Oe.size&&(ge.externalMeasured=null),!(te<ge.viewFrom||te>=ge.viewTo)){var Je=ge.view[ls(E,te)];if(Je.node!=null){var mt=Je.changes||(Je.changes=[]);ct(mt,ve)==-1&&mt.push(ve)}}}function Qs(E){E.display.viewFrom=E.display.viewTo=E.doc.first,E.display.view=[],E.display.viewOffset=0}function el(E,te,ve,ge){var Oe=ls(E,te),Je,mt=E.display.view;if(!Tn||ve==E.doc.first+E.doc.size)return{index:Oe,lineN:ve};for(var Mt=E.display.viewFrom,Tt=0;Tt<Oe;Tt++)Mt+=mt[Tt].size;if(Mt!=te){if(ge>0){if(Oe==mt.length-1)return null;Je=Mt+mt[Oe].size-te,Oe++}else Je=Mt-te;te+=Je,ve+=Je}for(;Bi(E.doc,ve)!=ve;){if(Oe==(ge<0?0:mt.length-1))return null;ve+=ge*mt[Oe-(ge<0?1:0)].size,Oe+=ge}return{index:Oe,lineN:ve}}function Il(E,te,ve){var ge=E.display,Oe=ge.view;Oe.length==0||te>=ge.viewTo||ve<=ge.viewFrom?(ge.view=ia(E,te,ve),ge.viewFrom=te):(ge.viewFrom>te?ge.view=ia(E,te,ge.viewFrom).concat(ge.view):ge.viewFrom<te&&(ge.view=ge.view.slice(ls(E,te))),ge.viewFrom=te,ge.viewTo<ve?ge.view=ge.view.concat(ia(E,ge.viewTo,ve)):ge.viewTo>ve&&(ge.view=ge.view.slice(0,ls(E,ve)))),ge.viewTo=ve}function Qc(E){for(var te=E.display.view,ve=0,ge=0;ge<te.length;ge++){var Oe=te[ge];!Oe.hidden&&(!Oe.node||Oe.changes)&&++ve}return ve}function yc(E){E.display.input.showSelection(E.display.input.prepareSelection())}function Gu(E,te){te===void 0&&(te=!0);for(var ve=E.doc,ge={},Oe=ge.cursors=document.createDocumentFragment(),Je=ge.selection=document.createDocumentFragment(),mt=0;mt<ve.sel.ranges.length;mt++)if(!(!te&&mt==ve.sel.primIndex)){var Mt=ve.sel.ranges[mt];if(!(Mt.from().line>=E.display.viewTo||Mt.to().line<E.display.viewFrom)){var Tt=Mt.empty();(Tt||E.options.showCursorWhenSelecting)&&xu(E,Mt.head,Oe),Tt||Ad(E,Mt,Je)}}return ge}function xu(E,te,ve){var ge=Zo(E,te,"div",null,null,!E.options.singleCursorHeightPerLine),Oe=ve.appendChild(Ee("div","\xA0","CodeMirror-cursor"));if(Oe.style.left=ge.left+"px",Oe.style.top=ge.top+"px",Oe.style.height=Math.max(0,ge.bottom-ge.top)*E.options.cursorHeight+"px",ge.other){var Je=ve.appendChild(Ee("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Je.style.display="",Je.style.left=ge.other.left+"px",Je.style.top=ge.other.top+"px",Je.style.height=(ge.other.bottom-ge.other.top)*.85+"px"}}function $c(E,te){return E.top-te.top||E.left-te.left}function Ad(E,te,ve){var ge=E.display,Oe=E.doc,Je=document.createDocumentFragment(),mt=As(E.display),Mt=mt.left,Tt=Math.max(ge.sizerWidth,So(E)-ge.sizer.offsetLeft)-mt.right,Nt=Oe.direction=="ltr";function ir(oi,bi,zi,Wi){bi<0&&(bi=0),bi=Math.round(bi),Wi=Math.round(Wi),Je.appendChild(Ee("div",null,"CodeMirror-selected","position: absolute; left: "+oi+`px;
|
|
|
top: `+bi+"px; width: "+(zi==null?Tt-oi:zi)+`px;
|
|
|
height: `+(Wi-bi)+"px"))}function hr(oi,bi,zi){var Wi=Ut(Oe,oi),Ma=Wi.text.length,ho,ys;function Po(is,Vs){return Os(E,qt(oi,is),"div",Wi,Vs)}function Zs(is,Vs,la){var $o=Ul(E,Wi,null,is),Lo=Vs=="ltr"==(la=="after")?"left":"right",zo=la=="after"?$o.begin:$o.end-(/\s/.test(Wi.text.charAt($o.end-1))?2:1);return Po(zo,Lo)[Lo]}var Us=Ht(Wi,Oe.direction);return st(Us,bi||0,zi==null?Ma:zi,function(is,Vs,la,$o){var Lo=la=="ltr",zo=Po(is,Lo?"left":"right"),Jo=Po(Vs-1,Lo?"right":"left"),Zc=bi==null&&is==0,il=zi==null&&Vs==Ma,Ss=$o==0,Ga=!Us||$o==Us.length-1;if(Jo.top-zo.top<=3){var us=(Nt?Zc:il)&&Ss,cd=(Nt?il:Zc)&&Ga,pc=us?Mt:(Lo?zo:Jo).left,kc=cd?Tt:(Lo?Jo:zo).right;ir(pc,zo.top,kc-pc,zo.bottom)}else{var Ql,as,Uc,Cs;Lo?(Ql=Nt&&Zc&&Ss?Mt:zo.left,as=Nt?Tt:Zs(is,la,"before"),Uc=Nt?Mt:Zs(Vs,la,"after"),Cs=Nt&&il&&Ga?Tt:Jo.right):(Ql=Nt?Zs(is,la,"before"):Mt,as=!Nt&&Zc&&Ss?Tt:zo.right,Uc=!Nt&&il&&Ga?Mt:Jo.left,Cs=Nt?Zs(Vs,la,"after"):Tt),ir(Ql,zo.top,as-Ql,zo.bottom),zo.bottom<Jo.top&&ir(Mt,zo.bottom,null,Jo.top),ir(Uc,Jo.top,Cs-Uc,Jo.bottom)}(!ho||$c(zo,ho)<0)&&(ho=zo),$c(Jo,ho)<0&&(ho=Jo),(!ys||$c(zo,ys)<0)&&(ys=zo),$c(Jo,ys)<0&&(ys=Jo)}),{start:ho,end:ys}}var Br=te.from(),Or=te.to();if(Br.line==Or.line)hr(Br.line,Br.ch,Or.ch);else{var on=Ut(Oe,Br.line),En=Ut(Oe,Or.line),ei=li(on)==li(En),fi=hr(Br.line,Br.ch,ei?on.text.length+1:null).end,vi=hr(Or.line,ei?0:null,Or.ch).start;ei&&(fi.top<vi.top-2?(ir(fi.right,fi.top,null,fi.bottom),ir(Mt,vi.top,vi.left,vi.bottom)):ir(fi.right,fi.top,vi.left-fi.right,fi.bottom)),fi.bottom<vi.top&&ir(Mt,fi.bottom,null,vi.top)}ve.appendChild(Je)}function qc(E){if(E.state.focused){var te=E.display;clearInterval(te.blinker);var ve=!0;te.cursorDiv.style.visibility="",E.options.cursorBlinkRate>0?te.blinker=setInterval(function(){E.hasFocus()||ac(E),te.cursorDiv.style.visibility=(ve=!ve)?"":"hidden"},E.options.cursorBlinkRate):E.options.cursorBlinkRate<0&&(te.cursorDiv.style.visibility="hidden")}}function zc(E){E.state.focused||(E.display.input.focus(),Su(E))}function wu(E){E.state.delayingBlurEvent=!0,setTimeout(function(){E.state.delayingBlurEvent&&(E.state.delayingBlurEvent=!1,ac(E))},100)}function Su(E,te){E.state.delayingBlurEvent&&(E.state.delayingBlurEvent=!1),E.options.readOnly!="nocursor"&&(E.state.focused||(ft(E,"focus",E,te),E.state.focused=!0,Ze(E.display.wrapper,"CodeMirror-focused"),!E.curOp&&E.display.selForContextMenu!=E.doc.sel&&(E.display.input.reset(),z&&setTimeout(function(){return E.display.input.reset(!0)},20)),E.display.input.receivedFocus()),qc(E))}function ac(E,te){E.state.delayingBlurEvent||(E.state.focused&&(ft(E,"blur",E,te),E.state.focused=!1,Ne(E.display.wrapper,"CodeMirror-focused")),clearInterval(E.display.blinker),setTimeout(function(){E.state.focused||(E.display.shift=!1)},150))}function eu(E){for(var te=E.display,ve=te.lineDiv.offsetTop,ge=0;ge<te.view.length;ge++){var Oe=te.view[ge],Je=E.options.lineWrapping,mt=void 0,Mt=0;if(!Oe.hidden){if(me&&re<8){var Tt=Oe.node.offsetTop+Oe.node.offsetHeight;mt=Tt-ve,ve=Tt}else{var Nt=Oe.node.getBoundingClientRect();mt=Nt.bottom-Nt.top,!Je&&Oe.text.firstChild&&(Mt=Oe.text.firstChild.getBoundingClientRect().right-Nt.left-1)}var ir=Oe.line.height-mt;if((ir>.005||ir<-.005)&&(cr(Oe.line,mt),Cu(Oe.line),Oe.rest))for(var hr=0;hr<Oe.rest.length;hr++)Cu(Oe.rest[hr]);if(Mt>E.display.sizerWidth){var Br=Math.ceil(Mt/Oa(E.display));Br>E.display.maxLineLength&&(E.display.maxLineLength=Br,E.display.maxLine=Oe.line,E.display.maxLineChanged=!0)}}}}function Cu(E){if(E.widgets)for(var te=0;te<E.widgets.length;++te){var ve=E.widgets[te],ge=ve.node.parentNode;ge&&(ve.height=ge.offsetHeight)}}function ts(E,te,ve){var ge=ve&&ve.top!=null?Math.max(0,ve.top):E.scroller.scrollTop;ge=Math.floor(ge-os(E));var Oe=ve&&ve.bottom!=null?ve.bottom:ge+E.wrapper.clientHeight,Je=Dr(te,ge),mt=Dr(te,Oe);if(ve&&ve.ensure){var Mt=ve.ensure.from.line,Tt=ve.ensure.to.line;Mt<Je?(Je=Mt,mt=Dr(te,Sn(Ut(te,Mt))+E.wrapper.clientHeight)):Math.min(Tt,te.lastLine())>=mt&&(Je=Dr(te,Sn(Ut(te,Tt))-E.wrapper.clientHeight),mt=Tt)}return{from:Je,to:Math.max(mt,Je+1)}}function Pl(E,te){if(!dt(E,"scrollCursorIntoView")){var ve=E.display,ge=ve.sizer.getBoundingClientRect(),Oe=null;if(te.top+ge.top<0?Oe=!0:te.bottom+ge.top>(window.innerHeight||document.documentElement.clientHeight)&&(Oe=!1),Oe!=null&&!ae){var Je=Ee("div","\u200B",null,`position: absolute;
|
|
|
top: `+(te.top-ve.viewOffset-os(E.display))+`px;
|
|
|
height: `+(te.bottom-te.top+Ro(E)+ve.barHeight)+`px;
|
|
|
left: `+te.left+"px; width: "+Math.max(2,te.right-te.left)+"px;");E.display.lineSpace.appendChild(Je),Je.scrollIntoView(Oe),E.display.lineSpace.removeChild(Je)}}}function oc(E,te,ve,ge){ge==null&&(ge=0);var Oe;!E.options.lineWrapping&&te==ve&&(te=te.ch?qt(te.line,te.sticky=="before"?te.ch-1:te.ch,"after"):te,ve=te.sticky=="before"?qt(te.line,te.ch+1,"before"):te);for(var Je=0;Je<5;Je++){var mt=!1,Mt=Zo(E,te),Tt=!ve||ve==te?Mt:Zo(E,ve);Oe={left:Math.min(Mt.left,Tt.left),top:Math.min(Mt.top,Tt.top)-ge,right:Math.max(Mt.left,Tt.left),bottom:Math.max(Mt.bottom,Tt.bottom)+ge};var Nt=tu(E,Oe),ir=E.doc.scrollTop,hr=E.doc.scrollLeft;if(Nt.scrollTop!=null&&(Vl(E,Nt.scrollTop),Math.abs(E.doc.scrollTop-ir)>1&&(mt=!0)),Nt.scrollLeft!=null&&(Ll(E,Nt.scrollLeft),Math.abs(E.doc.scrollLeft-hr)>1&&(mt=!0)),!mt)break}return Oe}function Xu(E,te){var ve=tu(E,te);ve.scrollTop!=null&&Vl(E,ve.scrollTop),ve.scrollLeft!=null&&Ll(E,ve.scrollLeft)}function tu(E,te){var ve=E.display,ge=vl(E.display);te.top<0&&(te.top=0);var Oe=E.curOp&&E.curOp.scrollTop!=null?E.curOp.scrollTop:ve.scroller.scrollTop,Je=zs(E),mt={};te.bottom-te.top>Je&&(te.bottom=te.top+Je);var Mt=E.doc.height+Tl(ve),Tt=te.top<ge,Nt=te.bottom>Mt-ge;if(te.top<Oe)mt.scrollTop=Tt?0:te.top;else if(te.bottom>Oe+Je){var ir=Math.min(te.top,(Nt?Mt:te.bottom)-Je);ir!=Oe&&(mt.scrollTop=ir)}var hr=E.options.fixedGutter?0:ve.gutters.offsetWidth,Br=E.curOp&&E.curOp.scrollLeft!=null?E.curOp.scrollLeft:ve.scroller.scrollLeft-hr,Or=So(E)-ve.gutters.offsetWidth,on=te.right-te.left>Or;return on&&(te.right=te.left+Or),te.left<10?mt.scrollLeft=0:te.left<Br?mt.scrollLeft=Math.max(0,te.left+hr-(on?0:10)):te.right>Or+Br-3&&(mt.scrollLeft=te.right+(on?0:10)-Or),mt}function ru(E,te){te!=null&&(Kc(E),E.curOp.scrollTop=(E.curOp.scrollTop==null?E.doc.scrollTop:E.curOp.scrollTop)+te)}function bc(E){Kc(E);var te=E.getCursor();E.curOp.scrollToPos={from:te,to:te,margin:E.options.cursorScrollMargin}}function sc(E,te,ve){(te!=null||ve!=null)&&Kc(E),te!=null&&(E.curOp.scrollLeft=te),ve!=null&&(E.curOp.scrollTop=ve)}function Od(E,te){Kc(E),E.curOp.scrollToPos=te}function Kc(E){var te=E.curOp.scrollToPos;if(te){E.curOp.scrollToPos=null;var ve=vc(E,te.from),ge=vc(E,te.to);Yu(E,ve,ge,te.margin)}}function Yu(E,te,ve,ge){var Oe=tu(E,{left:Math.min(te.left,ve.left),top:Math.min(te.top,ve.top)-ge,right:Math.max(te.right,ve.right),bottom:Math.max(te.bottom,ve.bottom)+ge});sc(E,Oe.scrollLeft,Oe.scrollTop)}function Vl(E,te){Math.abs(E.doc.scrollTop-te)<2||(Ye||Xn(E,{top:te}),Ju(E,te,!0),Ye&&Xn(E),Rr(E,100))}function Ju(E,te,ve){te=Math.max(0,Math.min(E.display.scroller.scrollHeight-E.display.scroller.clientHeight,te)),!(E.display.scroller.scrollTop==te&&!ve)&&(E.doc.scrollTop=te,E.display.scrollbars.setScrollTop(te),E.display.scroller.scrollTop!=te&&(E.display.scroller.scrollTop=te))}function Ll(E,te,ve,ge){te=Math.max(0,Math.min(te,E.display.scroller.scrollWidth-E.display.scroller.clientWidth)),!((ve?te==E.doc.scrollLeft:Math.abs(E.doc.scrollLeft-te)<2)&&!ge)&&(E.doc.scrollLeft=te,_i(E),E.display.scroller.scrollLeft!=te&&(E.display.scroller.scrollLeft=te),E.display.scrollbars.setScrollLeft(te))}function xc(E){var te=E.display,ve=te.gutters.offsetWidth,ge=Math.round(E.doc.height+Tl(E.display));return{clientHeight:te.scroller.clientHeight,viewHeight:te.wrapper.clientHeight,scrollWidth:te.scroller.scrollWidth,clientWidth:te.scroller.clientWidth,viewWidth:te.wrapper.clientWidth,barLeft:E.options.fixedGutter?ve:0,docHeight:ge,scrollHeight:ge+Ro(E)+te.barHeight,nativeBarWidth:te.nativeBarWidth,gutterWidth:ve}}var Rl=function(E,te,ve){this.cm=ve;var ge=this.vert=Ee("div",[Ee("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Oe=this.horiz=Ee("div",[Ee("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ge.tabIndex=Oe.tabIndex=-1,E(ge),E(Oe),$t(ge,"scroll",function(){ge.clientHeight&&te(ge.scrollTop,"vertical")}),$t(Oe,"scroll",function(){Oe.clientWidth&&te(Oe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,me&&re<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Rl.prototype.update=function(E){var te=E.scrollWidth>E.clientWidth+1,ve=E.scrollHeight>E.clientHeight+1,ge=E.nativeBarWidth;if(ve){this.vert.style.display="block",this.vert.style.bottom=te?ge+"px":"0";var Oe=E.viewHeight-(te?ge:0);this.vert.firstChild.style.height=Math.max(0,E.scrollHeight-E.clientHeight+Oe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(te){this.horiz.style.display="block",this.horiz.style.right=ve?ge+"px":"0",this.horiz.style.left=E.barLeft+"px";var Je=E.viewWidth-E.barLeft-(ve?ge:0);this.horiz.firstChild.style.width=Math.max(0,E.scrollWidth-E.clientWidth+Je)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&E.clientHeight>0&&(ge==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ve?ge:0,bottom:te?ge:0}},Rl.prototype.setScrollLeft=function(E){this.horiz.scrollLeft!=E&&(this.horiz.scrollLeft=E),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Rl.prototype.setScrollTop=function(E){this.vert.scrollTop!=E&&(this.vert.scrollTop=E),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Rl.prototype.zeroWidthHack=function(){var E=xe&&!ne?"12px":"18px";this.horiz.style.height=this.vert.style.width=E,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Xe,this.disableVert=new Xe},Rl.prototype.enableZeroWidthBar=function(E,te,ve){E.style.pointerEvents="auto";function ge(){var Oe=E.getBoundingClientRect(),Je=ve=="vert"?document.elementFromPoint(Oe.right-1,(Oe.top+Oe.bottom)/2):document.elementFromPoint((Oe.right+Oe.left)/2,Oe.bottom-1);Je!=E?E.style.pointerEvents="none":te.set(1e3,ge)}te.set(1e3,ge)},Rl.prototype.clear=function(){var E=this.horiz.parentNode;E.removeChild(this.horiz),E.removeChild(this.vert)};var Bs=function(){};Bs.prototype.update=function(){return{bottom:0,right:0}},Bs.prototype.setScrollLeft=function(){},Bs.prototype.setScrollTop=function(){},Bs.prototype.clear=function(){};function Gl(E,te){te||(te=xc(E));var ve=E.display.barWidth,ge=E.display.barHeight;nu(E,te);for(var Oe=0;Oe<4&&ve!=E.display.barWidth||ge!=E.display.barHeight;Oe++)ve!=E.display.barWidth&&E.options.lineWrapping&&eu(E),nu(E,xc(E)),ve=E.display.barWidth,ge=E.display.barHeight}function nu(E,te){var ve=E.display,ge=ve.scrollbars.update(te);ve.sizer.style.paddingRight=(ve.barWidth=ge.right)+"px",ve.sizer.style.paddingBottom=(ve.barHeight=ge.bottom)+"px",ve.heightForcer.style.borderBottom=ge.bottom+"px solid transparent",ge.right&&ge.bottom?(ve.scrollbarFiller.style.display="block",ve.scrollbarFiller.style.height=ge.bottom+"px",ve.scrollbarFiller.style.width=ge.right+"px"):ve.scrollbarFiller.style.display="",ge.bottom&&E.options.coverGutterNextToScrollbar&&E.options.fixedGutter?(ve.gutterFiller.style.display="block",ve.gutterFiller.style.height=ge.bottom+"px",ve.gutterFiller.style.width=te.gutterWidth+"px"):ve.gutterFiller.style.display=""}var Eu={native:Rl,null:Bs};function Mu(E){E.display.scrollbars&&(E.display.scrollbars.clear(),E.display.scrollbars.addClass&&Ne(E.display.wrapper,E.display.scrollbars.addClass)),E.display.scrollbars=new Eu[E.options.scrollbarStyle](function(te){E.display.wrapper.insertBefore(te,E.display.scrollbarFiller),$t(te,"mousedown",function(){E.state.focused&&setTimeout(function(){return E.display.input.focus()},0)}),te.setAttribute("cm-not-content","true")},function(te,ve){ve=="horizontal"?Ll(E,te):Vl(E,te)},E),E.display.scrollbars.addClass&&Ze(E.display.wrapper,E.display.scrollbars.addClass)}var Qu=0;function bs(E){E.curOp={cm:E,viewChanged:!1,startHeight:E.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:++Qu},sa(E.curOp)}function Bl(E){var te=E.curOp;te&&Di(te,function(ve){for(var ge=0;ge<ve.ops.length;ge++)ve.ops[ge].cm.curOp=null;qu(ve)})}function qu(E){for(var te=E.ops,ve=0;ve<te.length;ve++)_t(te[ve]);for(var ge=0;ge<te.length;ge++)At(te[ge]);for(var Oe=0;Oe<te.length;Oe++)Kt(te[Oe]);for(var Je=0;Je<te.length;Je++)Yt(te[Je]);for(var mt=0;mt<te.length;mt++)sr(te[mt])}function _t(E){var te=E.cm,ve=te.display;dn(te),E.updateMaxLine&&bn(te),E.mustUpdate=E.viewChanged||E.forceUpdate||E.scrollTop!=null||E.scrollToPos&&(E.scrollToPos.from.line<ve.viewFrom||E.scrollToPos.to.line>=ve.viewTo)||ve.maxLineChanged&&te.options.lineWrapping,E.update=E.mustUpdate&&new Fr(te,E.mustUpdate&&{top:E.scrollTop,ensure:E.scrollToPos},E.forceUpdate)}function At(E){E.updatedDisplay=E.mustUpdate&&Gn(E.cm,E.update)}function Kt(E){var te=E.cm,ve=te.display;E.updatedDisplay&&eu(te),E.barMeasure=xc(te),ve.maxLineChanged&&!te.options.lineWrapping&&(E.adjustWidthTo=ol(te,ve.maxLine,ve.maxLine.text.length).left+3,te.display.sizerWidth=E.adjustWidthTo,E.barMeasure.scrollWidth=Math.max(ve.scroller.clientWidth,ve.sizer.offsetLeft+E.adjustWidthTo+Ro(te)+te.display.barWidth),E.maxScrollLeft=Math.max(0,ve.sizer.offsetLeft+E.adjustWidthTo-So(te))),(E.updatedDisplay||E.selectionChanged)&&(E.preparedSelection=ve.input.prepareSelection())}function Yt(E){var te=E.cm;E.adjustWidthTo!=null&&(te.display.sizer.style.minWidth=E.adjustWidthTo+"px",E.maxScrollLeft<te.doc.scrollLeft&&Ll(te,Math.min(te.display.scroller.scrollLeft,E.maxScrollLeft),!0),te.display.maxLineChanged=!1);var ve=E.focus&&E.focus==Ie();E.preparedSelection&&te.display.input.showSelection(E.preparedSelection,ve),(E.updatedDisplay||E.startHeight!=te.doc.height)&&Gl(te,E.barMeasure),E.updatedDisplay&&Si(te,E.barMeasure),E.selectionChanged&&qc(te),te.state.focused&&E.updateInput&&te.display.input.reset(E.typing),ve&&zc(E.cm)}function sr(E){var te=E.cm,ve=te.display,ge=te.doc;if(E.updatedDisplay&&Bn(te,E.update),ve.wheelStartX!=null&&(E.scrollTop!=null||E.scrollLeft!=null||E.scrollToPos)&&(ve.wheelStartX=ve.wheelStartY=null),E.scrollTop!=null&&Ju(te,E.scrollTop,E.forceScroll),E.scrollLeft!=null&&Ll(te,E.scrollLeft,!0,!0),E.scrollToPos){var Oe=oc(te,ur(ge,E.scrollToPos.from),ur(ge,E.scrollToPos.to),E.scrollToPos.margin);Pl(te,Oe)}var Je=E.maybeHiddenMarkers,mt=E.maybeUnhiddenMarkers;if(Je)for(var Mt=0;Mt<Je.length;++Mt)Je[Mt].lines.length||ft(Je[Mt],"hide");if(mt)for(var Tt=0;Tt<mt.length;++Tt)mt[Tt].lines.length&&ft(mt[Tt],"unhide");ve.wrapper.offsetHeight&&(ge.scrollTop=te.display.scroller.scrollTop),E.changeObjs&&ft(te,"changes",te,E.changeObjs),E.update&&E.update.finish()}function er(E,te){if(E.curOp)return te();bs(E);try{return te()}finally{Bl(E)}}function Cr(E,te){return function(){if(E.curOp)return te.apply(E,arguments);bs(E);try{return te.apply(E,arguments)}finally{Bl(E)}}}function Sr(E){return function(){if(this.curOp)return E.apply(this,arguments);bs(this);try{return E.apply(this,arguments)}finally{Bl(this)}}}function xr(E){return function(){var te=this.cm;if(!te||te.curOp)return E.apply(this,arguments);bs(te);try{return E.apply(this,arguments)}finally{Bl(te)}}}function Rr(E,te){E.doc.highlightFrontier<E.display.viewTo&&E.state.highlight.set(te,it(Gr,E))}function Gr(E){var te=E.doc;if(!(te.highlightFrontier>=E.display.viewTo)){var ve=+new Date+E.options.workTime,ge=br(E,te.highlightFrontier),Oe=[];te.iter(ge.line,Math.min(te.first+te.size,E.display.viewTo+500),function(Je){if(ge.line>=E.display.viewFrom){var mt=Je.styles,Mt=Je.text.length>E.options.maxHighlightLength?Et(te.mode,ge.state):null,Tt=pr(E,Je,ge,!0);Mt&&(ge.state=Mt),Je.styles=Tt.styles;var Nt=Je.styleClasses,ir=Tt.classes;ir?Je.styleClasses=ir:Nt&&(Je.styleClasses=null);for(var hr=!mt||mt.length!=Je.styles.length||Nt!=ir&&(!Nt||!ir||Nt.bgClass!=ir.bgClass||Nt.textClass!=ir.textClass),Br=0;!hr&&Br<mt.length;++Br)hr=mt[Br]!=Je.styles[Br];hr&&Oe.push(ge.line),Je.stateAfter=ge.save(),ge.nextLine()}else Je.text.length<=E.options.maxHighlightLength&&wr(E,Je.text,ge),Je.stateAfter=ge.line%5==0?ge.save():null,ge.nextLine();if(+new Date>ve)return Rr(E,E.options.workDelay),!0}),te.highlightFrontier=ge.line,te.modeFrontier=Math.max(te.modeFrontier,ge.line),Oe.length&&er(E,function(){for(var Je=0;Je<Oe.length;Je++)Js(E,Oe[Je],"text")})}}var Fr=function(E,te,ve){var ge=E.display;this.viewport=te,this.visible=ts(ge,E.doc,te),this.editorIsHidden=!ge.wrapper.offsetWidth,this.wrapperHeight=ge.wrapper.clientHeight,this.wrapperWidth=ge.wrapper.clientWidth,this.oldDisplayWidth=So(E),this.force=ve,this.dims=Ba(E),this.events=[]};Fr.prototype.signal=function(E,te){zt(E,te)&&this.events.push(arguments)},Fr.prototype.finish=function(){for(var E=0;E<this.events.length;E++)ft.apply(null,this.events[E])};function dn(E){var te=E.display;!te.scrollbarsClipped&&te.scroller.offsetWidth&&(te.nativeBarWidth=te.scroller.offsetWidth-te.scroller.clientWidth,te.heightForcer.style.height=Ro(E)+"px",te.sizer.style.marginBottom=-te.nativeBarWidth+"px",te.sizer.style.borderRightWidth=Ro(E)+"px",te.scrollbarsClipped=!0)}function ln(E){if(E.hasFocus())return null;var te=Ie();if(!te||!Ve(E.display.lineDiv,te))return null;var ve={activeElt:te};if(window.getSelection){var ge=window.getSelection();ge.anchorNode&&ge.extend&&Ve(E.display.lineDiv,ge.anchorNode)&&(ve.anchorNode=ge.anchorNode,ve.anchorOffset=ge.anchorOffset,ve.focusNode=ge.focusNode,ve.focusOffset=ge.focusOffset)}return ve}function un(E){if(!(!E||!E.activeElt||E.activeElt==Ie())&&(E.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(E.activeElt.nodeName)&&E.anchorNode&&Ve(document.body,E.anchorNode)&&Ve(document.body,E.focusNode))){var te=window.getSelection(),ve=document.createRange();ve.setEnd(E.anchorNode,E.anchorOffset),ve.collapse(!1),te.removeAllRanges(),te.addRange(ve),te.extend(E.focusNode,E.focusOffset)}}function Gn(E,te){var ve=E.display,ge=E.doc;if(te.editorIsHidden)return Qs(E),!1;if(!te.force&&te.visible.from>=ve.viewFrom&&te.visible.to<=ve.viewTo&&(ve.updateLineNumbers==null||ve.updateLineNumbers>=ve.viewTo)&&ve.renderedView==ve.view&&Qc(E)==0)return!1;pi(E)&&(Qs(E),te.dims=Ba(E));var Oe=ge.first+ge.size,Je=Math.max(te.visible.from-E.options.viewportMargin,ge.first),mt=Math.min(Oe,te.visible.to+E.options.viewportMargin);ve.viewFrom<Je&&Je-ve.viewFrom<20&&(Je=Math.max(ge.first,ve.viewFrom)),ve.viewTo>mt&&ve.viewTo-mt<20&&(mt=Math.min(Oe,ve.viewTo)),Tn&&(Je=Bi(E.doc,Je),mt=ni(E.doc,mt));var Mt=Je!=ve.viewFrom||mt!=ve.viewTo||ve.lastWrapHeight!=te.wrapperHeight||ve.lastWrapWidth!=te.wrapperWidth;Il(E,Je,mt),ve.viewOffset=Sn(Ut(E.doc,ve.viewFrom)),E.display.mover.style.top=ve.viewOffset+"px";var Tt=Qc(E);if(!Mt&&Tt==0&&!te.force&&ve.renderedView==ve.view&&(ve.updateLineNumbers==null||ve.updateLineNumbers>=ve.viewTo))return!1;var Nt=ln(E);return Tt>4&&(ve.lineDiv.style.display="none"),jn(E,ve.updateLineNumbers,te.dims),Tt>4&&(ve.lineDiv.style.display=""),ve.renderedView=ve.view,un(Nt),Te(ve.cursorDiv),Te(ve.selectionDiv),ve.gutters.style.height=ve.sizer.style.minHeight=0,Mt&&(ve.lastWrapHeight=te.wrapperHeight,ve.lastWrapWidth=te.wrapperWidth,Rr(E,400)),ve.updateLineNumbers=null,!0}function Bn(E,te){for(var ve=te.viewport,ge=!0;;ge=!1){if(!ge||!E.options.lineWrapping||te.oldDisplayWidth==So(E)){if(ve&&ve.top!=null&&(ve={top:Math.min(E.doc.height+Tl(E.display)-zs(E),ve.top)}),te.visible=ts(E.display,E.doc,ve),te.visible.from>=E.display.viewFrom&&te.visible.to<=E.display.viewTo)break}else ge&&(te.visible=ts(E.display,E.doc,ve));if(!Gn(E,te))break;eu(E);var Oe=xc(E);yc(E),Gl(E,Oe),Si(E,Oe),te.force=!1}te.signal(E,"update",E),(E.display.viewFrom!=E.display.reportedViewFrom||E.display.viewTo!=E.display.reportedViewTo)&&(te.signal(E,"viewportChange",E,E.display.viewFrom,E.display.viewTo),E.display.reportedViewFrom=E.display.viewFrom,E.display.reportedViewTo=E.display.viewTo)}function Xn(E,te){var ve=new Fr(E,te);if(Gn(E,ve)){eu(E),Bn(E,ve);var ge=xc(E);yc(E),Gl(E,ge),Si(E,ge),ve.finish()}}function jn(E,te,ve){var ge=E.display,Oe=E.options.lineNumbers,Je=ge.lineDiv,mt=Je.firstChild;function Mt(on){var En=on.nextSibling;return z&&xe&&E.display.currentWheelTarget==on?on.style.display="none":on.parentNode.removeChild(on),En}for(var Tt=ge.view,Nt=ge.viewFrom,ir=0;ir<Tt.length;ir++){var hr=Tt[ir];if(!hr.hidden)if(!hr.node||hr.node.parentNode!=Je){var Br=to(E,hr,Nt,ve);Je.insertBefore(Br,mt)}else{for(;mt!=hr.node;)mt=Mt(mt);var Or=Oe&&te!=null&&te<=Nt&&hr.lineNumber;hr.changes&&(ct(hr.changes,"gutter")>-1&&(Or=!1),Qi(E,hr,Nt,ve)),Or&&(Te(hr.lineNumber),hr.lineNumber.appendChild(document.createTextNode(Ar(E.options,Nt)))),mt=hr.node.nextSibling}Nt+=hr.size}for(;mt;)mt=Mt(mt)}function ii(E){var te=E.gutters.offsetWidth;E.sizer.style.marginLeft=te+"px"}function Si(E,te){E.display.sizer.style.minHeight=te.docHeight+"px",E.display.heightForcer.style.top=te.docHeight+"px",E.display.gutters.style.height=te.docHeight+E.display.barHeight+Ro(E)+"px"}function _i(E){var te=E.display,ve=te.view;if(!(!te.alignWidgets&&(!te.gutters.firstChild||!E.options.fixedGutter))){for(var ge=Za(te)-te.scroller.scrollLeft+E.doc.scrollLeft,Oe=te.gutters.offsetWidth,Je=ge+"px",mt=0;mt<ve.length;mt++)if(!ve[mt].hidden){E.options.fixedGutter&&(ve[mt].gutter&&(ve[mt].gutter.style.left=Je),ve[mt].gutterBackground&&(ve[mt].gutterBackground.style.left=Je));var Mt=ve[mt].alignable;if(Mt)for(var Tt=0;Tt<Mt.length;Tt++)Mt[Tt].style.left=Je}E.options.fixedGutter&&(te.gutters.style.left=ge+Oe+"px")}}function pi(E){if(!E.options.lineNumbers)return!1;var te=E.doc,ve=Ar(E.options,te.first+te.size-1),ge=E.display;if(ve.length!=ge.lineNumChars){var Oe=ge.measure.appendChild(Ee("div",[Ee("div",ve)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Je=Oe.firstChild.offsetWidth,mt=Oe.offsetWidth-Je;return ge.lineGutter.style.width="",ge.lineNumInnerWidth=Math.max(Je,ge.lineGutter.offsetWidth-mt)+1,ge.lineNumWidth=ge.lineNumInnerWidth+mt,ge.lineNumChars=ge.lineNumInnerWidth?ve.length:-1,ge.lineGutter.style.width=ge.lineNumWidth+"px",ii(E.display),!0}return!1}function $i(E,te){for(var ve=[],ge=!1,Oe=0;Oe<E.length;Oe++){var Je=E[Oe],mt=null;if(typeof Je!="string"&&(mt=Je.style,Je=Je.className),Je=="CodeMirror-linenumbers")if(te)ge=!0;else continue;ve.push({className:Je,style:mt})}return te&&!ge&&ve.push({className:"CodeMirror-linenumbers",style:null}),ve}function Yi(E){var te=E.gutters,ve=E.gutterSpecs;Te(te),E.lineGutter=null;for(var ge=0;ge<ve.length;++ge){var Oe=ve[ge],Je=Oe.className,mt=Oe.style,Mt=te.appendChild(Ee("div",null,"CodeMirror-gutter "+Je));mt&&(Mt.style.cssText=mt),Je=="CodeMirror-linenumbers"&&(E.lineGutter=Mt,Mt.style.width=(E.lineNumWidth||1)+"px")}te.style.display=ve.length?"":"none",ii(E)}function si(E){Yi(E.display),No(E),_i(E)}function yi(E,te,ve,ge){var Oe=this;this.input=ve,Oe.scrollbarFiller=Ee("div",null,"CodeMirror-scrollbar-filler"),Oe.scrollbarFiller.setAttribute("cm-not-content","true"),Oe.gutterFiller=Ee("div",null,"CodeMirror-gutter-filler"),Oe.gutterFiller.setAttribute("cm-not-content","true"),Oe.lineDiv=Pe("div",null,"CodeMirror-code"),Oe.selectionDiv=Ee("div",null,null,"position: relative; z-index: 1"),Oe.cursorDiv=Ee("div",null,"CodeMirror-cursors"),Oe.measure=Ee("div",null,"CodeMirror-measure"),Oe.lineMeasure=Ee("div",null,"CodeMirror-measure"),Oe.lineSpace=Pe("div",[Oe.measure,Oe.lineMeasure,Oe.selectionDiv,Oe.cursorDiv,Oe.lineDiv],null,"position: relative; outline: none");var Je=Pe("div",[Oe.lineSpace],"CodeMirror-lines");Oe.mover=Ee("div",[Je],null,"position: relative"),Oe.sizer=Ee("div",[Oe.mover],"CodeMirror-sizer"),Oe.sizerWidth=null,Oe.heightForcer=Ee("div",null,null,"position: absolute; height: "+pt+"px; width: 1px;"),Oe.gutters=Ee("div",null,"CodeMirror-gutters"),Oe.lineGutter=null,Oe.scroller=Ee("div",[Oe.sizer,Oe.heightForcer,Oe.gutters],"CodeMirror-scroll"),Oe.scroller.setAttribute("tabIndex","-1"),Oe.wrapper=Ee("div",[Oe.scrollbarFiller,Oe.gutterFiller,Oe.scroller],"CodeMirror"),me&&re<8&&(Oe.gutters.style.zIndex=-1,Oe.scroller.style.paddingRight=0),!z&&!(Ye&&he)&&(Oe.scroller.draggable=!0),E&&(E.appendChild?E.appendChild(Oe.wrapper):E(Oe.wrapper)),Oe.viewFrom=Oe.viewTo=te.first,Oe.reportedViewFrom=Oe.reportedViewTo=te.first,Oe.view=[],Oe.renderedView=null,Oe.externalMeasured=null,Oe.viewOffset=0,Oe.lastWrapHeight=Oe.lastWrapWidth=0,Oe.updateLineNumbers=null,Oe.nativeBarWidth=Oe.barHeight=Oe.barWidth=0,Oe.scrollbarsClipped=!1,Oe.lineNumWidth=Oe.lineNumInnerWidth=Oe.lineNumChars=null,Oe.alignWidgets=!1,Oe.cachedCharWidth=Oe.cachedTextHeight=Oe.cachedPaddingH=null,Oe.maxLine=null,Oe.maxLineLength=0,Oe.maxLineChanged=!1,Oe.wheelDX=Oe.wheelDY=Oe.wheelStartX=Oe.wheelStartY=null,Oe.shift=!1,Oe.selForContextMenu=null,Oe.activeTouch=null,Oe.gutterSpecs=$i(ge.gutters,ge.lineNumbers),Yi(Oe),ve.init(Oe)}var ci=0,In=null;me?In=-.53:Ye?In=15:oe?In=-.7:pe&&(In=-1/3);function di(E){var te=E.wheelDeltaX,ve=E.wheelDeltaY;return te==null&&E.detail&&E.axis==E.HORIZONTAL_AXIS&&(te=E.detail),ve==null&&E.detail&&E.axis==E.VERTICAL_AXIS?ve=E.detail:ve==null&&(ve=E.wheelDelta),{x:te,y:ve}}function Ni(E){var te=di(E);return te.x*=In,te.y*=In,te}function aa(E,te){var ve=di(te),ge=ve.x,Oe=ve.y,Je=E.display,mt=Je.scroller,Mt=mt.scrollWidth>mt.clientWidth,Tt=mt.scrollHeight>mt.clientHeight;if(ge&&Mt||Oe&&Tt){if(Oe&&xe&&z){e:for(var Nt=te.target,ir=Je.view;Nt!=mt;Nt=Nt.parentNode)for(var hr=0;hr<ir.length;hr++)if(ir[hr].node==Nt){E.display.currentWheelTarget=Nt;break e}}if(ge&&!Ye&&!se&&In!=null){Oe&&Tt&&Vl(E,Math.max(0,mt.scrollTop+Oe*In)),Ll(E,Math.max(0,mt.scrollLeft+ge*In)),(!Oe||Oe&&Tt)&&tr(te),Je.wheelStartX=null;return}if(Oe&&In!=null){var Br=Oe*In,Or=E.doc.scrollTop,on=Or+Je.wrapper.clientHeight;Br<0?Or=Math.max(0,Or+Br-50):on=Math.min(E.doc.height,on+Br+50),Xn(E,{top:Or,bottom:on})}ci<20&&(Je.wheelStartX==null?(Je.wheelStartX=mt.scrollLeft,Je.wheelStartY=mt.scrollTop,Je.wheelDX=ge,Je.wheelDY=Oe,setTimeout(function(){if(Je.wheelStartX!=null){var En=mt.scrollLeft-Je.wheelStartX,ei=mt.scrollTop-Je.wheelStartY,fi=ei&&Je.wheelDY&&ei/Je.wheelDY||En&&Je.wheelDX&&En/Je.wheelDX;Je.wheelStartX=Je.wheelStartY=null,fi&&(In=(In*ci+fi)/(ci+1),++ci)}},200)):(Je.wheelDX+=ge,Je.wheelDY+=Oe))}}var Ii=function(E,te){this.ranges=E,this.primIndex=te};Ii.prototype.primary=function(){return this.ranges[this.primIndex]},Ii.prototype.equals=function(E){if(E==this)return!0;if(E.primIndex!=this.primIndex||E.ranges.length!=this.ranges.length)return!1;for(var te=0;te<this.ranges.length;te++){var ve=this.ranges[te],ge=E.ranges[te];if(!Xt(ve.anchor,ge.anchor)||!Xt(ve.head,ge.head))return!1}return!0},Ii.prototype.deepCopy=function(){for(var E=[],te=0;te<this.ranges.length;te++)E[te]=new Qn(rr(this.ranges[te].anchor),rr(this.ranges[te].head));return new Ii(E,this.primIndex)},Ii.prototype.somethingSelected=function(){for(var E=0;E<this.ranges.length;E++)if(!this.ranges[E].empty())return!0;return!1},Ii.prototype.contains=function(E,te){te||(te=E);for(var ve=0;ve<this.ranges.length;ve++){var ge=this.ranges[ve];if(kr(te,ge.from())>=0&&kr(E,ge.to())<=0)return ve}return-1};var Qn=function(E,te){this.anchor=E,this.head=te};Qn.prototype.from=function(){return or(this.anchor,this.head)},Qn.prototype.to=function(){return lr(this.anchor,this.head)},Qn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Zi(E,te,ve){var ge=E&&E.options.selectionsMayTouch,Oe=te[ve];te.sort(function(Br,Or){return kr(Br.from(),Or.from())}),ve=ct(te,Oe);for(var Je=1;Je<te.length;Je++){var mt=te[Je],Mt=te[Je-1],Tt=kr(Mt.to(),mt.from());if(ge&&!mt.empty()?Tt>0:Tt>=0){var Nt=or(Mt.from(),mt.from()),ir=lr(Mt.to(),mt.to()),hr=Mt.empty()?mt.from()==mt.head:Mt.from()==Mt.head;Je<=ve&&--ve,te.splice(--Je,2,new Qn(hr?ir:Nt,hr?Nt:ir))}}return new Ii(te,ve)}function Ji(E,te){return new Ii([new Qn(E,te||E)],0)}function _a(E){return E.text?qt(E.from.line+E.text.length-1,Ot(E.text).length+(E.text.length==1?E.from.ch:0)):E.to}function wa(E,te){if(kr(E,te.from)<0)return E;if(kr(E,te.to)<=0)return _a(te);var ve=E.line+te.text.length-(te.to.line-te.from.line)-1,ge=E.ch;return E.line==te.to.line&&(ge+=_a(te).ch-te.to.ch),qt(ve,ge)}function no(E,te){for(var ve=[],ge=0;ge<E.sel.ranges.length;ge++){var Oe=E.sel.ranges[ge];ve.push(new Qn(wa(Oe.anchor,te),wa(Oe.head,te)))}return Zi(E.cm,ve,E.sel.primIndex)}function Ua(E,te,ve){return E.line==te.line?qt(ve.line,E.ch-te.ch+ve.ch):qt(ve.line+(E.line-te.line),E.ch)}function Gi(E,te,ve){for(var ge=[],Oe=qt(E.first,0),Je=Oe,mt=0;mt<te.length;mt++){var Mt=te[mt],Tt=Ua(Mt.from,Oe,Je),Nt=Ua(_a(Mt),Oe,Je);if(Oe=Mt.to,Je=Nt,ve=="around"){var ir=E.sel.ranges[mt],hr=kr(ir.head,ir.anchor)<0;ge[mt]=new Qn(hr?Nt:Tt,hr?Tt:Nt)}else ge[mt]=new Qn(Tt,Tt)}return new Ii(ge,E.sel.primIndex)}function go(E){E.doc.mode=Wr(E.options,E.doc.modeOption),ma(E)}function ma(E){E.doc.iter(function(te){te.stateAfter&&(te.stateAfter=null),te.styles&&(te.styles=null)}),E.doc.modeFrontier=E.doc.highlightFrontier=E.doc.first,Rr(E,100),E.state.modeGen++,E.curOp&&No(E)}function Qa(E,te){return te.from.ch==0&&te.to.ch==0&&Ot(te.text)==""&&(!E.cm||E.cm.options.wholeLineUpdateBefore)}function Va(E,te,ve,ge){function Oe(vi){return ve?ve[vi]:null}function Je(vi,oi,bi){Ki(vi,oi,bi,ge),mi(vi,"change",vi,te)}function mt(vi,oi){for(var bi=[],zi=vi;zi<oi;++zi)bi.push(new Wn(Nt[zi],Oe(zi),ge));return bi}var Mt=te.from,Tt=te.to,Nt=te.text,ir=Ut(E,Mt.line),hr=Ut(E,Tt.line),Br=Ot(Nt),Or=Oe(Nt.length-1),on=Tt.line-Mt.line;if(te.full)E.insert(0,mt(0,Nt.length)),E.remove(Nt.length,E.size-Nt.length);else if(Qa(E,te)){var En=mt(0,Nt.length-1);Je(hr,hr.text,Or),on&&E.remove(Mt.line,on),En.length&&E.insert(Mt.line,En)}else if(ir==hr)if(Nt.length==1)Je(ir,ir.text.slice(0,Mt.ch)+Br+ir.text.slice(Tt.ch),Or);else{var ei=mt(1,Nt.length-1);ei.push(new Wn(Br+ir.text.slice(Tt.ch),Or,ge)),Je(ir,ir.text.slice(0,Mt.ch)+Nt[0],Oe(0)),E.insert(Mt.line+1,ei)}else if(Nt.length==1)Je(ir,ir.text.slice(0,Mt.ch)+Nt[0]+hr.text.slice(Tt.ch),Oe(0)),E.remove(Mt.line+1,on);else{Je(ir,ir.text.slice(0,Mt.ch)+Nt[0],Oe(0)),Je(hr,Br+hr.text.slice(Tt.ch),Or);var fi=mt(1,Nt.length-1);on>1&&E.remove(Mt.line+1,on-1),E.insert(Mt.line+1,fi)}mi(E,"change",E,te)}function Mo(E,te,ve){function ge(Oe,Je,mt){if(Oe.linked)for(var Mt=0;Mt<Oe.linked.length;++Mt){var Tt=Oe.linked[Mt];if(Tt.doc!=Je){var Nt=mt&&Tt.sharedHist;ve&&!Nt||(te(Tt.doc,Nt),ge(Tt.doc,Oe,Nt))}}}ge(E,null,!0)}function Pi(E,te){if(te.cm)throw new Error("This document is already in use.");E.doc=te,te.cm=E,Uo(E),go(E),ki(E),E.options.lineWrapping||bn(E),E.options.mode=te.modeOption,No(E)}function ki(E){(E.doc.direction=="rtl"?Ze:Ne)(E.display.lineDiv,"CodeMirror-rtl")}function Ti(E){er(E,function(){ki(E),No(E)})}function xi(E){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=E||1}function Sa(E,te){var ve={from:rr(te.from),to:_a(te),text:Qt(E,te.from,te.to)};return Ns(E,ve,te.from.line,te.to.line+1),Mo(E,function(ge){return Ns(ge,ve,te.from.line,te.to.line+1)},!0),ve}function Ci(E){for(;E.length;){var te=Ot(E);if(te.ranges)E.pop();else break}}function Ui(E,te){if(te)return Ci(E.done),Ot(E.done);if(E.done.length&&!Ot(E.done).ranges)return Ot(E.done);if(E.done.length>1&&!E.done[E.done.length-2].ranges)return E.done.pop(),Ot(E.done)}function ga(E,te,ve,ge){var Oe=E.history;Oe.undone.length=0;var Je=+new Date,mt,Mt;if((Oe.lastOp==ge||Oe.lastOrigin==te.origin&&te.origin&&(te.origin.charAt(0)=="+"&&Oe.lastModTime>Je-(E.cm?E.cm.options.historyEventDelay:500)||te.origin.charAt(0)=="*"))&&(mt=Ui(Oe,Oe.lastOp==ge)))Mt=Ot(mt.changes),kr(te.from,te.to)==0&&kr(te.from,Mt.to)==0?Mt.to=_a(te):mt.changes.push(Sa(E,te));else{var Tt=Ot(Oe.done);for((!Tt||!Tt.ranges)&&_o(E.sel,Oe.done),mt={changes:[Sa(E,te)],generation:Oe.generation},Oe.done.push(mt);Oe.done.length>Oe.undoDepth;)Oe.done.shift(),Oe.done[0].ranges||Oe.done.shift()}Oe.done.push(ve),Oe.generation=++Oe.maxGeneration,Oe.lastModTime=Oe.lastSelTime=Je,Oe.lastOp=Oe.lastSelOp=ge,Oe.lastOrigin=Oe.lastSelOrigin=te.origin,Mt||ft(E,"historyAdded")}function fa(E,te,ve,ge){var Oe=te.charAt(0);return Oe=="*"||Oe=="+"&&ve.ranges.length==ge.ranges.length&&ve.somethingSelected()==ge.somethingSelected()&&new Date-E.history.lastSelTime<=(E.cm?E.cm.options.historyEventDelay:500)}function Vo(E,te,ve,ge){var Oe=E.history,Je=ge&&ge.origin;ve==Oe.lastSelOp||Je&&Oe.lastSelOrigin==Je&&(Oe.lastModTime==Oe.lastSelTime&&Oe.lastOrigin==Je||fa(E,Je,Ot(Oe.done),te))?Oe.done[Oe.done.length-1]=te:_o(te,Oe.done),Oe.lastSelTime=+new Date,Oe.lastSelOrigin=Je,Oe.lastSelOp=ve,ge&&ge.clearRedo!==!1&&Ci(Oe.undone)}function _o(E,te){var ve=Ot(te);ve&&ve.ranges&&ve.equals(E)||te.push(E)}function Ns(E,te,ve,ge){var Oe=te["spans_"+E.id],Je=0;E.iter(Math.max(E.first,ve),Math.min(E.first+E.size,ge),function(mt){mt.markedSpans&&((Oe||(Oe=te["spans_"+E.id]={}))[Je]=mt.markedSpans),++Je})}function vo(E){if(!E)return null;for(var te,ve=0;ve<E.length;++ve)E[ve].marker.explicitlyCleared?te||(te=E.slice(0,ve)):te&&te.push(E[ve]);return te?te.length?te:null:E}function Ws(E,te){var ve=te["spans_"+E.id];if(!ve)return null;for(var ge=[],Oe=0;Oe<te.text.length;++Oe)ge.push(vo(ve[Oe]));return ge}function xo(E,te){var ve=Ws(E,te),ge=Jr(E,te);if(!ve)return ge;if(!ge)return ve;for(var Oe=0;Oe<ve.length;++Oe){var Je=ve[Oe],mt=ge[Oe];if(Je&&mt)e:for(var Mt=0;Mt<mt.length;++Mt){for(var Tt=mt[Mt],Nt=0;Nt<Je.length;++Nt)if(Je[Nt].marker==Tt.marker)continue e;Je.push(Tt)}else mt&&(ve[Oe]=mt)}return ve}function jo(E,te,ve){for(var ge=[],Oe=0;Oe<E.length;++Oe){var Je=E[Oe];if(Je.ranges){ge.push(ve?Ii.prototype.deepCopy.call(Je):Je);continue}var mt=Je.changes,Mt=[];ge.push({changes:Mt});for(var Tt=0;Tt<mt.length;++Tt){var Nt=mt[Tt],ir=void 0;if(Mt.push({from:Nt.from,to:Nt.to,text:Nt.text}),te)for(var hr in Nt)(ir=hr.match(/^spans_(\d+)$/))&&ct(te,Number(ir[1]))>-1&&(Ot(Mt)[hr]=Nt[hr],delete Nt[hr])}}return ge}function yl(E,te,ve,ge){if(ge){var Oe=E.anchor;if(ve){var Je=kr(te,Oe)<0;Je!=kr(ve,Oe)<0?(Oe=te,te=ve):Je!=kr(te,ve)<0&&(te=ve)}return new Qn(Oe,te)}else return new Qn(ve||te,te)}function xa(E,te,ve,ge,Oe){Oe==null&&(Oe=E.cm&&(E.cm.display.shift||E.extend)),Ra(E,new Ii([yl(E.sel.primary(),te,ve,Oe)],0),ge)}function On(E,te,ve){for(var ge=[],Oe=E.cm&&(E.cm.display.shift||E.extend),Je=0;Je<E.sel.ranges.length;Je++)ge[Je]=yl(E.sel.ranges[Je],te[Je],null,Oe);var mt=Zi(E.cm,ge,E.sel.primIndex);Ra(E,mt,ve)}function Ta(E,te,ve,ge){var Oe=E.sel.ranges.slice(0);Oe[te]=ve,Ra(E,Zi(E.cm,Oe,E.sel.primIndex),ge)}function Co(E,te,ve,ge){Ra(E,Ji(te,ve),ge)}function ko(E,te,ve){var ge={ranges:te.ranges,update:function(Oe){this.ranges=[];for(var Je=0;Je<Oe.length;Je++)this.ranges[Je]=new Qn(ur(E,Oe[Je].anchor),ur(E,Oe[Je].head))},origin:ve&&ve.origin};return ft(E,"beforeSelectionChange",E,ge),E.cm&&ft(E.cm,"beforeSelectionChange",E.cm,ge),ge.ranges!=te.ranges?Zi(E.cm,ge.ranges,ge.ranges.length-1):te}function Hi(E,te,ve){var ge=E.history.done,Oe=Ot(ge);Oe&&Oe.ranges?(ge[ge.length-1]=te,Fo(E,te,ve)):Ra(E,te,ve)}function Ra(E,te,ve){Fo(E,te,ve),Vo(E,E.sel,E.cm?E.cm.curOp.id:NaN,ve)}function Fo(E,te,ve){(zt(E,"beforeSelectionChange")||E.cm&&zt(E.cm,"beforeSelectionChange"))&&(te=ko(E,te,ve));var ge=ve&&ve.bias||(kr(te.primary().head,E.sel.primary().head)<0?-1:1);Ds(E,ps(E,te,ge,!0)),!(ve&&ve.scroll===!1)&&E.cm&&bc(E.cm)}function Ds(E,te){te.equals(E.sel)||(E.sel=te,E.cm&&(E.cm.curOp.updateInput=1,E.cm.curOp.selectionChanged=!0,Ft(E.cm)),mi(E,"cursorActivity",E))}function cl(E){Ds(E,ps(E,E.sel,null,!1))}function ps(E,te,ve,ge){for(var Oe,Je=0;Je<te.ranges.length;Je++){var mt=te.ranges[Je],Mt=te.ranges.length==E.sel.ranges.length&&E.sel.ranges[Je],Tt=tl(E,mt.anchor,Mt&&Mt.anchor,ve,ge),Nt=tl(E,mt.head,Mt&&Mt.head,ve,ge);(Oe||Tt!=mt.anchor||Nt!=mt.head)&&(Oe||(Oe=te.ranges.slice(0,Je)),Oe[Je]=new Qn(Tt,Nt))}return Oe?Zi(E.cm,Oe,te.primIndex):te}function Go(E,te,ve,ge,Oe){var Je=Ut(E,te.line);if(Je.markedSpans)for(var mt=0;mt<Je.markedSpans.length;++mt){var Mt=Je.markedSpans[mt],Tt=Mt.marker,Nt="selectLeft"in Tt?!Tt.selectLeft:Tt.inclusiveLeft,ir="selectRight"in Tt?!Tt.selectRight:Tt.inclusiveRight;if((Mt.from==null||(Nt?Mt.from<=te.ch:Mt.from<te.ch))&&(Mt.to==null||(ir?Mt.to>=te.ch:Mt.to>te.ch))){if(Oe&&(ft(Tt,"beforeCursorEnter"),Tt.explicitlyCleared))if(Je.markedSpans){--mt;continue}else break;if(!Tt.atomic)continue;if(ve){var hr=Tt.find(ge<0?1:-1),Br=void 0;if((ge<0?ir:Nt)&&(hr=Xo(E,hr,-ge,hr&&hr.line==te.line?Je:null)),hr&&hr.line==te.line&&(Br=kr(hr,ve))&&(ge<0?Br<0:Br>0))return Go(E,hr,te,ge,Oe)}var Or=Tt.find(ge<0?-1:1);return(ge<0?Nt:ir)&&(Or=Xo(E,Or,ge,Or.line==te.line?Je:null)),Or?Go(E,Or,te,ge,Oe):null}}return te}function tl(E,te,ve,ge,Oe){var Je=ge||1,mt=Go(E,te,ve,Je,Oe)||!Oe&&Go(E,te,ve,Je,!0)||Go(E,te,ve,-Je,Oe)||!Oe&&Go(E,te,ve,-Je,!0);return mt||(E.cantEdit=!0,qt(E.first,0))}function Xo(E,te,ve,ge){return ve<0&&te.ch==0?te.line>E.first?ur(E,qt(te.line-1)):null:ve>0&&te.ch==(ge||Ut(E,te.line)).text.length?te.line<E.first+E.size-1?qt(te.line+1,0):null:new qt(te.line,te.ch+ve)}function ms(E){E.setSelection(qt(E.firstLine(),0),qt(E.lastLine()),rt)}function rs(E,te,ve){var ge={canceled:!1,from:te.from,to:te.to,text:te.text,origin:te.origin,cancel:function(){return ge.canceled=!0}};return ve&&(ge.update=function(Oe,Je,mt,Mt){Oe&&(ge.from=ur(E,Oe)),Je&&(ge.to=ur(E,Je)),mt&&(ge.text=mt),Mt!==void 0&&(ge.origin=Mt)}),ft(E,"beforeChange",E,ge),E.cm&&ft(E.cm,"beforeChange",E.cm,ge),ge.canceled?(E.cm&&(E.cm.curOp.updateInput=2),null):{from:ge.from,to:ge.to,text:ge.text,origin:ge.origin}}function io(E,te,ve){if(E.cm){if(!E.cm.curOp)return Cr(E.cm,io)(E,te,ve);if(E.cm.state.suppressEdits)return}if(!((zt(E,"beforeChange")||E.cm&&zt(E.cm,"beforeChange"))&&(te=rs(E,te,!0),!te))){var ge=$n&&!ve&&Hn(E,te.from,te.to);if(ge)for(var Oe=ge.length-1;Oe>=0;--Oe)ao(E,{from:ge[Oe].from,to:ge[Oe].to,text:Oe?[""]:te.text,origin:te.origin});else ao(E,te)}}function ao(E,te){if(!(te.text.length==1&&te.text[0]==""&&kr(te.from,te.to)==0)){var ve=no(E,te);ga(E,te,ve,E.cm?E.cm.curOp.id:NaN),js(E,te,ve,Jr(E,te));var ge=[];Mo(E,function(Oe,Je){!Je&&ct(ge,Oe.history)==-1&&(Fa(Oe.history,te),ge.push(Oe.history)),js(Oe,te,null,Jr(Oe,te))})}}function cs(E,te,ve){var ge=E.cm&&E.cm.state.suppressEdits;if(!(ge&&!ve)){for(var Oe=E.history,Je,mt=E.sel,Mt=te=="undo"?Oe.done:Oe.undone,Tt=te=="undo"?Oe.undone:Oe.done,Nt=0;Nt<Mt.length&&(Je=Mt[Nt],!(ve?Je.ranges&&!Je.equals(E.sel):!Je.ranges));Nt++);if(Nt!=Mt.length){for(Oe.lastOrigin=Oe.lastSelOrigin=null;;)if(Je=Mt.pop(),Je.ranges){if(_o(Je,Tt),ve&&!Je.equals(E.sel)){Ra(E,Je,{clearRedo:!1});return}mt=Je}else if(ge){Mt.push(Je);return}else break;var ir=[];_o(mt,Tt),Tt.push({changes:ir,generation:Oe.generation}),Oe.generation=Je.generation||++Oe.maxGeneration;for(var hr=zt(E,"beforeChange")||E.cm&&zt(E.cm,"beforeChange"),Br=function(En){var ei=Je.changes[En];if(ei.origin=te,hr&&!rs(E,ei,!1))return Mt.length=0,{};ir.push(Sa(E,ei));var fi=En?no(E,ei):Ot(Mt);js(E,ei,fi,xo(E,ei)),!En&&E.cm&&E.cm.scrollIntoView({from:ei.from,to:_a(ei)});var vi=[];Mo(E,function(oi,bi){!bi&&ct(vi,oi.history)==-1&&(Fa(oi.history,ei),vi.push(oi.history)),js(oi,ei,null,xo(oi,ei))})},Or=Je.changes.length-1;Or>=0;--Or){var on=Br(Or);if(on)return on.v}}}}function bl(E,te){if(te!=0&&(E.first+=te,E.sel=new Ii(lt(E.sel.ranges,function(Oe){return new Qn(qt(Oe.anchor.line+te,Oe.anchor.ch),qt(Oe.head.line+te,Oe.head.ch))}),E.sel.primIndex),E.cm)){No(E.cm,E.first,E.first-te,te);for(var ve=E.cm.display,ge=ve.viewFrom;ge<ve.viewTo;ge++)Js(E.cm,ge,"gutter")}}function js(E,te,ve,ge){if(E.cm&&!E.cm.curOp)return Cr(E.cm,js)(E,te,ve,ge);if(te.to.line<E.first){bl(E,te.text.length-1-(te.to.line-te.from.line));return}if(!(te.from.line>E.lastLine())){if(te.from.line<E.first){var Oe=te.text.length-1-(E.first-te.from.line);bl(E,Oe),te={from:qt(E.first,0),to:qt(te.to.line+Oe,te.to.ch),text:[Ot(te.text)],origin:te.origin}}var Je=E.lastLine();te.to.line>Je&&(te={from:te.from,to:qt(Je,Ut(E,Je).text.length),text:[te.text[0]],origin:te.origin}),te.removed=Qt(E,te.from,te.to),ve||(ve=no(E,te)),E.cm?ul(E.cm,te,ge):Va(E,te,ge),Fo(E,ve,rt),E.cantEdit&&tl(E,qt(E.firstLine(),0))&&(E.cantEdit=!1)}}function ul(E,te,ve){var ge=E.doc,Oe=E.display,Je=te.from,mt=te.to,Mt=!1,Tt=Je.line;E.options.lineWrapping||(Tt=vr(li(Ut(ge,Je.line))),ge.iter(Tt,mt.line+1,function(Or){if(Or==Oe.maxLine)return Mt=!0,!0})),ge.sel.contains(te.from,te.to)>-1&&Ft(E),Va(ge,te,ve,hs(E)),E.options.lineWrapping||(ge.iter(Tt,Je.line+te.text.length,function(Or){var on=Cn(Or);on>Oe.maxLineLength&&(Oe.maxLine=Or,Oe.maxLineLength=on,Oe.maxLineChanged=!0,Mt=!1)}),Mt&&(E.curOp.updateMaxLine=!0)),rn(ge,Je.line),Rr(E,400);var Nt=te.text.length-(mt.line-Je.line)-1;te.full?No(E):Je.line==mt.line&&te.text.length==1&&!Qa(E.doc,te)?Js(E,Je.line,"text"):No(E,Je.line,mt.line+1,Nt);var ir=zt(E,"changes"),hr=zt(E,"change");if(hr||ir){var Br={from:Je,to:mt,text:te.text,removed:te.removed,origin:te.origin};hr&&mi(E,"change",E,Br),ir&&(E.curOp.changeObjs||(E.curOp.changeObjs=[])).push(Br)}E.display.selForContextMenu=null}function Nl(E,te,ve,ge,Oe){var Je;ge||(ge=ve),kr(ge,ve)<0&&(Je=[ge,ve],ve=Je[0],ge=Je[1]),typeof te=="string"&&(te=E.splitLines(te)),io(E,{from:ve,to:ge,text:te,origin:Oe})}function iu(E,te,ve,ge){ve<E.line?E.line+=ge:te<E.line&&(E.line=te,E.ch=0)}function Ca(E,te,ve,ge){for(var Oe=0;Oe<E.length;++Oe){var Je=E[Oe],mt=!0;if(Je.ranges){Je.copied||(Je=E[Oe]=Je.deepCopy(),Je.copied=!0);for(var Mt=0;Mt<Je.ranges.length;Mt++)iu(Je.ranges[Mt].anchor,te,ve,ge),iu(Je.ranges[Mt].head,te,ve,ge);continue}for(var Tt=0;Tt<Je.changes.length;++Tt){var Nt=Je.changes[Tt];if(ve<Nt.from.line)Nt.from=qt(Nt.from.line+ge,Nt.from.ch),Nt.to=qt(Nt.to.line+ge,Nt.to.ch);else if(te<=Nt.to.line){mt=!1;break}}mt||(E.splice(0,Oe+1),Oe=0)}}function Fa(E,te){var ve=te.from.line,ge=te.to.line,Oe=te.text.length-(ge-ve)-1;Ca(E.done,ve,ge,Oe),Ca(E.undone,ve,ge,Oe)}function Do(E,te,ve,ge){var Oe=te,Je=te;return typeof te=="number"?Je=Ut(E,_r(E,te)):Oe=vr(te),Oe==null?null:(ge(Je,Oe)&&E.cm&&Js(E.cm,Oe,ve),Je)}function $a(E){this.lines=E,this.parent=null;for(var te=0,ve=0;ve<E.length;++ve)E[ve].parent=this,te+=E[ve].height;this.height=te}$a.prototype={chunkSize:function(){return this.lines.length},removeInner:function(E,te){for(var ve=E,ge=E+te;ve<ge;++ve){var Oe=this.lines[ve];this.height-=Oe.height,qi(Oe),mi(Oe,"delete")}this.lines.splice(E,te)},collapse:function(E){E.push.apply(E,this.lines)},insertInner:function(E,te,ve){this.height+=ve,this.lines=this.lines.slice(0,E).concat(te).concat(this.lines.slice(E));for(var ge=0;ge<te.length;++ge)te[ge].parent=this},iterN:function(E,te,ve){for(var ge=E+te;E<ge;++E)if(ve(this.lines[E]))return!0}};function Io(E){this.children=E;for(var te=0,ve=0,ge=0;ge<E.length;++ge){var Oe=E[ge];te+=Oe.chunkSize(),ve+=Oe.height,Oe.parent=this}this.size=te,this.height=ve,this.parent=null}Io.prototype={chunkSize:function(){return this.size},removeInner:function(E,te){this.size-=te;for(var ve=0;ve<this.children.length;++ve){var ge=this.children[ve],Oe=ge.chunkSize();if(E<Oe){var Je=Math.min(te,Oe-E),mt=ge.height;if(ge.removeInner(E,Je),this.height-=mt-ge.height,Oe==Je&&(this.children.splice(ve--,1),ge.parent=null),(te-=Je)==0)break;E=0}else E-=Oe}if(this.size-te<25&&(this.children.length>1||!(this.children[0]instanceof $a))){var Mt=[];this.collapse(Mt),this.children=[new $a(Mt)],this.children[0].parent=this}},collapse:function(E){for(var te=0;te<this.children.length;++te)this.children[te].collapse(E)},insertInner:function(E,te,ve){this.size+=te.length,this.height+=ve;for(var ge=0;ge<this.children.length;++ge){var Oe=this.children[ge],Je=Oe.chunkSize();if(E<=Je){if(Oe.insertInner(E,te,ve),Oe.lines&&Oe.lines.length>50){for(var mt=Oe.lines.length%25+25,Mt=mt;Mt<Oe.lines.length;){var Tt=new $a(Oe.lines.slice(Mt,Mt+=25));Oe.height-=Tt.height,this.children.splice(++ge,0,Tt),Tt.parent=this}Oe.lines=Oe.lines.slice(0,mt),this.maybeSpill()}break}E-=Je}},maybeSpill:function(){if(!(this.children.length<=10)){var E=this;do{var te=E.children.splice(E.children.length-5,5),ve=new Io(te);if(E.parent){E.size-=ve.size,E.height-=ve.height;var Oe=ct(E.parent.children,E);E.parent.children.splice(Oe+1,0,ve)}else{var ge=new Io(E.children);ge.parent=E,E.children=[ge,ve],E=ge}ve.parent=E.parent}while(E.children.length>10);E.parent.maybeSpill()}},iterN:function(E,te,ve){for(var ge=0;ge<this.children.length;++ge){var Oe=this.children[ge],Je=Oe.chunkSize();if(E<Je){var mt=Math.min(te,Je-E);if(Oe.iterN(E,mt,ve))return!0;if((te-=mt)==0)break;E=0}else E-=Je}}};var Yo=function(E,te,ve){if(ve)for(var ge in ve)ve.hasOwnProperty(ge)&&(this[ge]=ve[ge]);this.doc=E,this.node=te};Yo.prototype.clear=function(){var E=this.doc.cm,te=this.line.widgets,ve=this.line,ge=vr(ve);if(!(ge==null||!te)){for(var Oe=0;Oe<te.length;++Oe)te[Oe]==this&&te.splice(Oe--,1);te.length||(ve.widgets=null);var Je=ks(this);cr(ve,Math.max(0,ve.height-Je)),E&&(er(E,function(){xs(E,ve,-Je),Js(E,ge,"widget")}),mi(E,"lineWidgetCleared",E,this,ge))}},Yo.prototype.changed=function(){var E=this,te=this.height,ve=this.doc.cm,ge=this.line;this.height=null;var Oe=ks(this)-te;Oe&&(ra(this.doc,ge)||cr(ge,ge.height+Oe),ve&&er(ve,function(){ve.curOp.forceUpdate=!0,xs(ve,ge,Oe),mi(ve,"lineWidgetChanged",ve,E,vr(ge))}))},Zt(Yo);function xs(E,te,ve){Sn(te)<(E.curOp&&E.curOp.scrollTop||E.doc.scrollTop)&&ru(E,ve)}function xl(E,te,ve,ge){var Oe=new Yo(E,ve,ge),Je=E.cm;return Je&&Oe.noHScroll&&(Je.display.alignWidgets=!0),Do(E,te,"widget",function(mt){var Mt=mt.widgets||(mt.widgets=[]);if(Oe.insertAt==null?Mt.push(Oe):Mt.splice(Math.min(Mt.length-1,Math.max(0,Oe.insertAt)),0,Oe),Oe.line=mt,Je&&!ra(E,mt)){var Tt=Sn(mt)<E.scrollTop;cr(mt,mt.height+ks(Oe)),Tt&&ru(Je,Oe.height),Je.curOp.forceUpdate=!0}return!0}),Je&&mi(Je,"lineWidgetAdded",Je,Oe,typeof te=="number"?te:vr(te)),Oe}var _u=0,Xl=function(E,te){this.lines=[],this.type=te,this.doc=E,this.id=++_u};Xl.prototype.clear=function(){if(!this.explicitlyCleared){var E=this.doc.cm,te=E&&!E.curOp;if(te&&bs(E),zt(this,"clear")){var ve=this.find();ve&&mi(this,"clear",ve.from,ve.to)}for(var ge=null,Oe=null,Je=0;Je<this.lines.length;++Je){var mt=this.lines[Je],Mt=Jn(mt.markedSpans,this);E&&!this.collapsed?Js(E,vr(mt),"text"):E&&(Mt.to!=null&&(Oe=vr(mt)),Mt.from!=null&&(ge=vr(mt))),mt.markedSpans=zn(mt.markedSpans,Mt),Mt.from==null&&this.collapsed&&!ra(this.doc,mt)&&E&&cr(mt,vl(E.display))}if(E&&this.collapsed&&!E.options.lineWrapping)for(var Tt=0;Tt<this.lines.length;++Tt){var Nt=li(this.lines[Tt]),ir=Cn(Nt);ir>E.display.maxLineLength&&(E.display.maxLine=Nt,E.display.maxLineLength=ir,E.display.maxLineChanged=!0)}ge!=null&&E&&this.collapsed&&No(E,ge,Oe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,E&&cl(E.doc)),E&&mi(E,"markerCleared",E,this,ge,Oe),te&&Bl(E),this.parent&&this.parent.clear()}},Xl.prototype.find=function(E,te){E==null&&this.type=="bookmark"&&(E=1);for(var ve,ge,Oe=0;Oe<this.lines.length;++Oe){var Je=this.lines[Oe],mt=Jn(Je.markedSpans,this);if(mt.from!=null&&(ve=qt(te?Je:vr(Je),mt.from),E==-1))return ve;if(mt.to!=null&&(ge=qt(te?Je:vr(Je),mt.to),E==1))return ge}return ve&&{from:ve,to:ge}},Xl.prototype.changed=function(){var E=this,te=this.find(-1,!0),ve=this,ge=this.doc.cm;!te||!ge||er(ge,function(){var Oe=te.line,Je=vr(te.line),mt=ss(ge,Je);if(mt&&(Wa(mt),ge.curOp.selectionChanged=ge.curOp.forceUpdate=!0),ge.curOp.updateMaxLine=!0,!ra(ve.doc,Oe)&&ve.height!=null){var Mt=ve.height;ve.height=null;var Tt=ks(ve)-Mt;Tt&&cr(Oe,Oe.height+Tt)}mi(ge,"markerChanged",ge,E)})},Xl.prototype.attachLine=function(E){if(!this.lines.length&&this.doc.cm){var te=this.doc.cm.curOp;(!te.maybeHiddenMarkers||ct(te.maybeHiddenMarkers,this)==-1)&&(te.maybeUnhiddenMarkers||(te.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(E)},Xl.prototype.detachLine=function(E){if(this.lines.splice(ct(this.lines,E),1),!this.lines.length&&this.doc.cm){var te=this.doc.cm.curOp;(te.maybeHiddenMarkers||(te.maybeHiddenMarkers=[])).push(this)}},Zt(Xl);function wl(E,te,ve,ge,Oe){if(ge&&ge.shared)return so(E,te,ve,ge,Oe);if(E.cm&&!E.cm.curOp)return Cr(E.cm,wl)(E,te,ve,ge,Oe);var Je=new Xl(E,Oe),mt=kr(te,ve);if(ge&&ht(ge,Je,!1),mt>0||mt==0&&Je.clearWhenEmpty!==!1)return Je;if(Je.replacedWith&&(Je.collapsed=!0,Je.widgetNode=Pe("span",[Je.replacedWith],"CodeMirror-widget"),ge.handleMouseEvents||Je.widgetNode.setAttribute("cm-ignore-events","true"),ge.insertLeft&&(Je.widgetNode.insertLeft=!0)),Je.collapsed){if(qn(E,te.line,te,ve,Je)||te.line!=ve.line&&qn(E,ve.line,te,ve,Je))throw new Error("Inserting collapsed marker partially overlapping an existing one");wn()}Je.addToHistory&&ga(E,{from:te,to:ve,origin:"markText"},E.sel,NaN);var Mt=te.line,Tt=E.cm,Nt;if(E.iter(Mt,ve.line+1,function(hr){Tt&&Je.collapsed&&!Tt.options.lineWrapping&&li(hr)==Tt.display.maxLine&&(Nt=!0),Je.collapsed&&Mt!=te.line&&cr(hr,0),hi(hr,new Mn(Je,Mt==te.line?te.ch:null,Mt==ve.line?ve.ch:null)),++Mt}),Je.collapsed&&E.iter(te.line,ve.line+1,function(hr){ra(E,hr)&&cr(hr,0)}),Je.clearOnEnter&&$t(Je,"beforeCursorEnter",function(){return Je.clear()}),Je.readOnly&&(Zn(),(E.history.done.length||E.history.undone.length)&&E.clearHistory()),Je.collapsed&&(Je.id=++_u,Je.atomic=!0),Tt){if(Nt&&(Tt.curOp.updateMaxLine=!0),Je.collapsed)No(Tt,te.line,ve.line+1);else if(Je.className||Je.startStyle||Je.endStyle||Je.css||Je.attributes||Je.title)for(var ir=te.line;ir<=ve.line;ir++)Js(Tt,ir,"text");Je.atomic&&cl(Tt.doc),mi(Tt,"markerAdded",Tt,Je)}return Je}var ya=function(E,te){this.markers=E,this.primary=te;for(var ve=0;ve<E.length;++ve)E[ve].parent=this};ya.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var E=0;E<this.markers.length;++E)this.markers[E].clear();mi(this,"clear")}},ya.prototype.find=function(E,te){return this.primary.find(E,te)},Zt(ya);function so(E,te,ve,ge,Oe){ge=ht(ge),ge.shared=!1;var Je=[wl(E,te,ve,ge,Oe)],mt=Je[0],Mt=ge.widgetNode;return Mo(E,function(Tt){Mt&&(ge.widgetNode=Mt.cloneNode(!0)),Je.push(wl(Tt,ur(Tt,te),ur(Tt,ve),ge,Oe));for(var Nt=0;Nt<Tt.linked.length;++Nt)if(Tt.linked[Nt].isParent)return;mt=Ot(Je)}),new ya(Je,mt)}function dl(E){return E.findMarks(qt(E.first,0),E.clipPos(qt(E.lastLine())),function(te){return te.parent})}function lc(E,te){for(var ve=0;ve<te.length;ve++){var ge=te[ve],Oe=ge.find(),Je=E.clipPos(Oe.from),mt=E.clipPos(Oe.to);if(kr(Je,mt)){var Mt=wl(E,Je,mt,ge.primary,ge.primary.type);ge.markers.push(Mt),Mt.parent=ge}}}function Fs(E){for(var te=function(ge){var Oe=E[ge],Je=[Oe.primary.doc];Mo(Oe.primary.doc,function(Tt){return Je.push(Tt)});for(var mt=0;mt<Oe.markers.length;mt++){var Mt=Oe.markers[mt];ct(Je,Mt.doc)==-1&&(Mt.parent=null,Oe.markers.splice(mt--,1))}},ve=0;ve<E.length;ve++)te(ve)}var ed=0,To=function(E,te,ve,ge,Oe){if(!(this instanceof To))return new To(E,te,ve,ge,Oe);ve==null&&(ve=0),Io.call(this,[new $a([new Wn("",null)])]),this.first=ve,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ve;var Je=qt(ve,0);this.sel=Ji(Je),this.history=new xi(null),this.id=++ed,this.modeOption=te,this.lineSep=ge,this.direction=Oe=="rtl"?"rtl":"ltr",this.extend=!1,typeof E=="string"&&(E=this.splitLines(E)),Va(this,{from:Je,to:Je,text:E}),Ra(this,Ji(Je),rt)};To.prototype=le(Io.prototype,{constructor:To,iter:function(E,te,ve){ve?this.iterN(E-this.first,te-E,ve):this.iterN(this.first,this.first+this.size,E)},insert:function(E,te){for(var ve=0,ge=0;ge<te.length;++ge)ve+=te[ge].height;this.insertInner(E-this.first,te,ve)},remove:function(E,te){this.removeInner(E-this.first,te)},getValue:function(E){var te=yr(this,this.first,this.first+this.size);return E===!1?te:te.join(E||this.lineSeparator())},setValue:xr(function(E){var te=qt(this.first,0),ve=this.first+this.size-1;io(this,{from:te,to:qt(ve,Ut(this,ve).text.length),text:this.splitLines(E),origin:"setValue",full:!0},!0),this.cm&&sc(this.cm,0,0),Ra(this,Ji(te),rt)}),replaceRange:function(E,te,ve,ge){te=ur(this,te),ve=ve?ur(this,ve):te,Nl(this,E,te,ve,ge)},getRange:function(E,te,ve){var ge=Qt(this,ur(this,E),ur(this,te));return ve===!1?ge:ge.join(ve||this.lineSeparator())},getLine:function(E){var te=this.getLineHandle(E);return te&&te.text},getLineHandle:function(E){if(Ir(this,E))return Ut(this,E)},getLineNumber:function(E){return vr(E)},getLineHandleVisualStart:function(E){return typeof E=="number"&&(E=Ut(this,E)),li(E)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(E){return ur(this,E)},getCursor:function(E){var te=this.sel.primary(),ve;return E==null||E=="head"?ve=te.head:E=="anchor"?ve=te.anchor:E=="end"||E=="to"||E===!1?ve=te.to():ve=te.from(),ve},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:xr(function(E,te,ve){Co(this,ur(this,typeof E=="number"?qt(E,te||0):E),null,ve)}),setSelection:xr(function(E,te,ve){Co(this,ur(this,E),ur(this,te||E),ve)}),extendSelection:xr(function(E,te,ve){xa(this,ur(this,E),te&&ur(this,te),ve)}),extendSelections:xr(function(E,te){On(this,Pt(this,E),te)}),extendSelectionsBy:xr(function(E,te){var ve=lt(this.sel.ranges,E);On(this,Pt(this,ve),te)}),setSelections:xr(function(E,te,ve){if(E.length){for(var ge=[],Oe=0;Oe<E.length;Oe++)ge[Oe]=new Qn(ur(this,E[Oe].anchor),ur(this,E[Oe].head));te==null&&(te=Math.min(E.length-1,this.sel.primIndex)),Ra(this,Zi(this.cm,ge,te),ve)}}),addSelection:xr(function(E,te,ve){var ge=this.sel.ranges.slice(0);ge.push(new Qn(ur(this,E),ur(this,te||E))),Ra(this,Zi(this.cm,ge,ge.length-1),ve)}),getSelection:function(E){for(var te=this.sel.ranges,ve,ge=0;ge<te.length;ge++){var Oe=Qt(this,te[ge].from(),te[ge].to());ve=ve?ve.concat(Oe):Oe}return E===!1?ve:ve.join(E||this.lineSeparator())},getSelections:function(E){for(var te=[],ve=this.sel.ranges,ge=0;ge<ve.length;ge++){var Oe=Qt(this,ve[ge].from(),ve[ge].to());E!==!1&&(Oe=Oe.join(E||this.lineSeparator())),te[ge]=Oe}return te},replaceSelection:function(E,te,ve){for(var ge=[],Oe=0;Oe<this.sel.ranges.length;Oe++)ge[Oe]=E;this.replaceSelections(ge,te,ve||"+input")},replaceSelections:xr(function(E,te,ve){for(var ge=[],Oe=this.sel,Je=0;Je<Oe.ranges.length;Je++){var mt=Oe.ranges[Je];ge[Je]={from:mt.from(),to:mt.to(),text:this.splitLines(E[Je]),origin:ve}}for(var Mt=te&&te!="end"&&Gi(this,ge,te),Tt=ge.length-1;Tt>=0;Tt--)io(this,ge[Tt]);Mt?Hi(this,Mt):this.cm&&bc(this.cm)}),undo:xr(function(){cs(this,"undo")}),redo:xr(function(){cs(this,"redo")}),undoSelection:xr(function(){cs(this,"undo",!0)}),redoSelection:xr(function(){cs(this,"redo",!0)}),setExtending:function(E){this.extend=E},getExtending:function(){return this.extend},historySize:function(){for(var E=this.history,te=0,ve=0,ge=0;ge<E.done.length;ge++)E.done[ge].ranges||++te;for(var Oe=0;Oe<E.undone.length;Oe++)E.undone[Oe].ranges||++ve;return{undo:te,redo:ve}},clearHistory:function(){var E=this;this.history=new xi(this.history.maxGeneration),Mo(this,function(te){return te.history=E.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(E){return E&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(E){return this.history.generation==(E||this.cleanGeneration)},getHistory:function(){return{done:jo(this.history.done),undone:jo(this.history.undone)}},setHistory:function(E){var te=this.history=new xi(this.history.maxGeneration);te.done=jo(E.done.slice(0),null,!0),te.undone=jo(E.undone.slice(0),null,!0)},setGutterMarker:xr(function(E,te,ve){return Do(this,E,"gutter",function(ge){var Oe=ge.gutterMarkers||(ge.gutterMarkers={});return Oe[te]=ve,!ve&&ye(Oe)&&(ge.gutterMarkers=null),!0})}),clearGutter:xr(function(E){var te=this;this.iter(function(ve){ve.gutterMarkers&&ve.gutterMarkers[E]&&Do(te,ve,"gutter",function(){return ve.gutterMarkers[E]=null,ye(ve.gutterMarkers)&&(ve.gutterMarkers=null),!0})})}),lineInfo:function(E){var te;if(typeof E=="number"){if(!Ir(this,E)||(te=E,E=Ut(this,E),!E))return null}else if(te=vr(E),te==null)return null;return{line:te,handle:E,text:E.text,gutterMarkers:E.gutterMarkers,textClass:E.textClass,bgClass:E.bgClass,wrapClass:E.wrapClass,widgets:E.widgets}},addLineClass:xr(function(E,te,ve){return Do(this,E,te=="gutter"?"gutter":"class",function(ge){var Oe=te=="text"?"textClass":te=="background"?"bgClass":te=="gutter"?"gutterClass":"wrapClass";if(!ge[Oe])ge[Oe]=ve;else{if(Ce(ve).test(ge[Oe]))return!1;ge[Oe]+=" "+ve}return!0})}),removeLineClass:xr(function(E,te,ve){return Do(this,E,te=="gutter"?"gutter":"class",function(ge){var Oe=te=="text"?"textClass":te=="background"?"bgClass":te=="gutter"?"gutterClass":"wrapClass",Je=ge[Oe];if(Je)if(ve==null)ge[Oe]=null;else{var mt=Je.match(Ce(ve));if(!mt)return!1;var Mt=mt.index+mt[0].length;ge[Oe]=Je.slice(0,mt.index)+(!mt.index||Mt==Je.length?"":" ")+Je.slice(Mt)||null}else return!1;return!0})}),addLineWidget:xr(function(E,te,ve){return xl(this,E,te,ve)}),removeLineWidget:function(E){E.clear()},markText:function(E,te,ve){return wl(this,ur(this,E),ur(this,te),ve,ve&&ve.type||"range")},setBookmark:function(E,te){var ve={replacedWith:te&&(te.nodeType==null?te.widget:te),insertLeft:te&&te.insertLeft,clearWhenEmpty:!1,shared:te&&te.shared,handleMouseEvents:te&&te.handleMouseEvents};return E=ur(this,E),wl(this,E,E,ve,"bookmark")},findMarksAt:function(E){E=ur(this,E);var te=[],ve=Ut(this,E.line).markedSpans;if(ve)for(var ge=0;ge<ve.length;++ge){var Oe=ve[ge];(Oe.from==null||Oe.from<=E.ch)&&(Oe.to==null||Oe.to>=E.ch)&&te.push(Oe.marker.parent||Oe.marker)}return te},findMarks:function(E,te,ve){E=ur(this,E),te=ur(this,te);var ge=[],Oe=E.line;return this.iter(E.line,te.line+1,function(Je){var mt=Je.markedSpans;if(mt)for(var Mt=0;Mt<mt.length;Mt++){var Tt=mt[Mt];!(Tt.to!=null&&Oe==E.line&&E.ch>=Tt.to||Tt.from==null&&Oe!=E.line||Tt.from!=null&&Oe==te.line&&Tt.from>=te.ch)&&(!ve||ve(Tt.marker))&&ge.push(Tt.marker.parent||Tt.marker)}++Oe}),ge},getAllMarks:function(){var E=[];return this.iter(function(te){var ve=te.markedSpans;if(ve)for(var ge=0;ge<ve.length;++ge)ve[ge].from!=null&&E.push(ve[ge].marker)}),E},posFromIndex:function(E){var te,ve=this.first,ge=this.lineSeparator().length;return this.iter(function(Oe){var Je=Oe.text.length+ge;if(Je>E)return te=E,!0;E-=Je,++ve}),ur(this,qt(ve,te))},indexFromPos:function(E){E=ur(this,E);var te=E.ch;if(E.line<this.first||E.ch<0)return 0;var ve=this.lineSeparator().length;return this.iter(this.first,E.line,function(ge){te+=ge.text.length+ve}),te},copy:function(E){var te=new To(yr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return te.scrollTop=this.scrollTop,te.scrollLeft=this.scrollLeft,te.sel=this.sel,te.extend=!1,E&&(te.history.undoDepth=this.history.undoDepth,te.setHistory(this.getHistory())),te},linkedDoc:function(E){E||(E={});var te=this.first,ve=this.first+this.size;E.from!=null&&E.from>te&&(te=E.from),E.to!=null&&E.to<ve&&(ve=E.to);var ge=new To(yr(this,te,ve),E.mode||this.modeOption,te,this.lineSep,this.direction);return E.sharedHist&&(ge.history=this.history),(this.linked||(this.linked=[])).push({doc:ge,sharedHist:E.sharedHist}),ge.linked=[{doc:this,isParent:!0,sharedHist:E.sharedHist}],lc(ge,dl(this)),ge},unlinkDoc:function(E){if(E instanceof ta&&(E=E.doc),this.linked)for(var te=0;te<this.linked.length;++te){var ve=this.linked[te];if(ve.doc==E){this.linked.splice(te,1),E.unlinkDoc(this),Fs(dl(this));break}}if(E.history==this.history){var ge=[E.id];Mo(E,function(Oe){return ge.push(Oe.id)},!0),E.history=new xi(null),E.history.done=jo(this.history.done,ge),E.history.undone=jo(this.history.undone,ge)}},iterLinkedDocs:function(E){Mo(this,E)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(E){return this.lineSep?E.split(this.lineSep):_n(E)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:xr(function(E){E!="rtl"&&(E="ltr"),E!=this.direction&&(this.direction=E,this.iter(function(te){return te.order=null}),this.cm&&Ti(this.cm))})}),To.prototype.eachLine=To.prototype.iter;var ku=0;function td(E){var te=this;if(wc(te),!(dt(te,E)||Ts(te.display,E))){tr(E),me&&(ku=+new Date);var ve=Hs(te,E,!0),ge=E.dataTransfer.files;if(!(!ve||te.isReadOnly()))if(ge&&ge.length&&window.FileReader&&window.File)for(var Oe=ge.length,Je=Array(Oe),mt=0,Mt=function(){++mt==Oe&&Cr(te,function(){ve=ur(te.doc,ve);var Or={from:ve,to:ve,text:te.doc.splitLines(Je.filter(function(on){return on!=null}).join(te.doc.lineSeparator())),origin:"paste"};io(te.doc,Or),Hi(te.doc,Ji(ur(te.doc,ve),ur(te.doc,_a(Or))))})()},Tt=function(Or,on){if(te.options.allowDropFileTypes&&ct(te.options.allowDropFileTypes,Or.type)==-1){Mt();return}var En=new FileReader;En.onerror=function(){return Mt()},En.onload=function(){var ei=En.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ei)){Mt();return}Je[on]=ei,Mt()},En.readAsText(Or)},Nt=0;Nt<ge.length;Nt++)Tt(ge[Nt],Nt);else{if(te.state.draggingText&&te.doc.sel.contains(ve)>-1){te.state.draggingText(E),setTimeout(function(){return te.display.input.focus()},20);return}try{var ir=E.dataTransfer.getData("Text");if(ir){var hr;if(te.state.draggingText&&!te.state.draggingText.copy&&(hr=te.listSelections()),Fo(te.doc,Ji(ve,ve)),hr)for(var Br=0;Br<hr.length;++Br)Nl(te.doc,"",hr[Br].anchor,hr[Br].head,"drag");te.replaceSelection(ir,"around","paste"),te.display.input.focus()}}catch(Or){}}}}function au(E,te){if(me&&(!E.state.draggingText||+new Date-ku<100)){zr(te);return}if(!(dt(E,te)||Ts(E.display,te))&&(te.dataTransfer.setData("Text",E.getSelection()),te.dataTransfer.effectAllowed="copyMove",te.dataTransfer.setDragImage&&!pe)){var ve=Ee("img",null,null,"position: fixed; left: 0; top: 0;");ve.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",se&&(ve.width=ve.height=1,E.display.wrapper.appendChild(ve),ve._top=ve.offsetTop),te.dataTransfer.setDragImage(ve,0,0),se&&ve.parentNode.removeChild(ve)}}function ou(E,te){var ve=Hs(E,te);if(ve){var ge=document.createDocumentFragment();xu(E,ve,ge),E.display.dragCursor||(E.display.dragCursor=Ee("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),E.display.lineSpace.insertBefore(E.display.dragCursor,E.display.cursorDiv)),De(E.display.dragCursor,ge)}}function wc(E){E.display.dragCursor&&(E.display.lineSpace.removeChild(E.display.dragCursor),E.display.dragCursor=null)}function cc(E){if(document.getElementsByClassName){for(var te=document.getElementsByClassName("CodeMirror"),ve=[],ge=0;ge<te.length;ge++){var Oe=te[ge].CodeMirror;Oe&&ve.push(Oe)}ve.length&&ve[0].operation(function(){for(var Je=0;Je<ve.length;Je++)E(ve[Je])})}}var Fn=!1;function Tu(){Fn||(su(),Fn=!0)}function su(){var E;$t(window,"resize",function(){E==null&&(E=setTimeout(function(){E=null,cc(lu)},100))}),$t(window,"blur",function(){return cc(ac)})}function lu(E){var te=E.display;te.cachedCharWidth=te.cachedTextHeight=te.cachedPaddingH=null,te.scrollbarsClipped=!1,E.setSize()}for(var rl={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"},Yl=0;Yl<10;Yl++)rl[Yl+48]=rl[Yl+96]=String(Yl);for(var Sc=65;Sc<=90;Sc++)rl[Sc]=String.fromCharCode(Sc);for(var uc=1;uc<=12;uc++)rl[uc+111]=rl[uc+63235]="F"+uc;var qa={};qa.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"},qa.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"},qa.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"},qa.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"]},qa.default=xe?qa.macDefault:qa.pcDefault;function rd(E){var te=E.split(/-(?!$)/);E=te[te.length-1];for(var ve,ge,Oe,Je,mt=0;mt<te.length-1;mt++){var Mt=te[mt];if(/^(cmd|meta|m)$/i.test(Mt))Je=!0;else if(/^a(lt)?$/i.test(Mt))ve=!0;else if(/^(c|ctrl|control)$/i.test(Mt))ge=!0;else if(/^s(hift)?$/i.test(Mt))Oe=!0;else throw new Error("Unrecognized modifier name: "+Mt)}return ve&&(E="Alt-"+E),ge&&(E="Ctrl-"+E),Je&&(E="Cmd-"+E),Oe&&(E="Shift-"+E),E}function cu(E){var te={};for(var ve in E)if(E.hasOwnProperty(ve)){var ge=E[ve];if(/^(name|fallthrough|(de|at)tach)$/.test(ve))continue;if(ge=="..."){delete E[ve];continue}for(var Oe=lt(ve.split(" "),rd),Je=0;Je<Oe.length;Je++){var mt=void 0,Mt=void 0;Je==Oe.length-1?(Mt=Oe.join(" "),mt=ge):(Mt=Oe.slice(0,Je+1).join(" "),mt="...");var Tt=te[Mt];if(!Tt)te[Mt]=mt;else if(Tt!=mt)throw new Error("Inconsistent bindings for "+Mt)}delete E[ve]}for(var Nt in te)E[Nt]=te[Nt];return E}function Sl(E,te,ve,ge){te=gs(te);var Oe=te.call?te.call(E,ge):te[E];if(Oe===!1)return"nothing";if(Oe==="...")return"multi";if(Oe!=null&&ve(Oe))return"handled";if(te.fallthrough){if(Object.prototype.toString.call(te.fallthrough)!="[object Array]")return Sl(E,te.fallthrough,ve,ge);for(var Je=0;Je<te.fallthrough.length;Je++){var mt=Sl(E,te.fallthrough[Je],ve,ge);if(mt)return mt}}}function Hc(E){var te=typeof E=="string"?E:rl[E.keyCode];return te=="Ctrl"||te=="Alt"||te=="Shift"||te=="Mod"}function jl(E,te,ve){var ge=E;return te.altKey&&ge!="Alt"&&(E="Alt-"+E),(Me?te.metaKey:te.ctrlKey)&&ge!="Ctrl"&&(E="Ctrl-"+E),(Me?te.ctrlKey:te.metaKey)&&ge!="Mod"&&(E="Cmd-"+E),!ve&&te.shiftKey&&ge!="Shift"&&(E="Shift-"+E),E}function Fl(E,te){if(se&&E.keyCode==34&&E.char)return!1;var ve=rl[E.keyCode];return ve==null||E.altGraphKey?!1:(E.keyCode==3&&E.code&&(ve=E.code),jl(ve,E,te))}function gs(E){return typeof E=="string"?qa[E]:E}function $s(E,te){for(var ve=E.doc.sel.ranges,ge=[],Oe=0;Oe<ve.length;Oe++){for(var Je=te(ve[Oe]);ge.length&&kr(Je.from,Ot(ge).to)<=0;){var mt=ge.pop();if(kr(mt.from,Je.from)<0){Je.from=mt.from;break}}ge.push(Je)}er(E,function(){for(var Mt=ge.length-1;Mt>=0;Mt--)Nl(E.doc,"",ge[Mt].from,ge[Mt].to,"+delete");bc(E)})}function ns(E,te,ve){var ge=Ke(E.text,te+ve,ve);return ge<0||ge>E.text.length?null:ge}function Cl(E,te,ve){var ge=ns(E,te.ch,ve);return ge==null?null:new qt(te.line,ge,ve<0?"after":"before")}function Ea(E,te,ve,ge,Oe){if(E){te.doc.direction=="rtl"&&(Oe=-Oe);var Je=Ht(ve,te.doc.direction);if(Je){var mt=Oe<0?Ot(Je):Je[0],Mt=Oe<0==(mt.level==1),Tt=Mt?"after":"before",Nt;if(mt.level>0||te.doc.direction=="rtl"){var ir=es(te,ve);Nt=Oe<0?ve.text.length-1:0;var hr=ja(te,ir,Nt).top;Nt=We(function(Br){return ja(te,ir,Br).top==hr},Oe<0==(mt.level==1)?mt.from:mt.to-1,Nt),Tt=="before"&&(Nt=ns(ve,Nt,1))}else Nt=Oe<0?mt.to:mt.from;return new qt(ge,Nt,Tt)}}return new qt(ge,Oe<0?ve.text.length:0,Oe<0?"before":"after")}function Pa(E,te,ve,ge){var Oe=Ht(te,E.doc.direction);if(!Oe)return Cl(te,ve,ge);ve.ch>=te.text.length?(ve.ch=te.text.length,ve.sticky="before"):ve.ch<=0&&(ve.ch=0,ve.sticky="after");var Je=at(Oe,ve.ch,ve.sticky),mt=Oe[Je];if(E.doc.direction=="ltr"&&mt.level%2==0&&(ge>0?mt.to>ve.ch:mt.from<ve.ch))return Cl(te,ve,ge);var Mt=function(fi,vi){return ns(te,fi instanceof qt?fi.ch:fi,vi)},Tt,Nt=function(fi){return E.options.lineWrapping?(Tt=Tt||es(E,te),Ul(E,te,Tt,fi)):{begin:0,end:te.text.length}},ir=Nt(ve.sticky=="before"?Mt(ve,-1):ve.ch);if(E.doc.direction=="rtl"||mt.level==1){var hr=mt.level==1==ge<0,Br=Mt(ve,hr?1:-1);if(Br!=null&&(hr?Br<=mt.to&&Br<=ir.end:Br>=mt.from&&Br>=ir.begin)){var Or=hr?"before":"after";return new qt(ve.line,Br,Or)}}var on=function(fi,vi,oi){for(var bi=function(ho,ys){return ys?new qt(ve.line,Mt(ho,1),"before"):new qt(ve.line,ho,"after")};fi>=0&&fi<Oe.length;fi+=vi){var zi=Oe[fi],Wi=vi>0==(zi.level!=1),Ma=Wi?oi.begin:Mt(oi.end,-1);if(zi.from<=Ma&&Ma<zi.to||(Ma=Wi?zi.from:Mt(zi.to,-1),oi.begin<=Ma&&Ma<oi.end))return bi(Ma,Wi)}},En=on(Je+ge,ge,ir);if(En)return En;var ei=ge>0?ir.end:Mt(ir.begin,-1);return ei!=null&&!(ge>0&&ei==te.text.length)&&(En=on(ge>0?0:Oe.length-1,ge,Nt(ei)),En)?En:null}var vs={selectAll:ms,singleSelection:function(E){return E.setSelection(E.getCursor("anchor"),E.getCursor("head"),rt)},killLine:function(E){return $s(E,function(te){if(te.empty()){var ve=Ut(E.doc,te.head.line).text.length;return te.head.ch==ve&&te.head.line<E.lastLine()?{from:te.head,to:qt(te.head.line+1,0)}:{from:te.head,to:qt(te.head.line,ve)}}else return{from:te.from(),to:te.to()}})},deleteLine:function(E){return $s(E,function(te){return{from:qt(te.from().line,0),to:ur(E.doc,qt(te.to().line+1,0))}})},delLineLeft:function(E){return $s(E,function(te){return{from:qt(te.from().line,0),to:te.from()}})},delWrappedLineLeft:function(E){return $s(E,function(te){var ve=E.charCoords(te.head,"div").top+5,ge=E.coordsChar({left:0,top:ve},"div");return{from:ge,to:te.from()}})},delWrappedLineRight:function(E){return $s(E,function(te){var ve=E.charCoords(te.head,"div").top+5,ge=E.coordsChar({left:E.display.lineDiv.offsetWidth+100,top:ve},"div");return{from:te.from(),to:ge}})},undo:function(E){return E.undo()},redo:function(E){return E.redo()},undoSelection:function(E){return E.undoSelection()},redoSelection:function(E){return E.redoSelection()},goDocStart:function(E){return E.extendSelection(qt(E.firstLine(),0))},goDocEnd:function(E){return E.extendSelection(qt(E.lastLine()))},goLineStart:function(E){return E.extendSelectionsBy(function(te){return El(E,te.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(E){return E.extendSelectionsBy(function(te){return Au(E,te.head)},{origin:"+move",bias:1})},goLineEnd:function(E){return E.extendSelectionsBy(function(te){return Ml(E,te.head.line)},{origin:"+move",bias:-1})},goLineRight:function(E){return E.extendSelectionsBy(function(te){var ve=E.cursorCoords(te.head,"div").top+5;return E.coordsChar({left:E.display.lineDiv.offsetWidth+100,top:ve},"div")},nt)},goLineLeft:function(E){return E.extendSelectionsBy(function(te){var ve=E.cursorCoords(te.head,"div").top+5;return E.coordsChar({left:0,top:ve},"div")},nt)},goLineLeftSmart:function(E){return E.extendSelectionsBy(function(te){var ve=E.cursorCoords(te.head,"div").top+5,ge=E.coordsChar({left:0,top:ve},"div");return ge.ch<E.getLine(ge.line).search(/\S/)?Au(E,te.head):ge},nt)},goLineUp:function(E){return E.moveV(-1,"line")},goLineDown:function(E){return E.moveV(1,"line")},goPageUp:function(E){return E.moveV(-1,"page")},goPageDown:function(E){return E.moveV(1,"page")},goCharLeft:function(E){return E.moveH(-1,"char")},goCharRight:function(E){return E.moveH(1,"char")},goColumnLeft:function(E){return E.moveH(-1,"column")},goColumnRight:function(E){return E.moveH(1,"column")},goWordLeft:function(E){return E.moveH(-1,"word")},goGroupRight:function(E){return E.moveH(1,"group")},goGroupLeft:function(E){return E.moveH(-1,"group")},goWordRight:function(E){return E.moveH(1,"word")},delCharBefore:function(E){return E.deleteH(-1,"codepoint")},delCharAfter:function(E){return E.deleteH(1,"char")},delWordBefore:function(E){return E.deleteH(-1,"word")},delWordAfter:function(E){return E.deleteH(1,"word")},delGroupBefore:function(E){return E.deleteH(-1,"group")},delGroupAfter:function(E){return E.deleteH(1,"group")},indentAuto:function(E){return E.indentSelection("smart")},indentMore:function(E){return E.indentSelection("add")},indentLess:function(E){return E.indentSelection("subtract")},insertTab:function(E){return E.replaceSelection(" ")},insertSoftTab:function(E){for(var te=[],ve=E.listSelections(),ge=E.options.tabSize,Oe=0;Oe<ve.length;Oe++){var Je=ve[Oe].from(),mt=Ge(E.getLine(Je.line),Je.ch,ge);te.push(Rt(ge-mt%ge))}E.replaceSelections(te)},defaultTab:function(E){E.somethingSelected()?E.indentSelection("add"):E.execCommand("insertTab")},transposeChars:function(E){return er(E,function(){for(var te=E.listSelections(),ve=[],ge=0;ge<te.length;ge++)if(te[ge].empty()){var Oe=te[ge].head,Je=Ut(E.doc,Oe.line).text;if(Je){if(Oe.ch==Je.length&&(Oe=new qt(Oe.line,Oe.ch-1)),Oe.ch>0)Oe=new qt(Oe.line,Oe.ch+1),E.replaceRange(Je.charAt(Oe.ch-1)+Je.charAt(Oe.ch-2),qt(Oe.line,Oe.ch-2),Oe,"+transpose");else if(Oe.line>E.doc.first){var mt=Ut(E.doc,Oe.line-1).text;mt&&(Oe=new qt(Oe.line,1),E.replaceRange(Je.charAt(0)+E.doc.lineSeparator()+mt.charAt(mt.length-1),qt(Oe.line-1,mt.length-1),Oe,"+transpose"))}}ve.push(new Qn(Oe,Oe))}E.setSelections(ve)})},newlineAndIndent:function(E){return er(E,function(){for(var te=E.listSelections(),ve=te.length-1;ve>=0;ve--)E.replaceRange(E.doc.lineSeparator(),te[ve].anchor,te[ve].head,"+input");te=E.listSelections();for(var ge=0;ge<te.length;ge++)E.indentLine(te[ge].from().line,null,!0);bc(E)})},openLine:function(E){return E.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(E){return E.toggleOverwrite()}};function El(E,te){var ve=Ut(E.doc,te),ge=li(ve);return ge!=ve&&(te=vr(ge)),Ea(!0,E,ge,te,1)}function Ml(E,te){var ve=Ut(E.doc,te),ge=ji(ve);return ge!=ve&&(te=vr(ge)),Ea(!0,E,ve,te,-1)}function Au(E,te){var ve=El(E,te.line),ge=Ut(E.doc,ve.line),Oe=Ht(ge,E.doc.direction);if(!Oe||Oe[0].level==0){var Je=Math.max(ve.ch,ge.text.search(/\S/)),mt=te.line==ve.line&&te.ch<=Je&&te.ch;return qt(ve.line,mt?0:Je,ve.sticky)}return ve}function Ao(E,te,ve){if(typeof te=="string"&&(te=vs[te],!te))return!1;E.display.input.ensurePolled();var ge=E.display.shift,Oe=!1;try{E.isReadOnly()&&(E.state.suppressEdits=!0),ve&&(E.display.shift=!1),Oe=te(E)!=ut}finally{E.display.shift=ge,E.state.suppressEdits=!1}return Oe}function nl(E,te,ve){for(var ge=0;ge<E.state.keyMaps.length;ge++){var Oe=Sl(te,E.state.keyMaps[ge],ve,E);if(Oe)return Oe}return E.options.extraKeys&&Sl(te,E.options.extraKeys,ve,E)||Sl(te,E.options.keyMap,ve,E)}var Ou=new Xe;function Jl(E,te,ve,ge){var Oe=E.state.keySeq;if(Oe){if(Hc(te))return"handled";if(/\'$/.test(te)?E.state.keySeq=null:Ou.set(50,function(){E.state.keySeq==Oe&&(E.state.keySeq=null,E.display.input.reset())}),nd(E,Oe+" "+te,ve,ge))return!0}return nd(E,te,ve,ge)}function nd(E,te,ve,ge){var Oe=nl(E,te,ge);return Oe=="multi"&&(E.state.keySeq=te),Oe=="handled"&&mi(E,"keyHandled",E,te,ve),(Oe=="handled"||Oe=="multi")&&(tr(ve),qc(E)),!!Oe}function Da(E,te){var ve=Fl(te,!0);return ve?te.shiftKey&&!E.state.keySeq?Jl(E,"Shift-"+ve,te,function(ge){return Ao(E,ge,!0)})||Jl(E,ve,te,function(ge){if(typeof ge=="string"?/^go[A-Z]/.test(ge):ge.motion)return Ao(E,ge)}):Jl(E,ve,te,function(ge){return Ao(E,ge)}):!1}function uu(E,te,ve){return Jl(E,"'"+ve+"'",te,function(ge){return Ao(E,ge,!0)})}var dc=null;function Du(E){var te=this;if(!(E.target&&E.target!=te.display.input.getField())&&(te.curOp.focus=Ie(),!dt(te,E))){me&&re<11&&E.keyCode==27&&(E.returnValue=!1);var ve=E.keyCode;te.display.shift=ve==16||E.shiftKey;var ge=Da(te,E);se&&(dc=ge?ve:null,!ge&&ve==88&&!Ln&&(xe?E.metaKey:E.ctrlKey)&&te.replaceSelection("",null,"cut")),Ye&&!xe&&!ge&&ve==46&&E.shiftKey&&!E.ctrlKey&&document.execCommand&&document.execCommand("cut"),ve==18&&!/\bCodeMirror-crosshair\b/.test(te.display.lineDiv.className)&&an(te)}}function an(E){var te=E.display.lineDiv;Ze(te,"CodeMirror-crosshair");function ve(ge){(ge.keyCode==18||!ge.altKey)&&(Ne(te,"CodeMirror-crosshair"),St(document,"keyup",ve),St(document,"mouseover",ve))}$t(document,"keyup",ve),$t(document,"mouseover",ve)}function pf(E){E.keyCode==16&&(this.doc.sel.shift=!1),dt(this,E)}function mf(E){var te=this;if(!(E.target&&E.target!=te.display.input.getField())&&!(Ts(te.display,E)||dt(te,E)||E.ctrlKey&&!E.altKey||xe&&E.metaKey)){var ve=E.keyCode,ge=E.charCode;if(se&&ve==dc){dc=null,tr(E);return}if(!(se&&(!E.which||E.which<10)&&Da(te,E))){var Oe=String.fromCharCode(ge==null?ve:ge);Oe!="\b"&&(uu(te,E,Oe)||te.display.input.onKeyPress(E))}}}var Dd=400,Id=function(E,te,ve){this.time=E,this.pos=te,this.button=ve};Id.prototype.compare=function(E,te,ve){return this.time+Dd>E&&kr(te,this.pos)==0&&ve==this.button};var fc,Iu;function ah(E,te){var ve=+new Date;return Iu&&Iu.compare(ve,E,te)?(fc=Iu=null,"triple"):fc&&fc.compare(ve,E,te)?(Iu=new Id(ve,E,te),fc=null,"double"):(fc=new Id(ve,E,te),Iu=null,"single")}function ws(E){var te=this,ve=te.display;if(!(dt(te,E)||ve.activeTouch&&ve.input.supportsTouch())){if(ve.input.ensurePolled(),ve.shift=E.shiftKey,Ts(ve,E)){z||(ve.scroller.draggable=!1,setTimeout(function(){return ve.scroller.draggable=!0},100));return}if(!Is(te,E)){var ge=Hs(te,E),Oe=Tr(E),Je=ge?ah(ge,Oe):"single";window.focus(),Oe==1&&te.state.selectingText&&te.state.selectingText(E),!(ge&&Cc(te,Oe,ge,Je,E))&&(Oe==1?ge?ad(te,ge,Je,E):jr(E)==ve.scroller&&tr(E):Oe==2?(ge&&xa(te.doc,ge),setTimeout(function(){return ve.input.focus()},20)):Oe==3&&(Le?te.display.input.onContextMenu(E):wu(te)))}}}function Cc(E,te,ve,ge,Oe){var Je="Click";return ge=="double"?Je="Double"+Je:ge=="triple"&&(Je="Triple"+Je),Je=(te==1?"Left":te==2?"Middle":"Right")+Je,Jl(E,jl(Je,Oe),Oe,function(mt){if(typeof mt=="string"&&(mt=vs[mt]),!mt)return!1;var Mt=!1;try{E.isReadOnly()&&(E.state.suppressEdits=!0),Mt=mt(E,ve)!=ut}finally{E.state.suppressEdits=!1}return Mt})}function id(E,te,ve){var ge=E.getOption("configureMouse"),Oe=ge?ge(E,te,ve):{};if(Oe.unit==null){var Je=Se?ve.shiftKey&&ve.metaKey:ve.altKey;Oe.unit=Je?"rectangle":te=="single"?"char":te=="double"?"word":"line"}return(Oe.extend==null||E.doc.extend)&&(Oe.extend=E.doc.extend||ve.shiftKey),Oe.addNew==null&&(Oe.addNew=xe?ve.metaKey:ve.ctrlKey),Oe.moveOnDrag==null&&(Oe.moveOnDrag=!(xe?ve.altKey:ve.ctrlKey)),Oe}function ad(E,te,ve,ge){me?setTimeout(it(zc,E),0):E.curOp.focus=Ie();var Oe=id(E,ve,ge),Je=E.doc.sel,mt;E.options.dragDrop&&Vr&&!E.isReadOnly()&&ve=="single"&&(mt=Je.contains(te))>-1&&(kr((mt=Je.ranges[mt]).from(),te)<0||te.xRel>0)&&(kr(mt.to(),te)>0||te.xRel<0)?oh(E,ge,te,Oe):Pd(E,ge,te,Oe)}function oh(E,te,ve,ge){var Oe=E.display,Je=!1,mt=Cr(E,function(Nt){z&&(Oe.scroller.draggable=!1),E.state.draggingText=!1,St(Oe.wrapper.ownerDocument,"mouseup",mt),St(Oe.wrapper.ownerDocument,"mousemove",Mt),St(Oe.scroller,"dragstart",Tt),St(Oe.scroller,"drop",mt),Je||(tr(Nt),ge.addNew||xa(E.doc,ve,null,null,ge.extend),z&&!pe||me&&re==9?setTimeout(function(){Oe.wrapper.ownerDocument.body.focus({preventScroll:!0}),Oe.input.focus()},20):Oe.input.focus())}),Mt=function(Nt){Je=Je||Math.abs(te.clientX-Nt.clientX)+Math.abs(te.clientY-Nt.clientY)>=10},Tt=function(){return Je=!0};z&&(Oe.scroller.draggable=!0),E.state.draggingText=mt,mt.copy=!ge.moveOnDrag,Oe.scroller.dragDrop&&Oe.scroller.dragDrop(),$t(Oe.wrapper.ownerDocument,"mouseup",mt),$t(Oe.wrapper.ownerDocument,"mousemove",Mt),$t(Oe.scroller,"dragstart",Tt),$t(Oe.scroller,"drop",mt),wu(E),setTimeout(function(){return Oe.input.focus()},20)}function gf(E,te,ve){if(ve=="char")return new Qn(te,te);if(ve=="word")return E.findWordAt(te);if(ve=="line")return new Qn(qt(te.line,0),ur(E.doc,qt(te.line+1,0)));var ge=ve(E,te);return new Qn(ge.from,ge.to)}function Pd(E,te,ve,ge){var Oe=E.display,Je=E.doc;tr(te);var mt,Mt,Tt=Je.sel,Nt=Tt.ranges;if(ge.addNew&&!ge.extend?(Mt=Je.sel.contains(ve),Mt>-1?mt=Nt[Mt]:mt=new Qn(ve,ve)):(mt=Je.sel.primary(),Mt=Je.sel.primIndex),ge.unit=="rectangle")ge.addNew||(mt=new Qn(ve,ve)),ve=Hs(E,te,!0,!0),Mt=-1;else{var ir=gf(E,ve,ge.unit);ge.extend?mt=yl(mt,ir.anchor,ir.head,ge.extend):mt=ir}ge.addNew?Mt==-1?(Mt=Nt.length,Ra(Je,Zi(E,Nt.concat([mt]),Mt),{scroll:!1,origin:"*mouse"})):Nt.length>1&&Nt[Mt].empty()&&ge.unit=="char"&&!ge.extend?(Ra(Je,Zi(E,Nt.slice(0,Mt).concat(Nt.slice(Mt+1)),0),{scroll:!1,origin:"*mouse"}),Tt=Je.sel):Ta(Je,Mt,mt,qe):(Mt=0,Ra(Je,new Ii([mt],0),qe),Tt=Je.sel);var hr=ve;function Br(oi){if(kr(hr,oi)!=0)if(hr=oi,ge.unit=="rectangle"){for(var bi=[],zi=E.options.tabSize,Wi=Ge(Ut(Je,ve.line).text,ve.ch,zi),Ma=Ge(Ut(Je,oi.line).text,oi.ch,zi),ho=Math.min(Wi,Ma),ys=Math.max(Wi,Ma),Po=Math.min(ve.line,oi.line),Zs=Math.min(E.lastLine(),Math.max(ve.line,oi.line));Po<=Zs;Po++){var Us=Ut(Je,Po).text,is=xt(Us,ho,zi);ho==ys?bi.push(new Qn(qt(Po,is),qt(Po,is))):Us.length>is&&bi.push(new Qn(qt(Po,is),qt(Po,xt(Us,ys,zi))))}bi.length||bi.push(new Qn(ve,ve)),Ra(Je,Zi(E,Tt.ranges.slice(0,Mt).concat(bi),Mt),{origin:"*mouse",scroll:!1}),E.scrollIntoView(oi)}else{var Vs=mt,la=gf(E,oi,ge.unit),$o=Vs.anchor,Lo;kr(la.anchor,$o)>0?(Lo=la.head,$o=or(Vs.from(),la.anchor)):(Lo=la.anchor,$o=lr(Vs.to(),la.head));var zo=Tt.ranges.slice(0);zo[Mt]=vf(E,new Qn(ur(Je,$o),Lo)),Ra(Je,Zi(E,zo,Mt),qe)}}var Or=Oe.wrapper.getBoundingClientRect(),on=0;function En(oi){var bi=++on,zi=Hs(E,oi,!0,ge.unit=="rectangle");if(zi)if(kr(zi,hr)!=0){E.curOp.focus=Ie(),Br(zi);var Wi=ts(Oe,Je);(zi.line>=Wi.to||zi.line<Wi.from)&&setTimeout(Cr(E,function(){on==bi&&En(oi)}),150)}else{var Ma=oi.clientY<Or.top?-20:oi.clientY>Or.bottom?20:0;Ma&&setTimeout(Cr(E,function(){on==bi&&(Oe.scroller.scrollTop+=Ma,En(oi))}),50)}}function ei(oi){E.state.selectingText=!1,on=1/0,oi&&(tr(oi),Oe.input.focus()),St(Oe.wrapper.ownerDocument,"mousemove",fi),St(Oe.wrapper.ownerDocument,"mouseup",vi),Je.history.lastSelOrigin=null}var fi=Cr(E,function(oi){oi.buttons===0||!Tr(oi)?ei(oi):En(oi)}),vi=Cr(E,ei);E.state.selectingText=vi,$t(Oe.wrapper.ownerDocument,"mousemove",fi),$t(Oe.wrapper.ownerDocument,"mouseup",vi)}function vf(E,te){var ve=te.anchor,ge=te.head,Oe=Ut(E.doc,ve.line);if(kr(ve,ge)==0&&ve.sticky==ge.sticky)return te;var Je=Ht(Oe);if(!Je)return te;var mt=at(Je,ve.ch,ve.sticky),Mt=Je[mt];if(Mt.from!=ve.ch&&Mt.to!=ve.ch)return te;var Tt=mt+(Mt.from==ve.ch==(Mt.level!=1)?0:1);if(Tt==0||Tt==Je.length)return te;var Nt;if(ge.line!=ve.line)Nt=(ge.line-ve.line)*(E.doc.direction=="ltr"?1:-1)>0;else{var ir=at(Je,ge.ch,ge.sticky),hr=ir-mt||(ge.ch-ve.ch)*(Mt.level==1?-1:1);ir==Tt-1||ir==Tt?Nt=hr<0:Nt=hr>0}var Br=Je[Tt+(Nt?-1:0)],Or=Nt==(Br.level==1),on=Or?Br.from:Br.to,En=Or?"after":"before";return ve.ch==on&&ve.sticky==En?te:new Qn(new qt(ve.line,on,En),ge)}function Pu(E,te,ve,ge){var Oe,Je;if(te.touches)Oe=te.touches[0].clientX,Je=te.touches[0].clientY;else try{Oe=te.clientX,Je=te.clientY}catch(Br){return!1}if(Oe>=Math.floor(E.display.gutters.getBoundingClientRect().right))return!1;ge&&tr(te);var mt=E.display,Mt=mt.lineDiv.getBoundingClientRect();if(Je>Mt.bottom||!zt(E,ve))return Er(te);Je-=Mt.top-mt.viewOffset;for(var Tt=0;Tt<E.display.gutterSpecs.length;++Tt){var Nt=mt.gutters.childNodes[Tt];if(Nt&&Nt.getBoundingClientRect().right>=Oe){var ir=Dr(E.doc,Je),hr=E.display.gutterSpecs[Tt];return ft(E,ve,E,ir,hr.className,te),Er(te)}}}function Is(E,te){return Pu(E,te,"gutterClick",!0)}function Ec(E,te){Ts(E.display,te)||yf(E,te)||dt(E,te,"contextmenu")||Le||E.display.input.onContextMenu(te)}function yf(E,te){return zt(E,"gutterContextMenu")?Pu(E,te,"gutterContextMenu",!1):!1}function Ld(E){E.display.wrapper.className=E.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+E.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ja(E)}var Mc={toString:function(){return"CodeMirror.Init"}},bf={},od={};function sh(E){var te=E.optionHandlers;function ve(ge,Oe,Je,mt){E.defaults[ge]=Oe,Je&&(te[ge]=mt?function(Mt,Tt,Nt){Nt!=Mc&&Je(Mt,Tt,Nt)}:Je)}E.defineOption=ve,E.Init=Mc,ve("value","",function(ge,Oe){return ge.setValue(Oe)},!0),ve("mode",null,function(ge,Oe){ge.doc.modeOption=Oe,go(ge)},!0),ve("indentUnit",2,go,!0),ve("indentWithTabs",!1),ve("smartIndent",!0),ve("tabSize",4,function(ge){ma(ge),Ja(ge),No(ge)},!0),ve("lineSeparator",null,function(ge,Oe){if(ge.doc.lineSep=Oe,!!Oe){var Je=[],mt=ge.doc.first;ge.doc.iter(function(Tt){for(var Nt=0;;){var ir=Tt.text.indexOf(Oe,Nt);if(ir==-1)break;Nt=ir+Oe.length,Je.push(qt(mt,ir))}mt++});for(var Mt=Je.length-1;Mt>=0;Mt--)Nl(ge.doc,Oe,Je[Mt],qt(Je[Mt].line,Je[Mt].ch+Oe.length))}}),ve("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ge,Oe,Je){ge.state.specialChars=new RegExp(Oe.source+(Oe.test(" ")?"":"| "),"g"),Je!=Mc&&ge.refresh()}),ve("specialCharPlaceholder",Na,function(ge){return ge.refresh()},!0),ve("electricChars",!0),ve("inputStyle",he?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ve("spellcheck",!1,function(ge,Oe){return ge.getInputField().spellcheck=Oe},!0),ve("autocorrect",!1,function(ge,Oe){return ge.getInputField().autocorrect=Oe},!0),ve("autocapitalize",!1,function(ge,Oe){return ge.getInputField().autocapitalize=Oe},!0),ve("rtlMoveVisually",!we),ve("wholeLineUpdateBefore",!0),ve("theme","default",function(ge){Ld(ge),si(ge)},!0),ve("keyMap","default",function(ge,Oe,Je){var mt=gs(Oe),Mt=Je!=Mc&&gs(Je);Mt&&Mt.detach&&Mt.detach(ge,mt),mt.attach&&mt.attach(ge,Mt||null)}),ve("extraKeys",null),ve("configureMouse",null),ve("lineWrapping",!1,xf,!0),ve("gutters",[],function(ge,Oe){ge.display.gutterSpecs=$i(Oe,ge.options.lineNumbers),si(ge)},!0),ve("fixedGutter",!0,function(ge,Oe){ge.display.gutters.style.left=Oe?Za(ge.display)+"px":"0",ge.refresh()},!0),ve("coverGutterNextToScrollbar",!1,function(ge){return Gl(ge)},!0),ve("scrollbarStyle","native",function(ge){Mu(ge),Gl(ge),ge.display.scrollbars.setScrollTop(ge.doc.scrollTop),ge.display.scrollbars.setScrollLeft(ge.doc.scrollLeft)},!0),ve("lineNumbers",!1,function(ge,Oe){ge.display.gutterSpecs=$i(ge.options.gutters,Oe),si(ge)},!0),ve("firstLineNumber",1,si,!0),ve("lineNumberFormatter",function(ge){return ge},si,!0),ve("showCursorWhenSelecting",!1,yc,!0),ve("resetSelectionOnContextMenu",!0),ve("lineWiseCopyCut",!0),ve("pasteLinesPerSelection",!0),ve("selectionsMayTouch",!1),ve("readOnly",!1,function(ge,Oe){Oe=="nocursor"&&(ac(ge),ge.display.input.blur()),ge.display.input.readOnlyChanged(Oe)}),ve("screenReaderLabel",null,function(ge,Oe){Oe=Oe===""?null:Oe,ge.display.input.screenReaderLabelChanged(Oe)}),ve("disableInput",!1,function(ge,Oe){Oe||ge.display.input.reset()},!0),ve("dragDrop",!0,lh),ve("allowDropFileTypes",null),ve("cursorBlinkRate",530),ve("cursorScrollMargin",0),ve("cursorHeight",1,yc,!0),ve("singleCursorHeightPerLine",!0,yc,!0),ve("workTime",100),ve("workDelay",100),ve("flattenSpans",!0,ma,!0),ve("addModeClass",!1,ma,!0),ve("pollInterval",100),ve("undoDepth",200,function(ge,Oe){return ge.doc.history.undoDepth=Oe}),ve("historyEventDelay",1250),ve("viewportMargin",10,function(ge){return ge.refresh()},!0),ve("maxHighlightLength",1e4,ma,!0),ve("moveInputWithCursor",!0,function(ge,Oe){Oe||ge.display.input.resetPosition()}),ve("tabindex",null,function(ge,Oe){return ge.display.input.getField().tabIndex=Oe||""}),ve("autofocus",null),ve("direction","ltr",function(ge,Oe){return ge.doc.setDirection(Oe)},!0),ve("phrases",null)}function lh(E,te,ve){var ge=ve&&ve!=Mc;if(!te!=!ge){var Oe=E.display.dragFunctions,Je=te?$t:St;Je(E.display.scroller,"dragstart",Oe.start),Je(E.display.scroller,"dragenter",Oe.enter),Je(E.display.scroller,"dragover",Oe.over),Je(E.display.scroller,"dragleave",Oe.leave),Je(E.display.scroller,"drop",Oe.drop)}}function xf(E){E.options.lineWrapping?(Ze(E.display.wrapper,"CodeMirror-wrap"),E.display.sizer.style.minWidth="",E.display.sizerWidth=null):(Ne(E.display.wrapper,"CodeMirror-wrap"),bn(E)),Uo(E),No(E),Ja(E),setTimeout(function(){return Gl(E)},100)}function ta(E,te){var ve=this;if(!(this instanceof ta))return new ta(E,te);this.options=te=te?ht(te):{},ht(bf,te,!1);var ge=te.value;typeof ge=="string"?ge=new To(ge,te.mode,null,te.lineSeparator,te.direction):te.mode&&(ge.modeOption=te.mode),this.doc=ge;var Oe=new ta.inputStyles[te.inputStyle](this),Je=this.display=new yi(E,ge,Oe,te);Je.wrapper.CodeMirror=this,Ld(this),te.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Mu(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 Xe,keySeq:null,specialChars:null},te.autofocus&&!he&&Je.input.focus(),me&&re<11&&setTimeout(function(){return ve.display.input.reset(!0)},20),ch(this),Tu(),bs(this),this.curOp.forceUpdate=!0,Pi(this,ge),te.autofocus&&!he||this.hasFocus()?setTimeout(function(){ve.hasFocus()&&!ve.state.focused&&Su(ve)},20):ac(this);for(var mt in od)od.hasOwnProperty(mt)&&od[mt](this,te[mt],Mc);pi(this),te.finishInit&&te.finishInit(this);for(var Mt=0;Mt<Rd.length;++Mt)Rd[Mt](this);Bl(this),z&&te.lineWrapping&&getComputedStyle(Je.lineDiv).textRendering=="optimizelegibility"&&(Je.lineDiv.style.textRendering="auto")}ta.defaults=bf,ta.optionHandlers=od;function ch(E){var te=E.display;$t(te.scroller,"mousedown",Cr(E,ws)),me&&re<11?$t(te.scroller,"dblclick",Cr(E,function(Tt){if(!dt(E,Tt)){var Nt=Hs(E,Tt);if(!(!Nt||Is(E,Tt)||Ts(E.display,Tt))){tr(Tt);var ir=E.findWordAt(Nt);xa(E.doc,ir.anchor,ir.head)}}})):$t(te.scroller,"dblclick",function(Tt){return dt(E,Tt)||tr(Tt)}),$t(te.scroller,"contextmenu",function(Tt){return Ec(E,Tt)}),$t(te.input.getField(),"contextmenu",function(Tt){te.scroller.contains(Tt.target)||Ec(E,Tt)});var ve,ge={end:0};function Oe(){te.activeTouch&&(ve=setTimeout(function(){return te.activeTouch=null},1e3),ge=te.activeTouch,ge.end=+new Date)}function Je(Tt){if(Tt.touches.length!=1)return!1;var Nt=Tt.touches[0];return Nt.radiusX<=1&&Nt.radiusY<=1}function mt(Tt,Nt){if(Nt.left==null)return!0;var ir=Nt.left-Tt.left,hr=Nt.top-Tt.top;return ir*ir+hr*hr>20*20}$t(te.scroller,"touchstart",function(Tt){if(!dt(E,Tt)&&!Je(Tt)&&!Is(E,Tt)){te.input.ensurePolled(),clearTimeout(ve);var Nt=+new Date;te.activeTouch={start:Nt,moved:!1,prev:Nt-ge.end<=300?ge:null},Tt.touches.length==1&&(te.activeTouch.left=Tt.touches[0].pageX,te.activeTouch.top=Tt.touches[0].pageY)}}),$t(te.scroller,"touchmove",function(){te.activeTouch&&(te.activeTouch.moved=!0)}),$t(te.scroller,"touchend",function(Tt){var Nt=te.activeTouch;if(Nt&&!Ts(te,Tt)&&Nt.left!=null&&!Nt.moved&&new Date-Nt.start<300){var ir=E.coordsChar(te.activeTouch,"page"),hr;!Nt.prev||mt(Nt,Nt.prev)?hr=new Qn(ir,ir):!Nt.prev.prev||mt(Nt,Nt.prev.prev)?hr=E.findWordAt(ir):hr=new Qn(qt(ir.line,0),ur(E.doc,qt(ir.line+1,0))),E.setSelection(hr.anchor,hr.head),E.focus(),tr(Tt)}Oe()}),$t(te.scroller,"touchcancel",Oe),$t(te.scroller,"scroll",function(){te.scroller.clientHeight&&(Vl(E,te.scroller.scrollTop),Ll(E,te.scroller.scrollLeft,!0),ft(E,"scroll",E))}),$t(te.scroller,"mousewheel",function(Tt){return aa(E,Tt)}),$t(te.scroller,"DOMMouseScroll",function(Tt){return aa(E,Tt)}),$t(te.wrapper,"scroll",function(){return te.wrapper.scrollTop=te.wrapper.scrollLeft=0}),te.dragFunctions={enter:function(Tt){dt(E,Tt)||zr(Tt)},over:function(Tt){dt(E,Tt)||(ou(E,Tt),zr(Tt))},start:function(Tt){return au(E,Tt)},drop:Cr(E,td),leave:function(Tt){dt(E,Tt)||wc(E)}};var Mt=te.input.getField();$t(Mt,"keyup",function(Tt){return pf.call(E,Tt)}),$t(Mt,"keydown",Cr(E,Du)),$t(Mt,"keypress",Cr(E,mf)),$t(Mt,"focus",function(Tt){return Su(E,Tt)}),$t(Mt,"blur",function(Tt){return ac(E,Tt)})}var Rd=[];ta.defineInitHook=function(E){return Rd.push(E)};function $l(E,te,ve,ge){var Oe=E.doc,Je;ve==null&&(ve="add"),ve=="smart"&&(Oe.mode.indent?Je=br(E,te).state:ve="prev");var mt=E.options.tabSize,Mt=Ut(Oe,te),Tt=Ge(Mt.text,null,mt);Mt.stateAfter&&(Mt.stateAfter=null);var Nt=Mt.text.match(/^\s*/)[0],ir;if(!ge&&!/\S/.test(Mt.text))ir=0,ve="not";else if(ve=="smart"&&(ir=Oe.mode.indent(Je,Mt.text.slice(Nt.length),Mt.text),ir==ut||ir>150)){if(!ge)return;ve="prev"}ve=="prev"?te>Oe.first?ir=Ge(Ut(Oe,te-1).text,null,mt):ir=0:ve=="add"?ir=Tt+E.options.indentUnit:ve=="subtract"?ir=Tt-E.options.indentUnit:typeof ve=="number"&&(ir=Tt+ve),ir=Math.max(0,ir);var hr="",Br=0;if(E.options.indentWithTabs)for(var Or=Math.floor(ir/mt);Or;--Or)Br+=mt,hr+=" ";if(Br<ir&&(hr+=Rt(ir-Br)),hr!=Nt)return Nl(Oe,hr,qt(te,0),qt(te,Nt.length),"+input"),Mt.stateAfter=null,!0;for(var on=0;on<Oe.sel.ranges.length;on++){var En=Oe.sel.ranges[on];if(En.head.line==te&&En.head.ch<Nt.length){var ei=qt(te,Nt.length);Ta(Oe,on,new Qn(ei,ei));break}}}var zl=null;function _c(E){zl=E}function Bd(E,te,ve,ge,Oe){var Je=E.doc;E.display.shift=!1,ge||(ge=Je.sel);var mt=+new Date-200,Mt=Oe=="paste"||E.state.pasteIncoming>mt,Tt=_n(te),Nt=null;if(Mt&&ge.ranges.length>1)if(zl&&zl.text.join(`
|
|
|
`)==te){if(ge.ranges.length%zl.text.length==0){Nt=[];for(var ir=0;ir<zl.text.length;ir++)Nt.push(Je.splitLines(zl.text[ir]))}}else Tt.length==ge.ranges.length&&E.options.pasteLinesPerSelection&&(Nt=lt(Tt,function(fi){return[fi]}));for(var hr=E.curOp.updateInput,Br=ge.ranges.length-1;Br>=0;Br--){var Or=ge.ranges[Br],on=Or.from(),En=Or.to();Or.empty()&&(ve&&ve>0?on=qt(on.line,on.ch-ve):E.state.overwrite&&!Mt?En=qt(En.line,Math.min(Ut(Je,En.line).text.length,En.ch+Ot(Tt).length)):Mt&&zl&&zl.lineWise&&zl.text.join(`
|
|
|
`)==Tt.join(`
|
|
|
`)&&(on=En=qt(on.line,0)));var ei={from:on,to:En,text:Nt?Nt[Br%Nt.length]:Tt,origin:Oe||(Mt?"paste":E.state.cutIncoming>mt?"cut":"+input")};io(E.doc,ei),mi(E,"inputRead",E,ei)}te&&!Mt&&jd(E,te),bc(E),E.curOp.updateInput<2&&(E.curOp.updateInput=hr),E.curOp.typing=!0,E.state.pasteIncoming=E.state.cutIncoming=-1}function Nd(E,te){var ve=E.clipboardData&&E.clipboardData.getData("Text");if(ve)return E.preventDefault(),!te.isReadOnly()&&!te.options.disableInput&&er(te,function(){return Bd(te,ve,0,null,"paste")}),!0}function jd(E,te){if(!(!E.options.electricChars||!E.options.smartIndent))for(var ve=E.doc.sel,ge=ve.ranges.length-1;ge>=0;ge--){var Oe=ve.ranges[ge];if(!(Oe.head.ch>100||ge&&ve.ranges[ge-1].head.line==Oe.head.line)){var Je=E.getModeAt(Oe.head),mt=!1;if(Je.electricChars){for(var Mt=0;Mt<Je.electricChars.length;Mt++)if(te.indexOf(Je.electricChars.charAt(Mt))>-1){mt=$l(E,Oe.head.line,"smart");break}}else Je.electricInput&&Je.electricInput.test(Ut(E.doc,Oe.head.line).text.slice(0,Oe.head.ch))&&(mt=$l(E,Oe.head.line,"smart"));mt&&mi(E,"electricInput",E,Oe.head.line)}}}function du(E){for(var te=[],ve=[],ge=0;ge<E.doc.sel.ranges.length;ge++){var Oe=E.doc.sel.ranges[ge].head.line,Je={anchor:qt(Oe,0),head:qt(Oe+1,0)};ve.push(Je),te.push(E.getRange(Je.anchor,Je.head))}return{text:te,ranges:ve}}function wf(E,te,ve,ge){E.setAttribute("autocorrect",ve?"":"off"),E.setAttribute("autocapitalize",ge?"":"off"),E.setAttribute("spellcheck",!!te)}function Fd(){var E=Ee("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),te=Ee("div",[E],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return z?E.style.width="1000px":E.setAttribute("wrap","off"),ue&&(E.style.border="1px solid black"),wf(E),te}function $d(E){var te=E.optionHandlers,ve=E.helpers={};E.prototype={constructor:E,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ge,Oe){var Je=this.options,mt=Je[ge];Je[ge]==Oe&&ge!="mode"||(Je[ge]=Oe,te.hasOwnProperty(ge)&&Cr(this,te[ge])(this,Oe,mt),ft(this,"optionChange",this,ge))},getOption:function(ge){return this.options[ge]},getDoc:function(){return this.doc},addKeyMap:function(ge,Oe){this.state.keyMaps[Oe?"push":"unshift"](gs(ge))},removeKeyMap:function(ge){for(var Oe=this.state.keyMaps,Je=0;Je<Oe.length;++Je)if(Oe[Je]==ge||Oe[Je].name==ge)return Oe.splice(Je,1),!0},addOverlay:Sr(function(ge,Oe){var Je=ge.token?ge:E.getMode(this.options,ge);if(Je.startState)throw new Error("Overlays may not be stateful.");Ue(this.state.overlays,{mode:Je,modeSpec:ge,opaque:Oe&&Oe.opaque,priority:Oe&&Oe.priority||0},function(mt){return mt.priority}),this.state.modeGen++,No(this)}),removeOverlay:Sr(function(ge){for(var Oe=this.state.overlays,Je=0;Je<Oe.length;++Je){var mt=Oe[Je].modeSpec;if(mt==ge||typeof ge=="string"&&mt.name==ge){Oe.splice(Je,1),this.state.modeGen++,No(this);return}}}),indentLine:Sr(function(ge,Oe,Je){typeof Oe!="string"&&typeof Oe!="number"&&(Oe==null?Oe=this.options.smartIndent?"smart":"prev":Oe=Oe?"add":"subtract"),Ir(this.doc,ge)&&$l(this,ge,Oe,Je)}),indentSelection:Sr(function(ge){for(var Oe=this.doc.sel.ranges,Je=-1,mt=0;mt<Oe.length;mt++){var Mt=Oe[mt];if(Mt.empty())Mt.head.line>Je&&($l(this,Mt.head.line,ge,!0),Je=Mt.head.line,mt==this.doc.sel.primIndex&&bc(this));else{var Tt=Mt.from(),Nt=Mt.to(),ir=Math.max(Je,Tt.line);Je=Math.min(this.lastLine(),Nt.line-(Nt.ch?0:1))+1;for(var hr=ir;hr<Je;++hr)$l(this,hr,ge);var Br=this.doc.sel.ranges;Tt.ch==0&&Oe.length==Br.length&&Br[mt].from().ch>0&&Ta(this.doc,mt,new Qn(Tt,Br[mt].to()),rt)}}}),getTokenAt:function(ge,Oe){return gn(this,ge,Oe)},getLineTokens:function(ge,Oe){return gn(this,qt(ge),Oe,!0)},getTokenTypeAt:function(ge){ge=ur(this.doc,ge);var Oe=fr(this,Ut(this.doc,ge.line)),Je=0,mt=(Oe.length-1)/2,Mt=ge.ch,Tt;if(Mt==0)Tt=Oe[2];else for(;;){var Nt=Je+mt>>1;if((Nt?Oe[Nt*2-1]:0)>=Mt)mt=Nt;else if(Oe[Nt*2+1]<Mt)Je=Nt+1;else{Tt=Oe[Nt*2+2];break}}var ir=Tt?Tt.indexOf("overlay "):-1;return ir<0?Tt:ir==0?null:Tt.slice(0,ir-1)},getModeAt:function(ge){var Oe=this.doc.mode;return Oe.innerMode?E.innerMode(Oe,this.getTokenAt(ge).state).mode:Oe},getHelper:function(ge,Oe){return this.getHelpers(ge,Oe)[0]},getHelpers:function(ge,Oe){var Je=[];if(!ve.hasOwnProperty(Oe))return Je;var mt=ve[Oe],Mt=this.getModeAt(ge);if(typeof Mt[Oe]=="string")mt[Mt[Oe]]&&Je.push(mt[Mt[Oe]]);else if(Mt[Oe])for(var Tt=0;Tt<Mt[Oe].length;Tt++){var Nt=mt[Mt[Oe][Tt]];Nt&&Je.push(Nt)}else Mt.helperType&&mt[Mt.helperType]?Je.push(mt[Mt.helperType]):mt[Mt.name]&&Je.push(mt[Mt.name]);for(var ir=0;ir<mt._global.length;ir++){var hr=mt._global[ir];hr.pred(Mt,this)&&ct(Je,hr.val)==-1&&Je.push(hr.val)}return Je},getStateAfter:function(ge,Oe){var Je=this.doc;return ge=_r(Je,ge==null?Je.first+Je.size-1:ge),br(this,ge+1,Oe).state},cursorCoords:function(ge,Oe){var Je,mt=this.doc.sel.primary();return ge==null?Je=mt.head:typeof ge=="object"?Je=ur(this.doc,ge):Je=ge?mt.from():mt.to(),Zo(this,Je,Oe||"page")},charCoords:function(ge,Oe){return Os(this,ur(this.doc,ge),Oe||"page")},coordsChar:function(ge,Oe){return ge=Rs(this,ge,Oe||"page"),gl(this,ge.left,ge.top)},lineAtHeight:function(ge,Oe){return ge=Rs(this,{top:ge,left:0},Oe||"page").top,Dr(this.doc,ge+this.display.viewOffset)},heightAtLine:function(ge,Oe,Je){var mt=!1,Mt;if(typeof ge=="number"){var Tt=this.doc.first+this.doc.size-1;ge<this.doc.first?ge=this.doc.first:ge>Tt&&(ge=Tt,mt=!0),Mt=Ut(this.doc,ge)}else Mt=ge;return Wo(this,Mt,{top:0,left:0},Oe||"page",Je||mt).top+(mt?this.doc.height-Sn(Mt):0)},defaultTextHeight:function(){return vl(this.display)},defaultCharWidth:function(){return Oa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ge,Oe,Je,mt,Mt){var Tt=this.display;ge=Zo(this,ur(this.doc,ge));var Nt=ge.bottom,ir=ge.left;if(Oe.style.position="absolute",Oe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Oe),Tt.sizer.appendChild(Oe),mt=="over")Nt=ge.top;else if(mt=="above"||mt=="near"){var hr=Math.max(Tt.wrapper.clientHeight,this.doc.height),Br=Math.max(Tt.sizer.clientWidth,Tt.lineSpace.clientWidth);(mt=="above"||ge.bottom+Oe.offsetHeight>hr)&&ge.top>Oe.offsetHeight?Nt=ge.top-Oe.offsetHeight:ge.bottom+Oe.offsetHeight<=hr&&(Nt=ge.bottom),ir+Oe.offsetWidth>Br&&(ir=Br-Oe.offsetWidth)}Oe.style.top=Nt+"px",Oe.style.left=Oe.style.right="",Mt=="right"?(ir=Tt.sizer.clientWidth-Oe.offsetWidth,Oe.style.right="0px"):(Mt=="left"?ir=0:Mt=="middle"&&(ir=(Tt.sizer.clientWidth-Oe.offsetWidth)/2),Oe.style.left=ir+"px"),Je&&Xu(this,{left:ir,top:Nt,right:ir+Oe.offsetWidth,bottom:Nt+Oe.offsetHeight})},triggerOnKeyDown:Sr(Du),triggerOnKeyPress:Sr(mf),triggerOnKeyUp:pf,triggerOnMouseDown:Sr(ws),execCommand:function(ge){if(vs.hasOwnProperty(ge))return vs[ge].call(null,this)},triggerElectric:Sr(function(ge){jd(this,ge)}),findPosH:function(ge,Oe,Je,mt){var Mt=1;Oe<0&&(Mt=-1,Oe=-Oe);for(var Tt=ur(this.doc,ge),Nt=0;Nt<Oe&&(Tt=sd(this.doc,Tt,Mt,Je,mt),!Tt.hitSide);++Nt);return Tt},moveH:Sr(function(ge,Oe){var Je=this;this.extendSelectionsBy(function(mt){return Je.display.shift||Je.doc.extend||mt.empty()?sd(Je.doc,mt.head,ge,Oe,Je.options.rtlMoveVisually):ge<0?mt.from():mt.to()},nt)}),deleteH:Sr(function(ge,Oe){var Je=this.doc.sel,mt=this.doc;Je.somethingSelected()?mt.replaceSelection("",null,"+delete"):$s(this,function(Mt){var Tt=sd(mt,Mt.head,ge,Oe,!1);return ge<0?{from:Tt,to:Mt.head}:{from:Mt.head,to:Tt}})}),findPosV:function(ge,Oe,Je,mt){var Mt=1,Tt=mt;Oe<0&&(Mt=-1,Oe=-Oe);for(var Nt=ur(this.doc,ge),ir=0;ir<Oe;++ir){var hr=Zo(this,Nt,"div");if(Tt==null?Tt=hr.left:hr.left=Tt,Nt=Sf(this,hr,Mt,Je),Nt.hitSide)break}return Nt},moveV:Sr(function(ge,Oe){var Je=this,mt=this.doc,Mt=[],Tt=!this.display.shift&&!mt.extend&&mt.sel.somethingSelected();if(mt.extendSelectionsBy(function(ir){if(Tt)return ge<0?ir.from():ir.to();var hr=Zo(Je,ir.head,"div");ir.goalColumn!=null&&(hr.left=ir.goalColumn),Mt.push(hr.left);var Br=Sf(Je,hr,ge,Oe);return Oe=="page"&&ir==mt.sel.primary()&&ru(Je,Os(Je,Br,"div").top-hr.top),Br},nt),Mt.length)for(var Nt=0;Nt<mt.sel.ranges.length;Nt++)mt.sel.ranges[Nt].goalColumn=Mt[Nt]}),findWordAt:function(ge){var Oe=this.doc,Je=Ut(Oe,ge.line).text,mt=ge.ch,Mt=ge.ch;if(Je){var Tt=this.getHelper(ge,"wordChars");(ge.sticky=="before"||Mt==Je.length)&&mt?--mt:++Mt;for(var Nt=Je.charAt(mt),ir=He(Nt,Tt)?function(hr){return He(hr,Tt)}:/\s/.test(Nt)?function(hr){return/\s/.test(hr)}:function(hr){return!/\s/.test(hr)&&!He(hr)};mt>0&&ir(Je.charAt(mt-1));)--mt;for(;Mt<Je.length&&ir(Je.charAt(Mt));)++Mt}return new Qn(qt(ge.line,mt),qt(ge.line,Mt))},toggleOverwrite:function(ge){ge!=null&&ge==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ze(this.display.cursorDiv,"CodeMirror-overwrite"):Ne(this.display.cursorDiv,"CodeMirror-overwrite"),ft(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ie()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Sr(function(ge,Oe){sc(this,ge,Oe)}),getScrollInfo:function(){var ge=this.display.scroller;return{left:ge.scrollLeft,top:ge.scrollTop,height:ge.scrollHeight-Ro(this)-this.display.barHeight,width:ge.scrollWidth-Ro(this)-this.display.barWidth,clientHeight:zs(this),clientWidth:So(this)}},scrollIntoView:Sr(function(ge,Oe){ge==null?(ge={from:this.doc.sel.primary().head,to:null},Oe==null&&(Oe=this.options.cursorScrollMargin)):typeof ge=="number"?ge={from:qt(ge,0),to:null}:ge.from==null&&(ge={from:ge,to:null}),ge.to||(ge.to=ge.from),ge.margin=Oe||0,ge.from.line!=null?Od(this,ge):Yu(this,ge.from,ge.to,ge.margin)}),setSize:Sr(function(ge,Oe){var Je=this,mt=function(Tt){return typeof Tt=="number"||/^\d+$/.test(String(Tt))?Tt+"px":Tt};ge!=null&&(this.display.wrapper.style.width=mt(ge)),Oe!=null&&(this.display.wrapper.style.height=mt(Oe)),this.options.lineWrapping&&uo(this);var Mt=this.display.viewFrom;this.doc.iter(Mt,this.display.viewTo,function(Tt){if(Tt.widgets){for(var Nt=0;Nt<Tt.widgets.length;Nt++)if(Tt.widgets[Nt].noHScroll){Js(Je,Mt,"widget");break}}++Mt}),this.curOp.forceUpdate=!0,ft(this,"refresh",this)}),operation:function(ge){return er(this,ge)},startOperation:function(){return bs(this)},endOperation:function(){return Bl(this)},refresh:Sr(function(){var ge=this.display.cachedTextHeight;No(this),this.curOp.forceUpdate=!0,Ja(this),sc(this,this.doc.scrollLeft,this.doc.scrollTop),ii(this.display),(ge==null||Math.abs(ge-vl(this.display))>.5||this.options.lineWrapping)&&Uo(this),ft(this,"refresh",this)}),swapDoc:Sr(function(ge){var Oe=this.doc;return Oe.cm=null,this.state.selectingText&&this.state.selectingText(),Pi(this,ge),Ja(this),this.display.input.reset(),sc(this,ge.scrollLeft,ge.scrollTop),this.curOp.forceScroll=!0,mi(this,"swapDoc",this,Oe),Oe}),phrase:function(ge){var Oe=this.options.phrases;return Oe&&Object.prototype.hasOwnProperty.call(Oe,ge)?Oe[ge]:ge},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}},Zt(E),E.registerHelper=function(ge,Oe,Je){ve.hasOwnProperty(ge)||(ve[ge]=E[ge]={_global:[]}),ve[ge][Oe]=Je},E.registerGlobalHelper=function(ge,Oe,Je,mt){E.registerHelper(ge,Oe,mt),ve[ge]._global.push({pred:Je,val:mt})}}function sd(E,te,ve,ge,Oe){var Je=te,mt=ve,Mt=Ut(E,te.line),Tt=Oe&&E.direction=="rtl"?-ve:ve;function Nt(){var vi=te.line+Tt;return vi<E.first||vi>=E.first+E.size?!1:(te=new qt(vi,te.ch,te.sticky),Mt=Ut(E,vi))}function ir(vi){var oi;if(ge=="codepoint"){var bi=Mt.text.charCodeAt(te.ch+(ge>0?0:-1));isNaN(bi)?oi=null:oi=new qt(te.line,Math.max(0,Math.min(Mt.text.length,te.ch+ve*(bi>=55296&&bi<56320?2:1))),-ve)}else Oe?oi=Pa(E.cm,Mt,te,ve):oi=Cl(Mt,te,ve);if(oi==null)if(!vi&&Nt())te=Ea(Oe,E.cm,Mt,te.line,Tt);else return!1;else te=oi;return!0}if(ge=="char"||ge=="codepoint")ir();else if(ge=="column")ir(!0);else if(ge=="word"||ge=="group")for(var hr=null,Br=ge=="group",Or=E.cm&&E.cm.getHelper(te,"wordChars"),on=!0;!(ve<0&&!ir(!on));on=!1){var En=Mt.text.charAt(te.ch)||`
|
|
|
`,ei=He(En,Or)?"w":Br&&En==`
|
|
|
`?"n":!Br||/\s/.test(En)?null:"p";if(Br&&!on&&!ei&&(ei="s"),hr&&hr!=ei){ve<0&&(ve=1,ir(),te.sticky="after");break}if(ei&&(hr=ei),ve>0&&!ir(!on))break}var fi=tl(E,te,Je,mt,!0);return Xt(Je,fi)&&(fi.hitSide=!0),fi}function Sf(E,te,ve,ge){var Oe=E.doc,Je=te.left,mt;if(ge=="page"){var Mt=Math.min(E.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Tt=Math.max(Mt-.5*vl(E.display),3);mt=(ve>0?te.bottom:te.top)+ve*Tt}else ge=="line"&&(mt=ve>0?te.bottom+3:te.top-3);for(var Nt;Nt=gl(E,Je,mt),!!Nt.outside;){if(ve<0?mt<=0:mt>=Oe.height){Nt.hitSide=!0;break}mt+=ve*5}return Nt}var lo=function(E){this.cm=E,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Xe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};lo.prototype.init=function(E){var te=this,ve=this,ge=ve.cm,Oe=ve.div=E.lineDiv;wf(Oe,ge.options.spellcheck,ge.options.autocorrect,ge.options.autocapitalize);function Je(Mt){for(var Tt=Mt.target;Tt;Tt=Tt.parentNode){if(Tt==Oe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Tt.className))break}return!1}$t(Oe,"paste",function(Mt){!Je(Mt)||dt(ge,Mt)||Nd(Mt,ge)||re<=11&&setTimeout(Cr(ge,function(){return te.updateFromDOM()}),20)}),$t(Oe,"compositionstart",function(Mt){te.composing={data:Mt.data,done:!1}}),$t(Oe,"compositionupdate",function(Mt){te.composing||(te.composing={data:Mt.data,done:!1})}),$t(Oe,"compositionend",function(Mt){te.composing&&(Mt.data!=te.composing.data&&te.readFromDOMSoon(),te.composing.done=!0)}),$t(Oe,"touchstart",function(){return ve.forceCompositionEnd()}),$t(Oe,"input",function(){te.composing||te.readFromDOMSoon()});function mt(Mt){if(!(!Je(Mt)||dt(ge,Mt))){if(ge.somethingSelected())_c({lineWise:!1,text:ge.getSelections()}),Mt.type=="cut"&&ge.replaceSelection("",null,"cut");else if(ge.options.lineWiseCopyCut){var Tt=du(ge);_c({lineWise:!0,text:Tt.text}),Mt.type=="cut"&&ge.operation(function(){ge.setSelections(Tt.ranges,0,rt),ge.replaceSelection("",null,"cut")})}else return;if(Mt.clipboardData){Mt.clipboardData.clearData();var Nt=zl.text.join(`
|
|
|
`);if(Mt.clipboardData.setData("Text",Nt),Mt.clipboardData.getData("Text")==Nt){Mt.preventDefault();return}}var ir=Fd(),hr=ir.firstChild;ge.display.lineSpace.insertBefore(ir,ge.display.lineSpace.firstChild),hr.value=zl.text.join(`
|
|
|
`);var Br=document.activeElement;tt(hr),setTimeout(function(){ge.display.lineSpace.removeChild(ir),Br.focus(),Br==Oe&&ve.showPrimarySelection()},50)}}$t(Oe,"copy",mt),$t(Oe,"cut",mt)},lo.prototype.screenReaderLabelChanged=function(E){E?this.div.setAttribute("aria-label",E):this.div.removeAttribute("aria-label")},lo.prototype.prepareSelection=function(){var E=Gu(this.cm,!1);return E.focus=document.activeElement==this.div,E},lo.prototype.showSelection=function(E,te){!E||!this.cm.display.view.length||((E.focus||te)&&this.showPrimarySelection(),this.showMultipleSelections(E))},lo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},lo.prototype.showPrimarySelection=function(){var E=this.getSelection(),te=this.cm,ve=te.doc.sel.primary(),ge=ve.from(),Oe=ve.to();if(te.display.viewTo==te.display.viewFrom||ge.line>=te.display.viewTo||Oe.line<te.display.viewFrom){E.removeAllRanges();return}var Je=ld(te,E.anchorNode,E.anchorOffset),mt=ld(te,E.focusNode,E.focusOffset);if(!(Je&&!Je.bad&&mt&&!mt.bad&&kr(or(Je,mt),ge)==0&&kr(lr(Je,mt),Oe)==0)){var Mt=te.display.view,Tt=ge.line>=te.display.viewFrom&&Cf(te,ge)||{node:Mt[0].measure.map[2],offset:0},Nt=Oe.line<te.display.viewTo&&Cf(te,Oe);if(!Nt){var ir=Mt[Mt.length-1].measure,hr=ir.maps?ir.maps[ir.maps.length-1]:ir.map;Nt={node:hr[hr.length-1],offset:hr[hr.length-2]-hr[hr.length-3]}}if(!Tt||!Nt){E.removeAllRanges();return}var Br=E.rangeCount&&E.getRangeAt(0),Or;try{Or=Be(Tt.node,Tt.offset,Nt.offset,Nt.node)}catch(on){}Or&&(!Ye&&te.state.focused?(E.collapse(Tt.node,Tt.offset),Or.collapsed||(E.removeAllRanges(),E.addRange(Or))):(E.removeAllRanges(),E.addRange(Or)),Br&&E.anchorNode==null?E.addRange(Br):Ye&&this.startGracePeriod()),this.rememberSelection()}},lo.prototype.startGracePeriod=function(){var E=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){E.gracePeriod=!1,E.selectionChanged()&&E.cm.operation(function(){return E.cm.curOp.selectionChanged=!0})},20)},lo.prototype.showMultipleSelections=function(E){De(this.cm.display.cursorDiv,E.cursors),De(this.cm.display.selectionDiv,E.selection)},lo.prototype.rememberSelection=function(){var E=this.getSelection();this.lastAnchorNode=E.anchorNode,this.lastAnchorOffset=E.anchorOffset,this.lastFocusNode=E.focusNode,this.lastFocusOffset=E.focusOffset},lo.prototype.selectionInEditor=function(){var E=this.getSelection();if(!E.rangeCount)return!1;var te=E.getRangeAt(0).commonAncestorContainer;return Ve(this.div,te)},lo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},lo.prototype.blur=function(){this.div.blur()},lo.prototype.getField=function(){return this.div},lo.prototype.supportsTouch=function(){return!0},lo.prototype.receivedFocus=function(){var E=this;this.selectionInEditor()?this.pollSelection():er(this.cm,function(){return E.cm.curOp.selectionChanged=!0});function te(){E.cm.state.focused&&(E.pollSelection(),E.polling.set(E.cm.options.pollInterval,te))}this.polling.set(this.cm.options.pollInterval,te)},lo.prototype.selectionChanged=function(){var E=this.getSelection();return E.anchorNode!=this.lastAnchorNode||E.anchorOffset!=this.lastAnchorOffset||E.focusNode!=this.lastFocusNode||E.focusOffset!=this.lastFocusOffset},lo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var E=this.getSelection(),te=this.cm;if(de&&oe&&this.cm.display.gutterSpecs.length&&uh(E.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ve=ld(te,E.anchorNode,E.anchorOffset),ge=ld(te,E.focusNode,E.focusOffset);ve&&ge&&er(te,function(){Ra(te.doc,Ji(ve,ge),rt),(ve.bad||ge.bad)&&(te.curOp.selectionChanged=!0)})}}},lo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var E=this.cm,te=E.display,ve=E.doc.sel.primary(),ge=ve.from(),Oe=ve.to();if(ge.ch==0&&ge.line>E.firstLine()&&(ge=qt(ge.line-1,Ut(E.doc,ge.line-1).length)),Oe.ch==Ut(E.doc,Oe.line).text.length&&Oe.line<E.lastLine()&&(Oe=qt(Oe.line+1,0)),ge.line<te.viewFrom||Oe.line>te.viewTo-1)return!1;var Je,mt,Mt;ge.line==te.viewFrom||(Je=ls(E,ge.line))==0?(mt=vr(te.view[0].line),Mt=te.view[0].node):(mt=vr(te.view[Je].line),Mt=te.view[Je-1].node.nextSibling);var Tt=ls(E,Oe.line),Nt,ir;if(Tt==te.view.length-1?(Nt=te.viewTo-1,ir=te.lineDiv.lastChild):(Nt=vr(te.view[Tt+1].line)-1,ir=te.view[Tt+1].node.previousSibling),!Mt)return!1;for(var hr=E.doc.splitLines(dh(E,Mt,ir,mt,Nt)),Br=Qt(E.doc,qt(mt,0),qt(Nt,Ut(E.doc,Nt).text.length));hr.length>1&&Br.length>1;)if(Ot(hr)==Ot(Br))hr.pop(),Br.pop(),Nt--;else if(hr[0]==Br[0])hr.shift(),Br.shift(),mt++;else break;for(var Or=0,on=0,En=hr[0],ei=Br[0],fi=Math.min(En.length,ei.length);Or<fi&&En.charCodeAt(Or)==ei.charCodeAt(Or);)++Or;for(var vi=Ot(hr),oi=Ot(Br),bi=Math.min(vi.length-(hr.length==1?Or:0),oi.length-(Br.length==1?Or:0));on<bi&&vi.charCodeAt(vi.length-on-1)==oi.charCodeAt(oi.length-on-1);)++on;if(hr.length==1&&Br.length==1&&mt==ge.line)for(;Or&&Or>ge.ch&&vi.charCodeAt(vi.length-on-1)==oi.charCodeAt(oi.length-on-1);)Or--,on++;hr[hr.length-1]=vi.slice(0,vi.length-on).replace(/^\u200b+/,""),hr[0]=hr[0].slice(Or).replace(/\u200b+$/,"");var zi=qt(mt,Or),Wi=qt(Nt,Br.length?Ot(Br).length-on:0);if(hr.length>1||hr[0]||kr(zi,Wi))return Nl(E.doc,hr,zi,Wi,"+input"),!0},lo.prototype.ensurePolled=function(){this.forceCompositionEnd()},lo.prototype.reset=function(){this.forceCompositionEnd()},lo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},lo.prototype.readFromDOMSoon=function(){var E=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(E.readDOMTimeout=null,E.composing)if(E.composing.done)E.composing=null;else return;E.updateFromDOM()},80))},lo.prototype.updateFromDOM=function(){var E=this;(this.cm.isReadOnly()||!this.pollContent())&&er(this.cm,function(){return No(E.cm)})},lo.prototype.setUneditable=function(E){E.contentEditable="false"},lo.prototype.onKeyPress=function(E){E.charCode==0||this.composing||(E.preventDefault(),this.cm.isReadOnly()||Cr(this.cm,Bd)(this.cm,String.fromCharCode(E.charCode==null?E.keyCode:E.charCode),0))},lo.prototype.readOnlyChanged=function(E){this.div.contentEditable=String(E!="nocursor")},lo.prototype.onContextMenu=function(){},lo.prototype.resetPosition=function(){},lo.prototype.needsContentAttribute=!0;function Cf(E,te){var ve=ss(E,te.line);if(!ve||ve.hidden)return null;var ge=Ut(E.doc,te.line),Oe=Xs(ve,ge,te.line),Je=Ht(ge,E.doc.direction),mt="left";if(Je){var Mt=at(Je,te.ch);mt=Mt%2?"right":"left"}var Tt=Ol(Oe.map,te.ch,mt);return Tt.offset=Tt.collapse=="right"?Tt.end:Tt.start,Tt}function uh(E){for(var te=E;te;te=te.parentNode)if(/CodeMirror-gutter-wrapper/.test(te.className))return!0;return!1}function fu(E,te){return te&&(E.bad=!0),E}function dh(E,te,ve,ge,Oe){var Je="",mt=!1,Mt=E.doc.lineSeparator(),Tt=!1;function Nt(Or){return function(on){return on.id==Or}}function ir(){mt&&(Je+=Mt,Tt&&(Je+=Mt),mt=Tt=!1)}function hr(Or){Or&&(ir(),Je+=Or)}function Br(Or){if(Or.nodeType==1){var on=Or.getAttribute("cm-text");if(on){hr(on);return}var En=Or.getAttribute("cm-marker"),ei;if(En){var fi=E.findMarks(qt(ge,0),qt(Oe+1,0),Nt(+En));fi.length&&(ei=fi[0].find(0))&&hr(Qt(E.doc,ei.from,ei.to).join(Mt));return}if(Or.getAttribute("contenteditable")=="false")return;var vi=/^(pre|div|p|li|table|br)$/i.test(Or.nodeName);if(!/^br$/i.test(Or.nodeName)&&Or.textContent.length==0)return;vi&&ir();for(var oi=0;oi<Or.childNodes.length;oi++)Br(Or.childNodes[oi]);/^(pre|p)$/i.test(Or.nodeName)&&(Tt=!0),vi&&(mt=!0)}else Or.nodeType==3&&hr(Or.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Br(te),te!=ve;)te=te.nextSibling,Tt=!1;return Je}function ld(E,te,ve){var ge;if(te==E.display.lineDiv){if(ge=E.display.lineDiv.childNodes[ve],!ge)return fu(E.clipPos(qt(E.display.viewTo-1)),!0);te=null,ve=0}else for(ge=te;;ge=ge.parentNode){if(!ge||ge==E.display.lineDiv)return null;if(ge.parentNode&&ge.parentNode==E.display.lineDiv)break}for(var Oe=0;Oe<E.display.view.length;Oe++){var Je=E.display.view[Oe];if(Je.node==ge)return fh(Je,te,ve)}}function fh(E,te,ve){var ge=E.text.firstChild,Oe=!1;if(!te||!Ve(ge,te))return fu(qt(vr(E.line),0),!0);if(te==ge&&(Oe=!0,te=ge.childNodes[ve],ve=0,!te)){var Je=E.rest?Ot(E.rest):E.line;return fu(qt(vr(Je),Je.text.length),Oe)}var mt=te.nodeType==3?te:null,Mt=te;for(!mt&&te.childNodes.length==1&&te.firstChild.nodeType==3&&(mt=te.firstChild,ve&&(ve=mt.nodeValue.length));Mt.parentNode!=ge;)Mt=Mt.parentNode;var Tt=E.measure,Nt=Tt.maps;function ir(ei,fi,vi){for(var oi=-1;oi<(Nt?Nt.length:0);oi++)for(var bi=oi<0?Tt.map:Nt[oi],zi=0;zi<bi.length;zi+=3){var Wi=bi[zi+2];if(Wi==ei||Wi==fi){var Ma=vr(oi<0?E.line:E.rest[oi]),ho=bi[zi]+vi;return(vi<0||Wi!=ei)&&(ho=bi[zi+(vi?1:0)]),qt(Ma,ho)}}}var hr=ir(mt,Mt,ve);if(hr)return fu(hr,Oe);for(var Br=Mt.nextSibling,Or=mt?mt.nodeValue.length-ve:0;Br;Br=Br.nextSibling){if(hr=ir(Br,Br.firstChild,0),hr)return fu(qt(hr.line,hr.ch-Or),Oe);Or+=Br.textContent.length}for(var on=Mt.previousSibling,En=ve;on;on=on.previousSibling){if(hr=ir(on,on.firstChild,-1),hr)return fu(qt(hr.line,hr.ch+En),Oe);En+=on.textContent.length}}var fo=function(E){this.cm=E,this.prevInput="",this.pollingFast=!1,this.polling=new Xe,this.hasSelection=!1,this.composing=null};fo.prototype.init=function(E){var te=this,ve=this,ge=this.cm;this.createField(E);var Oe=this.textarea;E.wrapper.insertBefore(this.wrapper,E.wrapper.firstChild),ue&&(Oe.style.width="0px"),$t(Oe,"input",function(){me&&re>=9&&te.hasSelection&&(te.hasSelection=null),ve.poll()}),$t(Oe,"paste",function(mt){dt(ge,mt)||Nd(mt,ge)||(ge.state.pasteIncoming=+new Date,ve.fastPoll())});function Je(mt){if(!dt(ge,mt)){if(ge.somethingSelected())_c({lineWise:!1,text:ge.getSelections()});else if(ge.options.lineWiseCopyCut){var Mt=du(ge);_c({lineWise:!0,text:Mt.text}),mt.type=="cut"?ge.setSelections(Mt.ranges,null,rt):(ve.prevInput="",Oe.value=Mt.text.join(`
|
|
|
`),tt(Oe))}else return;mt.type=="cut"&&(ge.state.cutIncoming=+new Date)}}$t(Oe,"cut",Je),$t(Oe,"copy",Je),$t(E.scroller,"paste",function(mt){if(!(Ts(E,mt)||dt(ge,mt))){if(!Oe.dispatchEvent){ge.state.pasteIncoming=+new Date,ve.focus();return}var Mt=new Event("paste");Mt.clipboardData=mt.clipboardData,Oe.dispatchEvent(Mt)}}),$t(E.lineSpace,"selectstart",function(mt){Ts(E,mt)||tr(mt)}),$t(Oe,"compositionstart",function(){var mt=ge.getCursor("from");ve.composing&&ve.composing.range.clear(),ve.composing={start:mt,range:ge.markText(mt,ge.getCursor("to"),{className:"CodeMirror-composing"})}}),$t(Oe,"compositionend",function(){ve.composing&&(ve.poll(),ve.composing.range.clear(),ve.composing=null)})},fo.prototype.createField=function(E){this.wrapper=Fd(),this.textarea=this.wrapper.firstChild},fo.prototype.screenReaderLabelChanged=function(E){E?this.textarea.setAttribute("aria-label",E):this.textarea.removeAttribute("aria-label")},fo.prototype.prepareSelection=function(){var E=this.cm,te=E.display,ve=E.doc,ge=Gu(E);if(E.options.moveInputWithCursor){var Oe=Zo(E,ve.sel.primary().head,"div"),Je=te.wrapper.getBoundingClientRect(),mt=te.lineDiv.getBoundingClientRect();ge.teTop=Math.max(0,Math.min(te.wrapper.clientHeight-10,Oe.top+mt.top-Je.top)),ge.teLeft=Math.max(0,Math.min(te.wrapper.clientWidth-10,Oe.left+mt.left-Je.left))}return ge},fo.prototype.showSelection=function(E){var te=this.cm,ve=te.display;De(ve.cursorDiv,E.cursors),De(ve.selectionDiv,E.selection),E.teTop!=null&&(this.wrapper.style.top=E.teTop+"px",this.wrapper.style.left=E.teLeft+"px")},fo.prototype.reset=function(E){if(!(this.contextMenuPending||this.composing)){var te=this.cm;if(te.somethingSelected()){this.prevInput="";var ve=te.getSelection();this.textarea.value=ve,te.state.focused&&tt(this.textarea),me&&re>=9&&(this.hasSelection=ve)}else E||(this.prevInput=this.textarea.value="",me&&re>=9&&(this.hasSelection=null))}},fo.prototype.getField=function(){return this.textarea},fo.prototype.supportsTouch=function(){return!1},fo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!he||Ie()!=this.textarea))try{this.textarea.focus()}catch(E){}},fo.prototype.blur=function(){this.textarea.blur()},fo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},fo.prototype.receivedFocus=function(){this.slowPoll()},fo.prototype.slowPoll=function(){var E=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){E.poll(),E.cm.state.focused&&E.slowPoll()})},fo.prototype.fastPoll=function(){var E=!1,te=this;te.pollingFast=!0;function ve(){var ge=te.poll();!ge&&!E?(E=!0,te.polling.set(60,ve)):(te.pollingFast=!1,te.slowPoll())}te.polling.set(20,ve)},fo.prototype.poll=function(){var E=this,te=this.cm,ve=this.textarea,ge=this.prevInput;if(this.contextMenuPending||!te.state.focused||tn(ve)&&!ge&&!this.composing||te.isReadOnly()||te.options.disableInput||te.state.keySeq)return!1;var Oe=ve.value;if(Oe==ge&&!te.somethingSelected())return!1;if(me&&re>=9&&this.hasSelection===Oe||xe&&/[\uf700-\uf7ff]/.test(Oe))return te.display.input.reset(),!1;if(te.doc.sel==te.display.selForContextMenu){var Je=Oe.charCodeAt(0);if(Je==8203&&!ge&&(ge="\u200B"),Je==8666)return this.reset(),this.cm.execCommand("undo")}for(var mt=0,Mt=Math.min(ge.length,Oe.length);mt<Mt&&ge.charCodeAt(mt)==Oe.charCodeAt(mt);)++mt;return er(te,function(){Bd(te,Oe.slice(mt),ge.length-mt,null,E.composing?"*compose":null),Oe.length>1e3||Oe.indexOf(`
|
|
|
`)>-1?ve.value=E.prevInput="":E.prevInput=Oe,E.composing&&(E.composing.range.clear(),E.composing.range=te.markText(E.composing.start,te.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},fo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},fo.prototype.onKeyPress=function(){me&&re>=9&&(this.hasSelection=null),this.fastPoll()},fo.prototype.onContextMenu=function(E){var te=this,ve=te.cm,ge=ve.display,Oe=te.textarea;te.contextMenuPending&&te.contextMenuPending();var Je=Hs(ve,E),mt=ge.scroller.scrollTop;if(!Je||se)return;var Mt=ve.options.resetSelectionOnContextMenu;Mt&&ve.doc.sel.contains(Je)==-1&&Cr(ve,Ra)(ve.doc,Ji(Je),rt);var Tt=Oe.style.cssText,Nt=te.wrapper.style.cssText,ir=te.wrapper.offsetParent.getBoundingClientRect();te.wrapper.style.cssText="position: static",Oe.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(E.clientY-ir.top-5)+"px; left: "+(E.clientX-ir.left-5)+`px;
|
|
|
z-index: 1000; background: `+(me?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var hr;z&&(hr=window.scrollY),ge.input.focus(),z&&window.scrollTo(null,hr),ge.input.reset(),ve.somethingSelected()||(Oe.value=te.prevInput=" "),te.contextMenuPending=Or,ge.selForContextMenu=ve.doc.sel,clearTimeout(ge.detectingSelectAll);function Br(){if(Oe.selectionStart!=null){var En=ve.somethingSelected(),ei="\u200B"+(En?Oe.value:"");Oe.value="\u21DA",Oe.value=ei,te.prevInput=En?"":"\u200B",Oe.selectionStart=1,Oe.selectionEnd=ei.length,ge.selForContextMenu=ve.doc.sel}}function Or(){if(te.contextMenuPending==Or&&(te.contextMenuPending=!1,te.wrapper.style.cssText=Nt,Oe.style.cssText=Tt,me&&re<9&&ge.scrollbars.setScrollTop(ge.scroller.scrollTop=mt),Oe.selectionStart!=null)){(!me||me&&re<9)&&Br();var En=0,ei=function(){ge.selForContextMenu==ve.doc.sel&&Oe.selectionStart==0&&Oe.selectionEnd>0&&te.prevInput=="\u200B"?Cr(ve,ms)(ve):En++<10?ge.detectingSelectAll=setTimeout(ei,500):(ge.selForContextMenu=null,ge.input.reset())};ge.detectingSelectAll=setTimeout(ei,200)}}if(me&&re>=9&&Br(),Le){zr(E);var on=function(){St(window,"mouseup",on),setTimeout(Or,20)};$t(window,"mouseup",on)}else setTimeout(Or,50)},fo.prototype.readOnlyChanged=function(E){E||this.reset(),this.textarea.disabled=E=="nocursor",this.textarea.readOnly=!!E},fo.prototype.setUneditable=function(){},fo.prototype.needsContentAttribute=!1;function Wc(E,te){if(te=te?ht(te):{},te.value=E.value,!te.tabindex&&E.tabIndex&&(te.tabindex=E.tabIndex),!te.placeholder&&E.placeholder&&(te.placeholder=E.placeholder),te.autofocus==null){var ve=Ie();te.autofocus=ve==E||E.getAttribute("autofocus")!=null&&ve==document.body}function ge(){E.value=Mt.getValue()}var Oe;if(E.form&&($t(E.form,"submit",ge),!te.leaveSubmitMethodAlone)){var Je=E.form;Oe=Je.submit;try{var mt=Je.submit=function(){ge(),Je.submit=Oe,Je.submit(),Je.submit=mt}}catch(Tt){}}te.finishInit=function(Tt){Tt.save=ge,Tt.getTextArea=function(){return E},Tt.toTextArea=function(){Tt.toTextArea=isNaN,ge(),E.parentNode.removeChild(Tt.getWrapperElement()),E.style.display="",E.form&&(St(E.form,"submit",ge),!te.leaveSubmitMethodAlone&&typeof E.form.submit=="function"&&(E.form.submit=Oe))}},E.style.display="none";var Mt=ta(function(Tt){return E.parentNode.insertBefore(Tt,E.nextSibling)},te);return Mt}function hu(E){E.off=St,E.on=$t,E.wheelEventPixels=Ni,E.Doc=To,E.splitLines=_n,E.countColumn=Ge,E.findColumn=xt,E.isWordChar=Fe,E.Pass=ut,E.signal=ft,E.Line=Wn,E.changeEnd=_a,E.scrollbarModel=Eu,E.Pos=qt,E.cmpPos=kr,E.modes=$r,E.mimeModes=Yr,E.resolveMode=Pr,E.getMode=Wr,E.modeExtensions=mn,E.extendMode=Gt,E.copyState=Et,E.startState=Dt,E.innerMode=It,E.commands=vs,E.keyMap=qa,E.keyName=Fl,E.isModifierKey=Hc,E.lookupKey=Sl,E.normalizeKeyMap=cu,E.StringStream=Lt,E.SharedTextMarker=ya,E.TextMarker=Xl,E.LineWidget=Yo,E.e_preventDefault=tr,E.e_stopPropagation=mr,E.e_stop=zr,E.addClass=Ze,E.contains=Ve,E.rmClass=Ne,E.keyNames=rl}sh(ta),$d(ta);var hc="iter insert remove copy getEditor constructor".split(" ");for(var _l in To.prototype)To.prototype.hasOwnProperty(_l)&&ct(hc,_l)<0&&(ta.prototype[_l]=function(E){return function(){return E.apply(this.doc,arguments)}}(To.prototype[_l]));return Zt(To),ta.inputStyles={textarea:fo,contenteditable:lo},ta.defineMode=function(E){!ta.defaults.mode&&E!="null"&&(ta.defaults.mode=E),Lr.apply(this,arguments)},ta.defineMIME=cn,ta.defineMode("null",function(){return{token:function(E){return E.skipToEnd()}}}),ta.defineMIME("text/plain","null"),ta.defineExtension=function(E,te){ta.prototype[E]=te},ta.defineDocExtension=function(E,te){To.prototype[E]=te},ta.fromTextArea=Wc,hu(ta),ta.version="5.58.2",ta})},25419:function(gr,Wt,ke){(function(Ye){Ye(ke(89780),ke(15525),ke(98101))})(function(Ye){"use strict";Ye.defineMode("markdown",function(vt,x){var Ae=Ye.getMode(vt,"text/html"),me=Ae.name=="null";function re(Ge){if(Ye.findModeByName){var Xe=Ye.findModeByName(Ge);Xe&&(Ge=Xe.mime||Xe.mimes[0])}var ct=Ye.getMode(vt,Ge);return ct.name=="null"?null:ct}x.highlightFormatting===void 0&&(x.highlightFormatting=!1),x.maxBlockquoteDepth===void 0&&(x.maxBlockquoteDepth=0),x.taskLists===void 0&&(x.taskLists=!1),x.strikethrough===void 0&&(x.strikethrough=!1),x.emoji===void 0&&(x.emoji=!1),x.fencedCodeBlockHighlighting===void 0&&(x.fencedCodeBlockHighlighting=!0),x.fencedCodeBlockDefaultMode===void 0&&(x.fencedCodeBlockDefaultMode="text/plain"),x.xml===void 0&&(x.xml=!0),x.tokenTypeOverrides===void 0&&(x.tokenTypeOverrides={});var z={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 ie in z)z.hasOwnProperty(ie)&&x.tokenTypeOverrides[ie]&&(z[ie]=x.tokenTypeOverrides[ie]);var oe=/^([*\-_])(?:\s*\1){2,}\s*$/,se=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,pe=/^\[(x| )\](?=\s)/i,ne=x.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ae=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ue=/^[^#!\[\]*_\\<>` "'(~:]+/,de=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,he=/^\s*\[[^\]]+?\]:.*$/,xe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Se=" ";function we(Ge,Xe,ct){return Xe.f=Xe.inline=ct,ct(Ge,Xe)}function be(Ge,Xe,ct){return Xe.f=Xe.block=ct,ct(Ge,Xe)}function Me(Ge){return!Ge||!/\S/.test(Ge.string)}function Le(Ge){if(Ge.linkTitle=!1,Ge.linkHref=!1,Ge.linkText=!1,Ge.em=!1,Ge.strong=!1,Ge.strikethrough=!1,Ge.quote=0,Ge.indentedCode=!1,Ge.f==Ne){var Xe=me;if(!Xe){var ct=Ye.innerMode(Ae,Ge.htmlState);Xe=ct.mode.name=="xml"&&ct.state.tagStart===null&&!ct.state.context&&ct.state.tokenize.isInText}Xe&&(Ge.f=Pe,Ge.block=Ce,Ge.htmlState=null)}return Ge.trailingSpace=0,Ge.trailingSpaceNewLine=!1,Ge.prevLine=Ge.thisLine,Ge.thisLine={stream:null},null}function Ce(Ge,Xe){var ct=Ge.column()===Xe.indentation,pt=Me(Xe.prevLine.stream),ut=Xe.indentedCode,rt=Xe.prevLine.hr,qe=Xe.list!==!1,nt=(Xe.listStack[Xe.listStack.length-1]||0)+3;Xe.indentedCode=!1;var xt=Xe.indentation;if(Xe.indentationDiff===null&&(Xe.indentationDiff=Xe.indentation,qe)){for(Xe.list=null;xt<Xe.listStack[Xe.listStack.length-1];)Xe.listStack.pop(),Xe.listStack.length?Xe.indentation=Xe.listStack[Xe.listStack.length-1]:Xe.list=!1;Xe.list!==!1&&(Xe.indentationDiff=xt-Xe.listStack[Xe.listStack.length-1])}var yt=!pt&&!rt&&!Xe.prevLine.header&&(!qe||!ut)&&!Xe.prevLine.fencedCodeEnd,Rt=(Xe.list===!1||rt||pt)&&Xe.indentation<=nt&&Ge.match(oe),Ot=null;if(Xe.indentationDiff>=4&&(ut||Xe.prevLine.fencedCodeEnd||Xe.prevLine.header||pt))return Ge.skipToEnd(),Xe.indentedCode=!0,z.code;if(Ge.eatSpace())return null;if(ct&&Xe.indentation<=nt&&(Ot=Ge.match(ne))&&Ot[1].length<=6)return Xe.quote=0,Xe.header=Ot[1].length,Xe.thisLine.header=!0,x.highlightFormatting&&(Xe.formatting="header"),Xe.f=Xe.inline,De(Xe);if(Xe.indentation<=nt&&Ge.eat(">"))return Xe.quote=ct?1:Xe.quote+1,x.highlightFormatting&&(Xe.formatting="quote"),Ge.eatSpace(),De(Xe);if(!Rt&&!Xe.setext&&ct&&Xe.indentation<=nt&&(Ot=Ge.match(se))){var lt=Ot[1]?"ol":"ul";return Xe.indentation=xt+Ge.current().length,Xe.list=!0,Xe.quote=0,Xe.listStack.push(Xe.indentation),Xe.em=!1,Xe.strong=!1,Xe.code=!1,Xe.strikethrough=!1,x.taskLists&&Ge.match(pe,!1)&&(Xe.taskList=!0),Xe.f=Xe.inline,x.highlightFormatting&&(Xe.formatting=["list","list-"+lt]),De(Xe)}else{if(ct&&Xe.indentation<=nt&&(Ot=Ge.match(de,!0)))return Xe.quote=0,Xe.fencedEndRE=new RegExp(Ot[1]+"+ *$"),Xe.localMode=x.fencedCodeBlockHighlighting&&re(Ot[2]||x.fencedCodeBlockDefaultMode),Xe.localMode&&(Xe.localState=Ye.startState(Xe.localMode)),Xe.f=Xe.block=Te,x.highlightFormatting&&(Xe.formatting="code-block"),Xe.code=-1,De(Xe);if(Xe.setext||(!yt||!qe)&&!Xe.quote&&Xe.list===!1&&!Xe.code&&!Rt&&!he.test(Ge.string)&&(Ot=Ge.lookAhead(1))&&(Ot=Ot.match(ae)))return Xe.setext?(Xe.header=Xe.setext,Xe.setext=0,Ge.skipToEnd(),x.highlightFormatting&&(Xe.formatting="header")):(Xe.header=Ot[0].charAt(0)=="="?1:2,Xe.setext=Xe.header),Xe.thisLine.header=!0,Xe.f=Xe.inline,De(Xe);if(Rt)return Ge.skipToEnd(),Xe.hr=!0,Xe.thisLine.hr=!0,z.hr;if(Ge.peek()==="[")return we(Ge,Xe,Qe)}return we(Ge,Xe,Xe.inline)}function Ne(Ge,Xe){var ct=Ae.token(Ge,Xe.htmlState);if(!me){var pt=Ye.innerMode(Ae,Xe.htmlState);(pt.mode.name=="xml"&&pt.state.tagStart===null&&!pt.state.context&&pt.state.tokenize.isInText||Xe.md_inside&&Ge.current().indexOf(">")>-1)&&(Xe.f=Pe,Xe.block=Ce,Xe.htmlState=null)}return ct}function Te(Ge,Xe){var ct=Xe.listStack[Xe.listStack.length-1]||0,pt=Xe.indentation<ct,ut=ct+3;if(Xe.fencedEndRE&&Xe.indentation<=ut&&(pt||Ge.match(Xe.fencedEndRE))){x.highlightFormatting&&(Xe.formatting="code-block");var rt;return pt||(rt=De(Xe)),Xe.localMode=Xe.localState=null,Xe.block=Ce,Xe.f=Pe,Xe.fencedEndRE=null,Xe.code=0,Xe.thisLine.fencedCodeEnd=!0,pt?be(Ge,Xe,Xe.block):rt}else return Xe.localMode?Xe.localMode.token(Ge,Xe.localState):(Ge.skipToEnd(),z.code)}function De(Ge){var Xe=[];if(Ge.formatting){Xe.push(z.formatting),typeof Ge.formatting=="string"&&(Ge.formatting=[Ge.formatting]);for(var ct=0;ct<Ge.formatting.length;ct++)Xe.push(z.formatting+"-"+Ge.formatting[ct]),Ge.formatting[ct]==="header"&&Xe.push(z.formatting+"-"+Ge.formatting[ct]+"-"+Ge.header),Ge.formatting[ct]==="quote"&&(!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=Ge.quote?Xe.push(z.formatting+"-"+Ge.formatting[ct]+"-"+Ge.quote):Xe.push("error"))}if(Ge.taskOpen)return Xe.push("meta"),Xe.length?Xe.join(" "):null;if(Ge.taskClosed)return Xe.push("property"),Xe.length?Xe.join(" "):null;if(Ge.linkHref?Xe.push(z.linkHref,"url"):(Ge.strong&&Xe.push(z.strong),Ge.em&&Xe.push(z.em),Ge.strikethrough&&Xe.push(z.strikethrough),Ge.emoji&&Xe.push(z.emoji),Ge.linkText&&Xe.push(z.linkText),Ge.code&&Xe.push(z.code),Ge.image&&Xe.push(z.image),Ge.imageAltText&&Xe.push(z.imageAltText,"link"),Ge.imageMarker&&Xe.push(z.imageMarker)),Ge.header&&Xe.push(z.header,z.header+"-"+Ge.header),Ge.quote&&(Xe.push(z.quote),!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=Ge.quote?Xe.push(z.quote+"-"+Ge.quote):Xe.push(z.quote+"-"+x.maxBlockquoteDepth)),Ge.list!==!1){var pt=(Ge.listStack.length-1)%3;pt?pt===1?Xe.push(z.list2):Xe.push(z.list3):Xe.push(z.list1)}return Ge.trailingSpaceNewLine?Xe.push("trailing-space-new-line"):Ge.trailingSpace&&Xe.push("trailing-space-"+(Ge.trailingSpace%2?"a":"b")),Xe.length?Xe.join(" "):null}function Ee(Ge,Xe){if(Ge.match(ue,!0))return De(Xe)}function Pe(Ge,Xe){var ct=Xe.text(Ge,Xe);if(typeof ct!="undefined")return ct;if(Xe.list)return Xe.list=null,De(Xe);if(Xe.taskList){var pt=Ge.match(pe,!0)[1]===" ";return pt?Xe.taskOpen=!0:Xe.taskClosed=!0,x.highlightFormatting&&(Xe.formatting="task"),Xe.taskList=!1,De(Xe)}if(Xe.taskOpen=!1,Xe.taskClosed=!1,Xe.header&&Ge.match(/^#+$/,!0))return x.highlightFormatting&&(Xe.formatting="header"),De(Xe);var ut=Ge.next();if(Xe.linkTitle){Xe.linkTitle=!1;var rt=ut;ut==="("&&(rt=")"),rt=(rt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var qe="^\\s*(?:[^"+rt+"\\\\]+|\\\\\\\\|\\\\.)"+rt;if(Ge.match(new RegExp(qe),!0))return z.linkHref}if(ut==="`"){var nt=Xe.formatting;x.highlightFormatting&&(Xe.formatting="code"),Ge.eatWhile("`");var xt=Ge.current().length;if(Xe.code==0&&(!Xe.quote||xt==1))return Xe.code=xt,De(Xe);if(xt==Xe.code){var yt=De(Xe);return Xe.code=0,yt}else return Xe.formatting=nt,De(Xe)}else if(Xe.code)return De(Xe);if(ut==="\\"&&(Ge.next(),x.highlightFormatting)){var Rt=De(Xe),Ot=z.formatting+"-escape";return Rt?Rt+" "+Ot:Ot}if(ut==="!"&&Ge.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Xe.imageMarker=!0,Xe.image=!0,x.highlightFormatting&&(Xe.formatting="image"),De(Xe);if(ut==="["&&Xe.imageMarker&&Ge.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Xe.imageMarker=!1,Xe.imageAltText=!0,x.highlightFormatting&&(Xe.formatting="image"),De(Xe);if(ut==="]"&&Xe.imageAltText){x.highlightFormatting&&(Xe.formatting="image");var Rt=De(Xe);return Xe.imageAltText=!1,Xe.image=!1,Xe.inline=Xe.f=Ve,Rt}if(ut==="["&&!Xe.image)return Xe.linkText&&Ge.match(/^.*?\]/)||(Xe.linkText=!0,x.highlightFormatting&&(Xe.formatting="link")),De(Xe);if(ut==="]"&&Xe.linkText){x.highlightFormatting&&(Xe.formatting="link");var Rt=De(Xe);return Xe.linkText=!1,Xe.inline=Xe.f=Ge.match(/\(.*?\)| ?\[.*?\]/,!1)?Ve:Pe,Rt}if(ut==="<"&&Ge.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Xe.f=Xe.inline=Be,x.highlightFormatting&&(Xe.formatting="link");var Rt=De(Xe);return Rt?Rt+=" ":Rt="",Rt+z.linkInline}if(ut==="<"&&Ge.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Xe.f=Xe.inline=Be,x.highlightFormatting&&(Xe.formatting="link");var Rt=De(Xe);return Rt?Rt+=" ":Rt="",Rt+z.linkEmail}if(x.xml&&ut==="<"&&Ge.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var lt=Ge.string.indexOf(">",Ge.pos);if(lt!=-1){var Ue=Ge.string.substring(Ge.start,lt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ue)&&(Xe.md_inside=!0)}return Ge.backUp(1),Xe.htmlState=Ye.startState(Ae),be(Ge,Xe,Ne)}if(x.xml&&ut==="<"&&Ge.match(/^\/\w*?>/))return Xe.md_inside=!1,"tag";if(ut==="*"||ut==="_"){for(var $e=1,le=Ge.pos==1?" ":Ge.string.charAt(Ge.pos-2);$e<3&&Ge.eat(ut);)$e++;var fe=Ge.peek()||" ",Fe=!/\s/.test(fe)&&(!xe.test(fe)||/\s/.test(le)||xe.test(le)),He=!/\s/.test(le)&&(!xe.test(le)||/\s/.test(fe)||xe.test(fe)),ye=null,Re=null;if($e%2&&(!Xe.em&&Fe&&(ut==="*"||!He||xe.test(le))?ye=!0:Xe.em==ut&&He&&(ut==="*"||!Fe||xe.test(fe))&&(ye=!1)),$e>1&&(!Xe.strong&&Fe&&(ut==="*"||!He||xe.test(le))?Re=!0:Xe.strong==ut&&He&&(ut==="*"||!Fe||xe.test(fe))&&(Re=!1)),Re!=null||ye!=null){x.highlightFormatting&&(Xe.formatting=ye==null?"strong":Re==null?"em":"strong em"),ye===!0&&(Xe.em=ut),Re===!0&&(Xe.strong=ut);var yt=De(Xe);return ye===!1&&(Xe.em=!1),Re===!1&&(Xe.strong=!1),yt}}else if(ut===" "&&(Ge.eat("*")||Ge.eat("_"))){if(Ge.peek()===" ")return De(Xe);Ge.backUp(1)}if(x.strikethrough){if(ut==="~"&&Ge.eatWhile(ut)){if(Xe.strikethrough){x.highlightFormatting&&(Xe.formatting="strikethrough");var yt=De(Xe);return Xe.strikethrough=!1,yt}else if(Ge.match(/^[^\s]/,!1))return Xe.strikethrough=!0,x.highlightFormatting&&(Xe.formatting="strikethrough"),De(Xe)}else if(ut===" "&&Ge.match(/^~~/,!0)){if(Ge.peek()===" ")return De(Xe);Ge.backUp(2)}}if(x.emoji&&ut===":"&&Ge.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Xe.emoji=!0,x.highlightFormatting&&(Xe.formatting="emoji");var ze=De(Xe);return Xe.emoji=!1,ze}return ut===" "&&(Ge.match(/^ +$/,!1)?Xe.trailingSpace++:Xe.trailingSpace&&(Xe.trailingSpaceNewLine=!0)),De(Xe)}function Be(Ge,Xe){var ct=Ge.next();if(ct===">"){Xe.f=Xe.inline=Pe,x.highlightFormatting&&(Xe.formatting="link");var pt=De(Xe);return pt?pt+=" ":pt="",pt+z.linkInline}return Ge.match(/^[^>]+/,!0),z.linkInline}function Ve(Ge,Xe){if(Ge.eatSpace())return null;var ct=Ge.next();return ct==="("||ct==="["?(Xe.f=Xe.inline=Ze(ct==="("?")":"]"),x.highlightFormatting&&(Xe.formatting="link-string"),Xe.linkHref=!0,De(Xe)):"error"}var Ie={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ze(Ge){return function(Xe,ct){var pt=Xe.next();if(pt===Ge){ct.f=ct.inline=Pe,x.highlightFormatting&&(ct.formatting="link-string");var ut=De(ct);return ct.linkHref=!1,ut}return Xe.match(Ie[Ge]),ct.linkHref=!0,De(ct)}}function Qe(Ge,Xe){return Ge.match(/^([^\]\\]|\\.)*\]:/,!1)?(Xe.f=tt,Ge.next(),x.highlightFormatting&&(Xe.formatting="link"),Xe.linkText=!0,De(Xe)):we(Ge,Xe,Pe)}function tt(Ge,Xe){if(Ge.match(/^\]:/,!0)){Xe.f=Xe.inline=it,x.highlightFormatting&&(Xe.formatting="link");var ct=De(Xe);return Xe.linkText=!1,ct}return Ge.match(/^([^\]\\]|\\.)+/,!0),z.linkText}function it(Ge,Xe){return Ge.eatSpace()?null:(Ge.match(/^[^\s]+/,!0),Ge.peek()===void 0?Xe.linkTitle=!0:Ge.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Xe.f=Xe.inline=Pe,z.linkHref+" url")}var ht={startState:function(){return{f:Ce,prevLine:{stream:null},thisLine:{stream:null},block:Ce,htmlState:null,indentation:0,inline:Pe,text:Ee,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Ge){return{f:Ge.f,prevLine:Ge.prevLine,thisLine:Ge.thisLine,block:Ge.block,htmlState:Ge.htmlState&&Ye.copyState(Ae,Ge.htmlState),indentation:Ge.indentation,localMode:Ge.localMode,localState:Ge.localMode?Ye.copyState(Ge.localMode,Ge.localState):null,inline:Ge.inline,text:Ge.text,formatting:!1,linkText:Ge.linkText,linkTitle:Ge.linkTitle,linkHref:Ge.linkHref,code:Ge.code,em:Ge.em,strong:Ge.strong,strikethrough:Ge.strikethrough,emoji:Ge.emoji,header:Ge.header,setext:Ge.setext,hr:Ge.hr,taskList:Ge.taskList,list:Ge.list,listStack:Ge.listStack.slice(0),quote:Ge.quote,indentedCode:Ge.indentedCode,trailingSpace:Ge.trailingSpace,trailingSpaceNewLine:Ge.trailingSpaceNewLine,md_inside:Ge.md_inside,fencedEndRE:Ge.fencedEndRE}},token:function(Ge,Xe){if(Xe.formatting=!1,Ge!=Xe.thisLine.stream){if(Xe.header=0,Xe.hr=!1,Ge.match(/^\s*$/,!0))return Le(Xe),null;if(Xe.prevLine=Xe.thisLine,Xe.thisLine={stream:Ge},Xe.taskList=!1,Xe.trailingSpace=0,Xe.trailingSpaceNewLine=!1,!Xe.localState&&(Xe.f=Xe.block,Xe.f!=Ne)){var ct=Ge.match(/^\s*/,!0)[0].replace(/\t/g,Se).length;if(Xe.indentation=ct,Xe.indentationDiff=null,ct>0)return null}}return Xe.f(Ge,Xe)},innerMode:function(Ge){return Ge.block==Ne?{state:Ge.htmlState,mode:Ae}:Ge.localState?{state:Ge.localState,mode:Ge.localMode}:{state:Ge,mode:ht}},indent:function(Ge,Xe,ct){return Ge.block==Ne&&Ae.indent?Ae.indent(Ge.htmlState,Xe,ct):Ge.localState&&Ge.localMode.indent?Ge.localMode.indent(Ge.localState,Xe,ct):Ye.Pass},blankLine:Le,getType:De,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ht},"xml"),Ye.defineMIME("text/markdown","markdown"),Ye.defineMIME("text/x-markdown","markdown")})},98101:function(gr,Wt,ke){(function(Ye){Ye(ke(89780))})(function(Ye){"use strict";Ye.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 vt=0;vt<Ye.modeInfo.length;vt++){var x=Ye.modeInfo[vt];x.mimes&&(x.mime=x.mimes[0])}Ye.findModeByMIME=function(Ae){Ae=Ae.toLowerCase();for(var me=0;me<Ye.modeInfo.length;me++){var re=Ye.modeInfo[me];if(re.mime==Ae)return re;if(re.mimes){for(var z=0;z<re.mimes.length;z++)if(re.mimes[z]==Ae)return re}}if(/\+xml$/.test(Ae))return Ye.findModeByMIME("application/xml");if(/\+json$/.test(Ae))return Ye.findModeByMIME("application/json")},Ye.findModeByExtension=function(Ae){Ae=Ae.toLowerCase();for(var me=0;me<Ye.modeInfo.length;me++){var re=Ye.modeInfo[me];if(re.ext){for(var z=0;z<re.ext.length;z++)if(re.ext[z]==Ae)return re}}},Ye.findModeByFileName=function(Ae){for(var me=0;me<Ye.modeInfo.length;me++){var re=Ye.modeInfo[me];if(re.file&&re.file.test(Ae))return re}var z=Ae.lastIndexOf("."),ie=z>-1&&Ae.substring(z+1,Ae.length);if(ie)return Ye.findModeByExtension(ie)},Ye.findModeByName=function(Ae){Ae=Ae.toLowerCase();for(var me=0;me<Ye.modeInfo.length;me++){var re=Ye.modeInfo[me];if(re.name.toLowerCase()==Ae)return re;if(re.alias){for(var z=0;z<re.alias.length;z++)if(re.alias[z].toLowerCase()==Ae)return re}}}})},67549:function(gr,Wt,ke){(function(Ye){Ye(ke(89780))})(function(Ye){"use strict";Ye.defineMode("stex",function(vt,x){"use strict";function Ae(ue,de){ue.cmdState.push(de)}function me(ue){return ue.cmdState.length>0?ue.cmdState[ue.cmdState.length-1]:null}function re(ue){var de=ue.cmdState.pop();de&&de.closeBracket()}function z(ue){for(var de=ue.cmdState,he=de.length-1;he>=0;he--){var xe=de[he];if(xe.name!="DEFAULT")return xe}return{styleIdentifier:function(){return null}}}function ie(ue,de,he){return function(){this.name=ue,this.bracketNo=0,this.style=de,this.styles=he,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var oe={};oe.importmodule=ie("importmodule","tag",["string","builtin"]),oe.documentclass=ie("documentclass","tag",["","atom"]),oe.usepackage=ie("usepackage","tag",["atom"]),oe.begin=ie("begin","tag",["atom"]),oe.end=ie("end","tag",["atom"]),oe.label=ie("label","tag",["atom"]),oe.ref=ie("ref","tag",["atom"]),oe.eqref=ie("eqref","tag",["atom"]),oe.cite=ie("cite","tag",["atom"]),oe.bibitem=ie("bibitem","tag",["atom"]),oe.Bibitem=ie("Bibitem","tag",["atom"]),oe.RBibitem=ie("RBibitem","tag",["atom"]),oe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function se(ue,de){ue.f=de}function pe(ue,de){var he;if(ue.match(/^\\[a-zA-Z@]+/)){var xe=ue.current().slice(1);return he=oe.hasOwnProperty(xe)?oe[xe]:oe.DEFAULT,he=new he,Ae(de,he),se(de,ae),he.style}if(ue.match(/^\\[$&%#{}_]/)||ue.match(/^\\[,;!\/\\]/))return"tag";if(ue.match("\\["))return se(de,function(we,be){return ne(we,be,"\\]")}),"keyword";if(ue.match("\\("))return se(de,function(we,be){return ne(we,be,"\\)")}),"keyword";if(ue.match("$$"))return se(de,function(we,be){return ne(we,be,"$$")}),"keyword";if(ue.match("$"))return se(de,function(we,be){return ne(we,be,"$")}),"keyword";var Se=ue.next();if(Se=="%")return ue.skipToEnd(),"comment";if(Se=="}"||Se=="]"){if(he=me(de),he)he.closeBracket(Se),se(de,ae);else return"error";return"bracket"}else return Se=="{"||Se=="["?(he=oe.DEFAULT,he=new he,Ae(de,he),"bracket"):/\d/.test(Se)?(ue.eatWhile(/[\w.%]/),"atom"):(ue.eatWhile(/[\w\-_]/),he=z(de),he.name=="begin"&&(he.argument=ue.current()),he.styleIdentifier())}function ne(ue,de,he){if(ue.eatSpace())return null;if(he&&ue.match(he))return se(de,pe),"keyword";if(ue.match(/^\\[a-zA-Z@]+/))return"tag";if(ue.match(/^[a-zA-Z]+/))return"variable-2";if(ue.match(/^\\[$&%#{}_]/)||ue.match(/^\\[,;!\/]/)||ue.match(/^[\^_&]/))return"tag";if(ue.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ue.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var xe=ue.next();return xe=="{"||xe=="}"||xe=="["||xe=="]"||xe=="("||xe==")"?"bracket":xe=="%"?(ue.skipToEnd(),"comment"):"error"}function ae(ue,de){var he=ue.peek(),xe;return he=="{"||he=="["?(xe=me(de),xe.openBracket(he),ue.eat(he),se(de,pe),"bracket"):/[ \t\r]/.test(he)?(ue.eat(he),null):(se(de,pe),re(de),pe(ue,de))}return{startState:function(){var ue=x.inMathMode?function(de,he){return ne(de,he)}:pe;return{cmdState:[],f:ue}},copyState:function(ue){return{cmdState:ue.cmdState.slice(),f:ue.f}},token:function(ue,de){return de.f(ue,de)},blankLine:function(ue){ue.f=pe,ue.cmdState.length=0},lineComment:"%"}}),Ye.defineMIME("text/x-stex","stex"),Ye.defineMIME("text/x-latex","stex")})},15525:function(gr,Wt,ke){(function(Ye){Ye(ke(89780))})(function(Ye){"use strict";var vt={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},x={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Ye.defineMode("xml",function(Ae,me){var re=Ae.indentUnit,z={},ie=me.htmlMode?vt:x;for(var oe in ie)z[oe]=ie[oe];for(var oe in me)z[oe]=me[oe];var se,pe;function ne(Be,Ve){function Ie(tt){return Ve.tokenize=tt,tt(Be,Ve)}var Ze=Be.next();if(Ze=="<")return Be.eat("!")?Be.eat("[")?Be.match("CDATA[")?Ie(de("atom","]]>")):null:Be.match("--")?Ie(de("comment","-->")):Be.match("DOCTYPE",!0,!0)?(Be.eatWhile(/[\w\._\-]/),Ie(he(1))):null:Be.eat("?")?(Be.eatWhile(/[\w\._\-]/),Ve.tokenize=de("meta","?>"),"meta"):(se=Be.eat("/")?"closeTag":"openTag",Ve.tokenize=ae,"tag bracket");if(Ze=="&"){var Qe;return Be.eat("#")?Be.eat("x")?Qe=Be.eatWhile(/[a-fA-F\d]/)&&Be.eat(";"):Qe=Be.eatWhile(/[\d]/)&&Be.eat(";"):Qe=Be.eatWhile(/[\w\.\-:]/)&&Be.eat(";"),Qe?"atom":"error"}else return Be.eatWhile(/[^&<]/),null}ne.isInText=!0;function ae(Be,Ve){var Ie=Be.next();if(Ie==">"||Ie=="/"&&Be.eat(">"))return Ve.tokenize=ne,se=Ie==">"?"endTag":"selfcloseTag","tag bracket";if(Ie=="=")return se="equals",null;if(Ie=="<"){Ve.tokenize=ne,Ve.state=be,Ve.tagName=Ve.tagStart=null;var Ze=Ve.tokenize(Be,Ve);return Ze?Ze+" tag error":"tag error"}else return/[\'\"]/.test(Ie)?(Ve.tokenize=ue(Ie),Ve.stringStartCol=Be.column(),Ve.tokenize(Be,Ve)):(Be.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ue(Be){var Ve=function(Ie,Ze){for(;!Ie.eol();)if(Ie.next()==Be){Ze.tokenize=ae;break}return"string"};return Ve.isInAttribute=!0,Ve}function de(Be,Ve){return function(Ie,Ze){for(;!Ie.eol();){if(Ie.match(Ve)){Ze.tokenize=ne;break}Ie.next()}return Be}}function he(Be){return function(Ve,Ie){for(var Ze;(Ze=Ve.next())!=null;){if(Ze=="<")return Ie.tokenize=he(Be+1),Ie.tokenize(Ve,Ie);if(Ze==">")if(Be==1){Ie.tokenize=ne;break}else return Ie.tokenize=he(Be-1),Ie.tokenize(Ve,Ie)}return"meta"}}function xe(Be,Ve,Ie){this.prev=Be.context,this.tagName=Ve,this.indent=Be.indented,this.startOfLine=Ie,(z.doNotIndent.hasOwnProperty(Ve)||Be.context&&Be.context.noIndent)&&(this.noIndent=!0)}function Se(Be){Be.context&&(Be.context=Be.context.prev)}function we(Be,Ve){for(var Ie;;){if(!Be.context||(Ie=Be.context.tagName,!z.contextGrabbers.hasOwnProperty(Ie)||!z.contextGrabbers[Ie].hasOwnProperty(Ve)))return;Se(Be)}}function be(Be,Ve,Ie){return Be=="openTag"?(Ie.tagStart=Ve.column(),Me):Be=="closeTag"?Le:be}function Me(Be,Ve,Ie){return Be=="word"?(Ie.tagName=Ve.current(),pe="tag",Te):z.allowMissingTagName&&Be=="endTag"?(pe="tag bracket",Te(Be,Ve,Ie)):(pe="error",Me)}function Le(Be,Ve,Ie){if(Be=="word"){var Ze=Ve.current();return Ie.context&&Ie.context.tagName!=Ze&&z.implicitlyClosed.hasOwnProperty(Ie.context.tagName)&&Se(Ie),Ie.context&&Ie.context.tagName==Ze||z.matchClosing===!1?(pe="tag",Ce):(pe="tag error",Ne)}else return z.allowMissingTagName&&Be=="endTag"?(pe="tag bracket",Ce(Be,Ve,Ie)):(pe="error",Ne)}function Ce(Be,Ve,Ie){return Be!="endTag"?(pe="error",Ce):(Se(Ie),be)}function Ne(Be,Ve,Ie){return pe="error",Ce(Be,Ve,Ie)}function Te(Be,Ve,Ie){if(Be=="word")return pe="attribute",De;if(Be=="endTag"||Be=="selfcloseTag"){var Ze=Ie.tagName,Qe=Ie.tagStart;return Ie.tagName=Ie.tagStart=null,Be=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(Ze)?we(Ie,Ze):(we(Ie,Ze),Ie.context=new xe(Ie,Ze,Qe==Ie.indented)),be}return pe="error",Te}function De(Be,Ve,Ie){return Be=="equals"?Ee:(z.allowMissing||(pe="error"),Te(Be,Ve,Ie))}function Ee(Be,Ve,Ie){return Be=="string"?Pe:Be=="word"&&z.allowUnquoted?(pe="string",Te):(pe="error",Te(Be,Ve,Ie))}function Pe(Be,Ve,Ie){return Be=="string"?Pe:Te(Be,Ve,Ie)}return{startState:function(Be){var Ve={tokenize:ne,state:be,indented:Be||0,tagName:null,tagStart:null,context:null};return Be!=null&&(Ve.baseIndent=Be),Ve},token:function(Be,Ve){if(!Ve.tagName&&Be.sol()&&(Ve.indented=Be.indentation()),Be.eatSpace())return null;se=null;var Ie=Ve.tokenize(Be,Ve);return(Ie||se)&&Ie!="comment"&&(pe=null,Ve.state=Ve.state(se||Ie,Be,Ve),pe&&(Ie=pe=="error"?Ie+" error":pe)),Ie},indent:function(Be,Ve,Ie){var Ze=Be.context;if(Be.tokenize.isInAttribute)return Be.tagStart==Be.indented?Be.stringStartCol+1:Be.indented+re;if(Ze&&Ze.noIndent)return Ye.Pass;if(Be.tokenize!=ae&&Be.tokenize!=ne)return Ie?Ie.match(/^(\s*)/)[0].length:0;if(Be.tagName)return z.multilineTagIndentPastTag!==!1?Be.tagStart+Be.tagName.length+2:Be.tagStart+re*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(Ve))return 0;var Qe=Ve&&/^<(\/)?([\w_:\.-]*)/.exec(Ve);if(Qe&&Qe[1])for(;Ze;)if(Ze.tagName==Qe[2]){Ze=Ze.prev;break}else if(z.implicitlyClosed.hasOwnProperty(Ze.tagName))Ze=Ze.prev;else break;else if(Qe)for(;Ze;){var tt=z.contextGrabbers[Ze.tagName];if(tt&&tt.hasOwnProperty(Qe[2]))Ze=Ze.prev;else break}for(;Ze&&Ze.prev&&!Ze.startOfLine;)Ze=Ze.prev;return Ze?Ze.indent+re:Be.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(Be){Be.state==Ee&&(Be.state=Te)},xmlCurrentTag:function(Be){return Be.tagName?{name:Be.tagName,close:Be.type=="closeTag"}:null},xmlCurrentContext:function(Be){for(var Ve=[],Ie=Be.context;Ie;Ie=Ie.prev)Ie.tagName&&Ve.push(Ie.tagName);return Ve.reverse()}}}),Ye.defineMIME("text/xml","xml"),Ye.defineMIME("application/xml","xml"),Ye.mimeModes.hasOwnProperty("text/html")||Ye.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(gr,Wt,ke){var Ye,vt;(function(x,Ae){gr.exports=Ae(x)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ke.g!="undefined"?ke.g:this,function(x){"use strict";x=x||{};var Ae=x.Base64,me="2.6.4",re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=function(Ie){for(var Ze={},Qe=0,tt=Ie.length;Qe<tt;Qe++)Ze[Ie.charAt(Qe)]=Qe;return Ze}(re),ie=String.fromCharCode,oe=function(Ie){if(Ie.length<2){var Ze=Ie.charCodeAt(0);return Ze<128?Ie:Ze<2048?ie(192|Ze>>>6)+ie(128|Ze&63):ie(224|Ze>>>12&15)+ie(128|Ze>>>6&63)+ie(128|Ze&63)}else{var Ze=65536+(Ie.charCodeAt(0)-55296)*1024+(Ie.charCodeAt(1)-56320);return ie(240|Ze>>>18&7)+ie(128|Ze>>>12&63)+ie(128|Ze>>>6&63)+ie(128|Ze&63)}},se=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,pe=function(Ie){return Ie.replace(se,oe)},ne=function(Ie){var Ze=[0,2,1][Ie.length%3],Qe=Ie.charCodeAt(0)<<16|(Ie.length>1?Ie.charCodeAt(1):0)<<8|(Ie.length>2?Ie.charCodeAt(2):0),tt=[re.charAt(Qe>>>18),re.charAt(Qe>>>12&63),Ze>=2?"=":re.charAt(Qe>>>6&63),Ze>=1?"=":re.charAt(Qe&63)];return tt.join("")},ae=x.btoa&&typeof x.btoa=="function"?function(Ie){return x.btoa(Ie)}:function(Ie){if(Ie.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ie.replace(/[\s\S]{1,3}/g,ne)},ue=function(Ie){return ae(pe(String(Ie)))},de=function(Ie){return Ie.replace(/[+\/]/g,function(Ze){return Ze=="+"?"-":"_"}).replace(/=/g,"")},he=function(Ie,Ze){return Ze?de(ue(Ie)):ue(Ie)},xe=function(Ie){return he(Ie,!0)},Se;x.Uint8Array&&(Se=function(Ie,Ze){for(var Qe="",tt=0,it=Ie.length;tt<it;tt+=3){var ht=Ie[tt],Ge=Ie[tt+1],Xe=Ie[tt+2],ct=ht<<16|Ge<<8|Xe;Qe+=re.charAt(ct>>>18)+re.charAt(ct>>>12&63)+(typeof Ge!="undefined"?re.charAt(ct>>>6&63):"=")+(typeof Xe!="undefined"?re.charAt(ct&63):"=")}return Ze?de(Qe):Qe});var we=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,be=function(Ie){switch(Ie.length){case 4:var Ze=(7&Ie.charCodeAt(0))<<18|(63&Ie.charCodeAt(1))<<12|(63&Ie.charCodeAt(2))<<6|63&Ie.charCodeAt(3),Qe=Ze-65536;return ie((Qe>>>10)+55296)+ie((Qe&1023)+56320);case 3:return ie((15&Ie.charCodeAt(0))<<12|(63&Ie.charCodeAt(1))<<6|63&Ie.charCodeAt(2));default:return ie((31&Ie.charCodeAt(0))<<6|63&Ie.charCodeAt(1))}},Me=function(Ie){return Ie.replace(we,be)},Le=function(Ie){var Ze=Ie.length,Qe=Ze%4,tt=(Ze>0?z[Ie.charAt(0)]<<18:0)|(Ze>1?z[Ie.charAt(1)]<<12:0)|(Ze>2?z[Ie.charAt(2)]<<6:0)|(Ze>3?z[Ie.charAt(3)]:0),it=[ie(tt>>>16),ie(tt>>>8&255),ie(tt&255)];return it.length-=[0,0,2,1][Qe],it.join("")},Ce=x.atob&&typeof x.atob=="function"?function(Ie){return x.atob(Ie)}:function(Ie){return Ie.replace(/\S{1,4}/g,Le)},Ne=function(Ie){return Ce(String(Ie).replace(/[^A-Za-z0-9\+\/]/g,""))},Te=function(Ie){return Me(Ce(Ie))},De=function(Ie){return String(Ie).replace(/[-_]/g,function(Ze){return Ze=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ee=function(Ie){return Te(De(Ie))},Pe;x.Uint8Array&&(Pe=function(Ie){return Uint8Array.from(Ne(De(Ie)),function(Ze){return Ze.charCodeAt(0)})});var Be=function(){var Ie=x.Base64;return x.Base64=Ae,Ie};if(x.Base64={VERSION:me,atob:Ne,btoa:ae,fromBase64:Ee,toBase64:he,utob:pe,encode:he,encodeURI:xe,btou:Me,decode:Ee,noConflict:Be,fromUint8Array:Se,toUint8Array:Pe},typeof Object.defineProperty=="function"){var Ve=function(Ie){return{value:Ie,enumerable:!1,writable:!0,configurable:!0}};x.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ve(function(){return Ee(this)})),Object.defineProperty(String.prototype,"toBase64",Ve(function(Ie){return he(this,Ie)})),Object.defineProperty(String.prototype,"toBase64URI",Ve(function(){return he(this,!0)}))}}return x.Meteor&&(Base64=x.Base64),gr.exports?gr.exports.Base64=x.Base64:(Ye=[],vt=function(){return x.Base64}.apply(Wt,Ye),vt!==void 0&&(gr.exports=vt)),{Base64:x.Base64}})},2859:function(gr,Wt,ke){"use strict";ke.d(Wt,{hP:function(){return Ue}});var Ye=function($e,le){return(Ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,Fe){fe.__proto__=Fe}||function(fe,Fe){for(var He in Fe)Object.prototype.hasOwnProperty.call(Fe,He)&&(fe[He]=Fe[He])})($e,le)};function vt($e,le){function fe(){this.constructor=$e}Ye($e,le),$e.prototype=le===null?Object.create(le):(fe.prototype=le.prototype,new fe)}function x($e,le,fe,Fe){return new(fe||(fe=Promise))(function(He,ye){function Re(We){try{Ke(Fe.next(We))}catch(st){ye(st)}}function ze(We){try{Ke(Fe.throw(We))}catch(st){ye(st)}}function Ke(We){var st;We.done?He(We.value):(st=We.value,st instanceof fe?st:new fe(function(bt){bt(st)})).then(Re,ze)}Ke((Fe=Fe.apply($e,le||[])).next())})}function Ae($e,le){var fe,Fe,He,ye,Re={label:0,sent:function(){if(1&He[0])throw He[1];return He[1]},trys:[],ops:[]};return ye={next:ze(0),throw:ze(1),return:ze(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function ze(Ke){return function(We){return function(st){if(fe)throw new TypeError("Generator is already executing.");for(;Re;)try{if(fe=1,Fe&&(He=2&st[0]?Fe.return:st[0]?Fe.throw||((He=Fe.return)&&He.call(Fe),0):Fe.next)&&!(He=He.call(Fe,st[1])).done)return He;switch(Fe=0,He&&(st=[2&st[0],He.value]),st[0]){case 0:case 1:He=st;break;case 4:return Re.label++,{value:st[1],done:!1};case 5:Re.label++,Fe=st[1],st=[0];continue;case 7:st=Re.ops.pop(),Re.trys.pop();continue;default:if(He=Re.trys,!((He=He.length>0&&He[He.length-1])||st[0]!==6&&st[0]!==2)){Re=0;continue}if(st[0]===3&&(!He||st[1]>He[0]&&st[1]<He[3])){Re.label=st[1];break}if(st[0]===6&&Re.label<He[1]){Re.label=He[1],He=st;break}if(He&&Re.label<He[2]){Re.label=He[2],Re.ops.push(st);break}He[2]&&Re.ops.pop(),Re.trys.pop();continue}st=le.call($e,Re)}catch(bt){st=[6,bt],Fe=0}finally{fe=He=0}if(5&st[0])throw st[1];return{value:st[0]?st[1]:void 0,done:!0}}([Ke,We])}}}function me(){for(var $e=0,le=0,fe=arguments.length;le<fe;le++)$e+=arguments[le].length;var Fe=Array($e),He=0;for(le=0;le<fe;le++)for(var ye=arguments[le],Re=0,ze=ye.length;Re<ze;Re++,He++)Fe[He]=ye[Re];return Fe}var re=function(){function $e(){}return $e.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},$e.setAttributes=function(le,fe){for(var Fe=0,He=fe;Fe<He.length;Fe++){var ye=He[Fe],Re=ye[0],ze=ye[1];le.setAttribute(Re,ze)}},$e.createRect=function(le,fe,Fe){var He=document.createElementNS("http://www.w3.org/2000/svg","rect");return He.setAttribute("width",le.toString()),He.setAttribute("height",fe.toString()),Fe&&$e.setAttributes(He,Fe),He},$e.createLine=function(le,fe,Fe,He,ye){var Re=document.createElementNS("http://www.w3.org/2000/svg","line");return Re.setAttribute("x1",le.toString()),Re.setAttribute("y1",fe.toString()),Re.setAttribute("x2",Fe.toString()),Re.setAttribute("y2",He.toString()),ye&&$e.setAttributes(Re,ye),Re},$e.createPolygon=function(le,fe){var Fe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Fe.setAttribute("points",le),fe&&$e.setAttributes(Fe,fe),Fe},$e.createCircle=function(le,fe){var Fe=document.createElementNS("http://www.w3.org/2000/svg","circle");return Fe.setAttribute("cx",(le/2).toString()),Fe.setAttribute("cy",(le/2).toString()),Fe.setAttribute("r",le.toString()),fe&&$e.setAttributes(Fe,fe),Fe},$e.createEllipse=function(le,fe,Fe){var He=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return He.setAttribute("cx",(le/2).toString()),He.setAttribute("cy",(fe/2).toString()),He.setAttribute("rx",(le/2).toString()),He.setAttribute("ry",(fe/2).toString()),Fe&&$e.setAttributes(He,Fe),He},$e.createGroup=function(le){var fe=document.createElementNS("http://www.w3.org/2000/svg","g");return le&&$e.setAttributes(fe,le),fe},$e.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},$e.createMarker=function(le,fe,Fe,He,ye,Re,ze){var Ke=document.createElementNS("http://www.w3.org/2000/svg","marker");return $e.setAttributes(Ke,[["id",le],["orient",fe],["markerWidth",Fe.toString()],["markerHeight",He.toString()],["refX",ye.toString()],["refY",Re.toString()]]),Ke.appendChild(ze),Ke},$e.createText=function(le){var fe=document.createElementNS("http://www.w3.org/2000/svg","text");return fe.setAttribute("x","0"),fe.setAttribute("y","0"),le&&$e.setAttributes(fe,le),fe},$e.createTSpan=function(le,fe){var Fe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Fe.textContent=le,fe&&$e.setAttributes(Fe,fe),Fe},$e.createImage=function(le){var fe=document.createElementNS("http://www.w3.org/2000/svg","image");return le&&$e.setAttributes(fe,le),fe},$e.createPoint=function(le,fe){var Fe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Fe.x=le,Fe.y=fe,Fe},$e.createPath=function(le,fe){var Fe=document.createElementNS("http://www.w3.org/2000/svg","path");return Fe.setAttribute("d",le),fe&&$e.setAttributes(Fe,fe),Fe},$e}(),z=function(){function $e(){}return $e.addKey=function(le){$e.key=le},Object.defineProperty($e,"isLicensed",{get:function(){return!!$e.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test($e.key)},enumerable:!1,configurable:!0}),$e}(),ie=function(){function $e(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return $e.prototype.rasterize=function(le,fe,Fe){var He=this;return new Promise(function(ye){var Re=Fe!==void 0?Fe:document.createElement("canvas");le===null&&(He.markersOnly=!0,He.naturalSize=!1);var ze=document.createElementNS("http://www.w3.org/2000/svg","svg");ze.setAttribute("xmlns","http://www.w3.org/2000/svg"),ze.setAttribute("width",fe.width.baseVal.valueAsString),ze.setAttribute("height",fe.height.baseVal.valueAsString),ze.setAttribute("viewBox","0 0 "+fe.viewBox.baseVal.width.toString()+" "+fe.viewBox.baseVal.height.toString()),ze.innerHTML=fe.innerHTML,He.naturalSize===!0?(ze.width.baseVal.value=le.naturalWidth,ze.height.baseVal.value=le.naturalHeight):He.width!==void 0&&He.height!==void 0&&(ze.width.baseVal.value=He.width,ze.height.baseVal.value=He.height),Re.width=ze.width.baseVal.value,Re.height=ze.height.baseVal.value;var Ke=ze.outerHTML,We=Re.getContext("2d");He.markersOnly!==!0&&We.drawImage(le,0,0,Re.width,Re.height);var st=window.URL,bt=new Image(Re.width,Re.height);bt.setAttribute("crossOrigin","anonymous");var at=new Blob([Ke],{type:"image/svg+xml"}),kt=st.createObjectURL(at);bt.onload=function(){We.drawImage(bt,0,0),st.revokeObjectURL(kt);var Ht=Re.toDataURL(He.imageType,He.imageQuality);ye(Ht)},bt.src=kt})},$e}(),oe=function(){},se=function(){function $e(le){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+le+"_"}return Object.defineProperty($e.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty($e.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($e.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),$e.prototype.addClass=function(le){return this.styleSheet===void 0&&this.addStyleSheet(),le.name=""+this.classNamePrefix+le.localName,this.classes.push(le),this.styleSheet.sheet.insertRule("."+le.name+" {"+le.style+"}",this.styleSheet.sheet.cssRules.length),le},$e.prototype.addRule=function(le){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(le),this.styleSheet.sheet.insertRule(le.selector+" {"+le.style+"}",this.styleSheet.sheet.cssRules.length)},$e.prototype.addStyleSheet=function(){var le;this.styleSheet=document.createElement("style"),((le=this.styleSheetRoot)!==null&&le!==void 0?le:document.head).appendChild(this.styleSheet),this.addRule(new pe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new pe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new pe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ne("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ne("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},$e.prototype.removeStyleSheet=function(){var le;this.styleSheet&&(((le=this.styleSheetRoot)!==null&&le!==void 0?le:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},$e}(),pe=function($e,le){this.selector=$e,this.style=le},ne=function($e,le){this.localName=$e,this.style=le},ae=function(){function $e(le,fe,Fe,He,ye){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=le,this.displayMode=fe,this.markerItems=Fe,this.uiStyleSettings=He,this.styles=ye,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return $e.prototype.show=function(le){var fe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=le,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Fe=document.createElement("div");Fe.className=this.toolbarBlockStyleClass.name,Fe.style.whiteSpace="nowrap",this.uiContainer.appendChild(Fe),this.addActionButton(Fe,'<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(Fe,'<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(Fe,'<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(Fe,'<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(Fe,'<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(Fe,'<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(Fe,'<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(Fe,'<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(ye){var Re=document.createElement("div");Re.className=""+fe.toolbarButtonStyleClass.name,Re.setAttribute("data-type-name",ye.typeName),Re.innerHTML=ye.icon,Re.addEventListener("click",function(){fe.markerToolbarButtonClicked(Re,ye)}),fe.buttons.push(Re),fe.markerButtons.push(Re)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var He=document.createElement("div");He.className=this.toolbarBlockStyleClass.name,He.style.whiteSpace="nowrap",He.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(He),this.addActionButton(He,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(He,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},$e.prototype.addButtonClickListener=function(le){this.buttonClickListeners.push(le)},$e.prototype.removeButtonClickListener=function(le){this.buttonClickListeners.indexOf(le)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(le),1)},$e.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},$e.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var le=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var fe=0;fe<this.markerButtons.length;fe++)fe<le||fe===le&&this.markerButtons.length-1===le?this.markerButtonBlock.appendChild(this.markerButtons[fe]):(fe===le&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[fe]))}},$e.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")},$e.prototype.resetButtonStyles=function(){var le=this;this.buttons.forEach(function(fe){fe.className=fe.className.replace(le.uiStyleSettings.toolbarButtonStyleColorsClassName?le.uiStyleSettings.toolbarButtonStyleColorsClassName:le.toolbarButtonStyleColorsClass.name,"").trim(),fe.className=fe.className.replace(le.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?le.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:le.toolbarActiveButtonStyleColorsClass.name,"").trim(),fe.className+=" "+(le.uiStyleSettings.toolbarButtonStyleColorsClassName?le.uiStyleSettings.toolbarButtonStyleColorsClassName:le.toolbarButtonStyleColorsClass.name)})},$e.prototype.addActionButton=function(le,fe,Fe){var He=this,ye=document.createElement("div");switch(ye.className=""+this.toolbarButtonStyleClass.name,ye.innerHTML=fe,ye.setAttribute("data-action",Fe),ye.addEventListener("click",function(){He.actionToolbarButtonClicked(ye,Fe)}),Fe){case"select":ye.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ye.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ye.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ye.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ye.style.fill=this.uiStyleSettings.closeButtonColor}le.appendChild(ye),this.buttons.push(ye)},$e.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ne("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 ne("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ne("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ne("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 ne("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var le=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ne("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*le)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*le)+`px;
|
|
|
padding: `+le+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ne("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ne("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new pe("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new pe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},$e.prototype.markerToolbarButtonClicked=function(le,fe){this.setActiveButton(le),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Fe){return Fe("marker",fe)}),this.markerButtonOverflowBlock.style.display="none"},$e.prototype.actionToolbarButtonClicked=function(le,fe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Fe){return Fe("action",fe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},$e.prototype.setActiveButton=function(le){this.resetButtonStyles(),le.className=le.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),le.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},$e.prototype.setActiveMarkerButton=function(le){var fe=this.markerButtons.find(function(Fe){return Fe.getAttribute("data-type-name")===le});fe&&this.setActiveButton(fe)},$e.prototype.setCurrentMarker=function(le){var fe=this;this.currentMarker=le,this.buttons.filter(function(Fe){return/delete|notes/.test(Fe.getAttribute("data-action"))}).forEach(function(Fe){fe.currentMarker===void 0?(Fe.style.fillOpacity="0.4",Fe.style.pointerEvents="none"):(Fe.style.fillOpacity="1",Fe.style.pointerEvents="all")})},$e}(),ue=function(){function $e(le,fe,Fe,He){this.panels=[],this.panelButtons=[],this.markerjsContainer=le,this.displayMode=fe,this.uiStyleSettings=Fe,this.styles=He,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return $e.prototype.addStyles=function(){var le;this.toolboxStyleClass=this.styles.addClass(new ne("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 ne("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var fe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ne("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ne("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ne("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 ne("toolbox-panel-row_colors",`
|
|
|
background-color: `+((le=this.uiStyleSettings.toolboxBackgroundColor)!==null&&le!==void 0?le:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ne("toolbox_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.toolboxButtonStyleColorsClass=this.styles.addClass(new ne("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ne("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new pe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new pe("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},$e.prototype.show=function(le){var fe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=le,this.uiContainer.className=this.toolboxStyleClass.name+" "+((fe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&fe!==void 0?fe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},$e.prototype.setPanelButtons=function(le){var fe,Fe,He=this;this.panels=le,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((fe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&fe!==void 0?fe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Fe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Fe!==void 0?Fe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ye){var Re;ye.uiStyleSettings=He.uiStyleSettings;var ze=document.createElement("div");ze.className=He.toolboxButtonStyleClass.name+" "+((Re=He.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Re!==void 0?Re:He.toolboxButtonStyleColorsClass.name),ze.innerHTML=ye.icon,ze.title=ye.title,ze.addEventListener("click",function(){He.panelButtonClick(ye)}),He.panelButtons.push(ze),He.buttonRow.appendChild(ze)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},$e.prototype.panelButtonClick=function(le){var fe=this,Fe=-1;if(le!==this.activePanel){Fe=this.panels.indexOf(le),this.panelRow.innerHTML="";var He=le.getUi();He.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(He),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=le}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){fe.displayMode==="inline"?fe.panelRow.style.display="none":fe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ye,Re){var ze,Ke;ye.className=fe.toolboxButtonStyleClass.name+" "+(Re===Fe?""+((ze=fe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ze!==void 0?ze:fe.toolboxActiveButtonStyleColorsClass.name):""+((Ke=fe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ke!==void 0?Ke:fe.toolboxButtonStyleColorsClass.name))})},$e}(),de=function($e,le){this.title=$e,this.icon=le},he=function($e){function le(fe,Fe,He,ye){var Re=$e.call(this,fe,ye||'<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 Re.colors=[],Re.addTransparent=!1,Re.colorBoxes=[],Re.colors=Fe,Re.currentColor=He,Re.setCurrentColor=Re.setCurrentColor.bind(Re),Re.getColorBox=Re.getColorBox.bind(Re),Re}return vt(le,$e),le.prototype.getUi=function(){var fe=this,Fe=document.createElement("div");return Fe.style.overflow="hidden",Fe.style.whiteSpace="nowrap",this.colors.forEach(function(He){var ye=fe.getColorBox(He);Fe.appendChild(ye),fe.colorBoxes.push(ye)}),Fe},le.prototype.getColorBox=function(fe){var Fe=this,He=this.uiStyleSettings.toolbarHeight/4,ye=this.uiStyleSettings.toolbarHeight-He,Re=document.createElement("div");Re.style.display="inline-block",Re.style.boxSizing="content-box",Re.style.width=ye-2+"px",Re.style.height=ye-2+"px",Re.style.padding="1px",Re.style.marginRight="2px",Re.style.marginBottom="2px",Re.style.borderWidth="2px",Re.style.borderStyle="solid",Re.style.borderRadius=(ye+2)/2+"px",Re.style.borderColor=fe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Re.addEventListener("click",function(){Fe.setCurrentColor(fe,Re)});var ze=document.createElement("div");return ze.style.display="inline-block",ze.style.width=ye-2+"px",ze.style.height=ye-2+"px",ze.style.backgroundColor=fe,ze.style.borderRadius=ye/2+"px",fe==="transparent"&&(ze.style.fill=this.uiStyleSettings.toolboxAccentColor,ze.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>`),Re.appendChild(ze),Re},le.prototype.setCurrentColor=function(fe,Fe){var He=this;this.currentColor=fe,this.colorBoxes.forEach(function(ye){ye.style.borderColor=ye===Fe?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(fe)},le}(de),xe=function(){function $e(le,fe,Fe){this._state="new",this._isSelected=!1,this._container=le,this._overlayContainer=fe,this.globalSettings=Fe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty($e.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),$e.prototype.ownsTarget=function(le){return!1},Object.defineProperty($e.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),$e.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},$e.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},$e.prototype.pointerDown=function(le,fe){},$e.prototype.dblClick=function(le,fe){},$e.prototype.manipulate=function(le){},$e.prototype.pointerUp=function(le){this.stateChanged()},$e.prototype.dispose=function(){},$e.prototype.addMarkerVisualToContainer=function(le){this.container.childNodes.length>0?this.container.insertBefore(le,this.container.childNodes[0]):this.container.appendChild(le)},$e.prototype.getState=function(){return{typeName:$e.typeName,state:this.state,notes:this.notes}},$e.prototype.restoreState=function(le){this._state=le.state,this.notes=le.notes},$e.prototype.scale=function(le,fe){},$e.prototype.colorChanged=function(le){this.onColorChanged&&this.onColorChanged(le),this.stateChanged()},$e.prototype.fillColorChanged=function(le){this.onFillColorChanged&&this.onFillColorChanged(le),this.stateChanged()},$e.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var le=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),le.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(le)&&this.onStateChanged(this)}},$e.typeName="MarkerBase",$e}(),Se=function(){function $e(){this.findGripByVisual=this.findGripByVisual.bind(this)}return $e.prototype.findGripByVisual=function(le){return this.topLeft.ownsTarget(le)?this.topLeft:this.topCenter.ownsTarget(le)?this.topCenter:this.topRight.ownsTarget(le)?this.topRight:this.centerLeft.ownsTarget(le)?this.centerLeft:this.centerRight.ownsTarget(le)?this.centerRight:this.bottomLeft.ownsTarget(le)?this.bottomLeft:this.bottomCenter.ownsTarget(le)?this.bottomCenter:this.bottomRight.ownsTarget(le)?this.bottomRight:void 0},$e}(),we=function(){function $e(){this.GRIP_SIZE=10,this.visual=re.createGroup(),this.visual.appendChild(re.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(re.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return $e.prototype.ownsTarget=function(le){return le===this.visual||le===this.visual.childNodes[0]||le===this.visual.childNodes[1]},$e}(),be=function(){function $e(){}return $e.toITransformMatrix=function(le){return{a:le.a,b:le.b,c:le.c,d:le.d,e:le.e,f:le.f}},$e.toSVGMatrix=function(le,fe){return le.a=fe.a,le.b=fe.b,le.c=fe.c,le.d=fe.d,le.e=fe.e,le.f=fe.f,le},$e}(),Me=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.left=0,ye.top=0,ye.width=0,ye.height=0,ye.defaultSize={x:50,y:20},ye.offsetX=0,ye.offsetY=0,ye.rotationAngle=0,ye.CB_DISTANCE=10,ye._suppressMarkerCreateEvent=!1,ye.container.transform.baseVal.appendItem(re.createTransform()),ye.setupControlBox(),ye}return vt(le,$e),Object.defineProperty(le.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"visual",{get:function(){return this._visual},set:function(fe){this._visual=fe;var Fe=re.createTransform();this._visual.transform.baseVal.appendItem(Fe)},enumerable:!1,configurable:!0}),le.prototype.ownsTarget=function(fe){return!!$e.prototype.ownsTarget.call(this,fe)||!!(this.controlGrips.findGripByVisual(fe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(fe))},le.prototype.pointerDown=function(fe,Fe){$e.prototype.pointerDown.call(this,fe,Fe),this.state==="new"&&(this.left=fe.x,this.top=fe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var He=this.unrotatePoint(fe);if(this.manipulationStartX=He.x,this.manipulationStartY=He.y,this.offsetX=He.x-this.left,this.offsetY=He.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Fe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Fe)){this.activeGrip=this.rotatorGrip;var ye=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ye.x-this.width/2,this.top=ye.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Re=this.container.transform.baseVal.getItem(0);Re.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Re,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},le.prototype.pointerUp=function(fe){var Fe=this.state;$e.prototype.pointerUp.call(this,fe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(fe),this._state="select",Fe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},le.prototype.moveVisual=function(fe){this.visual.style.transform="translate("+fe.x+"px, "+fe.y+"px)"},le.prototype.manipulate=function(fe){var Fe=this.unrotatePoint(fe);this.state==="creating"?this.resize(fe):this.state==="move"?(this.left=this.manipulationStartLeft+(Fe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Fe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Fe):this.state==="rotate"&&this.rotate(fe)},le.prototype.resize=function(fe){var Fe=this.manipulationStartLeft,He=this.manipulationStartWidth,ye=this.manipulationStartTop,Re=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Fe=this.manipulationStartLeft+fe.x-this.manipulationStartX,He=this.manipulationStartWidth+this.manipulationStartLeft-Fe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:He=this.manipulationStartWidth+fe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ye=this.manipulationStartTop+fe.y-this.manipulationStartY,Re=this.manipulationStartHeight+this.manipulationStartTop-ye;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Re=this.manipulationStartHeight+fe.y-this.manipulationStartY}He>=0?(this.left=Fe,this.width=He):(this.left=Fe+He,this.width=-He),Re>=0?(this.top=ye,this.height=Re):(this.top=ye+Re,this.height=-Re),this.setSize()},le.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},le.prototype.rotate=function(fe){if(Math.abs(fe.x-this.centerX)>.1){var Fe=Math.sign(fe.x-this.centerX);this.rotationAngle=180*Math.atan((fe.y-this.centerY)/(fe.x-this.centerX))/Math.PI+90*Fe,this.applyRotation()}},le.prototype.applyRotation=function(){var fe=this.container.transform.baseVal.getItem(0);fe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(fe,0)},le.prototype.rotatePoint=function(fe){if(this.rotationAngle===0)return fe;var Fe=this.container.getCTM(),He=re.createPoint(fe.x,fe.y);return{x:(He=He.matrixTransform(Fe)).x,y:He.y}},le.prototype.unrotatePoint=function(fe){if(this.rotationAngle===0)return fe;var Fe=this.container.getCTM();Fe=Fe.inverse();var He=re.createPoint(fe.x,fe.y);return{x:(He=He.matrixTransform(Fe)).x,y:He.y}},le.prototype.select=function(){$e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},le.prototype.deselect=function(){$e.prototype.deselect.call(this),this.controlBox.style.display="none"},le.prototype.setupControlBox=function(){this.controlBox=re.createGroup();var fe=re.createTransform();fe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(fe),this.container.appendChild(this.controlBox),this.controlRect=re.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=re.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 Se,this.addControlGrips(),this.controlBox.style.display="none"},le.prototype.adjustControlBox=function(){var fe=this.controlBox.transform.baseVal.getItem(0);fe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(fe,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()},le.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()},le.prototype.createGrip=function(){var fe=new we;return fe.visual.transform.baseVal.appendItem(re.createTransform()),this.controlBox.appendChild(fe.visual),fe},le.prototype.positionGrips=function(){var fe=this.controlGrips.topLeft.GRIP_SIZE,Fe=-fe/2,He=Fe,ye=(this.width+this.CB_DISTANCE)/2-fe/2,Re=(this.height+this.CB_DISTANCE)/2-fe/2,ze=this.height+this.CB_DISTANCE-fe/2,Ke=this.width+this.CB_DISTANCE-fe/2;this.positionGrip(this.controlGrips.topLeft.visual,Fe,He),this.positionGrip(this.controlGrips.topCenter.visual,ye,He),this.positionGrip(this.controlGrips.topRight.visual,Ke,He),this.positionGrip(this.controlGrips.centerLeft.visual,Fe,Re),this.positionGrip(this.controlGrips.centerRight.visual,Ke,Re),this.positionGrip(this.controlGrips.bottomLeft.visual,Fe,ze),this.positionGrip(this.controlGrips.bottomCenter.visual,ye,ze),this.positionGrip(this.controlGrips.bottomRight.visual,Ke,ze),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ye,He-3*this.CB_DISTANCE)},le.prototype.positionGrip=function(fe,Fe,He){var ye=fe.transform.baseVal.getItem(0);ye.setTranslate(Fe,He),fe.transform.baseVal.replaceItem(ye,0)},le.prototype.hideControlBox=function(){this.controlBox.style.display="none"},le.prototype.showControlBox=function(){this.controlBox.style.display=""},le.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:be.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:be.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},$e.prototype.getState.call(this))},le.prototype.restoreState=function(fe){$e.prototype.restoreState.call(this,fe);var Fe=fe;this.left=Fe.left,this.top=Fe.top,this.width=Fe.width,this.height=Fe.height,this.rotationAngle=Fe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(be.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Fe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(be.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Fe.containerTransformMatrix))},le.prototype.scale=function(fe,Fe){$e.prototype.scale.call(this,fe,Fe);var He=this.rotatePoint({x:this.left,y:this.top}),ye=this.unrotatePoint({x:He.x*fe,y:He.y*Fe});this.left=ye.x,this.top=ye.y,this.width=this.width*fe,this.height=this.height*Fe,this.adjustControlBox()},le}(xe),Le=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.fillColor="transparent",ye.strokeColor="transparent",ye.strokeWidth=0,ye.strokeDasharray="",ye.opacity=1,ye.setStrokeColor=ye.setStrokeColor.bind(ye),ye.setFillColor=ye.setFillColor.bind(ye),ye.setStrokeWidth=ye.setStrokeWidth.bind(ye),ye.setStrokeDasharray=ye.setStrokeDasharray.bind(ye),ye.createVisual=ye.createVisual.bind(ye),ye}return vt(le,$e),le.prototype.ownsTarget=function(fe){return!(!$e.prototype.ownsTarget.call(this,fe)&&fe!==this.visual)},le.prototype.createVisual=function(){this.visual=re.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)},le.prototype.pointerDown=function(fe,Fe){$e.prototype.pointerDown.call(this,fe,Fe),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},le.prototype.manipulate=function(fe){$e.prototype.manipulate.call(this,fe)},le.prototype.resize=function(fe){$e.prototype.resize.call(this,fe),this.setSize()},le.prototype.setSize=function(){$e.prototype.setSize.call(this),re.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},le.prototype.pointerUp=function(fe){$e.prototype.pointerUp.call(this,fe),this.setSize()},le.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.visual&&re.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},le.prototype.setFillColor=function(fe){this.fillColor=fe,this.visual&&re.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},le.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.visual&&re.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},le.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.visual&&re.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},le.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},$e.prototype.getState.call(this))},le.prototype.restoreState=function(fe){var Fe=fe;this.fillColor=Fe.fillColor,this.strokeColor=Fe.strokeColor,this.strokeWidth=Fe.strokeWidth,this.strokeDasharray=Fe.strokeDasharray,this.opacity=Fe.opacity,this.createVisual(),$e.prototype.restoreState.call(this,fe),this.setSize()},le.prototype.scale=function(fe,Fe){$e.prototype.scale.call(this,fe,Fe),this.setSize()},le.title="Rectangle marker",le}(Me),Ce=function($e){function le(fe,Fe,He,ye){var Re=$e.call(this,fe,ye||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Re.widths=[],Re.widthBoxes=[],Re.widths=Fe,Re.currentWidth=He,Re.setCurrentWidth=Re.setCurrentWidth.bind(Re),Re}return vt(le,$e),le.prototype.getUi=function(){var fe=this,Fe=document.createElement("div");return Fe.style.display="flex",Fe.style.overflow="hidden",Fe.style.flexGrow="2",this.widths.forEach(function(He){var ye=document.createElement("div");ye.style.display="flex",ye.style.flexGrow="2",ye.style.alignItems="center",ye.style.justifyContent="space-between",ye.style.padding="5px",ye.style.borderWidth="2px",ye.style.borderStyle="solid",ye.style.borderColor=He===fe.currentWidth?fe.uiStyleSettings.toolboxAccentColor:"transparent",ye.addEventListener("click",function(){fe.setCurrentWidth(He,ye)}),Fe.appendChild(ye);var Re=document.createElement("div");Re.innerText=He.toString(),Re.style.marginRight="5px",ye.appendChild(Re);var ze=document.createElement("div");ze.style.minHeight="20px",ze.style.flexGrow="2",ze.style.display="flex",ze.style.alignItems="center";var Ke=document.createElement("hr");Ke.style.minWidth="20px",Ke.style.border="0px",Ke.style.borderTop=He+"px solid "+fe.uiStyleSettings.toolboxColor,Ke.style.flexGrow="2",ze.appendChild(Ke),ye.appendChild(ze),fe.widthBoxes.push(ye)}),Fe},le.prototype.setCurrentWidth=function(fe,Fe){var He=this;this.currentWidth=fe,this.widthBoxes.forEach(function(ye){ye.style.borderColor=ye===Fe?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},le}(de),Ne=function($e){function le(fe,Fe,He,ye){var Re=$e.call(this,fe,ye||'<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 Re.styles=[],Re.styleBoxes=[],Re.styles=Fe,Re.currentStyle=He,Re.setCurrentStyle=Re.setCurrentStyle.bind(Re),Re}return vt(le,$e),le.prototype.getUi=function(){var fe=this,Fe=document.createElement("div");return Fe.style.display="flex",Fe.style.overflow="hidden",Fe.style.flexGrow="2",this.styles.forEach(function(He){var ye=document.createElement("div");ye.style.display="flex",ye.style.alignItems="center",ye.style.justifyContent="space-between",ye.style.padding="5px",ye.style.borderWidth="2px",ye.style.borderStyle="solid",ye.style.overflow="hidden",ye.style.maxWidth=100/fe.styles.length-5+"%",ye.style.borderColor=He===fe.currentStyle?fe.uiStyleSettings.toolboxAccentColor:"transparent",ye.addEventListener("click",function(){fe.setCurrentStyle(He,ye)}),Fe.appendChild(ye);var Re=document.createElement("div");Re.style.minHeight="20px",Re.style.flexGrow="2",Re.style.overflow="hidden";var ze=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+fe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(He!==""?'stroke-dasharray="'+He+'"':"")+` />
|
|
|
</svg>`;Re.innerHTML=ze,ye.appendChild(Re),fe.styleBoxes.push(ye)}),Fe},le.prototype.setCurrentStyle=function(fe,Fe){var He=this;this.currentStyle=fe,this.styleBoxes.forEach(function(ye){ye.style.borderColor=ye===Fe?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},le}(de),Te=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.strokeColor=He.defaultColor,ye.strokeWidth=He.defaultStrokeWidth,ye.strokeDasharray=He.defaultStrokeDasharray,ye.strokePanel=new he("Line color",He.defaultColorSet,He.defaultColor),ye.strokePanel.onColorChanged=ye.setStrokeColor,ye.strokeWidthPanel=new Ce("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),ye.strokeWidthPanel.onWidthChanged=ye.setStrokeWidth,ye.strokeStylePanel=new Ne("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),ye.strokeStylePanel.onStyleChanged=ye.setStrokeDasharray,ye}return vt(le,$e),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=$e.prototype.getState.call(this);return fe.typeName=le.typeName,fe},le.typeName="FrameMarker",le.title="Frame marker",le.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',le}(Le),De=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"},Ee=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.x1=0,ye.y1=0,ye.x2=0,ye.y2=0,ye.defaultLength=50,ye.manipulationStartX=0,ye.manipulationStartY=0,ye.manipulationStartX1=0,ye.manipulationStartY1=0,ye.manipulationStartX2=0,ye.manipulationStartY2=0,ye.setupControlBox(),ye}return vt(le,$e),le.prototype.ownsTarget=function(fe){return!!$e.prototype.ownsTarget.call(this,fe)||!(!this.grip1.ownsTarget(fe)&&!this.grip2.ownsTarget(fe))},le.prototype.pointerDown=function(fe,Fe){$e.prototype.pointerDown.call(this,fe,Fe),this.manipulationStartX=fe.x,this.manipulationStartY=fe.y,this.state==="new"&&(this.x1=fe.x,this.y1=fe.y,this.x2=fe.x,this.y2=fe.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(Fe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Fe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},le.prototype.pointerUp=function(fe){var Fe=this.state;$e.prototype.pointerUp.call(this,fe),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(fe),this._state="select",Fe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},le.prototype.adjustVisual=function(){},le.prototype.manipulate=function(fe){this.state==="creating"?this.resize(fe):this.state==="move"?(this.x1=this.manipulationStartX1+fe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+fe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+fe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+fe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(fe)},le.prototype.resize=function(fe){switch(this.activeGrip){case this.grip1:this.x1=fe.x,this.y1=fe.y;break;case this.grip2:case void 0:this.x2=fe.x,this.y2=fe.y}this.adjustVisual(),this.adjustControlBox()},le.prototype.select=function(){$e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},le.prototype.deselect=function(){$e.prototype.deselect.call(this),this.controlBox.style.display="none"},le.prototype.setupControlBox=function(){this.controlBox=re.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},le.prototype.adjustControlBox=function(){this.positionGrips()},le.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},le.prototype.createGrip=function(){var fe=new we;return fe.visual.transform.baseVal.appendItem(re.createTransform()),this.controlBox.appendChild(fe.visual),fe},le.prototype.positionGrips=function(){var fe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-fe/2,this.y1-fe/2),this.positionGrip(this.grip2.visual,this.x2-fe/2,this.y2-fe/2)},le.prototype.positionGrip=function(fe,Fe,He){var ye=fe.transform.baseVal.getItem(0);ye.setTranslate(Fe,He),fe.transform.baseVal.replaceItem(ye,0)},le.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},$e.prototype.getState.call(this))},le.prototype.restoreState=function(fe){$e.prototype.restoreState.call(this,fe);var Fe=fe;this.x1=Fe.x1,this.y1=Fe.y1,this.x2=Fe.x2,this.y2=Fe.y2},le.prototype.scale=function(fe,Fe){$e.prototype.scale.call(this,fe,Fe),this.x1=this.x1*fe,this.y1=this.y1*Fe,this.x2=this.x2*fe,this.y2=this.y2*Fe,this.adjustVisual(),this.adjustControlBox()},le}(xe),Pe=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.strokeColor="transparent",ye.strokeWidth=0,ye.strokeDasharray="",ye.setStrokeColor=ye.setStrokeColor.bind(ye),ye.setStrokeWidth=ye.setStrokeWidth.bind(ye),ye.setStrokeDasharray=ye.setStrokeDasharray.bind(ye),ye.strokeColor=He.defaultColor,ye.strokeWidth=He.defaultStrokeWidth,ye.strokeDasharray=He.defaultStrokeDasharray,ye.strokePanel=new he("Line color",He.defaultColorSet,He.defaultColor),ye.strokePanel.onColorChanged=ye.setStrokeColor,ye.strokeWidthPanel=new Ce("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),ye.strokeWidthPanel.onWidthChanged=ye.setStrokeWidth,ye.strokeStylePanel=new Ne("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),ye.strokeStylePanel.onStyleChanged=ye.setStrokeDasharray,ye}return vt(le,$e),le.prototype.ownsTarget=function(fe){return!(!$e.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.selectorLine&&fe!==this.visibleLine)},le.prototype.createVisual=function(){this.visual=re.createGroup(),this.selectorLine=re.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=re.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)},le.prototype.pointerDown=function(fe,Fe){$e.prototype.pointerDown.call(this,fe,Fe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},le.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()),re.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),re.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),re.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},le.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.adjustVisual(),this.colorChanged(fe)},le.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.adjustVisual()},le.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},$e.prototype.getState.call(this));return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){$e.prototype.restoreState.call(this,fe);var Fe=fe;this.strokeColor=Fe.strokeColor,this.strokeWidth=Fe.strokeWidth,this.strokeDasharray=Fe.strokeDasharray,this.createVisual(),this.adjustVisual()},le.typeName="LineMarker",le.title="Line marker",le.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',le}(Ee),Be=function($e){function le(fe,Fe,He,ye){var Re=$e.call(this,fe,ye||'<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 Re.fonts=[],Re.fontBoxes=[],Re.fonts=Fe,Re.currentFont=He,Re.setCurrentFont=Re.setCurrentFont.bind(Re),Re}return vt(le,$e),le.prototype.getUi=function(){var fe=this,Fe=document.createElement("div");return Fe.style.overflow="hidden",Fe.style.flexGrow="2",this.fonts.forEach(function(He){var ye=document.createElement("div");ye.style.display="inline-block",ye.style.alignItems="center",ye.style.justifyContent="space-between",ye.style.padding="5px",ye.style.borderWidth="2px",ye.style.borderStyle="solid",ye.style.overflow="hidden",ye.style.maxWidth=100/fe.fonts.length-5+"%",ye.style.borderColor=He===fe.currentFont?fe.uiStyleSettings.toolboxAccentColor:"transparent",ye.addEventListener("click",function(){fe.setCurrentFont(He,ye)}),Fe.appendChild(ye);var Re=document.createElement("div");Re.style.display="flex",Re.style.minHeight="20px",Re.style.flexGrow="2",Re.style.fontFamily=He,Re.style.overflow="hidden";var ze=document.createElement("div");ze.style.whiteSpace="nowrap",ze.style.overflow="hidden",ze.style.textOverflow="ellipsis",ze.innerHTML="The quick brown fox jumps over the lazy dog",Re.appendChild(ze),ye.appendChild(Re),fe.fontBoxes.push(ye)}),Fe},le.prototype.setCurrentFont=function(fe,Fe){var He=this;this.currentFont=fe,this.fontBoxes.forEach(function(ye){ye.style.borderColor=ye===Fe?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},le}(de),Ve=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.color="transparent",ye.padding=5,ye.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ye.text=ye.DEFAULT_TEXT,ye.isMoved=!1,ye.color=He.defaultColor,ye.fontFamily=He.defaultFontFamily,ye.defaultSize={x:100,y:30},ye.setColor=ye.setColor.bind(ye),ye.setFont=ye.setFont.bind(ye),ye.renderText=ye.renderText.bind(ye),ye.sizeText=ye.sizeText.bind(ye),ye.textEditDivClicked=ye.textEditDivClicked.bind(ye),ye.showTextEditor=ye.showTextEditor.bind(ye),ye.setSize=ye.setSize.bind(ye),ye.positionTextEditor=ye.positionTextEditor.bind(ye),ye.colorPanel=new he("Color",He.defaultColorSet,He.defaultColor),ye.colorPanel.onColorChanged=ye.setColor,ye.fontFamilyPanel=new Be("Font",He.defaultFontFamilies,He.defaultFontFamily),ye.fontFamilyPanel.onFontChanged=ye.setFont,ye}return vt(le,$e),le.prototype.ownsTarget=function(fe){if($e.prototype.ownsTarget.call(this,fe)||fe===this.visual||fe===this.textElement||fe===this.bgRectangle)return!0;var Fe=!1;return this.textElement.childNodes.forEach(function(He){He===fe&&(Fe=!0)}),Fe},le.prototype.createVisual=function(){this.visual=re.createGroup(),this.bgRectangle=re.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=re.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(re.createTransform()),this.textElement.transform.baseVal.appendItem(re.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},le.prototype.pointerDown=function(fe,Fe){$e.prototype.pointerDown.call(this,fe,Fe),this.isMoved=!1,this.pointerDownPoint=fe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},le.prototype.renderText=function(){var fe=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(Fe){fe.textElement.appendChild(re.createTSpan(Fe.trim()===""?" ":Fe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},le.prototype.getTextScale=function(){var fe=this.textElement.getBBox(),Fe=1;if(fe.width>0&&fe.height>0){var He=(1*this.width-this.width*this.padding*2/100)/fe.width,ye=(1*this.height-this.height*this.padding*2/100)/fe.height;Fe=Math.min(He,ye)}return Fe},le.prototype.getTextPosition=function(fe){var Fe=this.textElement.getBBox(),He=0,ye=0;return Fe.width>0&&Fe.height>0&&(He=(this.width-Fe.width*fe)/2,ye=this.height/2-Fe.height*fe/2),{x:He,y:ye}},le.prototype.sizeText=function(){var fe=this.textElement.getBBox(),Fe=this.getTextScale(),He=this.getTextPosition(Fe);He.y-=fe.y*Fe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+He.x+"px, "+He.y+"px) scale("+Fe+", "+Fe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(He.x,He.y),this.textElement.transform.baseVal.getItem(1).setScale(Fe,Fe))},le.prototype.manipulate=function(fe){$e.prototype.manipulate.call(this,fe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(fe.x-this.pointerDownPoint.x)>5||Math.abs(fe.y-this.pointerDownPoint.y)>5)},le.prototype.resize=function(fe){$e.prototype.resize.call(this,fe),this.isMoved=!0,this.setSize(),this.sizeText()},le.prototype.setSize=function(){$e.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(re.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),re.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},le.prototype.pointerUp=function(fe){var Fe=this.state;Fe==="creating"&&(this._suppressMarkerCreateEvent=!0),$e.prototype.pointerUp.call(this,fe),this.setSize(),(Fe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},le.prototype.showTextEditor=function(){var fe=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(Fe){Fe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Fe=Number.parseFloat(fe.textEditor.style.fontSize);fe.textEditor.clientWidth>=Number.parseInt(fe.textEditor.style.maxWidth)&&Fe>.9;)Fe-=.1,fe.textEditor.style.fontSize=Math.max(Fe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Fe){Fe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Fe){if(Fe.clipboardData){var He=Fe.clipboardData.getData("text"),ye=window.getSelection();if(!ye.rangeCount)return!1;ye.deleteFromDocument(),ye.getRangeAt(0).insertNode(document.createTextNode(He)),Fe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){fe.textEditDivClicked(fe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},le.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var fe=this.getTextScale(),Fe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),He=this.textElement.getBBox(),ye={x:He.width*fe,y:He.height*fe};Fe.x-=ye.x/2,Fe.y-=ye.y/2,this.textEditor.style.top=Fe.y+"px",this.textEditor.style.left=Fe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Fe.x+"px",this.textEditor.style.fontSize=Math.max(16*fe,12)+"px",this.textElement.style.display="none"}},le.prototype.textEditDivClicked=function(fe){this.text=fe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},le.prototype.select=function(){$e.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},le.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),$e.prototype.deselect.call(this)},le.prototype.dblClick=function(fe,Fe){$e.prototype.dblClick.call(this,fe,Fe),this.showTextEditor()},le.prototype.setColor=function(fe){this.textElement&&re.setAttributes(this.textElement,[["fill",fe]]),this.color=fe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(fe)},le.prototype.setFont=function(fe){this.textElement&&re.setAttributes(this.textElement,[["font-family",fe]]),this.fontFamily=fe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},le.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},le.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},$e.prototype.getState.call(this));return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){var Fe=fe;this.color=Fe.color,this.fontFamily=Fe.fontFamily,this.padding=Fe.padding,this.text=Fe.text,this.createVisual(),$e.prototype.restoreState.call(this,fe),this.setSize()},le.prototype.scale=function(fe,Fe){$e.prototype.scale.call(this,fe,Fe),this.setSize(),this.sizeText(),this.positionTextEditor()},le.typeName="TextMarker",le.title="Text marker",le.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>',le}(Me),Ie=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.color="transparent",ye.lineWidth=3,ye.drawing=!1,ye.pixelRatio=1,ye.color=He.defaultColor,ye.lineWidth=He.defaultStrokeWidth,ye.pixelRatio=He.freehandPixelRatio,ye.setColor=ye.setColor.bind(ye),ye.addCanvas=ye.addCanvas.bind(ye),ye.finishCreation=ye.finishCreation.bind(ye),ye.setLineWidth=ye.setLineWidth.bind(ye),ye.colorPanel=new he("Color",He.defaultColorSet,He.defaultColor),ye.colorPanel.onColorChanged=ye.setColor,ye.lineWidthPanel=new Ce("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),ye.lineWidthPanel.onWidthChanged=ye.setLineWidth,ye}return vt(le,$e),le.prototype.ownsTarget=function(fe){return!(!$e.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.drawingImage)},le.prototype.createVisual=function(){this.visual=re.createGroup(),this.drawingImage=re.createImage(),this.visual.appendChild(this.drawingImage);var fe=re.createTransform();this.visual.transform.baseVal.appendItem(fe),this.addMarkerVisualToContainer(this.visual)},le.prototype.pointerDown=function(fe,Fe){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(fe.x,fe.y),this.drawing=!0):$e.prototype.pointerDown.call(this,fe,Fe)},le.prototype.manipulate=function(fe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(fe.x,fe.y),this.canvasContext.stroke()):$e.prototype.manipulate.call(this,fe)},le.prototype.resize=function(fe){$e.prototype.resize.call(this,fe),re.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),re.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},le.prototype.pointerUp=function(fe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):$e.prototype.pointerUp.call(this,fe)},le.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)},le.prototype.select=function(){this.state==="creating"&&this.finishCreation(),$e.prototype.select.call(this)},le.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),$e.prototype.deselect.call(this)},le.prototype.finishCreation=function(){for(var fe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Fe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],He=Fe[0],ye=Fe[1],Re=Fe[2],ze=Fe[3],Ke=!1,We=0;We<this.canvasElement.height;We++)for(var st=0;st<this.canvasElement.width;st++)fe.data[We*this.canvasElement.width*4+4*st+3]>0&&(Ke=!0,We<ye&&(ye=We),st<He&&(He=st),We>ze&&(ze=We),st>Re&&(Re=st));if(Ke){this.left=He/this.pixelRatio,this.top=ye/this.pixelRatio,this.width=(Re-He)/this.pixelRatio,this.height=(ze-ye)/this.pixelRatio;var bt=document.createElement("canvas");bt.width=Re-He,bt.height=ze-ye,bt.getContext("2d").putImageData(this.canvasContext.getImageData(He,ye,Re-He,ze-ye),0,0),this.drawingImgUrl=bt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},le.prototype.setDrawingImage=function(){re.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),re.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},le.prototype.setColor=function(fe){this.color=fe,this.colorChanged(fe)},le.prototype.setLineWidth=function(fe){this.lineWidth=fe},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=Object.assign({drawingImgUrl:this.drawingImgUrl},$e.prototype.getState.call(this));return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){this.createVisual(),$e.prototype.restoreState.call(this,fe),this.drawingImgUrl=fe.drawingImgUrl,this.setDrawingImage()},le.prototype.scale=function(fe,Fe){$e.prototype.scale.call(this,fe,Fe),this.setDrawingImage()},le.typeName="FreehandMarker",le.title="Freehand marker",le.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>',le}(Me),Ze=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,He||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ye.typeBoxes=[],ye.currentType=Fe,ye.setCurrentType=ye.setCurrentType.bind(ye),ye}return vt(le,$e),le.prototype.getUi=function(){var fe=this,Fe=document.createElement("div");Fe.style.display="flex",Fe.style.overflow="hidden",Fe.style.flexGrow="2";for(var He=function(ze){var Ke="both";switch(ze){case 0:Ke="both";break;case 1:Ke="start";break;case 2:Ke="end";break;case 3:Ke="none"}var We=document.createElement("div");if(We.style.display="flex",We.style.flexGrow="2",We.style.alignItems="center",We.style.justifyContent="space-between",We.style.padding="5px",We.style.borderWidth="2px",We.style.borderStyle="solid",We.style.borderColor=Ke===ye.currentType?ye.uiStyleSettings.toolboxAccentColor:"transparent",We.addEventListener("click",function(){fe.setCurrentType(Ke,We)}),Fe.appendChild(We),Ke==="both"||Ke==="start"){var st=document.createElement("div");st.style.display="flex",st.style.alignItems="center",st.style.minHeight="20px",st.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(ye.uiStyleSettings!==void 0?ye.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,st.style.marginLeft="5px",We.appendChild(st)}var bt=document.createElement("div");bt.style.display="flex",bt.style.alignItems="center",bt.style.minHeight="20px",bt.style.flexGrow="2";var at=document.createElement("hr");if(at.style.minWidth="20px",at.style.border="0px",at.style.borderTop="3px solid "+(ye.uiStyleSettings!==void 0?ye.uiStyleSettings.toolboxColor:"#eeeeee"),at.style.flexGrow="2",bt.appendChild(at),We.appendChild(bt),Ke==="both"||Ke==="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="`+(ye.uiStyleSettings!==void 0?ye.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,kt.style.marginRight="5px",We.appendChild(kt)}ye.typeBoxes.push(We)},ye=this,Re=0;Re<4;Re++)He(Re);return Fe},le.prototype.setCurrentType=function(fe,Fe){var He=this;this.currentType=fe,this.typeBoxes.forEach(function(ye){ye.style.borderColor=ye===Fe?He.uiStyleSettings!==void 0?He.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},le}(de),Qe=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.arrowType="end",ye.arrowBaseHeight=10,ye.arrowBaseWidth=10,ye.getArrowPoints=ye.getArrowPoints.bind(ye),ye.setArrowType=ye.setArrowType.bind(ye),ye.arrowTypePanel=new Ze("Arrow type","end"),ye.arrowTypePanel.onArrowTypeChanged=ye.setArrowType,ye}return vt(le,$e),le.prototype.ownsTarget=function(fe){return!(!$e.prototype.ownsTarget.call(this,fe)&&fe!==this.arrow1&&fe!==this.arrow2)},le.prototype.getArrowPoints=function(fe,Fe){var He=this.arrowBaseWidth+2*this.strokeWidth,ye=this.arrowBaseHeight+2*this.strokeWidth;return fe-He/2+","+(Fe+ye/2)+" "+fe+","+(Fe-ye/2)+" "+(fe+He/2)+","+(Fe+ye/2)},le.prototype.createTips=function(){this.arrow1=re.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(re.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=re.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(re.createTransform()),this.visual.appendChild(this.arrow2)},le.prototype.pointerDown=function(fe,Fe){$e.prototype.pointerDown.call(this,fe,Fe),this.state==="creating"&&this.createTips()},le.prototype.adjustVisual=function(){if($e.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",re.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),re.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var fe=0;Math.abs(this.x1-this.x2)>.1&&(fe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Fe=this.arrow1.transform.baseVal.getItem(0);Fe.setRotate(fe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Fe,0);var He=this.arrow2.transform.baseVal.getItem(0);He.setRotate(fe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(He,0)}},le.prototype.setArrowType=function(fe){this.arrowType=fe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=Object.assign({arrowType:this.arrowType},$e.prototype.getState.call(this));return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){$e.prototype.restoreState.call(this,fe);var Fe=fe;this.arrowType=Fe.arrowType,this.createTips(),this.adjustVisual()},le.typeName="ArrowMarker",le.title="Arrow marker",le.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',le}(Pe),tt=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.fillColor=He.defaultFillColor,ye.strokeWidth=0,ye.fillPanel=new he("Color",He.defaultColorSet,He.defaultFillColor),ye.fillPanel.onColorChanged=ye.setFillColor,ye}return vt(le,$e),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=$e.prototype.getState.call(this);return fe.typeName=le.typeName,fe},le.typeName="CoverMarker",le.title="Cover marker",le.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',le}(Le),it=function($e){function le(fe,Fe,He,ye){var Re=$e.call(this,fe,ye||'<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 Re.opacities=[],Re.opacityBoxes=[],Re.opacities=Fe,Re.currentOpacity=He,Re.setCurrentOpacity=Re.setCurrentOpacity.bind(Re),Re}return vt(le,$e),le.prototype.getUi=function(){var fe=this,Fe=document.createElement("div");return Fe.style.display="flex",Fe.style.overflow="hidden",Fe.style.flexGrow="2",Fe.style.justifyContent="space-between",this.opacities.forEach(function(He){var ye=document.createElement("div");ye.style.display="flex",ye.style.alignItems="center",ye.style.justifyContent="center",ye.style.padding="5px",ye.style.borderWidth="2px",ye.style.borderStyle="solid",ye.style.borderColor=He===fe.currentOpacity?fe.uiStyleSettings.toolboxAccentColor:"transparent",ye.addEventListener("click",function(){fe.setCurrentOpacity(He,ye)}),Fe.appendChild(ye);var Re=document.createElement("div");Re.innerText=100*He+"%",ye.appendChild(Re),fe.opacityBoxes.push(ye)}),Fe},le.prototype.setCurrentOpacity=function(fe,Fe){var He=this;this.currentOpacity=fe,this.opacityBoxes.forEach(function(ye){ye.style.borderColor=ye===Fe?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},le}(de),ht=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.setOpacity=ye.setOpacity.bind(ye),ye.fillColor=He.defaultHighlightColor,ye.strokeWidth=0,ye.opacity=He.defaultHighlightOpacity,ye.fillPanel=new he("Color",He.defaultColorSet,ye.fillColor),ye.fillPanel.onColorChanged=ye.setFillColor,ye.opacityPanel=new it("Opacity",He.defaultOpacitySteps,ye.opacity),ye.opacityPanel.onOpacityChanged=ye.setOpacity,ye}return vt(le,$e),le.prototype.setOpacity=function(fe){this.opacity=fe,this.visual&&re.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=$e.prototype.getState.call(this);return fe.typeName=le.typeName,fe},le.typeName="HighlightMarker",le.title="Highlight marker",le.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>',le}(tt),Ge='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',Xe='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',ct=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.bgColor="transparent",ye.tipPosition={x:0,y:0},ye.tipBase1Position={x:0,y:0},ye.tipBase2Position={x:0,y:0},ye.tipMoving=!1,ye.color=He.defaultStrokeColor,ye.bgColor=He.defaultFillColor,ye.fontFamily=He.defaultFontFamily,ye.defaultSize={x:100,y:30},ye.setBgColor=ye.setBgColor.bind(ye),ye.getTipPoints=ye.getTipPoints.bind(ye),ye.positionTip=ye.positionTip.bind(ye),ye.setTipPoints=ye.setTipPoints.bind(ye),ye.colorPanel=new he("Text color",He.defaultColorSet,ye.color,Ge),ye.colorPanel.onColorChanged=ye.setColor,ye.bgColorPanel=new he("Fill color",He.defaultColorSet,ye.bgColor,Xe),ye.bgColorPanel.onColorChanged=ye.setBgColor,ye.fontFamilyPanel=new Be("Font",He.defaultFontFamilies,He.defaultFontFamily),ye.fontFamilyPanel.onFontChanged=ye.setFont,ye.tipGrip=new we,ye.tipGrip.visual.transform.baseVal.appendItem(re.createTransform()),ye.controlBox.appendChild(ye.tipGrip.visual),ye}return vt(le,$e),le.prototype.ownsTarget=function(fe){return $e.prototype.ownsTarget.call(this,fe)||this.tipGrip.ownsTarget(fe)||this.tip===fe},le.prototype.createTip=function(){re.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=re.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},le.prototype.pointerDown=function(fe,Fe){this.state==="new"&&$e.prototype.pointerDown.call(this,fe,Fe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Fe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):$e.prototype.pointerDown.call(this,fe,Fe)},le.prototype.pointerUp=function(fe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,$e.prototype.pointerUp.call(this,fe);else{var Fe=this.state==="creating";$e.prototype.pointerUp.call(this,fe),this.setTipPoints(Fe),this.positionTip()}},le.prototype.manipulate=function(fe){if(this.tipMoving){var Fe=this.unrotatePoint(fe);this.tipPosition={x:Fe.x-this.manipulationStartLeft,y:Fe.y-this.manipulationStartTop},this.positionTip()}else $e.prototype.manipulate.call(this,fe)},le.prototype.setBgColor=function(fe){this.bgRectangle&&this.tip&&(re.setAttributes(this.bgRectangle,[["fill",fe]]),re.setAttributes(this.tip,[["fill",fe]])),this.bgColor=fe,this.fillColorChanged(fe)},le.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},le.prototype.setTipPoints=function(fe){fe===void 0&&(fe=!1);var Fe=Math.min(this.height/2,15),He=this.height/5;fe&&(this.tipPosition={x:Fe+He/2,y:this.height+20});var ye=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ye<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(He=this.width/5,Fe=Math.min(this.width/2,15),this.tipBase1Position={x:Fe,y:0},this.tipBase2Position={x:Fe+He,y:0}):(this.tipBase1Position={x:0,y:Fe},this.tipBase2Position={x:0,y:Fe+He}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ye<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(He=this.width/5,Fe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Fe-He,y:0},this.tipBase2Position={x:this.width-Fe,y:0}):(this.tipBase1Position={x:this.width,y:Fe},this.tipBase2Position={x:this.width,y:Fe+He}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ye<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(He=this.width/5,Fe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Fe-He,y:this.height},this.tipBase2Position={x:this.width-Fe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Fe-He},this.tipBase2Position={x:this.width,y:this.height-Fe}):ye<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(He=this.width/5,Fe=Math.min(this.width/2,15),this.tipBase1Position={x:Fe,y:this.height},this.tipBase2Position={x:Fe+He,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Fe},this.tipBase2Position={x:0,y:this.height-Fe-He})},le.prototype.resize=function(fe){$e.prototype.resize.call(this,fe),this.positionTip()},le.prototype.positionTip=function(){re.setAttributes(this.tip,[["points",this.getTipPoints()]]);var fe=this.tipGrip.visual.transform.baseVal.getItem(0);fe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(fe,0)},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),le.prototype.select=function(){this.positionTip(),$e.prototype.select.call(this)},le.prototype.getState=function(){var fe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},$e.prototype.getState.call(this));return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){var Fe=fe;this.bgColor=Fe.bgColor,this.tipPosition=Fe.tipPosition,$e.prototype.restoreState.call(this,fe),this.createTip(),this.setTipPoints()},le.prototype.scale=function(fe,Fe){$e.prototype.scale.call(this,fe,Fe),this.tipPosition={x:this.tipPosition.x*fe,y:this.tipPosition.y*Fe},this.positionTip()},le.typeName="CalloutMarker",le.title="Callout marker",le.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>',le}(Ve),pt=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.fillColor="transparent",ye.strokeColor="transparent",ye.strokeWidth=0,ye.strokeDasharray="",ye.opacity=1,ye.strokeColor=He.defaultColor,ye.strokeWidth=He.defaultStrokeWidth,ye.strokeDasharray=He.defaultStrokeDasharray,ye.fillColor=He.defaultFillColor,ye.setStrokeColor=ye.setStrokeColor.bind(ye),ye.setFillColor=ye.setFillColor.bind(ye),ye.setStrokeWidth=ye.setStrokeWidth.bind(ye),ye.setStrokeDasharray=ye.setStrokeDasharray.bind(ye),ye.setOpacity=ye.setOpacity.bind(ye),ye.createVisual=ye.createVisual.bind(ye),ye.strokePanel=new he("Line color",me(He.defaultColorSet,["transparent"]),He.defaultColor),ye.strokePanel.onColorChanged=ye.setStrokeColor,ye.fillPanel=new he("Fill color",me(He.defaultColorSet,["transparent"]),ye.fillColor,Xe),ye.fillPanel.onColorChanged=ye.setFillColor,ye.strokeWidthPanel=new Ce("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),ye.strokeWidthPanel.onWidthChanged=ye.setStrokeWidth,ye.strokeStylePanel=new Ne("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),ye.strokeStylePanel.onStyleChanged=ye.setStrokeDasharray,ye.opacityPanel=new it("Opacity",He.defaultOpacitySteps,ye.opacity),ye.opacityPanel.onOpacityChanged=ye.setOpacity,ye}return vt(le,$e),le.prototype.ownsTarget=function(fe){return!(!$e.prototype.ownsTarget.call(this,fe)&&fe!==this.visual)},le.prototype.createVisual=function(){this.visual=re.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)},le.prototype.pointerDown=function(fe,Fe){$e.prototype.pointerDown.call(this,fe,Fe),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},le.prototype.manipulate=function(fe){$e.prototype.manipulate.call(this,fe)},le.prototype.resize=function(fe){$e.prototype.resize.call(this,fe),this.setSize()},le.prototype.setSize=function(){$e.prototype.setSize.call(this),re.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},le.prototype.pointerUp=function(fe){$e.prototype.pointerUp.call(this,fe),this.setSize()},le.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.visual&&re.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},le.prototype.setFillColor=function(fe){this.fillColor=fe,this.visual&&re.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(fe),this.stateChanged()},le.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.visual&&re.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},le.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.visual&&re.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},le.prototype.setOpacity=function(fe){this.opacity=fe,this.visual&&re.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},$e.prototype.getState.call(this));return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){var Fe=fe;this.fillColor=Fe.fillColor,this.strokeColor=Fe.strokeColor,this.strokeWidth=Fe.strokeWidth,this.strokeDasharray=Fe.strokeDasharray,this.opacity=Fe.opacity,this.createVisual(),$e.prototype.restoreState.call(this,fe),this.setSize()},le.prototype.scale=function(fe,Fe){$e.prototype.scale.call(this,fe,Fe),this.setSize()},le.typeName="EllipseMarker",le.title="Ellipse marker",le.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>',le}(Me),ut=function($e){function le(fe,Fe,He){return $e.call(this,fe,Fe,He)||this}return vt(le,$e),Object.defineProperty(le.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),le.prototype.ownsTarget=function(fe){return!(!$e.prototype.ownsTarget.call(this,fe)&&fe!==this.tip1&&fe!==this.tip2)},le.prototype.createTips=function(){this.tip1=re.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(re.createTransform()),this.visual.appendChild(this.tip1),this.tip2=re.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(re.createTransform()),this.visual.appendChild(this.tip2)},le.prototype.pointerDown=function(fe,Fe){$e.prototype.pointerDown.call(this,fe,Fe),this.state==="creating"&&this.createTips()},le.prototype.adjustVisual=function(){if($e.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(re.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()]]),re.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 fe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Fe=this.tip1.transform.baseVal.getItem(0);Fe.setRotate(fe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Fe,0);var He=this.tip2.transform.baseVal.getItem(0);He.setRotate(fe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(He,0)}},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=$e.prototype.getState.call(this);return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){$e.prototype.restoreState.call(this,fe),this.createTips(),this.adjustVisual()},le.typeName="MeasurementMarker",le.title="Measurement marker",le.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>',le}(Pe),rt=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.strokePanel.colors=He.defaultColorSet,ye.fillColor="transparent",ye}return vt(le,$e),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=$e.prototype.getState.call(this);return fe.typeName=le.typeName,fe},le.typeName="EllipseFrameMarker",le.title="Ellipse frame marker",le.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>',le}(pt),qe=function(){function $e(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty($e.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),$e.prototype.addUndoStep=function(le){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(le)||(this.undoStack.push(le),JSON.stringify(this.lastRedoStep)!==JSON.stringify(le)&&this.redoStack.splice(0,this.redoStack.length))},$e.prototype.replaceLastUndoStep=function(le){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=le)},$e.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},$e.prototype.undo=function(){if(this.undoStack.length>1){var le=this.undoStack.pop();return le!==void 0&&this.redoStack.push(le),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},$e.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},$e}(),nt=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.strokeColor="transparent",ye.strokeWidth=0,ye.strokeDasharray="",ye.curveX=0,ye.curveY=0,ye.manipulationStartCurveX=0,ye.manipulationStartCurveY=0,ye.setStrokeColor=ye.setStrokeColor.bind(ye),ye.setStrokeWidth=ye.setStrokeWidth.bind(ye),ye.setStrokeDasharray=ye.setStrokeDasharray.bind(ye),ye.positionGrips=ye.positionGrips.bind(ye),ye.addControlGrips=ye.addControlGrips.bind(ye),ye.adjustVisual=ye.adjustVisual.bind(ye),ye.setupControlBox=ye.setupControlBox.bind(ye),ye.resize=ye.resize.bind(ye),ye.strokeColor=He.defaultColor,ye.strokeWidth=He.defaultStrokeWidth,ye.strokeDasharray=He.defaultStrokeDasharray,ye.strokePanel=new he("Line color",He.defaultColorSet,He.defaultColor),ye.strokePanel.onColorChanged=ye.setStrokeColor,ye.strokeWidthPanel=new Ce("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),ye.strokeWidthPanel.onWidthChanged=ye.setStrokeWidth,ye.strokeStylePanel=new Ne("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),ye.strokeStylePanel.onStyleChanged=ye.setStrokeDasharray,ye}return vt(le,$e),le.prototype.ownsTarget=function(fe){return!(!$e.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.selectorCurve&&fe!==this.visibleCurve&&!this.curveGrip.ownsTarget(fe))},le.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},le.prototype.createVisual=function(){this.visual=re.createGroup(),this.selectorCurve=re.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=re.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)},le.prototype.pointerDown=function(fe,Fe){$e.prototype.pointerDown.call(this,fe,Fe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=fe.x,this.curveY=fe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Fe)&&(this.activeGrip=this.curveGrip,this._state="resize")},le.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),re.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),re.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),re.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},le.prototype.setupControlBox=function(){$e.prototype.setupControlBox.call(this),this.curveControlLine1=re.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=re.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)},le.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,$e.prototype.addControlGrips.call(this)},le.prototype.positionGrips=function(){$e.prototype.positionGrips.call(this);var fe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-fe/2,this.curveY-fe/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()))},le.prototype.manipulate=function(fe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+fe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+fe.y-this.manipulationStartY),$e.prototype.manipulate.call(this,fe)},le.prototype.resize=function(fe){this.activeGrip===this.curveGrip&&(this.curveX=fe.x,this.curveY=fe.y),$e.prototype.resize.call(this,fe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},le.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.adjustVisual(),this.colorChanged(fe)},le.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.adjustVisual()},le.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.adjustVisual()},le.prototype.scale=function(fe,Fe){this.curveX=this.curveX*fe,this.curveY=this.curveY*Fe,$e.prototype.scale.call(this,fe,Fe)},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},$e.prototype.getState.call(this));return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){$e.prototype.restoreState.call(this,fe);var Fe=fe;this.strokeColor=Fe.strokeColor,this.strokeWidth=Fe.strokeWidth,this.strokeDasharray=Fe.strokeDasharray,this.curveX=Fe.curveX,this.curveY=Fe.curveY,this.createVisual(),this.adjustVisual()},le.typeName="CurveMarker",le.title="Curve marker",le.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>',le}(Ee),xt=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,Fe,He)||this;return ye.fillColor="transparent",ye.strokeColor="transparent",ye.strokeWidth=0,ye.strokeDasharray="",ye.textColor="transparent",ye.fontSize="1rem",ye.isMoved=!1,ye.captionText="Caption",ye.PADDING=5,ye.captionBoxWidth=0,ye.captionBoxHeight=0,ye.strokeColor=He.defaultColor,ye.strokeWidth=He.defaultStrokeWidth,ye.strokeDasharray=He.defaultStrokeDasharray,ye.fillColor=He.defaultFillColor,ye.textColor=He.defaultStrokeColor,ye.fontFamily=He.defaultFontFamily,ye.fontSize=He.defaultCaptionFontSize,ye.captionText=He.defaultCaptionText,ye.setStrokeColor=ye.setStrokeColor.bind(ye),ye.setFillColor=ye.setFillColor.bind(ye),ye.setStrokeWidth=ye.setStrokeWidth.bind(ye),ye.setStrokeDasharray=ye.setStrokeDasharray.bind(ye),ye.createVisual=ye.createVisual.bind(ye),ye.sizeCaption=ye.sizeCaption.bind(ye),ye.setCaptionText=ye.setCaptionText.bind(ye),ye.showTextEditor=ye.showTextEditor.bind(ye),ye.positionTextEditor=ye.positionTextEditor.bind(ye),ye.finishTextEditing=ye.finishTextEditing.bind(ye),ye.setFont=ye.setFont.bind(ye),ye.setTextColor=ye.setTextColor.bind(ye),ye.strokePanel=new he("Line color",me(He.defaultColorSet,["transparent"]),ye.strokeColor),ye.strokePanel.onColorChanged=ye.setStrokeColor,ye.fillPanel=new he("Fill color",me(He.defaultColorSet,["transparent"]),ye.fillColor,Xe),ye.fillPanel.onColorChanged=ye.setFillColor,ye.strokeWidthPanel=new Ce("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),ye.strokeWidthPanel.onWidthChanged=ye.setStrokeWidth,ye.strokeStylePanel=new Ne("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),ye.strokeStylePanel.onStyleChanged=ye.setStrokeDasharray,ye.fontFamilyPanel=new Be("Font",He.defaultFontFamilies,He.defaultFontFamily),ye.fontFamilyPanel.onFontChanged=ye.setFont,ye.textColorPanel=new he("Text color",He.defaultColorSet,ye.textColor,Ge),ye.textColorPanel.onColorChanged=ye.setTextColor,ye}return vt(le,$e),le.prototype.ownsTarget=function(fe){return!(!$e.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.frame&&fe!==this.captionBg&&fe!==this.captionElement)},le.prototype.createVisual=function(){this.visual=re.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=re.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=re.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=re.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()},le.prototype.setCaptionText=function(fe){this.captionText=fe,this.captionElement.textContent=this.captionText,this.sizeCaption()},le.prototype.pointerDown=function(fe,Fe){$e.prototype.pointerDown.call(this,fe,Fe),this.isMoved=!1,this.pointerDownPoint=fe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},le.prototype.manipulate=function(fe){$e.prototype.manipulate.call(this,fe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(fe.x-this.pointerDownPoint.x)>5||Math.abs(fe.y-this.pointerDownPoint.y)>5)},le.prototype.resize=function(fe){$e.prototype.resize.call(this,fe),this.setSize()},le.prototype.sizeCaption=function(){var fe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=fe.width+2*this.PADDING,this.captionBoxHeight=fe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),re.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')"]]),re.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')"]])},le.prototype.showTextEditor=function(){var fe=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(Fe){Fe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Fe){Fe.key==="Enter"&&fe.finishTextEditing(fe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Fe){Fe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){fe.finishTextEditing(fe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){fe.finishTextEditing(fe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},le.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"))},le.prototype.finishTextEditing=function(fe){this.setCaptionText(fe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},le.prototype.setFont=function(fe){this.captionElement&&re.setAttributes(this.captionElement,[["font-family",fe]]),this.fontFamily=fe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},le.prototype.setTextColor=function(fe){this.captionElement&&re.setAttributes(this.captionElement,[["fill",fe]]),this.textColor=fe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},le.prototype.setSize=function(){$e.prototype.setSize.call(this),re.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},le.prototype.pointerUp=function(fe){$e.prototype.pointerUp.call(this,fe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},le.prototype.dblClick=function(fe,Fe){$e.prototype.dblClick.call(this,fe,Fe),this.showTextEditor()},le.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.frame&&re.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},le.prototype.setFillColor=function(fe){this.fillColor=fe,this.captionBg&&re.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(fe),this.stateChanged()},le.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.frame&&re.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},le.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.frame&&re.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=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},$e.prototype.getState.call(this));return fe.typeName=this.typeName,fe},le.prototype.restoreState=function(fe){var Fe=fe;this.fillColor=Fe.fillColor,this.strokeColor=Fe.strokeColor,this.strokeWidth=Fe.strokeWidth,this.strokeDasharray=Fe.strokeDasharray,this.textColor=Fe.textColor,this.fontFamily=Fe.fontFamily,this.captionText=Fe.captionText,this.fontSize=Fe.fontSize,this.createVisual(),$e.prototype.restoreState.call(this,fe),this.setSize()},le.prototype.scale=function(fe,Fe){$e.prototype.scale.call(this,fe,Fe),this.setSize()},le.typeName="CaptionFrameMarker",le.title="Caption frame marker",le.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>',le}(Me),yt=function(){function $e(le,fe){fe===void 0&&(fe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=le,this.cancelable=fe}return Object.defineProperty($e.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),$e.prototype.preventDefault=function(){this._defaultPrevented=!0},$e}(),Rt=function($e){function le(fe,Fe,He){var ye=$e.call(this,fe,!1)||this;return ye.dataUrl=Fe,ye.state=He,ye}return vt(le,$e),le}(yt),Ot=function($e){function le(fe,Fe,He){He===void 0&&(He=!1);var ye=$e.call(this,fe,He)||this;return ye.marker=Fe,ye}return vt(le,$e),le}(yt),lt=function(){function $e(){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 $e.prototype.addEventListener=function(le,fe){this[le].push(fe)},$e.prototype.removeEventListener=function(le,fe){var Fe=this[le].indexOf(fe);Fe>-1&&this[le].splice(Fe,1)},$e}(),Ue=function(){function $e(le){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new De,this._isOpen=!1,this.undoRedoManager=new qe,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 lt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=$e.instanceCounter++,this.styles=new se(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=le,this.targetRoot=document.body,this.width=le.clientWidth,this.height=le.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($e.prototype,"ALL_MARKER_TYPES",{get:function(){return[Te,Ie,Qe,Ve,rt,pt,ht,ct,ut,tt,Pe,nt,xt]},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Te,Ie,Qe,Ve,pt,ht,ct]},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Te,Ie,Qe,Ve,ht]},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(le){var fe=this;this._availableMarkerTypes.splice(0),le.forEach(function(Fe){if(typeof Fe=="string"){var He=fe.ALL_MARKER_TYPES.find(function(ye){return ye.typeName===Fe});He!==void 0&&fe._availableMarkerTypes.push(He)}else fe._availableMarkerTypes.push(Fe)})},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(le){this._zoomLevel=le,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($e.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),$e.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),z.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},$e.prototype.show=function(){var le=this;this.styles.styleSheetRoot===void 0&&oe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=oe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(fe){return fe(new yt(le))})},$e.prototype.render=function(){return x(this,void 0,void 0,function(){var le;return Ae(this,function(fe){switch(fe.label){case 0:return this.setCurrentMarker(),(le=new ie).naturalSize=this.renderAtNaturalSize,le.imageType=this.renderImageType,le.imageQuality=this.renderImageQuality,le.markersOnly=this.renderMarkersOnly,le.width=this.renderWidth,le.height=this.renderHeight,[4,le.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return fe.sent(),[4,le.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,fe.sent()]}})})},$e.prototype.close=function(le){var fe=this;if(le===void 0&&(le=!1),this.isOpen){var Fe=!1;le||this.eventListeners.beforeclose.forEach(function(He){var ye=new yt(fe,!0);He(ye),ye.defaultPrevented&&(Fe=!0)}),Fe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(He){return He(new yt(fe))}),this.detachEvents(),this._isOpen=!1)}},$e.prototype.addMarkersToToolbar=function(){for(var le,fe=[],Fe=0;Fe<arguments.length;Fe++)fe[Fe]=arguments[Fe];(le=this._availableMarkerTypes).push.apply(le,fe)},$e.prototype.addRenderEventListener=function(le){this.addEventListener("render",function(fe){le(fe.dataUrl,fe.state)})},$e.prototype.removeRenderEventListener=function(le){},$e.prototype.addCloseEventListener=function(le){this.addEventListener("close",function(){le()})},$e.prototype.removeCloseEventListener=function(le){},$e.prototype.setupResizeObserver=function(){var le=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){le.resize(le.target.clientWidth,le.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return le.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},$e.prototype.onPopupTargetResize=function(){var le=1*this.target.clientWidth/this.target.clientHeight,fe=this.editorCanvas.clientWidth/le>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*le:this.editorCanvas.clientWidth,Fe=fe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/le;this.resize(fe,Fe)},$e.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},$e.prototype.resize=function(le,fe){this._isResizing=!0;var Fe=le/this.imageWidth,He=fe/this.imageHeight;this.imageWidth=Math.round(le),this.imageHeight=Math.round(fe),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(Fe,He),this._isResizing=!1},$e.prototype.scaleMarkers=function(le,fe){var Fe,He=this;this._currentMarker&&this._currentMarker instanceof Ve?this._currentMarker.scale(le,fe):(Fe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ye){ye!==He._currentMarker&&ye.scale(le,fe)}),Fe!==void 0&&this.setCurrentMarker(Fe)},$e.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"},$e.prototype.setTopLeft=function(){var le=this.editingTarget.getBoundingClientRect(),fe=this.editorCanvas.getBoundingClientRect();this.left=le.left-fe.left,this.top=le.top-fe.top},$e.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)},$e.prototype.addDefs=function(){for(var le,fe=[],Fe=0;Fe<arguments.length;Fe++)fe[Fe]=arguments[Fe];this.defs=re.createDefs(),this.addDefsToImage(),(le=this.defs).append.apply(le,fe)},$e.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},$e.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)},$e.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},$e.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},$e.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)},$e.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},$e.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)},$e.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 le=document.createElement("a");le.href="https://markerjs.com/",le.target="_blank",le.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>',le.title="Powered by marker.js",le.style.display="grid",le.style.alignItems="center",le.style.justifyItems="center",le.style.padding="3px",le.style.width="20px",le.style.height="20px",this.logoUI.appendChild(le),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},$e.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")},$e.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"},$e.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},$e.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 le=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=le+"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 ae(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 ue(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},$e.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},$e.prototype.removeMarker=function(le){this.markerImage.removeChild(le.container),this.markers.indexOf(le)>-1&&this.markers.splice(this.markers.indexOf(le),1),le.dispose()},$e.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())},$e.prototype.toolbarButtonClicked=function(le,fe){if(le==="marker"&&fe!==void 0)this.createNewMarker(fe);else if(le==="action")switch(fe){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()}},$e.prototype.deleteSelectedMarker=function(){var le=this;if(this._currentMarker!==void 0){var fe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(He){var ye=new Ot(le,le._currentMarker,!0);He(ye),ye.defaultPrevented&&(fe=!0)}),!fe){var Fe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(He){return He(new Ot(le,Fe))})}}},$e.prototype.clear=function(){var le=this,fe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Re){var ze=new Ot(le,void 0,!0);Re(ze),ze.defaultPrevented&&(fe=!0)}),!fe)){this.setCurrentMarker();for(var Fe=function(Re){var ze=He.markers[Re];He.setCurrentMarker(He.markers[Re]),He._currentMarker.dispose(),He.markerImage.removeChild(He._currentMarker.container),He.markers.splice(He.markers.indexOf(He._currentMarker),1),He.eventListeners.markerdelete.forEach(function(Ke){return Ke(new Ot(le,ze))})},He=this,ye=this.markers.length-1;ye>=0;ye--)Fe(ye);this.addUndoStep()}},Object.defineProperty($e.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),$e.prototype.showNotesEditor=function(){var le;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=(le=this._currentMarker.notes)!==null&&le!==void 0?le:"",this.overlayContainer.appendChild(this.notesArea))},$e.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)},$e.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},$e.prototype.addUndoStep=function(){var le=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var fe=this.getState(),Fe=this.undoRedoManager.getLastUndoStep();if(!Fe||Fe.width===fe.width&&Fe.height===fe.height){var He=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(fe),He<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ye){return ye(new yt(le))})}else this.undoRedoManager.replaceLastUndoStep(fe),this.eventListeners.statechange.forEach(function(ye){return ye(new yt(le))})}},$e.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},$e.prototype.undoStep=function(){var le=this,fe=this.undoRedoManager.undo();fe!==void 0&&(this.restoreState(fe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Fe){return Fe(new yt(le))}))},$e.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},$e.prototype.redoStep=function(){var le=this,fe=this.undoRedoManager.redo();fe!==void 0&&(this.restoreState(fe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Fe){return Fe(new yt(le))}))},$e.prototype.stepZoom=function(){var le=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=le<this.zoomSteps.length-1?this.zoomSteps[le+1]:this.zoomSteps[0]},$e.prototype.panTo=function(le){this.contentDiv.scrollBy({left:this.prevPanPoint.x-le.x,top:this.prevPanPoint.y-le.y}),this.prevPanPoint=le},$e.prototype.startRenderAndClose=function(){return x(this,void 0,void 0,function(){var le,fe,Fe=this;return Ae(this,function(He){switch(He.label){case 0:return[4,this.render()];case 1:return le=He.sent(),fe=this.getState(),this.eventListeners.render.forEach(function(ye){return ye(new Rt(Fe,le,fe))}),this.close(!0),[2]}})})},$e.prototype.getState=function(le){le===!0&&this.setCurrentMarker();var fe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Fe){return fe.markers.push(Fe.getState())}),fe},$e.prototype.restoreState=function(le){var fe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);le.markers.forEach(function(Fe){var He=fe._availableMarkerTypes.find(function(Re){return Re.typeName===Fe.typeName});if(He!==void 0){var ye=fe.addNewMarker(He);ye.restoreState(Fe),fe.markers.push(ye)}}),le.width&&le.height&&(le.width!==this.imageWidth||le.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/le.width,this.imageHeight/le.height),this.eventListeners.restorestate.forEach(function(Fe){return Fe(new yt(fe))})},$e.prototype.addNewMarker=function(le){var fe=re.createGroup();return this.markerImage.appendChild(fe),new le(fe,this.overlayContainer,this.settings)},$e.prototype.createNewMarker=function(le){var fe,Fe=this;(fe=typeof le=="string"?this._availableMarkerTypes.find(function(He){return He.typeName===le}):le)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(fe),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(fe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(He){return He(new Ot(Fe,Fe._currentMarker))}))},$e.prototype.markerCreated=function(le){var fe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(le),this.setCurrentMarker(le),le instanceof Ie&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ie):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Fe){return Fe(new Ot(fe,fe._currentMarker))})},$e.prototype.colorChanged=function(le){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=le,this.settings.defaultStrokeColor=le)},$e.prototype.fillColorChanged=function(le){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=le)},$e.prototype.markerStateChanged=function(le){var fe=this;this.eventListeners.markerchange.forEach(function(Fe){return Fe(new Ot(fe,le))})},$e.prototype.setCurrentMarker=function(le){var fe=this;this._currentMarker!==le&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Fe){return Fe(new Ot(fe,fe._currentMarker))})),this._currentMarker=le,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(Fe){return Fe(new Ot(fe,fe._currentMarker))}))},$e.prototype.onPointerDown=function(le){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||le.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var fe=this.markers.find(function(Fe){return Fe.ownsTarget(le.target)});fe!==void 0?(this.setCurrentMarker(fe),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(le.clientX,le.clientY),le.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:le.clientX,y:le.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(le.clientX,le.clientY))},$e.prototype.onDblClick=function(le){if(this._isFocused||this.focus(),this.mode==="select"){var fe=this.markers.find(function(Fe){return Fe.ownsTarget(le.target)});fe!==void 0&&fe!==this._currentMarker&&this.setCurrentMarker(fe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(le.clientX,le.clientY),le.target):this.setCurrentMarker()}},$e.prototype.onPointerMove=function(le){this.touchPoints!==1&&le.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||le.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(le.clientX,le.clientY)):this.zoomLevel>1&&this.panTo({x:le.clientX,y:le.clientY}))},$e.prototype.onPointerUp=function(le){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(le.clientX,le.clientY)),this.isDragging=!1,this.addUndoStep()},$e.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},$e.prototype.onKeyUp=function(le){this._currentMarker===void 0||this.notesArea!==void 0||le.key!=="Delete"&&le.key!=="Backspace"||this.deleteSelectedMarker()},$e.prototype.clientToLocalCoordinates=function(le,fe){var Fe=this.markerImage.getBoundingClientRect();return{x:(le-Fe.left)/this.zoomLevel,y:(fe-Fe.top)/this.zoomLevel}},$e.prototype.onWindowResize=function(){this.positionUI()},$e.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var le=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=le+"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()},$e.prototype.addLicenseKey=function(le){z.addKey(le)},$e.prototype.addEventListener=function(le,fe){this.eventListeners.addEventListener(le,fe)},$e.prototype.removeEventListener=function(le,fe){this.eventListeners.removeEventListener(le,fe)},$e.prototype.renderState=function(le){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(le),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty($e.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),$e.prototype.focus=function(){var le=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(fe){return fe(new yt(le))}))},$e.prototype.blur=function(){var le=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(fe){return fe(new yt(le))}))},$e.instanceCounter=0,$e}()},5630:function(gr,Wt,ke){"use strict";var Ye=ke(54476),vt=ke(33885),x=ke(20068),Ae=ke(42978),me=ke(75931),re=ke(92310),z=ke.n(re),ie=ke(18929),oe=ke(59301),se=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],pe=(0,oe.forwardRef)(function(ne,ae){var ue,de=ne.prefixCls,he=de===void 0?"rc-checkbox":de,xe=ne.className,Se=ne.style,we=ne.checked,be=ne.disabled,Me=ne.defaultChecked,Le=Me===void 0?!1:Me,Ce=ne.type,Ne=Ce===void 0?"checkbox":Ce,Te=ne.title,De=ne.onChange,Ee=(0,me.Z)(ne,se),Pe=(0,oe.useRef)(null),Be=(0,ie.Z)(Le,{value:we}),Ve=(0,Ae.Z)(Be,2),Ie=Ve[0],Ze=Ve[1];(0,oe.useImperativeHandle)(ae,function(){return{focus:function(){var ht;(ht=Pe.current)===null||ht===void 0||ht.focus()},blur:function(){var ht;(ht=Pe.current)===null||ht===void 0||ht.blur()},input:Pe.current}});var Qe=z()(he,xe,(ue={},(0,x.Z)(ue,"".concat(he,"-checked"),Ie),(0,x.Z)(ue,"".concat(he,"-disabled"),be),ue)),tt=function(ht){be||("checked"in ne||Ze(ht.target.checked),De==null||De({target:(0,vt.Z)((0,vt.Z)({},ne),{},{type:Ne,checked:ht.target.checked}),stopPropagation:function(){ht.stopPropagation()},preventDefault:function(){ht.preventDefault()},nativeEvent:ht.nativeEvent}))};return oe.createElement("span",{className:Qe,title:Te,style:Se},oe.createElement("input",(0,Ye.Z)({},Ee,{className:"".concat(he,"-input"),ref:Pe,onChange:tt,disabled:be,checked:!!Ie,type:Ne})),oe.createElement("span",{className:"".concat(he,"-inner")}))});Wt.Z=pe},31561:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Ne}});var Ye=ke(54476),vt=ke(20068),x=ke(42978),Ae=ke(75931),me=ke(35593),re=ke(92310),z=ke.n(re),ie=ke(8654),oe=ke(59301),se=ke(10228),pe=ke(16089),ne=se.Z.ESC,ae=se.Z.TAB;function ue(Te){var De=Te.visible,Ee=Te.triggerRef,Pe=Te.onVisibleChange,Be=Te.autoFocus,Ve=Te.overlayRef,Ie=oe.useRef(!1),Ze=function(){if(De){var ht,Ge;(ht=Ee.current)===null||ht===void 0||(Ge=ht.focus)===null||Ge===void 0||Ge.call(ht),Pe==null||Pe(!1)}},Qe=function(){var ht;return(ht=Ve.current)!==null&&ht!==void 0&&ht.focus?(Ve.current.focus(),Ie.current=!0,!0):!1},tt=function(ht){switch(ht.keyCode){case ne:Ze();break;case ae:{var Ge=!1;Ie.current||(Ge=Qe()),Ge?ht.preventDefault():Ze();break}}};oe.useEffect(function(){return De?(window.addEventListener("keydown",tt),Be&&(0,pe.Z)(Qe,3),function(){window.removeEventListener("keydown",tt),Ie.current=!1}):function(){Ie.current=!1}},[De])}var de=(0,oe.forwardRef)(function(Te,De){var Ee=Te.overlay,Pe=Te.arrow,Be=Te.prefixCls,Ve=(0,oe.useMemo)(function(){var Ze;return typeof Ee=="function"?Ze=Ee():Ze=Ee,Ze},[Ee]),Ie=(0,ie.sQ)(De,Ve==null?void 0:Ve.ref);return oe.createElement(oe.Fragment,null,Pe&&oe.createElement("div",{className:"".concat(Be,"-arrow")}),oe.cloneElement(Ve,{ref:(0,ie.Yr)(Ve)?Ie:void 0}))}),he=de,xe={adjustX:1,adjustY:1},Se=[0,0],we={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-4],targetOffset:Se},top:{points:["bc","tc"],overflow:xe,offset:[0,-4],targetOffset:Se},topRight:{points:["br","tr"],overflow:xe,offset:[0,-4],targetOffset:Se},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,4],targetOffset:Se},bottom:{points:["tc","bc"],overflow:xe,offset:[0,4],targetOffset:Se},bottomRight:{points:["tr","br"],overflow:xe,offset:[0,4],targetOffset:Se}},be=we,Me=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Le(Te,De){var Ee,Pe=Te.arrow,Be=Pe===void 0?!1:Pe,Ve=Te.prefixCls,Ie=Ve===void 0?"rc-dropdown":Ve,Ze=Te.transitionName,Qe=Te.animation,tt=Te.align,it=Te.placement,ht=it===void 0?"bottomLeft":it,Ge=Te.placements,Xe=Ge===void 0?be:Ge,ct=Te.getPopupContainer,pt=Te.showAction,ut=Te.hideAction,rt=Te.overlayClassName,qe=Te.overlayStyle,nt=Te.visible,xt=Te.trigger,yt=xt===void 0?["hover"]:xt,Rt=Te.autoFocus,Ot=Te.overlay,lt=Te.children,Ue=Te.onVisibleChange,$e=(0,Ae.Z)(Te,Me),le=oe.useState(),fe=(0,x.Z)(le,2),Fe=fe[0],He=fe[1],ye="visible"in Te?nt:Fe,Re=oe.useRef(null),ze=oe.useRef(null),Ke=oe.useRef(null);oe.useImperativeHandle(De,function(){return Re.current});var We=function(St){He(St),Ue==null||Ue(St)};ue({visible:ye,triggerRef:Ke,onVisibleChange:We,autoFocus:Rt,overlayRef:ze});var st=function(St){var ft=Te.onOverlayClick;He(!1),ft&&ft(St)},bt=function(){return oe.createElement(he,{ref:ze,overlay:Ot,prefixCls:Ie,arrow:Be})},at=function(){return typeof Ot=="function"?bt:bt()},kt=function(){var St=Te.minOverlayWidthMatchTrigger,ft=Te.alignPoint;return"minOverlayWidthMatchTrigger"in Te?St:!ft},Ht=function(){var St=Te.openClassName;return St!==void 0?St:"".concat(Ie,"-open")},Ct=oe.cloneElement(lt,{className:z()((Ee=lt.props)===null||Ee===void 0?void 0:Ee.className,ye&&Ht()),ref:(0,ie.Yr)(lt)?(0,ie.sQ)(Ke,lt.ref):void 0}),$t=ut;return!$t&&yt.indexOf("contextMenu")!==-1&&($t=["click"]),oe.createElement(me.Z,(0,Ye.Z)({builtinPlacements:Xe},$e,{prefixCls:Ie,ref:Re,popupClassName:z()(rt,(0,vt.Z)({},"".concat(Ie,"-show-arrow"),Be)),popupStyle:qe,action:yt,showAction:pt,hideAction:$t,popupPlacement:ht,popupAlign:tt,popupTransitionName:Ze,popupAnimation:Qe,popupVisible:ye,stretch:kt()?"minWidth":"",popup:at(),onPopupVisibleChange:We,onPopupClick:st,getPopupContainer:ct}),Ct)}var Ce=oe.forwardRef(Le),Ne=Ce},93681:function(gr,Wt,ke){"use strict";ke.r(Wt),ke.d(Wt,{BaseInput:function(){return se},default:function(){return we}});var Ye=ke(54476),vt=ke(33885),x=ke(20068),Ae=ke(76190),me=ke(92310),re=ke.n(me),z=ke(59301),ie=ke(5643),oe=function(Me){var Le,Ce,Ne=Me.inputElement,Te=Me.prefixCls,De=Me.prefix,Ee=Me.suffix,Pe=Me.addonBefore,Be=Me.addonAfter,Ve=Me.className,Ie=Me.style,Ze=Me.disabled,Qe=Me.readOnly,tt=Me.focused,it=Me.triggerFocus,ht=Me.allowClear,Ge=Me.value,Xe=Me.handleReset,ct=Me.hidden,pt=Me.classes,ut=Me.classNames,rt=Me.dataAttrs,qe=Me.styles,nt=Me.components,xt=(nt==null?void 0:nt.affixWrapper)||"span",yt=(nt==null?void 0:nt.groupWrapper)||"span",Rt=(nt==null?void 0:nt.wrapper)||"span",Ot=(nt==null?void 0:nt.groupAddon)||"span",lt=(0,z.useRef)(null),Ue=function(bt){var at;(at=lt.current)!==null&&at!==void 0&&at.contains(bt.target)&&(it==null||it())},$e=function(){var bt;if(!ht)return null;var at=!Ze&&!Qe&&Ge,kt="".concat(Te,"-clear-icon"),Ht=(0,Ae.Z)(ht)==="object"&&ht!==null&&ht!==void 0&&ht.clearIcon?ht.clearIcon:"\u2716";return z.createElement("span",{onClick:Xe,onMouseDown:function($t){return $t.preventDefault()},className:re()(kt,(bt={},(0,x.Z)(bt,"".concat(kt,"-hidden"),!at),(0,x.Z)(bt,"".concat(kt,"-has-suffix"),!!Ee),bt)),role:"button",tabIndex:-1},Ht)},le=(0,z.cloneElement)(Ne,{value:Ge,hidden:ct,className:re()((Le=Ne.props)===null||Le===void 0?void 0:Le.className,!(0,ie.X3)(Me)&&!(0,ie.He)(Me)&&Ve)||null,style:(0,vt.Z)((0,vt.Z)({},(Ce=Ne.props)===null||Ce===void 0?void 0:Ce.style),!(0,ie.X3)(Me)&&!(0,ie.He)(Me)?Ie:{})});if((0,ie.X3)(Me)){var fe,Fe="".concat(Te,"-affix-wrapper"),He=re()(Fe,(fe={},(0,x.Z)(fe,"".concat(Fe,"-disabled"),Ze),(0,x.Z)(fe,"".concat(Fe,"-focused"),tt),(0,x.Z)(fe,"".concat(Fe,"-readonly"),Qe),(0,x.Z)(fe,"".concat(Fe,"-input-with-clear-btn"),Ee&&ht&&Ge),fe),!(0,ie.He)(Me)&&Ve,pt==null?void 0:pt.affixWrapper,ut==null?void 0:ut.affixWrapper),ye=(Ee||ht)&&z.createElement("span",{className:re()("".concat(Te,"-suffix"),ut==null?void 0:ut.suffix),style:qe==null?void 0:qe.suffix},$e(),Ee);le=z.createElement(xt,(0,Ye.Z)({className:He,style:(0,vt.Z)((0,vt.Z)({},(0,ie.He)(Me)?void 0:Ie),qe==null?void 0:qe.affixWrapper),hidden:!(0,ie.He)(Me)&&ct,onClick:Ue},rt==null?void 0:rt.affixWrapper,{ref:lt}),De&&z.createElement("span",{className:re()("".concat(Te,"-prefix"),ut==null?void 0:ut.prefix),style:qe==null?void 0:qe.prefix},De),(0,z.cloneElement)(Ne,{value:Ge,hidden:null}),ye)}if((0,ie.He)(Me)){var Re="".concat(Te,"-group"),ze="".concat(Re,"-addon"),Ke=re()("".concat(Te,"-wrapper"),Re,pt==null?void 0:pt.wrapper),We=re()("".concat(Te,"-group-wrapper"),Ve,pt==null?void 0:pt.group);return z.createElement(yt,{className:We,style:Ie,hidden:ct},z.createElement(Rt,{className:Ke},Pe&&z.createElement(Ot,{className:ze},Pe),(0,z.cloneElement)(le,{hidden:null}),Be&&z.createElement(Ot,{className:ze},Be)))}return le},se=oe,pe=ke(94480),ne=ke(42978),ae=ke(75931),ue=ke(18929),de=ke(2738),he=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],xe=(0,z.forwardRef)(function(be,Me){var Le=be.autoComplete,Ce=be.onChange,Ne=be.onFocus,Te=be.onBlur,De=be.onPressEnter,Ee=be.onKeyDown,Pe=be.prefixCls,Be=Pe===void 0?"rc-input":Pe,Ve=be.disabled,Ie=be.htmlSize,Ze=be.className,Qe=be.maxLength,tt=be.suffix,it=be.showCount,ht=be.type,Ge=ht===void 0?"text":ht,Xe=be.classes,ct=be.classNames,pt=be.styles,ut=(0,ae.Z)(be,he),rt=(0,ue.Z)(be.defaultValue,{value:be.value}),qe=(0,ne.Z)(rt,2),nt=qe[0],xt=qe[1],yt=(0,z.useState)(!1),Rt=(0,ne.Z)(yt,2),Ot=Rt[0],lt=Rt[1],Ue=(0,z.useRef)(null),$e=function(We){Ue.current&&(0,ie.nH)(Ue.current,We)};(0,z.useImperativeHandle)(Me,function(){return{focus:$e,blur:function(){var We;(We=Ue.current)===null||We===void 0||We.blur()},setSelectionRange:function(We,st,bt){var at;(at=Ue.current)===null||at===void 0||at.setSelectionRange(We,st,bt)},select:function(){var We;(We=Ue.current)===null||We===void 0||We.select()},input:Ue.current}}),(0,z.useEffect)(function(){lt(function(Ke){return Ke&&Ve?!1:Ke})},[Ve]);var le=function(We){be.value===void 0&&xt(We.target.value),Ue.current&&(0,ie.rJ)(Ue.current,We,Ce)},fe=function(We){De&&We.key==="Enter"&&De(We),Ee==null||Ee(We)},Fe=function(We){lt(!0),Ne==null||Ne(We)},He=function(We){lt(!1),Te==null||Te(We)},ye=function(We){xt(""),$e(),Ue.current&&(0,ie.rJ)(Ue.current,We,Ce)},Re=function(){var We=(0,de.Z)(be,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return z.createElement("input",(0,Ye.Z)({autoComplete:Le},We,{onChange:le,onFocus:Fe,onBlur:He,onKeyDown:fe,className:re()(Be,(0,x.Z)({},"".concat(Be,"-disabled"),Ve),ct==null?void 0:ct.input),style:pt==null?void 0:pt.input,ref:Ue,size:Ie,type:Ge}))},ze=function(){var We=Number(Qe)>0;if(tt||it){var st=(0,ie.D7)(nt),bt=(0,pe.Z)(st).length,at=(0,Ae.Z)(it)==="object"?it.formatter({value:st,count:bt,maxLength:Qe}):"".concat(bt).concat(We?" / ".concat(Qe):"");return z.createElement(z.Fragment,null,!!it&&z.createElement("span",{className:re()("".concat(Be,"-show-count-suffix"),(0,x.Z)({},"".concat(Be,"-show-count-has-suffix"),!!tt),ct==null?void 0:ct.count),style:(0,vt.Z)({},pt==null?void 0:pt.count)},at),tt)}return null};return z.createElement(se,(0,Ye.Z)({},ut,{prefixCls:Be,className:Ze,inputElement:Re(),handleReset:ye,value:(0,ie.D7)(nt),focused:Ot,triggerFocus:$e,suffix:ze(),disabled:Ve,classes:Xe,classNames:ct,styles:pt}))}),Se=xe,we=Se},5643:function(gr,Wt,ke){"use strict";ke.d(Wt,{D7:function(){return me},He:function(){return Ye},X3:function(){return vt},nH:function(){return Ae},rJ:function(){return x}});function Ye(re){return!!(re.addonBefore||re.addonAfter)}function vt(re){return!!(re.prefix||re.suffix||re.allowClear)}function x(re,z,ie,oe){if(ie){var se=z;if(z.type==="click"){var pe=re.cloneNode(!0);se=Object.create(z,{target:{value:pe},currentTarget:{value:pe}}),pe.value="",ie(se);return}if(oe!==void 0){se=Object.create(z,{target:{value:re},currentTarget:{value:re}}),re.value=oe,ie(se);return}ie(se)}}function Ae(re,z){if(re){re.focus(z);var ie=z||{},oe=ie.cursor;if(oe){var se=re.value.length;switch(oe){case"start":re.setSelectionRange(0,0);break;case"end":re.setSelectionRange(se,se);break;default:re.setSelectionRange(0,se)}}}}function me(re){return typeof re=="undefined"||re===null?"":String(re)}},15285:function(gr,Wt,ke){"use strict";ke.d(Wt,{iz:function(){return Ar},ck:function(){return en},BW:function(){return Ir},sN:function(){return en},Wd:function(){return Qt},ZP:function(){return Mr},Xl:function(){return Ee}});var Ye=ke(54476),vt=ke(20068),x=ke(33885),Ae=ke(94480),me=ke(42978),re=ke(75931),z=ke(92310),ie=ke.n(z),oe=ke(83836),se=ke(18929),pe=ke(13697),ne=ke(48736),ae=ke(59301),ue=ke(4676),de=ae.createContext(null);function he(Pt,Jt){return Pt===void 0?null:"".concat(Pt,"-").concat(Jt)}function xe(Pt){var Jt=ae.useContext(de);return he(Jt,Pt)}var Se=ke(80547),we=["children","locked"],be=ae.createContext(null);function Me(Pt,Jt){var nr=(0,x.Z)({},Pt);return Object.keys(Jt).forEach(function(pr){var fr=Jt[pr];fr!==void 0&&(nr[pr]=fr)}),nr}function Le(Pt){var Jt=Pt.children,nr=Pt.locked,pr=(0,re.Z)(Pt,we),fr=ae.useContext(be),br=(0,Se.Z)(function(){return Me(fr,pr)},[fr,pr],function(wr,Nr){return!nr&&(wr[0]!==Nr[0]||!(0,pe.Z)(wr[1],Nr[1],!0))});return ae.createElement(be.Provider,{value:br},Jt)}var Ce=[],Ne=ae.createContext(null);function Te(){return ae.useContext(Ne)}var De=ae.createContext(Ce);function Ee(Pt){var Jt=ae.useContext(De);return ae.useMemo(function(){return Pt!==void 0?[].concat((0,Ae.Z)(Jt),[Pt]):Jt},[Jt,Pt])}var Pe=ae.createContext(null),Be=ae.createContext({}),Ve=Be,Ie=ke(29194);function Ze(Pt){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,Ie.Z)(Pt)){var nr=Pt.nodeName.toLowerCase(),pr=["input","select","textarea","button"].includes(nr)||Pt.isContentEditable||nr==="a"&&!!Pt.getAttribute("href"),fr=Pt.getAttribute("tabindex"),br=Number(fr),wr=null;return fr&&!Number.isNaN(br)?wr=br:pr&&wr===null&&(wr=0),pr&&Pt.disabled&&(wr=null),wr!==null&&(wr>=0||Jt&&wr<0)}return!1}function Qe(Pt){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nr=(0,Ae.Z)(Pt.querySelectorAll("*")).filter(function(pr){return Ze(pr,Jt)});return Ze(Pt,Jt)&&nr.unshift(Pt),nr}var tt=null;function it(){tt=document.activeElement}function ht(){tt=null}function Ge(){if(tt)try{tt.focus()}catch(Pt){}}function Xe(Pt,Jt){if(Jt.keyCode===9){var nr=Qe(Pt),pr=nr[Jt.shiftKey?0:nr.length-1],fr=pr===document.activeElement||Pt===document.activeElement;if(fr){var br=nr[Jt.shiftKey?nr.length-1:0];br.focus(),Jt.preventDefault()}}}var ct=ke(10228),pt=ke(16089),ut=ct.Z.LEFT,rt=ct.Z.RIGHT,qe=ct.Z.UP,nt=ct.Z.DOWN,xt=ct.Z.ENTER,yt=ct.Z.ESC,Rt=ct.Z.HOME,Ot=ct.Z.END,lt=[qe,nt,ut,rt];function Ue(Pt,Jt,nr,pr){var fr,br,wr,Nr,Kr="prev",Ur="next",gn="children",kn="parent";if(Pt==="inline"&&pr===xt)return{inlineTrigger:!0};var Nn=(fr={},(0,vt.Z)(fr,qe,Kr),(0,vt.Z)(fr,nt,Ur),fr),yn=(br={},(0,vt.Z)(br,ut,nr?Ur:Kr),(0,vt.Z)(br,rt,nr?Kr:Ur),(0,vt.Z)(br,nt,gn),(0,vt.Z)(br,xt,gn),br),rn=(wr={},(0,vt.Z)(wr,qe,Kr),(0,vt.Z)(wr,nt,Ur),(0,vt.Z)(wr,xt,gn),(0,vt.Z)(wr,yt,kn),(0,vt.Z)(wr,ut,nr?gn:kn),(0,vt.Z)(wr,rt,nr?kn:gn),wr),$n={inline:Nn,horizontal:yn,vertical:rn,inlineSub:Nn,horizontalSub:rn,verticalSub:rn},Tn=(Nr=$n["".concat(Pt).concat(Jt?"":"Sub")])===null||Nr===void 0?void 0:Nr[pr];switch(Tn){case Kr:return{offset:-1,sibling:!0};case Ur:return{offset:1,sibling:!0};case kn:return{offset:-1,sibling:!1};case gn:return{offset:1,sibling:!1};default:return null}}function $e(Pt){for(var Jt=Pt;Jt;){if(Jt.getAttribute("data-menu-list"))return Jt;Jt=Jt.parentElement}return null}function le(Pt,Jt){for(var nr=Pt||document.activeElement;nr;){if(Jt.has(nr))return nr;nr=nr.parentElement}return null}function fe(Pt,Jt){var nr=Qe(Pt,!0);return nr.filter(function(pr){return Jt.has(pr)})}function Fe(Pt,Jt,nr){var pr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Pt)return null;var fr=fe(Pt,Jt),br=fr.length,wr=fr.findIndex(function(Nr){return nr===Nr});return pr<0?wr===-1?wr=br-1:wr-=1:pr>0&&(wr+=1),wr=(wr+br)%br,fr[wr]}var He=function(Jt,nr){var pr=new Set,fr=new Map,br=new Map;return Jt.forEach(function(wr){var Nr=document.querySelector("[data-menu-id='".concat(he(nr,wr),"']"));Nr&&(pr.add(Nr),br.set(Nr,wr),fr.set(wr,Nr))}),{elements:pr,key2element:fr,element2key:br}};function ye(Pt,Jt,nr,pr,fr,br,wr,Nr,Kr,Ur){var gn=ae.useRef(),kn=ae.useRef();kn.current=Jt;var Nn=function(){pt.Z.cancel(gn.current)};return ae.useEffect(function(){return function(){Nn()}},[]),function(yn){var rn=yn.which;if([].concat(lt,[xt,yt,Rt,Ot]).includes(rn)){var $n=br(),Tn=He($n,pr),Zn=Tn,wn=Zn.elements,Mn=Zn.key2element,Jn=Zn.element2key,zn=Mn.get(Jt),hi=le(zn,wn),Ei=Jn.get(hi),Rn=Ue(Pt,wr(Ei,!0).length===1,nr,rn);if(!Rn&&rn!==Rt&&rn!==Ot)return;(lt.includes(rn)||[Rt,Ot].includes(rn))&&yn.preventDefault();var Jr=function(An){if(An){var gi=An,nn=An.querySelector("a");nn!=null&&nn.getAttribute("href")&&(gi=nn);var pn=Jn.get(An);Nr(pn),Nn(),gn.current=(0,pt.Z)(function(){kn.current===pn&&gi.focus()})}};if([Rt,Ot].includes(rn)||Rn.sibling||!hi){var Xr;!hi||Pt==="inline"?Xr=fr.current:Xr=$e(hi);var Hn,Dn=fe(Xr,wn);rn===Rt?Hn=Dn[0]:rn===Ot?Hn=Dn[Dn.length-1]:Hn=Fe(Xr,wn,hi,Rn.offset),Jr(Hn)}else if(Rn.inlineTrigger)Kr(Ei);else if(Rn.offset>0)Kr(Ei,!0),Nn(),gn.current=(0,pt.Z)(function(){Tn=He($n,pr);var qr=hi.getAttribute("aria-controls"),An=document.getElementById(qr),gi=Fe(An,Tn.elements);Jr(gi)},5);else if(Rn.offset<0){var ri=wr(Ei,!0),ai=ri[ri.length-2],Qr=Mn.get(ai);Kr(ai,!1),Jr(Qr)}}Ur==null||Ur(yn)}}function Re(Pt){Promise.resolve().then(Pt)}var ze="__RC_UTIL_PATH_SPLIT__",Ke=function(Jt){return Jt.join(ze)},We=function(Jt){return Jt.split(ze)},st="rc-menu-more";function bt(){var Pt=ae.useState({}),Jt=(0,me.Z)(Pt,2),nr=Jt[1],pr=(0,ae.useRef)(new Map),fr=(0,ae.useRef)(new Map),br=ae.useState([]),wr=(0,me.Z)(br,2),Nr=wr[0],Kr=wr[1],Ur=(0,ae.useRef)(0),gn=(0,ae.useRef)(!1),kn=function(){gn.current||nr({})},Nn=(0,ae.useCallback)(function(Mn,Jn){var zn=Ke(Jn);fr.current.set(zn,Mn),pr.current.set(Mn,zn),Ur.current+=1;var hi=Ur.current;Re(function(){hi===Ur.current&&kn()})},[]),yn=(0,ae.useCallback)(function(Mn,Jn){var zn=Ke(Jn);fr.current.delete(zn),pr.current.delete(Mn)},[]),rn=(0,ae.useCallback)(function(Mn){Kr(Mn)},[]),$n=(0,ae.useCallback)(function(Mn,Jn){var zn=pr.current.get(Mn)||"",hi=We(zn);return Jn&&Nr.includes(hi[0])&&hi.unshift(st),hi},[Nr]),Tn=(0,ae.useCallback)(function(Mn,Jn){return Mn.some(function(zn){var hi=$n(zn,!0);return hi.includes(Jn)})},[$n]),Zn=function(){var Jn=(0,Ae.Z)(pr.current.keys());return Nr.length&&Jn.push(st),Jn},wn=(0,ae.useCallback)(function(Mn){var Jn="".concat(pr.current.get(Mn)).concat(ze),zn=new Set;return(0,Ae.Z)(fr.current.keys()).forEach(function(hi){hi.startsWith(Jn)&&zn.add(fr.current.get(hi))}),zn},[]);return ae.useEffect(function(){return function(){gn.current=!0}},[]),{registerPath:Nn,unregisterPath:yn,refreshOverflowKeys:rn,isSubPathKey:Tn,getKeyPath:$n,getKeys:Zn,getSubPathKeys:wn}}function at(Pt){var Jt=ae.useRef(Pt);Jt.current=Pt;var nr=ae.useCallback(function(){for(var pr,fr=arguments.length,br=new Array(fr),wr=0;wr<fr;wr++)br[wr]=arguments[wr];return(pr=Jt.current)===null||pr===void 0?void 0:pr.call.apply(pr,[Jt].concat(br))},[]);return Pt?nr:void 0}var kt=Math.random().toFixed(5).toString().slice(2),Ht=0;function Ct(Pt){var Jt=(0,se.Z)(Pt,{value:Pt}),nr=(0,me.Z)(Jt,2),pr=nr[0],fr=nr[1];return ae.useEffect(function(){Ht+=1;var br="".concat(kt,"-").concat(Ht);fr("rc-menu-uuid-".concat(br))},[]),pr}var $t=ke(67732),Bt=ke(83652),St=ke(42403),ft=ke(158),dt=ke(2738),Ft=ke(8654);function zt(Pt,Jt,nr,pr){var fr=ae.useContext(be),br=fr.activeKey,wr=fr.onActive,Nr=fr.onInactive,Kr={active:br===Pt};return Jt||(Kr.onMouseEnter=function(Ur){nr==null||nr({key:Pt,domEvent:Ur}),wr(Pt)},Kr.onMouseLeave=function(Ur){pr==null||pr({key:Pt,domEvent:Ur}),Nr(Pt)}),Kr}function Zt(Pt){var Jt=ae.useContext(be),nr=Jt.mode,pr=Jt.rtl,fr=Jt.inlineIndent;if(nr!=="inline")return null;var br=Pt;return pr?{paddingRight:br*fr}:{paddingLeft:br*fr}}function tr(Pt){var Jt=Pt.icon,nr=Pt.props,pr=Pt.children,fr;return Jt===null||Jt===!1?null:(typeof Jt=="function"?fr=ae.createElement(Jt,(0,x.Z)({},nr)):typeof Jt!="boolean"&&(fr=Jt),fr||pr||null)}var mr=["item"];function Er(Pt){var Jt=Pt.item,nr=(0,re.Z)(Pt,mr);return Object.defineProperty(nr,"item",{get:function(){return(0,ne.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Jt}}),nr}var zr=["title","attribute","elementRef"],jr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Tr=["active"],Vr=function(Pt){(0,St.Z)(nr,Pt);var Jt=(0,ft.Z)(nr);function nr(){return(0,$t.Z)(this,nr),Jt.apply(this,arguments)}return(0,Bt.Z)(nr,[{key:"render",value:function(){var fr=this.props,br=fr.title,wr=fr.attribute,Nr=fr.elementRef,Kr=(0,re.Z)(fr,zr),Ur=(0,dt.Z)(Kr,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,ne.ZP)(!wr,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),ae.createElement(oe.Z.Item,(0,Ye.Z)({},wr,{title:typeof br=="string"?br:void 0},Ur,{ref:Nr}))}}]),nr}(ae.Component),sn=ae.forwardRef(function(Pt,Jt){var nr,pr=Pt.style,fr=Pt.className,br=Pt.eventKey,wr=Pt.warnKey,Nr=Pt.disabled,Kr=Pt.itemIcon,Ur=Pt.children,gn=Pt.role,kn=Pt.onMouseEnter,Nn=Pt.onMouseLeave,yn=Pt.onClick,rn=Pt.onKeyDown,$n=Pt.onFocus,Tn=(0,re.Z)(Pt,jr),Zn=xe(br),wn=ae.useContext(be),Mn=wn.prefixCls,Jn=wn.onItemClick,zn=wn.disabled,hi=wn.overflowDisabled,Ei=wn.itemIcon,Rn=wn.selectedKeys,Jr=wn.onActive,Xr=ae.useContext(Ve),Hn=Xr._internalRenderMenuItem,Dn="".concat(Mn,"-item"),ri=ae.useRef(),ai=ae.useRef(),Qr=zn||Nr,qr=(0,Ft.x1)(Jt,ai),An=Ee(br),gi=function(bn){return{key:br,keyPath:(0,Ae.Z)(An).reverse(),item:ri.current,domEvent:bn}},nn=Kr||Ei,pn=zt(br,Qr,kn,Nn),qn=pn.active,li=(0,re.Z)(pn,Tr),ji=Rn.includes(br),Li=Zt(An.length),Bi=function(bn){if(!Qr){var Wn=gi(bn);yn==null||yn(Er(Wn)),Jn(Wn)}},ni=function(bn){if(rn==null||rn(bn),bn.which===ct.Z.ENTER){var Wn=gi(bn);yn==null||yn(Er(Wn)),Jn(Wn)}},ra=function(bn){Jr(br),$n==null||$n(bn)},ca={};Pt.role==="option"&&(ca["aria-selected"]=ji);var Sn=ae.createElement(Vr,(0,Ye.Z)({ref:ri,elementRef:qr,role:gn===null?"none":gn||"menuitem",tabIndex:Nr?null:-1,"data-menu-id":hi&&Zn?null:Zn},Tn,li,ca,{component:"li","aria-disabled":Nr,style:(0,x.Z)((0,x.Z)({},Li),pr),className:ie()(Dn,(nr={},(0,vt.Z)(nr,"".concat(Dn,"-active"),qn),(0,vt.Z)(nr,"".concat(Dn,"-selected"),ji),(0,vt.Z)(nr,"".concat(Dn,"-disabled"),Qr),nr),fr),onClick:Bi,onKeyDown:ni,onFocus:ra}),Ur,ae.createElement(tr,{props:(0,x.Z)((0,x.Z)({},Pt),{},{isSelected:ji}),icon:nn}));return Hn&&(Sn=Hn(Sn,Pt,{selected:ji})),Sn});function vn(Pt,Jt){var nr=Pt.eventKey,pr=Te(),fr=Ee(nr);return ae.useEffect(function(){if(pr)return pr.registerPath(nr,fr),function(){pr.unregisterPath(nr,fr)}},[fr]),pr?null:ae.createElement(sn,(0,Ye.Z)({},Pt,{ref:Jt}))}var en=ae.forwardRef(vn),hn=["className","children"],_n=function(Jt,nr){var pr=Jt.className,fr=Jt.children,br=(0,re.Z)(Jt,hn),wr=ae.useContext(be),Nr=wr.prefixCls,Kr=wr.mode,Ur=wr.rtl;return ae.createElement("ul",(0,Ye.Z)({className:ie()(Nr,Ur&&"".concat(Nr,"-rtl"),"".concat(Nr,"-sub"),"".concat(Nr,"-").concat(Kr==="inline"?"inline":"vertical"),pr),role:"menu"},br,{"data-menu-list":!0,ref:nr}),fr)},tn=ae.forwardRef(_n);tn.displayName="SubMenuList";var Ln=tn,Un=ke(11592);function Vn(Pt,Jt){return(0,Un.Z)(Pt).map(function(nr,pr){if(ae.isValidElement(nr)){var fr,br,wr=nr.key,Nr=(fr=(br=nr.props)===null||br===void 0?void 0:br.eventKey)!==null&&fr!==void 0?fr:wr,Kr=Nr==null;Kr&&(Nr="tmp_key-".concat([].concat((0,Ae.Z)(Jt),[pr]).join("-")));var Ur={key:Nr,eventKey:Nr};return ae.cloneElement(nr,Ur)}return nr})}var $r=ke(35593),Yr={adjustX:1,adjustY:1},Lr={topLeft:{points:["bl","tl"],overflow:Yr},topRight:{points:["br","tr"],overflow:Yr},bottomLeft:{points:["tl","bl"],overflow:Yr},bottomRight:{points:["tr","br"],overflow:Yr},leftTop:{points:["tr","tl"],overflow:Yr},leftBottom:{points:["br","bl"],overflow:Yr},rightTop:{points:["tl","tr"],overflow:Yr},rightBottom:{points:["bl","br"],overflow:Yr}},cn={topLeft:{points:["bl","tl"],overflow:Yr},topRight:{points:["br","tr"],overflow:Yr},bottomLeft:{points:["tl","bl"],overflow:Yr},bottomRight:{points:["tr","br"],overflow:Yr},rightTop:{points:["tr","tl"],overflow:Yr},rightBottom:{points:["br","bl"],overflow:Yr},leftTop:{points:["tl","tr"],overflow:Yr},leftBottom:{points:["bl","br"],overflow:Yr}},Pr=null;function Wr(Pt,Jt,nr){if(Jt)return Jt;if(nr)return nr[Pt]||nr.other}var mn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Gt(Pt){var Jt=Pt.prefixCls,nr=Pt.visible,pr=Pt.children,fr=Pt.popup,br=Pt.popupStyle,wr=Pt.popupClassName,Nr=Pt.popupOffset,Kr=Pt.disabled,Ur=Pt.mode,gn=Pt.onVisibleChange,kn=ae.useContext(be),Nn=kn.getPopupContainer,yn=kn.rtl,rn=kn.subMenuOpenDelay,$n=kn.subMenuCloseDelay,Tn=kn.builtinPlacements,Zn=kn.triggerSubMenuAction,wn=kn.forceSubMenuRender,Mn=kn.rootClassName,Jn=kn.motion,zn=kn.defaultMotions,hi=ae.useState(!1),Ei=(0,me.Z)(hi,2),Rn=Ei[0],Jr=Ei[1],Xr=yn?(0,x.Z)((0,x.Z)({},cn),Tn):(0,x.Z)((0,x.Z)({},Lr),Tn),Hn=mn[Ur],Dn=Wr(Ur,Jn,zn),ri=ae.useRef(Dn);Ur!=="inline"&&(ri.current=Dn);var ai=(0,x.Z)((0,x.Z)({},ri.current),{},{leavedClassName:"".concat(Jt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Qr=ae.useRef();return ae.useEffect(function(){return Qr.current=(0,pt.Z)(function(){Jr(nr)}),function(){pt.Z.cancel(Qr.current)}},[nr]),ae.createElement($r.Z,{prefixCls:Jt,popupClassName:ie()("".concat(Jt,"-popup"),(0,vt.Z)({},"".concat(Jt,"-rtl"),yn),wr,Mn),stretch:Ur==="horizontal"?"minWidth":null,getPopupContainer:Nn,builtinPlacements:Xr,popupPlacement:Hn,popupVisible:Rn,popup:fr,popupStyle:br,popupAlign:Nr&&{offset:Nr},action:Kr?[]:[Zn],mouseEnterDelay:rn,mouseLeaveDelay:$n,onPopupVisibleChange:gn,forceRender:wn,popupMotion:ai,fresh:!0},pr)}var Et=ke(77900);function It(Pt){var Jt=Pt.id,nr=Pt.open,pr=Pt.keyPath,fr=Pt.children,br="inline",wr=ae.useContext(be),Nr=wr.prefixCls,Kr=wr.forceSubMenuRender,Ur=wr.motion,gn=wr.defaultMotions,kn=wr.mode,Nn=ae.useRef(!1);Nn.current=kn===br;var yn=ae.useState(!Nn.current),rn=(0,me.Z)(yn,2),$n=rn[0],Tn=rn[1],Zn=Nn.current?nr:!1;ae.useEffect(function(){Nn.current&&Tn(!1)},[kn]);var wn=(0,x.Z)({},Wr(br,Ur,gn));pr.length>1&&(wn.motionAppear=!1);var Mn=wn.onVisibleChanged;return wn.onVisibleChanged=function(Jn){return!Nn.current&&!Jn&&Tn(!0),Mn==null?void 0:Mn(Jn)},$n?null:ae.createElement(Le,{mode:br,locked:!Nn.current},ae.createElement(Et.default,(0,Ye.Z)({visible:Zn},wn,{forceRender:Kr,removeOnLeave:!1,leavedClassName:"".concat(Nr,"-hidden")}),function(Jn){var zn=Jn.className,hi=Jn.style;return ae.createElement(Ln,{id:Jt,className:zn,style:hi},fr)}))}var Dt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Lt=["active"],Ut=function(Jt){var nr,pr=Jt.style,fr=Jt.className,br=Jt.title,wr=Jt.eventKey,Nr=Jt.warnKey,Kr=Jt.disabled,Ur=Jt.internalPopupClose,gn=Jt.children,kn=Jt.itemIcon,Nn=Jt.expandIcon,yn=Jt.popupClassName,rn=Jt.popupOffset,$n=Jt.popupStyle,Tn=Jt.onClick,Zn=Jt.onMouseEnter,wn=Jt.onMouseLeave,Mn=Jt.onTitleClick,Jn=Jt.onTitleMouseEnter,zn=Jt.onTitleMouseLeave,hi=(0,re.Z)(Jt,Dt),Ei=xe(wr),Rn=ae.useContext(be),Jr=Rn.prefixCls,Xr=Rn.mode,Hn=Rn.openKeys,Dn=Rn.disabled,ri=Rn.overflowDisabled,ai=Rn.activeKey,Qr=Rn.selectedKeys,qr=Rn.itemIcon,An=Rn.expandIcon,gi=Rn.onItemClick,nn=Rn.onOpenChange,pn=Rn.onActive,qn=ae.useContext(Ve),li=qn._internalRenderSubMenuItem,ji=ae.useContext(Pe),Li=ji.isSubPathKey,Bi=Ee(),ni="".concat(Jr,"-submenu"),ra=Dn||Kr,ca=ae.useRef(),Sn=ae.useRef(),Cn=kn!=null?kn:qr,bn=Nn!=null?Nn:An,Wn=Hn.includes(wr),Ki=!ri&&Wn,qi=Li(Qr,wr),oa=zt(wr,ra,Jn,zn),na=oa.active,Xi=(0,re.Z)(oa,Lt),ba=ae.useState(!1),Na=(0,me.Z)(ba,2),Ia=Na[0],yo=Na[1],Oi=function(Ha){ra||yo(Ha)},Fi=function(Ha){Oi(!0),Zn==null||Zn({key:wr,domEvent:Ha})},ka=function(Ha){Oi(!1),wn==null||wn({key:wr,domEvent:Ha})},Vi=ae.useMemo(function(){return na||(Xr!=="inline"?Ia||Li([ai],wr):!1)},[Xr,na,ai,Ia,wr,Li]),ia=Zt(Bi.length),da=function(Ha){ra||(Mn==null||Mn({key:wr,domEvent:Ha}),Xr==="inline"&&nn(wr,!Wn))},sa=at(function(Ya){Tn==null||Tn(Er(Ya)),gi(Ya)}),ui=function(Ha){Xr!=="inline"&&nn(wr,Ha)},Di=function(){pn(wr)},Mi=Ei&&"".concat(Ei,"-popup"),mi=ae.createElement("div",(0,Ye.Z)({role:"menuitem",style:ia,className:"".concat(ni,"-title"),tabIndex:ra?null:-1,ref:ca,title:typeof br=="string"?br:null,"data-menu-id":ri&&Ei?null:Ei,"aria-expanded":Ki,"aria-haspopup":!0,"aria-controls":Mi,"aria-disabled":ra,onClick:da,onFocus:Di},Xi),br,ae.createElement(tr,{icon:Xr!=="horizontal"?bn:void 0,props:(0,x.Z)((0,x.Z)({},Jt),{},{isOpen:Ki,isSubMenu:!0})},ae.createElement("i",{className:"".concat(ni,"-arrow")}))),ea=ae.useRef(Xr);if(Xr!=="inline"&&Bi.length>1?ea.current="vertical":ea.current=Xr,!ri){var Qi=ea.current;mi=ae.createElement(Gt,{mode:Qi,prefixCls:ni,visible:!Ur&&Ki&&Xr!=="inline",popupClassName:yn,popupOffset:rn,popupStyle:$n,popup:ae.createElement(Le,{mode:Qi==="horizontal"?"vertical":Qi},ae.createElement(Ln,{id:Mi,ref:Sn},gn)),disabled:ra,onVisibleChange:ui},mi)}var Ka=ae.createElement(oe.Z.Item,(0,Ye.Z)({role:"none"},hi,{component:"li",style:pr,className:ie()(ni,"".concat(ni,"-").concat(Xr),fr,(nr={},(0,vt.Z)(nr,"".concat(ni,"-open"),Ki),(0,vt.Z)(nr,"".concat(ni,"-active"),Vi),(0,vt.Z)(nr,"".concat(ni,"-selected"),qi),(0,vt.Z)(nr,"".concat(ni,"-disabled"),ra),nr)),onMouseEnter:Fi,onMouseLeave:ka}),mi,!ri&&ae.createElement(It,{id:Mi,open:Ki,keyPath:Bi},gn));return li&&(Ka=li(Ka,Jt,{selected:qi,active:Vi,open:Ki,disabled:ra})),ae.createElement(Le,{onItemClick:sa,mode:Xr==="horizontal"?"vertical":Xr,itemIcon:Cn,expandIcon:bn},Ka)};function Qt(Pt){var Jt=Pt.eventKey,nr=Pt.children,pr=Ee(Jt),fr=Vn(nr,pr),br=Te();ae.useEffect(function(){if(br)return br.registerPath(Jt,pr),function(){br.unregisterPath(Jt,pr)}},[pr]);var wr;return br?wr=fr:wr=ae.createElement(Ut,Pt,fr),ae.createElement(De.Provider,{value:pr},wr)}var yr=ke(76190),cr=["className","title","eventKey","children"],vr=["children"],Dr=function(Jt){var nr=Jt.className,pr=Jt.title,fr=Jt.eventKey,br=Jt.children,wr=(0,re.Z)(Jt,cr),Nr=ae.useContext(be),Kr=Nr.prefixCls,Ur="".concat(Kr,"-item-group");return ae.createElement("li",(0,Ye.Z)({role:"presentation"},wr,{onClick:function(kn){return kn.stopPropagation()},className:ie()(Ur,nr)}),ae.createElement("div",{role:"presentation",className:"".concat(Ur,"-title"),title:typeof pr=="string"?pr:void 0},pr),ae.createElement("ul",{role:"group",className:"".concat(Ur,"-list")},br))};function Ir(Pt){var Jt=Pt.children,nr=(0,re.Z)(Pt,vr),pr=Ee(nr.eventKey),fr=Vn(Jt,pr),br=Te();return br?fr:ae.createElement(Dr,(0,dt.Z)(nr,["warnKey"]),fr)}function Ar(Pt){var Jt=Pt.className,nr=Pt.style,pr=ae.useContext(be),fr=pr.prefixCls,br=Te();return br?null:ae.createElement("li",{role:"separator",className:ie()("".concat(fr,"-item-divider"),Jt),style:nr})}var qt=["label","children","key","type"];function kr(Pt){return(Pt||[]).map(function(Jt,nr){if(Jt&&(0,yr.Z)(Jt)==="object"){var pr=Jt,fr=pr.label,br=pr.children,wr=pr.key,Nr=pr.type,Kr=(0,re.Z)(pr,qt),Ur=wr!=null?wr:"tmp-".concat(nr);return br||Nr==="group"?Nr==="group"?ae.createElement(Ir,(0,Ye.Z)({key:Ur},Kr,{title:fr}),kr(br)):ae.createElement(Qt,(0,Ye.Z)({key:Ur},Kr,{title:fr}),kr(br)):Nr==="divider"?ae.createElement(Ar,(0,Ye.Z)({key:Ur},Kr)):ae.createElement(en,(0,Ye.Z)({key:Ur},Kr),fr)}return null}).filter(function(Jt){return Jt})}function Xt(Pt,Jt,nr){var pr=Pt;return Jt&&(pr=kr(Jt)),Vn(pr,nr)}var rr=["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"],lr=[],or=ae.forwardRef(function(Pt,Jt){var nr,pr,fr=Pt,br=fr.prefixCls,wr=br===void 0?"rc-menu":br,Nr=fr.rootClassName,Kr=fr.style,Ur=fr.className,gn=fr.tabIndex,kn=gn===void 0?0:gn,Nn=fr.items,yn=fr.children,rn=fr.direction,$n=fr.id,Tn=fr.mode,Zn=Tn===void 0?"vertical":Tn,wn=fr.inlineCollapsed,Mn=fr.disabled,Jn=fr.disabledOverflow,zn=fr.subMenuOpenDelay,hi=zn===void 0?.1:zn,Ei=fr.subMenuCloseDelay,Rn=Ei===void 0?.1:Ei,Jr=fr.forceSubMenuRender,Xr=fr.defaultOpenKeys,Hn=fr.openKeys,Dn=fr.activeKey,ri=fr.defaultActiveFirst,ai=fr.selectable,Qr=ai===void 0?!0:ai,qr=fr.multiple,An=qr===void 0?!1:qr,gi=fr.defaultSelectedKeys,nn=fr.selectedKeys,pn=fr.onSelect,qn=fr.onDeselect,li=fr.inlineIndent,ji=li===void 0?24:li,Li=fr.motion,Bi=fr.defaultMotions,ni=fr.triggerSubMenuAction,ra=ni===void 0?"hover":ni,ca=fr.builtinPlacements,Sn=fr.itemIcon,Cn=fr.expandIcon,bn=fr.overflowedIndicator,Wn=bn===void 0?"...":bn,Ki=fr.overflowedIndicatorPopupClassName,qi=fr.getPopupContainer,oa=fr.onClick,na=fr.onOpenChange,Xi=fr.onKeyDown,ba=fr.openAnimation,Na=fr.openTransitionName,Ia=fr._internalRenderMenuItem,yo=fr._internalRenderSubMenuItem,Oi=(0,re.Z)(fr,rr),Fi=ae.useMemo(function(){return Xt(yn,Nn,lr)},[yn,Nn]),ka=ae.useState(!1),Vi=(0,me.Z)(ka,2),ia=Vi[0],da=Vi[1],sa=ae.useRef(),ui=Ct($n),Di=rn==="rtl",Mi=(0,se.Z)(Xr,{value:Hn,postState:function(Ba){return Ba||lr}}),mi=(0,me.Z)(Mi,2),ea=mi[0],Qi=mi[1],Ka=function(Ba){var Za=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function hs(){Qi(Ba),na==null||na(Ba)}Za?(0,ue.flushSync)(hs):hs()},Ya=ae.useState(ea),Ha=(0,me.Z)(Ya,2),oo=Ha[0],ha=Ha[1],pa=ae.useRef(!1),eo=ae.useMemo(function(){return(Zn==="inline"||Zn==="vertical")&&wn?["vertical",wn]:[Zn,!1]},[Zn,wn]),to=(0,me.Z)(eo,2),bo=to[0],ro=to[1],pl=bo==="inline",ks=ae.useState(bo),Ts=(0,me.Z)(ks,2),os=Ts[0],Tl=Ts[1],As=ae.useState(ro),Ro=(0,me.Z)(As,2),So=Ro[0],zs=Ro[1];ae.useEffect(function(){Tl(bo),zs(ro),pa.current&&(pl?Qi(oo):Ka(lr))},[bo,ro]);var Gs=ae.useState(0),Xs=(0,me.Z)(Gs,2),Al=Xs[0],ol=Xs[1],ss=Al>=Fi.length-1||os!=="horizontal"||Jn;ae.useEffect(function(){pl&&ha(ea)},[ea]),ae.useEffect(function(){return pa.current=!0,function(){pa.current=!1}},[]);var es=bt(),ja=es.registerPath,Ys=es.unregisterPath,Ol=es.refreshOverflowKeys,Ks=es.isSubPathKey,va=es.getKeyPath,ua=es.getKeys,Wa=es.getSubPathKeys,uo=ae.useMemo(function(){return{registerPath:ja,unregisterPath:Ys}},[ja,Ys]),Ja=ae.useMemo(function(){return{isSubPathKey:Ks}},[Ks]);ae.useEffect(function(){Ol(ss?lr:Fi.slice(Al+1).map(function(Oa){return Oa.key}))},[Al,ss]);var Bo=(0,se.Z)(Dn||ri&&((nr=Fi[0])===null||nr===void 0?void 0:nr.key),{value:Dn}),Ho=(0,me.Z)(Bo,2),fs=Ho[0],Wo=Ho[1],Rs=at(function(Oa){Wo(Oa)}),Os=at(function(){Wo(void 0)});(0,ae.useImperativeHandle)(Jt,function(){return{list:sa.current,focus:function(Ba){var Za,hs=ua(),Uo=He(hs,ui),Hs=Uo.elements,ls=Uo.key2element,No=Uo.element2key,Js=fe(sa.current,Hs),Qs=fs!=null?fs:Js[0]?No.get(Js[0]):(Za=Fi.find(function(Qc){return!Qc.props.disabled}))===null||Za===void 0?void 0:Za.key,el=ls.get(Qs);if(Qs&&el){var Il;el==null||(Il=el.focus)===null||Il===void 0||Il.call(el,Ba)}}}});var Zo=(0,se.Z)(gi||[],{value:nn,postState:function(Ba){return Array.isArray(Ba)?Ba:Ba==null?lr:[Ba]}}),vc=(0,me.Z)(Zo,2),ml=vc[0],gl=vc[1],nc=function(Ba){if(Qr){var Za=Ba.key,hs=ml.includes(Za),Uo;An?hs?Uo=ml.filter(function(ls){return ls!==Za}):Uo=[].concat((0,Ae.Z)(ml),[Za]):Uo=[Za],gl(Uo);var Hs=(0,x.Z)((0,x.Z)({},Ba),{},{selectedKeys:Uo});hs?qn==null||qn(Hs):pn==null||pn(Hs)}!An&&ea.length&&os!=="inline"&&Ka(lr)},Ul=at(function(Oa){oa==null||oa(Er(Oa)),nc(Oa)}),Dl=at(function(Oa,Ba){var Za=ea.filter(function(Uo){return Uo!==Oa});if(Ba)Za.push(Oa);else if(os!=="inline"){var hs=Wa(Oa);Za=Za.filter(function(Uo){return!hs.has(Uo)})}(0,pe.Z)(ea,Za,!0)||Ka(Za,!0)}),Jc=function(Ba,Za){var hs=Za!=null?Za:!ea.includes(Ba);Dl(Ba,hs)},sl=ye(os,fs,Di,ui,sa,ua,va,Wo,Jc,Xi);ae.useEffect(function(){da(!0)},[]);var ic=ae.useMemo(function(){return{_internalRenderMenuItem:Ia,_internalRenderSubMenuItem:yo}},[Ia,yo]),ll=os!=="horizontal"||Jn?Fi:Fi.map(function(Oa,Ba){return ae.createElement(Le,{key:Oa.key,overflowDisabled:Ba>Al},Oa)}),vl=ae.createElement(oe.Z,(0,Ye.Z)({id:$n,ref:sa,prefixCls:"".concat(wr,"-overflow"),component:"ul",itemComponent:en,className:ie()(wr,"".concat(wr,"-root"),"".concat(wr,"-").concat(os),Ur,(pr={},(0,vt.Z)(pr,"".concat(wr,"-inline-collapsed"),So),(0,vt.Z)(pr,"".concat(wr,"-rtl"),Di),pr),Nr),dir:rn,style:Kr,role:"menu",tabIndex:kn,data:ll,renderRawItem:function(Ba){return Ba},renderRawRest:function(Ba){var Za=Ba.length,hs=Za?Fi.slice(-Za):null;return ae.createElement(Qt,{eventKey:st,title:Wn,disabled:ss,internalPopupClose:Za===0,popupClassName:Ki},hs)},maxCount:os!=="horizontal"||Jn?oe.Z.INVALIDATE:oe.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ba){ol(Ba)},onKeyDown:sl},Oi));return ae.createElement(Ve.Provider,{value:ic},ae.createElement(de.Provider,{value:ui},ae.createElement(Le,{prefixCls:wr,rootClassName:Nr,mode:os,openKeys:ea,rtl:Di,disabled:Mn,motion:ia?Li:null,defaultMotions:ia?Bi:null,activeKey:fs,onActive:Rs,onInactive:Os,selectedKeys:ml,inlineIndent:ji,subMenuOpenDelay:hi,subMenuCloseDelay:Rn,forceSubMenuRender:Jr,builtinPlacements:ca,triggerSubMenuAction:ra,getPopupContainer:qi,itemIcon:Sn,expandIcon:Cn,onItemClick:Ul,onOpenChange:Dl},ae.createElement(Pe.Provider,{value:Ja},vl),ae.createElement("div",{style:{display:"none"},"aria-hidden":!0},ae.createElement(Ne.Provider,{value:uo},Fi)))))}),_r=or,ur=_r;ur.Item=en,ur.SubMenu=Qt,ur.ItemGroup=Ir,ur.Divider=Ar;var Mr=ur},83836:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return it}});var Ye=ke(54476),vt=ke(33885),x=ke(42978),Ae=ke(75931),me=ke(59301),re=ke(92310),z=ke.n(re),ie=ke(29301),oe=ke(34280),se=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],pe=void 0;function ne(ht,Ge){var Xe=ht.prefixCls,ct=ht.invalidate,pt=ht.item,ut=ht.renderItem,rt=ht.responsive,qe=ht.responsiveDisabled,nt=ht.registerSize,xt=ht.itemKey,yt=ht.className,Rt=ht.style,Ot=ht.children,lt=ht.display,Ue=ht.order,$e=ht.component,le=$e===void 0?"div":$e,fe=(0,Ae.Z)(ht,se),Fe=rt&&!lt;function He(We){nt(xt,We)}me.useEffect(function(){return function(){He(null)}},[]);var ye=ut&&pt!==pe?ut(pt,{index:Ue}):Ot,Re;ct||(Re={opacity:Fe?0:1,height:Fe?0:pe,overflowY:Fe?"hidden":pe,order:rt?Ue:pe,pointerEvents:Fe?"none":pe,position:Fe?"absolute":pe});var ze={};Fe&&(ze["aria-hidden"]=!0);var Ke=me.createElement(le,(0,Ye.Z)({className:z()(!ct&&Xe,yt),style:(0,vt.Z)((0,vt.Z)({},Re),Rt)},ze,fe,{ref:Ge}),ye);return rt&&(Ke=me.createElement(ie.Z,{onResize:function(st){var bt=st.offsetWidth;He(bt)},disabled:qe},Ke)),Ke}var ae=me.forwardRef(ne);ae.displayName="Item";var ue=ae,de=ke(6089),he=ke(4676),xe=ke(16089);function Se(ht){if(typeof MessageChannel=="undefined")(0,xe.Z)(ht);else{var Ge=new MessageChannel;Ge.port1.onmessage=function(){return ht()},Ge.port2.postMessage(void 0)}}function we(){var ht=me.useRef(null),Ge=function(ct){ht.current||(ht.current=[],Se(function(){(0,he.unstable_batchedUpdates)(function(){ht.current.forEach(function(pt){pt()}),ht.current=null})})),ht.current.push(ct)};return Ge}function be(ht,Ge){var Xe=me.useState(Ge),ct=(0,x.Z)(Xe,2),pt=ct[0],ut=ct[1],rt=(0,de.Z)(function(qe){ht(function(){ut(qe)})});return[pt,rt]}var Me=me.createContext(null),Le=["component"],Ce=["className"],Ne=["className"],Te=function(Ge,Xe){var ct=me.useContext(Me);if(!ct){var pt=Ge.component,ut=pt===void 0?"div":pt,rt=(0,Ae.Z)(Ge,Le);return me.createElement(ut,(0,Ye.Z)({},rt,{ref:Xe}))}var qe=ct.className,nt=(0,Ae.Z)(ct,Ce),xt=Ge.className,yt=(0,Ae.Z)(Ge,Ne);return me.createElement(Me.Provider,{value:null},me.createElement(ue,(0,Ye.Z)({ref:Xe,className:z()(qe,xt)},nt,yt)))},De=me.forwardRef(Te);De.displayName="RawItem";var Ee=De,Pe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Be="responsive",Ve="invalidate";function Ie(ht){return"+ ".concat(ht.length," ...")}function Ze(ht,Ge){var Xe=ht.prefixCls,ct=Xe===void 0?"rc-overflow":Xe,pt=ht.data,ut=pt===void 0?[]:pt,rt=ht.renderItem,qe=ht.renderRawItem,nt=ht.itemKey,xt=ht.itemWidth,yt=xt===void 0?10:xt,Rt=ht.ssr,Ot=ht.style,lt=ht.className,Ue=ht.maxCount,$e=ht.renderRest,le=ht.renderRawRest,fe=ht.prefix,Fe=ht.suffix,He=ht.component,ye=He===void 0?"div":He,Re=ht.itemComponent,ze=ht.onVisibleChange,Ke=(0,Ae.Z)(ht,Pe),We=Rt==="full",st=we(),bt=be(st,null),at=(0,x.Z)(bt,2),kt=at[0],Ht=at[1],Ct=kt||0,$t=be(st,new Map),Bt=(0,x.Z)($t,2),St=Bt[0],ft=Bt[1],dt=be(st,0),Ft=(0,x.Z)(dt,2),zt=Ft[0],Zt=Ft[1],tr=be(st,0),mr=(0,x.Z)(tr,2),Er=mr[0],zr=mr[1],jr=be(st,0),Tr=(0,x.Z)(jr,2),Vr=Tr[0],sn=Tr[1],vn=be(st,0),en=(0,x.Z)(vn,2),hn=en[0],_n=en[1],tn=(0,me.useState)(null),Ln=(0,x.Z)(tn,2),Un=Ln[0],Vn=Ln[1],$r=(0,me.useState)(null),Yr=(0,x.Z)($r,2),Lr=Yr[0],cn=Yr[1],Pr=me.useMemo(function(){return Lr===null&&We?Number.MAX_SAFE_INTEGER:Lr||0},[Lr,kt]),Wr=(0,me.useState)(!1),mn=(0,x.Z)(Wr,2),Gt=mn[0],Et=mn[1],It="".concat(ct,"-item"),Dt=Math.max(zt,Er),Lt=Ue===Be,Ut=ut.length&&Lt,Qt=Ue===Ve,yr=Ut||typeof Ue=="number"&&ut.length>Ue,cr=(0,me.useMemo)(function(){var br=ut;return Ut?kt===null&&We?br=ut:br=ut.slice(0,Math.min(ut.length,Ct/yt)):typeof Ue=="number"&&(br=ut.slice(0,Ue)),br},[ut,yt,kt,Ue,Ut]),vr=(0,me.useMemo)(function(){return Ut?ut.slice(Pr+1):ut.slice(cr.length)},[ut,cr,Ut,Pr]),Dr=(0,me.useCallback)(function(br,wr){var Nr;return typeof nt=="function"?nt(br):(Nr=nt&&(br==null?void 0:br[nt]))!==null&&Nr!==void 0?Nr:wr},[nt]),Ir=(0,me.useCallback)(rt||function(br){return br},[rt]);function Ar(br,wr,Nr){Lr===br&&(wr===void 0||wr===Un)||(cn(br),Nr||(Et(br<ut.length-1),ze==null||ze(br)),wr!==void 0&&Vn(wr))}function qt(br,wr){Ht(wr.clientWidth)}function kr(br,wr){ft(function(Nr){var Kr=new Map(Nr);return wr===null?Kr.delete(br):Kr.set(br,wr),Kr})}function Xt(br,wr){zr(wr),Zt(Er)}function rr(br,wr){sn(wr)}function lr(br,wr){_n(wr)}function or(br){return St.get(Dr(cr[br],br))}(0,oe.Z)(function(){if(Ct&&typeof Dt=="number"&&cr){var br=Vr+hn,wr=cr.length,Nr=wr-1;if(!wr){Ar(0,null);return}for(var Kr=0;Kr<wr;Kr+=1){var Ur=or(Kr);if(We&&(Ur=Ur||0),Ur===void 0){Ar(Kr-1,void 0,!0);break}if(br+=Ur,Nr===0&&br<=Ct||Kr===Nr-1&&br+or(Nr)<=Ct){Ar(Nr,null);break}else if(br+Dt>Ct){Ar(Kr-1,br-Ur-hn+Er);break}}Fe&&or(0)+hn>Ct&&Vn(null)}},[Ct,St,Er,Vr,hn,Dr,cr]);var _r=Gt&&!!vr.length,ur={};Un!==null&&Ut&&(ur={position:"absolute",left:Un,top:0});var Mr={prefixCls:It,responsive:Ut,component:Re,invalidate:Qt},Pt=qe?function(br,wr){var Nr=Dr(br,wr);return me.createElement(Me.Provider,{key:Nr,value:(0,vt.Z)((0,vt.Z)({},Mr),{},{order:wr,item:br,itemKey:Nr,registerSize:kr,display:wr<=Pr})},qe(br,wr))}:function(br,wr){var Nr=Dr(br,wr);return me.createElement(ue,(0,Ye.Z)({},Mr,{order:wr,key:Nr,item:br,renderItem:Ir,itemKey:Nr,registerSize:kr,display:wr<=Pr}))},Jt={order:_r?Pr:Number.MAX_SAFE_INTEGER,className:"".concat(It,"-rest"),registerSize:Xt,display:_r},nr=$e||Ie,pr=le?me.createElement(Me.Provider,{value:(0,vt.Z)((0,vt.Z)({},Mr),Jt)},le(vr)):me.createElement(ue,(0,Ye.Z)({},Mr,Jt),typeof nr=="function"?nr(vr):nr),fr=me.createElement(ye,(0,Ye.Z)({className:z()(!Qt&&ct,lt),style:Ot,ref:Ge},Ke),fe&&me.createElement(ue,(0,Ye.Z)({},Mr,{responsive:Lt,responsiveDisabled:!Ut,order:-1,className:"".concat(It,"-prefix"),registerSize:rr,display:!0}),fe),cr.map(Pt),yr?pr:null,Fe&&me.createElement(ue,(0,Ye.Z)({},Mr,{responsive:Lt,responsiveDisabled:!Ut,order:Pr,className:"".concat(It,"-suffix"),registerSize:lr,display:!0,style:ur}),Fe));return Lt?me.createElement(ie.Z,{onResize:qt,disabled:!Ut},fr):fr}var Qe=me.forwardRef(Ze);Qe.displayName="Overflow",Qe.Item=Ee,Qe.RESPONSIVE=Be,Qe.INVALIDATE=Ve;var tt=Qe,it=tt},91735:function(gr,Wt){"use strict";Wt.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(gr,Wt,ke){"use strict";ke.d(Wt,{ZP:function(){return z}});var Ye=ke(42978),vt=ke(59301),x=ke(47273),Ae=0,me=(0,x.Z)();function re(){var ie;return me?(ie=Ae,Ae+=1):ie="TEST_OR_SSR",ie}function z(ie){var oe=vt.useState(),se=(0,Ye.Z)(oe,2),pe=se[0],ne=se[1];return vt.useEffect(function(){ne("rc_select_".concat(re()))},[]),ie||pe}},77861:function(gr,Wt,ke){"use strict";ke.d(Wt,{Ac:function(){return kt},Xo:function(){return Er},Wx:function(){return jr},ZP:function(){return It},lk:function(){return Me}});var Ye=ke(54476),vt=ke(94480),x=ke(20068),Ae=ke(33885),me=ke(42978),re=ke(75931),z=ke(76190),ie=ke(18929),oe=ke(48736),se=ke(59301),pe=ke(92310),ne=ke.n(pe),ae=ke(34280),ue=ke(49658),de=ke(10228),he=ke(8654),xe=function(Lt){var Ut=Lt.className,Qt=Lt.customizeIcon,yr=Lt.customizeIconProps,cr=Lt.onMouseDown,vr=Lt.onClick,Dr=Lt.children,Ir;return typeof Qt=="function"?Ir=Qt(yr):Ir=Qt,se.createElement("span",{className:Ut,onMouseDown:function(qt){qt.preventDefault(),cr&&cr(qt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:vr,"aria-hidden":!0},Ir!==void 0?Ir:se.createElement("span",{className:ne()(Ut.split(/\s+/).map(function(Ar){return"".concat(Ar,"-icon")}))},Dr))},Se=xe;function we(Dt,Lt,Ut,Qt,yr){var cr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,vr=arguments.length>6?arguments[6]:void 0,Dr=arguments.length>7?arguments[7]:void 0,Ir=se.useMemo(function(){if((0,z.Z)(Qt)==="object")return Qt.clearIcon;if(yr)return yr},[Qt,yr]),Ar=se.useMemo(function(){return!!(!cr&&Qt&&(Ut.length||vr)&&!(Dr==="combobox"&&vr===""))},[Qt,cr,Ut.length,vr,Dr]);return{allowClear:Ar,clearIcon:se.createElement(Se,{className:"".concat(Dt,"-clear"),onMouseDown:Lt,customizeIcon:Ir},"\xD7")}}var be=se.createContext(null);function Me(){return se.useContext(be)}function Le(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Lt=se.useState(!1),Ut=(0,me.Z)(Lt,2),Qt=Ut[0],yr=Ut[1],cr=se.useRef(null),vr=function(){window.clearTimeout(cr.current)};se.useEffect(function(){return vr},[]);var Dr=function(Ar,qt){vr(),cr.current=window.setTimeout(function(){yr(Ar),qt&&qt()},Dt)};return[Qt,Dr,vr]}function Ce(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Lt=se.useRef(null),Ut=se.useRef(null);se.useEffect(function(){return function(){window.clearTimeout(Ut.current)}},[]);function Qt(yr){(yr||Lt.current===null)&&(Lt.current=yr),window.clearTimeout(Ut.current),Ut.current=window.setTimeout(function(){Lt.current=null},Dt)}return[function(){return Lt.current},Qt]}function Ne(Dt,Lt,Ut,Qt){var yr=se.useRef(null);yr.current={open:Lt,triggerOpen:Ut,customizedTrigger:Qt},se.useEffect(function(){function cr(vr){var Dr;if(!((Dr=yr.current)!==null&&Dr!==void 0&&Dr.customizedTrigger)){var Ir=vr.target;Ir.shadowRoot&&vr.composed&&(Ir=vr.composedPath()[0]||Ir),yr.current.open&&Dt().filter(function(Ar){return Ar}).every(function(Ar){return!Ar.contains(Ir)&&Ar!==Ir})&&yr.current.triggerOpen(!1)}}return window.addEventListener("mousedown",cr),function(){return window.removeEventListener("mousedown",cr)}},[])}var Te=ke(26112),De=ke(83836),Ee=function(Lt,Ut){var Qt,yr,cr=Lt.prefixCls,vr=Lt.id,Dr=Lt.inputElement,Ir=Lt.disabled,Ar=Lt.tabIndex,qt=Lt.autoFocus,kr=Lt.autoComplete,Xt=Lt.editable,rr=Lt.activeDescendantId,lr=Lt.value,or=Lt.maxLength,_r=Lt.onKeyDown,ur=Lt.onMouseDown,Mr=Lt.onChange,Pt=Lt.onPaste,Jt=Lt.onCompositionStart,nr=Lt.onCompositionEnd,pr=Lt.open,fr=Lt.attrs,br=Dr||se.createElement("input",null),wr=br,Nr=wr.ref,Kr=wr.props,Ur=Kr.onKeyDown,gn=Kr.onChange,kn=Kr.onMouseDown,Nn=Kr.onCompositionStart,yn=Kr.onCompositionEnd,rn=Kr.style;return(0,oe.Kp)(!("maxLength"in br.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),br=se.cloneElement(br,(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({type:"search"},Kr),{},{id:vr,ref:(0,he.sQ)(Ut,Nr),disabled:Ir,tabIndex:Ar,autoComplete:kr||"off",autoFocus:qt,className:ne()("".concat(cr,"-selection-search-input"),(Qt=br)===null||Qt===void 0||(yr=Qt.props)===null||yr===void 0?void 0:yr.className),role:"combobox","aria-label":"Search","aria-expanded":pr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(vr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(vr,"_list"),"aria-activedescendant":pr?rr:void 0},fr),{},{value:Xt?lr:"",maxLength:or,readOnly:!Xt,unselectable:Xt?null:"on",style:(0,Ae.Z)((0,Ae.Z)({},rn),{},{opacity:Xt?null:0}),onKeyDown:function(Tn){_r(Tn),Ur&&Ur(Tn)},onMouseDown:function(Tn){ur(Tn),kn&&kn(Tn)},onChange:function(Tn){Mr(Tn),gn&&gn(Tn)},onCompositionStart:function(Tn){Jt(Tn),Nn&&Nn(Tn)},onCompositionEnd:function(Tn){nr(Tn),yn&&yn(Tn)},onPaste:Pt})),br},Pe=se.forwardRef(Ee);Pe.displayName="Input";var Be=Pe;function Ve(Dt){return Array.isArray(Dt)?Dt:Dt!==void 0?[Dt]:[]}var Ie=typeof window!="undefined"&&window.document&&window.document.documentElement,Ze=Ie;function Qe(Dt){return Dt!=null}function tt(Dt){return!Dt&&Dt!==0}function it(Dt){return["string","number"].includes((0,z.Z)(Dt))}function ht(Dt){var Lt=void 0;return Dt&&(it(Dt.title)?Lt=Dt.title.toString():it(Dt.label)&&(Lt=Dt.label.toString())),Lt}function Ge(Dt,Lt){Ze?se.useLayoutEffect(Dt,Lt):se.useEffect(Dt,Lt)}function Xe(Dt){var Lt;return(Lt=Dt.key)!==null&&Lt!==void 0?Lt:Dt.value}var ct=function(Lt){Lt.preventDefault(),Lt.stopPropagation()},pt=function(Lt){var Ut=Lt.id,Qt=Lt.prefixCls,yr=Lt.values,cr=Lt.open,vr=Lt.searchValue,Dr=Lt.autoClearSearchValue,Ir=Lt.inputRef,Ar=Lt.placeholder,qt=Lt.disabled,kr=Lt.mode,Xt=Lt.showSearch,rr=Lt.autoFocus,lr=Lt.autoComplete,or=Lt.activeDescendantId,_r=Lt.tabIndex,ur=Lt.removeIcon,Mr=Lt.maxTagCount,Pt=Lt.maxTagTextLength,Jt=Lt.maxTagPlaceholder,nr=Jt===void 0?function(ai){return"+ ".concat(ai.length," ...")}:Jt,pr=Lt.tagRender,fr=Lt.onToggleOpen,br=Lt.onRemove,wr=Lt.onInputChange,Nr=Lt.onInputPaste,Kr=Lt.onInputKeyDown,Ur=Lt.onInputMouseDown,gn=Lt.onInputCompositionStart,kn=Lt.onInputCompositionEnd,Nn=se.useRef(null),yn=(0,se.useState)(0),rn=(0,me.Z)(yn,2),$n=rn[0],Tn=rn[1],Zn=(0,se.useState)(!1),wn=(0,me.Z)(Zn,2),Mn=wn[0],Jn=wn[1],zn="".concat(Qt,"-selection"),hi=cr||kr==="multiple"&&Dr===!1||kr==="tags"?vr:"",Ei=kr==="tags"||kr==="multiple"&&Dr===!1||Xt&&(cr||Mn);Ge(function(){Tn(Nn.current.scrollWidth)},[hi]);function Rn(ai,Qr,qr,An,gi){return se.createElement("span",{className:ne()("".concat(zn,"-item"),(0,x.Z)({},"".concat(zn,"-item-disabled"),qr)),title:ht(ai)},se.createElement("span",{className:"".concat(zn,"-item-content")},Qr),An&&se.createElement(Se,{className:"".concat(zn,"-item-remove"),onMouseDown:ct,onClick:gi,customizeIcon:ur},"\xD7"))}function Jr(ai,Qr,qr,An,gi){var nn=function(qn){ct(qn),fr(!cr)};return se.createElement("span",{onMouseDown:nn},pr({label:Qr,value:ai,disabled:qr,closable:An,onClose:gi}))}function Xr(ai){var Qr=ai.disabled,qr=ai.label,An=ai.value,gi=!qt&&!Qr,nn=qr;if(typeof Pt=="number"&&(typeof qr=="string"||typeof qr=="number")){var pn=String(nn);pn.length>Pt&&(nn="".concat(pn.slice(0,Pt),"..."))}var qn=function(ji){ji&&ji.stopPropagation(),br(ai)};return typeof pr=="function"?Jr(An,nn,Qr,gi,qn):Rn(ai,nn,Qr,gi,qn)}function Hn(ai){var Qr=typeof nr=="function"?nr(ai):nr;return Rn({title:Qr},Qr,!1)}var Dn=se.createElement("div",{className:"".concat(zn,"-search"),style:{width:$n},onFocus:function(){Jn(!0)},onBlur:function(){Jn(!1)}},se.createElement(Be,{ref:Ir,open:cr,prefixCls:Qt,id:Ut,inputElement:null,disabled:qt,autoFocus:rr,autoComplete:lr,editable:Ei,activeDescendantId:or,value:hi,onKeyDown:Kr,onMouseDown:Ur,onChange:wr,onPaste:Nr,onCompositionStart:gn,onCompositionEnd:kn,tabIndex:_r,attrs:(0,Te.Z)(Lt,!0)}),se.createElement("span",{ref:Nn,className:"".concat(zn,"-search-mirror"),"aria-hidden":!0},hi,"\xA0")),ri=se.createElement(De.Z,{prefixCls:"".concat(zn,"-overflow"),data:yr,renderItem:Xr,renderRest:Hn,suffix:Dn,itemKey:Xe,maxCount:Mr});return se.createElement(se.Fragment,null,ri,!yr.length&&!hi&&se.createElement("span",{className:"".concat(zn,"-placeholder")},Ar))},ut=pt,rt=function(Lt){var Ut=Lt.inputElement,Qt=Lt.prefixCls,yr=Lt.id,cr=Lt.inputRef,vr=Lt.disabled,Dr=Lt.autoFocus,Ir=Lt.autoComplete,Ar=Lt.activeDescendantId,qt=Lt.mode,kr=Lt.open,Xt=Lt.values,rr=Lt.placeholder,lr=Lt.tabIndex,or=Lt.showSearch,_r=Lt.searchValue,ur=Lt.activeValue,Mr=Lt.maxLength,Pt=Lt.onInputKeyDown,Jt=Lt.onInputMouseDown,nr=Lt.onInputChange,pr=Lt.onInputPaste,fr=Lt.onInputCompositionStart,br=Lt.onInputCompositionEnd,wr=Lt.title,Nr=se.useState(!1),Kr=(0,me.Z)(Nr,2),Ur=Kr[0],gn=Kr[1],kn=qt==="combobox",Nn=kn||or,yn=Xt[0],rn=_r||"";kn&&ur&&!Ur&&(rn=ur),se.useEffect(function(){kn&&gn(!1)},[kn,ur]);var $n=qt!=="combobox"&&!kr&&!or?!1:!!rn,Tn=wr===void 0?ht(yn):wr,Zn=function(){if(yn)return null;var Mn=$n?{visibility:"hidden"}:void 0;return se.createElement("span",{className:"".concat(Qt,"-selection-placeholder"),style:Mn},rr)};return se.createElement(se.Fragment,null,se.createElement("span",{className:"".concat(Qt,"-selection-search")},se.createElement(Be,{ref:cr,prefixCls:Qt,id:yr,open:kr,inputElement:Ut,disabled:vr,autoFocus:Dr,autoComplete:Ir,editable:Nn,activeDescendantId:Ar,value:rn,onKeyDown:Pt,onMouseDown:Jt,onChange:function(Mn){gn(!0),nr(Mn)},onPaste:pr,onCompositionStart:fr,onCompositionEnd:br,tabIndex:lr,attrs:(0,Te.Z)(Lt,!0),maxLength:kn?Mr:void 0})),!kn&&yn?se.createElement("span",{className:"".concat(Qt,"-selection-item"),title:Tn,style:$n?{visibility:"hidden"}:void 0},yn.label):null,Zn())},qe=rt;function nt(Dt){return![de.Z.ESC,de.Z.SHIFT,de.Z.BACKSPACE,de.Z.TAB,de.Z.WIN_KEY,de.Z.ALT,de.Z.META,de.Z.WIN_KEY_RIGHT,de.Z.CTRL,de.Z.SEMICOLON,de.Z.EQUALS,de.Z.CAPS_LOCK,de.Z.CONTEXT_MENU,de.Z.F1,de.Z.F2,de.Z.F3,de.Z.F4,de.Z.F5,de.Z.F6,de.Z.F7,de.Z.F8,de.Z.F9,de.Z.F10,de.Z.F11,de.Z.F12].includes(Dt)}var xt=function(Lt,Ut){var Qt=(0,se.useRef)(null),yr=(0,se.useRef)(!1),cr=Lt.prefixCls,vr=Lt.open,Dr=Lt.mode,Ir=Lt.showSearch,Ar=Lt.tokenWithEnter,qt=Lt.autoClearSearchValue,kr=Lt.onSearch,Xt=Lt.onSearchSubmit,rr=Lt.onToggleOpen,lr=Lt.onInputKeyDown,or=Lt.domRef;se.useImperativeHandle(Ut,function(){return{focus:function(){Qt.current.focus()},blur:function(){Qt.current.blur()}}});var _r=Ce(0),ur=(0,me.Z)(_r,2),Mr=ur[0],Pt=ur[1],Jt=function(rn){var $n=rn.which;($n===de.Z.UP||$n===de.Z.DOWN)&&rn.preventDefault(),lr&&lr(rn),$n===de.Z.ENTER&&Dr==="tags"&&!yr.current&&!vr&&(Xt==null||Xt(rn.target.value)),nt($n)&&rr(!0)},nr=function(){Pt(!0)},pr=(0,se.useRef)(null),fr=function(rn){kr(rn,!0,yr.current)!==!1&&rr(!0)},br=function(){yr.current=!0},wr=function(rn){yr.current=!1,Dr!=="combobox"&&fr(rn.target.value)},Nr=function(rn){var $n=rn.target.value;if(Ar&&pr.current&&/[\r\n]/.test(pr.current)){var Tn=pr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");$n=$n.replace(Tn,pr.current)}pr.current=null,fr($n)},Kr=function(rn){var $n=rn.clipboardData,Tn=$n.getData("text");pr.current=Tn},Ur=function(rn){var $n=rn.target;if($n!==Qt.current){var Tn=document.body.style.msTouchAction!==void 0;Tn?setTimeout(function(){Qt.current.focus()}):Qt.current.focus()}},gn=function(rn){var $n=Mr();rn.target!==Qt.current&&!$n&&Dr!=="combobox"&&rn.preventDefault(),(Dr!=="combobox"&&(!Ir||!$n)||!vr)&&(vr&&qt!==!1&&kr("",!0,!1),rr())},kn={inputRef:Qt,onInputKeyDown:Jt,onInputMouseDown:nr,onInputChange:Nr,onInputPaste:Kr,onInputCompositionStart:br,onInputCompositionEnd:wr},Nn=Dr==="multiple"||Dr==="tags"?se.createElement(ut,(0,Ye.Z)({},Lt,kn)):se.createElement(qe,(0,Ye.Z)({},Lt,kn));return se.createElement("div",{ref:or,className:"".concat(cr,"-selector"),onClick:Ur,onMouseDown:gn},Nn)},yt=se.forwardRef(xt);yt.displayName="Selector";var Rt=yt,Ot=ke(35593),lt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ue=function(Lt){var Ut=Lt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ut,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ut,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ut,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ut,adjustY:1},htmlRegion:"scroll"}}},$e=function(Lt,Ut){var Qt=Lt.prefixCls,yr=Lt.disabled,cr=Lt.visible,vr=Lt.children,Dr=Lt.popupElement,Ir=Lt.animation,Ar=Lt.transitionName,qt=Lt.dropdownStyle,kr=Lt.dropdownClassName,Xt=Lt.direction,rr=Xt===void 0?"ltr":Xt,lr=Lt.placement,or=Lt.builtinPlacements,_r=Lt.dropdownMatchSelectWidth,ur=Lt.dropdownRender,Mr=Lt.dropdownAlign,Pt=Lt.getPopupContainer,Jt=Lt.empty,nr=Lt.getTriggerDOMNode,pr=Lt.onPopupVisibleChange,fr=Lt.onPopupMouseEnter,br=(0,re.Z)(Lt,lt),wr="".concat(Qt,"-dropdown"),Nr=Dr;ur&&(Nr=ur(Dr));var Kr=se.useMemo(function(){return or||Ue(_r)},[or,_r]),Ur=Ir?"".concat(wr,"-").concat(Ir):Ar,gn=typeof _r=="number",kn=se.useMemo(function(){return gn?null:_r===!1?"minWidth":"width"},[_r,gn]),Nn=qt;gn&&(Nn=(0,Ae.Z)((0,Ae.Z)({},Nn),{},{width:_r}));var yn=se.useRef(null);return se.useImperativeHandle(Ut,function(){return{getPopupElement:function(){return yn.current}}}),se.createElement(Ot.Z,(0,Ye.Z)({},br,{showAction:pr?["click"]:[],hideAction:pr?["click"]:[],popupPlacement:lr||(rr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Kr,prefixCls:wr,popupTransitionName:Ur,popup:se.createElement("div",{ref:yn,onMouseEnter:fr},Nr),stretch:kn,popupAlign:Mr,popupVisible:cr,getPopupContainer:Pt,popupClassName:ne()(kr,(0,x.Z)({},"".concat(wr,"-empty"),Jt)),popupStyle:Nn,getTriggerDOMNode:nr,onPopupVisibleChange:pr}),vr)},le=se.forwardRef($e);le.displayName="SelectTrigger";var fe=le,Fe=ke(66712);function He(Dt,Lt){var Ut=Dt.key,Qt;return"value"in Dt&&(Qt=Dt.value),Ut!=null?Ut:Qt!==void 0?Qt:"rc-index-key-".concat(Lt)}function ye(Dt,Lt){var Ut=Dt||{},Qt=Ut.label,yr=Ut.value,cr=Ut.options,vr=Ut.groupLabel,Dr=Qt||(Lt?"children":"label");return{label:Dr,value:yr||"value",options:cr||"options",groupLabel:vr||Dr}}function Re(Dt){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ut=Lt.fieldNames,Qt=Lt.childrenAsData,yr=[],cr=ye(Ut,!1),vr=cr.label,Dr=cr.value,Ir=cr.options,Ar=cr.groupLabel;function qt(kr,Xt){kr.forEach(function(rr){if(Xt||!(Ir in rr)){var lr=rr[Dr];yr.push({key:He(rr,yr.length),groupOption:Xt,data:rr,label:rr[vr],value:lr})}else{var or=rr[Ar];or===void 0&&Qt&&(or=rr.label),yr.push({key:He(rr,yr.length),group:!0,data:rr,label:or}),qt(rr[Ir],!0)}})}return qt(Dt,!1),yr}function ze(Dt){var Lt=(0,Ae.Z)({},Dt);return"props"in Lt||Object.defineProperty(Lt,"props",{get:function(){return(0,oe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Lt}}),Lt}function Ke(Dt,Lt){if(!Lt||!Lt.length)return null;var Ut=!1;function Qt(cr,vr){var Dr=(0,Fe.Z)(vr),Ir=Dr[0],Ar=Dr.slice(1);if(!Ir)return[cr];var qt=cr.split(Ir);return Ut=Ut||qt.length>1,qt.reduce(function(kr,Xt){return[].concat((0,vt.Z)(kr),(0,vt.Z)(Qt(Xt,Ar)))},[]).filter(function(kr){return kr})}var yr=Qt(Dt,Lt);return Ut?yr:null}var We=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],st=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function bt(Dt){return Dt==="tags"||Dt==="multiple"}var at=se.forwardRef(function(Dt,Lt){var Ut,Qt,yr=Dt.id,cr=Dt.prefixCls,vr=Dt.className,Dr=Dt.showSearch,Ir=Dt.tagRender,Ar=Dt.direction,qt=Dt.omitDomProps,kr=Dt.displayValues,Xt=Dt.onDisplayValuesChange,rr=Dt.emptyOptions,lr=Dt.notFoundContent,or=lr===void 0?"Not Found":lr,_r=Dt.onClear,ur=Dt.mode,Mr=Dt.disabled,Pt=Dt.loading,Jt=Dt.getInputElement,nr=Dt.getRawInputElement,pr=Dt.open,fr=Dt.defaultOpen,br=Dt.onDropdownVisibleChange,wr=Dt.activeValue,Nr=Dt.onActiveValueChange,Kr=Dt.activeDescendantId,Ur=Dt.searchValue,gn=Dt.autoClearSearchValue,kn=Dt.onSearch,Nn=Dt.onSearchSplit,yn=Dt.tokenSeparators,rn=Dt.allowClear,$n=Dt.suffixIcon,Tn=Dt.clearIcon,Zn=Dt.OptionList,wn=Dt.animation,Mn=Dt.transitionName,Jn=Dt.dropdownStyle,zn=Dt.dropdownClassName,hi=Dt.dropdownMatchSelectWidth,Ei=Dt.dropdownRender,Rn=Dt.dropdownAlign,Jr=Dt.placement,Xr=Dt.builtinPlacements,Hn=Dt.getPopupContainer,Dn=Dt.showAction,ri=Dn===void 0?[]:Dn,ai=Dt.onFocus,Qr=Dt.onBlur,qr=Dt.onKeyUp,An=Dt.onKeyDown,gi=Dt.onMouseDown,nn=(0,re.Z)(Dt,We),pn=bt(ur),qn=(Dr!==void 0?Dr:pn)||ur==="combobox",li=(0,Ae.Z)({},nn);st.forEach(function(va){delete li[va]}),qt==null||qt.forEach(function(va){delete li[va]});var ji=se.useState(!1),Li=(0,me.Z)(ji,2),Bi=Li[0],ni=Li[1];se.useEffect(function(){ni((0,ue.Z)())},[]);var ra=se.useRef(null),ca=se.useRef(null),Sn=se.useRef(null),Cn=se.useRef(null),bn=se.useRef(null),Wn=Le(),Ki=(0,me.Z)(Wn,3),qi=Ki[0],oa=Ki[1],na=Ki[2];se.useImperativeHandle(Lt,function(){var va,ua;return{focus:(va=Cn.current)===null||va===void 0?void 0:va.focus,blur:(ua=Cn.current)===null||ua===void 0?void 0:ua.blur,scrollTo:function(uo){var Ja;return(Ja=bn.current)===null||Ja===void 0?void 0:Ja.scrollTo(uo)}}});var Xi=se.useMemo(function(){var va;if(ur!=="combobox")return Ur;var ua=(va=kr[0])===null||va===void 0?void 0:va.value;return typeof ua=="string"||typeof ua=="number"?String(ua):""},[Ur,ur,kr]),ba=ur==="combobox"&&typeof Jt=="function"&&Jt()||null,Na=typeof nr=="function"&&nr(),Ia=(0,he.x1)(ca,Na==null||(Ut=Na.props)===null||Ut===void 0?void 0:Ut.ref),yo=se.useState(!1),Oi=(0,me.Z)(yo,2),Fi=Oi[0],ka=Oi[1];(0,ae.Z)(function(){ka(!0)},[]);var Vi=(0,ie.Z)(!1,{defaultValue:fr,value:pr}),ia=(0,me.Z)(Vi,2),da=ia[0],sa=ia[1],ui=Fi?da:!1,Di=!or&&rr;(Mr||Di&&ui&&ur==="combobox")&&(ui=!1);var Mi=Di?!1:ui,mi=se.useCallback(function(va){var ua=va!==void 0?va:!ui;Mr||(sa(ua),ui!==ua&&(br==null||br(ua)))},[Mr,ui,sa,br]),ea=se.useMemo(function(){return(yn||[]).some(function(va){return[`
|
|
|
`,`\r
|
|
|
`].includes(va)})},[yn]),Qi=function(ua,Wa,uo){var Ja=!0,Bo=ua;Nr==null||Nr(null);var Ho=uo?null:Ke(ua,yn);return ur!=="combobox"&&Ho&&(Bo="",Nn==null||Nn(Ho),mi(!1),Ja=!1),kn&&Xi!==Bo&&kn(Bo,{source:Wa?"typing":"effect"}),Ja},Ka=function(ua){!ua||!ua.trim()||kn(ua,{source:"submit"})};se.useEffect(function(){!ui&&!pn&&ur!=="combobox"&&Qi("",!1,!1)},[ui]),se.useEffect(function(){da&&Mr&&sa(!1),Mr&&oa(!1)},[Mr]);var Ya=Ce(),Ha=(0,me.Z)(Ya,2),oo=Ha[0],ha=Ha[1],pa=function(ua){var Wa=oo(),uo=ua.which;if(uo===de.Z.ENTER&&(ur!=="combobox"&&ua.preventDefault(),ui||mi(!0)),ha(!!Xi),uo===de.Z.BACKSPACE&&!Wa&&pn&&!Xi&&kr.length){for(var Ja=(0,vt.Z)(kr),Bo=null,Ho=Ja.length-1;Ho>=0;Ho-=1){var fs=Ja[Ho];if(!fs.disabled){Ja.splice(Ho,1),Bo=fs;break}}Bo&&Xt(Ja,{type:"remove",values:[Bo]})}for(var Wo=arguments.length,Rs=new Array(Wo>1?Wo-1:0),Os=1;Os<Wo;Os++)Rs[Os-1]=arguments[Os];if(ui&&bn.current){var Zo;(Zo=bn.current).onKeyDown.apply(Zo,[ua].concat(Rs))}An==null||An.apply(void 0,[ua].concat(Rs))},eo=function(ua){for(var Wa=arguments.length,uo=new Array(Wa>1?Wa-1:0),Ja=1;Ja<Wa;Ja++)uo[Ja-1]=arguments[Ja];if(ui&&bn.current){var Bo;(Bo=bn.current).onKeyUp.apply(Bo,[ua].concat(uo))}qr==null||qr.apply(void 0,[ua].concat(uo))},to=function(ua){var Wa=kr.filter(function(uo){return uo!==ua});Xt(Wa,{type:"remove",values:[ua]})},bo=se.useRef(!1),ro=function(){oa(!0),Mr||(ai&&!bo.current&&ai.apply(void 0,arguments),ri.includes("focus")&&mi(!0)),bo.current=!0},pl=function(){oa(!1,function(){bo.current=!1,mi(!1)}),!Mr&&(Xi&&(ur==="tags"?kn(Xi,{source:"submit"}):ur==="multiple"&&kn("",{source:"blur"})),Qr&&Qr.apply(void 0,arguments))},ks=[];se.useEffect(function(){return function(){ks.forEach(function(va){return clearTimeout(va)}),ks.splice(0,ks.length)}},[]);var Ts=function(ua){var Wa,uo=ua.target,Ja=(Wa=Sn.current)===null||Wa===void 0?void 0:Wa.getPopupElement();if(Ja&&Ja.contains(uo)){var Bo=setTimeout(function(){var Rs=ks.indexOf(Bo);if(Rs!==-1&&ks.splice(Rs,1),na(),!Bi&&!Ja.contains(document.activeElement)){var Os;(Os=Cn.current)===null||Os===void 0||Os.focus()}});ks.push(Bo)}for(var Ho=arguments.length,fs=new Array(Ho>1?Ho-1:0),Wo=1;Wo<Ho;Wo++)fs[Wo-1]=arguments[Wo];gi==null||gi.apply(void 0,[ua].concat(fs))},os=se.useState({}),Tl=(0,me.Z)(os,2),As=Tl[1];function Ro(){As({})}var So;Na&&(So=function(ua){mi(ua)}),Ne(function(){var va;return[ra.current,(va=Sn.current)===null||va===void 0?void 0:va.getPopupElement()]},Mi,mi,!!Na);var zs=se.useMemo(function(){return(0,Ae.Z)((0,Ae.Z)({},Dt),{},{notFoundContent:or,open:ui,triggerOpen:Mi,id:yr,showSearch:qn,multiple:pn,toggleOpen:mi})},[Dt,or,Mi,ui,yr,qn,pn,mi]),Gs=!!$n||Pt,Xs;Gs&&(Xs=se.createElement(Se,{className:ne()("".concat(cr,"-arrow"),(0,x.Z)({},"".concat(cr,"-arrow-loading"),Pt)),customizeIcon:$n,customizeIconProps:{loading:Pt,searchValue:Xi,open:ui,focused:qi,showSearch:qn}}));var Al=function(){var ua;_r==null||_r(),(ua=Cn.current)===null||ua===void 0||ua.focus(),Xt([],{type:"clear",values:kr}),Qi("",!1,!1)},ol=we(cr,Al,kr,rn,Tn,Mr,Xi,ur),ss=ol.allowClear,es=ol.clearIcon,ja=se.createElement(Zn,{ref:bn}),Ys=ne()(cr,vr,(Qt={},(0,x.Z)(Qt,"".concat(cr,"-focused"),qi),(0,x.Z)(Qt,"".concat(cr,"-multiple"),pn),(0,x.Z)(Qt,"".concat(cr,"-single"),!pn),(0,x.Z)(Qt,"".concat(cr,"-allow-clear"),rn),(0,x.Z)(Qt,"".concat(cr,"-show-arrow"),Gs),(0,x.Z)(Qt,"".concat(cr,"-disabled"),Mr),(0,x.Z)(Qt,"".concat(cr,"-loading"),Pt),(0,x.Z)(Qt,"".concat(cr,"-open"),ui),(0,x.Z)(Qt,"".concat(cr,"-customize-input"),ba),(0,x.Z)(Qt,"".concat(cr,"-show-search"),qn),Qt)),Ol=se.createElement(fe,{ref:Sn,disabled:Mr,prefixCls:cr,visible:Mi,popupElement:ja,animation:wn,transitionName:Mn,dropdownStyle:Jn,dropdownClassName:zn,direction:Ar,dropdownMatchSelectWidth:hi,dropdownRender:Ei,dropdownAlign:Rn,placement:Jr,builtinPlacements:Xr,getPopupContainer:Hn,empty:rr,getTriggerDOMNode:function(){return ca.current},onPopupVisibleChange:So,onPopupMouseEnter:Ro},Na?se.cloneElement(Na,{ref:Ia}):se.createElement(Rt,(0,Ye.Z)({},Dt,{domRef:ca,prefixCls:cr,inputElement:ba,ref:Cn,id:yr,showSearch:qn,autoClearSearchValue:gn,mode:ur,activeDescendantId:Kr,tagRender:Ir,values:kr,open:ui,onToggleOpen:mi,activeValue:wr,searchValue:Xi,onSearch:Qi,onSearchSubmit:Ka,onRemove:to,tokenWithEnter:ea}))),Ks;return Na?Ks=Ol:Ks=se.createElement("div",(0,Ye.Z)({className:Ys},li,{ref:ra,onMouseDown:Ts,onKeyDown:pa,onKeyUp:eo,onFocus:ro,onBlur:pl}),qi&&!ui&&se.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(kr.map(function(va){var ua=va.label,Wa=va.value;return["number","string"].includes((0,z.Z)(ua))?ua:Wa}).join(", "))),Ol,Xs,ss&&es),se.createElement(be.Provider,{value:zs},Ks)}),kt=at,Ht=function(Dt,Lt){var Ut=se.useRef({values:new Map,options:new Map}),Qt=se.useMemo(function(){var cr=Ut.current,vr=cr.values,Dr=cr.options,Ir=Dt.map(function(kr){if(kr.label===void 0){var Xt;return(0,Ae.Z)((0,Ae.Z)({},kr),{},{label:(Xt=vr.get(kr.value))===null||Xt===void 0?void 0:Xt.label})}return kr}),Ar=new Map,qt=new Map;return Ir.forEach(function(kr){Ar.set(kr.value,kr),qt.set(kr.value,Lt.get(kr.value)||Dr.get(kr.value))}),Ut.current.values=Ar,Ut.current.options=qt,Ir},[Dt,Lt]),yr=se.useCallback(function(cr){return Lt.get(cr)||Ut.current.options.get(cr)},[Lt]);return[Qt,yr]};function Ct(Dt,Lt){return Ve(Dt).join("").toUpperCase().includes(Lt)}var $t=function(Dt,Lt,Ut,Qt,yr){return se.useMemo(function(){if(!Ut||Qt===!1)return Dt;var cr=Lt.options,vr=Lt.label,Dr=Lt.value,Ir=[],Ar=typeof Qt=="function",qt=Ut.toUpperCase(),kr=Ar?Qt:function(rr,lr){return yr?Ct(lr[yr],qt):lr[cr]?Ct(lr[vr!=="children"?vr:"label"],qt):Ct(lr[Dr],qt)},Xt=Ar?function(rr){return ze(rr)}:function(rr){return rr};return Dt.forEach(function(rr){if(rr[cr]){var lr=kr(Ut,Xt(rr));if(lr)Ir.push(rr);else{var or=rr[cr].filter(function(_r){return kr(Ut,Xt(_r))});or.length&&Ir.push((0,Ae.Z)((0,Ae.Z)({},rr),{},(0,x.Z)({},cr,or)))}return}kr(Ut,Xt(rr))&&Ir.push(rr)}),Ir},[Dt,Qt,yr,Ut,Lt])},Bt=ke(17115),St=ke(11592),ft=["children","value"],dt=["children"];function Ft(Dt){var Lt=Dt,Ut=Lt.key,Qt=Lt.props,yr=Qt.children,cr=Qt.value,vr=(0,re.Z)(Qt,ft);return(0,Ae.Z)({key:Ut,value:cr!==void 0?cr:Ut,children:yr},vr)}function zt(Dt){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,St.Z)(Dt).map(function(Ut,Qt){if(!se.isValidElement(Ut)||!Ut.type)return null;var yr=Ut,cr=yr.type.isSelectOptGroup,vr=yr.key,Dr=yr.props,Ir=Dr.children,Ar=(0,re.Z)(Dr,dt);return Lt||!cr?Ft(Ut):(0,Ae.Z)((0,Ae.Z)({key:"__RC_SELECT_GRP__".concat(vr===null?Qt:vr,"__"),label:vr},Ar),{},{options:zt(Ir)})}).filter(function(Ut){return Ut})}function Zt(Dt,Lt,Ut,Qt,yr){return se.useMemo(function(){var cr=Dt,vr=!Dt;vr&&(cr=zt(Lt));var Dr=new Map,Ir=new Map,Ar=function(Xt,rr,lr){lr&&typeof lr=="string"&&Xt.set(rr[lr],rr)};function qt(kr){for(var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rr=0;rr<kr.length;rr+=1){var lr=kr[rr];!lr[Ut.options]||Xt?(Dr.set(lr[Ut.value],lr),Ar(Ir,lr,Ut.label),Ar(Ir,lr,Qt),Ar(Ir,lr,yr)):qt(lr[Ut.options],!0)}}return qt(cr),{options:cr,valueOptions:Dr,labelOptions:Ir}},[Dt,Lt,Ut,Qt,yr])}function tr(Dt){var Lt=se.useRef();Lt.current=Dt;var Ut=se.useCallback(function(){return Lt.current.apply(Lt,arguments)},[]);return Ut}var mr=function(){return null};mr.isSelectOptGroup=!0;var Er=mr,zr=function(){return null};zr.isSelectOption=!0;var jr=zr,Tr=ke(80547),Vr=ke(2738),sn=ke(48911),vn=se.createContext(null),en=vn;function hn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _n=["disabled","title","children","style","className"];function tn(Dt){return typeof Dt=="string"||typeof Dt=="number"}var Ln=function(Lt,Ut){var Qt=Me(),yr=Qt.prefixCls,cr=Qt.id,vr=Qt.open,Dr=Qt.multiple,Ir=Qt.mode,Ar=Qt.searchValue,qt=Qt.toggleOpen,kr=Qt.notFoundContent,Xt=Qt.onPopupScroll,rr=se.useContext(en),lr=rr.flattenOptions,or=rr.onActiveValue,_r=rr.defaultActiveFirstOption,ur=rr.onSelect,Mr=rr.menuItemSelectedIcon,Pt=rr.rawValues,Jt=rr.fieldNames,nr=rr.virtual,pr=rr.direction,fr=rr.listHeight,br=rr.listItemHeight,wr="".concat(yr,"-item"),Nr=(0,Tr.Z)(function(){return lr},[vr,lr],function(Rn,Jr){return Jr[0]&&Rn[1]!==Jr[1]}),Kr=se.useRef(null),Ur=function(Jr){Jr.preventDefault()},gn=function(Jr){Kr.current&&Kr.current.scrollTo(typeof Jr=="number"?{index:Jr}:Jr)},kn=function(Jr){for(var Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Hn=Nr.length,Dn=0;Dn<Hn;Dn+=1){var ri=(Jr+Dn*Xr+Hn)%Hn,ai=Nr[ri],Qr=ai.group,qr=ai.data;if(!Qr&&!qr.disabled)return ri}return-1},Nn=se.useState(function(){return kn(0)}),yn=(0,me.Z)(Nn,2),rn=yn[0],$n=yn[1],Tn=function(Jr){var Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;$n(Jr);var Hn={source:Xr?"keyboard":"mouse"},Dn=Nr[Jr];if(!Dn){or(null,-1,Hn);return}or(Dn.value,Jr,Hn)};(0,se.useEffect)(function(){Tn(_r!==!1?kn(0):-1)},[Nr.length,Ar]);var Zn=se.useCallback(function(Rn){return Pt.has(Rn)&&Ir!=="combobox"},[Ir,(0,vt.Z)(Pt).toString(),Pt.size]);(0,se.useEffect)(function(){var Rn=setTimeout(function(){if(!Dr&&vr&&Pt.size===1){var Xr=Array.from(Pt)[0],Hn=Nr.findIndex(function(Dn){var ri=Dn.data;return ri.value===Xr});Hn!==-1&&(Tn(Hn),gn(Hn))}});if(vr){var Jr;(Jr=Kr.current)===null||Jr===void 0||Jr.scrollTo(void 0)}return function(){return clearTimeout(Rn)}},[vr,Ar,lr.length]);var wn=function(Jr){Jr!==void 0&&ur(Jr,{selected:!Pt.has(Jr)}),Dr||qt(!1)};if(se.useImperativeHandle(Ut,function(){return{onKeyDown:function(Jr){var Xr=Jr.which,Hn=Jr.ctrlKey;switch(Xr){case de.Z.N:case de.Z.P:case de.Z.UP:case de.Z.DOWN:{var Dn=0;if(Xr===de.Z.UP?Dn=-1:Xr===de.Z.DOWN?Dn=1:hn()&&Hn&&(Xr===de.Z.N?Dn=1:Xr===de.Z.P&&(Dn=-1)),Dn!==0){var ri=kn(rn+Dn,Dn);gn(ri),Tn(ri,!0)}break}case de.Z.ENTER:{var ai=Nr[rn];ai&&!ai.data.disabled?wn(ai.value):wn(void 0),vr&&Jr.preventDefault();break}case de.Z.ESC:qt(!1),vr&&Jr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Jr){gn(Jr)}}}),Nr.length===0)return se.createElement("div",{role:"listbox",id:"".concat(cr,"_list"),className:"".concat(wr,"-empty"),onMouseDown:Ur},kr);var Mn=Object.keys(Jt).map(function(Rn){return Jt[Rn]}),Jn=function(Jr){return Jr.label};function zn(Rn,Jr){var Xr=Rn.group;return{role:Xr?"presentation":"option",id:"".concat(cr,"_list_").concat(Jr)}}var hi=function(Jr){var Xr=Nr[Jr];if(!Xr)return null;var Hn=Xr.data||{},Dn=Hn.value,ri=Xr.group,ai=(0,Te.Z)(Hn,!0),Qr=Jn(Xr);return Xr?se.createElement("div",(0,Ye.Z)({"aria-label":typeof Qr=="string"&&!ri?Qr:null},ai,{key:Jr},zn(Xr,Jr),{"aria-selected":Zn(Dn)}),Dn):null},Ei={role:"listbox",id:"".concat(cr,"_list")};return se.createElement(se.Fragment,null,nr&&se.createElement("div",(0,Ye.Z)({},Ei,{style:{height:0,width:0,overflow:"hidden"}}),hi(rn-1),hi(rn),hi(rn+1)),se.createElement(sn.Z,{itemKey:"key",ref:Kr,data:Nr,height:fr,itemHeight:br,fullHeight:!1,onMouseDown:Ur,onScroll:Xt,virtual:nr,direction:pr,innerProps:nr?null:Ei},function(Rn,Jr){var Xr,Hn=Rn.group,Dn=Rn.groupOption,ri=Rn.data,ai=Rn.label,Qr=Rn.value,qr=ri.key;if(Hn){var An,gi=(An=ri.title)!==null&&An!==void 0?An:tn(ai)?ai.toString():void 0;return se.createElement("div",{className:ne()(wr,"".concat(wr,"-group")),title:gi},ai!==void 0?ai:qr)}var nn=ri.disabled,pn=ri.title,qn=ri.children,li=ri.style,ji=ri.className,Li=(0,re.Z)(ri,_n),Bi=(0,Vr.Z)(Li,Mn),ni=Zn(Qr),ra="".concat(wr,"-option"),ca=ne()(wr,ra,ji,(Xr={},(0,x.Z)(Xr,"".concat(ra,"-grouped"),Dn),(0,x.Z)(Xr,"".concat(ra,"-active"),rn===Jr&&!nn),(0,x.Z)(Xr,"".concat(ra,"-disabled"),nn),(0,x.Z)(Xr,"".concat(ra,"-selected"),ni),Xr)),Sn=Jn(Rn),Cn=!Mr||typeof Mr=="function"||ni,bn=typeof Sn=="number"?Sn:Sn||Qr,Wn=tn(bn)?bn.toString():void 0;return pn!==void 0&&(Wn=pn),se.createElement("div",(0,Ye.Z)({},(0,Te.Z)(Bi),nr?{}:zn(Rn,Jr),{"aria-selected":ni,className:ca,title:Wn,onMouseMove:function(){rn===Jr||nn||Tn(Jr)},onClick:function(){nn||wn(Qr)},style:li}),se.createElement("div",{className:"".concat(ra,"-content")},bn),se.isValidElement(Mr)||ni,Cn&&se.createElement(Se,{className:"".concat(wr,"-option-state"),customizeIcon:Mr,customizeIconProps:{isSelected:ni}},ni?"\u2713":null))}))},Un=se.forwardRef(Ln);Un.displayName="OptionList";var Vn=Un;function $r(Dt){var Lt=Dt.mode,Ut=Dt.options,Qt=Dt.children,yr=Dt.backfill,cr=Dt.allowClear,vr=Dt.placeholder,Dr=Dt.getInputElement,Ir=Dt.showSearch,Ar=Dt.onSearch,qt=Dt.defaultOpen,kr=Dt.autoFocus,Xt=Dt.labelInValue,rr=Dt.value,lr=Dt.inputValue,or=Dt.optionLabelProp,_r=isMultiple(Lt),ur=Ir!==void 0?Ir:_r||Lt==="combobox",Mr=Ut||convertChildrenToData(Qt);if(warning(Lt!=="tags"||Mr.every(function(pr){return!pr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Lt==="tags"||Lt==="combobox"){var Pt=Mr.some(function(pr){return pr.options?pr.options.some(function(fr){return typeof("value"in fr?fr.value:fr.key)=="number"}):typeof("value"in pr?pr.value:pr.key)=="number"});warning(!Pt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Lt!=="combobox"||!or,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Lt==="combobox"||!yr,"`backfill` only works with `combobox` mode."),warning(Lt==="combobox"||!Dr,"`getInputElement` only work with `combobox` mode."),noteOnce(Lt!=="combobox"||!Dr||!cr||!vr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ar&&!ur&&Lt!=="combobox"&&Lt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!qt||kr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),rr!=null){var Jt=toArray(rr);warning(!Xt||Jt.every(function(pr){return _typeof(pr)==="object"&&("key"in pr||"value"in pr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!_r||Array.isArray(rr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Qt){var nr=null;toNodeArray(Qt).some(function(pr){if(!React.isValidElement(pr)||!pr.type)return!1;var fr=pr,br=fr.type;if(br.isSelectOption)return!1;if(br.isSelectOptGroup){var wr=toNodeArray(pr.props.children).every(function(Nr){return!React.isValidElement(Nr)||!pr.type||Nr.type.isSelectOption?!0:(nr=Nr.type,!1)});return!wr}return nr=br,!0}),nr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(nr.displayName||nr.name||nr,"`.")),warning(lr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Yr(Dt,Lt){if(Dt){var Ut=function Qt(yr){for(var cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vr=0;vr<yr.length;vr++){var Dr=yr[vr];if(Dr[Lt==null?void 0:Lt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!cr&&Array.isArray(Dr[Lt==null?void 0:Lt.options])&&Qt(Dr[Lt==null?void 0:Lt.options],!0))break}};Ut(Dt)}}var Lr=null,cn=["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"],Pr=["inputValue"];function Wr(Dt){return!Dt||(0,z.Z)(Dt)!=="object"}var mn=se.forwardRef(function(Dt,Lt){var Ut=Dt.id,Qt=Dt.mode,yr=Dt.prefixCls,cr=yr===void 0?"rc-select":yr,vr=Dt.backfill,Dr=Dt.fieldNames,Ir=Dt.inputValue,Ar=Dt.searchValue,qt=Dt.onSearch,kr=Dt.autoClearSearchValue,Xt=kr===void 0?!0:kr,rr=Dt.onSelect,lr=Dt.onDeselect,or=Dt.dropdownMatchSelectWidth,_r=or===void 0?!0:or,ur=Dt.filterOption,Mr=Dt.filterSort,Pt=Dt.optionFilterProp,Jt=Dt.optionLabelProp,nr=Dt.options,pr=Dt.children,fr=Dt.defaultActiveFirstOption,br=Dt.menuItemSelectedIcon,wr=Dt.virtual,Nr=Dt.direction,Kr=Dt.listHeight,Ur=Kr===void 0?200:Kr,gn=Dt.listItemHeight,kn=gn===void 0?20:gn,Nn=Dt.value,yn=Dt.defaultValue,rn=Dt.labelInValue,$n=Dt.onChange,Tn=(0,re.Z)(Dt,cn),Zn=(0,Bt.ZP)(Ut),wn=bt(Qt),Mn=!!(!nr&&pr),Jn=se.useMemo(function(){return ur===void 0&&Qt==="combobox"?!1:ur},[ur,Qt]),zn=se.useMemo(function(){return ye(Dr,Mn)},[JSON.stringify(Dr),Mn]),hi=(0,ie.Z)("",{value:Ar!==void 0?Ar:Ir,postState:function(Di){return Di||""}}),Ei=(0,me.Z)(hi,2),Rn=Ei[0],Jr=Ei[1],Xr=Zt(nr,pr,zn,Pt,Jt),Hn=Xr.valueOptions,Dn=Xr.labelOptions,ri=Xr.options,ai=se.useCallback(function(ui){var Di=Ve(ui);return Di.map(function(Mi){var mi,ea,Qi,Ka,Ya;if(Wr(Mi))mi=Mi;else{var Ha;Qi=Mi.key,ea=Mi.label,mi=(Ha=Mi.value)!==null&&Ha!==void 0?Ha:Qi}var oo=Hn.get(mi);if(oo){var ha;if(ea===void 0&&(ea=oo==null?void 0:oo[Jt||zn.label]),Qi===void 0&&(Qi=(ha=oo==null?void 0:oo.key)!==null&&ha!==void 0?ha:mi),Ka=oo==null?void 0:oo.disabled,Ya=oo==null?void 0:oo.title,0)var pa}return{label:ea,value:mi,key:Qi,disabled:Ka,title:Ya}})},[zn,Jt,Hn]),Qr=(0,ie.Z)(yn,{value:Nn}),qr=(0,me.Z)(Qr,2),An=qr[0],gi=qr[1],nn=se.useMemo(function(){var ui,Di=ai(An);return Qt==="combobox"&&tt((ui=Di[0])===null||ui===void 0?void 0:ui.value)?[]:Di},[An,ai,Qt]),pn=Ht(nn,Hn),qn=(0,me.Z)(pn,2),li=qn[0],ji=qn[1],Li=se.useMemo(function(){if(!Qt&&li.length===1){var ui=li[0];if(ui.value===null&&(ui.label===null||ui.label===void 0))return[]}return li.map(function(Di){var Mi;return(0,Ae.Z)((0,Ae.Z)({},Di),{},{label:(Mi=Di.label)!==null&&Mi!==void 0?Mi:Di.value})})},[Qt,li]),Bi=se.useMemo(function(){return new Set(li.map(function(ui){return ui.value}))},[li]);se.useEffect(function(){if(Qt==="combobox"){var ui,Di=(ui=li[0])===null||ui===void 0?void 0:ui.value;Jr(Qe(Di)?String(Di):"")}},[li]);var ni=tr(function(ui,Di){var Mi,mi=Di!=null?Di:ui;return Mi={},(0,x.Z)(Mi,zn.value,ui),(0,x.Z)(Mi,zn.label,mi),Mi}),ra=se.useMemo(function(){if(Qt!=="tags")return ri;var ui=(0,vt.Z)(ri),Di=function(mi){return Hn.has(mi)};return(0,vt.Z)(li).sort(function(Mi,mi){return Mi.value<mi.value?-1:1}).forEach(function(Mi){var mi=Mi.value;Di(mi)||ui.push(ni(mi,Mi.label))}),ui},[ni,ri,Hn,li,Qt]),ca=$t(ra,zn,Rn,Jn,Pt),Sn=se.useMemo(function(){return Qt!=="tags"||!Rn||ca.some(function(ui){return ui[Pt||"value"]===Rn})||ca.some(function(ui){return ui[zn.value]===Rn})?ca:[ni(Rn)].concat((0,vt.Z)(ca))},[ni,Pt,Qt,ca,Rn,zn]),Cn=se.useMemo(function(){return Mr?(0,vt.Z)(Sn).sort(function(ui,Di){return Mr(ui,Di)}):Sn},[Sn,Mr]),bn=se.useMemo(function(){return Re(Cn,{fieldNames:zn,childrenAsData:Mn})},[Cn,zn,Mn]),Wn=function(Di){var Mi=ai(Di);if(gi(Mi),$n&&(Mi.length!==li.length||Mi.some(function(Qi,Ka){var Ya;return((Ya=li[Ka])===null||Ya===void 0?void 0:Ya.value)!==(Qi==null?void 0:Qi.value)}))){var mi=rn?Mi:Mi.map(function(Qi){return Qi.value}),ea=Mi.map(function(Qi){return ze(ji(Qi.value))});$n(wn?mi:mi[0],wn?ea:ea[0])}},Ki=se.useState(null),qi=(0,me.Z)(Ki,2),oa=qi[0],na=qi[1],Xi=se.useState(0),ba=(0,me.Z)(Xi,2),Na=ba[0],Ia=ba[1],yo=fr!==void 0?fr:Qt!=="combobox",Oi=se.useCallback(function(ui,Di){var Mi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mi=Mi.source,ea=mi===void 0?"keyboard":mi;Ia(Di),vr&&Qt==="combobox"&&ui!==null&&ea==="keyboard"&&na(String(ui))},[vr,Qt]),Fi=function(Di,Mi,mi){var ea=function(){var bo,ro=ji(Di);return[rn?{label:ro==null?void 0:ro[zn.label],value:Di,key:(bo=ro==null?void 0:ro.key)!==null&&bo!==void 0?bo:Di}:Di,ze(ro)]};if(Mi&&rr){var Qi=ea(),Ka=(0,me.Z)(Qi,2),Ya=Ka[0],Ha=Ka[1];rr(Ya,Ha)}else if(!Mi&&lr&&mi!=="clear"){var oo=ea(),ha=(0,me.Z)(oo,2),pa=ha[0],eo=ha[1];lr(pa,eo)}},ka=tr(function(ui,Di){var Mi,mi=wn?Di.selected:!0;mi?Mi=wn?[].concat((0,vt.Z)(li),[ui]):[ui]:Mi=li.filter(function(ea){return ea.value!==ui}),Wn(Mi),Fi(ui,mi),Qt==="combobox"?na(""):(!bt||Xt)&&(Jr(""),na(""))}),Vi=function(Di,Mi){Wn(Di);var mi=Mi.type,ea=Mi.values;(mi==="remove"||mi==="clear")&&ea.forEach(function(Qi){Fi(Qi.value,!1,mi)})},ia=function(Di,Mi){if(Jr(Di),na(null),Mi.source==="submit"){var mi=(Di||"").trim();if(mi){var ea=Array.from(new Set([].concat((0,vt.Z)(Bi),[mi])));Wn(ea),Fi(mi,!0),Jr("")}return}Mi.source!=="blur"&&(Qt==="combobox"&&Wn(Di),qt==null||qt(Di))},da=function(Di){var Mi=Di;Qt!=="tags"&&(Mi=Di.map(function(ea){var Qi=Dn.get(ea);return Qi==null?void 0:Qi.value}).filter(function(ea){return ea!==void 0}));var mi=Array.from(new Set([].concat((0,vt.Z)(Bi),(0,vt.Z)(Mi))));Wn(mi),mi.forEach(function(ea){Fi(ea,!0)})},sa=se.useMemo(function(){var ui=wr!==!1&&_r!==!1;return(0,Ae.Z)((0,Ae.Z)({},Xr),{},{flattenOptions:bn,onActiveValue:Oi,defaultActiveFirstOption:yo,onSelect:ka,menuItemSelectedIcon:br,rawValues:Bi,fieldNames:zn,virtual:ui,direction:Nr,listHeight:Ur,listItemHeight:kn,childrenAsData:Mn})},[Xr,bn,Oi,yo,ka,br,Bi,zn,wr,_r,Ur,kn,Mn]);return se.createElement(en.Provider,{value:sa},se.createElement(kt,(0,Ye.Z)({},Tn,{id:Zn,prefixCls:cr,ref:Lt,omitDomProps:Pr,mode:Qt,displayValues:Li,onDisplayValuesChange:Vi,direction:Nr,searchValue:Rn,onSearch:ia,autoClearSearchValue:Xt,onSearchSplit:da,dropdownMatchSelectWidth:_r,OptionList:Vn,emptyOptions:!bn.length,activeValue:oa,activeDescendantId:"".concat(Zn,"_list_").concat(Na)})))}),Gt=mn;Gt.Option=jr,Gt.OptGroup=Er;var Et=Gt,It=Et},9296:function(gr,Wt,ke){"use strict";ke.r(Wt),ke.d(Wt,{ResizableTextArea:function(){return Pe},default:function(){return tt}});var Ye=ke(54476),vt=ke(33885),x=ke(20068),Ae=ke(76190),me=ke(42978),re=ke(75931),z=ke(94480),ie=ke(92310),oe=ke.n(ie),se=ke(93681),pe=ke(5643),ne=ke(18929),ae=ke(59301),ue=ke(29301),de=ke(34280),he=ke(16089),xe=`
|
|
|
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;
|
|
|
`,Se=["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"],we={},be;function Me(it){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ge=it.getAttribute("id")||it.getAttribute("data-reactid")||it.getAttribute("name");if(ht&&we[Ge])return we[Ge];var Xe=window.getComputedStyle(it),ct=Xe.getPropertyValue("box-sizing")||Xe.getPropertyValue("-moz-box-sizing")||Xe.getPropertyValue("-webkit-box-sizing"),pt=parseFloat(Xe.getPropertyValue("padding-bottom"))+parseFloat(Xe.getPropertyValue("padding-top")),ut=parseFloat(Xe.getPropertyValue("border-bottom-width"))+parseFloat(Xe.getPropertyValue("border-top-width")),rt=Se.map(function(nt){return"".concat(nt,":").concat(Xe.getPropertyValue(nt))}).join(";"),qe={sizingStyle:rt,paddingSize:pt,borderSize:ut,boxSizing:ct};return ht&&Ge&&(we[Ge]=qe),qe}function Le(it){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;be||(be=document.createElement("textarea"),be.setAttribute("tab-index","-1"),be.setAttribute("aria-hidden","true"),document.body.appendChild(be)),it.getAttribute("wrap")?be.setAttribute("wrap",it.getAttribute("wrap")):be.removeAttribute("wrap");var ct=Me(it,ht),pt=ct.paddingSize,ut=ct.borderSize,rt=ct.boxSizing,qe=ct.sizingStyle;be.setAttribute("style","".concat(qe,";").concat(xe)),be.value=it.value||it.placeholder||"";var nt=void 0,xt=void 0,yt,Rt=be.scrollHeight;if(rt==="border-box"?Rt+=ut:rt==="content-box"&&(Rt-=pt),Ge!==null||Xe!==null){be.value=" ";var Ot=be.scrollHeight-pt;Ge!==null&&(nt=Ot*Ge,rt==="border-box"&&(nt=nt+pt+ut),Rt=Math.max(nt,Rt)),Xe!==null&&(xt=Ot*Xe,rt==="border-box"&&(xt=xt+pt+ut),yt=Rt>xt?"":"hidden",Rt=Math.min(xt,Rt))}var lt={height:Rt,overflowY:yt,resize:"none"};return nt&&(lt.minHeight=nt),xt&&(lt.maxHeight=xt),lt}var Ce=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ne=0,Te=1,De=2,Ee=ae.forwardRef(function(it,ht){var Ge=it,Xe=Ge.prefixCls,ct=Ge.onPressEnter,pt=Ge.defaultValue,ut=Ge.value,rt=Ge.autoSize,qe=Ge.onResize,nt=Ge.className,xt=Ge.style,yt=Ge.disabled,Rt=Ge.onChange,Ot=Ge.onInternalAutoSize,lt=(0,re.Z)(Ge,Ce),Ue=(0,ne.Z)(pt,{value:ut,postState:function(Er){return Er!=null?Er:""}}),$e=(0,me.Z)(Ue,2),le=$e[0],fe=$e[1],Fe=function(Er){fe(Er.target.value),Rt==null||Rt(Er)},He=ae.useRef();ae.useImperativeHandle(ht,function(){return{textArea:He.current}});var ye=ae.useMemo(function(){return rt&&(0,Ae.Z)(rt)==="object"?[rt.minRows,rt.maxRows]:[]},[rt]),Re=(0,me.Z)(ye,2),ze=Re[0],Ke=Re[1],We=!!rt,st=function(){try{if(document.activeElement===He.current){var Er=He.current,zr=Er.selectionStart,jr=Er.selectionEnd,Tr=Er.scrollTop;He.current.setSelectionRange(zr,jr),He.current.scrollTop=Tr}}catch(Vr){}},bt=ae.useState(De),at=(0,me.Z)(bt,2),kt=at[0],Ht=at[1],Ct=ae.useState(),$t=(0,me.Z)(Ct,2),Bt=$t[0],St=$t[1],ft=function(){Ht(Ne)};(0,de.Z)(function(){We&&ft()},[ut,ze,Ke,We]),(0,de.Z)(function(){if(kt===Ne)Ht(Te);else if(kt===Te){var mr=Le(He.current,!1,ze,Ke);Ht(De),St(mr)}else st()},[kt]);var dt=ae.useRef(),Ft=function(){he.Z.cancel(dt.current)},zt=function(Er){kt===De&&(qe==null||qe(Er),rt&&(Ft(),dt.current=(0,he.Z)(function(){ft()})))};ae.useEffect(function(){return Ft},[]);var Zt=We?Bt:null,tr=(0,vt.Z)((0,vt.Z)({},xt),Zt);return(kt===Ne||kt===Te)&&(tr.overflowY="hidden",tr.overflowX="hidden"),ae.createElement(ue.Z,{onResize:zt,disabled:!(rt||qe)},ae.createElement("textarea",(0,Ye.Z)({},lt,{ref:He,style:tr,className:oe()(Xe,nt,(0,x.Z)({},"".concat(Xe,"-disabled"),yt)),disabled:yt,value:le,onChange:Fe})))}),Pe=Ee,Be=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ve(it,ht){return(0,z.Z)(it||"").slice(0,ht).join("")}function Ie(it,ht,Ge,Xe){var ct=Ge;return it?ct=Ve(Ge,Xe):(0,z.Z)(ht||"").length<Ge.length&&(0,z.Z)(Ge||"").length>Xe&&(ct=ht),ct}var Ze=ae.forwardRef(function(it,ht){var Ge,Xe=it.defaultValue,ct=it.value,pt=it.onFocus,ut=it.onBlur,rt=it.onChange,qe=it.allowClear,nt=it.maxLength,xt=it.onCompositionStart,yt=it.onCompositionEnd,Rt=it.suffix,Ot=it.prefixCls,lt=Ot===void 0?"rc-textarea":Ot,Ue=it.classes,$e=it.showCount,le=it.className,fe=it.style,Fe=it.disabled,He=it.hidden,ye=it.classNames,Re=it.styles,ze=it.onResize,Ke=(0,re.Z)(it,Be),We=(0,ne.Z)(Xe,{value:ct,defaultValue:Xe}),st=(0,me.Z)(We,2),bt=st[0],at=st[1],kt=(0,ae.useRef)(null),Ht=ae.useState(!1),Ct=(0,me.Z)(Ht,2),$t=Ct[0],Bt=Ct[1],St=ae.useState(!1),ft=(0,me.Z)(St,2),dt=ft[0],Ft=ft[1],zt=ae.useRef(),Zt=ae.useRef(0),tr=ae.useState(null),mr=(0,me.Z)(tr,2),Er=mr[0],zr=mr[1],jr=function(){var Wr;(Wr=kt.current)===null||Wr===void 0||Wr.textArea.focus()};(0,ae.useImperativeHandle)(ht,function(){return{resizableTextArea:kt.current,focus:jr,blur:function(){var Wr;(Wr=kt.current)===null||Wr===void 0||Wr.textArea.blur()}}}),(0,ae.useEffect)(function(){Bt(function(Pr){return!Fe&&Pr})},[Fe]);var Tr=Number(nt)>0,Vr=function(Wr){Ft(!0),zt.current=bt,Zt.current=Wr.currentTarget.selectionStart,xt==null||xt(Wr)},sn=function(Wr){Ft(!1);var mn=Wr.currentTarget.value;if(Tr){var Gt,Et=Zt.current>=nt+1||Zt.current===((Gt=zt.current)===null||Gt===void 0?void 0:Gt.length);mn=Ie(Et,zt.current,mn,nt)}mn!==bt&&(at(mn),(0,pe.rJ)(Wr.currentTarget,Wr,rt,mn)),yt==null||yt(Wr)},vn=function(Wr){var mn=Wr.target.value;if(!dt&&Tr){var Gt=Wr.target.selectionStart>=nt+1||Wr.target.selectionStart===mn.length||!Wr.target.selectionStart;mn=Ie(Gt,bt,mn,nt)}at(mn),(0,pe.rJ)(Wr.currentTarget,Wr,rt,mn)},en=function(Wr){var mn=Ke.onPressEnter,Gt=Ke.onKeyDown;Wr.key==="Enter"&&mn&&mn(Wr),Gt==null||Gt(Wr)},hn=function(Wr){Bt(!0),pt==null||pt(Wr)},_n=function(Wr){Bt(!1),ut==null||ut(Wr)},tn=function(Wr){var mn;at(""),jr(),(0,pe.rJ)((mn=kt.current)===null||mn===void 0?void 0:mn.textArea,Wr,rt)},Ln=(0,pe.D7)(bt);!dt&&Tr&&ct==null&&(Ln=Ve(Ln,nt));var Un=Rt,Vn;if($e){var $r=(0,z.Z)(Ln).length;(0,Ae.Z)($e)==="object"?Vn=$e.formatter({value:Ln,count:$r,maxLength:nt}):Vn="".concat($r).concat(Tr?" / ".concat(nt):""),Un=ae.createElement(ae.Fragment,null,Un,ae.createElement("span",{className:oe()("".concat(lt,"-data-count"),ye==null?void 0:ye.count),style:Re==null?void 0:Re.count},Vn))}var Yr=function(Wr){var mn;ze==null||ze(Wr),(mn=kt.current)!==null&&mn!==void 0&&mn.textArea.style.height&&zr(!0)},Lr=!Ke.autoSize&&!$e&&!qe,cn=ae.createElement(se.BaseInput,{value:Ln,allowClear:qe,handleReset:tn,suffix:Un,prefixCls:lt,classes:{affixWrapper:oe()(Ue==null?void 0:Ue.affixWrapper,(Ge={},(0,x.Z)(Ge,"".concat(lt,"-show-count"),$e),(0,x.Z)(Ge,"".concat(lt,"-textarea-allow-clear"),qe),Ge))},disabled:Fe,focused:$t,className:le,style:(0,vt.Z)((0,vt.Z)({},fe),Er&&!Lr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Vn=="string"?Vn:void 0}},hidden:He,inputElement:ae.createElement(Pe,(0,Ye.Z)({},Ke,{onKeyDown:en,onChange:vn,onFocus:hn,onBlur:_n,onCompositionStart:Vr,onCompositionEnd:sn,className:ye==null?void 0:ye.textarea,style:(0,vt.Z)((0,vt.Z)({},Re==null?void 0:Re.textarea),{},{resize:fe==null?void 0:fe.resize}),disabled:Fe,prefixCls:lt,onResize:Yr,ref:kt}))});return cn}),Qe=Ze,tt=Qe},39417:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Te}});var Ye=ke(54476),vt=ke(20068),x=ke(75931),Ae=ke(33885),me=ke(67732),re=ke(83652),z=ke(31226),ie=ke(42403),oe=ke(158),se=ke(92310),pe=ke.n(se),ne=ke(26112),ae=ke(59301),ue=ke(39378),de=function(Ee){for(var Pe=Ee.prefixCls,Be=Ee.level,Ve=Ee.isStart,Ie=Ee.isEnd,Ze="".concat(Pe,"-indent-unit"),Qe=[],tt=0;tt<Be;tt+=1){var it;Qe.push(ae.createElement("span",{key:tt,className:pe()(Ze,(it={},(0,vt.Z)(it,"".concat(Ze,"-start"),Ve[tt]),(0,vt.Z)(it,"".concat(Ze,"-end"),Ie[tt]),it))}))}return ae.createElement("span",{"aria-hidden":"true",className:"".concat(Pe,"-indent")},Qe)},he=ae.memo(de),xe=ke(67841),Se=ke(71430),we=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],be="open",Me="close",Le="---",Ce=function(De){(0,ie.Z)(Pe,De);var Ee=(0,oe.Z)(Pe);function Pe(){var Be;(0,me.Z)(this,Pe);for(var Ve=arguments.length,Ie=new Array(Ve),Ze=0;Ze<Ve;Ze++)Ie[Ze]=arguments[Ze];return Be=Ee.call.apply(Ee,[this].concat(Ie)),Be.state={dragNodeHighlight:!1},Be.selectHandle=void 0,Be.cacheIndent=void 0,Be.onSelectorClick=function(Qe){var tt=Be.props.context.onNodeClick;tt(Qe,(0,Se.F)(Be.props)),Be.isSelectable()?Be.onSelect(Qe):Be.onCheck(Qe)},Be.onSelectorDoubleClick=function(Qe){var tt=Be.props.context.onNodeDoubleClick;tt(Qe,(0,Se.F)(Be.props))},Be.onSelect=function(Qe){if(!Be.isDisabled()){var tt=Be.props.context.onNodeSelect;tt(Qe,(0,Se.F)(Be.props))}},Be.onCheck=function(Qe){if(!Be.isDisabled()){var tt=Be.props,it=tt.disableCheckbox,ht=tt.checked,Ge=Be.props.context.onNodeCheck;if(!(!Be.isCheckable()||it)){var Xe=!ht;Ge(Qe,(0,Se.F)(Be.props),Xe)}}},Be.onMouseEnter=function(Qe){var tt=Be.props.context.onNodeMouseEnter;tt(Qe,(0,Se.F)(Be.props))},Be.onMouseLeave=function(Qe){var tt=Be.props.context.onNodeMouseLeave;tt(Qe,(0,Se.F)(Be.props))},Be.onContextMenu=function(Qe){var tt=Be.props.context.onNodeContextMenu;tt(Qe,(0,Se.F)(Be.props))},Be.onDragStart=function(Qe){var tt=Be.props.context.onNodeDragStart;Qe.stopPropagation(),Be.setState({dragNodeHighlight:!0}),tt(Qe,(0,z.Z)(Be));try{Qe.dataTransfer.setData("text/plain","")}catch(it){}},Be.onDragEnter=function(Qe){var tt=Be.props.context.onNodeDragEnter;Qe.preventDefault(),Qe.stopPropagation(),tt(Qe,(0,z.Z)(Be))},Be.onDragOver=function(Qe){var tt=Be.props.context.onNodeDragOver;Qe.preventDefault(),Qe.stopPropagation(),tt(Qe,(0,z.Z)(Be))},Be.onDragLeave=function(Qe){var tt=Be.props.context.onNodeDragLeave;Qe.stopPropagation(),tt(Qe,(0,z.Z)(Be))},Be.onDragEnd=function(Qe){var tt=Be.props.context.onNodeDragEnd;Qe.stopPropagation(),Be.setState({dragNodeHighlight:!1}),tt(Qe,(0,z.Z)(Be))},Be.onDrop=function(Qe){var tt=Be.props.context.onNodeDrop;Qe.preventDefault(),Qe.stopPropagation(),Be.setState({dragNodeHighlight:!1}),tt(Qe,(0,z.Z)(Be))},Be.onExpand=function(Qe){var tt=Be.props,it=tt.loading,ht=tt.context.onNodeExpand;it||ht(Qe,(0,Se.F)(Be.props))},Be.setSelectHandle=function(Qe){Be.selectHandle=Qe},Be.getNodeState=function(){var Qe=Be.props.expanded;return Be.isLeaf()?null:Qe?be:Me},Be.hasChildren=function(){var Qe=Be.props.eventKey,tt=Be.props.context.keyEntities,it=(0,xe.Z)(tt,Qe)||{},ht=it.children;return!!(ht||[]).length},Be.isLeaf=function(){var Qe=Be.props,tt=Qe.isLeaf,it=Qe.loaded,ht=Be.props.context.loadData,Ge=Be.hasChildren();return tt===!1?!1:tt||!ht&&!Ge||ht&&it&&!Ge},Be.isDisabled=function(){var Qe=Be.props.disabled,tt=Be.props.context.disabled;return!!(tt||Qe)},Be.isCheckable=function(){var Qe=Be.props.checkable,tt=Be.props.context.checkable;return!tt||Qe===!1?!1:tt},Be.syncLoadData=function(Qe){var tt=Qe.expanded,it=Qe.loading,ht=Qe.loaded,Ge=Be.props.context,Xe=Ge.loadData,ct=Ge.onNodeLoad;it||Xe&&tt&&!Be.isLeaf()&&!Be.hasChildren()&&!ht&&ct((0,Se.F)(Be.props))},Be.isDraggable=function(){var Qe=Be.props,tt=Qe.data,it=Qe.context.draggable;return!!(it&&(!it.nodeDraggable||it.nodeDraggable(tt)))},Be.renderDragHandler=function(){var Qe=Be.props.context,tt=Qe.draggable,it=Qe.prefixCls;return tt!=null&&tt.icon?ae.createElement("span",{className:"".concat(it,"-draggable-icon")},tt.icon):null},Be.renderSwitcherIconDom=function(Qe){var tt=Be.props.switcherIcon,it=Be.props.context.switcherIcon,ht=tt||it;return typeof ht=="function"?ht((0,Ae.Z)((0,Ae.Z)({},Be.props),{},{isLeaf:Qe})):ht},Be.renderSwitcher=function(){var Qe=Be.props.expanded,tt=Be.props.context.prefixCls;if(Be.isLeaf()){var it=Be.renderSwitcherIconDom(!0);return it!==!1?ae.createElement("span",{className:pe()("".concat(tt,"-switcher"),"".concat(tt,"-switcher-noop"))},it):null}var ht=pe()("".concat(tt,"-switcher"),"".concat(tt,"-switcher_").concat(Qe?be:Me)),Ge=Be.renderSwitcherIconDom(!1);return Ge!==!1?ae.createElement("span",{onClick:Be.onExpand,className:ht},Ge):null},Be.renderCheckbox=function(){var Qe=Be.props,tt=Qe.checked,it=Qe.halfChecked,ht=Qe.disableCheckbox,Ge=Be.props.context.prefixCls,Xe=Be.isDisabled(),ct=Be.isCheckable();if(!ct)return null;var pt=typeof ct!="boolean"?ct:null;return ae.createElement("span",{className:pe()("".concat(Ge,"-checkbox"),tt&&"".concat(Ge,"-checkbox-checked"),!tt&&it&&"".concat(Ge,"-checkbox-indeterminate"),(Xe||ht)&&"".concat(Ge,"-checkbox-disabled")),onClick:Be.onCheck},pt)},Be.renderIcon=function(){var Qe=Be.props.loading,tt=Be.props.context.prefixCls;return ae.createElement("span",{className:pe()("".concat(tt,"-iconEle"),"".concat(tt,"-icon__").concat(Be.getNodeState()||"docu"),Qe&&"".concat(tt,"-icon_loading"))})},Be.renderSelector=function(){var Qe=Be.state.dragNodeHighlight,tt=Be.props,it=tt.title,ht=it===void 0?Le:it,Ge=tt.selected,Xe=tt.icon,ct=tt.loading,pt=tt.data,ut=Be.props.context,rt=ut.prefixCls,qe=ut.showIcon,nt=ut.icon,xt=ut.loadData,yt=ut.titleRender,Rt=Be.isDisabled(),Ot="".concat(rt,"-node-content-wrapper"),lt;if(qe){var Ue=Xe||nt;lt=Ue?ae.createElement("span",{className:pe()("".concat(rt,"-iconEle"),"".concat(rt,"-icon__customize"))},typeof Ue=="function"?Ue(Be.props):Ue):Be.renderIcon()}else xt&&ct&&(lt=Be.renderIcon());var $e;typeof ht=="function"?$e=ht(pt):yt?$e=yt(pt):$e=ht;var le=ae.createElement("span",{className:"".concat(rt,"-title")},$e);return ae.createElement("span",{ref:Be.setSelectHandle,title:typeof ht=="string"?ht:"",className:pe()("".concat(Ot),"".concat(Ot,"-").concat(Be.getNodeState()||"normal"),!Rt&&(Ge||Qe)&&"".concat(rt,"-node-selected")),onMouseEnter:Be.onMouseEnter,onMouseLeave:Be.onMouseLeave,onContextMenu:Be.onContextMenu,onClick:Be.onSelectorClick,onDoubleClick:Be.onSelectorDoubleClick},lt,le,Be.renderDropIndicator())},Be.renderDropIndicator=function(){var Qe=Be.props,tt=Qe.disabled,it=Qe.eventKey,ht=Be.props.context,Ge=ht.draggable,Xe=ht.dropLevelOffset,ct=ht.dropPosition,pt=ht.prefixCls,ut=ht.indent,rt=ht.dropIndicatorRender,qe=ht.dragOverNodeKey,nt=ht.direction,xt=!!Ge,yt=!tt&&xt&&qe===it,Rt=ut!=null?ut:Be.cacheIndent;return Be.cacheIndent=ut,yt?rt({dropPosition:ct,dropLevelOffset:Xe,indent:Rt,prefixCls:pt,direction:nt}):null},Be}return(0,re.Z)(Pe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ve=this.props.selectable,Ie=this.props.context.selectable;return typeof Ve=="boolean"?Ve:Ie}},{key:"render",value:function(){var Ve,Ie=this.props,Ze=Ie.eventKey,Qe=Ie.className,tt=Ie.style,it=Ie.dragOver,ht=Ie.dragOverGapTop,Ge=Ie.dragOverGapBottom,Xe=Ie.isLeaf,ct=Ie.isStart,pt=Ie.isEnd,ut=Ie.expanded,rt=Ie.selected,qe=Ie.checked,nt=Ie.halfChecked,xt=Ie.loading,yt=Ie.domRef,Rt=Ie.active,Ot=Ie.data,lt=Ie.onMouseMove,Ue=Ie.selectable,$e=(0,x.Z)(Ie,we),le=this.props.context,fe=le.prefixCls,Fe=le.filterTreeNode,He=le.keyEntities,ye=le.dropContainerKey,Re=le.dropTargetKey,ze=le.draggingNodeKey,Ke=this.isDisabled(),We=(0,ne.Z)($e,{aria:!0,data:!0}),st=(0,xe.Z)(He,Ze)||{},bt=st.level,at=pt[pt.length-1],kt=this.isDraggable(),Ht=!Ke&&kt,Ct=ze===Ze,$t=Ue!==void 0?{"aria-selected":!!Ue}:void 0;return ae.createElement("div",(0,Ye.Z)({ref:yt,className:pe()(Qe,"".concat(fe,"-treenode"),(Ve={},(0,vt.Z)(Ve,"".concat(fe,"-treenode-disabled"),Ke),(0,vt.Z)(Ve,"".concat(fe,"-treenode-switcher-").concat(ut?"open":"close"),!Xe),(0,vt.Z)(Ve,"".concat(fe,"-treenode-checkbox-checked"),qe),(0,vt.Z)(Ve,"".concat(fe,"-treenode-checkbox-indeterminate"),nt),(0,vt.Z)(Ve,"".concat(fe,"-treenode-selected"),rt),(0,vt.Z)(Ve,"".concat(fe,"-treenode-loading"),xt),(0,vt.Z)(Ve,"".concat(fe,"-treenode-active"),Rt),(0,vt.Z)(Ve,"".concat(fe,"-treenode-leaf-last"),at),(0,vt.Z)(Ve,"".concat(fe,"-treenode-draggable"),kt),(0,vt.Z)(Ve,"dragging",Ct),(0,vt.Z)(Ve,"drop-target",Re===Ze),(0,vt.Z)(Ve,"drop-container",ye===Ze),(0,vt.Z)(Ve,"drag-over",!Ke&&it),(0,vt.Z)(Ve,"drag-over-gap-top",!Ke&&ht),(0,vt.Z)(Ve,"drag-over-gap-bottom",!Ke&&Ge),(0,vt.Z)(Ve,"filter-node",Fe&&Fe((0,Se.F)(this.props))),Ve)),style:tt,draggable:Ht,"aria-grabbed":Ct,onDragStart:Ht?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:lt},$t,We),ae.createElement(he,{prefixCls:fe,level:bt,isStart:ct,isEnd:pt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Pe}(ae.Component),Ne=function(Ee){return ae.createElement(ue.k.Consumer,null,function(Pe){return ae.createElement(Ce,(0,Ye.Z)({},Ee,{context:Pe}))})};Ne.displayName="TreeNode",Ne.isTreeNode=1;var Te=Ne},39378:function(gr,Wt,ke){"use strict";ke.d(Wt,{k:function(){return vt}});var Ye=ke(59301),vt=Ye.createContext(null)},60091:function(gr,Wt,ke){"use strict";ke.d(Wt,{O:function(){return Te.Z},Z:function(){return le}});var Ye=ke(54476),vt=ke(20068),x=ke(76190),Ae=ke(33885),me=ke(94480),re=ke(67732),z=ke(83652),ie=ke(31226),oe=ke(42403),se=ke(158),pe=ke(92310),ne=ke.n(pe),ae=ke(10228),ue=ke(26112),de=ke(48736),he=ke(59301),xe=ke(39378);function Se(fe){var Fe=fe.dropPosition,He=fe.dropLevelOffset,ye=fe.indent,Re={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Fe){case-1:Re.top=0,Re.left=-He*ye;break;case 1:Re.bottom=0,Re.left=-He*ye;break;case 0:Re.bottom=0,Re.left=ye;break}return he.createElement("div",{style:Re})}function we(fe){if(fe==null)throw new TypeError("Cannot destructure "+fe)}var be=ke(42978),Me=ke(75931),Le=ke(34280),Ce=ke(48911),Ne=ke(77900),Te=ke(39417);function De(fe,Fe){var He=he.useState(!1),ye=(0,be.Z)(He,2),Re=ye[0],ze=ye[1];he.useLayoutEffect(function(){if(Re)return fe(),function(){Fe()}},[Re]),he.useLayoutEffect(function(){return ze(!0),function(){ze(!1)}},[])}var Ee=ke(71430),Pe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Be=function(Fe,He){var ye=Fe.className,Re=Fe.style,ze=Fe.motion,Ke=Fe.motionNodes,We=Fe.motionType,st=Fe.onMotionStart,bt=Fe.onMotionEnd,at=Fe.active,kt=Fe.treeNodeRequiredProps,Ht=(0,Me.Z)(Fe,Pe),Ct=he.useState(!0),$t=(0,be.Z)(Ct,2),Bt=$t[0],St=$t[1],ft=he.useContext(xe.k),dt=ft.prefixCls,Ft=Ke&&We!=="hide";(0,Le.Z)(function(){Ke&&Ft!==Bt&&St(Ft)},[Ke]);var zt=function(){Ke&&st()},Zt=he.useRef(!1),tr=function(){Ke&&!Zt.current&&(Zt.current=!0,bt())};De(zt,tr);var mr=function(zr){Ft===zr&&tr()};return Ke?he.createElement(Ne.default,(0,Ye.Z)({ref:He,visible:Bt},ze,{motionAppear:We==="show",onVisibleChanged:mr}),function(Er,zr){var jr=Er.className,Tr=Er.style;return he.createElement("div",{ref:zr,className:ne()("".concat(dt,"-treenode-motion"),jr),style:Tr},Ke.map(function(Vr){var sn=(0,Ye.Z)({},(we(Vr.data),Vr.data)),vn=Vr.title,en=Vr.key,hn=Vr.isStart,_n=Vr.isEnd;delete sn.children;var tn=(0,Ee.H8)(en,kt);return he.createElement(Te.Z,(0,Ye.Z)({},sn,tn,{title:vn,active:at,data:Vr.data,key:en,isStart:hn,isEnd:_n}))}))}):he.createElement(Te.Z,(0,Ye.Z)({domRef:He,className:ye,style:Re},Ht,{active:at}))};Be.displayName="MotionTreeNode";var Ve=he.forwardRef(Be),Ie=Ve;function Ze(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],He=fe.length,ye=Fe.length;if(Math.abs(He-ye)!==1)return{add:!1,key:null};function Re(ze,Ke){var We=new Map;ze.forEach(function(bt){We.set(bt,!0)});var st=Ke.filter(function(bt){return!We.has(bt)});return st.length===1?st[0]:null}return He<ye?{add:!0,key:Re(fe,Fe)}:{add:!1,key:Re(Fe,fe)}}function Qe(fe,Fe,He){var ye=fe.findIndex(function(We){return We.key===He}),Re=fe[ye+1],ze=Fe.findIndex(function(We){return We.key===He});if(Re){var Ke=Fe.findIndex(function(We){return We.key===Re.key});return Fe.slice(ze+1,Ke)}return Fe.slice(ze+1)}var tt=["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"],it={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ht=function(){},Ge="RC_TREE_MOTION_".concat(Math.random()),Xe={key:Ge},ct={key:Ge,level:0,index:0,pos:"0",node:Xe,nodes:[Xe]},pt={parent:null,children:[],pos:ct.pos,data:Xe,title:null,key:Ge,isStart:[],isEnd:[]};function ut(fe,Fe,He,ye){return Fe===!1||!He?fe:fe.slice(0,Math.ceil(He/ye)+1)}function rt(fe){var Fe=fe.key,He=fe.pos;return(0,Ee.km)(Fe,He)}function qe(fe){for(var Fe=String(fe.data.key),He=fe;He.parent;)He=He.parent,Fe="".concat(He.data.key," > ").concat(Fe);return Fe}var nt=he.forwardRef(function(fe,Fe){var He=fe.prefixCls,ye=fe.data,Re=fe.selectable,ze=fe.checkable,Ke=fe.expandedKeys,We=fe.selectedKeys,st=fe.checkedKeys,bt=fe.loadedKeys,at=fe.loadingKeys,kt=fe.halfCheckedKeys,Ht=fe.keyEntities,Ct=fe.disabled,$t=fe.dragging,Bt=fe.dragOverNodeKey,St=fe.dropPosition,ft=fe.motion,dt=fe.height,Ft=fe.itemHeight,zt=fe.virtual,Zt=fe.focusable,tr=fe.activeItem,mr=fe.focused,Er=fe.tabIndex,zr=fe.onKeyDown,jr=fe.onFocus,Tr=fe.onBlur,Vr=fe.onActiveChange,sn=fe.onListChangeStart,vn=fe.onListChangeEnd,en=(0,Me.Z)(fe,tt),hn=he.useRef(null),_n=he.useRef(null);he.useImperativeHandle(Fe,function(){return{scrollTo:function(kr){hn.current.scrollTo(kr)},getIndentWidth:function(){return _n.current.offsetWidth}}});var tn=he.useState(Ke),Ln=(0,be.Z)(tn,2),Un=Ln[0],Vn=Ln[1],$r=he.useState(ye),Yr=(0,be.Z)($r,2),Lr=Yr[0],cn=Yr[1],Pr=he.useState(ye),Wr=(0,be.Z)(Pr,2),mn=Wr[0],Gt=Wr[1],Et=he.useState([]),It=(0,be.Z)(Et,2),Dt=It[0],Lt=It[1],Ut=he.useState(null),Qt=(0,be.Z)(Ut,2),yr=Qt[0],cr=Qt[1],vr=he.useRef(ye);vr.current=ye;function Dr(){var qt=vr.current;cn(qt),Gt(qt),Lt([]),cr(null),vn()}(0,Le.Z)(function(){Vn(Ke);var qt=Ze(Un,Ke);if(qt.key!==null)if(qt.add){var kr=Lr.findIndex(function(ur){var Mr=ur.key;return Mr===qt.key}),Xt=ut(Qe(Lr,ye,qt.key),zt,dt,Ft),rr=Lr.slice();rr.splice(kr+1,0,pt),Gt(rr),Lt(Xt),cr("show")}else{var lr=ye.findIndex(function(ur){var Mr=ur.key;return Mr===qt.key}),or=ut(Qe(ye,Lr,qt.key),zt,dt,Ft),_r=ye.slice();_r.splice(lr+1,0,pt),Gt(_r),Lt(or),cr("hide")}else Lr!==ye&&(cn(ye),Gt(ye))},[Ke,ye]),he.useEffect(function(){$t||Dr()},[$t]);var Ir=ft?mn:ye,Ar={expandedKeys:Ke,selectedKeys:We,loadedKeys:bt,loadingKeys:at,checkedKeys:st,halfCheckedKeys:kt,dragOverNodeKey:Bt,dropPosition:St,keyEntities:Ht};return he.createElement(he.Fragment,null,mr&&tr&&he.createElement("span",{style:it,"aria-live":"assertive"},qe(tr)),he.createElement("div",null,he.createElement("input",{style:it,disabled:Zt===!1||Ct,tabIndex:Zt!==!1?Er:null,onKeyDown:zr,onFocus:jr,onBlur:Tr,value:"",onChange:ht,"aria-label":"for screen reader"})),he.createElement("div",{className:"".concat(He,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},he.createElement("div",{className:"".concat(He,"-indent")},he.createElement("div",{ref:_n,className:"".concat(He,"-indent-unit")}))),he.createElement(Ce.Z,(0,Ye.Z)({},en,{data:Ir,itemKey:rt,height:dt,fullHeight:!1,virtual:zt,itemHeight:Ft,prefixCls:"".concat(He,"-list"),ref:hn,onVisibleChange:function(kr,Xt){var rr=new Set(kr),lr=Xt.filter(function(or){return!rr.has(or)});lr.some(function(or){return rt(or)===Ge})&&Dr()}}),function(qt){var kr=qt.pos,Xt=(0,Ye.Z)({},(we(qt.data),qt.data)),rr=qt.title,lr=qt.key,or=qt.isStart,_r=qt.isEnd,ur=(0,Ee.km)(lr,kr);delete Xt.key,delete Xt.children;var Mr=(0,Ee.H8)(ur,Ar);return he.createElement(Ie,(0,Ye.Z)({},Xt,Mr,{title:rr,active:!!tr&&lr===tr.key,pos:kr,data:qt.data,isStart:or,isEnd:_r,motion:ft,motionNodes:lr===Ge?Dt:null,motionType:yr,onMotionStart:sn,onMotionEnd:Dr,treeNodeRequiredProps:Ar,onMouseMove:function(){Vr(null)}}))}))});nt.displayName="NodeList";var xt=nt,yt=ke(35654),Rt=ke(90782),Ot=ke(67841),lt=10,Ue=function(fe){(0,oe.Z)(He,fe);var Fe=(0,se.Z)(He);function He(){var ye;(0,re.Z)(this,He);for(var Re=arguments.length,ze=new Array(Re),Ke=0;Ke<Re;Ke++)ze[Ke]=arguments[Ke];return ye=Fe.call.apply(Fe,[this].concat(ze)),ye.destroyed=!1,ye.delayedDragEnterLogic=void 0,ye.loadingRetryTimes={},ye.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,Ee.w$)()},ye.dragStartMousePosition=null,ye.dragNode=void 0,ye.currentMouseOverDroppableNodeKey=null,ye.listRef=he.createRef(),ye.onNodeDragStart=function(We,st){var bt=ye.state,at=bt.expandedKeys,kt=bt.keyEntities,Ht=ye.props.onDragStart,Ct=st.props.eventKey;ye.dragNode=st,ye.dragStartMousePosition={x:We.clientX,y:We.clientY};var $t=(0,yt._5)(at,Ct);ye.setState({draggingNodeKey:Ct,dragChildrenKeys:(0,yt.wA)(Ct,kt),indent:ye.listRef.current.getIndentWidth()}),ye.setExpandedKeys($t),window.addEventListener("dragend",ye.onWindowDragEnd),Ht==null||Ht({event:We,node:(0,Ee.F)(st.props)})},ye.onNodeDragEnter=function(We,st){var bt=ye.state,at=bt.expandedKeys,kt=bt.keyEntities,Ht=bt.dragChildrenKeys,Ct=bt.flattenNodes,$t=bt.indent,Bt=ye.props,St=Bt.onDragEnter,ft=Bt.onExpand,dt=Bt.allowDrop,Ft=Bt.direction,zt=st.props,Zt=zt.pos,tr=zt.eventKey,mr=(0,ie.Z)(ye),Er=mr.dragNode;if(ye.currentMouseOverDroppableNodeKey!==tr&&(ye.currentMouseOverDroppableNodeKey=tr),!Er){ye.resetDragState();return}var zr=(0,yt.OM)(We,Er,st,$t,ye.dragStartMousePosition,dt,Ct,kt,at,Ft),jr=zr.dropPosition,Tr=zr.dropLevelOffset,Vr=zr.dropTargetKey,sn=zr.dropContainerKey,vn=zr.dropTargetPos,en=zr.dropAllowed,hn=zr.dragOverNodeKey;if(Ht.indexOf(Vr)!==-1||!en){ye.resetDragState();return}if(ye.delayedDragEnterLogic||(ye.delayedDragEnterLogic={}),Object.keys(ye.delayedDragEnterLogic).forEach(function(_n){clearTimeout(ye.delayedDragEnterLogic[_n])}),Er.props.eventKey!==st.props.eventKey&&(We.persist(),ye.delayedDragEnterLogic[Zt]=window.setTimeout(function(){if(ye.state.draggingNodeKey!==null){var _n=(0,me.Z)(at),tn=(0,Ot.Z)(kt,st.props.eventKey);tn&&(tn.children||[]).length&&(_n=(0,yt.L0)(at,st.props.eventKey)),"expandedKeys"in ye.props||ye.setExpandedKeys(_n),ft==null||ft(_n,{node:(0,Ee.F)(st.props),expanded:!0,nativeEvent:We.nativeEvent})}},800)),Er.props.eventKey===Vr&&Tr===0){ye.resetDragState();return}ye.setState({dragOverNodeKey:hn,dropPosition:jr,dropLevelOffset:Tr,dropTargetKey:Vr,dropContainerKey:sn,dropTargetPos:vn,dropAllowed:en}),St==null||St({event:We,node:(0,Ee.F)(st.props),expandedKeys:at})},ye.onNodeDragOver=function(We,st){var bt=ye.state,at=bt.dragChildrenKeys,kt=bt.flattenNodes,Ht=bt.keyEntities,Ct=bt.expandedKeys,$t=bt.indent,Bt=ye.props,St=Bt.onDragOver,ft=Bt.allowDrop,dt=Bt.direction,Ft=(0,ie.Z)(ye),zt=Ft.dragNode;if(zt){var Zt=(0,yt.OM)(We,zt,st,$t,ye.dragStartMousePosition,ft,kt,Ht,Ct,dt),tr=Zt.dropPosition,mr=Zt.dropLevelOffset,Er=Zt.dropTargetKey,zr=Zt.dropContainerKey,jr=Zt.dropAllowed,Tr=Zt.dropTargetPos,Vr=Zt.dragOverNodeKey;at.indexOf(Er)!==-1||!jr||(zt.props.eventKey===Er&&mr===0?ye.state.dropPosition===null&&ye.state.dropLevelOffset===null&&ye.state.dropTargetKey===null&&ye.state.dropContainerKey===null&&ye.state.dropTargetPos===null&&ye.state.dropAllowed===!1&&ye.state.dragOverNodeKey===null||ye.resetDragState():tr===ye.state.dropPosition&&mr===ye.state.dropLevelOffset&&Er===ye.state.dropTargetKey&&zr===ye.state.dropContainerKey&&Tr===ye.state.dropTargetPos&&jr===ye.state.dropAllowed&&Vr===ye.state.dragOverNodeKey||ye.setState({dropPosition:tr,dropLevelOffset:mr,dropTargetKey:Er,dropContainerKey:zr,dropTargetPos:Tr,dropAllowed:jr,dragOverNodeKey:Vr}),St==null||St({event:We,node:(0,Ee.F)(st.props)}))}},ye.onNodeDragLeave=function(We,st){ye.currentMouseOverDroppableNodeKey===st.props.eventKey&&!We.currentTarget.contains(We.relatedTarget)&&(ye.resetDragState(),ye.currentMouseOverDroppableNodeKey=null);var bt=ye.props.onDragLeave;bt==null||bt({event:We,node:(0,Ee.F)(st.props)})},ye.onWindowDragEnd=function(We){ye.onNodeDragEnd(We,null,!0),window.removeEventListener("dragend",ye.onWindowDragEnd)},ye.onNodeDragEnd=function(We,st){var bt=ye.props.onDragEnd;ye.setState({dragOverNodeKey:null}),ye.cleanDragState(),bt==null||bt({event:We,node:(0,Ee.F)(st.props)}),ye.dragNode=null,window.removeEventListener("dragend",ye.onWindowDragEnd)},ye.onNodeDrop=function(We,st){var bt,at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,kt=ye.state,Ht=kt.dragChildrenKeys,Ct=kt.dropPosition,$t=kt.dropTargetKey,Bt=kt.dropTargetPos,St=kt.dropAllowed;if(St){var ft=ye.props.onDrop;if(ye.setState({dragOverNodeKey:null}),ye.cleanDragState(),$t!==null){var dt=(0,Ae.Z)((0,Ae.Z)({},(0,Ee.H8)($t,ye.getTreeNodeRequiredProps())),{},{active:((bt=ye.getActiveItem())===null||bt===void 0?void 0:bt.key)===$t,data:(0,Ot.Z)(ye.state.keyEntities,$t).node}),Ft=Ht.indexOf($t)!==-1;(0,de.ZP)(!Ft,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var zt=(0,yt.yx)(Bt),Zt={event:We,node:(0,Ee.F)(dt),dragNode:ye.dragNode?(0,Ee.F)(ye.dragNode.props):null,dragNodesKeys:[ye.dragNode.props.eventKey].concat(Ht),dropToGap:Ct!==0,dropPosition:Ct+Number(zt[zt.length-1])};at||ft==null||ft(Zt),ye.dragNode=null}}},ye.cleanDragState=function(){var We=ye.state.draggingNodeKey;We!==null&&ye.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ye.dragStartMousePosition=null,ye.currentMouseOverDroppableNodeKey=null},ye.triggerExpandActionExpand=function(We,st){var bt=ye.state,at=bt.expandedKeys,kt=bt.flattenNodes,Ht=st.expanded,Ct=st.key,$t=st.isLeaf;if(!($t||We.shiftKey||We.metaKey||We.ctrlKey)){var Bt=kt.filter(function(ft){return ft.key===Ct})[0],St=(0,Ee.F)((0,Ae.Z)((0,Ae.Z)({},(0,Ee.H8)(Ct,ye.getTreeNodeRequiredProps())),{},{data:Bt.data}));ye.setExpandedKeys(Ht?(0,yt._5)(at,Ct):(0,yt.L0)(at,Ct)),ye.onNodeExpand(We,St)}},ye.onNodeClick=function(We,st){var bt=ye.props,at=bt.onClick,kt=bt.expandAction;kt==="click"&&ye.triggerExpandActionExpand(We,st),at==null||at(We,st)},ye.onNodeDoubleClick=function(We,st){var bt=ye.props,at=bt.onDoubleClick,kt=bt.expandAction;kt==="doubleClick"&&ye.triggerExpandActionExpand(We,st),at==null||at(We,st)},ye.onNodeSelect=function(We,st){var bt=ye.state.selectedKeys,at=ye.state,kt=at.keyEntities,Ht=at.fieldNames,Ct=ye.props,$t=Ct.onSelect,Bt=Ct.multiple,St=st.selected,ft=st[Ht.key],dt=!St;dt?Bt?bt=(0,yt.L0)(bt,ft):bt=[ft]:bt=(0,yt._5)(bt,ft);var Ft=bt.map(function(zt){var Zt=(0,Ot.Z)(kt,zt);return Zt?Zt.node:null}).filter(function(zt){return zt});ye.setUncontrolledState({selectedKeys:bt}),$t==null||$t(bt,{event:"select",selected:dt,node:st,selectedNodes:Ft,nativeEvent:We.nativeEvent})},ye.onNodeCheck=function(We,st,bt){var at=ye.state,kt=at.keyEntities,Ht=at.checkedKeys,Ct=at.halfCheckedKeys,$t=ye.props,Bt=$t.checkStrictly,St=$t.onCheck,ft=st.key,dt,Ft={event:"check",node:st,checked:bt,nativeEvent:We.nativeEvent};if(Bt){var zt=bt?(0,yt.L0)(Ht,ft):(0,yt._5)(Ht,ft),Zt=(0,yt._5)(Ct,ft);dt={checked:zt,halfChecked:Zt},Ft.checkedNodes=zt.map(function(Tr){return(0,Ot.Z)(kt,Tr)}).filter(function(Tr){return Tr}).map(function(Tr){return Tr.node}),ye.setUncontrolledState({checkedKeys:zt})}else{var tr=(0,Rt.S)([].concat((0,me.Z)(Ht),[ft]),!0,kt),mr=tr.checkedKeys,Er=tr.halfCheckedKeys;if(!bt){var zr=new Set(mr);zr.delete(ft);var jr=(0,Rt.S)(Array.from(zr),{checked:!1,halfCheckedKeys:Er},kt);mr=jr.checkedKeys,Er=jr.halfCheckedKeys}dt=mr,Ft.checkedNodes=[],Ft.checkedNodesPositions=[],Ft.halfCheckedKeys=Er,mr.forEach(function(Tr){var Vr=(0,Ot.Z)(kt,Tr);if(Vr){var sn=Vr.node,vn=Vr.pos;Ft.checkedNodes.push(sn),Ft.checkedNodesPositions.push({node:sn,pos:vn})}}),ye.setUncontrolledState({checkedKeys:mr},!1,{halfCheckedKeys:Er})}St==null||St(dt,Ft)},ye.onNodeLoad=function(We){var st=We.key,bt=new Promise(function(at,kt){ye.setState(function(Ht){var Ct=Ht.loadedKeys,$t=Ct===void 0?[]:Ct,Bt=Ht.loadingKeys,St=Bt===void 0?[]:Bt,ft=ye.props,dt=ft.loadData,Ft=ft.onLoad;if(!dt||$t.indexOf(st)!==-1||St.indexOf(st)!==-1)return null;var zt=dt(We);return zt.then(function(){var Zt=ye.state.loadedKeys,tr=(0,yt.L0)(Zt,st);Ft==null||Ft(tr,{event:"load",node:We}),ye.setUncontrolledState({loadedKeys:tr}),ye.setState(function(mr){return{loadingKeys:(0,yt._5)(mr.loadingKeys,st)}}),at()}).catch(function(Zt){if(ye.setState(function(mr){return{loadingKeys:(0,yt._5)(mr.loadingKeys,st)}}),ye.loadingRetryTimes[st]=(ye.loadingRetryTimes[st]||0)+1,ye.loadingRetryTimes[st]>=lt){var tr=ye.state.loadedKeys;(0,de.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ye.setUncontrolledState({loadedKeys:(0,yt.L0)(tr,st)}),at()}kt(Zt)}),{loadingKeys:(0,yt.L0)(St,st)}})});return bt.catch(function(){}),bt},ye.onNodeMouseEnter=function(We,st){var bt=ye.props.onMouseEnter;bt==null||bt({event:We,node:st})},ye.onNodeMouseLeave=function(We,st){var bt=ye.props.onMouseLeave;bt==null||bt({event:We,node:st})},ye.onNodeContextMenu=function(We,st){var bt=ye.props.onRightClick;bt&&(We.preventDefault(),bt({event:We,node:st}))},ye.onFocus=function(){var We=ye.props.onFocus;ye.setState({focused:!0});for(var st=arguments.length,bt=new Array(st),at=0;at<st;at++)bt[at]=arguments[at];We==null||We.apply(void 0,bt)},ye.onBlur=function(){var We=ye.props.onBlur;ye.setState({focused:!1}),ye.onActiveChange(null);for(var st=arguments.length,bt=new Array(st),at=0;at<st;at++)bt[at]=arguments[at];We==null||We.apply(void 0,bt)},ye.getTreeNodeRequiredProps=function(){var We=ye.state,st=We.expandedKeys,bt=We.selectedKeys,at=We.loadedKeys,kt=We.loadingKeys,Ht=We.checkedKeys,Ct=We.halfCheckedKeys,$t=We.dragOverNodeKey,Bt=We.dropPosition,St=We.keyEntities;return{expandedKeys:st||[],selectedKeys:bt||[],loadedKeys:at||[],loadingKeys:kt||[],checkedKeys:Ht||[],halfCheckedKeys:Ct||[],dragOverNodeKey:$t,dropPosition:Bt,keyEntities:St}},ye.setExpandedKeys=function(We){var st=ye.state,bt=st.treeData,at=st.fieldNames,kt=(0,Ee.oH)(bt,We,at);ye.setUncontrolledState({expandedKeys:We,flattenNodes:kt},!0)},ye.onNodeExpand=function(We,st){var bt=ye.state.expandedKeys,at=ye.state,kt=at.listChanging,Ht=at.fieldNames,Ct=ye.props,$t=Ct.onExpand,Bt=Ct.loadData,St=st.expanded,ft=st[Ht.key];if(!kt){var dt=bt.indexOf(ft),Ft=!St;if((0,de.ZP)(St&&dt!==-1||!St&&dt===-1,"Expand state not sync with index check"),Ft?bt=(0,yt.L0)(bt,ft):bt=(0,yt._5)(bt,ft),ye.setExpandedKeys(bt),$t==null||$t(bt,{node:st,expanded:Ft,nativeEvent:We.nativeEvent}),Ft&&Bt){var zt=ye.onNodeLoad(st);zt&&zt.then(function(){var Zt=(0,Ee.oH)(ye.state.treeData,bt,Ht);ye.setUncontrolledState({flattenNodes:Zt})}).catch(function(){var Zt=ye.state.expandedKeys,tr=(0,yt._5)(Zt,ft);ye.setExpandedKeys(tr)})}}},ye.onListChangeStart=function(){ye.setUncontrolledState({listChanging:!0})},ye.onListChangeEnd=function(){setTimeout(function(){ye.setUncontrolledState({listChanging:!1})})},ye.onActiveChange=function(We){var st=ye.state.activeKey,bt=ye.props.onActiveChange;st!==We&&(ye.setState({activeKey:We}),We!==null&&ye.scrollTo({key:We}),bt==null||bt(We))},ye.getActiveItem=function(){var We=ye.state,st=We.activeKey,bt=We.flattenNodes;return st===null?null:bt.find(function(at){var kt=at.key;return kt===st})||null},ye.offsetActiveKey=function(We){var st=ye.state,bt=st.flattenNodes,at=st.activeKey,kt=bt.findIndex(function($t){var Bt=$t.key;return Bt===at});kt===-1&&We<0&&(kt=bt.length),kt=(kt+We+bt.length)%bt.length;var Ht=bt[kt];if(Ht){var Ct=Ht.key;ye.onActiveChange(Ct)}else ye.onActiveChange(null)},ye.onKeyDown=function(We){var st=ye.state,bt=st.activeKey,at=st.expandedKeys,kt=st.checkedKeys,Ht=st.fieldNames,Ct=ye.props,$t=Ct.onKeyDown,Bt=Ct.checkable,St=Ct.selectable;switch(We.which){case ae.Z.UP:{ye.offsetActiveKey(-1),We.preventDefault();break}case ae.Z.DOWN:{ye.offsetActiveKey(1),We.preventDefault();break}}var ft=ye.getActiveItem();if(ft&&ft.data){var dt=ye.getTreeNodeRequiredProps(),Ft=ft.data.isLeaf===!1||!!(ft.data[Ht.children]||[]).length,zt=(0,Ee.F)((0,Ae.Z)((0,Ae.Z)({},(0,Ee.H8)(bt,dt)),{},{data:ft.data,active:!0}));switch(We.which){case ae.Z.LEFT:{Ft&&at.includes(bt)?ye.onNodeExpand({},zt):ft.parent&&ye.onActiveChange(ft.parent.key),We.preventDefault();break}case ae.Z.RIGHT:{Ft&&!at.includes(bt)?ye.onNodeExpand({},zt):ft.children&&ft.children.length&&ye.onActiveChange(ft.children[0].key),We.preventDefault();break}case ae.Z.ENTER:case ae.Z.SPACE:{Bt&&!zt.disabled&&zt.checkable!==!1&&!zt.disableCheckbox?ye.onNodeCheck({},zt,!kt.includes(bt)):!Bt&&St&&!zt.disabled&&zt.selectable!==!1&&ye.onNodeSelect({},zt);break}}}$t==null||$t(We)},ye.setUncontrolledState=function(We){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ye.destroyed){var at=!1,kt=!0,Ht={};Object.keys(We).forEach(function(Ct){if(Ct in ye.props){kt=!1;return}at=!0,Ht[Ct]=We[Ct]}),at&&(!st||kt)&&ye.setState((0,Ae.Z)((0,Ae.Z)({},Ht),bt))}},ye.scrollTo=function(We){ye.listRef.current.scrollTo(We)},ye}return(0,z.Z)(He,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Re=this.props.activeKey;Re!==void 0&&Re!==this.state.activeKey&&(this.setState({activeKey:Re}),Re!==null&&this.scrollTo({key:Re}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Re,ze=this.state,Ke=ze.focused,We=ze.flattenNodes,st=ze.keyEntities,bt=ze.draggingNodeKey,at=ze.activeKey,kt=ze.dropLevelOffset,Ht=ze.dropContainerKey,Ct=ze.dropTargetKey,$t=ze.dropPosition,Bt=ze.dragOverNodeKey,St=ze.indent,ft=this.props,dt=ft.prefixCls,Ft=ft.className,zt=ft.style,Zt=ft.showLine,tr=ft.focusable,mr=ft.tabIndex,Er=mr===void 0?0:mr,zr=ft.selectable,jr=ft.showIcon,Tr=ft.icon,Vr=ft.switcherIcon,sn=ft.draggable,vn=ft.checkable,en=ft.checkStrictly,hn=ft.disabled,_n=ft.motion,tn=ft.loadData,Ln=ft.filterTreeNode,Un=ft.height,Vn=ft.itemHeight,$r=ft.virtual,Yr=ft.titleRender,Lr=ft.dropIndicatorRender,cn=ft.onContextMenu,Pr=ft.onScroll,Wr=ft.direction,mn=ft.rootClassName,Gt=ft.rootStyle,Et=(0,ue.Z)(this.props,{aria:!0,data:!0}),It;return sn&&((0,x.Z)(sn)==="object"?It=sn:typeof sn=="function"?It={nodeDraggable:sn}:It={}),he.createElement(xe.k.Provider,{value:{prefixCls:dt,selectable:zr,showIcon:jr,icon:Tr,switcherIcon:Vr,draggable:It,draggingNodeKey:bt,checkable:vn,checkStrictly:en,disabled:hn,keyEntities:st,dropLevelOffset:kt,dropContainerKey:Ht,dropTargetKey:Ct,dropPosition:$t,dragOverNodeKey:Bt,indent:St,direction:Wr,dropIndicatorRender:Lr,loadData:tn,filterTreeNode:Ln,titleRender:Yr,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}},he.createElement("div",{role:"tree",className:ne()(dt,Ft,mn,(Re={},(0,vt.Z)(Re,"".concat(dt,"-show-line"),Zt),(0,vt.Z)(Re,"".concat(dt,"-focused"),Ke),(0,vt.Z)(Re,"".concat(dt,"-active-focused"),at!==null),Re)),style:Gt},he.createElement(xt,(0,Ye.Z)({ref:this.listRef,prefixCls:dt,style:zt,data:We,disabled:hn,selectable:zr,checkable:!!vn,motion:_n,dragging:bt!==null,height:Un,itemHeight:Vn,virtual:$r,focusable:tr,focused:Ke,tabIndex:Er,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:cn,onScroll:Pr},this.getTreeNodeRequiredProps(),Et))))}}],[{key:"getDerivedStateFromProps",value:function(Re,ze){var Ke=ze.prevProps,We={prevProps:Re};function st(tr){return!Ke&&tr in Re||Ke&&Ke[tr]!==Re[tr]}var bt,at=ze.fieldNames;if(st("fieldNames")&&(at=(0,Ee.w$)(Re.fieldNames),We.fieldNames=at),st("treeData")?bt=Re.treeData:st("children")&&((0,de.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),bt=(0,Ee.zn)(Re.children)),bt){We.treeData=bt;var kt=(0,Ee.I8)(bt,{fieldNames:at});We.keyEntities=(0,Ae.Z)((0,vt.Z)({},Ge,ct),kt.keyEntities)}var Ht=We.keyEntities||ze.keyEntities;if(st("expandedKeys")||Ke&&st("autoExpandParent"))We.expandedKeys=Re.autoExpandParent||!Ke&&Re.defaultExpandParent?(0,yt.r7)(Re.expandedKeys,Ht):Re.expandedKeys;else if(!Ke&&Re.defaultExpandAll){var Ct=(0,Ae.Z)({},Ht);delete Ct[Ge],We.expandedKeys=Object.keys(Ct).map(function(tr){return Ct[tr].key})}else!Ke&&Re.defaultExpandedKeys&&(We.expandedKeys=Re.autoExpandParent||Re.defaultExpandParent?(0,yt.r7)(Re.defaultExpandedKeys,Ht):Re.defaultExpandedKeys);if(We.expandedKeys||delete We.expandedKeys,bt||We.expandedKeys){var $t=(0,Ee.oH)(bt||ze.treeData,We.expandedKeys||ze.expandedKeys,at);We.flattenNodes=$t}if(Re.selectable&&(st("selectedKeys")?We.selectedKeys=(0,yt.BT)(Re.selectedKeys,Re):!Ke&&Re.defaultSelectedKeys&&(We.selectedKeys=(0,yt.BT)(Re.defaultSelectedKeys,Re))),Re.checkable){var Bt;if(st("checkedKeys")?Bt=(0,yt.E6)(Re.checkedKeys)||{}:!Ke&&Re.defaultCheckedKeys?Bt=(0,yt.E6)(Re.defaultCheckedKeys)||{}:bt&&(Bt=(0,yt.E6)(Re.checkedKeys)||{checkedKeys:ze.checkedKeys,halfCheckedKeys:ze.halfCheckedKeys}),Bt){var St=Bt,ft=St.checkedKeys,dt=ft===void 0?[]:ft,Ft=St.halfCheckedKeys,zt=Ft===void 0?[]:Ft;if(!Re.checkStrictly){var Zt=(0,Rt.S)(dt,!0,Ht);dt=Zt.checkedKeys,zt=Zt.halfCheckedKeys}We.checkedKeys=dt,We.halfCheckedKeys=zt}}return st("loadedKeys")&&(We.loadedKeys=Re.loadedKeys),We}}]),He}(he.Component);Ue.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:Se,allowDrop:function(){return!0},expandAction:!1},Ue.TreeNode=Te.Z;var $e=Ue,le=$e},35654:function(gr,Wt,ke){"use strict";ke.d(Wt,{BT:function(){return he},E6:function(){return we},L0:function(){return se},OM:function(){return de},_5:function(){return oe},r7:function(){return be},wA:function(){return ne},yx:function(){return pe}});var Ye=ke(94480),vt=ke(76190),x=ke(48736),Ae=ke(59301),me=ke(39417),re=ke(67841),z=ke(71430),ie=null;function oe(Me,Le){if(!Me)return[];var Ce=Me.slice(),Ne=Ce.indexOf(Le);return Ne>=0&&Ce.splice(Ne,1),Ce}function se(Me,Le){var Ce=(Me||[]).slice();return Ce.indexOf(Le)===-1&&Ce.push(Le),Ce}function pe(Me){return Me.split("-")}function ne(Me,Le){var Ce=[],Ne=(0,re.Z)(Le,Me);function Te(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];De.forEach(function(Ee){var Pe=Ee.key,Be=Ee.children;Ce.push(Pe),Te(Be)})}return Te(Ne.children),Ce}function ae(Me){if(Me.parent){var Le=pe(Me.pos);return Number(Le[Le.length-1])===Me.parent.children.length-1}return!1}function ue(Me){var Le=pe(Me.pos);return Number(Le[Le.length-1])===0}function de(Me,Le,Ce,Ne,Te,De,Ee,Pe,Be,Ve){var Ie,Ze=Me.clientX,Qe=Me.clientY,tt=Me.target.getBoundingClientRect(),it=tt.top,ht=tt.height,Ge=(Ve==="rtl"?-1:1)*(((Te==null?void 0:Te.x)||0)-Ze),Xe=(Ge-12)/Ne,ct=(0,re.Z)(Pe,Ce.props.eventKey);if(Qe<it+ht/2){var pt=Ee.findIndex(function(le){return le.key===ct.key}),ut=pt<=0?0:pt-1,rt=Ee[ut].key;ct=(0,re.Z)(Pe,rt)}var qe=ct.key,nt=ct,xt=ct.key,yt=0,Rt=0;if(!Be.includes(qe))for(var Ot=0;Ot<Xe&&ae(ct);Ot+=1)ct=ct.parent,Rt+=1;var lt=Le.props.data,Ue=ct.node,$e=!0;return ue(ct)&&ct.level===0&&Qe<it+ht/2&&De({dragNode:lt,dropNode:Ue,dropPosition:-1})&&ct.key===Ce.props.eventKey?yt=-1:(nt.children||[]).length&&Be.includes(xt)?De({dragNode:lt,dropNode:Ue,dropPosition:0})?yt=0:$e=!1:Rt===0?Xe>-1.5?De({dragNode:lt,dropNode:Ue,dropPosition:1})?yt=1:$e=!1:De({dragNode:lt,dropNode:Ue,dropPosition:0})?yt=0:De({dragNode:lt,dropNode:Ue,dropPosition:1})?yt=1:$e=!1:De({dragNode:lt,dropNode:Ue,dropPosition:1})?yt=1:$e=!1,{dropPosition:yt,dropLevelOffset:Rt,dropTargetKey:ct.key,dropTargetPos:ct.pos,dragOverNodeKey:xt,dropContainerKey:yt===0?null:((Ie=ct.parent)===null||Ie===void 0?void 0:Ie.key)||null,dropAllowed:$e}}function he(Me,Le){if(Me){var Ce=Le.multiple;return Ce?Me.slice():Me.length?[Me[0]]:Me}}var xe=function(Le){return Le};function Se(Me,Le){if(!Me)return[];var Ce=Le||{},Ne=Ce.processProps,Te=Ne===void 0?xe:Ne,De=Array.isArray(Me)?Me:[Me];return De.map(function(Ee){var Pe=Ee.children,Be=_objectWithoutProperties(Ee,ie),Ve=Se(Pe,Le);return React.createElement(TreeNode,_extends({key:Be.key},Te(Be)),Ve)})}function we(Me){if(!Me)return null;var Le;if(Array.isArray(Me))Le={checkedKeys:Me,halfCheckedKeys:void 0};else if((0,vt.Z)(Me)==="object")Le={checkedKeys:Me.checked||void 0,halfCheckedKeys:Me.halfChecked||void 0};else return(0,x.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Le}function be(Me,Le){var Ce=new Set;function Ne(Te){if(!Ce.has(Te)){var De=(0,re.Z)(Le,Te);if(De){Ce.add(Te);var Ee=De.parent,Pe=De.node;Pe.disabled||Ee&&Ne(Ee.key)}}}return(Me||[]).forEach(function(Te){Ne(Te)}),(0,Ye.Z)(Ce)}},90782:function(gr,Wt,ke){"use strict";ke.d(Wt,{S:function(){return z}});var Ye=ke(48736),vt=ke(67841);function x(ie,oe){var se=new Set;return ie.forEach(function(pe){oe.has(pe)||se.add(pe)}),se}function Ae(ie){var oe=ie||{},se=oe.disabled,pe=oe.disableCheckbox,ne=oe.checkable;return!!(se||pe)||ne===!1}function me(ie,oe,se,pe){for(var ne=new Set(ie),ae=new Set,ue=0;ue<=se;ue+=1){var de=oe.get(ue)||new Set;de.forEach(function(we){var be=we.key,Me=we.node,Le=we.children,Ce=Le===void 0?[]:Le;ne.has(be)&&!pe(Me)&&Ce.filter(function(Ne){return!pe(Ne.node)}).forEach(function(Ne){ne.add(Ne.key)})})}for(var he=new Set,xe=se;xe>=0;xe-=1){var Se=oe.get(xe)||new Set;Se.forEach(function(we){var be=we.parent,Me=we.node;if(!(pe(Me)||!we.parent||he.has(we.parent.key))){if(pe(we.parent.node)){he.add(be.key);return}var Le=!0,Ce=!1;(be.children||[]).filter(function(Ne){return!pe(Ne.node)}).forEach(function(Ne){var Te=Ne.key,De=ne.has(Te);Le&&!De&&(Le=!1),!Ce&&(De||ae.has(Te))&&(Ce=!0)}),Le&&ne.add(be.key),Ce&&ae.add(be.key),he.add(be.key)}})}return{checkedKeys:Array.from(ne),halfCheckedKeys:Array.from(x(ae,ne))}}function re(ie,oe,se,pe,ne){for(var ae=new Set(ie),ue=new Set(oe),de=0;de<=pe;de+=1){var he=se.get(de)||new Set;he.forEach(function(be){var Me=be.key,Le=be.node,Ce=be.children,Ne=Ce===void 0?[]:Ce;!ae.has(Me)&&!ue.has(Me)&&!ne(Le)&&Ne.filter(function(Te){return!ne(Te.node)}).forEach(function(Te){ae.delete(Te.key)})})}ue=new Set;for(var xe=new Set,Se=pe;Se>=0;Se-=1){var we=se.get(Se)||new Set;we.forEach(function(be){var Me=be.parent,Le=be.node;if(!(ne(Le)||!be.parent||xe.has(be.parent.key))){if(ne(be.parent.node)){xe.add(Me.key);return}var Ce=!0,Ne=!1;(Me.children||[]).filter(function(Te){return!ne(Te.node)}).forEach(function(Te){var De=Te.key,Ee=ae.has(De);Ce&&!Ee&&(Ce=!1),!Ne&&(Ee||ue.has(De))&&(Ne=!0)}),Ce||ae.delete(Me.key),Ne&&ue.add(Me.key),xe.add(Me.key)}})}return{checkedKeys:Array.from(ae),halfCheckedKeys:Array.from(x(ue,ae))}}function z(ie,oe,se,pe){var ne=[],ae;pe?ae=pe:ae=Ae;var ue=new Set(ie.filter(function(Se){var we=!!(0,vt.Z)(se,Se);return we||ne.push(Se),we})),de=new Map,he=0;Object.keys(se).forEach(function(Se){var we=se[Se],be=we.level,Me=de.get(be);Me||(Me=new Set,de.set(be,Me)),Me.add(we),he=Math.max(he,be)}),(0,Ye.ZP)(!ne.length,"Tree missing follow keys: ".concat(ne.slice(0,100).map(function(Se){return"'".concat(Se,"'")}).join(", ")));var xe;return oe===!0?xe=me(ue,de,he,ae):xe=re(ue,oe.halfCheckedKeys,de,he,ae),xe}},67841:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Ye}});function Ye(vt,x){return vt[x]}},71430:function(gr,Wt,ke){"use strict";ke.d(Wt,{F:function(){return be},H8:function(){return we},I8:function(){return Se},km:function(){return ne},oH:function(){return he},w$:function(){return ae},zn:function(){return de}});var Ye=ke(76190),vt=ke(94480),x=ke(33885),Ae=ke(75931),me=ke(11592),re=ke(2738),z=ke(48736),ie=ke(67841),oe=["children"];function se(Me,Le){return"".concat(Me,"-").concat(Le)}function pe(Me){return Me&&Me.type&&Me.type.isTreeNode}function ne(Me,Le){return Me!=null?Me:Le}function ae(Me){var Le=Me||{},Ce=Le.title,Ne=Le._title,Te=Le.key,De=Le.children,Ee=Ce||"title";return{title:Ee,_title:Ne||[Ee],key:Te||"key",children:De||"children"}}function ue(Me,Le){var Ce=new Map;function Ne(Te){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Te||[]).forEach(function(Ee){var Pe=Ee[Le.key],Be=Ee[Le.children];warning(Pe!=null,"Tree node must have a certain key: [".concat(De).concat(Pe,"]"));var Ve=String(Pe);warning(!Ce.has(Ve)||Pe===null||Pe===void 0,"Same 'key' exist in the Tree: ".concat(Ve)),Ce.set(Ve,!0),Ne(Be,"".concat(De).concat(Ve," > "))})}Ne(Me)}function de(Me){function Le(Ce){var Ne=(0,me.Z)(Ce);return Ne.map(function(Te){if(!pe(Te))return(0,z.ZP)(!Te,"Tree/TreeNode can only accept TreeNode as children."),null;var De=Te.key,Ee=Te.props,Pe=Ee.children,Be=(0,Ae.Z)(Ee,oe),Ve=(0,x.Z)({key:De},Be),Ie=Le(Pe);return Ie.length&&(Ve.children=Ie),Ve}).filter(function(Te){return Te})}return Le(Me)}function he(Me,Le,Ce){var Ne=ae(Ce),Te=Ne._title,De=Ne.key,Ee=Ne.children,Pe=new Set(Le===!0?[]:Le),Be=[];function Ve(Ie){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ie.map(function(Qe,tt){for(var it=se(Ze?Ze.pos:"0",tt),ht=ne(Qe[De],it),Ge,Xe=0;Xe<Te.length;Xe+=1){var ct=Te[Xe];if(Qe[ct]!==void 0){Ge=Qe[ct];break}}var pt=(0,x.Z)((0,x.Z)({},(0,re.Z)(Qe,[].concat((0,vt.Z)(Te),[De,Ee]))),{},{title:Ge,key:ht,parent:Ze,pos:it,children:null,data:Qe,isStart:[].concat((0,vt.Z)(Ze?Ze.isStart:[]),[tt===0]),isEnd:[].concat((0,vt.Z)(Ze?Ze.isEnd:[]),[tt===Ie.length-1])});return Be.push(pt),Le===!0||Pe.has(ht)?pt.children=Ve(Qe[Ee]||[],pt):pt.children=[],pt})}return Ve(Me),Be}function xe(Me,Le,Ce){var Ne={};(0,Ye.Z)(Ce)==="object"?Ne=Ce:Ne={externalGetKey:Ce},Ne=Ne||{};var Te=Ne,De=Te.childrenPropName,Ee=Te.externalGetKey,Pe=Te.fieldNames,Be=ae(Pe),Ve=Be.key,Ie=Be.children,Ze=De||Ie,Qe;Ee?typeof Ee=="string"?Qe=function(ht){return ht[Ee]}:typeof Ee=="function"&&(Qe=function(ht){return Ee(ht)}):Qe=function(ht,Ge){return ne(ht[Ve],Ge)};function tt(it,ht,Ge,Xe){var ct=it?it[Ze]:Me,pt=it?se(Ge.pos,ht):"0",ut=it?[].concat((0,vt.Z)(Xe),[it]):[];if(it){var rt=Qe(it,pt),qe={node:it,index:ht,pos:pt,key:rt,parentPos:Ge.node?Ge.pos:null,level:Ge.level+1,nodes:ut};Le(qe)}ct&&ct.forEach(function(nt,xt){tt(nt,xt,{node:it,pos:pt,level:Ge?Ge.level+1:-1},ut)})}tt(null)}function Se(Me){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=Le.initWrapper,Ne=Le.processEntity,Te=Le.onProcessFinished,De=Le.externalGetKey,Ee=Le.childrenPropName,Pe=Le.fieldNames,Be=arguments.length>2?arguments[2]:void 0,Ve=De||Be,Ie={},Ze={},Qe={posEntities:Ie,keyEntities:Ze};return Ce&&(Qe=Ce(Qe)||Qe),xe(Me,function(tt){var it=tt.node,ht=tt.index,Ge=tt.pos,Xe=tt.key,ct=tt.parentPos,pt=tt.level,ut=tt.nodes,rt={node:it,nodes:ut,index:ht,key:Xe,pos:Ge,level:pt},qe=ne(Xe,Ge);Ie[Ge]=rt,Ze[qe]=rt,rt.parent=Ie[ct],rt.parent&&(rt.parent.children=rt.parent.children||[],rt.parent.children.push(rt)),Ne&&Ne(rt,Qe)},{externalGetKey:Ve,childrenPropName:Ee,fieldNames:Pe}),Te&&Te(Qe),Qe}function we(Me,Le){var Ce=Le.expandedKeys,Ne=Le.selectedKeys,Te=Le.loadedKeys,De=Le.loadingKeys,Ee=Le.checkedKeys,Pe=Le.halfCheckedKeys,Be=Le.dragOverNodeKey,Ve=Le.dropPosition,Ie=Le.keyEntities,Ze=(0,ie.Z)(Ie,Me),Qe={eventKey:Me,expanded:Ce.indexOf(Me)!==-1,selected:Ne.indexOf(Me)!==-1,loaded:Te.indexOf(Me)!==-1,loading:De.indexOf(Me)!==-1,checked:Ee.indexOf(Me)!==-1,halfChecked:Pe.indexOf(Me)!==-1,pos:String(Ze?Ze.pos:""),dragOver:Be===Me&&Ve===0,dragOverGapTop:Be===Me&&Ve===-1,dragOverGapBottom:Be===Me&&Ve===1};return Qe}function be(Me){var Le=Me.data,Ce=Me.expanded,Ne=Me.selected,Te=Me.checked,De=Me.loaded,Ee=Me.loading,Pe=Me.halfChecked,Be=Me.dragOver,Ve=Me.dragOverGapTop,Ie=Me.dragOverGapBottom,Ze=Me.pos,Qe=Me.active,tt=Me.eventKey,it=(0,x.Z)((0,x.Z)({},Le),{},{expanded:Ce,selected:Ne,checked:Te,loaded:De,loading:Ee,halfChecked:Pe,dragOver:Be,dragOverGapTop:Ve,dragOverGapBottom:Ie,pos:Ze,active:Qe,key:tt});return"props"in it||Object.defineProperty(it,"props",{get:function(){return(0,z.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Me}}),it}},8224:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return vt}});var Ye=ke(4676);function vt(x,Ae,me,re){var z=Ye.unstable_batchedUpdates?function(oe){Ye.unstable_batchedUpdates(me,oe)}:me;return x!=null&&x.addEventListener&&x.addEventListener(Ae,z,re),{remove:function(){x!=null&&x.removeEventListener&&x.removeEventListener(Ae,z,re)}}}},55468:function(gr,Wt,ke){"use strict";ke.d(Wt,{g1:function(){return pe},os:function(){return ae}});var Ye=/margin|padding|width|height|max|min|offset/,vt={left:!0,top:!0},x={cssFloat:1,styleFloat:1,float:1};function Ae(ue){return ue.nodeType===1?ue.ownerDocument.defaultView.getComputedStyle(ue,null):{}}function me(ue,de,he){if(de=de.toLowerCase(),he==="auto"){if(de==="height")return ue.offsetHeight;if(de==="width")return ue.offsetWidth}return de in vt||(vt[de]=Ye.test(de)),vt[de]?parseFloat(he)||0:he}function re(ue,de){var he=arguments.length,xe=Ae(ue);return de=x[de]?"cssFloat"in ue.style?"cssFloat":"styleFloat":de,he===1?xe:me(ue,de,xe[de]||ue.style[de])}function z(ue,de,he){var xe=arguments.length;if(de=x[de]?"cssFloat"in ue.style?"cssFloat":"styleFloat":de,xe===3)return typeof he=="number"&&Ye.test(de)&&(he="".concat(he,"px")),ue.style[de]=he,he;for(var Se in de)de.hasOwnProperty(Se)&&z(ue,Se,de[Se]);return Ae(ue)}function ie(ue){return ue===document.body?document.documentElement.clientWidth:ue.offsetWidth}function oe(ue){return ue===document.body?window.innerHeight||document.documentElement.clientHeight:ue.offsetHeight}function se(){var ue=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),de=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ue,height:de}}function pe(){var ue=document.documentElement.clientWidth,de=window.innerHeight||document.documentElement.clientHeight;return{width:ue,height:de}}function ne(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ae(ue){var de=ue.getBoundingClientRect(),he=document.documentElement;return{left:de.left+(window.pageXOffset||he.scrollLeft)-(he.clientLeft||document.body.clientLeft||0),top:de.top+(window.pageYOffset||he.scrollTop)-(he.clientTop||document.body.clientTop||0)}}},24514:function(gr,Wt,ke){"use strict";ke.d(Wt,{G:function(){return Ae}});var Ye=ke(47273),vt=function(re){if((0,Ye.Z)()&&window.document.documentElement){var z=Array.isArray(re)?re:[re],ie=window.document.documentElement;return z.some(function(oe){return oe in ie.style})}return!1},x=function(re,z){if(!vt(re))return!1;var ie=document.createElement("div"),oe=ie.style[re];return ie.style[re]=z,ie.style[re]!==oe};function Ae(me,re){return!Array.isArray(me)&&re!==void 0?x(me,re):vt(me)}},48911:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return Ue}});var Ye=ke(54476),vt=ke(76190),x=ke(33885),Ae=ke(20068),me=ke(42978),re=ke(75931),z=ke(92310),ie=ke.n(z),oe=ke(29301),se=ke(70425),pe=ke(34280),ne=ke(59301),ae=ke(4676),ue=ne.forwardRef(function($e,le){var fe=$e.height,Fe=$e.offsetY,He=$e.offsetX,ye=$e.children,Re=$e.prefixCls,ze=$e.onInnerResize,Ke=$e.innerProps,We=$e.rtl,st=$e.extra,bt={},at={display:"flex",flexDirection:"column"};return Fe!==void 0&&(bt={height:fe,position:"relative",overflow:"hidden"},at=(0,x.Z)((0,x.Z)({},at),{},(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({transform:"translateY(".concat(Fe,"px)")},We?"marginRight":"marginLeft",-He),"position","absolute"),"left",0),"right",0),"top",0))),ne.createElement("div",{style:bt},ne.createElement(oe.Z,{onResize:function(Ht){var Ct=Ht.offsetHeight;Ct&&ze&&ze()}},ne.createElement("div",(0,Ye.Z)({style:at,className:ie()((0,Ae.Z)({},"".concat(Re,"-holder-inner"),Re)),ref:le},Ke),ye,st)))});ue.displayName="Filler";var de=ue;function he($e){var le=$e.children,fe=$e.setRef,Fe=ne.useCallback(function(He){fe(He)},[]);return ne.cloneElement(le,{ref:Fe})}function xe($e,le,fe,Fe,He,ye,Re,ze){var Ke=ze.getKey;return $e.slice(le,fe+1).map(function(We,st){var bt=le+st,at=Re(We,bt,{style:{width:Fe},offsetX:He}),kt=Ke(We);return ne.createElement(he,{key:kt,setRef:function(Ct){return ye(We,Ct)}},at)})}function Se($e,le,fe,Fe){var He=fe-$e,ye=le-fe,Re=Math.min(He,ye)*2;if(Fe<=Re){var ze=Math.floor(Fe/2);return Fe%2?fe+ze+1:fe-ze}return He>ye?fe-(Fe-ye):fe+(Fe-He)}function we($e,le,fe){var Fe=$e.length,He=le.length,ye,Re;if(Fe===0&&He===0)return null;Fe<He?(ye=$e,Re=le):(ye=le,Re=$e);var ze={__EMPTY_ITEM__:!0};function Ke(Ht){return Ht!==void 0?fe(Ht):ze}for(var We=null,st=Math.abs(Fe-He)!==1,bt=0;bt<Re.length;bt+=1){var at=Ke(ye[bt]),kt=Ke(Re[bt]);if(at!==kt){We=bt,st=st||at!==Ke(Re[bt+1]);break}}return We===null?null:{index:We,multiple:st}}function be($e,le,fe){var Fe=ne.useState($e),He=(0,me.Z)(Fe,2),ye=He[0],Re=He[1],ze=ne.useState(null),Ke=(0,me.Z)(ze,2),We=Ke[0],st=Ke[1];return ne.useEffect(function(){var bt=we(ye||[],$e||[],le);(bt==null?void 0:bt.index)!==void 0&&(fe==null||fe(bt.index),st($e[bt.index])),Re($e)},[$e]),[We]}var Me=ke(16089),Le=(typeof navigator=="undefined"?"undefined":(0,vt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ce=Le,Ne=function($e,le,fe,Fe){var He=(0,ne.useRef)(!1),ye=(0,ne.useRef)(null);function Re(){clearTimeout(ye.current),He.current=!0,ye.current=setTimeout(function(){He.current=!1},50)}var ze=(0,ne.useRef)({top:$e,bottom:le,left:fe,right:Fe});return ze.current.top=$e,ze.current.bottom=le,ze.current.left=fe,ze.current.right=Fe,function(Ke,We){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,bt=Ke?We<0&&ze.current.left||We>0&&ze.current.right:We<0&&ze.current.top||We>0&&ze.current.bottom;return st&&bt?(clearTimeout(ye.current),He.current=!1):(!bt||He.current)&&Re(),!He.current&&bt}};function Te($e,le,fe,Fe,He,ye,Re){var ze=(0,ne.useRef)(0),Ke=(0,ne.useRef)(null),We=(0,ne.useRef)(null),st=(0,ne.useRef)(!1),bt=Ne(le,fe,Fe,He);function at(St,ft){if(Me.Z.cancel(Ke.current),!bt(!1,ft)){var dt=St;if(!dt._virtualHandled)dt._virtualHandled=!0;else return;ze.current+=ft,We.current=ft,Ce||dt.preventDefault(),Ke.current=(0,Me.Z)(function(){var Ft=st.current?10:1;Re(ze.current*Ft,!1),ze.current=0})}}function kt(St,ft){Re(ft,!0),Ce||St.preventDefault()}var Ht=(0,ne.useRef)(null),Ct=(0,ne.useRef)(null);function $t(St){if($e){Me.Z.cancel(Ct.current),Ct.current=(0,Me.Z)(function(){Ht.current=null},2);var ft=St.deltaX,dt=St.deltaY,Ft=St.shiftKey,zt=ft,Zt=dt;(Ht.current==="sx"||!Ht.current&&Ft&&dt&&!ft)&&(zt=dt,Zt=0,Ht.current="sx");var tr=Math.abs(zt),mr=Math.abs(Zt);Ht.current===null&&(Ht.current=ye&&tr>mr?"x":"y"),Ht.current==="y"?at(St,Zt):kt(St,zt)}}function Bt(St){$e&&(st.current=St.detail===We.current)}return[$t,Bt]}function De($e,le,fe,Fe){var He=ne.useMemo(function(){return[new Map,[]]},[$e,fe.id,Fe]),ye=(0,me.Z)(He,2),Re=ye[0],ze=ye[1],Ke=function(st){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:st,at=Re.get(st),kt=Re.get(bt);if(at===void 0||kt===void 0)for(var Ht=$e.length,Ct=ze.length;Ct<Ht;Ct+=1){var $t,Bt=$e[Ct],St=le(Bt);Re.set(St,Ct);var ft=($t=fe.get(St))!==null&&$t!==void 0?$t:Fe;if(ze[Ct]=(ze[Ct-1]||0)+ft,St===st&&(at=Ct),St===bt&&(kt=Ct),at!==void 0&&kt!==void 0)break}return{top:ze[at-1]||0,bottom:ze[kt]}};return Ke}var Ee=ke(67732),Pe=ke(83652),Be=function(){function $e(){(0,Ee.Z)(this,$e),(0,Ae.Z)(this,"maps",void 0),(0,Ae.Z)(this,"id",0),(0,Ae.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Pe.Z)($e,[{key:"set",value:function(fe,Fe){this.diffRecords.set(fe,this.maps[fe]),this.maps[fe]=Fe,this.id+=1}},{key:"get",value:function(fe){return this.maps[fe]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),$e}(),Ve=Be;function Ie($e){var le=parseFloat($e);return isNaN(le)?0:le}function Ze($e,le,fe){var Fe=ne.useState(0),He=(0,me.Z)(Fe,2),ye=He[0],Re=He[1],ze=(0,ne.useRef)(new Map),Ke=(0,ne.useRef)(new Ve),We=(0,ne.useRef)(0);function st(){We.current+=1}function bt(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;st();var Ht=function(){var Bt=!1;ze.current.forEach(function(St,ft){if(St&&St.offsetParent){var dt=St.offsetHeight,Ft=getComputedStyle(St),zt=Ft.marginTop,Zt=Ft.marginBottom,tr=Ie(zt),mr=Ie(Zt),Er=dt+tr+mr;Ke.current.get(ft)!==Er&&(Ke.current.set(ft,Er),Bt=!0)}}),Bt&&Re(function(St){return St+1})};if(kt)Ht();else{We.current+=1;var Ct=We.current;Promise.resolve().then(function(){Ct===We.current&&Ht()})}}function at(kt,Ht){var Ct=$e(kt),$t=ze.current.get(Ct);Ht?(ze.current.set(Ct,Ht),bt()):ze.current.delete(Ct),!$t!=!Ht&&(Ht?le==null||le(kt):fe==null||fe(kt))}return(0,ne.useEffect)(function(){return st},[]),[at,bt,Ke.current,ye]}var Qe=14/15;function tt($e,le,fe){var Fe=(0,ne.useRef)(!1),He=(0,ne.useRef)(0),ye=(0,ne.useRef)(0),Re=(0,ne.useRef)(null),ze=(0,ne.useRef)(null),Ke,We=function(kt){if(Fe.current){var Ht=Math.ceil(kt.touches[0].pageX),Ct=Math.ceil(kt.touches[0].pageY),$t=He.current-Ht,Bt=ye.current-Ct,St=Math.abs($t)>Math.abs(Bt);St?He.current=Ht:ye.current=Ct;var ft=fe(St,St?$t:Bt,!1,kt);ft&&kt.preventDefault(),clearInterval(ze.current),ft&&(ze.current=setInterval(function(){St?$t*=Qe:Bt*=Qe;var dt=Math.floor(St?$t:Bt);(!fe(St,dt,!0)||Math.abs(dt)<=.1)&&clearInterval(ze.current)},16))}},st=function(){Fe.current=!1,Ke()},bt=function(kt){Ke(),kt.touches.length===1&&!Fe.current&&(Fe.current=!0,He.current=Math.ceil(kt.touches[0].pageX),ye.current=Math.ceil(kt.touches[0].pageY),Re.current=kt.target,Re.current.addEventListener("touchmove",We,{passive:!1}),Re.current.addEventListener("touchend",st,{passive:!0}))};Ke=function(){Re.current&&(Re.current.removeEventListener("touchmove",We),Re.current.removeEventListener("touchend",st))},(0,pe.Z)(function(){return $e&&le.current.addEventListener("touchstart",bt,{passive:!0}),function(){var at;(at=le.current)===null||at===void 0||at.removeEventListener("touchstart",bt),Ke(),clearInterval(ze.current)}},[$e])}function it($e){return Math.floor(Math.pow($e,.5))}function ht($e,le){var fe="touches"in $e?$e.touches[0]:$e;return fe[le?"pageX":"pageY"]-window[le?"scrollX":"scrollY"]}function Ge($e,le,fe){ne.useEffect(function(){var Fe=le.current;if($e&&Fe){var He=!1,ye,Re,ze=function(){Me.Z.cancel(ye)},Ke=function at(){ze(),ye=(0,Me.Z)(function(){fe(Re),at()})},We=function(){He=!1,ze()},st=function(kt){if(!(kt.target.draggable||kt.button!==0)){var Ht=kt;Ht._virtualHandled||(Ht._virtualHandled=!0,He=!0)}},bt=function(kt){if(He){var Ht=ht(kt,!1),Ct=Fe.getBoundingClientRect(),$t=Ct.top,Bt=Ct.bottom;if(Ht<=$t){var St=$t-Ht;Re=-it(St),Ke()}else if(Ht>=Bt){var ft=Ht-Bt;Re=it(ft),Ke()}else ze()}};return Fe.addEventListener("mousedown",st),Fe.ownerDocument.addEventListener("mouseup",We),Fe.ownerDocument.addEventListener("mousemove",bt),Fe.ownerDocument.addEventListener("dragend",We),function(){Fe.removeEventListener("mousedown",st),Fe.ownerDocument.removeEventListener("mouseup",We),Fe.ownerDocument.removeEventListener("mousemove",bt),Fe.ownerDocument.removeEventListener("dragend",We),ze()}}},[$e])}var Xe=10;function ct($e,le,fe,Fe,He,ye,Re,ze){var Ke=ne.useRef(),We=ne.useState(null),st=(0,me.Z)(We,2),bt=st[0],at=st[1];return(0,pe.Z)(function(){if(bt&&bt.times<Xe){if(!$e.current){at(function(_n){return(0,x.Z)({},_n)});return}ye();var kt=bt.targetAlign,Ht=bt.originAlign,Ct=bt.index,$t=bt.offset,Bt=$e.current.clientHeight,St=!1,ft=kt,dt=null;if(Bt){for(var Ft=kt||Ht,zt=0,Zt=0,tr=0,mr=Math.min(le.length-1,Ct),Er=0;Er<=mr;Er+=1){var zr=He(le[Er]);Zt=zt;var jr=fe.get(zr);tr=Zt+(jr===void 0?Fe:jr),zt=tr}for(var Tr=Ft==="top"?$t:Bt-$t,Vr=mr;Vr>=0;Vr-=1){var sn=He(le[Vr]),vn=fe.get(sn);if(vn===void 0){St=!0;break}if(Tr-=vn,Tr<=0)break}switch(Ft){case"top":dt=Zt-$t;break;case"bottom":dt=tr-Bt+$t;break;default:{var en=$e.current.scrollTop,hn=en+Bt;Zt<en?ft="top":tr>hn&&(ft="bottom")}}dt!==null&&Re(dt),dt!==bt.lastTop&&(St=!0)}St&&at((0,x.Z)((0,x.Z)({},bt),{},{times:bt.times+1,targetAlign:ft,lastTop:dt}))}},[bt,$e.current]),function(kt){if(kt==null){ze();return}if(Me.Z.cancel(Ke.current),typeof kt=="number")Re(kt);else if(kt&&(0,vt.Z)(kt)==="object"){var Ht,Ct=kt.align;"index"in kt?Ht=kt.index:Ht=le.findIndex(function(St){return He(St)===kt.key});var $t=kt.offset,Bt=$t===void 0?0:$t;at({times:0,index:Ht,offset:Bt,originAlign:Ct})}}}var pt=ne.forwardRef(function($e,le){var fe=$e.prefixCls,Fe=$e.rtl,He=$e.scrollOffset,ye=$e.scrollRange,Re=$e.onStartMove,ze=$e.onStopMove,Ke=$e.onScroll,We=$e.horizontal,st=$e.spinSize,bt=$e.containerSize,at=$e.style,kt=$e.thumbStyle,Ht=$e.showScrollBar,Ct=ne.useState(!1),$t=(0,me.Z)(Ct,2),Bt=$t[0],St=$t[1],ft=ne.useState(null),dt=(0,me.Z)(ft,2),Ft=dt[0],zt=dt[1],Zt=ne.useState(null),tr=(0,me.Z)(Zt,2),mr=tr[0],Er=tr[1],zr=!Fe,jr=ne.useRef(),Tr=ne.useRef(),Vr=ne.useState(Ht),sn=(0,me.Z)(Vr,2),vn=sn[0],en=sn[1],hn=ne.useRef(),_n=function(){Ht===!0||Ht===!1||(clearTimeout(hn.current),en(!0),hn.current=setTimeout(function(){en(!1)},3e3))},tn=ye-bt||0,Ln=bt-st||0,Un=ne.useMemo(function(){if(He===0||tn===0)return 0;var Gt=He/tn;return Gt*Ln},[He,tn,Ln]),Vn=function(Et){Et.stopPropagation(),Et.preventDefault()},$r=ne.useRef({top:Un,dragging:Bt,pageY:Ft,startTop:mr});$r.current={top:Un,dragging:Bt,pageY:Ft,startTop:mr};var Yr=function(Et){St(!0),zt(ht(Et,We)),Er($r.current.top),Re(),Et.stopPropagation(),Et.preventDefault()};ne.useEffect(function(){var Gt=function(Lt){Lt.preventDefault()},Et=jr.current,It=Tr.current;return Et.addEventListener("touchstart",Gt,{passive:!1}),It.addEventListener("touchstart",Yr,{passive:!1}),function(){Et.removeEventListener("touchstart",Gt),It.removeEventListener("touchstart",Yr)}},[]);var Lr=ne.useRef();Lr.current=tn;var cn=ne.useRef();cn.current=Ln,ne.useEffect(function(){if(Bt){var Gt,Et=function(Lt){var Ut=$r.current,Qt=Ut.dragging,yr=Ut.pageY,cr=Ut.startTop;Me.Z.cancel(Gt);var vr=jr.current.getBoundingClientRect(),Dr=bt/(We?vr.width:vr.height);if(Qt){var Ir=(ht(Lt,We)-yr)*Dr,Ar=cr;!zr&&We?Ar-=Ir:Ar+=Ir;var qt=Lr.current,kr=cn.current,Xt=kr?Ar/kr:0,rr=Math.ceil(Xt*qt);rr=Math.max(rr,0),rr=Math.min(rr,qt),Gt=(0,Me.Z)(function(){Ke(rr,We)})}},It=function(){St(!1),ze()};return window.addEventListener("mousemove",Et,{passive:!0}),window.addEventListener("touchmove",Et,{passive:!0}),window.addEventListener("mouseup",It,{passive:!0}),window.addEventListener("touchend",It,{passive:!0}),function(){window.removeEventListener("mousemove",Et),window.removeEventListener("touchmove",Et),window.removeEventListener("mouseup",It),window.removeEventListener("touchend",It),Me.Z.cancel(Gt)}}},[Bt]),ne.useEffect(function(){return _n(),function(){clearTimeout(hn.current)}},[He]),ne.useImperativeHandle(le,function(){return{delayHidden:_n}});var Pr="".concat(fe,"-scrollbar"),Wr={position:"absolute",visibility:vn?null:"hidden"},mn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return We?(Object.assign(Wr,{height:8,left:0,right:0,bottom:0}),Object.assign(mn,(0,Ae.Z)({height:"100%",width:st},zr?"left":"right",Un))):(Object.assign(Wr,(0,Ae.Z)({width:8,top:0,bottom:0},zr?"right":"left",0)),Object.assign(mn,{width:"100%",height:st,top:Un})),ne.createElement("div",{ref:jr,className:ie()(Pr,(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},"".concat(Pr,"-horizontal"),We),"".concat(Pr,"-vertical"),!We),"".concat(Pr,"-visible"),vn)),style:(0,x.Z)((0,x.Z)({},Wr),at),onMouseDown:Vn,onMouseMove:_n},ne.createElement("div",{ref:Tr,className:ie()("".concat(Pr,"-thumb"),(0,Ae.Z)({},"".concat(Pr,"-thumb-moving"),Bt)),style:(0,x.Z)((0,x.Z)({},mn),kt),onMouseDown:Yr}))}),ut=pt,rt=20;function qe(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,fe=$e/le*$e;return isNaN(fe)&&(fe=0),fe=Math.max(fe,rt),Math.floor(fe)}var nt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],xt=[],yt={overflowY:"auto",overflowAnchor:"none"};function Rt($e,le){var fe=$e.prefixCls,Fe=fe===void 0?"rc-virtual-list":fe,He=$e.className,ye=$e.height,Re=$e.itemHeight,ze=$e.fullHeight,Ke=ze===void 0?!0:ze,We=$e.style,st=$e.data,bt=$e.children,at=$e.itemKey,kt=$e.virtual,Ht=$e.direction,Ct=$e.scrollWidth,$t=$e.component,Bt=$t===void 0?"div":$t,St=$e.onScroll,ft=$e.onVirtualScroll,dt=$e.onVisibleChange,Ft=$e.innerProps,zt=$e.extraRender,Zt=$e.styles,tr=$e.showScrollBar,mr=tr===void 0?"optional":tr,Er=(0,re.Z)($e,nt),zr=ne.useCallback(function(nn){return typeof at=="function"?at(nn):nn==null?void 0:nn[at]},[at]),jr=Ze(zr,null,null),Tr=(0,me.Z)(jr,4),Vr=Tr[0],sn=Tr[1],vn=Tr[2],en=Tr[3],hn=!!(kt!==!1&&ye&&Re),_n=ne.useMemo(function(){return Object.values(vn.maps).reduce(function(nn,pn){return nn+pn},0)},[vn.id,vn.maps]),tn=hn&&st&&(Math.max(Re*st.length,_n)>ye||!!Ct),Ln=Ht==="rtl",Un=ie()(Fe,(0,Ae.Z)({},"".concat(Fe,"-rtl"),Ln),He),Vn=st||xt,$r=(0,ne.useRef)(),Yr=(0,ne.useRef)(),Lr=(0,ne.useRef)(),cn=(0,ne.useState)(0),Pr=(0,me.Z)(cn,2),Wr=Pr[0],mn=Pr[1],Gt=(0,ne.useState)(0),Et=(0,me.Z)(Gt,2),It=Et[0],Dt=Et[1],Lt=(0,ne.useState)(!1),Ut=(0,me.Z)(Lt,2),Qt=Ut[0],yr=Ut[1],cr=function(){yr(!0)},vr=function(){yr(!1)},Dr={getKey:zr};function Ir(nn){mn(function(pn){var qn;typeof nn=="function"?qn=nn(pn):qn=nn;var li=kn(qn);return $r.current.scrollTop=li,li})}var Ar=(0,ne.useRef)({start:0,end:Vn.length}),qt=(0,ne.useRef)(),kr=be(Vn,zr),Xt=(0,me.Z)(kr,1),rr=Xt[0];qt.current=rr;var lr=ne.useMemo(function(){if(!hn)return{scrollHeight:void 0,start:0,end:Vn.length-1,offset:void 0};if(!tn){var nn;return{scrollHeight:((nn=Yr.current)===null||nn===void 0?void 0:nn.offsetHeight)||0,start:0,end:Vn.length-1,offset:void 0}}for(var pn=0,qn,li,ji,Li=Vn.length,Bi=0;Bi<Li;Bi+=1){var ni=Vn[Bi],ra=zr(ni),ca=vn.get(ra),Sn=pn+(ca===void 0?Re:ca);Sn>=Wr&&qn===void 0&&(qn=Bi,li=pn),Sn>Wr+ye&&ji===void 0&&(ji=Bi),pn=Sn}return qn===void 0&&(qn=0,li=0,ji=Math.ceil(ye/Re)),ji===void 0&&(ji=Vn.length-1),ji=Math.min(ji+1,Vn.length-1),{scrollHeight:pn,start:qn,end:ji,offset:li}},[tn,hn,Wr,Vn,en,ye]),or=lr.scrollHeight,_r=lr.start,ur=lr.end,Mr=lr.offset;Ar.current.start=_r,Ar.current.end=ur,ne.useLayoutEffect(function(){var nn=vn.getRecord();if(nn.size===1){var pn=Array.from(nn.keys())[0],qn=nn.get(pn),li=Vn[_r];if(li&&qn===void 0){var ji=zr(li);if(ji===pn){var Li=vn.get(pn),Bi=Li-Re;Ir(function(ni){return ni+Bi})}}}vn.resetRecord()},[or]);var Pt=ne.useState({width:0,height:ye}),Jt=(0,me.Z)(Pt,2),nr=Jt[0],pr=Jt[1],fr=function(pn){pr({width:pn.offsetWidth,height:pn.offsetHeight})},br=(0,ne.useRef)(),wr=(0,ne.useRef)(),Nr=ne.useMemo(function(){return qe(nr.width,Ct)},[nr.width,Ct]),Kr=ne.useMemo(function(){return qe(nr.height,or)},[nr.height,or]),Ur=or-ye,gn=(0,ne.useRef)(Ur);gn.current=Ur;function kn(nn){var pn=nn;return Number.isNaN(gn.current)||(pn=Math.min(pn,gn.current)),pn=Math.max(pn,0),pn}var Nn=Wr<=0,yn=Wr>=Ur,rn=It<=0,$n=It>=Ct,Tn=Ne(Nn,yn,rn,$n),Zn=function(){return{x:Ln?-It:It,y:Wr}},wn=(0,ne.useRef)(Zn()),Mn=(0,se.useEvent)(function(nn){if(ft){var pn=(0,x.Z)((0,x.Z)({},Zn()),nn);(wn.current.x!==pn.x||wn.current.y!==pn.y)&&(ft(pn),wn.current=pn)}});function Jn(nn,pn){var qn=nn;pn?((0,ae.flushSync)(function(){Dt(qn)}),Mn()):Ir(qn)}function zn(nn){var pn=nn.currentTarget.scrollTop;pn!==Wr&&Ir(pn),St==null||St(nn),Mn()}var hi=function(pn){var qn=pn,li=Ct?Ct-nr.width:0;return qn=Math.max(qn,0),qn=Math.min(qn,li),qn},Ei=(0,se.useEvent)(function(nn,pn){pn?((0,ae.flushSync)(function(){Dt(function(qn){var li=qn+(Ln?-nn:nn);return hi(li)})}),Mn()):Ir(function(qn){var li=qn+nn;return li})}),Rn=Te(hn,Nn,yn,rn,$n,!!Ct,Ei),Jr=(0,me.Z)(Rn,2),Xr=Jr[0],Hn=Jr[1];tt(hn,$r,function(nn,pn,qn,li){var ji=li;return Tn(nn,pn,qn)?!1:!ji||!ji._virtualHandled?(ji&&(ji._virtualHandled=!0),Xr({preventDefault:function(){},deltaX:nn?pn:0,deltaY:nn?0:pn}),!0):!1}),Ge(tn,$r,function(nn){Ir(function(pn){return pn+nn})}),(0,pe.Z)(function(){function nn(qn){var li=Nn&&qn.detail<0,ji=yn&&qn.detail>0;hn&&!li&&!ji&&qn.preventDefault()}var pn=$r.current;return pn.addEventListener("wheel",Xr,{passive:!1}),pn.addEventListener("DOMMouseScroll",Hn,{passive:!0}),pn.addEventListener("MozMousePixelScroll",nn,{passive:!1}),function(){pn.removeEventListener("wheel",Xr),pn.removeEventListener("DOMMouseScroll",Hn),pn.removeEventListener("MozMousePixelScroll",nn)}},[hn,Nn,yn]),(0,pe.Z)(function(){if(Ct){var nn=hi(It);Dt(nn),Mn({x:nn})}},[nr.width,Ct]);var Dn=function(){var pn,qn;(pn=br.current)===null||pn===void 0||pn.delayHidden(),(qn=wr.current)===null||qn===void 0||qn.delayHidden()},ri=ct($r,Vn,vn,Re,zr,function(){return sn(!0)},Ir,Dn);ne.useImperativeHandle(le,function(){return{nativeElement:Lr.current,getScrollInfo:Zn,scrollTo:function(pn){function qn(li){return li&&(0,vt.Z)(li)==="object"&&("left"in li||"top"in li)}qn(pn)?(pn.left!==void 0&&Dt(hi(pn.left)),ri(pn.top)):ri(pn)}}}),(0,pe.Z)(function(){if(dt){var nn=Vn.slice(_r,ur+1);dt(nn,Vn)}},[_r,ur,Vn]);var ai=De(Vn,zr,vn,Re),Qr=zt==null?void 0:zt({start:_r,end:ur,virtual:tn,offsetX:It,offsetY:Mr,rtl:Ln,getSize:ai}),qr=xe(Vn,_r,ur,Ct,It,Vr,bt,Dr),An=null;ye&&(An=(0,x.Z)((0,Ae.Z)({},Ke?"height":"maxHeight",ye),yt),hn&&(An.overflowY="hidden",Ct&&(An.overflowX="hidden"),Qt&&(An.pointerEvents="none")));var gi={};return Ln&&(gi.dir="rtl"),ne.createElement("div",(0,Ye.Z)({ref:Lr,style:(0,x.Z)((0,x.Z)({},We),{},{position:"relative"}),className:Un},gi,Er),ne.createElement(oe.Z,{onResize:fr},ne.createElement(Bt,{className:"".concat(Fe,"-holder"),style:An,ref:$r,onScroll:zn,onMouseEnter:Dn},ne.createElement(de,{prefixCls:Fe,height:or,offsetX:It,offsetY:Mr,scrollWidth:Ct,onInnerResize:sn,ref:Yr,innerProps:Ft,rtl:Ln,extra:Qr},qr))),tn&&or>ye&&ne.createElement(ut,{ref:br,prefixCls:Fe,scrollOffset:Wr,scrollRange:or,rtl:Ln,onScroll:Jn,onStartMove:cr,onStopMove:vr,spinSize:Kr,containerSize:nr.height,style:Zt==null?void 0:Zt.verticalScrollBar,thumbStyle:Zt==null?void 0:Zt.verticalScrollBarThumb,showScrollBar:mr}),tn&&Ct>nr.width&&ne.createElement(ut,{ref:wr,prefixCls:Fe,scrollOffset:It,scrollRange:Ct,rtl:Ln,onScroll:Jn,onStartMove:cr,onStopMove:vr,spinSize:Nr,containerSize:nr.width,horizontal:!0,style:Zt==null?void 0:Zt.horizontalScrollBar,thumbStyle:Zt==null?void 0:Zt.horizontalScrollBarThumb,showScrollBar:mr}))}var Ot=ne.forwardRef(Rt);Ot.displayName="List";var lt=Ot,Ue=lt},7062:function(gr,Wt,ke){var Ye=ke(19637),vt=ke(97573),x=[ke(96627)];gr.exports=Ye.createStore(vt,x)},96627:function(gr,Wt,ke){gr.exports=Ye;function Ye(){return ke(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(gr){return gr<10?"0"+gr:gr}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(gr){return rx_escapable.lastIndex=0,rx_escapable.test(gr)?'"'+gr.replace(rx_escapable,function(Wt){var ke=meta[Wt];return typeof ke=="string"?ke:"\\u"+("0000"+Wt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+gr+'"'}function str(gr,Wt){var ke,Ye,vt,x,Ae=gap,me,re=Wt[gr];switch(re&&typeof re=="object"&&typeof re.toJSON=="function"&&(re=re.toJSON(gr)),typeof rep=="function"&&(re=rep.call(Wt,gr,re)),typeof re){case"string":return quote(re);case"number":return isFinite(re)?String(re):"null";case"boolean":case"null":return String(re);case"object":if(!re)return"null";if(gap+=indent,me=[],Object.prototype.toString.apply(re)==="[object Array]"){for(x=re.length,ke=0;ke<x;ke+=1)me[ke]=str(ke,re)||"null";return vt=me.length===0?"[]":gap?`[
|
|
|
`+gap+me.join(`,
|
|
|
`+gap)+`
|
|
|
`+Ae+"]":"["+me.join(",")+"]",gap=Ae,vt}if(rep&&typeof rep=="object")for(x=rep.length,ke=0;ke<x;ke+=1)typeof rep[ke]=="string"&&(Ye=rep[ke],vt=str(Ye,re),vt&&me.push(quote(Ye)+(gap?": ":":")+vt));else for(Ye in re)Object.prototype.hasOwnProperty.call(re,Ye)&&(vt=str(Ye,re),vt&&me.push(quote(Ye)+(gap?": ":":")+vt));return vt=me.length===0?"{}":gap?`{
|
|
|
`+gap+me.join(`,
|
|
|
`+gap)+`
|
|
|
`+Ae+"}":"{"+me.join(",")+"}",gap=Ae,vt}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(gr,Wt,ke){var Ye;if(gap="",indent="",typeof ke=="number")for(Ye=0;Ye<ke;Ye+=1)indent+=" ";else typeof ke=="string"&&(indent=ke);if(rep=Wt,Wt&&typeof Wt!="function"&&(typeof Wt!="object"||typeof Wt.length!="number"))throw new Error("JSON.stringify");return str("",{"":gr})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(gr,Wt){var ke,Ye,vt=gr[Wt];if(vt&&typeof vt=="object")for(ke in vt)Object.prototype.hasOwnProperty.call(vt,ke)&&(Ye=walk(vt,ke),Ye!==void 0?vt[ke]=Ye:delete vt[ke]);return reviver.call(gr,Wt,vt)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(gr){return"\\u"+("0000"+gr.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(gr,Wt,ke){var Ye=ke(67039),vt=Ye.slice,x=Ye.pluck,Ae=Ye.each,me=Ye.bind,re=Ye.create,z=Ye.isList,ie=Ye.isFunction,oe=Ye.isObject;gr.exports={createStore:ne};var se={version:"2.0.12",enabled:!1,get:function(ae,ue){var de=this.storage.read(this._namespacePrefix+ae);return this._deserialize(de,ue)},set:function(ae,ue){return ue===void 0?this.remove(ae):(this.storage.write(this._namespacePrefix+ae,this._serialize(ue)),ue)},remove:function(ae){this.storage.remove(this._namespacePrefix+ae)},each:function(ae){var ue=this;this.storage.each(function(de,he){ae.call(ue,ue._deserialize(de),(he||"").replace(ue._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(ae){return this._namespacePrefix=="__storejs_"+ae+"_"},createStore:function(){return ne.apply(this,arguments)},addPlugin:function(ae){this._addPlugin(ae)},namespace:function(ae){return ne(this.storage,this.plugins,ae)}};function pe(){var ae=typeof console=="undefined"?null:console;if(ae){var ue=ae.warn?ae.warn:ae.log;ue.apply(ae,arguments)}}function ne(ae,ue,de){de||(de=""),ae&&!z(ae)&&(ae=[ae]),ue&&!z(ue)&&(ue=[ue]);var he=de?"__storejs_"+de+"_":"",xe=de?new RegExp("^"+he):null,Se=/^[a-zA-Z0-9_\-]*$/;if(!Se.test(de))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var we={_namespacePrefix:he,_namespaceRegexp:xe,_testStorage:function(Me){try{var Le="__storejs__test__";Me.write(Le,Le);var Ce=Me.read(Le)===Le;return Me.remove(Le),Ce}catch(Ne){return!1}},_assignPluginFnProp:function(Me,Le){var Ce=this[Le];this[Le]=function(){var Te=vt(arguments,0),De=this;function Ee(){if(Ce)return Ae(arguments,function(Be,Ve){Te[Ve]=Be}),Ce.apply(De,Te)}var Pe=[Ee].concat(Te);return Me.apply(De,Pe)}},_serialize:function(Me){return JSON.stringify(Me)},_deserialize:function(Me,Le){if(!Me)return Le;var Ce="";try{Ce=JSON.parse(Me)}catch(Ne){Ce=Me}return Ce!==void 0?Ce:Le},_addStorage:function(Me){this.enabled||this._testStorage(Me)&&(this.storage=Me,this.enabled=!0)},_addPlugin:function(Me){var Le=this;if(z(Me)){Ae(Me,function(Te){Le._addPlugin(Te)});return}var Ce=x(this.plugins,function(Te){return Me===Te});if(!Ce){if(this.plugins.push(Me),!ie(Me))throw new Error("Plugins must be function values that return objects");var Ne=Me.call(this);if(!oe(Ne))throw new Error("Plugins must return an object of function properties");Ae(Ne,function(Te,De){if(!ie(Te))throw new Error("Bad plugin property: "+De+" from plugin "+Me.name+". Plugins should only return functions.");Le._assignPluginFnProp(Te,De)})}},addStorage:function(Me){pe("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(Me)}},be=re(we,se,{plugins:[]});return be.raw={},Ae(be,function(Me,Le){ie(Me)&&(be.raw[Le]=me(be,Me))}),Ae(ae,function(Me){be._addStorage(Me)}),Ae(ue,function(Me){be._addPlugin(Me)}),be}},67039:function(gr,Wt,ke){var Ye=me(),vt=re(),x=z(),Ae=typeof window!="undefined"?window:ke.g;gr.exports={assign:Ye,create:vt,trim:x,bind:ie,slice:oe,each:se,map:pe,pluck:ne,isList:ae,isFunction:ue,isObject:de,Global:Ae};function me(){return Object.assign?Object.assign:function(xe,Se,we,be){for(var Me=1;Me<arguments.length;Me++)se(Object(arguments[Me]),function(Le,Ce){xe[Ce]=Le});return xe}}function re(){if(Object.create)return function(Se,we,be,Me){var Le=oe(arguments,1);return Ye.apply(this,[Object.create(Se)].concat(Le))};{let xe=function(){};var he=xe;return function(we,be,Me,Le){var Ce=oe(arguments,1);return xe.prototype=we,Ye.apply(this,[new xe].concat(Ce))}}}function z(){return String.prototype.trim?function(xe){return String.prototype.trim.call(xe)}:function(xe){return xe.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function ie(he,xe){return function(){return xe.apply(he,Array.prototype.slice.call(arguments,0))}}function oe(he,xe){return Array.prototype.slice.call(he,xe||0)}function se(he,xe){ne(he,function(Se,we){return xe(Se,we),!1})}function pe(he,xe){var Se=ae(he)?[]:{};return ne(he,function(we,be){return Se[be]=xe(we,be),!1}),Se}function ne(he,xe){if(ae(he)){for(var Se=0;Se<he.length;Se++)if(xe(he[Se],Se))return he[Se]}else for(var we in he)if(he.hasOwnProperty(we)&&xe(he[we],we))return he[we]}function ae(he){return he!=null&&typeof he!="function"&&typeof he.length=="number"}function ue(he){return he&&{}.toString.call(he)==="[object Function]"}function de(he){return he&&{}.toString.call(he)==="[object Object]"}},97573:function(gr,Wt,ke){gr.exports=[ke(52496),ke(16436),ke(76673),ke(35701),ke(65578),ke(65300)]},35701:function(gr,Wt,ke){var Ye=ke(67039),vt=Ye.Global,x=Ye.trim;gr.exports={name:"cookieStorage",read:me,write:z,each:re,remove:ie,clearAll:oe};var Ae=vt.document;function me(pe){if(!pe||!se(pe))return null;var ne="(?:^|.*;\\s*)"+escape(pe).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Ae.cookie.replace(new RegExp(ne),"$1"))}function re(pe){for(var ne=Ae.cookie.split(/; ?/g),ae=ne.length-1;ae>=0;ae--)if(x(ne[ae])){var ue=ne[ae].split("="),de=unescape(ue[0]),he=unescape(ue[1]);pe(he,de)}}function z(pe,ne){pe&&(Ae.cookie=escape(pe)+"="+escape(ne)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function ie(pe){!pe||!se(pe)||(Ae.cookie=escape(pe)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function oe(){re(function(pe,ne){ie(ne)})}function se(pe){return new RegExp("(?:^|;\\s*)"+escape(pe).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Ae.cookie)}},52496:function(gr,Wt,ke){var Ye=ke(67039),vt=Ye.Global;gr.exports={name:"localStorage",read:Ae,write:me,each:re,remove:z,clearAll:ie};function x(){return vt.localStorage}function Ae(oe){return x().getItem(oe)}function me(oe,se){return x().setItem(oe,se)}function re(oe){for(var se=x().length-1;se>=0;se--){var pe=x().key(se);oe(Ae(pe),pe)}}function z(oe){return x().removeItem(oe)}function ie(){return x().clear()}},65300:function(gr){gr.exports={name:"memoryStorage",read:ke,write:Ye,each:vt,remove:x,clearAll:Ae};var Wt={};function ke(me){return Wt[me]}function Ye(me,re){Wt[me]=re}function vt(me){for(var re in Wt)Wt.hasOwnProperty(re)&&me(Wt[re],re)}function x(me){delete Wt[me]}function Ae(me){Wt={}}},16436:function(gr,Wt,ke){var Ye=ke(67039),vt=Ye.Global;gr.exports={name:"oldFF-globalStorage",read:Ae,write:me,each:re,remove:z,clearAll:ie};var x=vt.globalStorage;function Ae(oe){return x[oe]}function me(oe,se){x[oe]=se}function re(oe){for(var se=x.length-1;se>=0;se--){var pe=x.key(se);oe(x[pe],pe)}}function z(oe){return x.removeItem(oe)}function ie(){re(function(oe,se){delete x[oe]})}},76673:function(gr,Wt,ke){var Ye=ke(67039),vt=Ye.Global;gr.exports={name:"oldIE-userDataStorage",write:z,read:ie,each:oe,remove:se,clearAll:pe};var x="storejs",Ae=vt.document,me=ue(),re=(vt.navigator?vt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function z(de,he){if(!re){var xe=ae(de);me(function(Se){Se.setAttribute(xe,he),Se.save(x)})}}function ie(de){if(!re){var he=ae(de),xe=null;return me(function(Se){xe=Se.getAttribute(he)}),xe}}function oe(de){me(function(he){for(var xe=he.XMLDocument.documentElement.attributes,Se=xe.length-1;Se>=0;Se--){var we=xe[Se];de(he.getAttribute(we.name),we.name)}})}function se(de){var he=ae(de);me(function(xe){xe.removeAttribute(he),xe.save(x)})}function pe(){me(function(de){var he=de.XMLDocument.documentElement.attributes;de.load(x);for(var xe=he.length-1;xe>=0;xe--)de.removeAttribute(he[xe].name);de.save(x)})}var ne=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ae(de){return de.replace(/^\d/,"___$&").replace(ne,"___")}function ue(){if(!Ae||!Ae.documentElement||!Ae.documentElement.addBehavior)return null;var de="script",he,xe,Se;try{xe=new ActiveXObject("htmlfile"),xe.open(),xe.write("<"+de+">document.w=window</"+de+'><iframe src="/favicon.ico"></iframe>'),xe.close(),he=xe.w.frames[0].document,Se=he.createElement("div")}catch(we){Se=Ae.createElement("div"),he=Ae.body}return function(we){var be=[].slice.call(arguments,0);be.unshift(Se),he.appendChild(Se),Se.addBehavior("#default#userData"),Se.load(x),we.apply(this,be),he.removeChild(Se)}}},65578:function(gr,Wt,ke){var Ye=ke(67039),vt=Ye.Global;gr.exports={name:"sessionStorage",read:Ae,write:me,each:re,remove:z,clearAll:ie};function x(){return vt.sessionStorage}function Ae(oe){return x().getItem(oe)}function me(oe,se){return x().setItem(oe,se)}function re(oe){for(var se=x().length-1;se>=0;se--){var pe=x().key(se);oe(Ae(pe),pe)}}function z(oe){return x().removeItem(oe)}function ie(){return x().clear()}},48136:function(gr,Wt,ke){"use strict";var Ye=Object.defineProperty,vt=Object.defineProperties,x=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,z=(a,y,b)=>y in a?Ye(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,ie=(a,y)=>{for(var b in y||(y={}))me.call(y,b)&&z(a,b,y[b]);if(Ae)for(var b of Ae(y))re.call(y,b)&&z(a,b,y[b]);return a},oe=(a,y)=>vt(a,x(y)),se=a=>typeof a=="symbol"?a:a+"",pe=(a,y)=>{var b={};for(var ee in a)me.call(a,ee)&&y.indexOf(ee)<0&&(b[ee]=a[ee]);if(a!=null&&Ae)for(var ee of Ae(a))y.indexOf(ee)<0&&re.call(a,ee)&&(b[ee]=a[ee]);return b};function ne(a){return Array.isArray(a)}var ae={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 ue(){return"window"in globalThis&&"document"in globalThis}function de(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function he(){return typeof navigator.vibrate=="function"}function xe(){var a,y;if(!ue())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 Se(){if(!ue())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 we(){return HTMLElement.prototype.hasOwnProperty("popover")}var be={strings:ae,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return be._locale||(be._locale=ue()?navigator.language.slice(0,5):"en-US"),be._locale},set locale(a){be._locale=a,be._numberFormatter=void 0,be.dirty=!0},get numberFormatter(){return be._numberFormatter||(be._numberFormatter=new Intl.NumberFormat(be.locale)),be._numberFormatter},merge(a,y){if(typeof a=="string"&&y)be.strings[a]=ie(ie({},be.strings[a]),y),be.dirty=!0;else for(const b of Object.keys(a))be.merge(b,a[b])},get dirty(){return be._dirty},set dirty(a){be._dirty||be._dirty===a||(be._dirty=!0,setTimeout(()=>{be._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return be._subscribers.push(a),be._subscribers.length-1},unsubscribe(a){a<0||a>=be._subscribers.length||(be._subscribers[a]=void 0)},update(a){let y=a.querySelectorAll("[data-l10n-tooltip]");for(const b of y){const ee=b.getAttribute("data-l10n-tooltip");if(ee){const ce=Me(ee);ce&&b.setAttribute("data-tooltip",ce)}}y=a.querySelectorAll("[data-l10n-arial-label]");for(const b of y){const ee=b.getAttribute("data-l10n-arial-label");if(ee){const ce=Me(ee);ce&&b.setAttribute("aria-label",ce)}}}};function Me(a,...y){if(a===void 0)return;let b="";const ee=be.locale;be.strings[ee]&&(b=be.strings[ee][a]);const ce=ee.slice(0,2);if(!b&&be.strings[ce]&&(b=be.strings[ce][a]),b||(b=be.strings.en[a]),!b)return;const _e=/(%@|%([0-9]+)\$@)/g;let je=_e.exec(b),et=0;for(;je;){if(y[et++]){const gt=je[2]?parseInt(je[2],10)-1:et-1;let wt=y[gt];typeof wt=="number"&&(wt=be.numberFormatter.format(wt)),b=b.replace(je[1],wt)}je=_e.exec(b)}return b=b.replace(/%%/g,"%"),b}var Le={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},Ce={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},Ne={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"},Te={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"},De={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"},Ee={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 Pe(a){var y,b,ee,ce,_e,je;const et=a.split("!");let ot,gt,wt,jt=255,Vt=255,ar=255,dr=-1;const Zr=et.length>0&&et[0].startsWith("-");Zr&&(et[0]=et[0].slice(1));for(let Kn=0;Kn<et.length;Kn++){ot=jt,gt=Vt,wt=ar;const Hr=(y=et[Kn].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],fn=Hr==null?void 0:Hr.toLowerCase(),Yn=Hr&&(je=(_e=(ce=(ee=(b=Te[fn])!=null?b:Te[De[Hr]])!=null?ee:Ce[Hr])!=null?ce:Ee[Hr])!=null?_e:Le[Hr])!=null?je:et[Kn].trim();let xn=Yn.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(xn!=null&&xn[1]&&xn[2]&&xn[3])jt=Math.max(0,Math.min(255,Number.parseInt(xn[1],16))),Vt=Math.max(0,Math.min(255,Number.parseInt(xn[2],16))),ar=Math.max(0,Math.min(255,Number.parseInt(xn[3],16)));else if(xn=Yn.match(/^#([\da-f]{3})$/i),xn!=null&&xn[1]){const wi=Number.parseInt(xn[1][0],16),Ri=Number.parseInt(xn[1][1],16),Ai=Number.parseInt(xn[1][2],16);jt=Math.max(0,Math.min(255,wi*16+wi)),Vt=Math.max(0,Math.min(255,Ri*16+Ri)),ar=Math.max(0,Math.min(255,Ai*16+Ai))}else if(xn=Yn.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),xn!=null&&xn[1]&&xn[2]&&xn[3])jt=Math.max(0,Math.min(255,Number.parseInt(xn[1]))),Vt=Math.max(0,Math.min(255,Number.parseInt(xn[2]))),ar=Math.max(0,Math.min(255,Number.parseInt(xn[3])));else return;dr>=0&&(jt=(1-dr)*jt+dr*ot,Vt=(1-dr)*Vt+dr*gt,ar=(1-dr)*ar+dr*wt,dr=-1),Kn+1<et.length&&(dr=Math.max(0,Math.min(100,Number.parseInt(et[++Kn])))/100)}return dr>=0&&(jt=dr*jt+(1-dr)*ot,Vt=dr*Vt+(1-dr)*gt,ar=dr*ar+(1-dr)*wt),Zr&&(jt=255-jt,Vt=255-Vt,ar=255-ar),"#"+("00"+Math.round(jt).toString(16)).slice(-2)+("00"+Math.round(Vt).toString(16)).slice(-2)+("00"+Math.round(ar).toString(16)).slice(-2)}function Be(a){var y,b;return a=a.trim(),(b=(y=Ne[a.toLowerCase()])!=null?y:Ne[De[a]])!=null?b:Pe(a)}function Ve(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 Ie(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 Ze(a){let[y,b,ee]=[a.h,a.s,a.l];y=(y+360)%360/60,ee=Math.max(0,Math.min(ee,1)),b=Math.max(0,Math.min(b,1));const ce=ee<=.5?ee*(b+1):ee+b-ee*b,_e=ee*2-ce;return{r:Math.round(255*Ie(_e,ce,y+2)),g:Math.round(255*Ie(_e,ce,y)),b:Math.round(255*Ie(_e,ce,y-2))}}function Qe(a){return a<0?0:a>255?255:Math.round(a)}function tt(a){const{r:y,g:b,b:ee}=a;let ce=((1<<24)+(Qe(y)<<16)+(Qe(b)<<8)+Qe(ee)).toString(16).slice(1);return ce[0]===ce[1]&&ce[2]===ce[3]&&ce[4]===ce[5]&&ce[6]===ce[7]&&(ce=ce[0]+ce[2]+ce[4]),"#"+ce}function it(a){let{r:y,g:b,b:ee}=a;y=y/255,b=b/255,ee=ee/255;const ce=Math.min(y,b,ee),_e=Math.max(y,b,ee),je=_e-ce;let et,ot;_e===ce?et=0:y===_e?et=(b-ee)/je:b===_e?et=2+(ee-y)/je:ee===_e&&(et=4+(y-b)/je),et=Math.min(et*60,360),et<0&&(et+=360);const gt=(ce+_e)/2;return _e===ce?ot=0:gt<=.5?ot=je/(_e+ce):ot=je/(2-_e-ce),{h:et,s:ot,l:gt}}function ht(a){let y=Ve(a);if(!y)return a;let{h:b,s:ee,l:ce}=it(y);return ee+=.1,ce-=.1,tt(Ze({h:b,s:ee,l:ce}))}var Ge={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},Xe={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},ct=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function pt(a,y,b){if(!/[A-Za-z\d]/.test(a)||(b==="up"&&(b=void 0),!y&&!b))return a;const ee=a.codePointAt(0);if(ee===void 0)return a;for(const ce of ct)if((!y||ce.variant===y)&&(!b||ce.style===b)&&ee>=ce.offset&&ee<ce.offset+ce.len){const _e=ce.start+ee-ce.offset;return String.fromCodePoint(Xe[_e]||_e)}return a}function ut(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in Xe)if(Xe[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of ct)if(a>=b.start&&a<b.start+b.len)return{char:String.fromCodePoint(a-b.start+b.offset),variant:b.variant,style:b.style};return{char:String.fromCodePoint(a)}}function rt(a){var y;let b="";for(const ee of a){if("{}<>[]$&#^_%:'\u02DC".includes(ee)){b+=ee;continue}const ce=(y=ee.codePointAt(0))!=null?y:0;let _e=Ge[ce];if(_e)_e.startsWith("\\")?b+=_e+" ":b+=_e;else{const{char:je,variant:et,style:ot}=ut(ce);switch(_e=je,et){case"double-struck":_e=`\\mathbb{${_e}}`;break;case"fraktur":_e=`\\mathfrak{${_e}}`;break;case"script":_e=`\\mathscr{${_e}}`;break;case"sans-serif":_e=`\\mathsf{${_e}}`;break;case"monospace":_e=`\\mathtt{${_e}}`;break;case"calligraphic":_e=`\\mathcal{${_e}}`;break}switch(ot){case"bold":_e=`\\mathbf{${_e}}`;break;case"italic":_e=`\\mathit{${_e}}`;break;case"bolditalic":_e=`\\mathbfit{${_e}}`;break}b+=_e}}return b}function qe(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var nt={},xt=ie({},Ge),yt={},Rt={},Ot={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}"},lt={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}},Ue={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}},$e={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:Ue},"amsmath.sty":{package:lt,primitive:!0},"texvc.sty":{package:Ot,primitive:!1}},le={" ":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},fe=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,Fe,He;Se()?(Fe=new RegExp("\\p{Letter}","u"),He=new RegExp("[0-9\\p{Letter}]","u")):(Fe=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,He=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function ye(a,y,b="mord",ee){y!==void 0&&(nt[a]={definitionType:"symbol",type:b,variant:ee,codepoint:y},xt[y]||(xt[y]=a))}function Re(a,y,b){if(typeof a=="string"){for(let ee=0;ee<a.length;ee++){const ce=a.charAt(ee);ye(ce,ce.codePointAt(0))}return}for(const[ee,ce,_e,je]of a)ye(ee,ce,_e!=null?_e:y,je!=null?je:b)}function ze(a,y){for(let b=a;b<=y;b++)ye(String.fromCodePoint(b),b)}function Ke(a){var y;return(y=Rt[a])!=null?y:null}function We(a,y){var b,ee;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ce=[];for(const je in yt)je.startsWith(y)&&!yt[je].infix&&ce.push({match:je,frequency:(b=yt[je].frequency)!=null?b:0});for(const je in nt)je.startsWith(y)&&ce.push({match:je,frequency:(ee=nt[je].frequency)!=null?ee:0});const _e=y.substring(1);for(const je of Object.keys(a.options.macros))je.startsWith(_e)&&ce.push({match:"\\"+je,frequency:0});return ce.sort((je,et)=>{var ot,gt;return je.frequency===et.frequency?je.match.length===et.match.length?je.match<et.match?-1:1:je.match.length-et.match.length:((ot=et.frequency)!=null?ot:0)-((gt=je.frequency)!=null?gt:0)}),ce.map(je=>je.match)}function st(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function bt(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:st(b[0].slice(1))});for(let ee=1;ee<=b.length;ee++)y.push(...bt(b[ee]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:st(b[0].slice(1))});for(let ee=1;ee<=b.length;ee++)y.push(...bt(b[ee]))}return y}function at(a){if(!a)return"";let y="",b=!0;for(const ee of a)typeof ee.value=="string"?y+=ee.value:b=!1;return b?y:""}function kt(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const ee of a)Rt[ee]=b}function Ht(a,y,b){typeof a=="string"&&(a=[a]);const ce={tabular:!0,params:bt(y),createAtom:b};for(const _e of a)Rt[_e]=ce}function Ct(a,y,b){var ee,ce;b||(b={});const _e={definitionType:"function",params:bt(y),ifMode:b.ifMode,isFunction:(ee=b.isFunction)!=null?ee:!1,applyMode:b.applyMode,infix:(ce=b.infix)!=null?ce:!1,parse:b.parse,createAtom:b.createAtom,applyStyle:b.applyStyle,serialize:b.serialize,render:b.render};if(typeof a=="string")yt["\\"+a]=_e;else for(const je of a)yt["\\"+je]=_e}var $t;function Bt(a){return $t||($t=ft($e)),a?ft(ie(ie({},$t),a)):$t}function St(a,y){var b,ee,ce,_e;if(typeof a=="string"){let je=0;const et=a;return/(^|[^\\])#1/.test(et)&&(je=1),/(^|[^\\])#2/.test(et)&&(je=2),/(^|[^\\])#3/.test(et)&&(je=3),/(^|[^\\])#4/.test(et)&&(je=4),/(^|[^\\])#5/.test(et)&&(je=5),/(^|[^\\])#6/.test(et)&&(je=6),/(^|[^\\])#7/.test(et)&&(je=7),/(^|[^\\])#8/.test(et)&&(je=8),/(^|[^\\])#9/.test(et)&&(je=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(ee=y==null?void 0:y.captureSelection)!=null?ee:!0,args:je,def:et}}return ie({expand:(ce=y==null?void 0:y.expand)!=null?ce:!0,captureSelection:(_e=y==null?void 0:y.captureSelection)!=null?_e:!0,args:0},a)}function ft(a){if(!a)return{};const y={};for(const b of Object.keys(a)){const ee=a[b];if(ee==null)delete y[b];else if(typeof ee=="object"&&"package"in ee)for(const ce of Object.keys(ee.package))y[ce]=St(ee.package[ce],{expand:!ee.primitive,captureSelection:ee.captureSelection});else y[b]=St(ee)}return y}function dt(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=yt[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=nt[a]:le[a]&&(b={definitionType:"symbol",type:"mord",codepoint:le[a]})}else if(y==="math"){if(b=nt[a],!b&&a.length===1){const ee=zt("math",a.codePointAt(0));return ee.startsWith("\\")?oe(ie({},dt(ee,"math")),{command:ee}):null}}else le[a]?b={definitionType:"symbol",type:"mord",codepoint:le[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function Ft(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function zt(a,y){if(y===void 0)return"";if(a==="math"&&xt[y])return xt[y];if(a==="text"){const b=Object.keys(le).find(ee=>le[ee]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var Zt=[0,.68889,0,0,.72222],tr=[0,.68889,0,0,.66667],mr=[0,.68889,0,0,.77778],Er=[0,.68889,0,0,.61111],zr=[.16667,.68889,0,0,.77778],jr=[0,.68889,0,0,.55556],Tr=[0,0,0,0,.25],Vr=[0,.825,0,0,2.33334],sn=[0,.9,0,0,2.33334],vn=[0,.68889,0,0,.54028],en=[-.03598,.46402,0,0,.5],hn=[-.13313,.36687,0,0,1],_n=[.01354,.52239,0,0,1],tn=[.01354,.52239,0,0,1.11111],Ln=[0,.54986,0,0,1],Un=[0,.69224,0,0,.5],Vn=[0,.43056,0,0,1],$r=[.08198,.58198,0,0,.77778],Yr=[.19444,.69224,0,0,.41667],Lr=[.1808,.675,0,0,1],cn=[.19444,.69224,0,0,.83334],Pr=[.13667,.63667,0,0,1],Wr=[-.064,.437,0,0,1.334],mn=[.08167,.58167,0,0,.77778],Gt=[0,.69224,0,0,.72222],Et=[0,.69224,0,0,.66667],It=[-.13313,.36687,0,0,.77778],Dt=[.06062,.54986,0,0,.77778],Lt=[0,.69224,0,0,.77778],Ut=[.25583,.75583,0,0,.77778],Qt=[.25142,.75726,0,0,.77778],yr=[.20576,.70576,0,0,.77778],cr=[.30274,.79383,0,0,.77778],vr=[.22958,.72958,0,0,.77778],Dr=[.1808,.675,0,0,.77778],Ir=[.13667,.63667,0,0,.77778],Ar=[.13597,.63597,0,0,.77778],qt=[.03517,.54986,0,0,.77778],kr=[0,.675,0,0,.77778],Xt=[.19444,.69224,0,0,.61111],rr=[0,.54986,0,0,.76042],lr=[0,.54986,0,0,.66667],or=[.0391,.5391,0,0,.77778],_r=[.03517,.54986,0,0,1.33334],ur=[.38569,.88569,0,0,.77778],Mr=[.23222,.74111,0,0,.77778],Pt=[.19444,.69224,0,0,.77778],Jt=[0,.37788,0,0,.5],nr=[0,.54986,0,0,.72222],pr=[0,.69224,0,0,.83334],fr=[.11111,.69224,0,0,.66667],br=[.26167,.75726,0,0,.77778],wr=[.48256,.98256,0,0,.77778],Nr=[.28481,.79383,0,0,.77778],Kr=[.08167,.58167,0,0,.22222],Ur=[.08167,.58167,0,0,.38889],gn=[0,.43056,.04028,0,.66667],kn=[.41951,.91951,0,0,.77778],Nn=[.24982,.74947,0,0,.38865],yn=[.08319,.58283,0,0,.75623],rn=[0,.10803,0,0,.27764],$n=[0,.47534,0,0,.50181],Tn=[.18906,.47534,0,0,.50181],Zn=[0,.69141,0,0,.50181],wn=[.24982,.74947,0,0,.27764],Mn=[0,.69141,0,0,.21471],Jn=[.25,.75,0,0,.44722],zn=[0,.64444,0,0,.575],hi=[.08556,.58556,0,0,.89444],Ei=[0,.69444,0,0,.89444],Rn=[0,.68611,0,0,.9],Jr=[0,.68611,0,0,.86944],Xr=[.25,.75,0,0,.575],Hn=[.25,.75,0,0,.31944],Dn=[0,.69444,0,0,.63889],ri=[0,.69444,0,0,.31944],ai=[0,.44444,0,0,.63889],Qr=[0,.44444,0,0,.51111],qr=[0,.69444,0,0,.575],An=[.13333,.63333,0,0,.89444],gi=[0,.44444,0,0,.31944],nn=[0,.69444,0,0,.86944],pn=[0,.68611,0,0,.69166],qn=[0,.68611,0,0,.83055],li=[0,.68611,0,0,.89444],ji=[0,.69444,0,0,.60278],Li=[.19444,.69444,0,0,.51111],Bi=[0,.69444,0,0,.83055],ni=[-.10889,.39111,0,0,1.14999],ra=[.19444,.69444,0,0,.575],ca=[.19444,.69444,0,0,1.14999],Sn=[.19444,.69444,0,0,.70277],Cn=[.05556,.75,0,0,.575],bn=[0,.68611,0,0,.95833],Wn=[.08556,.58556,0,0,.76666],Ki=[-.02639,.47361,0,0,.575],qi=[0,.44444,0,0,.89444],oa=[0,.55556,0,0,.76666],na=[-.10889,.39111,0,0,.89444],Xi=[.00222,.50222,0,0,.89444],ba=[.19667,.69667,0,0,.89444],Na=[.08556,.58556,0,0,1.14999],Ia=[0,.69444,0,0,.70277],yo=[-.02778,.47222,0,0,.575],Oi=[.25,.75,0,0,.51111],Fi=[-.13889,.36111,0,0,1.14999],ka=[.19444,.69444,0,0,1.02222],Vi=[.12963,.69444,0,0,.89444],ia=[.19444,.69444,0,0,.44722],da=[0,.64444,.13167,0,.59111],sa=[.19444,.64444,.13167,0,.59111],ui=[0,.68611,.17208,0,.8961],Di=[.19444,.44444,.105,0,.53222],Mi=[0,.44444,.085,0,.82666],mi=[0,.69444,.06709,0,.59111],ea=[0,.69444,.12945,0,.35555],Qi=[0,.69444,0,0,.94888],Ka=[0,.69444,.11472,0,.59111],Ya=[0,.68611,.10778,0,.88555],Ha=[0,.69444,.07939,0,.62055],oo=[0,.69444,.12417,0,.30667],ha=[0,.64444,.13556,0,.51111],pa=[.19444,.64444,.13556,0,.51111],eo=[0,.68333,.16389,0,.74333],to=[.19444,.43056,.08847,0,.46],bo=[0,.43056,.07514,0,.71555],ro=[0,.69444,.06646,0,.51111],pl=[0,.69444,0,0,.83129],ks=[0,.69444,.1225,0,.51111],Ts=[0,.68333,.09403,0,.76666],os=[0,.68333,.11111,0,.76666],Tl=[0,.69444,.06961,0,.51444],As=[0,.69444,0,0,.27778],Ro=[.25,.75,0,0,.38889],So=[0,.64444,0,0,.5],zs=[0,.69444,0,0,.77778],Gs=[0,.68333,0,0,.75],Xs=[0,.68333,0,0,.77778],Al=[0,.68333,0,0,.68056],ol=[0,.68333,0,0,.72222],ss=[.25,.75,0,0,.5],es=[.25,.75,0,0,.27778],ja=[0,.69444,0,0,.5],Ys=[0,.69444,0,0,.55556],Ol=[0,.43056,0,0,.44445],Ks=[0,.43056,0,0,.5],va=[.19444,.43056,0,0,.55556],ua=[0,.43056,0,0,.55556],Wa=[.08333,.58333,0,0,.77778],uo=[0,.43056,0,0,.27778],Ja=[0,.66786,0,0,.27778],Bo=[0,.69444,0,0,.75],Ho=[0,.66786,0,0,.5],fs=[0,.68333,0,0,.625],Wo=[.19444,.69444,0,0,.44445],Rs=[0,.69444,0,0,.72222],Os=[.19444,.69444,0,0,.5],Zo=[.19444,.69444,0,0,1],vc=[.011,.511,0,0,1.126],ml=[.19444,.69444,0,0,.61111],gl=[.05556,.75,0,0,.5],nc=[0,.68333,0,0,.83334],Ul=[.0391,.5391,0,0,.66667],Dl=[-.05555,.44445,0,0,.5],Jc=[0,.43056,0,0,.77778],sl=[0,.55556,0,0,.66667],ic=[-.03625,.46375,0,0,.77778],ll=[-.01688,.48312,0,0,.77778],vl=[.0391,.5391,0,0,1],Oa=[0,.69444,0,0,.61111],Ba=[-.03472,.46528,0,0,.5],Za=[.25,.75,0,0,.44445],hs=[-.14236,.35764,0,0,1],Uo=[.244,.744,0,0,.412],Hs=[.19444,.69444,0,0,.88889],ls=[.12963,.69444,0,0,.77778],No=[.19444,.69444,0,0,.38889],Js=[.011,.511,0,0,1.638],Qs=[.19444,.69444,0,0,0],el=[0,.44444,0,0,.575],Il=[.19444,.44444,0,0,.575],Qc=[0,.68611,0,0,.75555],yc=[0,.69444,0,0,.66759],Gu=[0,.68611,0,0,.80555],xu=[0,.68611,.08229,0,.98229],$c=[0,.68611,0,0,.76666],Ad=[0,.44444,0,0,.58472],qc=[.19444,.44444,0,0,.6118],zc=[.19444,.43056,0,0,.5],wu=[0,.68333,.02778,.08334,.76278],Su=[0,.68333,.08125,.05556,.83125],ac=[0,.43056,0,.05556,.48472],eu=[.19444,.43056,0,.08334,.51702],Cu=[.25,.75,0,0,.42778],ts=[0,.69444,0,0,.55],Pl=[0,.69444,0,0,.73334],oc=[0,.69444,0,0,.79445],Xu=[0,.69444,0,0,.51945],tu=[0,.69444,0,0,.70278],ru=[0,.69444,0,0,.76389],bc=[.25,.75,0,0,.34306],sc=[0,.69444,0,0,.56111],Od=[0,.69444,0,0,.25556],Kc=[.19444,.45833,0,0,.56111],Yu=[0,.45833,0,0,.56111],Vl=[0,.69444,0,0,.30556],Ju=[0,.69444,0,0,.58056],Ll=[0,.69444,0,0,.67223],xc=[0,.69444,0,0,.85556],Rl=[0,.69444,0,0,.55834],Bs=[0,.65556,.11156,0,.5],Gl=[0,.69444,.08094,0,.70834],nu=[.17014,0,0,0,.44445],Eu=[0,.69444,.0799,0,.5],Mu=[0,.69444,0,0,.73752],Qu=[0,.69444,.09205,0,.5],bs=[0,.69444,.09031,0,.77778],Bl=[0,.69444,.07816,0,.27778],qu=[0,.69444,.00316,0,.5],_t=[.19444,.69444,0,0,.83334],At=[.05556,.75,0,0,.83334],Kt=[0,.75,0,0,.5],Yt=[.125,.08333,0,0,.27778],sr=[0,.08333,0,0,.27778],er=[0,.65556,0,0,.5],Cr=[0,.69444,0,0,.47222],Sr=[0,.69444,0,0,.66667],xr=[0,.69444,0,0,.59722],Rr=[0,.69444,0,0,.54167],Gr=[0,.69444,0,0,.70834],Fr=[.25,.75,0,0,.28889],dn=[0,.69444,0,0,.51667],ln=[0,.44444,0,0,.44445],un=[.19444,.44444,0,0,.51667],Gn=[0,.44444,0,0,.38333],Bn=[0,.44444,0,0,.51667],Xn=[0,.69444,0,0,.83334],jn=[.35001,.85,0,0,.45834],ii=[.35001,.85,0,0,.57778],Si=[.35001,.85,0,0,.41667],_i=[.35001,.85,0,0,.58334],pi=[0,.72222,0,0,.55556],$i=[1e-5,.6,0,0,.66667],Yi=[1e-5,.6,0,0,.77778],si=[.25001,.75,0,0,.94445],yi=[.306,.805,.19445,0,.47222],ci=[.30612,.805,.19445,0,.47222],In=[.25001,.75,0,0,.83334],di=[.35001,.85,0,0,.47222],Ni=[.25001,.75,0,0,1.11111],aa=[.65002,1.15,0,0,.59722],Ii=[.65002,1.15,0,0,.81111],Qn=[.65002,1.15,0,0,.47222],Zi=[.65002,1.15,0,0,.66667],Ji=[0,.75,0,0,1],_a=[.55001,1.05,0,0,1.27778],wa=[.862,1.36,.44445,0,.55556],no=[.86225,1.36,.44445,0,.55556],Ua=[.55001,1.05,0,0,1.11111],Gi=[.65002,1.15,0,0,.52778],go=[.65002,1.15,0,0,.61111],ma=[.55001,1.05,0,0,1.51112],Qa=[.95003,1.45,0,0,.73611],Va=[.95003,1.45,0,0,1.04445],Mo=[.95003,1.45,0,0,.52778],Pi=[.95003,1.45,0,0,.75],ki=[0,.75,0,0,1.44445],Ti=[.95003,1.45,0,0,.58334],xi=[1.25003,1.75,0,0,.79167],Sa=[1.25003,1.75,0,0,1.27778],Ci=[1.25003,1.75,0,0,.58334],Ui=[1.25003,1.75,0,0,.80556],ga=[0,.825,0,0,1.8889],fa=[1.25003,1.75,0,0,.63889],Vo=[.64502,1.155,0,0,.875],_o=[1e-5,.6,0,0,.875],Ns=[-99e-5,.601,0,0,.66667],vo=[.64502,1.155,0,0,.66667],Ws=[1e-5,.9,0,0,.88889],xo=[.65002,1.15,0,0,.88889],jo=[.90001,0,0,0,.88889],yl=[-.00499,.605,0,0,1.05556],xa=[0,.12,0,0,.45],On=[0,.61111,0,0,.525],Ta=[.08333,.69444,0,0,.525],Co=[-.08056,.53055,0,0,.525],ko=[-.05556,.55556,0,0,.525],Hi=[0,.43056,0,0,.525],Ra=[.22222,.43056,0,0,.525],Fo=[0,0,0,0,.525],Ds={"AMS-Regular":{32:Tr,65:Zt,66:tr,67:Zt,68:Zt,69:tr,70:Er,71:mr,72:mr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:mr,76:tr,77:[0,.68889,0,0,.94445],78:Zt,79:zr,80:Er,81:zr,82:Zt,83:jr,84:tr,85:Zt,86:Zt,87:[0,.68889,0,0,1],88:Zt,89:Zt,90:tr,107:jr,160:Tr,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:jr,295:vn,710:Vr,732:sn,770:Vr,771:sn,989:mn,1008:gn,8245:[0,.54986,0,0,.275],8463:vn,8487:Zt,8498:jr,8502:tr,8503:[0,.68889,0,0,.44445],8504:tr,8513:[0,.68889,0,0,.63889],8592:en,8594:en,8602:hn,8603:hn,8606:_n,8608:_n,8610:tn,8611:tn,8619:Ln,8620:Ln,8621:[-.13313,.37788,0,0,1.38889],8622:hn,8624:Un,8625:Un,8630:Vn,8631:Vn,8634:$r,8635:$r,8638:Yr,8639:Yr,8642:Yr,8643:Yr,8644:Lr,8646:Lr,8647:Lr,8648:cn,8649:Lr,8650:cn,8651:_n,8652:_n,8653:hn,8654:hn,8655:hn,8666:Pr,8667:Pr,8669:[-.13313,.37788,0,0,1],8672:Wr,8674:Wr,8705:[0,.825,0,0,.5],8708:jr,8709:mn,8717:[0,.43056,0,0,.42917],8722:en,8724:[.08198,.69224,0,0,.77778],8726:mn,8733:Lt,8736:Gt,8737:Gt,8738:[.03517,.52239,0,0,.72222],8739:Kr,8740:[.25142,.74111,0,0,.27778],8741:Ur,8742:[.25142,.74111,0,0,.5],8756:Et,8757:Et,8764:It,8765:[-.13313,.37788,0,0,.77778],8769:It,8770:ic,8774:cr,8776:ll,8778:mn,8782:Dt,8783:Dt,8785:$r,8786:$r,8787:$r,8790:Lt,8791:vr,8796:[.08198,.91667,0,0,.77778],8806:Ut,8807:Ut,8808:Qt,8809:Qt,8812:[.25583,.75583,0,0,.5],8814:yr,8815:yr,8816:cr,8817:cr,8818:vr,8819:vr,8822:Dr,8823:Dr,8828:Ir,8829:Ir,8830:vr,8831:vr,8832:yr,8833:yr,8840:cr,8841:cr,8842:Ar,8843:Ar,8847:qt,8848:qt,8858:$r,8859:$r,8861:$r,8862:kr,8863:kr,8864:kr,8865:kr,8872:[0,.69224,0,0,.61111],8873:Gt,8874:[0,.69224,0,0,.88889],8876:Er,8877:Er,8878:Zt,8879:Zt,8882:qt,8883:qt,8884:Ir,8885:Ir,8888:[0,.54986,0,0,1.11111],8890:va,8891:Xt,8892:Xt,8901:[0,.54986,0,0,.27778],8903:mn,8905:mn,8906:mn,8907:Lt,8908:Lt,8909:[-.03598,.46402,0,0,.77778],8910:rr,8911:rr,8912:qt,8913:qt,8914:lr,8915:lr,8916:Et,8918:or,8919:or,8920:_r,8921:_r,8922:ur,8923:ur,8926:Ir,8927:Ir,8928:cr,8929:cr,8934:Mr,8935:Mr,8936:Mr,8937:Mr,8938:yr,8939:yr,8940:cr,8941:cr,8994:Pt,8995:Pt,9416:[.15559,.69224,0,0,.90222],9484:Un,9488:Un,9492:Jt,9496:Jt,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:kr,9633:kr,9650:nr,9651:nr,9654:qt,9660:nr,9661:nr,9664:qt,9674:fr,9733:[.19444,.69224,0,0,.94445],10003:pr,10016:pr,10731:fr,10846:[.19444,.75583,0,0,.61111],10877:Ir,10878:Ir,10885:Ut,10886:Ut,10887:Ar,10888:Ar,10889:br,10890:br,10891:wr,10892:wr,10901:Ir,10902:Ir,10933:Qt,10934:Qt,10935:br,10936:br,10937:br,10938:br,10949:Ut,10950:Ut,10955:Nr,10956:Nr,57350:Kr,57351:Ur,57352:mn,57353:gn,57356:Qt,57357:Qt,57358:kn,57359:cr,57360:cr,57361:kn,57366:Qt,57367:Qt,57368:Qt,57369:Qt,57370:Ar,57371:Ar},"Caligraphic-Regular":{32:Tr,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:Tr},"Fraktur-Regular":{32:Tr,33:[0,.69141,0,0,.29574],34:Mn,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Nn,41:Nn,42:[0,.62119,0,0,.27764],43:yn,44:rn,45:yn,46:rn,47:[.24982,.74947,0,0,.50181],48:$n,49:$n,50:$n,51:Tn,52:Tn,53:Tn,54:Zn,55:Tn,56:Zn,57:Tn,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:wn,93:wn,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:Tr,8216:Mn,8217:Mn,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:Tr,33:[0,.69444,0,0,.35],34:ji,35:[.19444,.69444,0,0,.95833],36:Cn,37:[.05556,.75,0,0,.95833],38:Ei,39:ri,40:Jn,41:Jn,42:[0,.75,0,0,.575],43:An,44:[.19444,.15556,0,0,.31944],45:Gn,46:[0,.15556,0,0,.31944],47:Xr,48:zn,49:zn,50:zn,51:zn,52:zn,53:zn,54:zn,55:zn,56:zn,57:zn,58:gi,59:[.19444,.44444,0,0,.31944],60:hi,61:na,62:hi,63:[0,.69444,0,0,.54305],64:Ei,65:Jr,66:[0,.68611,0,0,.81805],67:qn,68:[0,.68611,0,0,.88194],69:Qc,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:Rn,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:pn,77:[0,.68611,0,0,1.09166],78:Rn,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:Hn,92:Xr,93:Hn,94:qr,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Dn,99:Qr,100:Dn,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Dn,105:ri,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:ri,109:[0,.44444,0,0,.95833],110:ai,111:el,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:ai,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:Qr,123:Xr,124:Hn,125:Xr,126:[.35,.34444,0,0,.575],160:Tr,163:[0,.69444,0,0,.86853],168:qr,172:[0,.44444,0,0,.76666],176:nn,177:An,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:An,216:[.04861,.73472,0,0,.89444],223:xr,230:[0,.44444,0,0,.83055],247:An,248:[.09722,.54167,0,0,.575],305:gi,338:[0,.68611,0,0,1.16944],339:qi,567:[.19444,.44444,0,0,.35139],710:qr,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:qr,715:qr,728:qr,729:ri,730:nn,732:qr,733:qr,915:pn,916:bn,920:li,923:Gu,926:$c,928:Rn,931:qn,933:li,934:qn,936:li,937:qn,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:ri,8217:ri,8220:ji,8221:ji,8224:Li,8225:Li,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:yc,8465:Bi,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:Bi,8501:Ia,8592:ni,8593:ra,8594:ni,8595:ra,8596:ni,8597:Xr,8598:ca,8599:ca,8600:ca,8601:ca,8636:ni,8637:ni,8640:ni,8641:ni,8656:ni,8657:Sn,8658:ni,8659:Sn,8660:ni,8661:[.25,.75,0,0,.70277],8704:Dn,8706:[0,.69444,.06389,0,.62847],8707:Dn,8709:Cn,8711:bn,8712:Wn,8715:Wn,8722:An,8723:An,8725:Xr,8726:Xr,8727:yo,8728:Ki,8729:Ki,8730:[.18,.82,0,0,.95833],8733:qi,8734:[0,.44444,0,0,1.14999],8736:Gt,8739:Hn,8741:Xr,8743:oa,8744:oa,8745:oa,8746:oa,8747:[.19444,.69444,.12778,0,.56875],8764:na,8768:[.19444,.69444,0,0,.31944],8771:Xi,8776:[.02444,.52444,0,0,.89444],8781:Xi,8801:Xi,8804:ba,8805:ba,8810:Na,8811:Na,8826:hi,8827:hi,8834:hi,8835:hi,8838:ba,8839:ba,8846:oa,8849:ba,8850:ba,8851:oa,8852:oa,8853:An,8854:An,8855:An,8856:An,8857:An,8866:Ia,8867:Ia,8868:Ei,8869:Ei,8900:Ki,8901:[-.02639,.47361,0,0,.31944],8902:yo,8968:Oi,8969:Oi,8970:Oi,8971:Oi,8994:Fi,8995:Fi,9651:ka,9657:yo,9661:ka,9667:yo,9711:ca,9824:Vi,9825:Vi,9826:Vi,9827:Vi,9837:[0,.75,0,0,.44722],9838:ia,9839:ia,10216:Jn,10217:Jn,10815:Rn,10927:ba,10928:ba,57376:Qs},"Main-BoldItalic":{32:Tr,33:[0,.69444,.11417,0,.38611],34:Ha,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:ea,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:da,49:da,50:da,51:da,52:sa,53:da,54:da,55:sa,56:da,57:da,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Ka,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:ui,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:ui,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:mi,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:Di,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:Di,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:Tr,168:[0,.69444,.11473,0,.59111],176:Qi,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:Mi,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Mi,567:[.19444,.44444,.04611,0,.385],710:mi,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:ea,730:Qi,732:Ka,733:Ka,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:ui,931:[0,.68611,.11431,0,.82666],933:Ya,934:[0,.68611,.05632,0,.82666],936:Ya,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:ea,8217:ea,8220:[0,.69444,.16772,0,.62055],8221:Ha},"Main-Italic":{32:Tr,33:oo,34:Tl,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:oo,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:ha,49:ha,50:ha,51:ha,52:pa,53:ha,54:ha,55:pa,56:ha,57:ha,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:ks,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:eo,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:eo,79:Ts,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:eo,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:ro,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:to,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:to,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:Tr,168:[0,.66786,.10474,0,.51111],176:pl,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:bo,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:bo,710:ro,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:pl,732:[0,.66786,.11585,0,.51111],733:ks,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Ts,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:eo,931:[0,.68333,.12028,0,.71555],933:os,934:[0,.68333,.05986,0,.71555],936:os,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:oo,8217:oo,8220:[0,.69444,.1685,0,.51444],8221:Tl,8463:vn},"Main-Regular":{32:Tr,33:As,34:ja,35:_t,36:gl,37:At,38:zs,39:As,40:Ro,41:Ro,42:Kt,43:Wa,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:ss,48:So,49:So,50:So,51:So,52:So,53:So,54:So,55:So,56:So,57:So,58:uo,59:[.19444,.43056,0,0,.27778],60:or,61:It,62:or,63:Cr,64:zs,65:Gs,66:[0,.68333,0,0,.70834],67:ol,68:[0,.68333,0,0,.76389],69:Al,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Gs,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Xs,76:fs,77:[0,.68333,0,0,.91667],78:Gs,79:Xs,80:Al,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:ol,85:Gs,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Gs,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:es,92:ss,93:es,94:ja,95:[.31,.12056,.02778,0,.5],97:Ks,98:Ys,99:Ol,100:Ys,101:Ol,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:Ys,105:Ja,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:As,109:[0,.43056,0,0,.83334],110:ua,111:Ks,112:va,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:ua,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:Ol,123:ss,124:es,125:ss,126:[.35,.31786,0,0,.5],160:Tr,163:[0,.69444,0,0,.76909],167:Wo,168:Ho,172:[0,.43056,0,0,.66667],176:Bo,177:Wa,182:ml,184:nu,198:[0,.68333,0,0,.90278],215:Wa,216:[.04861,.73194,0,0,.77778],223:ja,230:[0,.43056,0,0,.72222],247:Wa,248:[.09722,.52778,0,0,.5],305:uo,338:[0,.68333,0,0,1.01389],339:Jc,567:[.19444,.43056,0,0,.30556],710:ja,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:ja,715:ja,728:ja,729:Ja,730:Bo,732:Ho,733:ja,915:fs,916:nc,920:Xs,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Gs,931:ol,933:Xs,934:ol,936:Xs,937:ol,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:As,8217:As,8220:ja,8221:ja,8224:Wo,8225:Wo,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:vn,8465:Rs,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Rs,8501:Oa,8592:hn,8593:Os,8594:hn,8595:Os,8596:hn,8597:ss,8598:Zo,8599:Zo,8600:Zo,8601:Zo,8614:[.011,.511,0,0,1],8617:vc,8618:vc,8636:hn,8637:hn,8640:hn,8641:hn,8652:[.011,.671,0,0,1],8656:hn,8657:ml,8658:hn,8659:ml,8660:hn,8661:[.25,.75,0,0,.61111],8704:Ys,8706:[0,.69444,.05556,.08334,.5309],8707:Ys,8709:gl,8711:nc,8712:Ul,8715:Ul,8722:Wa,8723:Wa,8725:ss,8726:ss,8727:Ba,8728:Dl,8729:Dl,8730:[.2,.8,0,0,.83334],8733:Jc,8734:Vn,8736:Gt,8739:es,8741:ss,8743:sl,8744:sl,8745:sl,8746:sl,8747:[.19444,.69444,.11111,0,.41667],8764:It,8768:[.19444,.69444,0,0,.27778],8771:ic,8773:[-.022,.589,0,0,1],8776:ll,8781:ic,8784:[-.133,.67,0,0,.778],8801:ic,8804:Ar,8805:Ar,8810:vl,8811:vl,8826:or,8827:or,8834:or,8835:or,8838:Ar,8839:Ar,8846:sl,8849:Ar,8850:Ar,8851:sl,8852:sl,8853:Wa,8854:Wa,8855:Wa,8856:Wa,8857:Wa,8866:Oa,8867:Oa,8868:zs,8869:zs,8872:[.249,.75,0,0,.867],8900:Dl,8901:[-.05555,.44445,0,0,.27778],8902:Ba,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:Za,8969:Za,8970:Za,8971:Za,8994:hs,8995:hs,9136:Uo,9137:Uo,9651:Hs,9657:Ba,9661:Hs,9667:Ba,9711:Zo,9824:ls,9825:ls,9826:ls,9827:ls,9837:[0,.75,0,0,.38889],9838:No,9839:No,10216:Ro,10217:Ro,10222:Uo,10223:Uo,10229:[.011,.511,0,0,1.609],10230:Js,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:Js,10815:Gs,10927:Ar,10928:Ar,57376:Qs},"Math-BoldItalic":{32:Tr,48:el,49:el,50:el,51:Il,52:Il,53:Il,54:zn,55:Il,56:zn,57:Il,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:xu,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Qc,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:yc,105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:Ad,112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:Tr,915:[0,.68611,.15972,0,.65694],916:bn,920:[0,.68611,.03194,0,.86722],923:Gu,926:[0,.68611,.07458,0,.84125],928:xu,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:$c,936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:Ad,960:[0,.44444,.03704,0,.68241],961:qc,962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:qc,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:Tr,48:Ks,49:Ks,50:Ks,51:zc,52:zc,53:zc,54:So,55:zc,56:So,57:zc,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:Su,73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:wu,80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:ac,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:Tr,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:wu,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Su,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:ac,960:[0,.43056,.03588,0,.57003],961:eu,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:eu,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:Tr,33:[0,.69444,0,0,.36667],34:Rl,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:Vl,40:Cu,41:Cu,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:ts,49:ts,50:ts,51:ts,52:ts,53:ts,54:ts,55:ts,56:ts,57:ts,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Xu,64:Pl,65:Pl,66:Pl,67:tu,68:oc,69:[0,.69444,0,0,.64167],70:Oa,71:Pl,72:oc,73:[0,.69444,0,0,.33056],74:Xu,75:ru,76:Ju,77:[0,.69444,0,0,.97778],78:oc,79:oc,80:tu,81:[.10556,.69444,0,0,.79445],82:tu,83:Oa,84:Pl,85:ru,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Pl,89:[0,.69444,.0275,0,.73334],90:Ll,91:bc,93:bc,94:ts,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:sc,99:[0,.45833,0,0,.48889],100:sc,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:sc,105:Od,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Od,109:[0,.45833,0,0,.86667],110:Yu,111:[0,.45833,0,0,.55],112:Kc,113:Kc,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Yu,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:Tr,168:ts,176:Pl,180:ts,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:ts,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:ts,729:Vl,730:Pl,732:ts,733:ts,915:Ju,916:[0,.69444,0,0,.91667],920:xc,923:Ll,926:Pl,928:oc,931:oc,933:xc,934:oc,936:xc,937:oc,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Vl,8217:Vl,8220:Rl,8221:Rl},"SansSerif-Italic":{32:Tr,33:[0,.69444,.05733,0,.31945],34:qu,35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:Bl,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:Yt,45:[0,.44444,.01946,0,.33333],46:sr,47:[.25,.75,.13164,0,.5],48:Bs,49:Bs,50:Bs,51:Bs,52:Bs,53:Bs,54:Bs,55:Bs,56:Bs,57:Bs,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:Sr,66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:Gl,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:Rr,77:[0,.69444,.08094,0,.875],78:Gl,79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:Eu,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:Tr,168:[0,.67937,.06385,0,.5],176:Mu,184:nu,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Eu,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Qu,715:ja,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Mu,732:[0,.67659,.08826,0,.5],733:Qu,915:[0,.69444,.13372,0,.54167],916:Xn,920:[0,.69444,.07555,0,.77778],923:Oa,926:[0,.69444,.12816,0,.66667],928:Gl,931:[0,.69444,.11983,0,.72222],933:bs,934:[0,.69444,.04603,0,.72222],936:bs,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:Bl,8217:Bl,8220:[0,.69444,.14205,0,.5],8221:qu},"SansSerif-Regular":{32:Tr,33:[0,.69444,0,0,.31945],34:ja,35:_t,36:gl,37:At,38:[0,.69444,0,0,.75834],39:As,40:Ro,41:Ro,42:Kt,43:Wa,44:Yt,45:[0,.44444,0,0,.33333],46:sr,47:ss,48:er,49:er,50:er,51:er,52:er,53:er,54:er,55:er,56:er,57:er,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:Cr,64:Sr,65:Sr,66:Sr,67:Dn,68:[0,.69444,0,0,.72223],69:xr,70:[0,.69444,0,0,.56945],71:Sr,72:Gr,73:As,74:Cr,75:[0,.69444,0,0,.69445],76:Rr,77:[0,.69444,0,0,.875],78:Gr,79:[0,.69444,0,0,.73611],80:Dn,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:Ys,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:Sr,89:[0,.69444,.025,0,.66667],90:Oa,91:Fr,93:Fr,94:ja,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:dn,99:ln,100:dn,101:ln,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:dn,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:Bn,111:[0,.44444,0,0,.5],112:un,113:un,114:[0,.44444,.01389,0,.34167],115:Gn,116:[0,.57143,0,0,.36111],117:Bn,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:Tr,168:[0,.67937,0,0,.5],176:Sr,184:nu,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:ja,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:ja,715:ja,728:ja,729:[0,.67937,0,0,.27778],730:Sr,732:[0,.67659,0,0,.5],733:ja,915:Rr,916:Xn,920:zs,923:Oa,926:Sr,928:Gr,931:Rs,933:zs,934:Rs,936:zs,937:Rs,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:As,8217:As,8220:ja,8221:ja},"Script-Regular":{32:Tr,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:Tr},"Size1-Regular":{32:Tr,40:jn,41:jn,47:ii,91:Si,92:ii,93:Si,123:_i,125:_i,160:Tr,710:pi,732:pi,770:pi,771:pi,8214:[-99e-5,.601,0,0,.77778],8593:$i,8595:$i,8657:Yi,8659:Yi,8719:si,8720:si,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:ci,8748:yi,8749:yi,8750:ci,8896:In,8897:In,8898:In,8899:In,8968:di,8969:di,8970:di,8971:di,9168:Ns,10216:di,10217:di,10752:Ni,10753:Ni,10754:Ni,10756:In,10758:In},"Size2-Regular":{32:Tr,40:aa,41:aa,47:Ii,91:Qn,92:Ii,93:Qn,123:Zi,125:Zi,160:Tr,710:Ji,732:Ji,770:Ji,771:Ji,8719:_a,8720:_a,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:no,8748:wa,8749:wa,8750:no,8896:Ua,8897:Ua,8898:Ua,8899:Ua,8968:Gi,8969:Gi,8970:Gi,8971:Gi,10216:go,10217:go,10752:ma,10753:ma,10754:ma,10756:Ua,10758:Ua},"Size3-Regular":{32:Tr,40:Qa,41:Qa,47:Va,91:Mo,92:Va,93:Mo,123:Pi,125:Pi,160:Tr,710:ki,732:ki,770:ki,771:ki,8730:[.95003,1.45,0,0,1],8968:Ti,8969:Ti,8970:Ti,8971:Ti,10216:Pi,10217:Pi},"Size4-Regular":{32:Tr,40:xi,41:xi,47:Sa,91:Ci,92:Sa,93:Ci,123:Ui,125:Ui,160:Tr,710:ga,732:ga,770:ga,771:ga,8730:[1.25003,1.75,0,0,1],8968:fa,8969:fa,8970:fa,8971:fa,9115:Vo,9116:_o,9117:Vo,9118:Vo,9119:_o,9120:Vo,9121:vo,9122:Ns,9123:vo,9124:vo,9125:Ns,9126:vo,9127:Ws,9128:xo,9129:jo,9130:[0,.3,0,0,.88889],9131:Ws,9132:xo,9133:jo,9143:[.88502,.915,0,0,1.05556],10216:Ui,10217:Ui,57344:yl,57345:yl,57680:xa,57681:xa,57682:xa,57683:xa},"Typewriter-Regular":{32:Fo,33:On,34:On,35:On,36:Ta,37:Ta,38:On,39:On,40:Ta,41:Ta,42:[0,.52083,0,0,.525],43:Co,44:[.13889,.125,0,0,.525],45:Co,46:[0,.125,0,0,.525],47:Ta,48:On,49:On,50:On,51:On,52:On,53:On,54:On,55:On,56:On,57:On,58:Hi,59:[.13889,.43056,0,0,.525],60:ko,61:[-.19549,.41562,0,0,.525],62:ko,63:On,64:On,65:On,66:On,67:On,68:On,69:On,70:On,71:On,72:On,73:On,74:On,75:On,76:On,77:On,78:On,79:On,80:On,81:[.13889,.61111,0,0,.525],82:On,83:On,84:On,85:On,86:On,87:On,88:On,89:On,90:On,91:Ta,92:Ta,93:Ta,94:On,95:[.09514,0,0,0,.525],96:On,97:Hi,98:On,99:Hi,100:On,101:Hi,102:On,103:Ra,104:On,105:On,106:[.22222,.61111,0,0,.525],107:On,108:On,109:Hi,110:Hi,111:Hi,112:Ra,113:Ra,114:Hi,115:Hi,116:[0,.55358,0,0,.525],117:Hi,118:Hi,119:Hi,120:Hi,121:Ra,122:Hi,123:Ta,124:Ta,125:Ta,126:On,127:On,160:Fo,176:On,184:[.19445,0,0,0,.525],305:Hi,567:Ra,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:On,715:On,728:On,730:On,770:On,771:On,776:On,915:On,916:On,920:On,923:On,926:On,928:On,931:On,933:On,934:On,936:On,937:On,8216:On,8217:On,8242:On,9251:[.11111,.21944,0,0,.525]}},cl=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,ps=10,Go=.25,tl=1.2,Xo=.431,ms={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[Xo,Xo,Xo],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.5,.732,.925],num2:[.394,.384,.5],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[Go,Go,Go],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04]},rs=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],io=5,ao={"\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 cs(a,y){a===void 0&&(a=77);const b=Ds[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 ee=String.fromCodePoint(a);if(ee in ao)a=ao[ee].codePointAt(0);else if(cl.test(ee))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 bl={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]},js={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]},ul={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 Nl(a){if(js[a]){const[gt,wt,jt]=js[a],Vt=`<span class="stretchy" style="height:${jt}em"><svg width="100%" height="${jt}em" viewBox="0 0 ${gt} ${wt}" preserveAspectRatio="none" ><path fill="currentcolor" d="${ul[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*jt/2)/100}em;min-width:0">${Vt}</span>`}const[y,b,ee,ce]=bl[a];let _e,je;const et=ee/1e3;y.length===3?(_e=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],je=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(_e=["slice-1-of-2","slice-2-of-2"],je=["xMinYMin","xMaxYMin"]):(_e=["slice-1-of-1"],je=[ce]);const ot=y.map((gt,wt)=>`<span class="${_e[wt]}" style=height:${et}em><svg width=400em height=${et}em viewBox="0 0 400000 ${ee}" preserveAspectRatio="${je[wt]} slice"><path fill="currentcolor" d="${ul[gt]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${et}em;min-width:${b}em;">${ot}</span>`}function iu(a){return bl[a]?bl[a][2]/1e3:js[a][2]}function Ca(a){const y=[];for(let b=0;b<a.length;b++){let ee=a.charCodeAt(b);if(ee===13&&a.charCodeAt(b+1)===10&&(ee=10,b++),(ee===13||ee===12)&&(ee=10),ee===0&&(ee=65533),ee>=55296&&ee<=56319){const ce=a.charCodeAt(b+1);if(ce>=56320&&ce<=57343){const _e=ee-55296,je=ce-56320;ee=Fc(2,16)+_e*Fc(2,10)+je,b++}}y.push(ee)}return y}var Fa=8205,Do=[[Fa,1],[65038,2],[127995,5],[129456,4],[917536,96]],$a,Io=[127462,127487];function Yo(a){var y;if($a===void 0){$a={};for(const b of Do)for(let ee=b[0];ee<=b[0]+b[1]-1;ee++)$a[ee]=!0}return(y=$a[a])!=null?y:!1}function xs(a){return a>=Io[0]&&a<=Io[1]}function xl(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=Ca(a);let ee=0;for(;ee<b.length;){const ce=b[ee++],_e=b[ee];if(_e===Fa){const je=ee-1;for(ee+=2;b[ee]===Fa;)ee+=2;y.push(String.fromCodePoint(...b.slice(je,ee-je+1)))}else if(Yo(_e)){const je=ee-1;for(;Yo(b[ee]);)ee+=b[ee]===Fa?2:1;y.push(String.fromCodePoint(...b.slice(je,2*ee-je-1)))}else xs(ce)?(ee+=1,y.push(String.fromCodePoint(...b.slice(ee-2,2)))):y.push(String.fromCodePoint(ce))}return y}var _u=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=xl(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 Xl(a,y){var b,ee,ce,_e;const je=[];let et=a.next();if(et&&et!=="\\relax"){if(et==="\\noexpand")et=a.next(),et&&je.push(et);else if(et==="\\obeyspaces")a.obeyspaces=!0;else if(et==="\\bgroup")je.push("<{>");else if(et==="\\egroup")je.push("<}>");else if(et==="\\string"){if(et=a.next(),et)if(et.startsWith("\\"))for(const ot of et)je.push(ot==="\\"?"\\backslash":ot);else et==="<{>"?je.push("\\{"):et==="<space>"?je.push("~"):et==="<}>"&&je.push("\\}")}else if(et==="\\csname"){for(;a.peek()==="<space>";)a.next();let ot="",gt=!1,wt=[];do{if(wt.length===0)if(/^#[\d?@]$/.test(a.peek())){const jt=a.get().slice(1);wt=wl((ee=(b=y==null?void 0:y(jt))!=null?b:y==null?void 0:y("?"))!=null?ee:"\\placeholder{}",y),et=wt[0]}else et=a.next(),wt=et?[et]:[];gt=wt.length===0,!gt&&et==="\\endcsname"&&(gt=!0,wt.shift()),gt||(gt=et==="<$>"||et==="<$$>"||et==="<{>"||et==="<}>"||typeof et=="string"&&et.length>1&&et.startsWith("\\")),gt||(ot+=wt.shift())}while(!gt);ot&&je.push("\\"+ot),je.push(...wt)}else if(et!=="\\endcsname")if(et.length>1&&et.startsWith("#")){const ot=et.slice(1);je.push(...wl((_e=(ce=y==null?void 0:y(ot))!=null?ce:y==null?void 0:y("?"))!=null?_e:"\\placeholder{}",y))}else je.push(et)}return je}function wl(a,y=null){const b=[];let ee="";for(const je of a.toString().split(/\r?\n/)){ee&&b.push(ee),ee=" ";const et=je.match(/((?:\\%)|[^%])*/);et!==null&&b.push(et[0])}const ce=new _u(rt(b.join(""))),_e=[];do _e.push(...Xl(ce,y));while(!ce.end());return _e}function ya(a){let y="";const b=[];for(const ee of a)ee&&(y&&/^[a-zA-Z\*]/.test(ee)&&b.push(y),b.push(ee),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(ee)&&b.push(" "),y=/\\[a-zA-Z]+\*?$/.test(ee)?" ":"");return b.join("")}function so(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:ya([a,...y.map(b=>`{${b}}`)])}function dl(a){return ya(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var lc=class hf{constructor(y){hf._registry[y]=this}static createAtom(y,b,ee){return hf._registry[y].createAtom(b,dt(b,y),ee)}static serialize(y,b){var ee;if(!y||y.length===0)return"";if((ee=b.skipStyles)!=null&&ee){const ce=[];for(const _e of ed(y)){const je=hf._registry[_e[0].mode];ce.push(...je.serialize(_e,b))}return ya(ce)}return ya(au(y,b))}static getFont(y,b,ee){return hf._registry[y].getFont(b,ee)}};lc._registry={};var Fs=lc;function ed(a){const y=[];let b=[],ee="NONE";for(const ce of a)ce.type!=="first"&&(ce.mode!==ee?(b.length>0&&y.push(b),b=[ce],ee=ce.mode):b.push(ce));return b.length>0&&y.push(b),y}function To(a,y){const b=[];let ee=[],ce;for(const _e of a)if(_e.type!=="first"&&_e.style){let je;y==="variant"?(je=_e.style.variant,_e.style.variantStyle&&_e.style.variantStyle!=="up"&&(je+="-"+_e.style.variantStyle)):je=_e.style[y],je===ce?ee.push(_e):(ee.length>0&&b.push(ee),ee=[_e],ce=je)}return ee.length>0&&b.push(ee),b}function ku(a,y){var b;const{parent:ee}=a[0],ce=ee==null?void 0:ee.computedStyle.color,_e=[];for(const je of ed(a)){const et=y.defaultMode;for(const ot of To(je,"color")){const gt=ot[0].computedStyle,wt=Fs._registry[ot[0].mode].serialize(ot,oe(ie({},y),{defaultMode:et==="text"?"text":"math"}));!y.skipStyles&>.color&>.color!=="none"&&(!ee||ce!==gt.color)?_e.push(so("\\textcolor",(b=gt.verbatimColor)!=null?b:gt.color,ya(wt))):_e.push(ya(wt))}}return _e}function td(a,y){const{parent:b}=a[0],ee=b==null?void 0:b.computedStyle.backgroundColor;return To(a,"backgroundColor").map(ce=>{var _e;if(ce.length>0||ce[0].type!=="box"){const je=ce[0].computedStyle;if(je.backgroundColor&&je.backgroundColor!=="none"&&(!b||ee!==je.backgroundColor))return so("\\colorbox",(_e=je.verbatimBackgroundColor)!=null?_e:je.backgroundColor,ya(ku(ce,oe(ie({},y),{defaultMode:"text"}))))}return ya(ku(ce,y))})}function au(a,y){if(a.length===0)return[];const{parent:b}=a[0],ee=b==null?void 0:b.computedStyle.fontSize,ce=[];for(const _e of To(a,"fontSize")){const je=_e[0].computedStyle.fontSize,et=td(_e,y);et&&(je&&je!=="auto"&&(!b||ee!==je)?ce.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][je],...et):ce.push(...et))}return ce}function ou(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 wc(a){if(a.length===0)return"ord";const y=ou(a[0].type),b=ou(a[a.length-1].type);return y&&y===b?y:"ord"}function cc(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 Fn=class Mm{constructor(y,b){var ee,ce,_e,je,et;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:ne(y)?this.children=y.filter(gt=>gt!==null):y&&y instanceof Mm&&(this.children=[y]),this.children)for(const gt of this.children)gt.parent=this;this.type=(ee=b==null?void 0:b.type)!=null?ee:"ignore",this.isSelected=(b==null?void 0:b.isSelected)===!0,b!=null&&b.caret&&(this.caret=b.caret),this.classes=(ce=b==null?void 0:b.classes)!=null?ce:"",this.isTight=(_e=b==null?void 0:b.isTight)!=null?_e:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let ot=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(ot=(et=Fs.getFont((je=b.mode)!=null?je:"math",this,oe(ie({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?et:void 0),ot||(ot="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),Yl(this,ot)}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,ee){if(b===void 0)return;const ce=cc(b,ee);ce.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[y]=ce)}setTop(y){Number.isFinite(y)&&Math.abs(y)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=cc(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"]=cc(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"]=cc(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"]=cc(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 ee=y.color;ee&&ee!==b.color&&this.setStyle("color",ee);let ce=y.backgroundColor;this.isSelected&&(ce=ht(ce)),ce&&ce!==b.backgroundColor&&(this.setStyle("background-color",ce),this.setStyle("display","inline-block"));const _e=y.scalingFactor;return this.scale=_e,this.skew*=_e,this.italic*=_e,this}toMarkup(){var y,b,ee,ce;let _e=(y=this.value)!=null?y:"";if(this.children)for(const ar of this.children)_e+=ar.toMarkup();let je="";if(this.svgBody)je=Nl(this.svgBody);else if(this.svgOverlay){je='<span style="',je+="display: inline-block;",je+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,je+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,je+='">',je+=_e,je+="</span>",je+='<svg style="position:absolute;overflow:visible;',je+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const ar=(b=this.cssProperties)==null?void 0:b.padding;ar?(je+=`top:${ar};`,je+=`left:${ar};`,je+=`width:calc(100% - 2 * ${ar} );`):je+="top:0;left:0;width:100%;",je+="z-index:2;",je+='"',this.svgStyle&&(je+=this.svgStyle),je+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,je+=`>${this.svgOverlay}</svg>`}let et="";const ot=this.classes.split(" ");ot.push((ee={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?ee:""),this.caret==="latex"&&ot.push("ML__latex-caret"),this.isSelected&&ot.push("ML__selected");const gt=ot.length===1?ot[0]:ot.filter((ar,dr,Zr)=>ar.length>0&&Zr.indexOf(ar)===dr).join(" ");if(gt.length>0&&(et+=` class="${gt}"`),this.id&&(et+=` data-atom-id=${this.id}`),this.cssId&&(et+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(et+=" "+Object.keys(this.attributes).map(ar=>`${ar}="${this.attributes[ar]}"`).join(" ")),this.htmlData){const ar=this.htmlData.split(",");for(const dr of ar){const Zr=dr.match(/([^=]+)=(.+$)/);if(Zr){const Kn=Zr[1].trim().replace(/ /g,"-");Kn&&(et+=` data-${Kn}="${Zr[2]}" `)}else{const Kn=dr.trim().replace(/ /g,"-");Kn&&(et+=` data-${Kn} `)}}}const wt=(ce=this.cssProperties)!=null?ce:{};this.hasExplicitWidth&&wt.width===void 0&&(wt.width=`${Math.ceil(this._width*100)/100}em`);const jt=Object.keys(wt).map(ar=>`${ar}:${wt[ar]}`);if(this.scale!==void 0&&this.scale!==1&&(_e.length>0||je.length>0)&&jt.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const ar=this.htmlStyle.split(";");let dr="";for(const Zr of ar){const Kn=Zr.match(/([^=]+):(.+$)/);if(Kn){const Hr=Kn[1].trim().replace(/ /g,"-");Hr&&(dr+=`${Hr}:${Kn[2]};`)}}dr&&(et+=` style="${dr}"`)}jt.length>0&&(et+=` style="${jt.join(";")}"`);let Vt="";return et.length>0||je.length>0?Vt=`<span${et}>${_e}${je}</span>`:Vt=_e,this.caret==="text"?Vt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(Vt+='<span class="ML__caret"></span>'),Vt}tryCoalesceWith(y){if(this.svgBody||!this.value||y.svgBody||!y.value)return!1;const b=this.children&&this.children.length>0,ee=y.children&&y.children.length>0;if(b||ee)return!1;if(y.cssProperties||this.cssProperties){for(const ot of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&ot in y.cssProperties||this.cssProperties&&ot in this.cssProperties)return!1}const ce=this.cssProperties?Object.keys(this.cssProperties).length:0,_e=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ce!==_e)return!1;if(ce>0){for(const ot of Object.keys(this.cssProperties))if(this.cssProperties[ot]!==y.cssProperties[ot])return!1}const je=this.classes.trim().replace(/\s+/g," ").split(" "),et=y.classes.trim().replace(/\s+/g," ").split(" ");if(je.length!==et.length)return!1;je.sort(),et.sort();for(const[ot,gt]of je.entries())if(gt==="vertical-separator"||gt!==et[ot])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 Tu(a){if(!a||a.length===0)return[];a[0].children=Tu(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=Tu(a[b].children),y.push(a[b]));return y}function su(a){return a.children&&(a.children=Tu(a.children)),a}function lu(a,y){if(!a)return new Fn(null,y);const b=new Fn(null,{classes:"ML__strut",type:"ignore"});b.setStyle("height",Math.max(0,a.height),"em");const ee=[b];if(a.depth!==0){const ce=new Fn(null,{classes:"ML__strut--bottom",type:"ignore"});ce.setStyle("height",a.height+a.depth,"em"),ce.setStyle("vertical-align",-a.depth,"em"),ee.push(ce)}return ee.push(a),new Fn(ee,oe(ie({},y),{type:"lift"}))}function rl(a){const y=iu(a)/2,b=new Fn(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function Yl(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 ee=0;ee<a.value.length;ee++){const ce=cs(a.value.codePointAt(ee),y);a.height=Math.max(a.height,ce.height),a.depth=Math.max(a.depth,ce.depth),a._width+=ce.width,a.skew=ce.skew,a.italic=ce.italic}return}if(a.children&&a.children.length>0){let ee=-1/0,ce=-1/0,_e=0;for(const je of a.children)je.height>ee&&(ee=je.height),je.depth>ce&&(ce=je.depth),_e=Math.max(_e,(b=je.maxFontSize)!=null?b:0);a.height=ee,a.depth=ce,a._width=a.children.reduce((je,et)=>je+et.width,0),a.maxFontSize=_e}}function Sc(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const ee=[b],ce=-b.shift-b.box.depth;let _e=ce;for(let je=1;je<y.length;je++){const et=y[je],ot=-et.shift-_e-et.box.depth,gt=ot-(b.box.height+b.box.depth);_e=_e+ot,ee.push(gt),ee.push(et),b=et}return[ee,ce]}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 uc(a){var y;const[b,ee]=Sc(a);if(!b)return[[],0,0];const ce=new Fn(null,{classes:"pstrut"});let _e=0;for(const dr of b)if(typeof dr!="number"){const Zr=dr.box;_e=Math.max(_e,Zr.maxFontSize,Zr.height)}_e+=2,ce.height=_e,ce.setStyle("height",_e,"em");const je=[];let et=ee,ot=ee,gt=ee,wt=0;for(const dr of b){if(typeof dr=="number")gt+=dr;else{const Zr=dr.box,Kn=(y=dr.classes)!=null?y:[],Hr=new Fn([ce,Zr],{classes:Kn.join(" "),style:dr.style});Zr.setStyle("height",Zr.height+Zr.depth,"em"),Zr.setStyle("display","inline-block"),Hr.setStyle("top",-_e-gt-Zr.depth,"em"),dr.marginLeft&&Hr.setStyle("margin-left",dr.marginLeft,"em"),dr.marginRight&&Hr.setStyle("margin-right",dr.marginRight,"em"),je.push(Hr),gt+=Zr.height+Zr.depth,wt=Math.max(wt,Hr.width)}et=Math.min(et,gt),ot=Math.max(ot,gt)}je.forEach(dr=>{dr.softWidth=wt});const jt=new Fn(je,{classes:"vlist"});if(jt.softWidth=wt,jt.height=ot,jt.setStyle("height",ot,"em"),et>=0)return[[new Fn(jt,{classes:"vlist-r"})],ot,-et];const Vt=new Fn(new Fn(null),{classes:"vlist"});Vt.height=-et,Vt.setStyle("height",-et,"em");const ar=new Fn(8203,{classes:"vlist-s",maxFontSize:0});return ar.softWidth=0,ar.height=0,ar.depth=0,[[new Fn([jt,ar],{classes:"vlist-r"}),new Fn(Vt,{classes:"vlist-r"})],ot,-et]}var qa=class extends Fn{constructor(a,y){var b;const[ee,ce,_e]=uc(a);super(ee.length===1?ee[0]:ee,{type:y==null?void 0:y.type,classes:((b=y==null?void 0:y.classes)!=null?b:"")+" vlist-t"+(ee.length===2?" vlist-t2":"")}),this.height=ce,this.depth=_e,this.softWidth=ee.reduce((je,et)=>Math.max(je,et.width),0)}};function rd(a,y){var b,ee,ce,_e,je;const et=a.metrics,ot=new Fn(y.base),gt=(b=y.baseShift)!=null?b:0,wt=(ee=y.slant)!=null?ee:0;let jt=0,Vt=0;y.above&&(jt=(ce=y.aboveShift)!=null?ce:Math.max(et.bigOpSpacing1,et.bigOpSpacing3-y.above.depth)),y.below&&(Vt=(_e=y.belowShift)!=null?_e:Math.max(et.bigOpSpacing2,et.bigOpSpacing4-y.below.height));let ar=null;if(y.below&&y.above){const dr=et.bigOpSpacing5+y.below.height+y.below.depth+Vt+ot.depth+gt;ar=new qa({bottom:dr,children:[et.bigOpSpacing5,{box:y.below,marginLeft:-wt,classes:["ML__center"]},Vt,{box:ot,classes:["ML__center"]},jt,{box:y.above,marginLeft:wt,classes:["ML__center"]},et.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)ar=new qa({top:ot.height-gt,children:[et.bigOpSpacing5,{box:y.below,marginLeft:-wt,classes:["ML__center"]},Vt,{box:ot,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const dr=ot.depth+gt;ar=new qa({bottom:dr,children:[{box:ot,classes:["ML__center"]},jt,{box:y.above,marginLeft:wt,classes:["ML__center"]},et.bigOpSpacing5]}).wrap(a)}else{const dr=ot.depth+gt;ar=new qa({bottom:dr,children:[{box:ot},et.bigOpSpacing5]}).wrap(a)}return new Fn(ar,{type:(je=y.type)!=null?je:"op"})}var cu=7,Sl=6,Hc=5,jl=4,Fl=3,gs=2,$s=1,ns=0,Cl=class{constructor(a,y,b){this.id=a,this.sizeDelta=y,this.cramped=b;const ee={"-4":2,"-3":1,0:0}[y];this.metrics=Object.keys(ms).reduce((ce,_e)=>oe(ie({},ce),{[_e]:ms[_e][ee]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return Pa[[ns,$s,ns,$s,gs,Fl,gs,Fl][this.id]]}get sub(){return Pa[[ns,ns,ns,ns,gs,gs,gs,gs][this.id]]}get fracNum(){return Pa[[ns,$s,ns,$s,gs,Fl,jl,Hc][this.id]]}get fracDen(){return Pa[[ns,ns,ns,ns,gs,gs,jl,jl][this.id]]}get cramp(){return Pa[[ns,ns,gs,gs,jl,jl,Sl,Sl][this.id]]}get isTight(){return this.sizeDelta<0}},Ea={7:new Cl(cu,0,!1),6:new Cl(Sl,0,!0),5:new Cl(Hc,0,!1),4:new Cl(jl,0,!0),3:new Cl(Fl,-3,!1),2:new Cl(gs,-3,!0),1:new Cl($s,-4,!1),0:new Cl(ns,-4,!0)},Pa=oe(ie({},Ea),{displaystyle:Ea[cu],textstyle:Ea[Hc],scriptstyle:Ea[Fl],scriptscriptstyle:Ea[$s]});function vs(a,y){var b;if(!a)return 0;const ee={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:ps,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 ce=Fc(10,y);return Math.round(a.dimension/ps*ee*ce)/ce}return a.dimension*ee}function El(a,y){if(a===null)return 0;const b=vs(a)/ps;if(Number.isFinite(y)){const ee=Fc(10,y);return Math.round(b*ee)/ee}return b}function Ml(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function Au(a){let y=Ml(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${Ml(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${Ml(a.shrink)}`),y}function Ao(a){var y,b;if(a==null)return null;let ee="";if("dimension"in a&&(ee=`${a.dimension}${(y=a.unit)!=null?y:"pt"}`),"glue"in a&&(ee=Au(a)),"number"in a)if(!("base"in a)||a.base==="decimal")ee=Number(a.number).toString();else if(a.base==="alpha")ee=`\`${String.fromCodePoint(a.number)}`;else{const ce=Math.round(a.number)>>>0;a.base==="hexadecimal"?(ee=Number(ce).toString(16).toUpperCase(),ce<=255?ee=ee.padStart(2,"0"):ce<=65535?ee=ee.padStart(4,"0"):ce<=16777215?ee=ee.padStart(6,"0"):ee=ee.padStart(8,"0"),ee=`"${ee}`):a.base==="octal"&&(ee=Number(ce).toString(8),ce<=63?ee=ee.padStart(2,"0"):ce<=30583?ee=ee.padStart(4,"0"):ee=ee.padStart(8,"0"),ee=`'${ee}`)}return"register"in a&&("factor"in a&&(a.factor===-1?ee="-":a.factor!==1&&(ee=Number(a.factor).toString())),"global"in a&&a.global&&(ee+="\\global"),ee+=`\\${a.register}`),"string"in a&&(ee=a.string),(b=a.relax)!=null&&b&&(ee+="\\relax"),ee}function nl(a,y){return a==null?null:"number"in a?oe(ie({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?oe(ie({},a),{factor:a.factor*y}):oe(ie({},a),{factor:y}):"dimension"in a?oe(ie({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:nl(a.glue,y),shrink:nl(a.shrink,y),grow:nl(a.grow,y)}:a.shrink?{glue:nl(a.glue,y),shrink:nl(a.shrink,y)}:a.grow?{glue:nl(a.glue,y),grow:nl(a.grow,y)}:{glue:nl(a.glue,y)}:null}var Ou={"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 Jl(){return ie({},Ou)}function nd(){return{registers:Jl(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:be.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Pe,backgroundColorMap:Be,getMacro:a=>Ft(a,Bt())}}var Da=class _m{constructor(y,b){var ee,ce,_e,je,et,ot,gt,wt,jt,Vt,ar,dr,Zr,Kn,Hr;let fn;y!=null&&y.parent?(this.parent=y.parent,fn=y.parent,this.registers={}):(fn=ie(ie({},nd()),(ee=y==null?void 0:y.from)!=null?ee:{}),this.registers=fn.registers),fn.atomIdsSettings&&(this.atomIdsSettings=ie({},fn.atomIdsSettings)),this.renderPlaceholder=fn.renderPlaceholder,this.isPhantom=(je=(_e=y==null?void 0:y.isPhantom)!=null?_e:(ce=this.parent)==null?void 0:ce.isPhantom)!=null?je:!1,this.letterShapeStyle=fn.letterShapeStyle,this.minFontScale=fn.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(ot=(et=this.parent)==null?void 0:et.color)!=null?ot:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(wt=(gt=this.parent)==null?void 0:gt.backgroundColor)!=null?wt:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((jt=this.parent)==null?void 0:jt.size)?this.size=b.fontSize:this.size=(ar=(Vt=this.parent)==null?void 0:Vt.size)!=null?ar:io;let Yn=(Zr=(dr=this.parent)==null?void 0:dr.mathstyle)!=null?Zr:Pa.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(fn instanceof _m)switch(y.mathstyle){case"cramp":Yn=Yn.cramp;break;case"superscript":Yn=Yn.sup;break;case"subscript":Yn=Yn.sub;break;case"numerator":Yn=Yn.fracNum;break;case"denominator":Yn=Yn.fracDen;break}switch(y.mathstyle){case"textstyle":Yn=Pa.textstyle;break;case"displaystyle":Yn=Pa.displaystyle;break;case"scriptstyle":Yn=Pa.scriptstyle;break;case"scriptscriptstyle":Yn=Pa.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Yn,this.smartFence=fn.smartFence,this.placeholderSymbol=fn.placeholderSymbol,this.colorMap=(Kn=fn.colorMap)!=null?Kn:xn=>xn,this.backgroundColorMap=(Hr=fn.backgroundColorMap)!=null?Hr:xn=>xn,this.getMacro=fn.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===cu||this.mathstyle.id===Sl}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(rs[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 ee=this.registers[y];return typeof ee=="object"&&"glue"in ee?ee:typeof ee=="object"&&"dimension"in ee?{glue:{dimension:ee.dimension}}:typeof ee=="number"?{glue:{dimension:ee}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(y)}getRegisterAsEm(y,b){return El(this.getRegisterAsDimension(y),b)}getRegisterAsDimension(y){var b;if((b=this.registers)!=null&&b[y]){const ee=this.registers[y];return typeof ee=="object"&&"glue"in ee?ee.glue:typeof ee=="object"&&"dimension"in ee?ee:typeof ee=="number"?{dimension:ee}: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 ee=1;"factor"in y&&y.factor!==1&&y.factor!==void 0&&(ee=y.factor);const ce=b.getRegister(y.register);if(ce===void 0)return;if(typeof ce=="string")return{string:Number(ce).toString()+ce};if(typeof ce=="number")return{number:ee*ce};const _e=b.evaluate(ce);if(_e!==void 0)return"string"in _e?{string:Number(ce).toString()+_e.string}:"number"in _e?{number:ee*_e.number}:"dimension"in _e?oe(ie({},_e),{dimension:ee*_e.dimension}):"glue"in _e?oe(ie({},_e),{glue:oe(ie({},_e.glue),{dimension:ee*_e.glue.dimension}),shrink:_e.shrink?oe(ie({},_e.shrink),{dimension:ee*_e.shrink.dimension}):void 0,grow:_e.grow?oe(ie({},_e.grow),{dimension:ee*_e.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 ee=this.toDimension(y);return ee===null?0:vs(ee,b)/ps}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,ee;if(y===null)return null;const ce=this.evaluate(y);return ce===void 0?null:"string"in ce?(ee=(b=this.colorMap)==null?void 0:b.call(this,ce.string))!=null?ee:ce.string:null}toBackgroundColor(y){var b,ee;if(y===null)return null;const ce=this.evaluate(y);return ce===void 0?null:"string"in ce?(ee=(b=this.backgroundColorMap)==null?void 0:b.call(this,ce.string))!=null?ee:ce.string:null}},uu=["body","above","below","superscript","subscript"];function dc(a){return typeof a=="string"&&uu.includes(a)}function Du(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var an=class Xc{constructor(y){var b,ee,ce,_e,je,et;this.type=y.type,typeof y.value=="string"&&(this.value=y.value),this.command=(ee=(b=y.command)!=null?b:this.value)!=null?ee:"",this.mode=(ce=y.mode)!=null?ce:"math",y.isFunction&&(this.isFunction=!0),y.limits&&(this.subsupPlacement=y.limits),this.style=ie({},y.style),this.displayContainsHighlight=(_e=y.displayContainsHighlight)!=null?_e:!1,this.captureSelection=(je=y.captureSelection)!=null?je:!1,this.skipBoundary=(et=y.skipBoundary)!=null?et:!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,ee){var ce;if(!b)return null;const _e=pf(b),je=[];for(const ot of _e){const gt=ot[0].style,wt=mf(y,ot,{style:{color:gt.color,backgroundColor:gt.backgroundColor,fontSize:gt.fontSize}});wt&&je.push(wt)}if(je.length===0)return null;const et=((ce=ee==null?void 0:ee.classes)!=null?ce:"").trim();return je.length===1&&!et&&!(ee!=null&&ee.type)?je[0].wrap(y):new Fn(je,{classes:et,type:ee==null?void 0:ee.type}).wrap(y)}static serialize(y,b){return Fs.serialize(y,b)}static commonAncestor(y,b){if(y===b||y.parent===b.parent)return y.parent;const ee=new WeakSet;let{parent:ce}=y;for(;ce;)ee.add(ce),ce=ce.parent;for(ce=b.parent;ce;){if(ee.has(ce))return ce;ce=ce.parent}console.assert(!!ce)}static fromJson(y){return typeof y=="string"?new Xc({type:"mord",value:y,mode:"math"}):new Xc(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=ie({},this.style)),this.verbatimLatex!==void 0&&(y.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(y.explicitSubsupPlacement=!0),this.isFunction&&(y.isFunction=!0),this.displayContainsHighlight&&(y.displayContainsHighlight=!0),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.skipBoundary&&(y.skipBoundary=!0),this.captureSelection&&(y.captureSelection=!0),this.args&&(y.args=Id(this.args)),this._branches)for(const b of Object.keys(this._branches))this._branches[b]&&(y[b]=this._branches[b].filter(ee=>ee.type!=="first").map(ee=>ee.toJson()));return y.type==="mord"&&Object.keys(y).length===2&&"value"in y?y.value:y}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(y){if(y){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:b}=this;for(;b;)b.parent||b._changeCounter++,"verbatimLatex"in b&&(b.verbatimLatex=void 0),b._children=void 0,b=b.parent}}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?ya([so(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?ya([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Fs.serialize(this.body,oe(ie({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Fs.serialize(this.above,y)}belowToLatex(y){return Fs.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=oe(ie({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const ee=Fs.serialize(this.subscript,y);ee.length===0?b+="_{}":ee.length===1?/^[0-9]$/.test(ee)?b+=`_${ee}`:b+=`_{${ee}}`:b+=`_{${ee}}`}if(this.branch("superscript")!==void 0){const ee=Fs.serialize(this.superscript,y);ee.length===0?b+="^{}":ee.length===1?ee==="\u2032"?b+="^\\prime ":ee==="\u2033"?b+="^\\doubleprime ":/^[0-9]$/.test(ee)?b+=`^${ee}`:b+=`^{${ee}}`:b+=`^{${ee}}`}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(dc(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of uu)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(dc(y)),dc(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 Du(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Du(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 ee=typeof this.style.verbatimColor=="string",ce=typeof this.style.verbatimBackgroundColor=="string",_e=ie(ie({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete _e.variant,delete _e.variantStyle,ce||delete _e.verbatimBackgroundColor,ee||delete _e.verbatimColor,_e}applyStyle(y){this.isDirty=!0,this.style=ie(ie({},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,ee;return this.hasEmptyBranch("body")?this:(console.assert(((y=this.body)==null?void 0:y[0].type)==="first"),(ee=(b=this.body[1])==null?void 0:b.getInitialBaseElement())!=null?ee: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 ee;if(!y||(console.assert(dc(b)),!dc(b)))return;console.assert(((ee=y[0])==null?void 0:ee.type)!=="first");const ce=[this.makeFirstAtom(b),...y];this._branches?this._branches[b]=ce:this._branches={[b]:ce};for(const _e of y)_e.parent=this,_e.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new Xc({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 ee=this.createBranch(b.parentBranch);ee.splice(ee.indexOf(b),0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildAfter(y,b){console.assert(b.parentBranch!==void 0);const ee=this.createBranch(b.parentBranch);ee.splice(ee.indexOf(b)+1,0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildren(y,b){const ee=this.createBranch(b);for(const ce of y)ce.parent=this,ce.parentBranch=b,ee.push(ce);this.isDirty=!0}addChildrenAfter(y,b){console.assert(y.length===0||y[0].type!=="first"),console.assert(b.parentBranch!==void 0);const ee=this.createBranch(b.parentBranch);ee.splice(ee.indexOf(b)+1,0,...y),this.isDirty=!0;for(const ce of y)ce.parent=this,ce.parentBranch=b.parentBranch;return y[y.length-1]}removeBranch(y){const b=this.branch(y);if(dc(y)&&(this._branches[y]=void 0),!b)return[];for(const ee of b)ee.parent=void 0,ee.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),ee=b.indexOf(y);console.assert(ee>=0),b.splice(ee,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 uu)if(this._branches[b])for(const ee of this._branches[b])y.push(...ee.children),y.push(ee);return this._children=y,y}render(y){if(this.type==="first"&&!y.atomIdsSettings)return null;const b=dt(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const ee=new Da({parent:y},this.style);let ce=this.createBox(ee,{classes:this.parent?"":"ML__base"});return ce?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(ce=this.attachSupsub(ee,{base:ce})),ce.wrap(ee)):null}attachSupsub(y,b){var ee;const ce=b.base,_e=this.superscript,je=this.subscript;if(!_e&&!je)return ce;let et=null,ot=null;const gt=(ee=b.isCharacterBox)!=null?ee:this.isCharacterBox();let wt=0;if(_e){const Zr=new Da({parent:y,mathstyle:"superscript"});et=Xc.createBox(Zr,_e),gt||(wt=ce.height-y.metrics.supDrop*Zr.scalingFactor)}let jt=0;if(je){const Zr=new Da({parent:y,mathstyle:"subscript"});ot=Xc.createBox(Zr,je),gt||(jt=ce.depth+y.metrics.subDrop*Zr.scalingFactor)}let Vt;y.isDisplayStyle?Vt=y.metrics.sup1:y.isCramped?Vt=y.metrics.sup3:Vt=y.metrics.sup2;const ar=.5/ps/y.scalingFactor;let dr=null;if(ot&&et){wt=Math.max(wt,Vt,et.depth+.25*y.metrics.xHeight),jt=Math.max(jt,y.metrics.sub2);const Zr=y.metrics.defaultRuleThickness;if(wt-et.depth-(ot.height-jt)<4*Zr){jt=4*Zr-(wt-et.depth)+ot.height;const Hr=.8*y.metrics.xHeight-(wt-et.depth);Hr>0&&(wt+=Hr,jt-=Hr)}const Kn=this.isExtensibleSymbol&&ce.italic?-ce.italic:0;dr=new qa({individualShift:[{box:ot,shift:jt,marginLeft:Kn},{box:et,shift:-wt}]}).wrap(y)}else ot&&!et?(jt=Math.max(jt,y.metrics.sub1,ot.height-.8*Xo),dr=new qa({shift:jt,children:[{box:ot,marginRight:ar,marginLeft:this.isCharacterBox()?-ce.italic:0}]})):!ot&&et&&(wt=Math.max(wt,Vt,et.depth+.25*Xo),dr=new qa({shift:-wt,children:[{box:et,marginRight:ar}]}));return new Fn([ce,new Fn(dr,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const ee=this.superscript?Xc.createBox(new Da({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ce=this.subscript?Xc.createBox(new Da({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!ee&&!ce?b.base.wrap(y):rd(y,oe(ie({},b),{above:ee,below:ce}))}bind(y,b){if(!b||y.isPhantom||this.value==="\u200B")return b;let ee=this.parent;for(;ee&&!ee.captureSelection;)ee=ee.parent;return ee!=null&&ee.captureSelection||(this.id||(this.id=y.makeID()),b.atomID=this.id),b}createBox(y,b){var ee,ce,_e,je;const et=(ee=this.value)!=null?ee:this.body,ot=(ce=b==null?void 0:b.boxType)!=null?ce:ou(this.type);let gt=(_e=b==null?void 0:b.classes)!=null?_e:"";this.mode==="text"&&(gt+=" ML__text");const wt=typeof et=="string"||et===void 0?new Fn(et!=null?et:null,{type:ot,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:oe(ie({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:gt}):(je=Xc.createBox(y,et,{type:ot,classes:gt}))!=null?je:new Fn(null);return y.isTight&&(wt.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(wt.italic=0),wt.right=wt.italic,this.bind(y,wt),this.caret&&!this.superscript&&!this.subscript&&(wt.caret=this.caret),wt}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 pf(a){let y;const b=[];let ee=[];for(const ce of a)if(!y&&!ce.style)ee.push(ce);else{const _e=ce.computedStyle;y&&_e.color===y.color&&_e.backgroundColor===y.backgroundColor&&_e.fontSize===y.fontSize?ee.push(ce):(ee.length>0&&b.push(ee),ee=[ce],y=_e)}return ee.length>0&&b.push(ee),b}function mf(a,y,b){var ee,ce,_e,je,et;if(!y||y.length===0)return null;const ot=new Da({parent:a},b.style),gt=!((ee=ot.atomIdsSettings)!=null&&ee.groupNumbers);let wt=[];if(y.length===1){const Vt=y[0],ar=Vt.render(ot);ar&&(gt&&Vt.isSelected&&ar.selected(!0),wt=[ar])}else{let Vt="",ar=!0;for(const dr of y){(ce=ot.atomIdsSettings)!=null&&ce.groupNumbers&&Vt&&(ar&&dr.isDigit()||!ar&&Dd(dr))&&(ot.atomIdsSettings.overrideID=Vt);const Zr=dr.render(ot);ot.atomIdsSettings&&(ot.atomIdsSettings.overrideID=void 0),Zr&&((_e=ot.atomIdsSettings)!=null&&_e.groupNumbers&&((dr.isDigit()||Dd(dr))&&(!Vt||ar!==dr.isDigit())&&(ar=dr.isDigit(),Vt=(je=dr.id)!=null?je:""),Vt&&(!(dr.isDigit()||Dd(dr))||!dr.hasEmptyBranch("superscript")||!dr.hasEmptyBranch("subscript"))&&(Vt="")),gt&&dr.isSelected&&Zr.selected(!0),wt.push(Zr))}}if(wt.length===0)return null;const jt=new Fn(wt,oe(ie({isTight:ot.isTight},b),{type:(et=b.type)!=null?et:"lift"}));return jt.isSelected=wt.every(Vt=>Vt.isSelected),jt.wrap(ot)}function Dd(a){return a.mode==="text"}function Id(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof an?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var fc=class km extends an{constructor(y,b,ee){super({type:"text",command:y,mode:"text",displayContainsHighlight:!0}),this.value=b,this.verbatimLatex=b,this.applyStyle(ee)}static fromJson(y){return new km(y.command,y.value,y.style)}render(y){const b=this.createBox(y);return this.caret&&(b.caret=this.caret),b}_serialize(y){var b;return(b=this.verbatimLatex)!=null?b:zt("text",this.value.codePointAt(0))}};function Iu(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let ee=0;for(;ee<b&&ah(a.ranges[ee],y.ranges[ee])==="equal";)ee++;return ee===b?"equal":"different"}}return"different"}function ah(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function ws(a){let y=1/0,b=-1/0;for(const ee of a.ranges)y=Math.min(y,ee[0],ee[1]),b=Math.max(b,ee[0],ee[1]);return[y,b]}function Cc(a){return typeof a=="number"&&!Number.isNaN(a)}function id(a){return Array.isArray(a)&&a.length===2}function ad(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function oh(a,y){const b=a.at(y);let ee;if(b){ee=b.mode;let ce=b.parent;for(;!ee&&ce;)ce&&(ee=ce.mode),ce=ce.parent}return ee}function gf(a,y){if(!y)return"";if(typeof y=="string")return y;if(!a||y.after===void 0)return y.value;let b=!1,ee=!1,ce=!1,_e=!1,je=!1,et=!1,ot=!1,gt=!1,wt=!1,jt=!1,Vt=!1,ar=!1,dr=!1,Zr=!1,Kn=!1,Hr=a[0],fn=0;for(;Hr!=null&&Hr.type&&/^(subsup|placeholder)$/.test(Hr.type);)fn+=1,Hr=a[fn];return b=!Hr||Hr.type==="first",Hr&&(Zr=Hr.mode==="text",ee=!Zr&&Hr.type==="mord"&&Fe.test(Hr.value),ce=!Zr&&Hr.type==="mord"&&/\d+$/.test(Hr.value),_e=!Zr&&Hr.isFunction,je=Hr.type==="genfrac",et=Hr.type==="surd",ot=Hr.type==="mbin",gt=Hr.type==="mrel",wt=Hr.type==="mop"||Hr.type==="operator"||Hr.type==="extensible-symbol",jt=Hr.type==="mpunct"||Hr.type==="minner",Vt=Hr.type==="array",ar=Hr.type==="mopen",dr=Hr.type==="mclose"||Hr.type==="leftright",Kn=Hr.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&ee||y.after.includes("digit")&&ce||y.after.includes("function")&&_e||y.after.includes("frac")&&je||y.after.includes("surd")&&et||y.after.includes("binop")&&ot||y.after.includes("relop")&>||y.after.includes("operator")&&wt||y.after.includes("punct")&&jt||y.after.includes("array")&&Vt||y.after.includes("openfence")&&ar||y.after.includes("closefence")&&dr||y.after.includes("text")&&Zr||y.after.includes("space")&&Kn?y.value:""}function Pd(a,y,b){return b?gf(a,b[y]):""}var vf={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\doubleprime}","'''":"^{\\prime\\prime\\prime}","''''":"^{\\prime\\prime\\prime\\prime}",alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:"\\pi",Pi:"\\Pi",theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:"\\nabla",grad:"\\nabla",del:"\\partial",deg:{after:"digit+space",value:"\\degree"},infty:"\\infty","\u221E":"\\infty",oo:{after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"\u2211":"\\sum",sum:"\\sum_{#?}^{#?}",int:"\\int_{#?}^{#?}",prod:"\\prod_{#?}^{#?}",sqrt:"\\sqrt{#?}","\u2206":"\\differentialD","\u2202":"\\differentialD",arcsin:"\\arcsin",arccos:"\\arccos",arctan:"\\arctan",arcsec:"\\arcsec",arccsc:"\\arccsc",arsinh:"\\arsinh",arcosh:"\\arcosh",artanh:"\\artanh",arcsech:"\\arcsech",arccsch:"\\arccsch",arg:"\\arg",ch:"\\ch",cosec:"\\cosec",cosh:"\\cosh",cot:"\\cot",cotg:"\\cotg",coth:"\\coth",csc:"\\csc",ctg:"\\ctg",cth:"\\cth",sec:"\\sec",sinh:"\\sinh",sh:"\\sh",tanh:"\\tanh",tg:"\\tg",th:"\\th",sin:"\\sin",cos:"\\cos",tan:"\\tan",lg:"\\lg",lb:"\\lb",log:"\\log",ln:"\\ln",exp:"\\exp",lim:"\\lim_{#?}",dx:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:"\\forall",EE:"\\exists","!EE":"\\nexists","&&":"\\land",xin:{after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},sint:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\sin t"},in:{after:"nothing+letter+closefence",value:"\\in"},"!in":"\\notin",NN:"\\mathbb{N}",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",xx:"\\times","+-":"\\pm","\u2260":"\\ne","!=":"\\ne","\u2265":"\\ge",">=":"\\ge","\u2264":"\\le","<=":"\\le","<<":"\\ll",">>":"\\gg","~~":"\\approx","\u2248":"\\approx","?=":"\\questeq","\xF7":"\\div","\xAC":"\\neg",":=":"\\coloneq","::":"\\Colon","(:":"\\langle",":)":"\\rangle",beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},nu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},\u00B5:"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega",\u03A9:"\\omega",forall:"\\forall",exists:"\\exists","!exists":"\\nexists",":.":"\\therefore",liminf:"\\liminf_{#?}",limsup:"\\limsup_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:"\\bmod{#?}","(mod":"\\pmod{#?}",max:"\\max",min:"\\min",erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:"\\operatorname{bessel}",mean:"\\operatorname{mean}",median:"\\operatorname{median}",fft:"\\operatorname{fft}",lcm:"\\operatorname{lcm}",gcd:"\\operatorname{gcd}",randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:"\\operatorname{Re}",Im:"\\operatorname{Im}",mm:{after:"nothing+digit+operator",value:"\\operatorname{mm}"},cm:{after:"nothing+digit+operator",value:"\\operatorname{cm}"},km:{after:"nothing+digit+operator",value:"\\operatorname{km}"},kg:{after:"nothing+digit+operator",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","-->...":"\\longrightarrow\\cdots","->":"\\to","|->":"\\mapsto","-->":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","*":"\\cdot","**":"\\star","***":"\\ast","//":"\\slash","\\\\":"\\backslash",setminus:"\\backslash","|><":"\\ltimes","><|":"\\rtimes","|><|":"\\bowtie","-:":"\\div",divide:"\\div","@":"\\circ","^^":"\\wedge","^^^":"\\bigwedge",vv:"\\vee",vvv:"\\bigvee",nn:"\\cap",nnn:"\\bigcap",uu:"\\cup",uuu:"\\bigcup","-=":"\\equiv","~=":"\\cong",lt:"<","lt=":"\\leq",gt:">","gt=":"\\geq","-<":"\\prec","-lt":"\\prec","-<=":"\\preceq",">-=":"\\succeq",prop:"\\propto",diamond:"\\diamond",square:"\\square",iff:"\\iff",sub:"\\subset",sup:"\\supset",sube:"\\subseteq",supe:"\\supseteq",uarr:"\\uparrow",darr:"\\downarrow",rarr:"\\rightarrow",rArr:"\\Rightarrow",larr:"\\leftarrow",lArr:"\\Leftarrow",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",aleph:"\\aleph",and:"\\land",or:"\\lor",not:"\\neg","_|_":"\\bot",TT:"\\top","|--":"\\vdash","|==":"\\models","|__":"\\lfloor","__|":"\\rfloor","|~":"\\lceil","~|":"\\rceil",">->":"\\rightarrowtail","->>":"\\twoheadrightarrow",">->>":"\\twoheadrightarrowtail",frac:"\\frac{#?}{#?}",cbrt:"\\sqrt[3]{#?}",nthroot:"\\sqrt[#?]{#?}"};function Pu(a,y){var b;let ee=(b=y==null?void 0:y.format)!=null?b:"auto";return ee==="auto"&&([ee,a]=bf(a)),ee==="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",Is(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function Is(a,y){var b,ee,ce;if(!a)return"";let _e=!1,je;const et=(b=y.inlineShortcuts)!=null?b:vf;if(!_e&&(a.startsWith("^")||a.startsWith("_"))&&(je=Ec(a.slice(1),{inlineShortcuts:et,noWrap:!0}),a=a[0]+"{"+je.match+"}",a+=Is(je.rest,y),_e=!0),_e||(je=a.match(/^(sqrt|\u221A)(.*)/),je&&(je=Ec(je[2],{inlineShortcuts:et,noWrap:!0}),a="\\sqrt{"+((ee=je.match)!=null?ee:"\\placeholder{}")+"}",a+=Is(je.rest,y),_e=!0)),_e||(je=a.match(/^(\\cbrt|\u221B)(.*)/),je&&(je=Ec(je[2],{inlineShortcuts:et,noWrap:!0}),a="\\sqrt[3]{"+((ce=je.match)!=null?ce:"\\placeholder{}")+"}",a+=Is(je.rest,y),_e=!0)),_e||(je=a.match(/^abs(.*)/),je&&(je=Ec(je[1],{inlineShortcuts:et,noWrap:!0}),a="\\left|"+je.match+"\\right|",a+=Is(je.rest,y),_e=!0)),_e||(je=a.match(/^["”“](.*?)["”“](.*)/),je&&(a="\\text{"+je[1]+"}",a+=Is(je[2],y),_e=!0)),_e||(je=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),je&&(a=yf(je[1],et),a+=Is(je[2],y),_e=!0)),!_e&&/^([fgh])[^a-zA-Z]/.test(a)&&(je=Ec(a.slice(1),{inlineShortcuts:et,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+je.match+"\\right)":a[0]+je.match,a+=Is(je.rest,y),_e=!0),_e||(je=a.match(/^([a-zA-Z]+)(.*)/),je&&(a=yf(je[1],et),a+=Is(je[2],y),_e=!0)),!_e)if(je=Ec(a,{inlineShortcuts:et,noWrap:!0}),je.match&&je.rest[0]==="/"){const ot=Ec(je.rest.slice(1),{inlineShortcuts:et,noWrap:!0});ot.match&&(a="\\frac{"+je.match+"}{"+ot.match+"}"+Is(ot.rest,y)),_e=!0}else je.match&&(a=a.startsWith("(")?"\\left("+je.match+"\\right)"+Is(je.rest,y):je.match+Is(je.rest,y),_e=!0);return _e||(je=a.match(/^(\s+)(.*)$/),je&&(a=" "+Is(je[2],y),_e=!0)),a}function Ec(a,y){let b="";a=a.trim();let ee=a,ce=a.charAt(0),_e={"(":")","{":"}","[":"]"}[ce];if(_e){let je=1,et=1;for(;et<a.length&&je>0;)a[et]===ce&&je++,a[et]===_e&&je--,et++;je===0?(y.noWrap&&ce==="("?b=Is(a.substring(1,et-1),y):(ce==="{"&&_e==="}"&&(ce="\\{",_e="\\}"),b="\\left"+ce+Is(a.substring(1,et-1),y)+"\\right"+_e),ee=a.slice(Math.max(0,et))):(b=a.substring(1,et),ee="")}else{let je=a.match(/^([a-zA-Z]+)/);if(je){let et=Pd(null,a,y.inlineShortcuts);if(et)return et=et.replace("_{#?}",""),et=et.replace("^{#?}",""),{match:et,rest:a.slice(et.length)}}if(je=a.match(/^([a-zA-Z])/),je)return{match:je[1],rest:a.slice(1)};if(je=a.match(/^(-)?\d+(\.\d*)?/),je)return{match:je[0],rest:a.slice(je[0].length)};/^\\(left|right)/.test(a)||(je=a.match(/^(\\[a-zA-Z]+)/),je&&(ee=a.slice(je[1].length),b=je[1]))}return{match:b,rest:ee}}function yf(a,y){let b=Pd(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var Ld=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Mc(a){const y=a.trim();for(const b of Ld)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 bf(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=Mc(a),y?["latex",a]:a.startsWith("`")&&a.endsWith("`")?(a=a.substring(1,a.length-1),["ascii-math",a]):a.includes("\\")?["latex",a]:/\$.+\$/.test(a)?["latex",`\\text{${a}}`]:[void 0,a]}var od="$$",sh="$$",lh=(a,y,b)=>(Ld.some(ee=>y.startsWith(ee[0])&&y.endsWith(ee[1]))||(y=`${od} ${y} ${sh}`),y),xf=class ih{constructor(y){ih._modes[y]=this}static onPaste(y,b,ee){var ce;if(!b.contentEditable&&b.userSelect==="none")return b.model.announce("plonk"),!1;if(typeof ee=="string"){const je=new DataTransfer;je.setData("text/plain",ee),ee=je}const _e=new ClipboardEvent("paste",{clipboardData:ee,cancelable:!0});return(ce=b.host)!=null&&ce.dispatchEvent(_e)?ih._modes[y].onPaste(b,ee):!1}static copyToClipboard(y,b){if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const ee=y.model,ce=ee.selectionIsCollapsed?[0,ee.lastOffset]:ws(ee.selection),_e=ee.getValue(ce,b);navigator.clipboard.writeText(_e).then(()=>{},()=>y.model.announce("plonk"))}static onCopy(y,b){var ee;if(!b.clipboardData)return;if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const ce=y.model,_e=ce.selectionIsCollapsed?[0,ce.lastOffset]:ws(ce.selection);let je=ce.getAtoms(_e);if(je.every(et=>et.mode==="text"||!et.mode))b.clipboardData.setData("text/plain",je.filter(et=>et instanceof fc).map(et=>et.value).join(""));else if(je.every(et=>et.mode==="latex"))b.clipboardData.setData("text/plain",ce.getAtoms(_e,{includeChildren:!0}).map(et=>{var ot;return(ot=et.value)!=null?ot:""}).join(""));else{let et;je.length===1&&je[0].verbatimLatex!==void 0?et=je[0].verbatimLatex:et=ce.getValue(_e,"latex-expanded"),b.clipboardData.setData("application/x-latex",et);try{b.clipboardData.setData("text/plain",y.options.onExport(y,et,_e))}catch(ot){}if(je.length===1){const ot=je[0];(ot.type==="root"||ot.type==="group")&&(je=ot.body.filter(gt=>gt.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(je.map(ot=>ot.toJson())))}catch(ot){}if((ee=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&ee.ComputeEngine){const ot=window.MathfieldElement.computeEngine;if(ot)try{const gt=ot.jsonSerializationOptions;ot.jsonSerializationOptions={metadata:["latex"]};const wt=ot.parse(ce.getValue(_e,"latex-unstyled"));ot.jsonSerializationOptions=gt;const jt=JSON.stringify(wt.json);jt&&b.clipboardData.setData("application/json",jt)}catch(gt){}}}b.preventDefault()}static insert(y,b,ee={}){var ce;const _e=ee.mode==="auto"?y.mode:(ce=ee.mode)!=null?ce:y.mode;return ih._modes[_e].insert(y,b,ee)}onPaste(y,b){return!1}insert(y,b,ee){return!1}};xf._modes={};var ta=xf,ch=[{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","^"]}],Rd={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function $l(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function zl(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 _c(a){const y=zl(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function Bd(a){var y;if(!a.parent)return"root";let b=(y=a.parent.id)!=null?y:"";return b+=typeof a.parentBranch=="string"?"-"+a.parentBranch:`-${a.parentBranch[0]}/${a.parentBranch[0]}`,b}function Nd(a,y,b){if(!y)return null;const ee=a.field.getBoundingClientRect(),ce=y.right-y.left,_e=y.bottom-y.top,je=Math.ceil(y.left-ee.left+a.field.scrollLeft*b),et=Math.ceil(y.top-ee.top);return{left:je,right:je+ce,top:et,bottom:et+_e}}function jd(a){const y=a.getBoundingClientRect(),b=parseInt(getComputedStyle(a).marginRight),ee={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 ee;for(const ce of a.children)if(ce.nodeType===1&&"atomId"in ce.dataset&&!ce.classList.contains("pstrut")){const _e=jd(ce);ee.left=Math.min(ee.left,_e.left),ee.right=Math.max(ee.right,_e.right),ee.top=Math.min(ee.top,_e.top),ee.bottom=Math.max(ee.bottom,_e.bottom)}return ee}function du(a,y){var b,ee;if(!y.id)return null;let ce=(ee=(b=a.atomBoundsCache)==null?void 0:b.get(y.id))!=null?ee:null;if(ce!==null)return ce;const _e=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ce=_e?jd(_e):null,a.atomBoundsCache&&(ce?a.atomBoundsCache.set(y.id,ce):a.atomBoundsCache.delete(y.id)),ce!=null?ce:null}function wf(a,y,b){const ee=new Map;for(const ce of a.model.getAtoms(y,{includeChildren:!0})){if(b!=null&&b.excludeAtomsWithBackground&&ce.style.backgroundColor)continue;const _e=a.field,je=_e.offsetWidth;let ot=Math.floor(_e.getBoundingClientRect().width)/je;ot=isNaN(ot)?1:ot;const gt=Nd(a,du(a,ce),ot);if(gt){const wt=Bd(ce);if(ee.has(wt)){const jt=ee.get(wt);ee.set(wt,{left:Math.min(jt.left,gt.left),right:Math.max(jt.right,gt.right),top:Math.min(jt.top,gt.top),bottom:Math.max(jt.bottom,gt.bottom)})}else ee.set(wt,gt)}}return[...ee.values()]}function Fd(a,y){return a.model.selection.ranges.reduce((b,ee)=>b.concat(...wf(a,ee,y)),[])}function $d(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function sd(a){let y=0,b=0;const ee=a.offsetWidth,ce=a.offsetHeight;for(;a instanceof HTMLElement;)y+=a.offsetTop,b+=a.offsetLeft,a=a.offsetParent;return new DOMRect(b,y,ee,ce)}var Sf=`@keyframes ML__caret-blink {
|
|
|
0%,
|
|
|
100% {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
50% {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
}
|
|
|
.ML__container {
|
|
|
display: inline-flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
align-items: flex-end;
|
|
|
min-height: 39px;
|
|
|
/* Need some room for the virtual keyboard toggle */
|
|
|
width: 100%;
|
|
|
/* Encourage browsers to consider allocating a hardware accelerated
|
|
|
layer for this element. */
|
|
|
isolation: isolate;
|
|
|
/* Prevent the browser from trying to interpret touch gestures in the field */
|
|
|
/* "Disabling double-tap to zoom removes the need for browsers to
|
|
|
delay the generation of click events when the user taps the screen." */
|
|
|
touch-action: none;
|
|
|
--_caret-color: var(--caret-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_selection-color: var(--selection-color, #000);
|
|
|
--_selection-background-color: var(--selection-background-color, hsl(var(--_hue), 70%, 85%));
|
|
|
--_text-highlight-background-color: var(--highlight-text, hsla(var(--_hue), 40%, 50%, 0.1));
|
|
|
--_contains-highlight-background-color: var(--contains-highlight-background-color, hsl(var(--_hue), 40%, 95%));
|
|
|
--_smart-fence-color: var(--smart-fence-color, currentColor);
|
|
|
--_smart-fence-opacity: var(--smart-fence-opacity, 0.5);
|
|
|
--_latex-color: var(--latex-color, hsl(var(--_hue), 80%, 40%));
|
|
|
--_correct-color: var(--correct-color, #10a000);
|
|
|
--_incorrect-color: var(--incorrect-color, #a01b00);
|
|
|
--_composition-background-color: var(--composition-background-color, #fff1c2);
|
|
|
--_composition-text-color: var(--composition-text-color, black);
|
|
|
--_composition-underline-color: var(--composition-underline-color, transparent);
|
|
|
}
|
|
|
/* This is the actual field content (formula) */
|
|
|
.ML__content {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
align-self: center;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
padding: 2px 3px 2px 1px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle,
|
|
|
.ML__menu-toggle {
|
|
|
box-sizing: border-box;
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
flex-shrink: 0;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
width: 34px;
|
|
|
height: 34px;
|
|
|
padding: 0;
|
|
|
margin-right: 4px;
|
|
|
cursor: pointer;
|
|
|
/* Avoid some weird blinking with :hover */
|
|
|
border-radius: 8px;
|
|
|
border: 1px solid transparent;
|
|
|
transition: background 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
color: hsl(var(--_hue), 40%, 50%);
|
|
|
fill: currentColor;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:hover,
|
|
|
.ML__menu-toggle:hover {
|
|
|
background: hsla(0, 0%, 70%, 0.3);
|
|
|
color: #333;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle > span,
|
|
|
.ML__menu-toggle > span {
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
}
|
|
|
/* The invisible element used to capture keyboard events. We're just trying
|
|
|
really hard to make sure it doesn't show. */
|
|
|
.ML__keyboard-sink {
|
|
|
display: inline-block;
|
|
|
resize: none;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
/* Need these for Microsoft Edge */
|
|
|
position: fixed;
|
|
|
clip: rect(0 0 0 0);
|
|
|
/* Need this to prevent iOS Safari from auto-zooming */
|
|
|
font-size: 1em;
|
|
|
font-family: KaTeX_Main;
|
|
|
line-height: 0.5;
|
|
|
/* On Chromium, if this is 0, no keyboard events are received */
|
|
|
}
|
|
|
[part="placeholder"] {
|
|
|
color: var(--neutral-400);
|
|
|
}
|
|
|
.ML__composition {
|
|
|
background: var(--_composition-background-color);
|
|
|
color: var(--_composition-text-color);
|
|
|
text-decoration: underline var(--_composition-underline-color);
|
|
|
}
|
|
|
.ML__caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__text-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__latex-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_latex-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.019em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__focused .ML__latex-caret::after,
|
|
|
.ML__focused .ML__text-caret::after,
|
|
|
.ML__focused .ML__caret::after {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.ML__focused .ML__text {
|
|
|
background: var(--_text-highlight-background-color);
|
|
|
}
|
|
|
/* When using smartFence, the anticipated closing fence is displayed
|
|
|
with this style */
|
|
|
.ML__smart-fence__close {
|
|
|
opacity: var(--_smart-fence-opacity);
|
|
|
color: var(--_smart-fence-color);
|
|
|
}
|
|
|
.ML__selected,
|
|
|
.ML__focused .ML__selected .ML__contains-caret,
|
|
|
.ML__focused .ML__selected .ML__smart-fence__close,
|
|
|
.ML__focused .ML__selected .ML__placeholder {
|
|
|
color: var(--_selection-color);
|
|
|
opacity: 1;
|
|
|
}
|
|
|
.ML__selection {
|
|
|
box-sizing: border-box;
|
|
|
background: var(--_selection-background-color) !important;
|
|
|
}
|
|
|
.ML__contains-caret.ML__close,
|
|
|
.ML__contains-caret.ML__open,
|
|
|
.ML__contains-caret > .ML__close,
|
|
|
.ML__contains-caret > .ML__open,
|
|
|
.ML__contains-caret .ML__sqrt-sign,
|
|
|
.ML__contains-caret .ML__sqrt-line {
|
|
|
color: var(--_caret-color);
|
|
|
}
|
|
|
.ML__contains-highlight {
|
|
|
box-sizing: border-box;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__focused .ML__contains-highlight {
|
|
|
background: var(--_contains-highlight-background-color);
|
|
|
}
|
|
|
.ML__raw-latex {
|
|
|
font-family: 'Berkeley Mono', 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
font-weight: 400;
|
|
|
font-size: 0.8em;
|
|
|
letter-spacing: -0.05em;
|
|
|
color: var(--_latex-color);
|
|
|
}
|
|
|
.ML__suggestion {
|
|
|
color: var(--neutral-500);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-visible.is-pressed:hover {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:focus {
|
|
|
outline: none;
|
|
|
border-radius: 8px;
|
|
|
border: 2px solid hsl(var(--_hue), 40%, 50%);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-pressed,
|
|
|
.ML__virtual-keyboard-toggle.is-active:hover,
|
|
|
.ML__virtual-keyboard-toggle.is-active {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to automatically show a
|
|
|
tooltip over a element on hover.
|
|
|
*/
|
|
|
[data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
[data-tooltip]::after {
|
|
|
content: attr(data-tooltip);
|
|
|
position: absolute;
|
|
|
display: block;
|
|
|
z-index: 2;
|
|
|
pointer-events: none;
|
|
|
right: auto;
|
|
|
top: calc(-100% - 4px);
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
border-radius: 4px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
text-align: center;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-style: normal;
|
|
|
font-weight: 400;
|
|
|
font-size: 13px;
|
|
|
/* Phone */
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
@media only screen and (max-width: 767px) {
|
|
|
[data-tooltip]::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
}
|
|
|
menu [data-tooltip]::after {
|
|
|
left: 100%;
|
|
|
top: 0%;
|
|
|
}
|
|
|
menu .ML__base {
|
|
|
cursor: default;
|
|
|
}
|
|
|
/** Don't display if we're tracking, i.e. have the pointer down */
|
|
|
.tracking [data-tooltip]:hover::after {
|
|
|
/* Use visibility, not display. Display will remove the after from the DOM, and the override below will not work */
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
/** But do display if tracking and inside a menu */
|
|
|
.tracking menu li[data-tooltip]:hover::after,
|
|
|
[data-tooltip]:hover::after {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
transition-property: opacity, scale;
|
|
|
transition-duration: 0.15s;
|
|
|
transition-delay: 1s;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__prompt {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.ML__editablePromptBox {
|
|
|
outline: 1px solid #acacac;
|
|
|
border-radius: 2px;
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__focusedPromptBox {
|
|
|
outline: highlight auto 1px;
|
|
|
}
|
|
|
.ML__lockedPromptBox {
|
|
|
background-color: rgba(142, 142, 141, 0.4);
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__correctPromptBox {
|
|
|
outline: 1px solid var(--_correct-color);
|
|
|
box-shadow: 0 0 5px var(--_correct-color);
|
|
|
}
|
|
|
.ML__incorrectPromptBox {
|
|
|
outline: 1px solid var(--_incorrect-color);
|
|
|
box-shadow: 0 0 5px var(--_incorrect-color);
|
|
|
}
|
|
|
.variant-submenu {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
padding: 8px;
|
|
|
}
|
|
|
.variant-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
text-align: center;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.insert-matrix-submenu {
|
|
|
display: grid;
|
|
|
padding: 8px;
|
|
|
align-content: center;
|
|
|
justify-content: center;
|
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
|
}
|
|
|
.insert-matrix-submenu [part=menu-item] {
|
|
|
font-size: 21px;
|
|
|
border: none;
|
|
|
border-radius: 0;
|
|
|
line-height: 21px;
|
|
|
text-align: center;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.border-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
line-height: 1.2;
|
|
|
text-align: center;
|
|
|
}
|
|
|
.swatches-submenu {
|
|
|
--_swatch-size: 2rem;
|
|
|
--_columns: 4;
|
|
|
display: flex;
|
|
|
flex-flow: wrap;
|
|
|
padding: 8px;
|
|
|
max-width: calc(var(--_columns) * (var(--_swatch-size) + 18px) + 16px);
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.menu-swatch {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
box-sizing: border-box;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
margin: 2px;
|
|
|
padding: 0;
|
|
|
background: var(--neutral-200);
|
|
|
}
|
|
|
.menu-swatch > .label {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
.menu-swatch > .label > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
min-width: var(--_swatch-size);
|
|
|
min-height: var(--_swatch-size);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.menu-swatch.active {
|
|
|
background: var(--neutral-100);
|
|
|
scale: 1.4;
|
|
|
}
|
|
|
.menu-swatch.active > .label > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.menu-swatch .ui-checkmark,
|
|
|
.menu-swatch .ui-mixedmark {
|
|
|
position: absolute;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
color: white;
|
|
|
}
|
|
|
.menu-swatch.dark-contrast .ui-checkmark,
|
|
|
.menu-swatch.dark-contrast .ui-mixedmark {
|
|
|
color: #000;
|
|
|
}
|
|
|
`,lo=`.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);
|
|
|
}
|
|
|
`,uh=`/* The element that display info while in latex mode */
|
|
|
#mathlive-suggestion-popover {
|
|
|
background-color: rgba(97, 97, 97);
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
border-radius: 8px;
|
|
|
position: fixed;
|
|
|
z-index: 1;
|
|
|
display: none;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
}
|
|
|
#mathlive-suggestion-popover.top-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
top: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-bottom: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.bottom-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
bottom: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-top: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-animated {
|
|
|
transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-visible {
|
|
|
display: flex;
|
|
|
}
|
|
|
@keyframes ML__fade-in {
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
/* The wrapper class for the entire content of the popover panel */
|
|
|
#mathlive-suggestion-popover ul {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
list-style: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
align-items: flex-start;
|
|
|
max-height: 400px;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
margin: 8px;
|
|
|
padding: 8px;
|
|
|
width: calc(100% - 16px - 16px);
|
|
|
column-gap: 1em;
|
|
|
border-radius: 8px;
|
|
|
cursor: pointer;
|
|
|
/* Since the content can be clicked on, provide feedback on hover */
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a {
|
|
|
color: #5ea6fd;
|
|
|
padding-top: 0.3em;
|
|
|
margin-top: 0.4em;
|
|
|
display: block;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a:hover {
|
|
|
color: #5ea6fd;
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li:hover,
|
|
|
#mathlive-suggestion-popover li.is-pressed,
|
|
|
#mathlive-suggestion-popover li.is-active {
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
}
|
|
|
/* The command inside a popover (inside a #mathlive-suggestion-popover) */
|
|
|
.ML__popover__command {
|
|
|
font-size: 1.6rem;
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
.ML__popover__current {
|
|
|
background: #5ea6fd;
|
|
|
color: #fff;
|
|
|
}
|
|
|
.ML__popover__latex {
|
|
|
font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
align-self: center;
|
|
|
}
|
|
|
/* The keyboard shortcuts for a symbol as displayed in the popover */
|
|
|
.ML__popover__keybinding {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 0.8em;
|
|
|
opacity: 0.7;
|
|
|
}
|
|
|
/* Style for the character that joins the modifiers of a keyboard shortcut
|
|
|
(usually a "+" sign)*/
|
|
|
.ML__shortcut-join {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
`,fu=`/* 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);*/
|
|
|
}
|
|
|
`,dh=`.ML__keyboard {
|
|
|
--_keyboard-height: 0;
|
|
|
--_keyboard-zindex: var(--keyboard-zindex, 105);
|
|
|
--_accent-color: var(--keyboard-accent-color, #0c75d8);
|
|
|
--_background: var(--keyboard-background, #cacfd7);
|
|
|
--_border: var(--keyboard-border, #ddd);
|
|
|
--_padding-horizontal: var(--keyboard-padding-horizontal, 0px);
|
|
|
--_padding-top: var(--keyboard-padding-top, 5px);
|
|
|
--_padding-bottom: var(--keyboard-padding-bottom, 0px);
|
|
|
--_row-padding-left: var(--keyboard-row-padding-left, 0px);
|
|
|
--_row-padding-right: var(--keyboard-row-padding-right, 0px);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
|
|
|
--_toolbar-text-active: var(--keyboard-toolbar-text-active, var(--_accent-color));
|
|
|
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
|
|
|
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
|
|
|
--_toolbar-font-size: var(--keyboard-toolbar-font-size, '135%');
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
|
|
|
--_keycap-background: var(--keycap-background, white);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
|
|
|
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
|
|
|
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
|
|
|
--_keycap-border: var(--keycap-border, #e5e6e9);
|
|
|
--_keycap-border-bottom: var(--keycap-border-bottom, #8d8f92);
|
|
|
--_keycap-text: var(--keycap-text, #000);
|
|
|
--_keycap-text-active: var(--keycap-text-active, #fff);
|
|
|
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
|
|
|
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
|
|
|
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
|
|
|
--_keycap-primary-background: var(--keycap-primary-background, var(--_accent-color));
|
|
|
--_keycap-primary-text: var(--keycap-primary-text, #ddd);
|
|
|
--_keycap-primary-background-hover: var(--keycap-primary-background-hover, #0d80f2);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
|
|
|
--_keycap-height: var(--keycap-height, 60px);
|
|
|
/* Keycap width (incl. margin) */
|
|
|
--_keycap-max-width: var(--keycap-max-width, 100px);
|
|
|
--_keycap-gap: var(--keycap-gap, 8px);
|
|
|
--_keycap-font-size: var(--keycap-font-size, clamp(16px, 4cqw, 24px));
|
|
|
--_keycap-small-font-size: var(--keycap-small-font-size, calc(var(--keycap-font-size) * 0.8));
|
|
|
--_keycap-extra-small-font-size: var(--keycap-extra-small-font-size, calc(var(--keycap-font-size) / 1.42));
|
|
|
--_variant-panel-background: var(--variant-panel-background, #fff);
|
|
|
--_variant-keycap-text: var(--variant-keycap-text, var(--_keycap-text));
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
|
|
|
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 70px);
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 30px);
|
|
|
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 12px);
|
|
|
--_keycap-shift-font-size: var(--keycap-shift-font-size, 16px);
|
|
|
--_keycap-shift-color: var(--keycap-shift-color, var(--_accent-color));
|
|
|
--_box-placeholder-color: var(--box-placeholder-color, var(--_accent-color));
|
|
|
--_box-placeholder-pressed-color: var(--box-placeholder-pressed-color, var(--keycap-text-pressed));
|
|
|
}
|
|
|
.is-math-mode .MLK__rows .if-text-mode,
|
|
|
.is-text-mode .MLK__rows .if-math-mode {
|
|
|
display: none;
|
|
|
}
|
|
|
.if-can-undo,
|
|
|
.if-can-redo,
|
|
|
.if-can-copy,
|
|
|
.if-can-cut,
|
|
|
.if-can-paste {
|
|
|
opacity: 0.4;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.can-undo .if-can-undo,
|
|
|
.can-redo .if-can-redo,
|
|
|
.can-copy .if-can-copy,
|
|
|
.can-cut .if-can-cut,
|
|
|
.can-paste .if-can-paste {
|
|
|
opacity: 1;
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
body > .ML__keyboard {
|
|
|
position: fixed;
|
|
|
--_padding-bottom: calc(var(--keyboard-padding-bottom, 0px) + env(safe-area-inset-bottom, 0));
|
|
|
}
|
|
|
body > .ML__keyboard.is-visible > .MLK__backdrop {
|
|
|
box-shadow: 0 -5px 6px rgba(0, 0, 0, 0.08);
|
|
|
border-top: 1px solid var(--_border);
|
|
|
}
|
|
|
body > .ML__keyboard.backdrop-is-transparent.is-visible > .MLK__backdrop {
|
|
|
box-shadow: none;
|
|
|
border: none;
|
|
|
}
|
|
|
body > .ML__keyboard.is-visible.animate > .MLK__backdrop {
|
|
|
transition: 0.28s cubic-bezier(0, 0, 0.2, 1);
|
|
|
transition-property: transform, opacity;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__keyboard {
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
z-index: var(--_keyboard-zindex);
|
|
|
box-sizing: border-box;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
line-height: 1;
|
|
|
overflow-wrap: unset;
|
|
|
text-align: left;
|
|
|
vertical-align: baseline;
|
|
|
cursor: auto;
|
|
|
white-space: pre;
|
|
|
box-shadow: none;
|
|
|
opacity: 1;
|
|
|
transform: none;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.ML__keyboard :where(div) {
|
|
|
box-sizing: border-box;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
line-height: 1;
|
|
|
overflow-wrap: unset;
|
|
|
text-align: left;
|
|
|
vertical-align: baseline;
|
|
|
cursor: auto;
|
|
|
white-space: pre;
|
|
|
box-shadow: none;
|
|
|
transform: none;
|
|
|
}
|
|
|
.MLK__backdrop {
|
|
|
position: absolute;
|
|
|
bottom: calc(-1 * var(--_keyboard-height));
|
|
|
width: 100%;
|
|
|
height: var(--_keyboard-height);
|
|
|
box-sizing: border-box;
|
|
|
padding-top: var(--_padding-top);
|
|
|
padding-bottom: var(--_padding-bottom);
|
|
|
padding-left: var(--_padding-horizontal);
|
|
|
padding-right: var(--_padding-horizontal);
|
|
|
opacity: 0;
|
|
|
visibility: hidden;
|
|
|
transform: translate(0, 0);
|
|
|
background: var(--_background);
|
|
|
}
|
|
|
.backdrop-is-transparent .MLK__backdrop {
|
|
|
background: transparent;
|
|
|
}
|
|
|
/* If a custom layout has a custom container/backdrop
|
|
|
(backdrop-is-transparent), make sure to let pointer event go through. */
|
|
|
.backdrop-is-transparent .MLK__plate {
|
|
|
background: transparent;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
/* If a custom layout has a custom container/backdrop, make sure to
|
|
|
allow pointer events on it. */
|
|
|
.backdrop-is-transparent .MLK__layer > div > div {
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
.ML__keyboard.is-visible > .MLK__backdrop {
|
|
|
transform: translate(0, calc(-1 * var(--_keyboard-height)));
|
|
|
opacity: 1;
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.caps-lock-indicator {
|
|
|
display: none;
|
|
|
width: 8px;
|
|
|
height: 8px;
|
|
|
background: #0cbc0c;
|
|
|
box-shadow: inset 0 0 4px 0 #13ca13, 0 0 4px 0 #a9ef48;
|
|
|
border-radius: 8px;
|
|
|
right: 8px;
|
|
|
top: 8px;
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__keyboard.is-caps-lock .caps-lock-indicator {
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__keyboard.is-caps-lock .shift {
|
|
|
background: var(--_keycap-background-active);
|
|
|
color: var(--_keycap-text-active);
|
|
|
}
|
|
|
.MLK__plate {
|
|
|
position: absolute;
|
|
|
top: var(--_padding-top);
|
|
|
left: var(--_padding-horizontal);
|
|
|
width: calc(100% - 2 * var(--_padding-horizontal));
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
box-sizing: border-box;
|
|
|
container-type: inline-size;
|
|
|
touch-action: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
pointer-events: all;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 16px;
|
|
|
/* Size of toolbar labels */
|
|
|
font-weight: 400;
|
|
|
text-shadow: none;
|
|
|
}
|
|
|
.ML__box-placeholder {
|
|
|
color: var(--_box-placeholder-color);
|
|
|
}
|
|
|
.MLK__tex {
|
|
|
font-family: KaTeX_Main, KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__tex-math {
|
|
|
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.MLK__layer {
|
|
|
display: none;
|
|
|
outline: none;
|
|
|
}
|
|
|
.MLK__layer.is-visible {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
}
|
|
|
/* Keyboard layouts are made or rows of keys... */
|
|
|
.MLK__rows {
|
|
|
--_keycap-width: min(var(--_keycap-max-width), 10cqw);
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
border-collapse: separate;
|
|
|
clear: both;
|
|
|
border: 0;
|
|
|
margin: 0;
|
|
|
margin-bottom: var(--_keycap-gap);
|
|
|
gap: var(--_keycap-gap);
|
|
|
/* If the styling include, e.g., some shadows, they will be
|
|
|
cut off by the overflow. In that case, set the padding to
|
|
|
compensate. */
|
|
|
padding-left: var(--_row-padding-left);
|
|
|
padding-right: var(--_row-padding-right);
|
|
|
overflow: visible;
|
|
|
touch-action: none;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: center;
|
|
|
width: 100%;
|
|
|
gap: var(--_keycap-gap);
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
/* For the alignment of the text on some modifiers (e.g. shift) */
|
|
|
/* Extra spacing between two adjacent keys */
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .tex {
|
|
|
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .tex-math {
|
|
|
font-family: KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .big-op {
|
|
|
font-size: calc(1.25 * var(--_keycap-font-size));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .small {
|
|
|
font-size: var(--_keycap-small-font-size);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .bottom {
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .left {
|
|
|
align-items: flex-start;
|
|
|
padding-left: 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .right {
|
|
|
align-items: flex-end;
|
|
|
padding-right: 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w0 {
|
|
|
width: 0;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w5 {
|
|
|
width: calc(0.5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w15 {
|
|
|
width: calc(1.5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w20 {
|
|
|
width: calc(2 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w40 {
|
|
|
width: calc(4 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w50 {
|
|
|
width: calc(5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .MLK__keycap.w50 {
|
|
|
font-size: 80%;
|
|
|
padding-top: 10px;
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .separator {
|
|
|
background: transparent;
|
|
|
border: none;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .horizontal-rule {
|
|
|
height: 6px;
|
|
|
margin-top: 3px;
|
|
|
margin-bottom: 0;
|
|
|
width: 100%;
|
|
|
border-radius: 0;
|
|
|
border-top: var(--_horizontal-rule);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .ghost {
|
|
|
background: var(--_toolbar-background);
|
|
|
border: none;
|
|
|
color: var(--_toolbar-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .ghost:hover {
|
|
|
background: var(--_toolbar-background-hover);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .bigfnbutton {
|
|
|
font-size: var(--_keycap-extra-small-font-size);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift,
|
|
|
.MLK__rows > .MLK__row .action {
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
background: var(--_keycap-secondary-background);
|
|
|
border-color: var(--_keycap-secondary-border);
|
|
|
border-bottom-color: var(--_keycap-secondary-border-bottom);
|
|
|
line-height: 0.8;
|
|
|
font-size: min(1rem, var(--_keycap-small-font-size));
|
|
|
font-weight: 600;
|
|
|
padding: 8px 12px 8px 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift:hover,
|
|
|
.MLK__rows > .MLK__row .action:hover {
|
|
|
background: var(--_keycap-secondary-background-hover);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .action.primary {
|
|
|
background: var(--_keycap-primary-background);
|
|
|
color: var(--_keycap-primary-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .action.primary:hover {
|
|
|
background: var(--_keycap-primary-background-hover);
|
|
|
color: var(--_keycap-primary-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift.selected,
|
|
|
.MLK__rows > .MLK__row .action.selected {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift.selected.is-pressed,
|
|
|
.MLK__rows > .MLK__row .action.selected.is-pressed,
|
|
|
.MLK__rows > .MLK__row .shift.selected.is-active,
|
|
|
.MLK__rows > .MLK__row .action.selected.is-active {
|
|
|
color: white;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .warning {
|
|
|
background: #cd0030;
|
|
|
color: white;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .warning svg.svg-glyph {
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
min-height: 24px;
|
|
|
}
|
|
|
/** A regular keycap
|
|
|
* Use the :where() pseudo-class to give it a very low specifity,
|
|
|
* so that it can be overriden by custom style.
|
|
|
*/
|
|
|
:where(.MLK__rows > .MLK__row div) {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
justify-content: space-evenly;
|
|
|
width: calc(var(--_keycap-width) - var(--_keycap-gap));
|
|
|
height: var(--_keycap-height);
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
vertical-align: top;
|
|
|
text-align: center;
|
|
|
float: left;
|
|
|
color: var(--_keycap-text);
|
|
|
fill: currentColor;
|
|
|
font-size: var(--_keycap-font-size);
|
|
|
background: var(--_keycap-background);
|
|
|
border: 1px solid var(--_keycap-border);
|
|
|
border-bottom-color: var(--_keycap-border-bottom);
|
|
|
border-radius: 6px;
|
|
|
cursor: pointer;
|
|
|
touch-action: none;
|
|
|
/* Keys with a variants panel */
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div):hover {
|
|
|
overflow: visible;
|
|
|
background: var(--_keycap-background-hover);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) .ML__latex {
|
|
|
pointer-events: none;
|
|
|
touch-action: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) svg.svg-glyph {
|
|
|
margin: 8px 0;
|
|
|
width: 20px;
|
|
|
height: 20px;
|
|
|
min-height: 20px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) svg.svg-glyph-lg {
|
|
|
margin: 8px 0;
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
min-height: 24px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__tex-math {
|
|
|
font-size: 25px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).is-pressed {
|
|
|
background: var(--_keycap-background-pressed);
|
|
|
color: var(--_keycap-text-pressed);
|
|
|
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed {
|
|
|
z-index: calc(var(--_keyboard-zindex) - 5);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active aside,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active aside,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed aside,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed aside {
|
|
|
display: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed .MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).shift.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed {
|
|
|
background: var(--_keycap-background-pressed);
|
|
|
color: var(--_keycap-text-pressed);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).shift.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active {
|
|
|
background: var(--_keycap-background-active);
|
|
|
color: var(--_keycap-text-active);
|
|
|
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) small {
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) aside {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 10px;
|
|
|
line-height: 10px;
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to display a tooltip on hover.
|
|
|
Note there are a different set of tooltip rules for the keyboard toggle
|
|
|
(it's in a different CSS tree) */
|
|
|
.ML__keyboard [data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]::after {
|
|
|
position: absolute;
|
|
|
display: inline-table;
|
|
|
content: attr(data-tooltip);
|
|
|
top: inherit;
|
|
|
bottom: 100%;
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
z-index: 2;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
border-radius: 2px;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-weight: 400;
|
|
|
font-size: 12px;
|
|
|
transition: all 0.15s cubic-bezier(0.4, 0, 1, 1) 1s;
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]:hover {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]:hover::after {
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
}
|
|
|
.MLK__toolbar {
|
|
|
align-self: center;
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
width: 100%;
|
|
|
max-width: 996px;
|
|
|
min-height: 32px;
|
|
|
/* Icons for undo/redo, etc. */
|
|
|
}
|
|
|
.MLK__toolbar svg {
|
|
|
height: 20px;
|
|
|
width: 20px;
|
|
|
}
|
|
|
.MLK__toolbar > .left {
|
|
|
position: relative;
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
flex-flow: row;
|
|
|
}
|
|
|
.MLK__toolbar > .right {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
flex-flow: row;
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
/* "button" in the toolbar */
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
color: var(--_toolbar-text);
|
|
|
fill: currentColor;
|
|
|
background: var(--_toolbar-background);
|
|
|
font-size: var(--_toolbar-font-size);
|
|
|
padding: 4px 15px;
|
|
|
cursor: pointer;
|
|
|
width: max-content;
|
|
|
min-width: 42px;
|
|
|
min-height: 34px;
|
|
|
border: none;
|
|
|
padding-left: 10px;
|
|
|
padding-right: 10px;
|
|
|
padding-bottom: 8px;
|
|
|
padding-top: 8px;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 4px;
|
|
|
margin-left: 4px;
|
|
|
margin-right: 4px;
|
|
|
border-radius: 8px;
|
|
|
box-shadow: none;
|
|
|
border-bottom: 2px solid transparent;
|
|
|
}
|
|
|
.MLK__toolbar > div > div:not(.disabled):not(.selected):hover {
|
|
|
background: var(--_toolbar-background-hover);
|
|
|
}
|
|
|
.MLK__toolbar > div > div.disabled svg,
|
|
|
.MLK__toolbar > div > div.disabled:hover svg,
|
|
|
.MLK__toolbar > div > div.disabled.is-pressed svg {
|
|
|
color: var(--_toolbar-text);
|
|
|
opacity: 0.2;
|
|
|
}
|
|
|
.MLK__toolbar > div > div:hover,
|
|
|
.MLK__toolbar > div > div:active,
|
|
|
.MLK__toolbar > div > div.is-pressed,
|
|
|
.MLK__toolbar > div > div.is-active {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
}
|
|
|
.MLK__toolbar > div > div.selected {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
background: var(--_toolbar-background-selected);
|
|
|
border-radius: 0;
|
|
|
border-bottom-color: var(--_toolbar-text-active);
|
|
|
padding-bottom: 4px;
|
|
|
margin-bottom: 8px;
|
|
|
}
|
|
|
/* This is the element that displays variants on press+hold */
|
|
|
.MLK__variant-panel {
|
|
|
visibility: hidden;
|
|
|
position: fixed;
|
|
|
display: flex;
|
|
|
flex-flow: row wrap-reverse;
|
|
|
justify-content: center;
|
|
|
align-content: center;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
bottom: auto;
|
|
|
top: 0;
|
|
|
box-sizing: content-box;
|
|
|
transform: none;
|
|
|
z-index: calc(var(--_keyboard-zindex) + 1);
|
|
|
touch-action: none;
|
|
|
max-width: 350px;
|
|
|
background: var(--_variant-panel-background);
|
|
|
text-align: center;
|
|
|
border-radius: 6px;
|
|
|
padding: 6px;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
transition: none;
|
|
|
}
|
|
|
.MLK__variant-panel.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.MLK__variant-panel.compact {
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 10px);
|
|
|
}
|
|
|
.MLK__variant-panel .item {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
font-size: var(--_variant-keycap-font-size);
|
|
|
height: var(--_variant-keycap-length);
|
|
|
width: var(--_variant-keycap-length);
|
|
|
margin: 0;
|
|
|
box-sizing: border-box;
|
|
|
border-radius: 5px;
|
|
|
border: 1px solid transparent;
|
|
|
background: transparent;
|
|
|
pointer-events: all;
|
|
|
cursor: pointer;
|
|
|
color: var(--_variant-keycap-text);
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
@media (max-height: 412px) {
|
|
|
.MLK__variant-panel .item {
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
}
|
|
|
}
|
|
|
.MLK__variant-panel .item .ML__latex {
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.MLK__variant-panel .item.is-active {
|
|
|
background: var(--_variant-keycap-background-active);
|
|
|
color: var(--_variant-keycap-text-active);
|
|
|
}
|
|
|
.MLK__variant-panel .item.is-pressed {
|
|
|
background: var(--_variant-keycap-background-pressed);
|
|
|
color: var(--_variant-keycap-text-pressed);
|
|
|
}
|
|
|
.MLK__variant-panel .item.small {
|
|
|
font-size: var(--_keycap-small-font-size);
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button {
|
|
|
box-sizing: border-box;
|
|
|
background: #fbfbfb;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
width: calc(100% - 12px);
|
|
|
height: calc(100% - 12px);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button:hover {
|
|
|
background: #f0f0f0;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button:hover > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.MLK__variant-panel .item.box > div,
|
|
|
.MLK__variant-panel .item.box > span {
|
|
|
border: 1px dashed rgba(0, 0, 0, 0.24);
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning {
|
|
|
min-height: 60px;
|
|
|
min-width: 60px;
|
|
|
background: #cd0030;
|
|
|
color: white;
|
|
|
padding: 5px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
border-radius: 5px;
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning.is-pressed,
|
|
|
.MLK__variant-panel .item .warning.is-active {
|
|
|
background: red;
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning svg.svg-glyph {
|
|
|
width: 50px;
|
|
|
height: 50px;
|
|
|
}
|
|
|
.MLK__variant-panel .item aside {
|
|
|
font-size: var(--_variant-keycap-aside-font-size);
|
|
|
line-height: 12px;
|
|
|
opacity: 0.78;
|
|
|
padding-top: 2px;
|
|
|
}
|
|
|
.MLK__keycap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.MLK__shift {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
right: 4px;
|
|
|
top: 4px;
|
|
|
font-size: var(--_keycap-shift-font-size);
|
|
|
color: var(--_keycap-shift-color);
|
|
|
}
|
|
|
.hide-shift .MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
@media (max-width: 414px) {
|
|
|
.MLK__variant-panel {
|
|
|
max-width: 350px;
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
}
|
|
|
}
|
|
|
/* @xs breakpoint: iPhone 5 */
|
|
|
@container (max-width: 414px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-gap: max(var(--_keycap-gap, 2px), 2px);
|
|
|
--_keycap-height: max(var(--_keycap-height), 42px);
|
|
|
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
font-size: 100%;
|
|
|
margin-left: 2px;
|
|
|
margin-right: 2px;
|
|
|
}
|
|
|
.MLK__rows .shift,
|
|
|
.MLK__rows .action {
|
|
|
font-size: 65%;
|
|
|
}
|
|
|
.MLK__rows .warning svg.svg-glyph {
|
|
|
width: 14px;
|
|
|
height: 14px;
|
|
|
min-height: 14px;
|
|
|
}
|
|
|
}
|
|
|
@container (max-width: 744px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-gap: max(var(--keycap-gap, 2px), 2px);
|
|
|
--_keycap-height: max(var(--keycap-height, 52px), 52px);
|
|
|
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
padding-left: 0;
|
|
|
padding-right: 0;
|
|
|
}
|
|
|
.MLK__tooltip::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.fnbutton {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.bigfnbutton {
|
|
|
font-size: calc(var(--_keycap-extra-small-font-size) / 1.55);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.small {
|
|
|
font-size: 13px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > aside {
|
|
|
display: none;
|
|
|
}
|
|
|
.MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
/* Medium breakpoint: larger phones */
|
|
|
@container (max-width: 768px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-height: max(var(--keycap-height, 42px), 42px);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > small {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
@media (max-height: 768px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-height: max(var(--keycap-height, 42px), 42px);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > small {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
@container (max-width: 1444px) {
|
|
|
.MLK__rows .if-wide {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
.ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
|
|
|
--_background: var(--keyboard-background, #151515);
|
|
|
--_border: var(--keyboard-border, transparent);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
|
|
|
--keyboard-toolbar-background-hover: #303030;
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
|
|
|
--_keycap-background: var(--keycap-background, #1f2022);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
|
|
|
--_keycap-border: var(--_keycap-border, transparent);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
|
|
|
--_keycap-text: var(--keycap-text, #e3e4e8);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
|
|
|
--keycap-secondary-border: transparent;
|
|
|
--keycap-secondary-border-bottom: transparent;
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #303030);
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
|
|
|
}
|
|
|
}
|
|
|
/* Same as the media query, but with a class */
|
|
|
[theme='dark'] .ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
|
|
|
--_background: var(--keyboard-background, #151515);
|
|
|
--_border: var(--keyboard-border, transparent);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
|
|
|
--keyboard-toolbar-background-hover: #303030;
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
|
|
|
--_keycap-background: var(--keycap-background, #1f2022);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
|
|
|
--_keycap-border: var(--_keycap-border, transparent);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
|
|
|
--_keycap-text: var(--keycap-text, #e3e4e8);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
|
|
|
--keycap-secondary-border: transparent;
|
|
|
--keycap-secondary-border-bottom: transparent;
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #303030);
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
|
|
|
}
|
|
|
[theme='light'] .ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0c75d8);
|
|
|
--_background: var(--keyboard-background, #cacfd7);
|
|
|
--_border: var(--keyboard-border, #ddd);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
|
|
|
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
|
|
|
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
|
|
|
--_keycap-background: var(--keycap-background, white);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
|
|
|
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
|
|
|
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
|
|
|
--_keycap-border: var(--_keycap-border, #e5e6e9);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, #8d8f92);
|
|
|
--_keycap-text: var(--keycap-text, #000);
|
|
|
--_keycap-text-active: var(--keycap-text-active, #fff);
|
|
|
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
|
|
|
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
|
|
|
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #fff);
|
|
|
--_variant-keycap-text: var(--variant-keycap-textvar, var(--_keycap-text));
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
|
|
|
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
|
|
|
}
|
|
|
`,ld=`:host {
|
|
|
--primary-color: #5898ff;
|
|
|
--primary-color-dimmed: #c0c0f0;
|
|
|
--primary-color-dark: var(--blue-500);
|
|
|
--primary-color-light: var(--blue-100);
|
|
|
--primary-color-reverse: #ffffff;
|
|
|
--secondary-color: #ff8a65;
|
|
|
--secondary-color-dimmed: #f0d5c5;
|
|
|
--secondary-color-dark: var(--orange-500);
|
|
|
--secondary-color-light: var(--orange-100);
|
|
|
--secondary-color-reverse: #ffffff;
|
|
|
--link-color: #5898ff;
|
|
|
--link-color-dimmed: #c5c5c5;
|
|
|
--link-color-dark: #121212;
|
|
|
--link-color-light: #e2e2e2;
|
|
|
--link-color-reverse: #ffffff;
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--neutral-100: #f5f5f5;
|
|
|
--neutral-200: #eeeeee;
|
|
|
--neutral-300: #e0e0e0;
|
|
|
--neutral-400: #bdbdbd;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #757575;
|
|
|
--neutral-700: #616161;
|
|
|
--neutral-800: #424242;
|
|
|
--neutral-900: #212121;
|
|
|
--red-25: #fff8f7;
|
|
|
--red-50: #fff1ef;
|
|
|
--red-100: #ffeae6;
|
|
|
--red-200: #ffcac1;
|
|
|
--red-300: #ffa495;
|
|
|
--red-400: #ff7865;
|
|
|
--red-500: #f21c0d;
|
|
|
--red-600: #e50018;
|
|
|
--red-700: #d30024;
|
|
|
--red-800: #bd002c;
|
|
|
--red-900: #a1002f;
|
|
|
--orange-25: #fffbf8;
|
|
|
--orange-50: #fff7f1;
|
|
|
--orange-100: #fff3ea;
|
|
|
--orange-200: #ffe1c9;
|
|
|
--orange-300: #ffcca2;
|
|
|
--orange-400: #ffb677;
|
|
|
--orange-500: #fe9310;
|
|
|
--orange-600: #f58700;
|
|
|
--orange-700: #ea7c00;
|
|
|
--orange-800: #dc6d00;
|
|
|
--orange-900: #ca5b00;
|
|
|
--brown-25: #fff8ef;
|
|
|
--brown-50: #fff1df;
|
|
|
--brown-100: #ffe9ce;
|
|
|
--brown-200: #ebcca6;
|
|
|
--brown-300: #cdaf8a;
|
|
|
--brown-400: #af936f;
|
|
|
--brown-500: #856a47;
|
|
|
--brown-600: #7f5e34;
|
|
|
--brown-700: #78511f;
|
|
|
--brown-800: #6e4200;
|
|
|
--brown-900: #593200;
|
|
|
--yellow-25: #fffdf9;
|
|
|
--yellow-50: #fffcf2;
|
|
|
--yellow-100: #fffaec;
|
|
|
--yellow-200: #fff2ce;
|
|
|
--yellow-300: #ffe8ab;
|
|
|
--yellow-400: #ffdf85;
|
|
|
--yellow-500: #ffcf33;
|
|
|
--yellow-600: #f1c000;
|
|
|
--yellow-700: #dfb200;
|
|
|
--yellow-800: #c9a000;
|
|
|
--yellow-900: #ad8a00;
|
|
|
--lime-25: #f4ffee;
|
|
|
--lime-50: #e9ffdd;
|
|
|
--lime-100: #ddffca;
|
|
|
--lime-200: #a8fb6f;
|
|
|
--lime-300: #94e659;
|
|
|
--lime-400: #80d142;
|
|
|
--lime-500: #63b215;
|
|
|
--lime-600: #45a000;
|
|
|
--lime-700: #268e00;
|
|
|
--lime-800: #007417;
|
|
|
--lime-900: #005321;
|
|
|
--green-25: #f5fff5;
|
|
|
--green-50: #ebffea;
|
|
|
--green-100: #e0ffdf;
|
|
|
--green-200: #a7ffa7;
|
|
|
--green-300: #5afa65;
|
|
|
--green-400: #45e953;
|
|
|
--green-500: #17cf36;
|
|
|
--green-600: #00b944;
|
|
|
--green-700: #00a34a;
|
|
|
--green-800: #008749;
|
|
|
--green-900: #00653e;
|
|
|
--teal-25: #f3ffff;
|
|
|
--teal-50: #e6fffe;
|
|
|
--teal-100: #d9fffe;
|
|
|
--teal-200: #8dfffe;
|
|
|
--teal-300: #57f4f4;
|
|
|
--teal-400: #43e5e5;
|
|
|
--teal-500: #17cfcf;
|
|
|
--teal-600: #00c2c0;
|
|
|
--teal-700: #00b5b1;
|
|
|
--teal-800: #00a49e;
|
|
|
--teal-900: #009087;
|
|
|
--cyan-25: #f7fcff;
|
|
|
--cyan-50: #eff8ff;
|
|
|
--cyan-100: #e7f5ff;
|
|
|
--cyan-200: #c2e6ff;
|
|
|
--cyan-300: #95d5ff;
|
|
|
--cyan-400: #61c4ff;
|
|
|
--cyan-500: #13a7ec;
|
|
|
--cyan-600: #069eda;
|
|
|
--cyan-700: #0095c9;
|
|
|
--cyan-800: #0088b2;
|
|
|
--cyan-900: #0a7897;
|
|
|
--blue-25: #f7faff;
|
|
|
--blue-50: #eef5ff;
|
|
|
--blue-100: #e5f1ff;
|
|
|
--blue-200: #bfdbff;
|
|
|
--blue-300: #92c2ff;
|
|
|
--blue-400: #63a8ff;
|
|
|
--blue-500: #0d80f2;
|
|
|
--blue-600: #0077db;
|
|
|
--blue-700: #006dc4;
|
|
|
--blue-800: #0060a7;
|
|
|
--blue-900: #005086;
|
|
|
--indigo-25: #f8f7ff;
|
|
|
--indigo-50: #f1efff;
|
|
|
--indigo-100: #eae7ff;
|
|
|
--indigo-200: #ccc3ff;
|
|
|
--indigo-300: #ac99ff;
|
|
|
--indigo-400: #916aff;
|
|
|
--indigo-500: #63c;
|
|
|
--indigo-600: #5a21b2;
|
|
|
--indigo-700: #4e0b99;
|
|
|
--indigo-800: #3b0071;
|
|
|
--indigo-900: #220040;
|
|
|
--purple-25: #fbf7ff;
|
|
|
--purple-50: #f8f0ff;
|
|
|
--purple-100: #f4e8ff;
|
|
|
--purple-200: #e4c4ff;
|
|
|
--purple-300: #d49aff;
|
|
|
--purple-400: #c36aff;
|
|
|
--purple-500: #a219e6;
|
|
|
--purple-600: #9000c4;
|
|
|
--purple-700: #7c009f;
|
|
|
--purple-800: #600073;
|
|
|
--purple-900: #3d0043;
|
|
|
--magenta-25: #fff8fb;
|
|
|
--magenta-50: #fff2f6;
|
|
|
--magenta-100: #ffebf2;
|
|
|
--magenta-200: #ffcddf;
|
|
|
--magenta-300: #ffa8cb;
|
|
|
--magenta-400: #ff7fb7;
|
|
|
--magenta-500: #eb4799;
|
|
|
--magenta-600: #da3689;
|
|
|
--magenta-700: #c82179;
|
|
|
--magenta-800: #b00065;
|
|
|
--magenta-900: #8a004c;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
/* @media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--label-color: #fff;
|
|
|
--active-label-color: #000;
|
|
|
--menu-bg: #525252;
|
|
|
--active-bg: #5898ff;
|
|
|
--active-bg-dimmed: #5c5c5c;
|
|
|
}
|
|
|
} */
|
|
|
:host {
|
|
|
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
|
|
|
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
|
|
|
'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
|
--ui-font-size: 14px;
|
|
|
--ui-line-height: 1.5;
|
|
|
--ui-letter-spacing: 0.007em;
|
|
|
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
|
|
|
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
|
|
|
--ui-layer-1: var(--neutral-100);
|
|
|
--ui-layer-2: var(--neutral-200);
|
|
|
--ui-layer-3: var(--neutral-300);
|
|
|
--ui-layer-4: var(--neutral-400);
|
|
|
--ui-layer-5: var(--neutral-500);
|
|
|
--ui-layer-6: var(--neutral-600);
|
|
|
--ui-border-color: var(--primary-color);
|
|
|
--ui-border-radius: 4px;
|
|
|
--ui-text: var(--neutral-900);
|
|
|
--ui-text-secondary: var(--neutral-700);
|
|
|
--ui-text-placeholder: var(--neutral-500);
|
|
|
--ui-text-muted: var(--neutral-300);
|
|
|
/** A field is a UI element in which a user can type data, for
|
|
|
* example an input or textarea element.
|
|
|
*/
|
|
|
--ui-field-bg: var(--neutral-100);
|
|
|
--ui-field-bg-hover: var(--neutral-100);
|
|
|
--ui-field-bg-disabled: var(--neutral-300);
|
|
|
--ui-field-bg-invalid: var(--red-100);
|
|
|
--ui-field-bg-focus: var(--neutral-100);
|
|
|
--ui-field-border: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-hover: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-disabled: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-invalid: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-focus: 0.5px solid var(--border-color);
|
|
|
--ui-menu-bg: var(--neutral-100);
|
|
|
--ui-menu-text: var(--neutral-900);
|
|
|
--ui-menu-bg-hover: var(--neutral-200);
|
|
|
--ui-menu-text-hover: var(--neutral-900);
|
|
|
/** The \`active\` state is used for the state of menu items
|
|
|
* when they are selected.
|
|
|
*/
|
|
|
--ui-menu-bg-active: var(--primary-color);
|
|
|
--ui-menu-text-active: var(--primary-color-reverse);
|
|
|
/** The \`active-muted\` set is used for the state of
|
|
|
* submenus when they are open.
|
|
|
*/
|
|
|
--ui-menu-bg-active-muted: var(--neutral-300);
|
|
|
--ui-menu-text-active-muted: var(--neutral-900);
|
|
|
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
|
|
|
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
|
|
|
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
|
|
|
--ui-menu-divider: 0.5px solid #c7c7c7;
|
|
|
/* var(--neutral-300); */
|
|
|
--ui-menu-z-index: 10000;
|
|
|
--page-bg: var(--neutral-100);
|
|
|
--content-bg: var(--neutral-200);
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
|
|
|
Noto is a Linux/Android font.
|
|
|
*/
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
|
|
|
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
|
|
|
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
|
|
|
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
|
|
|
}
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
|
|
|
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
|
|
|
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
|
|
|
}
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
|
|
|
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
|
|
|
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
|
|
|
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
|
|
|
}
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
|
|
|
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
|
|
|
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh),
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo),
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac),
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std),
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-size: 1rem;
|
|
|
--ui-line-height: 1.7;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
:dir(rtl) {
|
|
|
--ui-line-height: auto;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
`,fh=`.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;
|
|
|
}
|
|
|
`,fo;function Wc(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=lo;break;case"mathfield":y=Sf;break;case"environment-popover":y=Cf;break;case"suggestion-popover":y=uh;break;case"keystroke-caption":y=fu;break;case"virtual-keyboard":y=dh;break;case"ui":y=ld;break;case"menu":y=fh;break;default:debugger}return y}function hu(a){return fo||(fo={}),fo[a]||(fo[a]=new CSSStyleSheet,fo[a].replaceSync(Wc(a))),fo[a]}var hc;function _l(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(Wc(a))),window.document.head.appendChild(b);return}if(hc||(hc={}),((y=hc[a])!=null?y:0)!==0)hc[a]+=1;else{const b=hu(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],hc[a]=1}}function E(a){if("adoptedStyleSheets"in document&&hc!=null&&hc[a]&&(hc[a]-=1,hc[a]<=0)){const y=fo[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var te=class Tm extends an{constructor(y){var b;super(oe(ie({},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 Tm(y)}toJson(){return oe(ie({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const ee=new Da({parent:y,mathstyle:"cramp"},this.style),ce=(b=an.createBox(ee,this.body))!=null?b:new Fn("\u25A2",{style:this.style});let _e=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(_e=ce.skew);let je=Math.min(ce.height,Xo),et;if(this.svgAccent)et=rl(this.svgAccent),je=ee.metrics.bigOpSpacing1-je;else if(this.accent){const gt=new Fn(this.accent,{fontFamily:"Main-Regular"});gt.italic=0;const wt=this.accent===8407?" ML__accent-vec":"";et=new Fn(new Fn(gt),{classes:"ML__accent-body"+wt})}et=new qa({shift:0,children:[{box:new Fn(ce)},-je,{box:et,marginLeft:ce.left+2*_e,classes:["ML__center"]}]});const ot=new Fn(et,{type:"lift"});return this.caret&&(ot.caret=this.caret),this.bind(ee,ot.wrap(ee)),this.attachSupsub(ee,{base:ot})}},ve={"(":")","{":"}","[":"]","|":"|","\\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"},ge=Object.fromEntries(Object.entries(ve).map(([a,y])=>[y,a]));function Oe(a){var y;return(y={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[a])!=null?y:a.codePointAt(0)}function Je(a,y,b,ee){var ce;const je=new Fn(Oe(a),{fontFamily:"Main-Regular",isSelected:ee.isSelected,classes:"ML__small-delim "+((ce=ee.classes)!=null?ce:"")}).wrap(y);return b&&je.setTop((1-y.scalingFactor)*Go),je}function mt(a,y,b,ee,ce){var _e,je;const et=new Da({parent:ee,mathstyle:"textstyle"},ce==null?void 0:ce.style),ot=new Fn(Oe(a),{fontFamily:`Size${y}-Regular`,isSelected:ce.isSelected,classes:((_e=ce.classes)!=null?_e:"")+` ML__delim-size${y}`,type:(je=ce.type)!=null?je:"ignore"}).wrap(et);return b&&ot.setTop((1-et.scalingFactor)*Go),ot}function Mt(a,y,b,ee,ce){var _e;let je,et,ot,gt;je=ot=gt=Oe(a),et=null;let wt="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?ot=je=gt=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?ot=je=gt=8741:a==="\\uparrow"?ot=gt=9168:a==="\\Uparrow"?ot=gt=8214:a==="\\downarrow"?je=ot=9168:a==="\\Downarrow"?je=ot=8214:a==="\\updownarrow"?(je=8593,ot=9168,gt=8595):a==="\\Updownarrow"?(je=8657,ot=8214,gt=8659):a==="["||a==="\\lbrack"?(je=9121,ot=9122,gt=9123,wt="Size4-Regular"):a==="]"||a==="\\rbrack"?(je=9124,ot=9125,gt=9126,wt="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(ot=je=9122,gt=9123,wt="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(je=9121,ot=gt=9122,wt="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(ot=je=9125,gt=9126,wt="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(je=9124,ot=gt=9125,wt="Size4-Regular"):a==="("||a==="\\lparen"?(je=9115,ot=9116,gt=9117,wt="Size4-Regular"):a===")"||a==="\\rparen"?(je=9118,ot=9119,gt=9120,wt="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(je=9127,et=9128,gt=9129,ot=9130,wt="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(je=9131,et=9132,gt=9133,ot=9130,wt="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(je=9127,gt=9129,ot=9130,wt="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(je=9131,gt=9133,ot=9130,wt="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(je=9127,gt=9133,ot=9130,wt="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(je=9131,gt=9129,ot=9130,wt="Size4-Regular"):a==="\\surd"?(je=57345,gt=9143,ot=57344,wt="Size4-Regular"):a==="\\ulcorner"?(je=9484,ot=gt=32):a==="\\urcorner"?(je=9488,ot=gt=32):a==="\\llcorner"?(gt=9492,ot=je=32):a==="\\lrcorner"&&(je=9496,ot=je=32);const jt=cs(je,wt),Vt=jt.height+jt.depth,ar=cs(ot,wt),dr=ar.height+ar.depth,Zr=cs(gt,wt),Kn=Zr.height+Zr.depth;let Hr=0,fn=1;if(et!==null){const Ms=cs(et,wt);Hr=Ms.height+Ms.depth,fn=2}const Yn=Vt+Kn+Hr,xn=Math.max(0,Math.ceil((y-Yn)/(fn*dr))),wi=Yn+xn*fn*dr;let Ri=Go;b&&(Ri=Ri*ee.scalingFactor);const Ai=wi/2-Ri,La=.008,co=[];co.push({box:new Fn(gt,{fontFamily:wt})}),co.push(-La);const ti=new Fn(ot,{fontFamily:wt});if(et===null)for(let Ms=0;Ms<xn;Ms++)co.push({box:ti});else{for(let Ms=0;Ms<xn;Ms++)co.push({box:ti});co.push(-La),co.push({box:new Fn(et,{fontFamily:wt})}),co.push(-La);for(let Ms=0;Ms<xn;Ms++)co.push({box:ti})}co.push(-La),co.push({box:new Fn(je,{fontFamily:wt})});let Wl="";wt==="Size1-Regular"?Wl=" delim-size1":wt==="Size4-Regular"&&(Wl=" delim-size4");const Lc=new qa({bottom:Ai,children:co},{classes:Wl});return new Fn(Lc,oe(ie({},ce!=null?ce:{}),{classes:((_e=ce==null?void 0:ce.classes)!=null?_e:"")+" ML__delim-mult"}))}var Tt=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),Nt=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),ir=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),hr=[0,1.2,1.8,2.4,3];function Br(a,y,b,ee){return a===void 0||a==="."?bi(b,ee.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),Tt.has(a)||ir.has(a)?mt(a,y,!1,b,ee):Nt.has(a)?Mt(a,hr[y],!1,b,ee):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var Or=[{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}],on=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],En=[{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 ei(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function fi(a,y,b,ee){const ce={"-4":0,"-3":1,0:2}[ee.mathstyle.sizeDelta];for(let _e=ce;_e<b.length&&b[_e].type!=="stack";_e++){const je=cs(a,ei(b[_e]));if(je.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let et=je.height+je.depth;if(b[_e].type==="small"&&(b[_e].mathstyle==="scriptscriptstyle"?et*=Math.max(rs[Math.max(1,ee.size-2)],ee.minFontScale):b[_e].mathstyle==="scriptstyle"&&(et*=Math.max(rs[Math.max(1,ee.size-1)],ee.minFontScale))),et>y)return b[_e]}return b[b.length-1]}function vi(a,y,b,ee,ce,_e){if(!y||y.length===0||y===".")return bi(ce);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let je;ir.has(y)?je=Or:Tt.has(y)?je=En:je=on;const et=fi(Oe(y),b,je,ce),ot=new Da({parent:ce,mathstyle:et.mathstyle},_e==null?void 0:_e.style);return et.type==="small"?Je(y,ot,ee,oe(ie({},_e),{type:a})):et.type==="large"?mt(y,et.size,ee,ot,oe(ie({},_e),{type:a})):(console.assert(et.type==="stack"),Mt(y,b,ee,ot,oe(ie({},_e),{type:a})))}function oi(a,y,b,ee,ce,_e){if(y===".")return bi(ce,_e==null?void 0:_e.classes);const je=Go*ce.scalingFactor,et=901,ot=5/ps,gt=Math.max(b-je,ee+je),wt=Math.max(gt/500*et,2*gt-ot);return vi(a,y,wt,!0,ce,_e)}function bi(a,y){const b=new Fn(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new Da({parent:a,mathstyle:"textstyle"}))}var zi=class Am extends an{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 Am(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{}"}},Wi=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Ma=["cases","dcases","rcases"],ho=["align","align*","aligned","gather","gathered","split"],ys=["array","subequations","eqnarray"];function Po(a){return ys.concat(ho).concat(Ma).concat(Wi).includes(a)}function Zs(a){return Wi.includes(a)}function Us(a){return Ma.includes(a)}function is(a){return ho.includes(a)}function Vs(a,y,b){let ee=0;for(const gt of b)"align"in gt&&(ee+=1);let ce=0;const _e=[];for(const gt of y){let wt=0;for(ce=Math.max(ce,Math.min(gt.length,ee));wt<gt.length;){const jt=[],Vt=Math.min(gt.length,wt+ee);for(;wt<Vt;){const ar=gt[wt];ar.length===0?jt.push([new an({type:"first",mode:a.mode})]):ar[0].type!=="first"?jt.push([new an({type:"first",mode:a.mode}),...ar]):(console.assert(!ar.slice(1).some(dr=>dr.type==="first")),jt.push(ar)),wt+=1}_e.push(jt)}}_e.length>0&&_e[_e.length-1].length===1&&_e[_e.length-1][0].length===1&&_e[_e.length-1][0][0].type==="first"&&_e.pop();const je=[];for(const gt of _e){if(gt.length!==ce)for(let wt=gt.length;wt<ce;wt++)gt.push([new an({type:"first",mode:a.mode}),new zi]);je.push(gt)}let et=0,ot=0;for(const gt of je){ot=0;for(const wt of gt){for(const jt of wt)jt.parent=a,jt.parentBranch=[et,ot];ot+=1}et+=1}return a.isDirty=!0,je}var la=class Om extends an{constructor(y,b,ee,ce={}){var _e;super({type:"array"}),this.environmentName=y,this.rowGaps=ee,ce.mathstyleName&&(this.mathstyleName=ce.mathstyleName),ce.columns&&(ce.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=ce.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=Vs(this,b,this.colFormat),ce.leftDelim&&(this.leftDelim=ce.leftDelim),ce.rightDelim&&(this.rightDelim=ce.rightDelim),ce.arraycolsep!==void 0&&(this.arraycolsep=ce.arraycolsep),this.colSeparationType=ce.colSeparationType,ce.arraystretch!==void 0&&(this.arraystretch=ce.arraystretch),this.minColumns=(_e=ce.minColumns)!=null?_e:1}static fromJson(y){return new Om(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=oe(ie({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(b=>b.map(ee=>ee.map(ce=>ce.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(Du(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return Du(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(dc(y))return super.removeBranch(y);const b=this.branch(y);return this.array[y[0]][y[1]]=void 0,b.forEach(ee=>{ee.parent=void 0,ee.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 ee of b)if(ee)for(const ce of ee)y.push(...ce.children),y.push(ce);return[...y,...super.children]}render(y){var b,ee,ce,_e,je,et;const ot=new Da({parent:y,mathstyle:this.mathstyleName},this.style),gt=ot.getRegisterAsEm("arrayrulewidth"),wt=ot.getRegisterAsEm("arraycolsep"),jt=ot.getRegisterAsEm("doublerulesep"),Vt=(ee=(b=this.arraystretch)!=null?b:ot.getRegisterAsNumber("arraystretch"))!=null?ee:1;let ar=typeof this.arraycolsep=="number"?this.arraycolsep:wt;this.colSeparationType==="small"&&(ar=.2778*(new Da({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const dr=Vt*tl,Zr=.7*dr,Kn=.3*dr;let Hr=0;const fn=[];let Yn=0;const xn=this.array.length;for(let mo=0;mo<xn;++mo){const qo=this.array[mo];Yn=Math.max(Yn,qo.length);const _s=new Da({parent:ot,mathstyle:this.mathstyleName},this.style);let Rc=Zr/_s.scalingFactor,Bc=Kn/_s.scalingFactor;const Nc={cells:[],height:0,depth:0,pos:0};for(const gc of qo){const tp=(ce=an.createBox(_s,gc,{type:"ignore"}))!=null?ce:new Fn(null,{type:"ignore"});Bc=Math.max(Bc,tp.depth),Rc=Math.max(Rc,tp.height),Nc.cells.push(tp)}let jc=(_e=El(this.rowGaps[mo]))!=null?_e:0;jc>0&&(jc+=Kn,Bc=Math.max(Bc,jc),jc=0),mo<xn-1&&!Zs(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Bc+=ot.getRegisterAsEm("jot")),Nc.height=Rc,Nc.depth=Bc,Hr+=Rc,Nc.pos=Hr,Hr+=Bc+jc,fn.push(Nc)}const wi=Hr/2+Go,Ri=[];for(let mo=0;mo<Yn;mo++){const qo=[];for(const _s of fn){const Rc=_s.cells[mo];Rc.depth=_s.depth,Rc.height=_s.height,qo.push({box:Rc,shift:_s.pos-wi})}qo.length>0&&Ri.push(new qa({individualShift:qo}))}const Ai=[];let La=!1,co=!1,ti=0,Wl=!this.leftDelim;const{colFormat:Lc}=this;for(const mo of Lc){if("align"in mo&&ti>=Ri.length)break;if("align"in mo)La?Ai.push(Lo(2*ar)):(co||Wl)&&Ai.push(Lo(ar)),Ai.push(new Fn(Ri[ti],{classes:"col-align-"+mo.align})),ti++,La=!0,co=!1,Wl=!1;else if("gap"in mo){if(typeof mo.gap=="number")Ai.push(Lo(mo.gap));else{const qo=zo(y,fn,wi,mo.gap);qo&&Ai.push(qo)}La=!1,co=!1,Wl=!1}else if("separator"in mo){const qo=new Fn(null,{classes:"vertical-separator"});qo.height=Hr,qo.setStyle("height",Hr,"em"),qo.setStyle("border-right",`${gt}em ${mo.separator} currentColor`),qo.setStyle("vertical-align",-(Hr-wi),"em");let _s=0;co?_s=jt-gt:La&&(_s=ar-gt),qo.left=_s,Ai.push(qo),La=!1,co=!0,Wl=!1}}La&&!this.rightDelim&&Ai.push(Lo(ar));const tc=new Fn(Ai,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(tc.caret=this.caret),this.bind(y,tc);const Ms=tc.height,Zl=tc.depth,hl=this.bind(y,new Fn([this.bind(y,oi("open",(je=this.leftDelim)!=null?je:".",Ms,Zl,ot,{isSelected:this.isSelected})),tc,this.bind(y,oi("close",(et=this.rightDelim)!=null?et:".",Ms,Zl,ot,{isSelected:this.isSelected}))],{type:"ord"}));return hl?(hl.setStyle("display","inline-block"),this.caret&&(hl.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:hl}))):null}_serialize(y){var b;const ee=[];if(this.environmentName==="lines"?ee.push("{\\displaylines"):ee.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(ee.push("{"),this.colFormat!==void 0)for(const ce of this.colFormat)"align"in ce&&typeof ce.align=="string"?ee.push(ce.align):"separator"in ce&&ce.separator==="solid"?ee.push("|"):"separator"in ce&&ce.separator==="dashed"&&ee.push(":");ee.push("}")}for(let ce=0;ce<this.array.length;ce++){for(let _e=0;_e<this.array[ce].length;_e++)_e>0&&ee.push(" & "),ee.push(an.serialize(this.array[ce][_e],y));if(ce<this.array.length-1){const _e=this.rowGaps[ce];_e!=null&&_e.dimension?ee.push(`\\\\[${_e.dimension} ${(b=_e.unit)!=null?b:"pt"}] `):ee.push("\\\\ ")}}return this.environmentName==="lines"?ee.push("}"):ee.push(`\\end{${this.environmentName}}`),ya(ee)}getCell(y,b){return this.array[y][b]}setCell(y,b,ee){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[y][b]!==void 0);for(const _e of this.array[y][b])_e.parent=void 0,_e.parentBranch=void 0;let ce=ee;(ee.length===0||ee[0].type!=="first")&&(ce=[new an({type:"first",mode:this.mode}),...ee]),this.array[y][b]=ce;for(const _e of ce)_e.parent=this,_e.parentBranch=[y,b];this.isDirty=!0}addRowBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let ee=0;ee<this.colCount;ee++)b.push($o(this));this.array.splice(y,0,b);for(let ee=y;ee<this.rowCount;ee++)for(let ce=0;ce<this.colCount;ce++){const _e=this.array[ee][ce];if(_e)for(const je of _e)je.parentBranch=[ee,ce]}this.isDirty=!0}addRowAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let ee=0;ee<this.colCount;ee++)b.push($o(this));this.array.splice(y+1,0,b);for(let ee=y+1;ee<this.rowCount;ee++)for(let ce=0;ce<this.colCount;ce++){const _e=this.array[ee][ce];if(_e)for(const je of _e)je.parentBranch=[ee,ce]}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 ee of b)for(const ce of ee)if(ce)for(const _e of ce)_e.parent=void 0,_e.parentBranch=void 0;for(let ee=y;ee<this.rowCount;ee++)for(let ce=0;ce<this.colCount;ce++){const _e=this.array[ee][ce];if(_e)for(const je of _e)je.parentBranch=[ee,ce]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,$o(this));for(let b=0;b<this.rowCount;b++)for(let ee=y;ee<this.colCount;ee++){const ce=this.array[b][ee];if(ce)for(const _e of ce)_e.parentBranch=[b,ee]}this.isDirty=!0}addColumnAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y+1,0,$o(this));for(let b=0;b<this.rowCount;b++)for(let ee=y+1;ee<this.colCount;ee++){const ce=this.array[b][ee];if(ce)for(const _e of ce)_e.parentBranch=[b,ee]}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 ee=b.splice(y,1);for(const ce of ee)if(ce)for(const _e of ce)_e.parent=void 0,_e.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let ee=y;ee<this.colCount;ee++){const ce=this.array[b][ee];if(ce)for(const _e of ce)_e.parentBranch=[b,ee]}this.isDirty=!0}get cells(){const y=[];for(const b of this.array)for(const ee of b)ee&&y.push(ee.filter(ce=>ce.type!=="first"));return y}};function $o(a){const y=new an({type:"first",mode:a.mode});y.parent=a;const b=new zi;return b.parent=a,[y,b]}function Lo(a){const y=new Fn(null,{classes:"arraycolsep"});return y.width=a,y}function zo(a,y,b,ee){if(!ee)return null;const ce=[];for(const _e of y){const je=an.createBox(a,ee,{type:"ignore"});je&&(je.depth=_e.depth,je.height=_e.height,ce.push({box:je,shift:_e.pos-b}))}return new qa({individualShift:ce}).wrap(a)}var Jo=class Dm extends an{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 Dm(y)}toJson(){return oe(ie({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,ee,ce,_e;const je=an.createBox(y,this.body,{type:"lift"});if(!je)return null;const et=y.toEm((b=this.offset)!=null?b:{dimension:0});je.depth+=et,je.setStyle("display","inline-block"),je.setStyle("position","relative"),je.setStyle("height",Math.floor(100*je.height+je.depth)/100,"em"),je.setStyle("vertical-align",-Math.floor(100*je.height)/100,"em");const ot=new Da({parent:y},this.style),gt=ot.toEm((ee=this.padding)!=null?ee:{register:"fboxsep"}),wt=new Fn(null,{classes:"ML__box"});wt.height=je.height+gt,wt.depth=je.depth+gt,wt.setStyle("box-sizing","border-box"),wt.setStyle("position","absolute"),wt.setStyle("top",-gt+.3,"em"),wt.setStyle("left",0),wt.setStyle("height",wt.height+wt.depth,"em"),wt.setStyle("width","100%"),this.backgroundcolor&&wt.setStyle("background-color",(ce=ot.toColor(this.backgroundcolor))!=null?ce:"transparent"),this.framecolor&&wt.setStyle("border",`${ot.getRegisterAsEm("fboxrule",2)}em solid ${(_e=ot.toColor(this.framecolor))!=null?_e:"black"}`),this.border&&wt.setStyle("border",this.border);const jt=new Fn([wt,je],{type:"lift"});return jt.setStyle("display","inline-block"),jt.setStyle("position","relative"),jt.setStyle("line-height",0),jt.height=je.height+gt+(et>0?et:0),jt.depth=je.depth+gt+(et<0?-et:0),jt.setStyle("padding-left",gt,"em"),jt.setStyle("padding-right",gt,"em"),jt.setStyle("height",Math.floor(100*(je.height+je.depth+2*gt+Math.abs(et)))/100,"em"),jt.setStyle("margin-top",-gt,"em"),jt.setStyle("top",Math.floor(100*(je.depth-je.height+2*gt-et))/100,"em"),jt.setStyle("vertical-align",Math.floor(100*(je.depth+2*gt))/100,"em"),this.caret&&(jt.caret=this.caret),this.attachSupsub(y,{base:jt})}_serialize(y){return y.skipStyles?ya([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},Zc=class Im extends an{constructor(y,b){var ee;super({type:"composition",mode:(ee=b==null?void 0:b.mode)!=null?ee:"math",value:y})}static fromJson(y){return new Im(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new Fn(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},il=class Pm extends an{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Pm(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Ss=class Lm extends an{constructor(y,b,ee){super({type:"group",mode:b,style:ee}),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 Lm(y.body,y.mode,y.style)}render(y){const b=an.createBox(y,this.body,{type:this.boxType});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Ga=class Rm extends an{constructor(y,b,ee){super({type:"leftright",style:ee.style,displayContainsHighlight:!0}),this.variant=y,this.body=b,this.leftDelim=ee.leftDelim,this.rightDelim=ee.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,ee;const ce=this.matchingRightDelim();return this.variant==="left...right"?ya(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ce]):this.variant==="mleft...mright"?ya(["\\mleft",(ee=this.leftDelim)!=null?ee:".",this.bodyToLatex(y),"\\mright",ce]):ya([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(y),ce])}matchingRightDelim(){var y,b;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const ee=(y=this.leftDelim)!=null?y:".";return(b=ve[ee])!=null?b:ee}render(y){var b,ee;const ce=new Da({parent:y},this.style);console.assert(this.body!==void 0);const _e=new Da({parent:y,mathstyle:"textstyle"},this.style),je=(b=an.createBox(ce,this.body,{type:"inner"}))!=null?b:new Fn(null,{type:"inner"}),et=je.height/_e.scalingFactor,ot=je.depth/_e.scalingFactor,gt=[];if(this.leftDelim&>.push(this.bind(_e,oi("open",this.leftDelim,et,ot,_e,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),je&&(us(je.children,this,ce,et,ot),gt.push(je)),this.rightDelim){let ar=this.containsCaret?" ML__contains-caret":"",dr=this.rightDelim;dr==="?"&&(ce.smartFence?(dr=this.matchingRightDelim(),ar+=" ML__smart-fence__close"):dr="."),gt.push(this.bind(_e,oi("close",dr,et,ot,_e,{isSelected:this.isSelected,classes:ar+" ML__close",mode:this.mode,style:this.style})))}let wt=this.variant==="mleft...mright";const jt=this.leftSibling;jt&&(!wt&&jt.isFunction&&(wt=!0),!wt&&jt.type==="subsup"&&((ee=jt.leftSibling)!=null&&ee.isFunction)&&(wt=!0));const Vt=new Fn(gt,{type:wt?"close":"inner",classes:"left-right"});return Vt.setStyle("margin-top",`${-je.depth}em`),Vt.setStyle("height",`${je.height+je.depth}em`),this.caret&&(Vt.caret=this.caret),this.bind(ce,Vt.wrap(ce))}};function us(a,y,b,ee,ce){if(a)for(let _e=0;_e<a.length;_e++){const je=a[_e];je.type==="middle"?(a[_e]=y.bind(b,oi("inner",je.value,ee,ce,b,{isSelected:y.isSelected})),a[_e].caret=je.caret,a[_e].isSelected=je.isSelected,a[_e].cssId=je.cssId,a[_e].htmlData=je.htmlData,a[_e].htmlStyle=je.htmlStyle,a[_e].attributes=je.attributes,a[_e].cssProperties=je.cssProperties):je.children&&us(je.children,y,b,ee,ce)}}var cd=class Bm extends an{constructor(y,b){var ee;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=(ee=b.expand)!=null?ee:!1}static fromJson(y){return new Bm(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=an.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},pc=class Nm extends an{constructor(){super({type:"macro-argument"})}static fromJson(y){return new Nm}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},kc=class jm extends an{constructor(y,b,ee=!1,ce,_e){var je;super({type:"prompt",mode:(je=_e==null?void 0:_e.mode)!=null?je:"math",style:_e==null?void 0:_e.style,command:"\\placeholder"}),this.body=ce,this.correctness=b,this.placeholderId=y,this.locked=ee,this.captureSelection=this.locked}static fromJson(y){return new jm(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 Da({parent:y}),ee=b.getRegisterAsEm("fboxsep"),ce=ee,_e=ee,je=an.createBox(y,this.body);if(!je)return null;je.height||(je.height=b.metrics.xHeight),je.setStyle("vertical-align",-je.height,"em"),this.correctness==="correct"?je.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&je.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const et=new Fn(je,{type:"ord"});et.setStyle("display","inline-block"),et.setStyle("height",je.height+je.depth,"em"),et.setStyle("vertical-align",-_e,"em");let ot="ML__prompt ";this.locked?ot+=" ML__lockedPromptBox ":ot+=" ML__editablePromptBox ",this.correctness==="correct"?ot+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(ot+=" ML__incorrectPromptBox "),this.containsCaret&&(ot+=" ML__focusedPromptBox ");const gt=new Fn(null,{classes:ot,attributes:{part:"prompt"}});gt.height=et.height+_e,gt.depth=et.depth+_e,gt.width=et.width+2*ce,gt.setStyle("box-sizing","border-box"),gt.setStyle("position","absolute"),gt.setStyle("height",et.height+et.depth+2*_e,"em"),ce===0&>.setStyle("width","100%"),ce!==0&&(gt.setStyle("width",`calc(100% + ${2*ce}em)`),gt.setStyle("top",ee,"em"),gt.setStyle("left",-ce,"em")),(!this.body||this.body.length===1)&&(gt.width=3*ce,gt.setStyle("width",`calc(100% + ${3*ce}em)`),gt.setStyle("left",-1.5*ce,"em"));let wt="";this.correctness==="incorrect"&&(wt+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),wt&&(gt.svgOverlay=wt);const jt=new Fn([gt,et],{classes:"ML__prompt-atom"});return jt.setStyle("position","relative"),jt.setStyle("display","inline-block"),jt.setStyle("line-height",0),jt.height=et.height+_e+.2,jt.depth=et.depth+_e,jt.left=ce,jt.right=ce,jt.setStyle("height",et.height+_e,"em"),jt.setStyle("top",et.depth-et.height,"em"),jt.setStyle("vertical-align",et.depth+_e,"em"),jt.setStyle("margin-left",.5,"em"),jt.setStyle("margin-right",.5,"em"),this.caret&&(jt.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:jt}))}_serialize(y){var b;const ee=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return ee;let ce="\\placeholder";return this.placeholderId&&(ce+=`[${this.placeholderId}]`),this.correctness==="correct"?ce+="[correct]":this.correctness==="incorrect"&&(ce+="[incorrect]"),this.locked&&(ce+="[locked]"),so(ce,ee)}},Ql=class Fm extends an{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new Fm(y);for(const ee of uu)y[ee]&&b.setChildren(y[ee],ee);return b}render(y){var b;const ee=new Da({parent:y,isPhantom:!0}),ce=this.leftSibling,_e=(b=ce.render(ee))!=null?b:new Fn(null),je=new Fn(null);return je.height=_e.height,je.depth=_e.depth,this.attachSupsub(y,{base:je,isCharacterBox:ce.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function as(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var Uc=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var ee,ce,_e,je;b!=null||(b={}),this.tokens=a,this.context=y instanceof Da&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new Da({from:y,mathstyle:b.mathstyle},b.style),this.args=(ee=b.args)!=null?ee:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(ce=b.style)!=null?ce:{},parseMode:(_e=b.parseMode)!=null?_e:"math",mathstyle:(je=b.mathstyle)!=null?je:"displaystyle",tabular:!1}}beginContext(a){var y,b,ee;const ce=this.parsingContext,_e={parent:ce,mathlist:[],style:ie({},ce.style),parseMode:(y=a==null?void 0:a.mode)!=null?y:ce.parseMode,mathstyle:(b=a==null?void 0:a.mathstyle)!=null?b:ce.mathstyle,tabular:(ee=a==null?void 0:a.tabular)!=null?ee:!1};this.parsingContext=_e}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(ie({before:dl(this.tokens.slice(this.index,this.index+10)),after:dl(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 ie({},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 Ql({style:this.style}),this.mathlist.push(a)),a}hasPattern(a){return a.test(this.tokens[this.index])}hasInfixCommand(){var a;const{index:y}=this;if(y<this.tokens.length&&this.tokens[y].startsWith("\\")){const b=dt(this.tokens[y],this.parseMode);return!b||b.definitionType==="symbol"||b.ifMode&&!b.ifMode.includes(this.parseMode)?!1:(a=b.infix)!=null?a:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const a=this.peek();return a!=="\\\\"&&a!=="\\cr"&&a!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var a;const y=(a=this.args)==null?void 0:a.call(this,"?");return y?Cs(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new zi({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(),ee="";for(;!b;){const _e=this.get();as(_e)?(ee+=_e,b=this.end()||ee.length>=a.length):b=!0}const ce=a.toUpperCase()===ee.toUpperCase();return ce||(this.index=y),ce}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(as(y))a+=y;else return a;this.next()}return a}scanBalancedString(){let a="",y=this.end(),b=1;for(;!y;){const ee=this.get();ee==="<space>"?a+=" ":ee==="<{>"?(a+="{",b+=1):ee==="<}>"?(b-=1,b>0?a+="}":this.index-=1):ee==="<$>"?a+="$":ee==="<$$>"?a+="$$":a+=ee,y=b===0||this.end()}return a}scanLiteralGroup(){var a;if(!this.match("<{>"))return"";let y="",b=1;for(;b>0&&!this.end();){const ee=this.get();ee==="<}>"?(b-=1,b>0&&(y+="}")):ee==="<{>"?(b+=1,y+="{"):(/\\[a-zA-Z]+$/.test(y)&&/^[a-zA-Z]/.test(ee)&&(y+=" "),y+=(a={"<space>":" ","<$$>":"$$","<$>":"$"}[ee])!=null?a:ee)}return y}scanNumber(a=!0){var y,b;let ee=!1,ce=this.peek();for(;ce==="<space>"||ce==="+"||ce==="-";)this.get(),ce==="-"&&(ee=!ee),ce=this.peek();a=!!a;let _e=10,je=/\d/;if(this.match("'"))_e=8,je=/[0-7]/,a=!0;else if(this.match('"'))_e=16,je=/[\dA-F]/,a=!0;else if(this.match("x"))_e=16,je=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return ce=this.get(),ce?ce.length===2&&ce.startsWith("\\")?{number:(ee?-1:1)*((y=ce.codePointAt(1))!=null?y:0),base:"alpha"}:{number:(ee?-1:1)*((b=ce.codePointAt(0))!=null?b:0),base:"alpha"}:null;let et="";for(;this.hasPattern(je);)et+=this.get();if(!a&&(this.match(".")||this.match(",")))for(et+=".";this.hasPattern(je);)et+=this.get();const ot=a?Number.parseInt(et,_e):Number.parseFloat(et);return Number.isNaN(ot)?null:{number:ee?-ot:ot,base:_e===16?"hexadecimal":_e===8?"octal":"decimal"}}scanRegister(){var a;const y=this.index,b=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return b;let ee=!1;if(b===null)for(;;){const _e=this.peek();if(_e==="-")ee=!ee;else if(_e!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const _e=this.get();return _e.startsWith("\\")?b?{register:_e,global:!0,factor:(ee?-1:1)*b.number}:ee?{register:_e,global:!0,factor:-1}:{register:_e,global:!0}:(this.index=y,null)}let ce=this.get();return ce!=null&&ce.startsWith("\\")?(ce=ce.substring(1),this.context.registers[ce]?!ee||b!==null?{register:ce,factor:(ee?-1:1)*((a=b==null?void 0:b.number)!=null?a:1)}:{register:ce}:(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 ee=this.scanNumber();if(ee)return ee;if(this.end()||!as(this.peek()))return null;const ce=this.scanString();return ce.length>0?{string:ce}: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=Ke(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const et of y.params)if(et.isOptional)b.push(this.scanOptionalArgument(et.type));else{const ot=this.scanArgument(et.type);ot||this.onError({code:"missing-argument",arg:a}),b.push(ot)}this.beginContext({tabular:y.tabular});const ee=[],ce=[];let _e=[],je=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),je=!0),!je&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),je=!0),!je)if(this.matchColumnSeparator())_e.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){_e.push(this.mathlist),this.mathlist=[];let et=null;this.skipWhitespace(),this.match("[")&&(et=this.scanDimen(),this.skipWhitespace(),this.match("]")),ce.push(et!=null?et:{dimension:0}),ee.push(_e),_e=[]}else this.mathlist.push(...this.scan(et=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(et)));while(!je);return _e.push(this.mathlist),_e.length>0&&ee.push(_e),this.endContext(),y.createAtom(a,ee,ce,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=je=>je==="<}>");let y="",b=null,ee=[],ce=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=dt(y,"math"),b&&(ee=this.scanArguments(b)[1]),ce=this.mathlist,this.mathlist=[]):this.parseExpression();let _e;return y?(console.assert(!!b),ee.unshift(this.mathlist),ce&&ee.unshift(ce),_e=[b.createAtom({command:y,args:ee,style:this.style,mode:this.parseMode})]):_e=this.mathlist,this.endContext(),_e}scanGroup(){const a=this.index;if(!this.match("<{>"))return null;const y=this.scan(ee=>ee==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const b=new Ss(y,this.parseMode,this.style);return b.verbatimLatex=dl(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 Ga("",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(!as(a)&&!a.startsWith("\\"))return null;this.next();const y=dt(a,"math");return y?y.definitionType==="function"&&y.ifMode&&!y.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:a}),null):y.definitionType==="symbol"&&(y.type==="mopen"||y.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(a)?a:(this.onError({code:"unexpected-delimiter",arg:a}),null):(this.onError({code:"unknown-command",arg:a}),null)}scanLeftRight(){var a;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new il("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new il("\\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 il(y==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(y);)this.parseExpression();const ee=this.mathlist;this.endContext();const ce=(a=this.scanDelim())!=null?a:".";return new Ga(y==="\\right"?"left...right":"mleft...mright",ee,{leftDelim:b,rightDelim:ce,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 an({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new an({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(qe(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 ee=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return ee===null?!1:(ee.explicitSubsupPlacement=!0,a&&(ee.subsupPlacement="over-under"),y&&(ee.subsupPlacement="adjacent"),b&&(ee.subsupPlacement="auto"),!0)}scanArguments(a){if(!(a!=null&&a.params))return[void 0,[]];let y;const b=[];let ee=a.infix?2:0;for(;ee<a.params.length;){const ce=a.params[ee];ce.type==="rest"?b.push(this.scan(_e=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(_e))):ce.isOptional?b.push(this.scanOptionalArgument(ce.type)):ce.type.endsWith("*")?y=ce.type.slice(0,-1):b.push(this.scanArgument(ce.type)),ee+=1}return[y,b]}scanSymbolOrLiteral(){const a=this.peek();if(!a)return null;this.next();let y;if(as(a)){const b=Fs.createAtom(this.parseMode,a,ie({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=dt(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new il(a)];if(b.definitionType==="symbol"){const ee=ie({},this.style);b.variant&&(ee.variant=b.variant),y=new an({type:b.type,command:a,style:ee,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 il(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 ce=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ce}if(a==="text"){a!==b&&this.beginContext({mode:"text"});const ce=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ce}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 ce=this.mathlist;return this.endContext(),{group:ce}}if(a==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ce=this.mathlist;return this.endContext(),{group:ce}}let ee=null;if(a==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ce=this.mathlist;return this.endContext(),{group:ce}}return a==="string"?ee=this.scanString():a==="balanced-string"?ee=this.scanBalancedString():a==="colspec"?ee=this.scanColspec():a==="value"&&(ee=this.scanValue()),this.skipUntilToken("<}>"),ee}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={},ee=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ce of ee){const _e=ce.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(_e)b.padding={dimension:parseInt(_e[1]),unit:_e[2]};else{const je=ce.match(/^\s*border\s*:\s*(.*)/);je?b.border=je[1]:b.backgroundcolor={string:ce}}}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,ee;if(a==="\\placeholder"){const et=this.scanOptionalArgument("string"),ot=this.scanOptionalArgument("math"),gt=an.serialize(ot,{defaultMode:"math"});let wt=[],jt;!jt&>==="correct"?jt="correct":!jt&>==="incorrect"?jt="incorrect":gt!==""&&(wt=ot);const Vt=this.scanOptionalArgument("string")==="locked",ar=this.scanArgument("auto");let dr;return ar&&Array.isArray(ar)&&ar.length>0?dr=ar:ar&&typeof ar=="object"&&"group"in ar?dr=ar.group:dr=wt,et?[new kc(et,jt,Vt,dr!=null?dr:wt,{mode:this.parseMode,style:this.style})]:[new zi({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const et=this.index,ot=this.scanLiteralGroup()||this.next();if(!ot)return null;if(this.context.registers[ot.substring(1)]){const gt=this.scanArgument("string");gt!==null&&(this.context.registers[ot.substring(1)]=gt);const wt=ya([a,dl(this.tokens.slice(et,this.index))]);return[new an({type:"text",value:"",verbatimLatex:wt})]}}let ce=this.scanMacro(a);if(ce)return[ce];const _e=dt(a,this.parseMode);if(!_e)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(et=>new an({type:"text",value:et,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new il(a)]);const je=this.index;if(_e.definitionType==="symbol"){const et=ie({},this.style);_e.variant&&(et.variant=_e.variant),ce=new an({type:_e.type,command:a,style:et,value:String.fromCodePoint(_e.codepoint),mode:this.parseMode})}else{if(_e.ifMode&&!_e.ifMode.includes(this.parseMode))return[];const et=this.parseMode;_e.applyMode&&(this.parseMode=_e.applyMode);let ot,gt=[];if(_e.parse?gt=_e.parse(this):[ot,gt]=this.scanArguments(_e),this.parseMode=et,_e.applyMode&&!_e.applyStyle&&!_e.createAtom)return qe(gt[0]);if(_e.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof _e.createAtom=="function")ce=_e.createAtom({command:a,args:gt,style:this.style,mode:this.parseMode}),ot&&(ce.body=qe(this.scanArgument(ot)));else if(typeof _e.applyStyle=="function"){const wt=ie(ie({},this.style),_e.applyStyle(a,gt,this.context)),jt=this.parseMode;if(_e.applyMode&&(this.parseMode=_e.applyMode),ot){const Vt=this.style;this.style=wt;const ar=this.scanArgument(ot);return this.style=Vt,this.parseMode=jt,qe(ar)}this.style=wt}else ce=new an({type:"mord",command:(b=_e.command)!=null?b:a,style:ie({},this.style),value:a,mode:(ee=_e.applyMode)!=null?ee:this.parseMode})}if(!ce)return null;if(ce instanceof an&&ce.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const et=ya([a,dl(this.tokens.slice(je,this.index))]);et&&(ce.verbatimLatex=et)}if(ce.verbatimLatex===null&&(ce.verbatimLatex=void 0),ce.isFunction&&this.smartFence){const et=this.scanSmartFence();if(et)return[ce,et]}return[ce]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(as(a)){const y=Fs.createAtom(this.parseMode,a,ie({},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 fc(" "," ",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 ee=this.index,ce=b.args,_e={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let je=1;je<=ce;je++){let et=this.scanLiteralGroup();if(!et){const ot=this.index;this.scanExpression(),et=dl(this.tokens.slice(ot,this.index))}_e[je]=et}return new cd(a,{expand:b.expand,captureSelection:b.captureSelection,args:ee===this.index?null:dl(this.tokens.slice(ee,this.index)),style:this.parsingContext.style,body:Cs(b.def,{context:this.context,parseMode:this.parseMode,args:je=>_e[je],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,ee;let ce=(ee=(b=(y=(a=this.scanEnvironment())!=null?a:this.scanModeShift())!=null?y:this.scanModeSet())!=null?b:this.scanGroup())!=null?ee:this.scanLeftRight();if(ce===null){if(this.parseSupSub()||this.parseLimits())return!0;ce=this.scanSymbolCommandOrLiteral()}return ce?(Array.isArray(ce)?this.mathlist.push(...ce):this.mathlist.push(ce),!0):!1}};function Cs(a,y){var b,ee,ce,_e;const je=(b=y==null?void 0:y.args)!=null?b:void 0,et=new Uc(wl(a,je),y==null?void 0:y.context,{args:je,mathstyle:(ee=y==null?void 0:y.mathstyle)!=null?ee:"displaystyle",parseMode:(ce=y==null?void 0:y.parseMode)!=null?ce:"math",style:(_e=y==null?void 0:y.style)!=null?_e:{}}),ot=[];for(;!et.end();)ot.push(...et.scan(()=>!1));return ot}function rp(a,y){var b;const ee=new Uc(wl(a,null),y==null?void 0:y.context,{mathstyle:"displaystyle",parseMode:(b=y==null?void 0:y.parseMode)!=null?b:"math"});for(;!ee.end();)ee.scan();return ee.errors}var np=class $m extends an{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const ee=Oo.go(Pn.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=Cs(ee),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new $m(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return oe(ie({},super.toJson()),{arg:this.arg})}render(y){const b=an.createBox(y,this.body,{type:"inner"});return this.caret&&(b.caret=this.caret),this.bind(y,b)}_serialize(y){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};Ct(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new np(a.command,(y=a.args[0])!=null?y:"")}});var Pn={go:function(a,y){if(!a)return[];y===void 0&&(y="ce");var b="0",ee={};ee.parenthesisLevel=0,a=a.replace(/\n/g," "),a=a.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),a=a.replace(/[\u2026]/g,"...");for(var ce,_e=10,je=[];;){ce!==a?(_e=10,ce=a):_e--;var et=Pn.stateMachines[y],ot=et.transitions[b]||et.transitions["*"];e:for(var gt=0;gt<ot.length;gt++){var wt=Pn.patterns.match_(ot[gt].pattern,a);if(wt){for(var jt=ot[gt].task,Vt=0;Vt<jt.action_.length;Vt++){var ar;if(et.actions[jt.action_[Vt].type_])ar=et.actions[jt.action_[Vt].type_](ee,wt.match_,jt.action_[Vt].option);else if(Pn.actions[jt.action_[Vt].type_])ar=Pn.actions[jt.action_[Vt].type_](ee,wt.match_,jt.action_[Vt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+jt.action_[Vt].type_+")"];Pn.concatArray(je,ar)}if(b=jt.nextState||b,a.length>0){if(jt.revisit||(a=wt.remainder),!jt.toContinue)break e}else return je}}if(_e<=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=Pn.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 Pn.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return Pn.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return Pn.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return Pn.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return Pn.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return Pn.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return Pn.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return Pn.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return Pn.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return Pn.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return Pn.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return Pn.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return Pn.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 Pn.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return Pn.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return Pn.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return Pn.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 Pn.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return Pn.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return Pn.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return Pn.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return Pn.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return Pn.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return Pn.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return Pn.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=Pn.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,ee,ce,_e,je,et,ot,gt){var wt=function(Hr,fn){if(typeof fn=="string")return Hr.indexOf(fn)!==0?null:fn;var Yn=Hr.match(fn);return Yn?Yn[0]:null},jt=function(Hr,fn,Yn){for(var xn=0;fn<Hr.length;){var wi=Hr.charAt(fn),Ri=wt(Hr.substr(fn),Yn);if(Ri!==null&&xn===0)return{endMatchBegin:fn,endMatchEnd:fn+Ri.length};if(wi==="{")xn++;else if(wi==="}"){if(xn===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];xn--}fn++}return xn>0,null},Vt=wt(a,y);if(Vt===null||(a=a.substr(Vt.length),Vt=wt(a,b),Vt===null))return null;var ar=jt(a,Vt.length,ee||ce);if(ar===null)return null;var dr=a.substring(0,ee?ar.endMatchEnd:ar.endMatchBegin);if(_e||je){var Zr=this.findObserveGroups(a.substr(ar.endMatchEnd),_e,je,et,ot);if(Zr===null)return null;var Kn=[dr,Zr.match_];return{match_:gt?Kn.join(""):Kn,remainder:Zr.remainder}}else return{match_:dr,remainder:a.substr(ar.endMatchEnd)}},match_:function(a,y){var b=Pn.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return Pn.patterns.patterns[a](y);var ee=y.match(b);if(ee){var ce;return ee[2]?ce=[ee[1],ee[2]]:ee[1]?ce=ee[1]:ce=ee[0],{match_:ce,remainder:y.substr(ee[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 Pn.go(y,"text")},"{text}":function(a,y){var b=["{"];return Pn.concatArray(b,Pn.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return Pn.go(y,"tex-math")},"tex-math tight":function(a,y){return Pn.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 Pn.go(y)},"1/2":function(a,y){var b=[];y.match(/^[+\-]/)&&(b.push(y.substr(0,1)),y=y.substr(1));var ee=y.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return ee[1]=ee[1].replace(/\$/g,""),b.push({type_:"frac",p1:ee[1],p2:ee[2]}),ee[3]&&(ee[3]=ee[3].replace(/\$/g,""),b.push({type_:"tex-math",p1:ee[3]})),b},"9,9":function(a,y){return Pn.go(y,"9,9")}},createTransitions:function(a){var y,b,ee,ce,_e={};for(y in a)for(b in a[y])for(ee=b.split("|"),a[y][b].stateArray=ee,ce=0;ce<ee.length;ce++)_e[ee[ce]]=[];for(y in a)for(b in a[y])for(ee=a[y][b].stateArray||[],ce=0;ce<ee.length;ce++){var je=a[y][b];if(je.action_){je.action_=[].concat(je.action_);for(var et=0;et<je.action_.length;et++)typeof je.action_[et]=="string"&&(je.action_[et]={type_:je.action_[et]})}else je.action_=[];for(var ot=y.split("|"),gt=0;gt<ot.length;gt++)if(ee[ce]==="*")for(var wt in _e)_e[wt].push({pattern:ot[gt],task:je});else _e[ee[ce]].push({pattern:ot[gt],task:je})}return _e},stateMachines:{}};Pn.stateMachines={ce:{transitions:Pn.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 ee=a.d;a.d=void 0,b=this.output(a),a.b=ee}else b=this.output(a);return Pn.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 Pn.concatArray(b,this.output(a)),Pn.concatArray(b,Pn.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var ee=Pn.patterns.match_("orbital",a.o||""),ce=Pn.patterns.match_("one lowercase greek letter $",a.o||""),_e=Pn.patterns.match_("one lowercase latin letter $",a.o||""),je=Pn.patterns.match_("$one lowercase latin letter$ $",a.o||""),et=y==="-"&&(ee&&ee.remainder===""||ce||_e||je);et&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!ee&&_e&&(a.o="$"+a.o+"$");var ot=[];return et?(Pn.concatArray(ot,this.output(a)),ot.push({type_:"hyphen"})):(ee=Pn.patterns.match_("digits",a.d||""),b&&ee&&ee.remainder===""?(Pn.concatArray(ot,Pn.actions["d="](a,y)),Pn.concatArray(ot,this.output(a))):(Pn.concatArray(ot,this.output(a)),Pn.concatArray(ot,Pn.actions.bond(a,y,"-")))),ot},"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:Pn.go(y,"o")}},comma:function(a,y){var b=y.replace(/\s*$/,""),ee=b!==y;return ee&&a.parenthesisLevel===0?{type_:"comma enumeration L",p1:b}:{type_:"comma enumeration M",p1:b}},output:function(a,y,b){var ee;if(!a.r)ee=[],!a.a&&!a.b&&!a.p&&!a.o&&!a.q&&!a.d&&!b||(a.sb&&ee.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"&&Pn.patterns.match_("d-oxidation$",a.d||"")?a.dType="oxidation":a.o&&a.dType==="kv"&&!a.q&&(a.dType=void 0),ee.push({type_:"chemfive",a:Pn.go(a.a,"a"),b:Pn.go(a.b,"bd"),p:Pn.go(a.p,"pq"),o:Pn.go(a.o,"o"),q:Pn.go(a.q,"pq"),d:Pn.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ce;a.rdt==="M"?ce=Pn.go(a.rd,"tex-math"):a.rdt==="T"?ce=[{type_:"text",p1:a.rd||""}]:ce=Pn.go(a.rd);var _e;a.rqt==="M"?_e=Pn.go(a.rq,"tex-math"):a.rqt==="T"?_e=[{type_:"text",p1:a.rq||""}]:_e=Pn.go(a.rq),ee={type_:"arrow",r:a.r,rd:ce,rq:_e}}for(var je in a)je!=="parenthesisLevel"&&je!=="beginsWithBond"&&delete a[je];return ee},"oxidation-output":function(a,y){var b=["{"];return Pn.concatArray(b,Pn.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:Pn.go(y[0]),p2:Pn.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:Pn.go(y[0]),p2:Pn.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:Pn.go(y[0]),p2:Pn.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:Pn.go(y[0]),p2:Pn.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Pn.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:Pn.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:Pn.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:Pn.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:Pn.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:Pn.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Pn.go(y[1],"pq")}}}},bd:{transitions:Pn.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:Pn.go(y[1],"bd")}}}},oxidation:{transitions:Pn.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:Pn.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:Pn.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:Pn.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Pn.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]&&(Pn.concatArray(b,Pn.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?Pn.concatArray(b,Pn.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]),Pn.concatArray(b,Pn.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=Pn.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var ee=Pn.patterns.match_("{(...)}",a.q||"");if(ee&&ee.remainder===""&&(a.q=ee.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 ce={d:Pn.go(a.d,"pu"),q:Pn.go(a.q,"pu")};a.o==="//"?y={type_:"pu-frac",p1:ce.d,p2:ce.q}:(y=ce.d,ce.d.length>1||ce.q.length>1?y.push({type_:" / "}):y.push({type_:"/"}),Pn.concatArray(y,ce.q))}else y=Pn.go(a.d,"pu-2");for(var _e in a)delete a[_e];return y}}},"pu-2":{transitions:Pn.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=Pn.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=Pn.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var ee in a)delete a[ee];return y}}},"pu-9,9":{transitions:Pn.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 ee=a.text_.length-3;ee>0;ee-=3)y.push(a.text_.substr(ee,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(0,b)),y.reverse()}else y.push(a.text_);for(var ce in a)delete a[ce];return y},"output-o":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){for(var b=a.text_.length-3,ee=0;ee<b;ee+=3)y.push(a.text_.substr(ee,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(ee))}else y.push(a.text_);for(var ce in a)delete a[ce];return y}}}};var Oo={go:function(a,y){if(!a)return"";for(var b="",ee=!1,ce=0;ce<a.length;ce++){var _e=a[ce];typeof _e=="string"?b+=_e:(b+=Oo._go2(_e),_e.type_==="1st-level escape"&&(ee=!0))}return!y&&!ee&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&Oo.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:Oo._goInner(a.a),b:Oo._goInner(a.b),p:Oo._goInner(a.p),o:Oo._goInner(a.o),q:Oo._goInner(a.q),d:Oo._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 "+Oo._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+Oo._goInner(a.p1);break;case"bond":if(y=Oo._getBond(a.kind_),!y)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+a.kind_+")"];break;case"frac":var ee="\\frac{"+a.p1+"}{"+a.p2+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"pu-frac":var ce="\\frac{"+Oo._goInner(a.p1)+"}{"+Oo._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ce+"}{"+ce+"}{"+ce+"}{"+ce+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+Oo._goInner(a.p1)+"}{"+Oo._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+Oo._goInner(a.p1)+"}{"+Oo._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+Oo._goInner(a.p1)+"}{"+Oo._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+Oo._goInner(a.p1)+"}_{"+Oo._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+Oo._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var _e={rd:Oo._goInner(a.rd),rq:Oo._goInner(a.rq)},je=Oo._getArrow(a.r);_e.rd||_e.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(je="\\long"+je,_e.rd&&(je="\\overset{"+_e.rd+"}{"+je+"}"),_e.rq&&(a.r==="<-->"?je="\\underset{\\lower2mu{"+_e.rq+"}}{"+je+"}":je="\\underset{\\lower6mu{"+_e.rq+"}}{"+je+"}"),je=" {}\\mathrel{"+je+"}{} "):(_e.rq&&(je+="[{"+_e.rq+"}]"),je+="{"+_e.rd+"}",je=" {}\\mathrel{\\x"+je+"}{} "):je=" {}\\mathrel{\\long"+je+"}{} ",y=je;break;case"operator":y=Oo._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 _y(a){}function ky(a){}var ip=class zm extends an{constructor(y){super(oe(ie({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new zm(y)}toJson(){return oe(ie({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new Fn(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):so(this.command,this.value)}},ap=class Km extends an{constructor(y){super(oe(ie({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Km(y)}toJson(){return oe(ie({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=Br(this.value,this.size,y,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return b?(b=this.bind(y,b),this.caret&&(b.caret=this.caret),b):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):so(this.command,this.value)}},zd=class Hm extends an{constructor(y,b,ee,ce){var _e,je;super({type:"enclose",command:y,style:ce.style}),this.body=b,this.backgroundcolor=ce.backgroundcolor,ee.updiagonalarrow&&(ee.updiagonalstrike=!1),ee.box&&(ee.left=!1,ee.right=!1,ee.bottom=!1,ee.top=!1),this.notation=ee,this.shadow=(_e=ce.shadow)!=null?_e:"none",this.strokeWidth=(je=ce.strokeWidth)!=null?je:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=ce.strokeStyle,this.svgStrokeStyle=ce.svgStrokeStyle,this.strokeColor=ce.strokeColor,this.borderStyle=ce.borderStyle,this.padding=ce.padding,this.captureSelection=!1}static fromJson(y){return new Hm(y.command,y.body,y.notation,y)}toJson(){return oe(ie({},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 ee=dt(this.command,this.mode);if(ee!=null&&ee.serialize)return ee.serialize(this,y);let ce=(b=this.command)!=null?b:"";if(this.command==="\\enclose"){ce+="{"+Object.keys(this.notation).join(" ")+"}";let _e="",je="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(_e+=je+'mathbackground="'+this.backgroundcolor+'"',je=","),this.shadow&&this.shadow!=="auto"&&(_e+=je+'shadow="'+this.shadow+'"',je=","),this.strokeWidth||this.strokeStyle!=="solid"?(_e+=je+this.borderStyle,je=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(_e+=je+'mathcolor="'+this.strokeColor+'"',je=","),_e&&(ce+=`[${_e}]`)}return so(ce,this.bodyToLatex(y))}render(y){const b=new Da({parent:y},this.style),ee=an.createBox(b,this.body);if(!ee)return null;const ce=a0(this.borderStyle),_e=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});ee.setStyle("position","relative"),ee.setStyle("display","inline-block"),ee.setStyle("top",_e,"em"),ee.setStyle("height",ee.height+ee.depth,"em"),ee.setStyle("width",ee.width,"em");const je=new Fn(null,{classes:"ML__notation"});let et=ee.height+ee.depth+2*_e;const ot=ee.width+2*_e;let gt="";if(this.notation.horizontalstrike&&(gt+=this.line(3,50,97,50)),this.notation.verticalstrike&&(gt+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(gt+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(gt+=this.line(3,3,97,97)),this.notation.updiagonalarrow){gt+=this.line(_e.toString(),(_e+ee.depth+ee.height).toString(),(_e+ee.width).toString(),_e.toString());const dr=.03*Math.sqrt(ot*ot+et*et)*1,Zr=ee.width*dr,Kn=(ee.depth+ee.height)*dr,Hr=_e+ee.width;let fn=_e;fn+Kn-.4*Zr<0&&(fn=.4*Zr-Kn),gt+='<polygon points="',gt+=`${Hr},${fn} ${Hr-Zr-.4*Kn},${fn+Kn-.4*Zr} `,gt+=`${Hr-.7*Zr},${fn+.7*Kn} ${Hr-Zr+.4*Kn},${fn+Kn+.4*Zr} `,gt+=`${Hr},${fn}`,gt+=`" stroke='none' fill="${this.strokeColor}"`,gt+="/>"}let wt=0;if(this.notation.phasorangle){const Vt=op(b),ar=(ee.height+ee.depth+2*Vt+_e).toString(),dr=(ee.height+ee.depth)/2;gt+=this.line(_e.toString(),ar,(_e+dr+ee.width).toString(),ar),gt+=this.line(_e.toString(),ar,(_e+dr).toString(),(_e-Vt).toString()),et+=Vt,wt=dr,ee.left+=et/2-_e}if(this.notation.longdiv){const Vt=op(b);et+=Vt,gt+=this.line(_e.toString(),_e.toString(),(_e+ee.width).toString(),_e.toString());const ar=.3;wt=ar+Vt,ee.left+=ar+Vt,ee.setTop(_e+Vt),gt+='<path d="',gt+=`M ${_e} ${_e} a${ar} ${(ee.depth+ee.height+2*Vt)/2}, 0, 1, 1, 0 ${ee.depth+ee.height+2*Vt} "`,gt+=` stroke-width="${o0(b)}" stroke="${this.strokeColor}" fill="none"`,gt+="/>"}if(je.width=ee.width+2*_e+wt,je.height=ee.height+_e,je.depth=ee.depth+_e,je.setStyle("box-sizing","border-box"),je.setStyle("left",`calc(-${ce} / 2 )`),je.setStyle("height",`${Math.floor(100*et)/100}em`),je.setStyle("top",`calc(${ce} / 2 )`),this.backgroundcolor&&je.setStyle("background-color",this.backgroundcolor),this.notation.box&&je.setStyle("border","1px solid red"),this.notation.actuarial&&(je.setStyle("border-top",this.borderStyle),je.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(je.setStyle("border-bottom",this.borderStyle),je.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(je.setStyle("border-radius","8px"),je.setStyle("border",this.borderStyle)),this.notation.circle&&(je.setStyle("border-radius","50%"),je.setStyle("border",this.borderStyle)),this.notation.top&&je.setStyle("border-top",this.borderStyle),this.notation.left&&je.setStyle("border-left",this.borderStyle),this.notation.right&&je.setStyle("border-right",this.borderStyle),this.notation.bottom&&je.setStyle("border-bottom",this.borderStyle),gt){let Vt="";this.shadow==="auto"&&(Vt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(Vt+=`filter: drop-shadow(${this.shadow})`),Vt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,Vt+=' stroke-linecap="round"',this.svgStrokeStyle&&(Vt+=` stroke-dasharray="${this.svgStrokeStyle}"`),je.svgStyle=Vt,je.svgOverlay=gt}const jt=new Fn([je,ee]);return jt.setStyle("position","relative"),jt.setStyle("vertical-align",_e,"em"),jt.setStyle("height",`${Math.floor(100*(ee.height+ee.depth+2*_e))/100}em`),jt.setStyle("display","inline-block"),jt.height=je.height,jt.depth=je.depth,jt.width=je.width-2*_e,jt.left=_e,jt.right=_e,this.caret&&(jt.caret=this.caret),jt.wrap(b)}line(y,b,ee,ce){return`<line x1="${Ef(y)}" y1="${Ef(b)}" x2="${Ef(ee)}" y2="${Ef(ce)}" vector-effect="non-scaling-stroke"></line>`}};function Ef(a){return typeof a=="number"?`${Math.floor(100*a)/100}%`:a}function a0(a){if(!a)return"1px";const y=a.match(/([0-9][a-zA-Z\%]+)/);return y===null?"1px":y[1]}function o0(a){return(Math.floor(100*a.metrics.sqrtRuleThickness/a.scalingFactor)/100/10).toString()+"em"}function op(a){const y=a.isDisplayStyle?Xo:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var ud=class Wm extends an{constructor(y,b,ee){var ce,_e;super(oe(ie({},ee),{type:"genfrac",displayContainsHighlight:!0})),this.above=y,this.below=b,this.hasBarLine=(ce=ee==null?void 0:ee.hasBarLine)!=null?ce:!0,this.continuousFraction=(_e=ee==null?void 0:ee.continuousFraction)!=null?_e:!1,this.numerPrefix=ee==null?void 0:ee.numerPrefix,this.denomPrefix=ee==null?void 0:ee.denomPrefix,this.mathstyleName=ee==null?void 0:ee.mathstyleName,this.leftDelim=ee==null?void 0:ee.leftDelim,this.rightDelim=ee==null?void 0:ee.rightDelim,this.fractionNavigationOrder=ee==null?void 0:ee.fractionNavigationOrder}static fromJson(y){return new Wm(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),ie(ie({},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,ee;const ce=new Da({parent:y,mathstyle:this.mathstyleName},this.style),_e=ce.metrics,je=new Da({parent:ce,mathstyle:this.continuousFraction?"":"numerator"},this.style),et=this.numerPrefix?new Fn([new Fn(this.numerPrefix),an.createBox(je,this.above)],{isTight:je.isTight,type:"ignore"}):(b=an.createBox(je,this.above,{type:"ignore"}))!=null?b:new Fn(null,{type:"ignore"}),ot=new Da({parent:ce,mathstyle:this.continuousFraction?"":"denominator"},this.style),gt=this.denomPrefix?new Fn([new Fn(this.denomPrefix),an.createBox(ot,this.below,{type:"ignore"})]):(ee=an.createBox(ot,this.below,{type:"ignore"}))!=null?ee:new Fn(null,{type:"ignore"}),wt=this.hasBarLine?_e.defaultRuleThickness:0;let jt,Vt=0,ar;ce.isDisplayStyle?(jt=je.metrics.num1,Vt=wt>0?3*wt:7*wt,ar=ot.metrics.denom1):(wt>0?(jt=je.metrics.num2,Vt=wt):(jt=je.metrics.num3,Vt=3*_e.defaultRuleThickness),ar=ot.metrics.denom2);const dr=[];this.isSelected&&dr.push("ML__selected");const Zr=et.depth,Kn=gt.height;let Hr;if(wt<=0){const Ai=jt-Zr-(Kn-ar);Ai<Vt&&(jt+=(Vt-Ai)/2,ar+=(Vt-Ai)/2),Hr=new qa({individualShift:[{box:et,shift:-jt,classes:[...dr,"ML__center"]},{box:gt,shift:ar,classes:[...dr,"ML__center"]}]}).wrap(ce)}else{const Ai=new Fn(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Ai.softWidth=Math.max(et.width,gt.width),Ai.height=wt/2,Ai.depth=wt/2;const La=Go+wt/2;jt<Vt+Zr+La&&(jt=Vt+Zr+La);const co=Go-wt/2;ar<Vt+Kn-co&&(ar=Vt+Kn-co),Hr=new qa({individualShift:[{box:gt,shift:ar,classes:[...dr,"ML__center"]},{box:Ai,shift:-co,classes:dr},{box:et,shift:-jt,classes:[...dr,"ML__center"]}]}).wrap(ce)}const fn=ce.isDisplayStyle?_e.delim1:_e.delim2,Yn=this.leftDelim?this.bind(y,vi("open",this.leftDelim,fn,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):bi(ce,"open");let xn=null;this.continuousFraction?xn=new Fn(null,{type:"close"}):this.rightDelim?xn=this.bind(y,vi("close",this.rightDelim,fn,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):xn=bi(ce,"close");const wi=new Fn([Yn,Hr,xn],{isTight:ce.isTight,type:"inner",classes:"mfrac"}),Ri=this.bind(y,wi);return this.caret&&(Ri.caret=this.caret),this.attachSupsub(y,{base:Ri})}},Ps=class Zm extends an{constructor(y,b){var ee;super({type:"latex",value:y,mode:"latex"}),this.isSuggestion=(ee=b==null?void 0:b.isSuggestion)!=null?ee:!1,this.isError=!1}static fromJson(y){const b=new Zm(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),ie({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new Fn(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}},Kd=class Um extends an{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new Ps(b)),this.skipBoundary=!1}static fromJson(y){return new Um("")}toJson(){return super.toJson()}render(y){const b=an.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){var b,ee;return(ee=(b=this.body)==null?void 0:b.map(ce=>ce.value).join(""))!=null?ee:""}},hh=class Vm extends an{constructor(y,b){super(oe(ie({},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 Vm(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 ee=y.isDisplayStyle&&this.value!=="\\smallint",ce=new Fn(this.value,{fontFamily:ee?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(ee?"large-op":"small-op"),type:"op",maxFontSize:y.scalingFactor,isSelected:this.isSelected});if(!ce)return null;ce.right=ce.italic;const _e=(ce.height-ce.depth)/2-Go*y.scalingFactor,je=ce.italic;ce.setTop(_e);let et=ce;if(this.superscript||this.subscript){const ot=(b=this.subsupPlacement)!=null?b:"auto";et=ot==="over-under"||ot==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ce,baseShift:_e,slant:je}):this.attachSupsub(y,{base:ce})}return new Fn(this.bind(y,et),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(y)}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=dt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const ee=[];return ee.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&ee.push("\\limits"),this.subsupPlacement==="adjacent"&&ee.push("\\nolimits"),this.subsupPlacement==="auto"&&ee.push("\\displaylimits")),ee.push(this.supsubToLatex(y)),ya(ee)}},Lu=class Gm extends an{constructor(y){const b=y.body;super(oe(ie({},y),{type:"overlap",body:typeof b=="string"?[new an({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 Gm(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),ie(ie({},super.toJson()),y)}render(y){const b=an.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new Fn([b,new Fn(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},ql=class Xm extends an{constructor(y){var b,ee,ce,_e;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=(ee=y.boxType)!=null?ee:"ord",this.paddedBody=(ce=y.paddedBody)!=null?ce:!1,this.paddedLabels=(_e=y.paddedLabels)!=null?_e:!1}static fromJson(y){return new Xm(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?rl(this.svgBody):an.createBox(y,this.body,{type:"ignore"});const ee=new Da({parent:y,mathstyle:"scriptstyle"},this.style);let ce=null;this.svgAbove?ce=rl(this.svgAbove):this.above&&(ce=an.createBox(ee,this.above,{type:"ignore"}));let _e=null;this.svgBelow?_e=rl(this.svgBelow):this.below&&(_e=an.createBox(ee,this.below,{type:"ignore"})),this.paddedBody&&(b=new Fn([bi(y,"open"),b,bi(y,"close")],{type:"ignore"}));let je=s0(y,{base:b,above:ce,below:_e,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return je?(this.subsupPlacement==="over-under"?je=this.attachLimits(y,{base:je,type:je.type}):je=this.attachSupsub(y,{base:je}),this.caret&&(je.caret=this.caret),this.bind(y,je)):null}};function s0(a,y){if(!y.base)return null;if(!y.above&&!y.below){const et=new Fn(y.base,{type:y.type});return et.setStyle("position","relative"),et}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let ee=null;const ce=y.base,_e=0,je=["ML__center"];if(y.paddedAboveBelow&&je.push("ML__label_padding"),y.below&&y.above){const et=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ce.depth+_e;ee=new qa({bottom:et,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:je},{box:ce,classes:["ML__center"]},b,{box:y.above,classes:je},a.metrics.bigOpSpacing5]})}else y.below?ee=new qa({top:ce.height-_e,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:je},{box:ce,classes:["ML__center"]}]}):y.above&&(ee=new qa({bottom:ce.depth+_e,children:[{box:ce,classes:["ML__center"]},b,{box:y.above,classes:je},a.metrics.bigOpSpacing5]}));return new Fn(ee,{type:y.type})}var Hd=class Ym extends an{constructor(y){var b,ee,ce,_e;super(oe(ie({},y),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(b=y.isInvisible)!=null?b:!1,this.smashDepth=(ee=y.smashDepth)!=null?ee:!1,this.smashHeight=(ce=y.smashHeight)!=null?ce:!1,this.smashWidth=(_e=y.smashWidth)!=null?_e:!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),ie(ie({},super.toJson()),y)}render(y){const b=new Da({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),an.createBox(b,this.body,{classes:"inner"});const ee=an.createBox(this.isInvisible?b:y,this.body);if(!ee)return null;if(this.smashWidth){const ce=new Fn(null,{classes:"fix"});return new Fn([ee,ce],{classes:"rlap"}).wrap(y)}if(!this.smashHeight&&!this.smashDepth)return ee;if(this.smashHeight&&(ee.height=0),this.smashDepth&&(ee.depth=0),ee.children)for(const ce of ee.children)this.smashHeight&&(ce.height=0),this.smashDepth&&(ce.depth=0);return new qa({firstBaseline:[{box:ee}]},{type:ee.type}).wrap(y)}},Wd=class Jm extends an{constructor(y){var b;super(ie({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 Jm(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 Fn(this.mode==="math"?null:" ");let ee;if(this.width!==void 0)ee=new Fn(null,{classes:"mspace"}),ee.left=y.toEm(this.width);else{const ce=(b={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?b:"mediumspace";ee=new Fn(null,{classes:ce})}return ee=this.bind(y,ee),this.caret&&(ee.caret=this.caret),ee}_serialize(y){var b;if(!y.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const ee=dt(this.command,this.mode);if(ee!=null&&ee.serialize)return ee.serialize(this,y);const ce=(b=this.command)!=null?b:"";return this.width===void 0?ce:this._braced&&!("register"in this.width)?`${ce}{${Ao(this.width)}}`:`${ce}${Ao(this.width)}`}},sp=class Qm extends an{constructor(y){var b;super(oe(ie({},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 Qm(oe(ie({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=dt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const ee=this.command,ce=this.bodyToLatex(y);return this.above&&!this.hasEmptyBranch("above")?so(`${ee}[${this.aboveToLatex(y)}]`,ce):/^[0-9]$/.test(ce)?`${ee}${ce}`:so(ee,ce)}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 ee=new Da({parent:y,mathstyle:"cramp"},this.style),ce=(b=an.createBox(ee,this.body,{type:"inner"}))!=null?b:new Fn(null),_e=ee.scalingFactor,je=ee.metrics.defaultRuleThickness/_e,et=y.isDisplayStyle?Xo:je,ot=new Fn(null,{classes:"ML__sqrt-line",style:this.style});ot.height=je,ot.softWidth=ce.width;let gt=_e*(je+et/4);const jt=Math.max(_e*2*et,ce.height+ce.depth)+gt+je,Vt=new Da({parent:y},this.style),ar=this.bind(Vt,new Fn(vi("inner","\\surd",jt,!1,Vt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!ar)return null;const dr=ar.height+ar.depth-je;dr>ce.height+ce.depth+gt&&(gt=(gt+dr-(ce.height+ce.depth))/2),ar.setTop(ar.height-ce.height-gt);const Zr=this.bind(y,new qa({firstBaseline:[{box:new Fn(ce)},gt-2*je,{box:ot},je]})),Kn=an.createBox(new Da({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Kn){const Yn=new Fn([ar,Zr],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Yn.setStyle("display","inline-block"),Yn.setStyle("height",Yn.height+Yn.depth,"em"),this.caret&&(Yn.caret=this.caret),this.bind(y,Yn)}const Hr=new qa({shift:-.6*(Math.max(ar.height,Zr.height)-Math.max(ar.depth,Zr.depth)),children:[{box:Kn}]}),fn=new Fn([new Fn(Hr,{classes:"ML__sqrt-index",type:"ignore"}),ar,Zr],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return fn.height=ar.height,fn.depth=ar.depth,this.caret&&(fn.caret=this.caret),this.bind(y,fn)}},l0=class extends Fn{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 Mf(a,y){if(!a.parent)return;const b=a.parent.children,ee=b.indexOf(a);let ce=ee-1;for(;ce>=0&&b[ce].type==="ignore";)ce-=1;if(ce<0&&a.parent.parent&&a.parent.type==="lift"){Mf(a.parent,y);return}ee>0&&b[ee-1].type==="skip"?b[ee-1].width+=y:b.splice(ee,0,new l0(y))}var c0={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}},u0={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function d0(a){Ud(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 Zd(a,y){if(!a.children)return a;const b=a.children;d0(b);const ee=y.getRegisterAsEm("thinmuskip"),ce=y.getRegisterAsEm("medmuskip"),_e=y.getRegisterAsEm("thickmuskip");return Ud(b,(je,et)=>{var ot,gt,wt;if(!je)return;const jt=je.type,Vt=et.isTight?(ot=u0[jt])!=null?ot:null:(gt=c0[jt])!=null?gt:null,ar=(wt=Vt==null?void 0:Vt[et.type])!=null?wt:null;ar===3&&Mf(et,ee),ar===4&&Mf(et,ce),ar===5&&Mf(et,_e)}),a}function Ud(a,y,b=void 0){if(!a)return b;a=[...a];for(const ee of a)ee.type==="lift"?b=Ud(ee.children,y,b):ee.type==="ignore"?Ud(ee.children,y):(y(b,ee),Ud(ee.children,y),b=ee);return b}var ph=class qm extends an{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new an({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new qm(oe(ie({},y),{tooltip:pu(y.tooltip)}))}toJson(){var y;const b=(y=this.tooltip.body)==null?void 0:y.filter(ee=>ee.type!=="first").map(ee=>ee.toJson());return oe(ie({},super.toJson()),{tooltip:b})}render(y){const b=an.createBox(new Da,this.body);if(!b)return null;const ee=new Da({parent:y,mathstyle:"displaystyle"},{fontSize:io}),ce=su(Zd(new Fn(this.tooltip.render(ee),{classes:"ML__tooltip-content"}),ee)),_e=new Fn([ce,b],{classes:"ML__tooltip-container"});return this.caret&&(_e.caret=this.caret),this.bind(y,_e)}},Ru=class e0 extends an{constructor(y,b){super(oe(ie({},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 e0(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 ee=new Fn(this.value,{type:"op",mode:"math",maxFontSize:y.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:y.letterShapeStyle});let ce=ee;if(this.superscript||this.subscript){const _e=(b=this.subsupPlacement)!=null?b:"auto";ce=_e==="over-under"||_e==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee}):this.attachSupsub(y,{base:ee})}return new Fn(this.bind(y,ce),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(y)}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=dt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const ee=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&ee.push("\\limits"),this.subsupPlacement==="adjacent"&&ee.push("\\nolimits"),this.subsupPlacement==="auto"&&ee.push("\\displaylimits")),ee.push(this.supsubToLatex(y)),ya(ee)}};function pu(a){if(ne(a))return a.map(ee=>pu(ee));if(typeof a=="string")return an.fromJson(a);a=ie({},a);for(const ee of uu)a[ee]&&(a[ee]=pu(a[ee]));a.args&&(a.args=f0(a.args)),a.array&&(a.array=pu(a.array));const y=a.type;let b;y==="accent"&&(b=te.fromJson(a)),y==="array"&&(b=la.fromJson(a)),y==="box"&&(b=Jo.fromJson(a)),y==="chem"&&(b=np.fromJson(a)),y==="composition"&&(b=Zc.fromJson(a)),y==="delim"&&(b=ip.fromJson(a)),y==="enclose"&&(b=zd.fromJson(a)),y==="error"&&(b=il.fromJson(a)),y==="extensible-symbol"&&(b=hh.fromJson(a)),y==="genfrac"&&(b=ud.fromJson(a)),y==="group"&&(b=Ss.fromJson(a)),y==="latex"&&(b=Ps.fromJson(a)),y==="latexgroup"&&(b=Kd.fromJson(a)),y==="leftright"&&(b=Ga.fromJson(a)),y==="macro"&&(b=cd.fromJson(a)),y==="macro-argument"&&(b=pc.fromJson(a)),y==="operator"&&(b=Ru.fromJson(a)),y==="overlap"&&(b=Lu.fromJson(a)),y==="overunder"&&(b=ql.fromJson(a)),y==="placeholder"&&(b=zi.fromJson(a)),y==="prompt"&&(b=kc.fromJson(a)),y==="phantom"&&(b=Hd.fromJson(a)),y==="sizeddelim"&&(b=ap.fromJson(a)),y==="spacing"&&(b=Wd.fromJson(a)),y==="subsup"&&(b=Ql.fromJson(a)),y==="surd"&&(b=sp.fromJson(a)),y==="text"&&(b=fc.fromJson(a)),y==="tooltip"&&(b=ph.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=an.fromJson(a));for(const ee of uu)a[ee]&&b.setChildren(a[ee],ee);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 f0(a){if(a&&Array.isArray(a))return a.map(y=>y==="<null>"?null:typeof y=="object"&&"group"in y?{group:y.group.map(b=>pu(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>pu(b)):y)}var lp={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"]},mh={"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]$/},cp=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,h0=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,p0=[/^[a-z]$/,/^[A-Z]$/,cp,h0],m0={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},g0=class extends Fs{constructor(){super("math")}createAtom(a,y,b){var ee,ce,_e,je;if(y===null)return new an({type:"mord",mode:"math",command:a,value:a,style:b});const et=window.MathfieldElement.isFunction((ee=y.command)!=null?ee:a);if(y.definitionType==="symbol"){const gt=new an({type:(ce=y.type)!=null?ce:"mord",mode:"math",command:(_e=y.command)!=null?_e:a,value:String.fromCodePoint(y.codepoint),style:b});return et&&(gt.isFunction=!0),a.startsWith("\\")&&(gt.verbatimLatex=a),gt}const ot=new an({type:"mord",mode:"math",command:(je=y.command)!=null?je:a,value:a,style:b});return et&&(ot.isFunction=!0),a.startsWith("\\")&&(ot.verbatimLatex=a),ot}serialize(a,y){const b=v0(a,oe(ie({},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:ee}=y;b==="normal"&&!ee&&/[\u00A3\u0131\u0237]/.test(a.value)&&(b="main",ee="italic"),b==="normal"&&!ee&&a.value.length===1&&p0.forEach((et,ot)=>{var gt;et.test(a.value)&&m0[(gt=y.letterShapeStyle)!=null?gt:"tex"][ot]==="it"&&(ee="italic")}),ee==="up"&&(ee=void 0);const ce=ee?b+"-"+ee:b;console.assert(lp[ce]!==void 0);const[_e,je]=lp[ce];return mh[b]&&!mh[b].test(a.value)?(a.value=pt(a.value,b,ee),null):(cp.test(a.value)&&(a.classes+=" lcGreek"),je&&(a.classes+=" "+je),_e)}};function v0(a,y){const{parent:b}=a[0],ee=up(b);return To(a,"variant").map(ce=>{const _e=up(ce[0]);let je="";_e&&_e!==ee&&(je={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"}[_e],console.assert(je!==void 0));const et=ya(ce.map(ot=>ot._serialize(y)));return je?so(je,et):et})}function up(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 g0;function y0(a,y){return a.map(b=>b._serialize(y))}function b0(a,y){return To(a,"fontShape").map(b=>{const ee=y0(b,y),{fontShape:ce}=b[0].style;let _e="";return ce==="it"&&(_e="\\textit"),ce==="sl"&&(_e="\\textsl"),ce==="sc"&&(_e="\\textsc"),ce==="n"&&(_e="\\textup"),!_e&&ce?`{${so("\\fontshape",ce)}${ya(ee)}}`:_e?so(_e,ya(ee)):ya(ee)})}function x0(a,y){return To(a,"fontSeries").map(b=>{const ee=b0(b,y),{fontSeries:ce}=b[0].style;let _e="";return ce==="b"&&(_e="\\textbf"),ce==="l"&&(_e="\\textlf"),ce==="m"&&(_e="\\textmd"),ce&&!_e?`{${so("\\fontseries",ce)}${ya(ee)}}`:_e?so(_e,ya(ee)):ya(ee)})}function w0(a,y){return To(a,"fontSize").map(b=>{var ee,ce;const _e=x0(b,y),je=(ce=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(ee=b[0].style.fontSize)!=null?ee:""])!=null?ce:"";return je?`${je} ${ya(_e)}`:ya(_e)})}function S0(a,y,b){return To(a,"fontFamily").map(ee=>{var ce,_e;const je=w0(ee,y),et=(_e={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ce=ee[0].style.fontFamily)!=null?ce:""])!=null?_e:"";return et?`\\${et}{${ya(je)}}`:ee[0].style.fontFamily?`{\\fontfamily{${ee[0].style.fontFamily}} ${ya(je)}}`:b?`\\text{${ya(je)}}`:ya(je)})}var dp={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},C0=class extends Fs{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new fc(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return S0(a,oe(ie({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,ee,ce,_e,je;const{fontFamily:et}=y;if(dp[et]?a.classes+=" "+dp[et]:et&&a.setStyle("font-family",et),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 ot=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);ot&&(a.classes+=" ",a.classes+=(ce={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"}[(ee=ot[1])!=null?ee:""])!=null?ce:"",a.classes+=" ",a.classes+=(je={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"}[(_e=ot[2])!=null?_e:""])!=null?je:"")}return"Main-Regular"}};new C0;var E0=class extends Fs{constructor(){super("latex")}createAtom(a){return new Ps(a)}serialize(a,y){return a.filter(b=>b instanceof Ps&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new E0;var M0={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:["","=","","="]}},gh={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:["","=","","="]}},fp={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:["\\","|","",""]}},hp={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:[")",")",")",")"]}},_0={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:["=","=","=","="]}},k0={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:["<",">","",""]}},T0={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"]}},A0={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:["=","=","=","="]}},O0={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:["<",">","|",""]}},D0={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:[".",".",".","."]}},I0={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"]}},P0={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:["<",">","",""]}},L0={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 pp(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 dd(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 R0={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},Vd=[],Gd;function vh(){switch(xe()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Kl(a){(!a.platform||a.platform===vh())&&Vd.push(a)}function B0(a,y){var b;const ee={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!a)return ee;for(const[ce,_e]of Object.entries(y.mapping)){if(_e[0]===a)return ee.key=`[${ce}]`,ee;if(_e[1]===a)return ee.shift=!0,ee.key=`[${ce}]`,ee;if(_e[2]===a)return ee.alt=!0,ee.key=`[${ce}]`,ee;if(_e[3]===a)return ee.shift=!0,ee.alt=!0,ee.key=`[${ce}]`,ee}return ee.key=(b=R0[a])!=null?b:"",ee}function N0(a){if(a.code)return a;const y=Object.entries(Xd().mapping);let b=!1,ee=!1,ce="";for(let _e=0;_e<4;_e++){for(const[je,et]of y)if(et[_e]===a.key){ce=je,_e===3?(b=!0,ee=!0):_e===2?b=!0:_e===1&&(ee=!0);break}if(ce)break}return new KeyboardEvent(a.type,oe(ie({},a),{altKey:b,shiftKey:ee,code:ce}))}function j0(a){var y,b;if(!a||a.key==="Unidentified"||a.key==="Dead")return;const ee=a.shiftKey&&a.altKey?3:a.altKey?2:a.shiftKey?1:0;for(const ce of Vd)((y=ce.mapping[a.code])==null?void 0:y[ee])===a.key?ce.score+=1:(b=ce.mapping[a.code])!=null&&b[ee]&&(ce.score=0);Vd.sort((ce,_e)=>_e.score-ce.score)}function F0(a){Gd=Vd.find(y=>a.startsWith(y.locale))}function Xd(){return Gd!=null?Gd:Vd[0]}function $0(){switch(vh()){case"apple":return gh;case"windows":return fp;case"linux":return hp}return gh}switch(vh()){case"apple":Kl(gh),Kl(_0),Kl(I0),Kl(A0);break;case"windows":Kl(fp),Kl(k0),Kl(P0),Kl(O0);break;case"linux":Kl(hp),Kl(T0),Kl(L0),Kl(D0);break}Kl(M0);function yh(a){var y;const b=/macos|ios/.test(xe()),ee=a.split("+");let ce="";for(const _e of ee)ce&&(ce+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),_e.startsWith("[Key")?ce+=_e.slice(4,5):_e.startsWith("Key")?ce+=_e.slice(3,4):_e.startsWith("[Digit")?ce+=_e.slice(6,7):_e.startsWith("Digit")?ce+=_e.slice(5,6):ce+=(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"}[_e.toLowerCase()])!=null?y:_e.toUpperCase();return ce}function _f(a){if(a instanceof MouseEvent||a instanceof PointerEvent)return{x:a.clientX,y:a.clientY};if(a instanceof TouchEvent){const y=[...a.touches].reduce((ee,ce)=>({x:ee.x+ce.clientX,y:ee.y+ce.clientY}),{x:0,y:0}),b=a.touches.length;return{x:y.x/b,y:y.y/b}}}function Bu(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 z0(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 K0=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function kf(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:K0.has(a.code)}function Tf(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var Tc=class Yc{static get scrim(){return Yc._scrim||(Yc._scrim=new Yc),Yc._scrim}static open(y){Yc.scrim.open(y)}static close(){Yc.scrim.close()}static get state(){return Yc.scrim.state}static get element(){return Yc.scrim.element}constructor(y){var b,ee;this.lightDismiss=(b=y==null?void 0:y.lightDismiss)!=null?b:!0,this.translucent=(ee=y==null?void 0:y.translucent)!=null?ee:!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=Tf();const{element:ee}=this;((b=y==null?void 0:y.root)!=null?b:document.body).appendChild(ee),ee.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const ce=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const _e=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${_e+ce}px`,y!=null&&y.child&&ee.append(y.child),this.state="open"}close(){var y,b,ee,ce;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:_e}=this;_e.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),_e.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",Tf()!==this.savedActiveElement&&((ce=(ee=this.savedActiveElement)==null?void 0:ee.focus)==null||ce.call(ee)),_e.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 H0(a,y,b){let ee=null,ce=null,_e=!1,je=!1,et=!1;const ot=new AbortController,gt=ot.signal;return a.addEventListener("keydown",wt=>{if(_e||wt.key==="Process"||wt.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(wt.code)){ee=null;return}ee=wt,ce=null,b.onKeystroke(wt)?a.textContent="":ee=null},{capture:!0,signal:gt}),a.addEventListener("keypress",wt=>{_e||(ee&&ce&&b.onKeystroke(ee),ce=wt)},{capture:!0,signal:gt}),a.addEventListener("compositionstart",wt=>{a.textContent="",_e=!0,b.onCompositionStart(wt.data)},{capture:!0,signal:gt}),a.addEventListener("compositionupdate",wt=>{_e&&b.onCompositionUpdate(wt.data)},{capture:!0,signal:gt}),a.addEventListener("compositionend",wt=>{a.textContent="",_e&&(_e=!1,b.onCompositionEnd(wt.data))},{capture:!0,signal:gt}),a.addEventListener("beforeinput",wt=>wt.stopImmediatePropagation(),{signal:gt}),a.addEventListener("input",wt=>{var jt;if(!_e&&(a.textContent="",wt.inputType!=="insertCompositionText")){if(wt.inputType==="insertFromPaste"){wt.preventDefault(),wt.stopPropagation();return}b.onInput((jt=wt.data)!=null?jt:""),wt.preventDefault(),wt.stopPropagation()}},{signal:gt}),a.addEventListener("paste",wt=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(wt)||wt.preventDefault(),wt.stopImmediatePropagation()},{signal:gt}),a.addEventListener("cut",wt=>b.onCut(wt),{capture:!0,signal:gt}),a.addEventListener("copy",wt=>b.onCopy(wt),{capture:!0,signal:gt}),a.addEventListener("blur",wt=>{var jt,Vt;if(((Vt=(jt=wt.relatedTarget)==null?void 0:jt._mathfield)==null?void 0:Vt.element)===y){a.focus({preventScroll:!0}),wt.preventDefault(),wt.stopPropagation();return}const ar=Tc.state;if(ar==="open"||ar==="opening"){wt.preventDefault(),wt.stopPropagation();return}if(wt.relatedTarget===wt.target.getRootNode().host){wt.preventDefault(),wt.stopPropagation();return}et||je||(et=!0,ee=null,ce=null,b.onBlur(),et=!1)},{capture:!0,signal:gt}),a.addEventListener("focus",wt=>{et||je||(je=!0,b.onFocus(),je=!1)},{capture:!0,signal:gt}),{dispose:()=>ot.abort(),cancelComposition:()=>{_e&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!je&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Tf()===a,setAriaLabel:wt=>a.setAttribute("aria-label",wt),setValue:wt=>{var jt;a.textContent=wt,a.style.left="-1000px",(jt=window.getSelection())==null||jt.selectAllChildren(a)},moveTo:(wt,jt)=>{a.style.top=`${jt}px`,a.style.left=`${wt}px`}}}function fd(a){var y;if(!a||!kf(a))return"";let b;return a.key==="Unidentified"&&a.target&&(b=a.target.value),b=(y=b!=null?b:a.key)!=null?y:a.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(b)&&(b=""),b}function mp(a){a=N0(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 W0(a){if(ue()){const y=xe(),b=a.startsWith("!"),ee=a.endsWith(y);if(b&&!ee||!b&&ee)return!0}return a==="!other"?!1:a==="other"}function Z0(a,y,b){if(a.length===0)return"";const ee=dd(pp(mp(b))),ce=dd({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(xe()),cmd:!1,win:!1});for(let _e=a.length-1;_e>=0;_e--)if((a[_e].key===ee||a[_e].key===ce)&&(!a[_e].ifMode||a[_e].ifMode===y))return a[_e].command;return""}function gp(a){let y=a;return ne(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function U0(a,y){let b=[];if(typeof y=="string"){const _e=Rd[y];ne(_e)?b=_e.slice():_e&&b.push(_e)}const ee=gp(y),ce=new RegExp("^"+ee.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const _e of a)ce.test(gp(_e.command))&&b.push(_e.key);return b.map(yh)}function V0(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=pp(a.key);let ee=a.ifPlatform;if(b.cmd){if(ee&&ee!=="macos"&&ee!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+ee+`"
|
|
|
"cmd" modifier can only be used with macOS or iOS platform.`);ee||(ee=xe()==="ios"?"ios":"macos"),b.win=!1,b.cmd=!1,b.meta=!0}if(b.win){if(ee&&ee!=="windows")throw new Error('Unexpected "win" modifier with platform "'+ee+`"
|
|
|
"win" modifier can only be used with Windows platform.`);ee="windows",b.win=!1,b.cmd=!1,b.meta=!0}if(ee&&!W0(ee))return;if(/^\[.+\]$/.test(b.key))return oe(ie({},a),{key:dd(b)});const ce=B0(b.key,y);if(!ce)return oe(ie({},a),{key:dd(b)});if(ce.shift&&b.shift||ce.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${bh(a.command)}) is conflicting with the key combination ${dd(ce)} using the ${y.displayName} keyboard layout`);return ce.shift=ce.shift||b.shift,ce.alt=ce.alt||b.alt,ce.meta=b.meta,ce.ctrl=b.ctrl,oe(ie({},a),{key:dd(ce)})}function bh(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function G0(a,y){const b=[],ee=[];for(const ce of a)try{const _e=V0(ce,y);if(!_e)continue;const je=ee.find(et=>et.key===_e.key&&et.ifMode===_e.ifMode);if(je)throw new Error(`Ambiguous key binding ${ce.key} (${bh(ce.command)}) matches ${je.key} (${bh(je.command)}) with the ${y.displayName} keyboard layout`);ee.push(_e)}catch(_e){_e instanceof Error&&b.push(_e.message)}return[ee,b]}var X0=class extends ta{constructor(){super("latex")}createAtom(a){return new Ps(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"}),Ko(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:ee}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ce=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(ws(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 _e=[];for(const ot of y)fe.test(ot)&&_e.push(new Ps(ot));let je=a.at(a.position);if(je instanceof Kd&&(je=je.lastChild),!(je.parent instanceof Kd)){const ot=new Kd("");je.parent.addChildAfter(ot,je),je=ot.firstChild}const et=je.parent.addChildrenAfter(_e,je);return a.silenceNotifications=ce,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(et)):et&&(a.position=a.offsetOf(et))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=ee,!0}};function Y0(a){return a.atoms.find(y=>y.type==="latexgroup")}function Yd(a){var y,b;const ee=a.atoms.find(ce=>ce.type==="latexgroup");return ee?(b=(y=ee.body)==null?void 0:y.filter(ce=>ce.type==="latex"))!=null?b:[]:[]}function vp(a,y){var b;let ee=0,ce=!1;const _e=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;ee<=_e&&!ce;){const ot=a.at(ee);ce=ot instanceof Ps&&ot.isSuggestion,ce||ee++}if(!ce)return[void 0,void 0];let je=ee,et=!1;for(;je<=_e&&!et;){const ot=a.at(je);et=!(ot instanceof Ps&&ot.isSuggestion),et||je++}return[ee-1,je-1]}new X0;function Af(a){const y=Yd(a.model).filter(b=>b.isSuggestion);if(y.length!==0){a.model.position=a.model.offsetOf(y[0].leftSibling);for(const b of y)b.parent.removeChild(b)}}function Jd(a,y){var b;const{model:ee}=a;Af(a);for(const wt of Yd(ee))wt.isError=!1;if(!ee.selectionIsCollapsed||a.options.popoverPolicy==="off"){pd(a);return}const ce=[];let _e=ee.at(ee.position);for(;_e&&_e instanceof Ps&&/^[a-zA-Z\*]$/.test(_e.value);)_e=_e.leftSibling;if(_e&&_e instanceof Ps&&_e.value==="\\")for(ce.push(_e),_e=_e.rightSibling;_e&&_e instanceof Ps&&/^[a-zA-Z\*]$/.test(_e.value);)ce.push(_e),_e=_e.rightSibling;const je=ce.map(wt=>wt.value).join(""),et=We(a,je);if(et.length===0){if(/^\\[a-zA-Z\*]+$/.test(je))for(const wt of ce)wt.isError=!0;pd(a);return}const ot=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=ot<0?et.length-1:ot%et.length;const gt=et[a.suggestionIndex];if(gt!==je){const wt=ce[ce.length-1];wt.parent.addChildrenAfter([...gt.slice(je.length-gt.length)].map(jt=>new Ps(jt,{isSuggestion:!0})),wt),Nu(a,{interactive:!0})}Q0(a,et)}function yp(a){const[y,b]=vp(a,{before:a.position});if(y===void 0||b===void 0)return!1;let ee=!1;return a.getAtoms([y,b]).forEach(ce=>{ce.isSuggestion&&(ce.isSuggestion=!1,ee=!0)}),ee}function hd(a,y="accept",b){var ee,ce;pd(a);const _e=Y0(a.model);if(!_e)return!1;if(y==="accept-suggestion"||y==="accept-all"){const gt=Yd(a.model).filter(wt=>wt.isSuggestion);if(gt.length!==0){for(const wt of gt)wt.isSuggestion=!1;a.model.position=a.model.offsetOf(gt[gt.length-1])}if(y==="accept-suggestion")return gt.length!==0}const et=Yd(a.model).filter(gt=>!gt.isSuggestion).map(gt=>gt.value).join(""),ot=_e.leftSibling;return _e.parent.removeChild(_e),a.model.position=a.model.offsetOf(ot),a.switchMode((ee=b==null?void 0:b.mode)!=null?ee:"math"),y==="reject"||(ta.insert(a.model,et,{selectionMode:(ce=b==null?void 0:b.selectItem)!=null&&ce?"item":"placeholder",format:"latex",mode:"math"}),a.snapshot(),a.model.announce("replacement"),a.switchMode("math")),!0}function Of(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 xh(a){var y;const b=document.getElementById(a);if(!b)return;const ee=Number.parseInt((y=b.getAttribute("data-refcount"))!=null?y:"0");ee<=1?b.remove():b.dataset.refcount=Number(ee-1).toString()}function J0(a,y){const b=new Da({from:a.context}),ee=new an({mode:"math",type:"root",body:Cs(y,{context:b})}),ce=su(Zd(new Fn(ee.render(b),{classes:"ML__base"}),b));return lu(ce,{classes:"ML__latex"}).toMarkup()}function Q0(a,y){var b;if(y.length===0){pd(a);return}let ee="";for(const[_e,je]of y.entries()){const et=je,ot=J0(a,je),gt=U0(a.keybindings,et).join("<br>");ee+=`<li role="button" data-command="${et}" ${_e===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${et}</span><span class="ML__popover__command">${ot}</span>`,gt&&(ee+=`<span class="ML__popover__keybinding">${gt}</span>`),ee+="</li>"}const ce=q0(a,`<ul>${ee}</ul>`);wh()&&((b=ce.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var _e;ce&&!wh()&&(ce.classList.add("is-visible"),Df(a),(_e=ce.querySelector(".ML__popover__current"))==null||_e.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function wh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function Df(a,y){var b;if(!a.element||a.element.mathfield!==a||!wh())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){pd(a);return}if(y!=null&&y.deferred){setTimeout(()=>Df(a),32);return}const ee=_c(a.field);if(!ee)return;const ce=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,_e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,je=window.innerWidth-document.documentElement.clientWidth,et=window.innerHeight-document.documentElement.clientHeight,ot=window.mathVirtualKeyboard.boundingRect.height,gt=document.getElementById("mathlive-suggestion-popover");ee.x+gt.offsetWidth/2>_e-je?gt.style.left=`${_e-gt.offsetWidth-je}px`:ee.x-gt.offsetWidth/2<0?gt.style.left="0":gt.style.left=`${ee.x-gt.offsetWidth/2}px`;const wt=ee.y-ee.height;ce-et-ot-ee.y<wt?(gt.classList.add("ML__popover--reverse-direction"),gt.classList.remove("top-tip"),gt.classList.add("bottom-tip"),gt.style.top=`${ee.y-ee.height-gt.offsetHeight-15}px`):(gt.classList.remove("ML__popover--reverse-direction"),gt.classList.add("top-tip"),gt.classList.remove("bottom-tip"),gt.style.top=`${ee.y+15}px`)}function pd(a){a.suggestionIndex=0;const y=document.getElementById("mathlive-suggestion-popover");y&&(y.classList.remove("is-visible"),y.innerHTML="")}function q0(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=Of("mathlive-suggestion-popover"),_l("suggestion-popover"),_l("core"),b.addEventListener("pointerdown",ee=>ee.preventDefault()),b.addEventListener("click",ee=>{let ce=ee.target;for(;ce&&!ce.dataset.command;)ce=ce.parentElement;ce&&(hd(a,"reject"),ta.insert(a.model,ce.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),a.dirty=!0,a.focus())})),b.innerHTML=window.MathfieldElement.createHTML(y),b}function eg(){document.getElementById("mathlive-suggestion-popover")&&(xh("mathlive-suggestion-popover"),E("suggestion-popover"),E("core"))}function tg(){const a=String(new Error().stack).replace(/^Error.*\n/,"").split(`
|
|
|
`);if(a.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let y=a[1],b=y.match(/http.*\.ts[\?:]/);return b&&(y=a[2]),b=y.match(/(https?:.*):[0-9]+:[0-9]+/),b||(b=y.match(/at (.*(\.ts))[\?:]/),b||(b=y.match(/at (.*(\.mjs|\.js))[\?:]/))),b?b[1]:(console.error(a),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${y}").`),"")}var If=null,bp,xp,Sh=((xp=(bp=globalThis==null?void 0:globalThis.document)==null?void 0:bp.currentScript)==null?void 0:xp.src)||tg();function wp(a){return bu(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(If===null)try{const y=yield fetch(Sh,{method:"HEAD"});y.status===200&&(If=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${Sh}")`)}return new URL(a,If!=null?If:Sh).href})}function rg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var Hl="not-loaded";function ng(){return bu(this,null,function*(){return Hl="not-loaded",Pf()})}function Pf(){return bu(this,null,function*(){var a;if(Hl!=="not-loaded")return;if(Hl="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){Hl="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"],ee=Array.from(document.fonts).map(je=>je.family);if(b.every(je=>ee.includes(je))){Hl="ready";return}if(!window.MathfieldElement.fontsDirectory){Hl="not-loaded";return}const ce=yield wp(window.MathfieldElement.fontsDirectory);if(!ce){document.body.classList.add("ML__fonts-did-not-load"),Hl="error";return}const _e=[["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(je=>rg(je[0].replace(/-[a-zA-Z]+$/,""),`${ce}/${je[0]}`,je[1]));try{(yield Promise.all(_e.map(et=>{try{return et.load()}catch(ot){}}))).forEach(et=>document.fonts.add(et)),Hl="ready";return}catch(je){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ce}"`,{cause:je}),document.body.classList.add("ML__fonts-did-not-load")}Hl="error"}})}function ig(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 Ko(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{$l(a)&&a.dirty&&(a.atomBoundsCache=new Map,Nu(a,y),a.atomBoundsCache=void 0)})))}function ag(a,y){var b;y=y!=null?y:{};const ee=new Da({from:oe(ie({},a.context),{atomIdsSettings:{seed:y.forHighlighting?ig(an.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"}),ce=a.model.root.render(ee);return lu(Zd(ce,ee),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function Sp(a,y){const{model:b}=a;b.root.caret=void 0,b.root.isSelected=!1,b.root.containsCaret=!0;for(const ce of b.atoms)ce.caret=void 0,ce.isSelected=!1,ce.containsCaret=!1;if(b.selectionIsCollapsed){const ce=b.at(b.position);ce.caret=a.model.mode;let _e=ce.parent;for(;_e;)_e.containsCaret=!0,_e=_e.parent}else{const ce=b.getAtoms(b.selection,{includeChildren:!0});for(const _e of ce)_e.isSelected=!0}return ag(a,y).toMarkup()}function Nu(a,y){if(!$l(a))return;y!=null||(y={});const b=a.element.querySelector("[part=virtual-keyboard-toggle]");b&&(b.style.display=a.hasEditableContent?"":"none");const ee=a.field;if(!ee)return;const ce=a.isSelectionEditable&&a.hasFocus(),_e=ee.classList.contains("ML__focused");_e&&!ce?ee.classList.remove("ML__focused"):!_e&&ce&&ee.classList.add("ML__focused");let je=Sp(a,y);const et=a.element.querySelector("[part=menu-toggle]");if(et&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?et.style.display="none":et.style.display=""),a.model.atoms.length<=1){const ot=a.options.contentPlaceholder;ot&&(je+=`<span part=placeholder class="ML__content-placeholder">${Es(ot)}</span>`)}ee.innerHTML=window.MathfieldElement.createHTML(je),Lf(a,y.interactive),a.dirty=!1}function Lf(a,y){const b=a.field;if(!b)return;for(const et of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))et.remove();!(y!=null&&y)&&Hl!=="error"&&Hl!=="ready"&&setTimeout(()=>{Hl==="ready"?Lf(a):setTimeout(()=>Lf(a),128)},32);const ee=a.model,ce=b.offsetWidth,_e=b.getBoundingClientRect().width;let je=Math.floor(_e)/ce;if(je=isNaN(je)?1:je,ee.selectionIsCollapsed){Df(a,{deferred:!0});let et=ee.at(ee.position);for(;et&&et.type!=="prompt"&&!(et.containsCaret&&et.displayContainsHighlight);)et=et.parent;if(et!=null&&et.containsCaret&&et.displayContainsHighlight){const ot=Nd(a,du(a,et),je);if(ot){ot.left/=je,ot.right/=je,ot.top/=je,ot.bottom/=je;const gt=document.createElement("div");gt.classList.add("ML__contains-highlight"),gt.style.position="absolute",gt.style.left=`${ot.left+1}px`,gt.style.top=`${Math.ceil(ot.top)}px`,gt.style.width=`${Math.ceil(ot.right-ot.left)}px`,gt.style.height=`${Math.ceil(ot.bottom-ot.top)}px`,b.insertBefore(gt,b.childNodes[0])}}return}for(const et of og(Fd(a,{excludeAtomsWithBackground:!0}))){et.left/=je,et.right/=je,et.top/=je,et.bottom/=je;const ot=document.createElement("div");ot.classList.add("ML__selection"),ot.style.position="absolute",ot.style.left=`${et.left}px`,ot.style.top=`${et.top}px`,ot.style.width=`${Math.ceil(et.right-et.left)}px`,ot.style.height=`${Math.ceil(et.bottom-et.top-1)}px`,b.insertBefore(ot,b.childNodes[0])}}function og(a){let y=[];for(const b of a){let ee=!1;for(const ce of y)if(b.left===ce.left&&b.right===ce.right&&b.top===ce.top&&b.bottom===ce.bottom){ee=!0;break}ee||y.push(b)}a=y,y=[];for(const b of a){let ee=0;for(const ce of a)if(b.left>=ce.left&&b.right<=ce.right&&b.top>=ce.top&&b.bottom<=ce.bottom&&(ee+=1,ee>1))break;ee===1&&y.push(b)}return y}var Cp=3,Ac;function kl(a,y){y=ie({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Ac||(Ac={});for(const b of Object.keys(a))console.assert(!Ac[b],"Selector already defined: ",b),Ac[b]=oe(ie({},y),{fn:a[b]})}function Ch(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return Ch(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Ac[y]}function md(a){var y;return(y=Ch(a))==null?void 0:y.target}function sg(a,y){var b;if(!y)return!1;let ee,ce=[],_e=!1,je=!1;ne(y)?(ee=y[0],ce=y.slice(1)):ee=y,ee=ee.replace(/-\w/g,gt=>gt[1].toUpperCase());const et=Ac[ee],ot=et==null?void 0:et.target;if(ot==="model"){if(!a.isSelectionEditable&&(et!=null&&et.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(ee)&&(ee!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(ee)),/^complete/.test(ee)||Af(a),Ac[ee].fn(a.model,...ce),Jd(a),je=!0,_e=!0}else if(ot==="virtual-keyboard")je=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,_e=!0;else if(Ac[ee]){if(!a.isSelectionEditable&&(et!=null&&et.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(ee)&&a.flushInlineShortcutBuffer(),je=Ac[ee].fn(a,...ce),_e=!0}else throw new Error(`Unknown command "${ee}"`);return ot!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||et!=null&&et.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),et!=null&&et.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),je&&Ko(a),_e}function lg(a,y){var b;if(!a)return!1;a.focus(),ym.keypressVibration&&he()&&navigator.vibrate(Cp);const ee=Ch(y);window.MathfieldElement.playSound((b=ee==null?void 0:ee.audioFeedback)!=null?b:"keypress");const ce=a.executeCommand(y);return a.scrollIntoView(),ce}kl({performWithFeedback:(a,y)=>lg(a,y)});function cg(a){return Jd(a,{atIndex:a.suggestionIndex+1}),!1}function ug(a){return Jd(a,{atIndex:a.suggestionIndex-1}),!1}kl({complete:hd},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),kl({nextSuggestion:cg,previousSuggestion:ug},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Rf="mathlive#virtual-keyboard-message";function Eh(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Rf}var dg=class t0{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 t0),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,ee){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,ee){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(Eh(y)){if(!$d(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");this.handleMessage(y.data)}}handleMessage(y){const{action:b}=y;if(b==="execute-command"){const{command:ee}=y;md(ee)==="virtual-keyboard"&&this.executeCommand(ee);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(ie({type:Rf,action:y},b),this.targetOrigin)}},Ep={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]"]]}},Bf={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"\xE0","\xE1","\xE2","\xE4","\xE6"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"\xE7"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn\u2019t"},"\xE8","\xE9","\xEA","\xEB"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"\xEC","\xED","\xEE","\xEF"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"\xF1"],o:["\xF8","\u0153","\xF2","\xF3","\xF4","\xF6","\u0153"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["\xF9","\xFA","\xFB","\xFC"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["\xFD","\xFF"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space<br>\u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space<br>\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space<br>\u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space<br>\u2075\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"\u2153 em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"\xBD em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]},Qd;function Mp(a,y){var b,ee,ce;const _e=mu.singleton;if(!_e)return;const je=gd(a),et=(ee=(b=_e.getKeycap(je==null?void 0:je.id))==null?void 0:b.variants)!=null?ee:"";if(typeof et=="string"&&!_p(et)||Array.isArray(et)&&et.length===0){y==null||y();return}const ot={};let gt="";for(const Zr of hg(et)){const Kn=Tp(Zr),Hr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);ot[Hr]=Kn;const[fn,Yn]=Nf(Kn);gt+=`<div id=${Hr} class="item ${Yn}">${fn}</div>`}const wt=document.createElement("div");wt.setAttribute("aria-hidden","true"),wt.className="MLK__variant-panel",wt.style.height="auto";const jt=Object.keys(ot).length;let Vt=5;jt===1?Vt=1:jt===2||jt===4?Vt=2:jt===3||jt===5||jt===6?Vt=3:jt>=7&&jt<14&&(Vt=4),wt.style.width=`calc(var(--variant-keycap-length) * ${Vt} + 12px)`,wt.innerHTML=ym.createHTML(gt),Tc.open({root:(ce=_e==null?void 0:_e.container)==null?void 0:ce.querySelector(".ML__keyboard"),child:wt}),Qd=new AbortController;const{signal:ar}=Qd,dr=a==null?void 0:a.getBoundingClientRect();if(dr){dr.top-wt.clientHeight<0&&(wt.style.width="auto",jt<=6?wt.style.height="56px":jt<=12?wt.style.height="108px":jt<=18?wt.style.height="205px":wt.classList.add("compact"));const Zr=Math.max(0,Math.min(window.innerWidth-wt.offsetWidth,(dr.left+dr.right-wt.offsetWidth)/2)),Kn=dr.top-wt.clientHeight+5;wt.style.transform=`translate(${Zr}px, ${Kn}px)`,wt.classList.add("is-visible"),requestAnimationFrame(()=>{wt.addEventListener("pointerup",Hr=>{const fn=gd(Hr.target);!(fn!=null&&fn.id)||!ot[fn.id]||(Mh(ot[fn.id]),qd(),y==null||y(),Hr.preventDefault())},{capture:!0,passive:!1,signal:ar}),wt.addEventListener("pointerenter",Hr=>{const fn=gd(Hr.target);!(fn!=null&&fn.id)||!ot[fn.id]||fn.classList.add("is-active")},{capture:!0,signal:ar}),wt.addEventListener("pointerleave",Hr=>{const fn=gd(Hr.target);!(fn!=null&&fn.id)||!ot[fn.id]||fn.classList.remove("is-active")},{capture:!0,signal:ar}),window.addEventListener("pointercancel",()=>{qd(),y==null||y()},{signal:ar}),window.addEventListener("pointerup",()=>{qd(),y==null||y()},{signal:ar})})}}function qd(){Qd==null||Qd.abort(),Qd=null,Tc.state==="open"&&Tc.close()}function fg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(Te))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+Te[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(Ne))y.push({class:"swatch-button",label:'<span style="background:'+Ne[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function _p(a){return Bf[a]!==void 0}function hg(a){var y;return typeof a!="string"?a:(Bf[a]||(Bf[a]=(y=fg(a))!=null?y:[]),Bf[a])}function pg(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function mg(a){return Object.keys(a).map(y=>`${y} {${pg(a[y])}}`).join("")}function ef(a){if(!a)return"";const y=new Da,b=new an({mode:"math",type:"root",body:Cs(a,{context:y,args:ce=>ce==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),ee=su(Zd(new Fn(b.render(y),{classes:"ML__base"}),y));return lu(ee,{classes:"ML__latex"}).toMarkup()}function tf(a){var y;if(Array.isArray(a))return a.map(ee=>tf(ee)).flat();const b=typeof a=="string"?{markup:a}:a;return"rows"in b&&Array.isArray(b.rows)&&(b.rows=b.rows.map(ee=>ee.map(ce=>Tp(ce)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function gg(){var a,y;let ee=window.mathVirtualKeyboard.alphabeticLayout;if(ee==="auto"){const et=Xd();et&&(ee=et.virtualLayout),(!ee||ee==="auto")&&(ee=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[be.locale.slice(0,2)])!=null?a:"qwerty")}const ce={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},_e=(y=ce[ee])!=null?y:ce.qwerty,je=ee==="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 et of _e){const ot=[];for(const gt of et)/[a-z]/.test(gt)?ot.push({label:gt,class:"hide-shift",shift:{label:gt.toUpperCase()},variants:_p(gt)?gt:void 0}):gt==="~"?ee!=="dvorak"?ot.push("[backspace]"):ot.push({label:"[backspace]",width:1}):gt==="^"?ot.push("[shift]"):gt===" "&&ot.push("[separator-5]");je.push(ot)}return je.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:tf({rows:je})}}function kp(a){if(a==="alphabetic")return gg();if(typeof a=="string")return console.assert(Ep[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),kp(Ep[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 ce=a,{rows:_e}=ce,je=pe(ce,["rows"]);y=oe(ie({},je),{layers:tf({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ce=a,{markup:_e}=ce,je=pe(ce,["markup"]);y=oe(ie({},je),{layers:tf(a.markup)})}else y=ie({},a),"layers"in a?y.layers=tf(a.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let b=!1,ee=!1;for(const ce of y.layers)if(ce.rows)for(const _e of ce.rows.flat()){vd(_e)&&(b=!0);const je=_e.command;typeof je=="string"&&["undo","redo","cut","copy","paste"].includes(je)&&(ee=!0)}return(!("displayShiftedKeycaps"in a)||a.displayShiftedKeycaps===void 0)&&(y.displayShiftedKeycaps=b),(!("displayEditToolbar"in a)||a.displayEditToolbar===void 0)&&(y.displayEditToolbar=!ee),y}function vg(a,y){var b,ee;let ce='<div class="left">';if(a.normalizedLayouts.length>1)for(const[_e,je]of a.normalizedLayouts.entries()){const et=je,ot=[_e===y?"selected":"layer-switch"];et.tooltip&&ot.push("MLK__tooltip"),et.labelClass&&ot.push(...et.labelClass.split(" ")),ce+=`<div class="${ot.join(" ")}"`,et.tooltip&&(ce+=" data-tooltip='"+((b=Me(et.tooltip))!=null?b:et.tooltip)+"' "),_e!==y&&(ce+=`data-layer="${et.layers[0].id}"`),ce+=`>${(ee=et.label)!=null?ee:"untitled"}</div>`}return ce+="</div>",ce}function yg(a,y){let b="";if(a.editToolbar==="none")return"";const ce=[];y.selectionIsCollapsed?ce.push("undo","redo","pasteFromClipboard"):ce.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const _e={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${Me("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${Me("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${Me("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${Me("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${Me("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return b+=ce.map(je=>_e[je]).join(""),b}function bg(a){for(const y of a)xg(y)}function xg(a){const y=mu.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(ee){}a.id=y.registerKeycap(b)}if(!a.innerHTML){const[ee,ce]=Nf(b);a.innerHTML=window.MathfieldElement.createHTML(ee)}}function wg(){_l("virtual-keyboard"),_l("core"),Pf()}function Sg(){E("core"),E("virtual-keyboard")}var Cg=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
|
|
|
|
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
|
|
|
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-shift" viewBox="0 0 384 512">
|
|
|
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-commit" viewBox="0 0 512 512">
|
|
|
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
|
|
|
</symbol>
|
|
|
|
|
|
|
|
|
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
|
|
|
|
|
|
<symbol id="svg-command" viewBox="0 0 640 512">
|
|
|
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-undo" viewBox="0 0 512 512">
|
|
|
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-redo" viewBox="0 0 512 512">
|
|
|
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
|
|
|
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
|
|
|
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-tab" viewBox="0 0 448 512">
|
|
|
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
|
|
|
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
|
|
|
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-trash" viewBox="0 0 448 512">
|
|
|
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
|
|
|
</svg>`;function Eg(a){a.resetKeycapRegistry(),wg();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Cg+a.normalizedLayouts.map((je,et)=>Mg(a,je,et)).join(""));const ee=document.createElement("div");ee.className="MLK__backdrop",ee.appendChild(b),y.appendChild(ee),y.addEventListener("pointerdown",kg,{passive:!1});const ce=y.querySelectorAll(".ML__edit-toolbar");if(ce)for(const je of ce)je.addEventListener("click",et=>{var ot,gt;let wt=et.target,jt="";for(;wt&&!jt;)jt=(ot=wt==null?void 0:wt.getAttribute("data-command"))!=null?ot:"",wt=(gt=wt==null?void 0:wt.parentElement)!=null?gt:null;jt&&a.executeCommand(JSON.parse(jt))});bg(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const _e=y.querySelectorAll(".MLK__layer");console.assert(_e.length>0,"No virtual keyboards available");for(const je of _e)je.addEventListener("pointerdown",et=>et.preventDefault());return a.currentLayer=a.latentLayer,y}function Mg(a,y,b){const ee=[];if(!("layers"in y))return"";for(const ce of y.layers)ee.push(`<div tabindex="-1" class="MLK__layer" id="${ce.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(ee.push("<div class='MLK__toolbar' role='toolbar'>"),ee.push(vg(a,b)),y.displayEditToolbar&&ee.push('<div class="ML__edit-toolbar right"></div>'),ee.push("</div>")),ee.push(_g(a,ce)),ee.push("</div>");return ee.join("")}function _g(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>${mg(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 ee of y.rows){b+="<div dir='ltr' class=MLK__row>";for(const ce of ee)if(ce){const _e=a.registerKeycap(ce),[je,et]=Nf(ce);/(^|\s)separator/.test(et)?b+=`<div class="${et}"`:b+=`<div tabindex="-1" id="${_e}" class="${et}"`,ce.tooltip&&(b+=` data-tooltip="${ce.tooltip}"`),b+=`>${je}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Nf(a,y={shifted:!1}){var b,ee,ce,_e,je,et,ot;let gt="",wt=(b=a.class)!=null?b:"";if(y.shifted&&vd(a)&&(wt+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?gt=ef(a.shift):typeof a.shift=="object"&&(gt=a.shift.label?a.shift.label:(ee=ef(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?ee:""),typeof a.shift=="object"&&(wt=(_e=(ce=a.shift.class)!=null?ce:a.class)!=null?_e:"");else{if(gt=a.label?a.label:(je=ef(a.latex||a.insert||"")||a.key)!=null?je:"",a.shift){let jt;typeof a.shift=="string"?jt=ef(a.shift):a.shift.label?jt=a.shift.label:jt=(et=ef(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?et:"",gt+=`<span class="MLK__shift">${jt}</span>`}a.aside&&(gt+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(wt)&&(wt+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(wt)||(wt+=" MLK__keycap"),!/\bw[0-9]+\b/.test(wt)&&a.width&&(wt+=(ot={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?ot:""),[gt,wt||"MLK__keycap"]}var ju={"[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 Tp(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!ju[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&ju[a.label]&&(b=oe(ie(ie({},ju[a.label]),a),{label:ju[a.label].label})),"key"in a&&a.key&&ju[a.key]&&(b=oe(ie(ie({},ju[a.key]),a),{key:ju[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=ie(ie({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=ie(ie({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=ie(ie({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=ie(ie({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var rf;function kg(a){var y;if(a.button!==0)return;const b=mu.singleton;if(!b)return;let ee=a.target;for(;ee&&!ee.getAttribute("data-layer");)ee=ee.parentElement;if(ee){b.currentLayer=(y=ee.getAttribute("data-layer"))!=null?y:"",a.preventDefault();return}const ce=gd(a.target);if(!(ce!=null&&ce.id))return;const _e=b.getKeycap(ce.id);if(!_e)return;console.assert(a.type==="pointerdown");const je=new AbortController,et=je.signal;ce.classList.add("is-pressed"),ce.addEventListener("pointerenter",jf(je),{capture:!0,signal:et}),ce.addEventListener("pointerleave",jf(je),{capture:!0,signal:et}),ce.addEventListener("pointercancel",jf(je),{signal:et}),ce.addEventListener("pointerup",jf(je),{signal:et}),vd(_e)&&(ce.classList.add("is-active"),b.shiftPressCount++),_e.variants&&(rf&&clearTimeout(rf),rf=setTimeout(()=>{ce.classList.contains("is-pressed")&&(ce.classList.remove("is-pressed"),ce.classList.add("is-active"),a.target&&"releasePointerCapture"in a.target&&a.target.releasePointerCapture(a.pointerId),Mp(ce,()=>{je.abort(),ce==null||ce.classList.remove("is-active")}))},300)),a.preventDefault()}function jf(a){return y=>{const b=gd(y.target);if(!(b!=null&&b.id))return;const ee=mu.singleton;if(!ee)return;const ce=ee.getKeycap(b.id);if(ce){if(y.type==="pointerenter"&&y.target===b&&y.isPrimary&&b.classList.add("is-pressed"),y.type==="pointercancel"){b.classList.remove("is-pressed"),vd(ce)&&(ee.shiftPressCount--,b.classList.toggle("is-active",ee.isShifted)),a.abort();return}if(y.type==="pointerleave"&&y.target===b){b.classList.remove("is-pressed"),vd(ce)&&(ee.shiftPressCount--,b.classList.toggle("is-active",ee.isShifted));return}if(y.type==="pointerup"){rf&&clearTimeout(rf),vd(ce)?b.classList.toggle("is-active",ee.isShifted):b.classList.contains("is-pressed")&&(b.classList.remove("is-pressed"),ee.isShifted&&ce.shift?typeof ce.shift=="string"?ee.executeCommand(["insert",ce.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Mh(ce.shift):Mh(ce),ee.shiftPressCount===1&&!y.shiftKey&&(ee.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function Mh(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=mu.singleton)==null||y.executeCommand(b)}function Tg(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 gd(a){if(!a)return;let y=a;for(;y&&!Tg(y);)y=y.parentElement;return y!=null?y:void 0}function vd(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var mu=class r0{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var y,b,ee;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(ce=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(ee=window.top)==null||ee.addEventListener("message",this)}catch(ce){window.addEventListener("message",this)}document.body.addEventListener("focusin",ce=>{const _e=ce.target;_e!=null&&_e.isConnected&&setTimeout(()=>{const je=Ap();je&&!je.readOnly&&je.mathVirtualKeyboardPolicy==="auto"&&de()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ce=>{ce.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{Ap()||this.hide()},300)})}get currentLayer(){var y,b,ee;return(ee=(b=(y=this._element)==null?void 0:y.querySelector(".MLK__layer.is-visible"))==null?void 0:b.id)!=null?ee:""}set currentLayer(y){var b;if(!this._element){this.latentLayer=y;return}let ee=y?this._element.querySelector(`#${y}.MLK__layer`):null;ee||(ee=this._element.querySelector(".MLK__layer")),ee&&((b=this._element.querySelector(".MLK__layer.is-visible"))==null||b.classList.remove("is-visible"),ee.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 ee of b)for(const ce of ee.layers)if(ce.id===y)return ce}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],ee=b.findIndex(ce=>ce==="default");ee>=0&&b.splice(ee,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(b),this._normalizedLayouts=b.map(ce=>kp(ce))}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 r0}catch(y){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(y,b,ee){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,ee){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 ee=this.boundingRect.height;if(this.container===document.body){(y=this._element)==null||y.style.setProperty("--_keyboard-height",`calc(${ee}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const ce=ee-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${ce}px)`:`${ce}px`}else(b=this._element)==null||b.style.setProperty("--_keyboard-height",`${ee}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 ee of b){const ce=this.getKeycap(ee.id);if(ce){const[_e,je]=Nf(ce,{shifted:this.isShifted});ee.innerHTML=window.MathfieldElement.createHTML(_e),ee.className=je}}}show(y){var b;if(this._visible)return;const ee=this.container;if(ee&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const ce=this._element.getElementsByClassName("MLK__plate")[0];if(ce&&this.observer.observe(ce),ee===window.document.body){const _e=ee.style.paddingBottom;this.originalContainerBottomPadding=_e;const je=ce.offsetHeight-1;ee.style.paddingBottom=_e?`calc(${_e} + ${je}px)`:`${je}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 ce;return(ce=this._element)==null?void 0:ce.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 ee=this.container;if(ee&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const ce=this._element.getElementsByClassName("MLK__plate")[0];ce&&this.observer.unobserve(ce),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),qd(),Sg(),(b=this._element)==null||b.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(ee.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=Eg(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&Mp(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(Eh(y)){if(!$d(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");y.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:y.data.action!=="update-setting"&&y.data.action!=="proxy-created"&&y.data.action!=="execute-command"&&(console.assert(y.source!==void 0),this.connectedMathfieldWindow=y.source),this.handleMessage(y.data,y.source)}if(this._element)switch(y.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":y.button!==2&&y.preventDefault();break;case"keydown":{y.key==="Shift"&&!y.repeat&&(this.shiftPressCount=1);break}case"keyup":{(y.key==="Shift"||!y.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(y,b){const{action:ee}=y;if(ee==="execute-command"){const{command:ce}=y,_e=md(ce);if(window.top!==void 0&&_e!=="virtual-keyboard")return;this.executeCommand(ce);return}if((ee==="connect"||ee==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b),ee!=="disconnect"&&window===window.top){if(ee==="show"){typeof y.animate!="undefined"?this.show({animate:y.animate}):this.show();return}if(ee==="hide"){typeof y.animate!="undefined"?this.hide({animate:y.animate}):this.hide();return}if(ee==="update-setting"){y.alphabeticLayout&&(this.alphabeticLayout=y.alphabeticLayout),y.layouts&&(this.layouts=y.layouts),y.editToolbar&&(this.editToolbar=y.editToolbar);return}if(ee==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b);return}}}sendMessage(y,b,ee){if(ee||(ee=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||ee===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:ie({type:Rf,action:y},b)}));return}if(ee)ee.postMessage(ie({type:Rf,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 ce=b.command[1].split("");for(const _e of ce)this.dispatchEvent(new KeyboardEvent("keydown",{key:_e,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:_e,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 ee=b.querySelectorAll(".ML__edit-toolbar");if(ee)for(const ce of ee)ce.innerHTML=yg(this,y)}update(y){this._style=y.style,this.updateToolbar(y)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(y){let b,ee=[],ce=md(y);return ne(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ce=md(y)),ee=y.slice(1)):b=y,b=b.replace(/-\w/g,_e=>_e[1].toUpperCase()),ce==="virtual-keyboard"?Ac[b].fn(void 0,...ee):(this.sendMessage("execute-command",{command:y}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function Ap(){var a,y;let b=Tf(),ee=null;for(;b;){if("host"in b&&((y=(a=b.host)==null?void 0:a.tagName)==null?void 0:y.toLowerCase())==="math-field"){ee=b.host;break}b=b.parentNode}return ee}if(ue()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=mu.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>dg.singleton,configurable:!0});function Ff(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const ee=a.scriptDepth;if(ne(ee))y.scriptDepth=[ee[0],ee[1]];else if(typeof ee=="number")y.scriptDepth=[ee,ee];else if(typeof ee=="string"){const[_e,je]=ee.split(",").map(et=>parseInt(et.trim()));y.scriptDepth=[_e,je]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ce=a.mathVirtualKeyboardPolicy.toLowerCase();if(ce==="sandboxed"){if(window!==window.top){const _e=mu.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>_e})}ce="manual"}y.mathVirtualKeyboardPolicy=ce;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?be.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=ft(a.macros);break;default:ne(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=ie({},a[b]):y[b]=a[b]}return y}function Fu(a,y){let b;typeof y=="string"?b=[y]:y===void 0?b=Object.keys(a):b=y;const ee={};for(const ce of b)a[ce]===null?ee[ce]=null:ne(a[ce])?ee[ce]=[...a[ce]]:typeof a[ce]=="object"&&!(a[ce]instanceof Element)&&ce!=="computeEngine"?ee[ce]=ie({},a[ce]):ee[ce]=a[ce];return typeof y=="string"?ee[y]:ee}function $f(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Pe,backgroundColorMap:Be,letterShapeStyle:be.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:ch,inlineShortcuts:vf,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:lh,value:""}}function Op(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function gu(a,y){!a||!y||(ne(a)?a.forEach(b=>gu(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),gu(a.body,y),gu(a.above,y),gu(a.below,y),gu(a.subscript,y),gu(a.superscript,y)))}function _h(a,y,b,ee){function ce(je,et){for(const ot of _e)if(ot.style[je]!==et)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const _e=a.getAtoms(y,{includeChildren:!0});ee.operation==="toggle"&&(b.color&&ce("color",b.color)&&(b.color="none",delete b.verbatimColor),b.backgroundColor&&ce("backgroundColor",b.backgroundColor)&&(b.backgroundColor="none",delete b.verbatimBackgroundColor),b.fontFamily&&ce("fontFamily",b.fontFamily)&&(b.fontFamily="none"),b.fontSeries&&ce("fontSeries",b.fontSeries)&&(b.fontSeries="auto"),b.fontShape&&ce("fontShape",b.fontShape)&&(b.fontShape="auto"),b.fontSize&&ce("fontSize",b.fontSize)&&(b.fontSize=io),b.variant&&ce("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ce("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const je of _e)je.applyStyle(b);return!0}function Ag(a,y){const b=a.at(a.position);if(b.type==="composition")b.value=y;else{const{caret:ee}=b;b.caret=void 0;const ce=new Zc(y,{mode:b.mode});ce.caret=ee,b.parent.addChildAfter(ce,b),a.position+=1}}function Og(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}kt(["math","displaymath"],ec),kt("center",ec),Ct("displaylines","",{parse:a=>{const y=[];let b=[];a.beginContext({tabular:!0});do{if(a.end()||a.match("<}>"))break;a.matchColumnSeparator()||a.matchRowSeparator()?(y.push([b]),b=[]):b.push(...a.scan(ee=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(ee)))}while(!0);return a.endContext(),y.push([b]),y},createAtom:a=>new la("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Ht("array","{columns:colspec}",(a,y,b,ee)=>new la(a,kh(y),b,{columns:ee[0],mathstyleName:"textstyle"})),Ht(["equation","equation*","subequations"],"",(a,y,b)=>new la(a,kh(y),b,{columns:[{align:"c"}]})),Ht(["multline","multline*"],"",ec),Ht(["align","align*","aligned","eqnarray"],"",ec),Ht("split","",ec),Ht(["gather","gathered"],"",ec),Ht(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",ec),Ht(["smallmatrix","smallmatrix*"],"[columns:colspec]",ec),Ht(["cases","dcases","rcases"],"",ec);function Dg(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function kh(a,y=1){return Dg(a)?Array(y).fill([[new an({type:"first"}),new zi]]):a.map(b=>b.length===0?[[new an({type:"first"})]]:b.map(ee=>ee.length===0?[new an({type:"first"})]:(ee[0].type!=="first"&&ee.unshift(new an({type:"first"})),ee)))}function ec(a,y=[[[]]],b=[],ee=[]){switch(y=kh(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new la(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new la(a,y,b,{mathstyleName:"textstyle"});case"center":return new la(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new la(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new la(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new la(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new la(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:$u(ee[0])});case"bmatrix":case"bmatrix*":return new la(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:$u(ee[0])});case"Bmatrix":case"Bmatrix*":return new la(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:$u(ee[0])});case"vmatrix":case"vmatrix*":return new la(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:$u(ee[0])});case"Vmatrix":case"Vmatrix*":return new la(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:$u(ee[0])});case"matrix":case"matrix*":return new la(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:$u(ee==null?void 0:ee[0])});case"smallmatrix":case"smallmatrix*":return new la(a,y,b,{mathstyleName:"scriptstyle",columns:$u(ee==null?void 0:ee[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new la(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 la(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new la(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ce=0;for(const et of y)ce=Math.max(ce,et.length);const _e=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let je=2;for(;je<ce;)_e.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),je+=2;return _e.push({gap:0}),new la(a,y,b,{arraycolsep:0,columns:_e,minColumns:2})}}return new la(a,y,b,{mathstyleName:"textstyle"})}function $u(a){return a!=null?a:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function Ig(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof la);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof la)){const ee=a.at(a.position);if(b=ee,!b.parent.parent){let ce=a.extractAtoms([a.position,a.lastOffset]),_e=a.extractAtoms([0,a.position]);_e.length===0&&(_e=Hf()),ce.length===0&&(ce=Hf());let je;return y.endsWith("column")?(je=ec("split",[[_e,ce]]),a.root=je,zu(je,0,0)?Ku(a,je,0,0):zu(je,0,1)?Ku(a,je,0,1):a.position=a.offsetOf(ee)):(je=ec("lines",[[_e],[ce]]),a.root=je,zu(je,0,0)?Ku(a,je,0,0):zu(je,1,0)?Ku(a,je,1,0):a.position=a.offsetOf(ee)),[void 0,[0,0]]}if(b.parent instanceof Ga){const ce=b.parent;let _e=a.extractAtoms([a.position,a.offsetOf(ce.lastChild)]),je=a.extractAtoms([a.offsetOf(ce.firstChild),a.position]);je.length===0&&(je=Hf()),_e.length===0&&(_e=Hf());let et="pmatrix";const ot=ce.leftDelim,gt=ce.rightDelim;ot==="("&&(gt===")"||gt==="?")?et="pmatrix":(ot==="["||ot==="\\lbrack")&&(gt==="]"||gt==="\\rbrack"||gt==="?")?et="bmatrix":ot==="\\vert"&>==="\\vert"?et="vmatrix":ot==="\\Vert"&>==="\\Vert"?et="Vmatrix":(ot==="{"||ot==="\\lbrace")&&(gt==="."||gt==="?")&&(et="cases");const wt=ec(et,y.endsWith("column")?[[je,_e]]:[[je],[_e]]);return ce.parent.addChildBefore(wt,ce),ce.parent.removeChild(ce),zu(wt,0,0)?Ku(a,wt,0,0):y.endsWith("column")?zu(wt,0,1)?Ku(a,wt,0,1):a.position=a.offsetOf(b):zu(wt,1,0)?Ku(a,wt,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof la?[b.parent,b.parentBranch]:[void 0,[0,0]]}function zu(a,y,b){const ee=a.getCell(y,b);return!ee||ee.length!==2?!1:ee[1].type==="placeholder"}function Pg(a,y,b,ee){const ce=y.getCell(b,ee);return ce?[a.offsetOf(ce[0]),a.offsetOf(ce[ce.length-1])]:-1}function Ku(a,y,b,ee){const ce=Pg(a,y,b,ee);typeof ce!="number"&&a.setSelection(ce)}function zf(a,y,b,ee,ce){const _e=y.getCell(b,ee);_e&&a.setPositionHandlingPlaceholder(a.offsetOf(_e[ce==="start"?0:_e.length-1]))}function Kf(a,y){const[b,[ee,ce]]=Ig(a,y);if(b)switch(y){case"after row":b.addRowAfter(ee),zf(a,b,ee+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ce),zf(a,b,ee,ce+1,"end");break;case"before row":b.addRowBefore(ee),zf(a,b,ee,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ce),zf(a,b,ee,ce,"start");break}}function Dp(a){return a.contentWillChange({inputType:"insertText"})?(Kf(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Lg(a){return a.contentWillChange({inputType:"insertText"})?(Kf(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Ip(a){return a.contentWillChange({inputType:"insertText"})?(Kf(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Rg(a){return a.contentWillChange({inputType:"insertText"})?(Kf(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Pp(a,y){if(!a.contentWillChange({}))return!1;a.mathfield.snapshot();let b=".",ee=".";switch(y){case"pmatrix":case"pmatrix*":b="(",ee=")";break;case"bmatrix":case"bmatrix*":b="[",ee="]";break;case"Bmatrix":case"Bmatrix*":b="\\lbrace",ee="\\rbrace";break;case"vmatrix":case"vmatrix*":b="\\vert",ee="\\vert";break;case"Vmatrix":case"Vmatrix*":b="\\Vert",ee="\\Vert";break;case"matrix":case"matrix*":b=".",ee=".";break;case"cases":case"dcases":b="\\lbrace";break;case"rcases":ee="\\rbrace";break}const ce=a.at(a.position),_e=ce.type==="array"?ce:a.parentEnvironment;return _e.environmentName=y,_e.leftDelim=b,_e.rightDelim=ee,a.contentDidChange({}),!0}function Lp(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof la);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof la){const ee=b.parent,ce=b.parentBranch;let _e;switch(y){case"row":if(ee.rowCount>1){ee.removeRow(ce[0]);const je=ee.getCell(Math.max(0,ce[0]-1),ce[1]);_e=a.offsetOf(je[je.length-1])}break;case"column":if(ee.colCount>ee.minColumns){ee.removeColumn(ce[1]);const je=ee.getCell(ce[0],Math.max(0,ce[1]-1));_e=a.offsetOf(je[je.length-1])}break}_e&&a.setPositionHandlingPlaceholder(_e)}}function Bg(a){return a.contentWillChange({inputType:"deleteContent"})?(Lp(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Ng(a){return a.contentWillChange({inputType:"deleteContent"})?(Lp(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}kl({addRowAfter:Dp,addColumnAfter:Ip,addRowBefore:Lg,addColumnBefore:Rg,removeRow:Bg,removeColumn:Ng,setEnvironment:Pp},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Hf(){return[new zi]}var Rp=class n0{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>n0.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=y!=null?y:"",!0):!1}};Rp.maximumDepth=1e3;var jg=Rp;function Th(a,y,b){if(a.at(y).mode!=="text")return y;const ee=b==="backward"?-1:1;let ce;if(He.test(a.at(y).value)){let _e=y,je;do je=a.at(_e).mode==="text"&&He.test(a.at(_e).value),_e+=ee;while(a.at(_e)&&je);ce=a.at(_e)?_e-2*ee:_e-ee}else if(/\s/.test(a.at(y).value)){let _e=y;for(;a.at(_e)&&a.at(_e).mode==="text"&&/\s/.test(a.at(_e).value);)_e+=ee;if(!a.at(_e))ce=_e-ee;else{let je=!0;do je=a.at(_e).mode==="text"&&!/\s/.test(a.at(_e).value),_e+=ee;while(a.at(_e)&&je);ce=a.at(_e)?_e-2*ee:_e-ee}}else{let _e=y;for(;a.at(_e)&&a.at(_e).mode==="text"&&!/\s/.test(a.at(_e).value);)_e+=ee;ce=a.at(_e)?_e:_e-ee;let je=!0;for(;a.at(_e)&&je;)je=a.at(_e).mode==="text"&&/\s/.test(a.at(_e).value),je&&(ce=_e),_e+=ee;ce=a.at(_e)?_e-2*ee:_e-ee}return ce-(ee>0?0:1)}function yd(a,y,b){var ee,ce,_e,je,et,ot,gt;const wt=a.position;(ee=b==null?void 0:b.extend)!=null&&ee||a.collapseSelection(y);let jt=a.at(a.position);if(y==="forward"&&(jt.type==="subsup"?(jt=jt.rightSibling,jt||(jt=a.at(a.position+1))):jt=a.at(a.position+1)),!jt)return a.announce("plonk"),!1;let Vt=a.offsetOf(jt);if(jt instanceof fc)Vt=Th(a,Vt,y);else if(jt instanceof Ps)if(jt.isSuggestion)for(console.assert(y==="forward");jt&&jt instanceof Ps;)jt.isSuggestion=!1,Vt=a.offsetOf(jt),jt=jt.rightSibling;else if(y==="forward"){if(jt=jt.rightSibling,!jt||!(jt instanceof Ps))return a.announce("plonk"),!1;for(;jt&&jt instanceof Ps&&/[a-zA-Z\*]/.test(jt.value);)Vt=a.offsetOf(jt),jt=jt.rightSibling}else{if(jt=jt.leftSibling,!jt||!(jt instanceof Ps))return a.announce("plonk"),!1;for(;jt&&jt instanceof Ps&&/[a-zA-Z\*]/.test(jt.value);)Vt=a.offsetOf(jt),jt=jt.leftSibling}else if(y==="forward"&&jt.type==="mopen"){let ar=0;do jt.type==="mopen"?ar+=1:jt.type==="mclose"&&(ar-=1),jt=jt.rightSibling;while(!jt.isLastSibling&&ar!==0);Vt=a.offsetOf(jt.leftSibling)}else if(y==="backward"&&jt.type==="mclose"){let ar=0;do jt.type==="mopen"?ar+=1:jt.type==="mclose"&&(ar-=1),jt=jt.leftSibling;while(!jt.isFirstSibling&&ar!==0);Vt=a.offsetOf(jt)}else if(y==="backward")if(jt.type==="first")for(;Vt>0&&jt.type==="first";)Vt-=1,jt=a.at(Vt);else{const ar=jt.type;jt.type==="subsup"&&(Vt=a.offsetOf(a.at(Vt).leftSibling)),Vt-=1;let dr=(ce=a.at(Vt))==null?void 0:ce.type;for(;Vt>=0&&dr===ar;)((_e=a.at(Vt))==null?void 0:_e.type)==="subsup"?Vt=a.offsetOf(a.at(Vt).leftSibling):Vt-=1,dr=a.at(Vt).type}else{const{type:ar}=jt;let dr=(je=a.at(Vt))==null?void 0:je.type;const{lastOffset:Zr}=a;for(;Vt<=Zr&&(dr===ar||dr==="subsup");){for(;((et=a.at(Vt).rightSibling)==null?void 0:et.type)==="subsup";)Vt=a.offsetOf(a.at(Vt).rightSibling);Vt+=1,dr=(ot=a.at(Vt))==null?void 0:ot.type}Vt-=1}if((gt=b==null?void 0:b.extend)!=null&>){if(!a.setSelection(a.anchor,Vt))return a.announce("plonk"),!1}else{if(Vt===a.position)return a.announce("plonk"),!1;a.position=Vt}return a.announce("move",wt),a.mathfield.stopCoalescingUndo(),!0}function Oc(a,y,b){var ee,ce;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[et,ot]=vp(a);et!==void 0&&ot!==void 0&&a.deleteAtoms([et,ot])}if(y==="upward")return $g(a,b);if(y==="downward")return zg(a,b);if(b.extend){let et=Wf(a,a.position,y);et<0&&(et=0),et>a.lastOffset&&(et=a.lastOffset);const ot=a.setSelection(a.anchor,et);return a.mathfield.stopCoalescingUndo(),ot}if(a.selectionIsPlaceholder){a.collapseSelection(y);const et=Oc(a,y);return a.mathfield.stopCoalescingUndo(),et}let _e=a.position;const je=_e;if(a.collapseSelection(y)?(_e=a.position,Bp(a,_e)||(_e=Wf(a,_e,y))):_e=Wf(a,_e,y),_e<0||_e>a.lastOffset){let et=!0;return a.silenceNotifications||(et=(ce=(ee=a.mathfield.host)==null?void 0:ee.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))!=null?ce:!0),et&&a.announce("plonk"),et}return a.setPositionHandlingPlaceholder(_e),a.mathfield.stopCoalescingUndo(),a.announce("move",je),!0}function Wf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||Bp(a,y)?y:Wf(a,y,b)}function Bp(a,y){var b;const ee=a.at(y);let ce=ee.parent;for(;ce&&!ce.inCaptureSelection;)ce=ce.parent;return!(ce!=null&&ce.inCaptureSelection||(b=ee.parent)!=null&&b.skipBoundary&&(!ee.isFirstSibling&&ee.isLastSibling||ee.type==="first")||a.mathfield.hasEditablePrompts&&!ee.parentPrompt)}function Fg(a,y,b){let ee=1/0,ce=0;for(;ce<y.length;ce++){const _e=sd(a.getHTMLElement(y[ce])).right,je=Math.abs(b-_e);if(je<=ee)ee=je;else break}return y[ce-1]}function Zf(a,y,b,ee,ce){const _e=a.mathfield.hasEditablePrompts,je=_e?b.filter(gt=>gt.type==="prompt"&&!gt.captureSelection):b,et=sd(a.mathfield.getHTMLElement(y)).right,ot=a.offsetOf(Fg(a.mathfield,je,et))-(_e?1:0);if(ee){const[gt,wt]=a.selection.ranges[0];let jt;ot<(ce==="up"?gt:wt)?jt={ranges:[[ot,wt]],direction:"backward"}:jt={ranges:[[gt,ot]],direction:"forward"},a.setSelection(jt)}else a.setPositionHandlingPlaceholder(ot);a.announce(`move ${ce}`)}function $g(a,y){var b,ee;const ce=(b=y==null?void 0:y.extend)!=null?b:!1;ce||a.collapseSelection("backward");const _e=()=>{var ot,gt;let wt=!0;return a.silenceNotifications||(wt=(gt=(ot=a.mathfield.host)==null?void 0:ot.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?gt:!0),a.announce(wt?"plonk":"line"),wt},je=a.at(a.position);let et=je;for(;et&&et.parentBranch!=="below"&&!(Array.isArray(et.parentBranch)&&et.parent instanceof la);)et=et.parent;if(Array.isArray(et==null?void 0:et.parentBranch)&&et.parent instanceof la){const ot=et.parent;if(et.parentBranch[0]<1)return _e();const gt=et.parentBranch[0]-1,wt=ot.array[gt][et.parentBranch[1]];if(!wt.some(Vt=>Vt.type==="prompt"&&!Vt.captureSelection)&&a.mathfield.hasEditablePrompts)return _e();Zf(a,je,wt,ce,"up")}else if(et){const ot=(ee=et.parent.branch("above"))!=null?ee:et.parent.createBranch("above");if(!ot.some(wt=>wt.type==="prompt"&&wt.placeholderId)&&a.mathfield.hasEditablePrompts)return _e();Zf(a,je,ot,ce,"up")}else return _e();return a.mathfield.stopCoalescingUndo(),!0}function zg(a,y){var b,ee;const ce=(b=y==null?void 0:y.extend)!=null?b:!1;ce||a.collapseSelection("forward");const _e=()=>{var ot,gt;let wt=!0;return a.silenceNotifications||(wt=(gt=(ot=a.mathfield.host)==null?void 0:ot.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?gt:!0),a.announce(wt?"plonk":"line"),wt},je=a.at(a.position);let et=je;for(;et&&et.parentBranch!=="above"&&!(Array.isArray(et.parentBranch)&&et.parent instanceof la);)et=et.parent;if(Array.isArray(et==null?void 0:et.parentBranch)&&et.parent instanceof la){const ot=et.parent;if(et.parentBranch[0]+1>ot.array.length-1)return _e();const gt=et.parentBranch[0]+1,wt=ot.array[gt][et.parentBranch[1]];if(!wt.some(Vt=>Vt.type==="prompt"&&!Vt.captureSelection)&&a.mathfield.hasEditablePrompts)return _e();Zf(a,je,wt,ce,"down")}else if(et){const ot=(ee=et.parent.branch("below"))!=null?ee:et.parent.createBranch("below");if(!ot.some(wt=>wt.type==="prompt")&&a.mathfield.hasEditablePrompts)return _e();Zf(a,je,ot,ce,"down")}else return _e();return!0}function Np(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 Kg(a){let y=0,b=a.at(a.position),ee=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(ee=!1):ee=!0,b=b.parent;return ee?y:0}function Hg(a){let y=0,b=a.at(a.position),ee=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(ee=!0):ee=!1,b=b.parent;return ee?y:0}function jp(a){var y;if(a.collapseSelection(),Kg(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 Ql({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function Fp(a){var y;if(a.collapseSelection(),Hg(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 Ql({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 Wg(){function a(ot){const gt=[],wt=[];return[...ot.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((Vt,ar)=>{const dr=ee(Vt);dr===0?gt.push(Vt):wt.push({documentOrder:ar,tabIndex:dr,node:Vt})}),wt.sort((Vt,ar)=>Vt.tabIndex===ar.tabIndex?Vt.documentOrder-ar.documentOrder:Vt.tabIndex-ar.tabIndex).map(Vt=>Vt.node).concat(gt)}function y(ot){return!(!b(ot)||ce(ot)||ee(ot)<0)}function b(ot){return!(ot.disabled||ot.type==="hidden"&&ot.tagName.toUpperCase()==="INPUT"||et(ot))}function ee(ot){var gt;const wt=Number.parseInt((gt=ot.getAttribute("tabindex"))!=null?gt:"NaN",10);return Number.isNaN(wt)?ot.contentEditable==="true"||(ot.nodeName==="AUDIO"||ot.nodeName==="VIDEO")&&ot.getAttribute("tabindex")===null?0:ot.tabIndex:wt}function ce(ot){return ot.tagName.toUpperCase()==="INPUT"&&ot.type==="radio"&&!je(ot)}function _e(ot,gt){for(const wt of ot)if(wt.checked&&wt.form===gt)return wt;return null}function je(ot){var gt;if(!ot.name)return!0;const jt=((gt=ot.form)!=null?gt:ot.ownerDocument).querySelectorAll('input[type="radio"][name="'+ot.name+'"]'),Vt=_e(jt,ot.form);return!Vt||Vt===ot}function et(ot){if(!ue()||ot===document.activeElement||ot.contains(document.activeElement))return!1;if(getComputedStyle(ot).visibility==="hidden")return!0;const gt=ot.getBoundingClientRect();if(gt.width===0||gt.height===0)return!0;for(;ot;){if(getComputedStyle(ot).display==="none")return!0;ot=ot.parentElement}return!1}return ue()?a(document.body):[]}function al(a,y,b="forward"){const ee=a.position;if(Array.isArray(y)){const ce=a.offsetOf(y[0]),_e=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ce,_e):a.setSelection(_e,ce),a.announce("move",ee),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?al(a,[y.leftSibling,y]):al(a,[y,y.leftSibling])}function mc(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 ee=a.offsetOf(y);y.type==="placeholder"?a.setSelection(ee-1,ee):a.position=ee}return a.announce("move",b),a.mathfield.stopCoalescingUndo(),!0}function Uf(a,y,b=!0){var ee,ce;const _e=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Oc(a,y);let je;const et=a.at(a.anchor).parentPrompt;et?y==="forward"?je=a.offsetOf(et)+1:je=a.offsetOf(et.leftSibling):je=Math.max(a.position+_e,0);const ot=Ah(a,je,y);if(!ot||y==="forward"&&a.offsetOf(ot)<je||y==="backward"&&a.offsetOf(ot)>je){if(!b||!((ce=(ee=a.mathfield.host)==null?void 0:ee.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ce))return a.announce("plonk"),!1;const wt=Wg();if(!document.activeElement||wt.length<=1)return a.announce("plonk"),!1;let jt=wt.indexOf(document.activeElement)+_e;return jt<0&&(jt=wt.length-1),jt>=wt.length&&(jt=0),wt[jt].focus(),a.mathfield.stopCoalescingUndo(),!0}return mc(a,ot),!0}function Ah(a,y=0,b="forward"){return a.findAtom(ee=>ee.type==="placeholder"||ee.type==="prompt"||!a.mathfield.readOnly&&ee.treeDepth>2&&ee.isFirstSibling&&ee.isLastSibling,y,b)}kl({moveToOpposite:a=>{const y={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},b=a.at(a.position),{parent:ee}=b;if(!ee)return a.announce("plonk"),!1;const ce=b.parentBranch;let _e;if(typeof ce=="string"&&(_e=y[ce]),!_e){const et=b.subsupPlacement?Fp(a):jp(a);return a.mathfield.stopCoalescingUndo(),et}ee.branch(_e)||ee.createBranch(_e);const je=a.setSelection(a.getBranchRange(a.offsetOf(ee),_e));return a.mathfield.stopCoalescingUndo(),je},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=>Np(a),moveToNextChar:a=>Oc(a,"forward"),moveToPreviousChar:a=>Oc(a,"backward"),moveUp:a=>Oc(a,"upward"),moveDown:a=>Oc(a,"downward"),moveToNextWord:a=>yd(a,"forward"),moveToPreviousWord:a=>yd(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,ee,ce;if(a.position===a.lastOffset&&a.anchor===a.lastOffset)return Uf(a,"forward");const _e=a.at(a.position);if(_e.mode==="text"){if(a.selectionIsCollapsed){let Vt=_e;for(;Vt&&Vt.mode==="text";)Vt=Vt.leftSibling;let ar=_e;for(;((y=ar.rightSibling)==null?void 0:y.mode)==="text";)ar=ar.rightSibling;if(Vt&&ar)return al(a,[Vt,ar])}if(_e.rightSibling.mode==="text"){let Vt=_e;for(;Vt&&Vt.mode==="text";)Vt=Vt.rightSibling;return Vt?(mc(a,(b=Vt.leftSibling)!=null?b:Vt),a.mathfield.switchMode("math"),!0):mc(a,a.lastOffset)}}const et=a.at(a.anchor).parentPrompt,ot=et?a.offsetOf(et)+1:Math.max(a.position+1,0),gt=Ah(a,ot,"forward");if(gt)return mc(a,gt);const wt=$p(a,_e,Vt=>Vt.type==="leftright"||Vt.type==="text","forward");if(wt){if(wt.mode==="text"){let Vt=wt;for(;Vt&&Vt.mode==="text";)Vt=Vt.rightSibling;return al(a,[(ee=wt.leftSibling)!=null?ee:wt,(ce=Vt.leftSibling)!=null?ce:Vt])}return al(a,wt)}const jt=_e.parent;if(jt){if(jt.type==="leftright"||jt.type==="surd")return al(a,jt);if(_e.parentBranch==="superscript"&&jt.subscript)return al(a,jt.subscript);if(_e.parentBranch==="above"&&jt.below)return al(a,jt.below);if(_e.parentBranch==="superscript"||_e.parentBranch==="subscript")return mc(a,jt);if(_e.parentBranch==="above"||_e.parentBranch==="below")return al(a,jt)}return mc(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Uf(a,"backward");let b=a.at(a.position);const ee=b.mode;if(ee==="text"){if(a.selectionIsCollapsed){let et=b;for(;et&&et.mode==="text";)et=et.leftSibling;let ot=b;for(;((y=ot.rightSibling)==null?void 0:y.mode)==="text";)ot=ot.rightSibling;if(et&&ot)return al(a,[et,ot])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?mc(a,b):mc(a,0)}const ce=a.at(a.anchor).parentPrompt,_e=ce?a.offsetOf(ce.leftSibling):Math.max(a.position-1,0),je=Ah(a,_e,"backward");if(je)return mc(a,je);if(ee==="math"){const et=$p(a,b,gt=>gt.type==="leftright"||gt.type==="text","backward");if(et){if(et.mode==="text"){let gt=et;for(;gt&>.mode==="text";)gt=gt.leftSibling;return al(a,[et,gt])}return al(a,et)}const ot=b.parent;if(ot){if(ot.type==="leftright"||ot.type==="surd")return al(a,ot);if(b.parentBranch==="subscript"&&ot.superscript)return al(a,ot.superscript);if(b.parentBranch==="below"&&ot.above)return al(a,ot.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return mc(a,ot);if(b.parentBranch==="above"||b.parentBranch==="below")return al(a,ot)}return mc(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:jp,moveToSubscript:Fp},{target:"model",changeSelection:!0}),kl({moveToNextPlaceholder:a=>Uf(a,"forward"),moveToPreviousPlaceholder:a=>Uf(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function $p(a,y,b,ee){if(ee==="forward"){let _e=y.rightSibling;for(;_e&&!b(_e);)_e=_e.rightSibling;return _e}let ce=y.leftSibling;for(;ce&&!b(ce);)ce=ce.leftSibling;return ce}function Vf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let ee=a.position,ce=!1,_e="";for(;!ce;){const je=a.at(ee);ce=y===0||je===void 0||je.type==="first"||je.mode!=="math"||!(je.type&&/mord|mpunct|operator/.test(je.type)||je.type==="mop"&&/[a-zA-Z ]+/.test(je.value))||!je.hasEmptyBranch("superscript")||!je.hasEmptyBranch("subscript")||typeof b=="function"&&!b(je),ce||(je.mode="text",je.command=je.value,je.verbatimLatex=void 0,_e+=je.value),ee-=1,y-=1}a.contentDidChange({data:_e,inputType:"insertText"})}function Hu(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let ee=a.position,ce=!1;const _e=[];for(;!ce;){const je=a.at(ee);ce=y===0||!je||je.type==="first"||je.isFirstSibling||je.mode!=="text"||je.value===" "||typeof b=="function"&&!b(je),ce||(_e.push(an.serialize([je],{defaultMode:"math"})),je.mode="math"),ee-=1,y-=1}Oh(a),a.contentDidChange({data:ya(_e),inputType:"insertText"})}function Oh(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 ee=a.silenceNotifications;a.silenceNotifications=!0,a.position-=1,a.silenceNotifications=ee,a.contentDidChange({inputType:"deleteContent"})}}function Zg(a){let y="",b=a.position,ee=!1;for(;!ee;){const ce=a.at(b);ee=!(ce&&(ce.mode==="text"||ce.mode==="math"&&ce.type&&/mord|mpunct/.test(ce.type))),ee||(y=ce.value+y),b-=1}return y}function Ug(a,y,b){const{model:ee}=a;if(ee.mode==="latex"||!ee.at(ee.position).isLastSibling||!b||!kf(b))return!1;const ce=fd(b);if(!ee.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ce));const _e=Zg(ee)+ce;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ce))return!0;if(/[\^_]/.test(ce))return/(^|\s)[a-zA-Z][^_]$/.test(_e)&&Hu(ee,1),!0;const je={")":"(","}":"{","]":"["}[ce],{parent:et}=ee.at(ee.position);if(je&&et instanceof Ga&&et.leftDelim===je)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(_e))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ce))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(_e))return Hu(ee,1),!1;if(/\D\.[^\d\s]$/.test(_e)){Hu(ee,1);const ot=ee.at(ee.position);return ot.value="\u22C5",ot.style.variant="normal",ot.command="\\cdot",ot.verbatimLatex=void 0,ee.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(_e)||/\.\d$/.test(_e)||/\([\d+\-.]$/.test(_e))return Hu(ee,1),!0;if(/\([a-z][,;]$/.test(_e))return Hu(ee,2),!0;if(/[\d+\-=><*|]$/.test(ce))return Oh(ee),!0}else{if(y==="[Space]")return Vf(ee,void 0,je=>/[a-z][:,;.]$/.test(je.value)),!0;if(/[a-zA-Z]{3,}$/.test(_e)&&!/(dxd|abc|xyz|uvw)$/.test(_e))return Vf(ee,void 0,je=>/[a-zA-Z]/.test(je.value)),!0;if(/(^|\W)(if)$/i.test(_e))return Vf(ee,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(_e)&&!/(αβγ)$/.test(_e))return Vf(ee,void 0,je=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(je.value)),!0;if(ce==="?"||ce==="."&&!/[\d-+]\.$/.test(_e))return!0}return!1}function Vg(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=zp(),ee=a.element.getBoundingClientRect();b.style.left=`${ee.left}px`,b.style.top=`${ee.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(yh(y)||y)+"</span>"+b.innerHTML),b.style.visibility="visible",setTimeout(()=>{b.childNodes.length>0&&b.childNodes[b.childNodes.length-1].remove(),b.childNodes.length===0&&(b.style.visibility="hidden")},3e3)}function Gg(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=zp();y.innerHTML=""}else{const y=Of("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function zp(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(_l("keystroke-caption"),_l("core"),Of("mathlive-keystroke-caption-panel"))}function Xg(){document.getElementById("mathlive-keystroke-caption-panel")&&(xh("mathlive-keystroke-caption-panel"),E("core"),E("keystroke-caption"))}function Kp(a,y){var b,ee,ce;const{model:_e}=a,je=mp(y);if(y.isTrusted){j0(y);const ar=Xd();a.keyboardLayout!==ar.id&&(a.keyboardLayout=ar.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Vg(a,je),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let et,ot="",gt;const wt=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(_e.mode==="math")if(je==="[Backspace]")wt.pop();else if(!kf(y))a.flushInlineShortcutBuffer();else{const ar=fd(y),dr=[...(ee=(b=wt[wt.length-1])==null?void 0:b.keystrokes)!=null?ee:[],ar];wt.push({state:_e.getState(),keystrokes:dr,leftSiblings:Yg(a)});let Zr=0,Kn="";for(;!et&&Zr<dr.length;)gt=wt.length-(dr.length-Zr),Kn=dr.slice(Zr).join(""),et=Pd(wt[gt].leftSiblings,Kn,a.options.inlineShortcuts),!et&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(Kn)&&(et=a.options.onInlineShortcut(a,Kn)),Zr+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(et?a.switchMode("math"):Ug(a,je,y)&&(a.switchMode({math:"text",text:"math"}[_e.mode]),ot=""))}if(!et){if(ot||(ot=Z0(a.keybindings,_e.mode,y)),!ot&&(je==="[Enter]"||je==="[Return]")){let ar=!1;return _e.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(ar=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),ar||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),_e.contentDidChange({inputType:"insertLineBreak"})),ar}if((!ot||je==="[Space]")&&_e.mode==="math"){if(je==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return ta.insert(_e,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),ot="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const ar=_e.at(_e.position+1),dr=_e.at(_e.position-1);if((ar==null?void 0:ar.mode)==="text"||(dr==null?void 0:dr.mode)==="text")return ta.insert(_e," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ce=_e.at(_e.position))!=null&&ce.isDigit()&&window.MathfieldElement.decimalSeparator===","&&fd(y)===","&&(ot="insertDecimalSeparator")}}if(!et&&!ot){if(_e.mathfield.smartFence){if(Ih(_e,fd(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:ar}=_e.at(_e.position);if(ar instanceof Ga&&ar.rightDelim==="?"&&_e.at(_e.position).isLastSibling&&/^[)}\]|]$/.test(je))return a.snapshot(),ar.isDirty=!0,ar.rightDelim=je,_e.position+=1,_e.selectionDidChange(),_e.contentDidChange({data:fd(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!_e.selectionIsCollapsed){const dr=fd(y);if(dr==="("||dr==="{"||dr==="["){const Zr={"(":"(","{":"\\lbrace","[":"\\lbrack"}[dr],Kn={"(":")","{":"\\rbrace","[":"\\rbrack"}[dr],[Hr,fn]=ws(_e.selection);return a.snapshot(),_e.position=fn,ta.insert(_e,Kn,{format:"latex"}),_e.position=Hr,ta.insert(_e,Zr,{format:"latex"}),_e.setSelection(Hr+1,fn+1),_e.contentDidChange({data:dr,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const jt=_e.at(Math.max(_e.position,_e.anchor)),{parent:Vt}=jt;if(ot==="moveAfterParent"&&(Vt==null?void 0:Vt.type)==="leftright"&&jt.isLastSibling&&a.options.smartFence&&Ih(_e,".",a.defaultStyle)&&(ot="",Ko(a)),a.keyboardDelegate.cancelComposition(),ot)a.executeCommand(ot);else if(et){const ar=a.effectiveStyle;_e.setState(wt[gt].state);const dr=wt[wt.length-1].keystrokes;for(const Zr of dr)ta.insert(_e,Zr,{silenceNotifications:!0,style:ar});a.snapshot("insert-shortcut"),_e.setState(wt[gt].state),_e.deferNotifications({content:!0,selection:!0,data:et,type:"insertText"},()=>(ta.insert(_e,et,{format:"latex",style:ar}),Oh(a.model),et.endsWith(" ")&&(a.switchMode("text"),ta.insert(_e," ",{style:ar,mode:"text"})),a.snapshot(),_e.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,_e.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Dh(a,y,b){const{model:ee}=a;if(!a.isSelectionEditable){ee.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 ce=xl(y);const _e=window.mathVirtualKeyboard;if(_e!=null&&_e.isShifted&&(ce=typeof ce=="string"?ce.toUpperCase():ce.map(ot=>ot.toUpperCase())),b.simulateKeystroke){let ot=!0;for(const gt of ce)Kp(a,new KeyboardEvent("keypress",{key:gt}))&&(ot=!1);if(ot)return}const je=ee.at(ee.position),et=ie(ie({},je.computedStyle),a.defaultStyle);if(ee.selectionIsCollapsed||(ee.deleteAtoms(ws(ee.selection)),a.snapshot("delete")),ee.mode==="latex")ee.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Af(a);for(const ot of ce)ta.insert(ee,ot);a.snapshot("insert-latex"),Jd(a)});else if(ee.mode==="text"){for(const ot of ce)ta.insert(ee,ot,{style:et});a.snapshot("insert-text")}else if(ee.mode==="math")for(const ot of ce)Jg(a,ot,et,je);a.dirty=!0,a.scrollIntoView()}function Yg(a){const y=a.model,b=[];let ee=y.at(Math.min(y.position,y.anchor));for(;ee.type!=="first";)b.push(ee),ee=ee.leftSibling;return b}function Jg(a,y,b,ee){const ce=a.model;let _e={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(_e=["insert",a.options.mathModeSpace]),_e){a.executeCommand(_e);return}if(/\d/.test(y)&&a.options.smartSuperscript&&ee.parentBranch==="superscript"&&ee.parent.type!=="mop"&&ee.parent.type!=="operator"&&ee.parent.type!=="extensible-symbol"&&ee.hasNoSiblings){Qg(ce),ta.insert(ce,y,{style:b}),a.snapshot(),Np(ce),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const je=a.adoptStyle==="left"?ee:ee.parent?ee.rightSibling:null;(je==null?void 0:je.type)==="mord"&&/[a-zA-Z0-9]/.test(je.value)&&(b=ie({},b),je.style.variant&&(b.variant=je.style.variant),je.style.variantStyle&&(b.variantStyle=je.style.variantStyle))}ta.insert(ce,y,{style:b}),a.snapshot(`insert-${ce.at(ce.position).type}`)}function Qg(a){a.selectionIsCollapsed||(a.deleteAtoms(ws(a.selection)),a.mathfield.snapshot("delete"))}function Ih(a,y,b){if(!y||a.mode!=="math")return!1;const ee=a.at(a.position),{parent:ce}=ee,_e={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!_e)return!1;const je=ge[_e],et=ve[_e];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[ot,gt]=ws(a.selection),wt=a.extractAtoms([ot,gt]),jt=ce.addChildrenAfter([new Ga("left...right",wt,{leftDelim:_e,rightDelim:et})],a.at(ot));return a.setSelection(a.offsetOf(jt.firstChild),a.offsetOf(jt.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:_e,inputType:"insertText"}),!0}if(_e==="|"){const ot=ce instanceof Ga?ce.leftDelim+ce.rightDelim:"";if(ot==="\\lbrace\\rbrace"||ot==="\\{\\}"||ot==="\\lbrace?")return a.mathfield.snapshot(),ta.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:_e,inputType:"insertText"}),!0}if(et){if(ce instanceof Ga&&ce.firstChild===ee&&(ce.leftDelim==="?"||ce.leftDelim==="."))return ce.leftDelim=_e,ce.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:_e,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ce instanceof Ga)){let jt=ee;for(;jt&&!(jt.type==="mclose"&&jt.value===et);)jt=jt.rightSibling;if(jt){a.mathfield.snapshot();const Vt=a.extractAtoms([a.offsetOf(ee),a.offsetOf(jt)]);return Vt.pop(),ce.addChildrenAfter([new Ga("left...right",Vt,{leftDelim:_e,rightDelim:et})],ee),a.position=a.offsetOf(ce.firstChild)+1,a.contentDidChange({data:_e,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const ot=a.offsetOf(ee.lastSibling);let gt;for(gt=a.position;gt<=ot;gt++){const jt=a.at(gt);if(jt instanceof Ga&&(jt.leftDelim==="?"||jt.leftDelim===".")&&Hp(_e,jt.rightDelim))break}const wt=a.at(gt);if(gt<=ot&&wt instanceof Ga){wt.leftDelim=_e,a.mathfield.snapshot();let jt=a.extractAtoms([a.position,gt-1]);return jt=jt.filter(Vt=>Vt.type!=="first"),wt.addChildren(jt,wt.parentBranch),a.position+=1,a.contentDidChange({data:_e,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ce instanceof Ga&&(ce.leftDelim==="?"||ce.leftDelim===".")&&Hp(_e,ce.rightDelim)){ce.isDirty=!0,ce.leftDelim=_e,a.mathfield.snapshot();const jt=a.extractAtoms([a.offsetOf(ee.firstSibling),a.position]);for(const Vt of jt)ce.parent.addChildBefore(Vt,ce);return a.contentDidChange({data:_e,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ce instanceof Ga&&ce.leftDelim==="|")){if(a.mathfield.snapshot(),ta.insert(a,`\\left${_e}\\right?`,{format:"latex",style:b}),ee.lastSibling.type!=="first"){const jt=a.offsetOf(ee.lastSibling),Vt=a.extractAtoms([a.position,jt]);a.at(a.position).body=Vt,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(je){let ot=ee;for(;ot;){if(ot.type==="mopen"&&ot.value===je){a.mathfield.snapshot();const ar=ot.leftSibling,dr=a.extractAtoms([a.offsetOf(ot.leftSibling),a.offsetOf(ee)]);dr.shift();const Zr=new Ga("left...right",dr,{leftDelim:je,rightDelim:_e});return ce.addChildrenAfter([Zr],ar),a.position=a.offsetOf(Zr),a.contentDidChange({data:_e,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}ot=ot.leftSibling}if(ce instanceof Ga&&ee.isLastSibling&&Ph(ce.leftDelim,_e))return a.mathfield.snapshot(),ce.isDirty=!0,ce.rightDelim=_e,a.position+=1,a.contentDidChange({data:_e,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const gt=a.offsetOf(ee.firstSibling);let wt;for(wt=a.position;wt>=gt;wt--){const ar=a.at(wt);if(ar instanceof Ga&&(ar.rightDelim==="?"||ar.rightDelim===".")&&Ph(ar.leftDelim,_e))break}const jt=a.at(wt);if(wt>=gt&&jt instanceof Ga)return a.mathfield.snapshot(),jt.rightDelim=_e,jt.addChildren(a.extractAtoms([wt,a.position]),jt.parentBranch),a.contentDidChange({data:_e,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ce instanceof Ga&&(ce.rightDelim==="?"||ce.rightDelim===".")&&Ph(ce.leftDelim,_e))return a.mathfield.snapshot(),ce.isDirty=!0,ce.rightDelim=_e,ce.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(ee.lastSibling)]),ce.parentBranch),a.position=a.offsetOf(ce),a.contentDidChange({data:_e,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Vt=ce.parent;return Vt instanceof Ga&&(Vt.rightDelim==="?"||Vt.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(Vt),Ih(a,_e,b)):!1}return!1}function Ph(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):ve[a]===y:!0}function Hp(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):ge[y]===a:!0}kl({undo:a=>(a.undo(),!0),redo:a=>(a.redo(),!0),scrollIntoView:a=>(a.scrollIntoView(),!0),scrollToStart:a=>(a.field.scroll(0,0),!0),scrollToEnd:a=>{const y=a.field.getBoundingClientRect();return a.field.scroll(y.left-window.scrollX,0),!0},toggleKeystrokeCaption:Gg,toggleContextMenu:a=>{const y=a.toggleContextMenu();return y||a.model.announce("plonk"),y},plonk:a=>(a.model.announce("plonk"),!0),switchMode:(a,y,b,ee)=>(a.switchMode(y,b,ee),!0),insert:(a,y,b)=>a.insert(y,b),typedText:(a,y,b)=>(Dh(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 ee=a.getPrompts();let ce="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),_e=0;for(;ee.includes(ce)&&_e<100;){if(_e===99)return console.error("could not find a unique ID after 100 tries"),!1;ce="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),_e++}return a.insert(`\\placeholder[${y!=null?y:ce}]{}`,b),!0}}),kl({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"}),kl({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})&&(Jd(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Ko(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function qg(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=Lh(a,y),{model:ee}=a;return ee.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=ie(ie({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{ee.selection.ranges.forEach(ce=>_h(ee,ce,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}kl({applyStyle:qg},{target:"mathfield",canUndo:!0,changeContent:!0});function Lh(a,y){var b,ee,ce,_e,je,et,ot,gt,wt,jt;const Vt={};if(typeof y.color=="string"){const dr=(ee=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?ee:"none";dr!==y.color&&(Vt.verbatimColor=(ce=y.verbatimColor)!=null?ce:y.color),Vt.color=dr}if(typeof y.backgroundColor=="string"){const dr=(je=a.backgroundColorMap((_e=y.backgroundColor)!=null?_e:y.verbatimBackgroundColor))!=null?je:"none";dr!==y.backgroundColor&&(Vt.verbatimBackgroundColor=(et=y.verbatimBackgroundColor)!=null?et:y.backgroundColor),Vt.backgroundColor=dr}typeof y.fontFamily=="string"&&(Vt.fontFamily=y.fontFamily),typeof y.series=="string"&&(Vt.fontSeries=y.series),typeof y.fontSeries=="string"&&(Vt.fontSeries=y.fontSeries.toLowerCase()),Vt.fontSeries&&(Vt.fontSeries=(ot={bold:"b",medium:"m",normal:"m"}[Vt.fontSeries])!=null?ot:Vt.fontSeries),typeof y.shape=="string"&&(Vt.fontShape=y.shape),typeof y.fontShape=="string"&&(Vt.fontShape=y.fontShape.toLowerCase()),Vt.fontShape&&(Vt.fontShape=(gt={italic:"it",up:"n",upright:"n",normal:"n"}[Vt.fontShape])!=null?gt:Vt.fontShape),y.variant&&(Vt.variant=y.variant.toLowerCase()),y.variantStyle&&(Vt.variantStyle=y.variantStyle.toLowerCase());const ar=(wt=y.size)!=null?wt:y.fontSize;return typeof ar=="number"?Vt.fontSize=Math.max(1,Math.min(10,ar)):typeof ar=="string"&&(Vt.fontSize=(jt={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[ar.toLowerCase()])!=null?jt:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[ar]),Vt}function Rh(a){let[y,b]=ws(a.selection);if(y=Wp(a,y,"backward"),b=Wp(a,b,"forward"),y===b){const ee=a.at(y);if(ee.type==="leftright")return a.setSelection(a.offsetOf(ee.firstChild)-1,b);if(ee.type==="first"&&(ee.parent.type==="leftright"||ee.parent.type==="surd"))return a.setSelection(y-1,a.offsetOf(ee.parent.lastChild)+1);a.setSelection(y-1,b)}else a.setSelection(y,b);return!0}function Wp(a,y,b){var ee,ce,_e;let je=a.at(y);if(!je)return y;const et=b==="forward"?1:-1;if(je.mode==="text"){for(;je&&!(je.mode!=="text"||!He.test(je.value));)y+=et,je=a.at(y);return b==="backward"?y-1:y}if(je.mode==="latex"){if(/[a-zA-Z\*]/.test(je.value))if(b==="backward")for(;je&&je.mode==="latex"&&je.value!=="\\"&&/[a-zA-Z]/.test(je.value);)y+=et,je=a.at(y);else for(;je&&je.mode==="latex"&&/[a-zA-Z\*]/.test(je.value);)y+=et,je=a.at(y);else if(je.value==="{"){if(b==="forward"){for(;je&&je.mode==="latex"&&je.value!=="}";)y+=et,je=a.at(y);return y}return y-1}else if(je.value==="}"){if(b==="backward"){for(;je&&je.mode==="latex"&&je.value!=="{";)y+=et,je=a.at(y);return y-1}return y}return y-1}if(je.mode==="math"){if(je.isDigit()){for(;(ee=a.at(y+et))!=null&&ee.isDigit();)y+=et;return b==="backward"?y-1:y}if(je.style.variant||je.style.variantStyle){let ot=(ce=a.at(y))==null?void 0:ce.style;for(;ot&&ot.variant===je.style.variant&&ot.variantStyle===je.style.variantStyle;)ot=(_e=a.at(y+et))==null?void 0:_e.style,y+=et;return b==="backward"?y-1:y}return y}return y}kl({selectGroup:a=>{const y=Rh(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Oc(a,"forward",{extend:!0}),extendSelectionBackward:a=>Oc(a,"backward",{extend:!0}),extendToNextWord:a=>yd(a,"forward",{extend:!0}),extendToPreviousWord:a=>yd(a,"backward",{extend:!0}),extendSelectionUpward:a=>Oc(a,"upward",{extend:!0}),extendSelectionDownward:a=>Oc(a,"downward",{extend:!0}),extendToNextBoundary:a=>yd(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>yd(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 Wu=null,nf=0,Gf=class rc{static start(y,b,ee,ce){var _e;rc.element=y,(_e=rc.controller)==null||_e.abort(),rc.controller=new AbortController;const je={signal:rc.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",ee,je),y.addEventListener("pointerup",ce,je),y.addEventListener("pointercancel",ce,je),Bh(b)&&(rc.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",ee,je),window.addEventListener("blur",ce,je),window.addEventListener("mouseup",ce,je))}static stop(){var y;(y=rc.controller)==null||y.abort(),rc.controller=void 0,typeof rc.pointerId=="number"&&(rc.element.releasePointerCapture(rc.pointerId),rc.pointerId=void 0)}};function Bh(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function Zp(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const ee=a;let ce,_e=!1,je=!1,et="none",ot=!1,gt=!1;const wt=y.clientX,jt=y.clientY,Vt=Date.now(),ar=ee.field,dr=setInterval(()=>{ot?ar.scroll({top:0,left:ar.scrollLeft-16}):gt&&ar.scroll({top:0,left:ar.scrollLeft+16})},32);function Zr(){Gf.stop(),_e=!1,clearInterval(dr),a.element.classList.remove("tracking"),y&&y.preventDefault()}function Kn(fn){if(!ee.hasFocus()){Zr();return}const Yn=fn.clientX,xn=fn.clientY,wi=Bh(fn)&&fn.pointerType==="touch"?20:5;if(Date.now()<Vt+500&&Math.abs(wt-Yn)<wi&&Math.abs(jt-xn)<wi){fn.preventDefault(),fn.stopPropagation();return}const Ri=ar.getBoundingClientRect();gt=Yn>Ri.right,ot=Yn<Ri.left;let Ai=ce;Bh(fn)&&(fn.isPrimary||(Ai=af(ee,fn.clientX,fn.clientY,{bias:0})));const La=af(ee,Yn,xn,{bias:Yn<=wt?Yn===wt?0:-1:1});Ai>=0&&La>=0&&(ee.model.extendSelectionTo(Ai,La),Ko(a)),je&&Rh(ee.model)}Wu&&Math.abs(Wu.x-wt)<5&&Math.abs(Wu.y-jt)<5&&Date.now()<Wu.time+500?(nf+=1,Wu.time=Vt):(Wu={x:wt,y:jt,time:Vt},nf=1);const Hr=ar.getBoundingClientRect();if(wt>=Hr.left&&wt<=Hr.right&&jt>=Hr.top&&jt<=Hr.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ce=af(a,wt,jt,{bias:0}),ce>=0){if(a.element.classList.add("tracking"),y.shiftKey){const fn=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ce),yp(a.model)||fn?et="all":et="selection"}else a.model.at(ce).type==="placeholder"?(a.model.setSelection(ce-1,ce),et="selection"):((b=a.model.at(ce).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ce,ce+1),et="selection"):(a.model.position=ce,yp(a.model)?et="all":et="selection");a.defaultStyle={},y.detail===3||nf>2?(Zr(),(y.detail===3||nf===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},et="all")):_e||(_e=!0,Gf.start(ar,y,Kn,Zr),(y.detail===2||nf===2)&&(je=!0,Rh(a.model),et="all"))}a.hasFocus()||(et="none",a.focus({preventScroll:!0}))}else Wu=null;a.stopCoalescingUndo(),et!=="none"&&(a.model.selectionIsCollapsed&&(et="all"),Ko(a)),y.preventDefault()}function ev(a,y,b){if(a>=b.left&&a<=b.right&&y>=b.top&&y<=b.bottom)return 0;const ee=a-(b.left+b.right)/2,ce=y-(b.top+b.bottom)/2;return ee*ee+ce*ce}function Up(a,y,b,ee,ce){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const _e=du(a,b);if(!_e)return[1/0,null];let je=[1/0,null];if(b.hasChildren&&!b.captureSelection&&ee>=_e.left&&ee<=_e.right)for(const et of b.children){const ot=Up(a,y,et,ee,ce);ot[0]<=je[0]&&(je=ot)}return je[1]||(je=[ev(ee,ce,_e),b]),y.set(b.id,je),je}function tv(a,y,b){const[,ee]=Up(a,new Map,a.model.root,y,b);return ee}function af(a,y,b,ee){var ce;const _e=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!_e)return 0;if(y>_e.right||b>_e.bottom+8)return a.model.lastOffset;if(y<_e.left||b<_e.top-8)return 0;ee=ee!=null?ee:{},ee.bias=(ce=ee.bias)!=null?ce:0;let je=tv(a,y,b);const et=[];let ot=je;for(;ot;)et.unshift(ot),ot=ot.parent;for(const wt of et)if(wt.captureSelection){je=wt;break}let gt=a.model.offsetOf(je);if(gt<0)return-1;if(je.leftSibling)if(ee.bias===0&&je.type!=="placeholder"){const wt=du(a,je);wt&&y<(wt.left+wt.right)/2&&(gt=a.model.offsetOf(je.leftSibling))}else ee.bias<0&&(gt=a.model.offsetOf(je.leftSibling));return gt}var rv=class extends ta{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="",ee="auto",ce=typeof y!="string"?y.getData("application/json+mathlive"):"";if(ce)try{const _e=JSON.parse(ce);if(_e&&Array.isArray(_e)){a.snapshot();const je=pu(_e),{model:et}=a;et.selectionIsCollapsed||et.deleteAtoms(ws(et.selection));const ot=et.at(et.position);if(ot.parent instanceof la){console.assert(ot.parentBranch!==void 0);const gt=[];let wt=[];je[0].type==="first"&&je.shift(),je[je.length-1].type==="first"&&je.pop();for(const dr of je)dr.type==="first"&&wt.length>0?(gt.push(wt),wt=[dr]):wt.push(dr);wt.length>0&>.push(wt);let jt=Number(ot.parentBranch[0]),Vt=Number(ot.parentBranch[1]);const ar=ot.parent.maxColumns;for(;ot.parent.colCount-Vt<gt.length&&ot.parent.colCount<ar;)ot.parent.addColumn();ot.parent.addChildrenAfter(gt[0],ot);for(let dr=1;dr<gt.length;dr++)Vt++,Vt>=ar&&(Vt=0,ot.parent.addRowAfter(jt),jt++),ot.parent.setCell(jt,Vt,gt[dr])}else ot.parent.addChildrenAfter(je.filter(gt=>gt.type!=="first"),ot);return et.position=et.offsetOf(je[je.length-1]),et.contentDidChange({inputType:"insertFromPaste"}),Ko(a),!0}}catch(_e){}if(ce=typeof y!="string"?y.getData("application/json"):"",ce&&window.MathfieldElement.computeEngine)try{const _e=JSON.parse(ce);if(typeof _e=="object"&&"latex"in _e&&_e.latex&&(b=_e.latex),!b){const je=window.MathfieldElement.computeEngine.box(_e);je&&!je.has("Error")&&(b=je.latex)}b||(ee="latex")}catch(_e){}if(!b&&typeof y!="string"&&(b=y.getData("application/x-latex"),b&&(ee="latex")),b||(b=typeof y=="string"?y:y.getData("text/plain")),b){let _e;return[_e,b]=Mc(b),ee==="auto"&&_e&&(ee="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:ee})&&(a.startRecording(),a.snapshot("paste"),Ko(a)),a.startRecording(),!0}return!1}insert(a,y,b){var ee,ce;const _e=typeof y=="string"?y:(ce=(ee=window.MathfieldElement.computeEngine)==null?void 0:ee.box(y).latex)!=null?ce:"";if(!b.silenceNotifications&&!a.contentWillChange({data:_e,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:je}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const et=a.silenceNotifications;a.silenceNotifications=!0;const ot={"?":"\\placeholder{}","@":"\\placeholder{}"};ot[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(ws(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 gt=-1;ot[0]?ot["@"]=ot[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(gt=iv(a),gt>=0&&(ot["@"]=a.getValue(gt,a.position,"latex"))),ot[0]||(ot[0]=ot["?"]);let wt=!1;const jt=Yn=>(wt=!0,ot[Yn]);let[Vt,ar]=Vp(a,y,jt,b);if(!ar)return!1;const dr=ar.length===1&&ar[0].type==="genfrac";dr&>>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(ot["@"]=ot["?"],wt=!1,[Vt,ar]=Vp(a,y,jt,b)):gt>=0&&a.deleteAtoms([gt,a.position]);const{parent:Zr}=a.at(a.position),Kn=Zr.hasEmptyBranch("body");if(dr&&Vt!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Zr instanceof Ga&&Zr.leftDelim==="("&&Kn){const Yn=Zr.parent,xn=Zr.parentBranch;Yn.removeChild(Zr),Yn.setChildren(ar,xn)}const Hr=a.at(a.position);Hr.parent.addChildrenAfter(ar,Hr),Vt==="latex"&&typeof y=="string"&&(Zr==null?void 0:Zr.type)==="root"&&Kn&&!wt&&(Zr.verbatimLatex=y),a.silenceNotifications=et;const fn=ar[ar.length-1];if(b.selectionMode==="placeholder"){const Yn=ar.flatMap(xn=>[xn,...xn.children]).find(xn=>xn.type==="placeholder");if(Yn){const xn=a.offsetOf(Yn);a.setSelection(xn-1,xn),a.announce("move")}else fn&&(a.position=a.offsetOf(fn))}else b.selectionMode==="before"||(b.selectionMode==="after"?fn&&(a.position=a.offsetOf(fn)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(fn)));return a.contentDidChange({data:_e,inputType:"insertText"}),a.silenceNotifications=je,!0}};function Vp(a,y,b,ee){var ce;let _e,je=[];if(typeof y!="string"||ee.format==="math-json"){const et=window.MathfieldElement.computeEngine;if(!et)return["math-json",[]];[_e,y]=["latex",et.box(y).latex],je=Cs(y,{context:a.mathfield.context})}else typeof y=="string"&&ee.format==="ascii-math"?([_e,y]=Pu(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),je=Cs(y,{context:a.mathfield.context}),_e!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Xf(je)):(ee.format==="auto"||(ce=ee.format)!=null&&ce.startsWith("latex"))&&(ee.format==="auto"&&([_e,y]=Pu(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),ee.format==="latex"&&([,y]=Mc(y)),je=Cs(y,{context:a.mathfield.context,args:b}),ee.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Xf(je));return gu(je,ee.style),[_e!=null?_e:"latex",je]}function nv(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof Ga&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function Xf(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof Ga&&b.leftDelim==="("){let ee=0,ce=0,_e=0;for(let je=0;b.body[je];je++)b.body[je].type==="genfrac"&&(ee++,ce=je),_e++;_e===0&&ee===1&&(a[y]=b.body[ce])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){Xf(y.branch(b));const ee=nv(y.branch(b));ee&&y.setChildren(ee,b)}if(y instanceof la)for(const b of y.cells)Xf(b)}}}function iv(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 ee=!1;if(y.type==="mclose"){const ce=ge[y.value];for(;!y.isFirstSibling&&!(y.type==="mopen"&&y.value===ce);)y=y.leftSibling;y.isFirstSibling||(y=y.leftSibling),ee=!0}else y.type==="leftright"&&(y=y.leftSibling,ee=!0);if(ee)for(;!y.isFirstSibling&&(y.isFunction||Gp(y));)y=y.leftSibling;else{const ce=[];for(;!y.isFirstSibling&&(Gp(y)||ce.length>0);)y.type==="mclose"&&ce.unshift(y.value),y.type==="mopen"&&ce.length>0&&y.value===ge[ce[0]]&&ce.shift(),y=y.leftSibling}return b===y?-1:a.offsetOf(y)}function Gp(a){return a.isDigit()?!0:a.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(a.type)?!a.isExtensibleSymbol:!1}new rv;var av=class extends ta{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"),Ko(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:ee}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ce=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(ws(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 _e=ov(y,a.mathfield.context);if(gu(_e,b.style),!_e)return!1;const je=a.at(a.position),et=je.parent.addChildrenAfter(_e,je);return a.silenceNotifications=ce,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(et)):et&&(a.position=a.offsetOf(et))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=ee,!0}};function ov(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 "),Cs(a,{context:y,parseMode:"text"})}new av;function Dc(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var wo=4,fl=20,ds=2*(fl+wo),Yf=(a,y)=>`
|
|
|
<line x1="${a+fl}" y1="${y+fl}"
|
|
|
x2="${a>y?a+fl:7*fl+10*wo}"
|
|
|
y2="${a<y?y+fl:7*fl+10*wo}"/>
|
|
|
<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>`,Xp=(a,y)=>`
|
|
|
<line x1="${a+fl}" y1="${y+fl}"
|
|
|
x2="${a>y?a+fl:7*fl+10*wo}"
|
|
|
y2="${a<y?y+fl:7*fl+10*wo}"/>
|
|
|
<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>`,Jf=(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>`,sv=`
|
|
|
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
viewBox=
|
|
|
"-2 -2 ${8*fl+10*wo+5} ${8*fl+10*wo+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${ds+wo}"
|
|
|
height="${3*ds}"
|
|
|
width="${ds}"
|
|
|
rx="${ds/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${ds+wo}"
|
|
|
y="0"
|
|
|
height="${ds}"
|
|
|
width="${3*ds}"
|
|
|
rx="${ds/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${Jf(2*(wo+ds),2*wo+3*ds,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${Jf(2*(wo+ds),2*wo+ds,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${Jf(2*wo+3*ds,2*(wo+ds),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${Jf(2*wo+ds,2*(wo+ds),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${Yf(2*wo+ds,wo)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${Xp(2*wo+2*ds,wo)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${Yf(2*wo+3*ds,wo)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${Yf(wo,2*wo+ds)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${Xp(wo,2*wo+2*ds)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${Yf(wo,2*wo+3*ds)}
|
|
|
</g>
|
|
|
</svg>`,lv=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>`,cv=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>`,Yp=a=>`
|
|
|
<svg id="Bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","Bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,uv=a=>`
|
|
|
<svg id="bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4h-3v16h3"/>
|
|
|
<path class="cls-2" d="m22,4h3v16h-3"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,dv=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>`,fv=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>`,hv=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>`,pv=a=>`
|
|
|
<svg id="rcases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","rcases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
|
|
|
<circle cx="15" cy="8" r="1"/>
|
|
|
<circle cx="15" cy="16" r="1"/>
|
|
|
<circle cx="7" cy="8" r="1"/>
|
|
|
<circle cx="7" cy="16" r="1"/>
|
|
|
</svg>`,Nh={matrix:lv,pmatrix:cv,bmatrix:uv,Bmatrix:Yp,vmatrix:dv,Vmatrix:fv},jh={cases:hv,rcases:pv,Bmatrix:Yp};function mv(a){var y,b;const ee=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!ee)return;let ce=0;ee.forEach(dr=>{(!ce||dr.length>ce)&&(ce=dr.length)});let _e=document.getElementById("mathlive-environment-popover");_e||(_e=Of("mathlive-environment-popover"),_l("environment-popover"),_l("core"),_e.setAttribute("aria-hidden","true"));let je;const et=_e.querySelector(".MLEP__environment-controls");et?je=et:(je=document.createElement("div"),_e.innerHTML="",_e.appendChild(je)),je.className="MLEP__environment-controls",je.style.display="flex",je.style.width="100%",je.style.height="100%",je.style.boxSizing="border-box",je.innerHTML=sv;let ot=[],gt="";const wt=a.model.parentEnvironment.environmentName;if(Zs(wt)){const dr=vv(wt);gt=Nh[dr]("active");const Zr=Nh,{[dr]:Kn}=Zr,Hr=pe(Zr,[se(dr)]);ot=Object.values(Hr).map(fn=>fn("inactive"))}else if(Us(wt)){const dr=yv(wt);gt=jh[dr]("active");const Zr=jh,{[dr]:Kn}=Zr,Hr=pe(Zr,[se(dr)]);ot=Object.values(Hr).map(fn=>fn("inactive"))}else is(wt)&&(gt=Nh.matrix("active"),ot=Object.values(jh).map(dr=>dr("inactive")));const jt=document.createElement("div");jt.className="MLEP__environment-delimiter-controls",jt.style.display="flex",jt.style.flexDirection="column",jt.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${gt}
|
|
|
${ot.join("")}
|
|
|
</div>`,gt&&je.appendChild(jt),je.querySelectorAll("[data-command]").forEach(dr=>{const Zr=dr.dataset.command;let Kn=Zr;try{Kn=JSON.parse(Zr)}catch(Hr){}dr.addEventListener("mousedown",Hr=>Hr.preventDefault()),Kn&&dr.addEventListener("click",()=>a.executeCommand(Kn))});const ar=(b=a.field)==null?void 0:b.getBoundingClientRect();ar&&(_e.style.top=`${window.scrollY+(ar.top-_e.clientHeight-15)}px`,_e.style.left=`${ar.left+20}px`,_e.classList.add("is-visible"))}function Fh(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function gv(){document.getElementById("mathlive-environment-popover")&&(xh("mathlive-environment-popover"),E("environment-popover"),E("core"))}function Qf(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&Po(b.environmentName)){const ee=a.options.environmentPopoverPolicy;y=ee==="auto"||ee==="on"}}y?mv(a):Fh()}function vv(a){return a.replace("*","")}function yv(a){return a==="dcases"?"cases":a}function Jp(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function Qp(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function $h(a,y,b,ee){return b==="middle"?a-y/2:b==="start"&&ee==="rtl"||b==="end"&&ee==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function bv(a,y,b,ee){return b==="middle"?a-y/2:b==="start"&&ee==="ltr"||b==="end"&&ee==="rtl"||b==="top"||b==="right"?a:a-y}function xv(a,y){var b,ee,ce;const _e=(b=Jp(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 je=a.getBoundingClientRect(),et=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let ot=Math.min(et,(ee=y.height)!=null?ee:je.height),gt=$h(y.location.y,ot,y.verticalPos,_e);gt+ot>window.innerHeight-8&&(y.alternateLocation?(gt=$h(y.alternateLocation.y,ot,y.verticalPos,_e),gt+ot>window.innerHeight-8&&(gt=void 0)):gt=void 0),Number.isFinite(gt)||(gt=Math.max(8,window.innerHeight-8-ot),8+ot>window.innerHeight-8&&(a.style.bottom="8px")),ot=Math.min(gt+ot,window.innerHeight-8)-gt;const wt=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let jt=Math.min(wt,(ce=y.width)!=null?ce:je.width),Vt=$h(y.location.x,jt,y.horizontalPos,_e);Vt+jt>window.innerWidth-8&&(y.alternateLocation?(Vt=bv(y.alternateLocation.x,jt,y.verticalPos,_e),Vt+jt>window.innerWidth-8&&(Vt=void 0)):Vt=void 0),Number.isFinite(Vt)||(Vt=Math.max(8,window.innerWidth-8-jt),8+jt>window.innerWidth-8&&(a.style.right="8px")),jt=Math.min(Vt+jt,window.innerWidth-8)-Vt,_e==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-Vt-jt).toString()}px`:a.style.left=`${Math.ceil(Vt).toString()}px`,a.style.top=`${Math.ceil(gt).toString()}px`,ot!==je.height&&(a.style.height=`${Math.ceil(ot).toString()}px`),jt!==je.width&&(a.style.width=`${Math.ceil(jt).toString()}px`)}function wv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function bd(a){return"submenu"in a}function Ic(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function zh(a){return"type"in a&&a.type==="divider"}function Kh(a){return"type"in a&&a.type==="heading"}var qp={};function Hh(a){let y=qp[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 ee=document.createElement("template");ee.innerHTML=b,qp[a]=ee,y=ee}}if(y){if("content"in y)return y.content.cloneNode(!0);const b=document.createElement("svg");return b.innerHTML=y.innerHTML,b}}var em=80,tm=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,bd(a)?(this.type="submenu",this.submenu=new rm(a.submenu,{parentMenu:y,submenuClass:a.submenuClass,columnCount:a.columnCount})):this.type=(b=a.type)!=null?b:"command",this.hasCheck=Ic(a)&&a.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var a,y;(a=this._abortController)==null||a.abort(),this._abortController=void 0,(y=this._element)==null||y.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var a;return(a=this._label)!=null?a:""}set label(a){a===void 0&&(a=""),a!==this._label&&(this._label=a,this.dirty=!0)}get visible(){return this._visible}set visible(a){a!==this._visible&&(this._visible=a,this.dirty=!0)}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this.element&&(a?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(a){this._checked=a,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(a){a!==this._tooltip&&(this._tooltip=a,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(a){a!==this._ariaLabel&&(this._ariaLabel=a,this.dirty=!0)}get active(){var a,y;return(y=(a=this.element)==null?void 0:a.classList.contains("active"))!=null?y:!1}set active(a){this.element&&this.element.classList.toggle("active",a)}updateState(a){var y,b,ee;const ce=this._declaration;if(zh(ce)){this.enabled=!1,this.checked=!1;return}Kh(ce)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Ic(ce)&&(this.checked=Ic(ce)&&((y=xd(ce.checked,a))!=null?y:!1)),(Ic(ce)||bd(ce))&&(this.enabled=(b=xd(ce.enabled,a))!=null?b:!0,this.visible=(ee=xd(ce.visible,a))!=null?ee:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Ic(ce)||Kh(ce)||bd(ce))&&(this.label=xd(ce.label,a),this.tooltip=xd(ce.tooltip,a),this.ariaLabel=xd(ce.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(Hh("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Hh("mixedmark"))):a.removeAttribute("aria-checked"),this.ariaLabel&&a.setAttribute("aria-label",this.ariaLabel);const y=document.createElement("span");if(y.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&y.classList.add("heading"),y.innerHTML=this.label,a.append(y),this._tooltip&&a.setAttribute("data-tooltip",this._tooltip),Ic(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=yh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Hh("trailing-chevron"))}get element(){if(this._element)return this._element;if(zh(this._declaration)){const b=document.createElement("li");return b.setAttribute("part","menu-divider"),b.setAttribute("role","divider"),this._element=b,b}const a=document.createElement("li");this._element=a,(Ic(this._declaration)||Kh(this._declaration)||bd(this._declaration))&&this._declaration.class&&(a.className=this._declaration.class),a.setAttribute("part","menu-item"),a.setAttribute("tabindex","-1"),this.hasCheck?a.setAttribute("role","menuitemcheckbox"):a.setAttribute("role","menuitem"),this.type==="submenu"&&(a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"));const y=this.abortController.signal;return a.addEventListener("pointerenter",this,{signal:y}),a.addEventListener("pointerleave",this,{signal:y}),a.addEventListener("pointerup",this,{signal:y}),a.addEventListener("click",this,{signal:y}),this._element}dispatchSelect(){if(!Ic(this._declaration))return;const a=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(a)&&typeof this._declaration.onMenuSelect=="function"&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(a){var y;if(!(!this.visible||!this.enabled)){if(a.type==="click"){this.rootMenu.state==="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}if(a.type==="pointerenter"){const b=a;this.rootMenu.cancelDelayedOperation(),this.parentMenu.isSubmenuOpen&&((y=this.parentMenu.activeMenuItem)!=null&&y.movingTowardSubmenu(b))?this.rootMenu.scheduleOperation(()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()}):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0}));return}if(a.type==="pointerleave"){this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null);return}if(a.type==="pointerup"){this.rootMenu.state!=="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}}}select(){if(this.rootMenu.cancelDelayedOperation(),this.type==="submenu"){this.openSubmenu();return}this.active=!1,setTimeout(()=>{this.active=!0,setTimeout(()=>{this.rootMenu.hide(),this.dispatchSelect()},em)},em)}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(),ee=Jp(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:Qp(b,"trailing",ee),y:b.top-4},alternateLocation:{x:Qp(b,"leading",ee),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 ee=a.clientX-y.clientX;if(Sv(ee,y.clientY-a.clientY,b)<=.2)return!1;let _e="right";if(this.submenu.element){const je=this.submenu.element.getBoundingClientRect(),et=this.element.getBoundingClientRect();je.left<et.left+et.width/2&&(_e="left")}return _e==="right"?ee>0:ee<0}};function Sv(a,y,b){return Math.hypot(a,y)/b}function xd(a,y){return a===void 0||typeof a!="function"?a:(y!=null||(y={alt:!1,control:!1,shift:!1,meta:!1}),a(y))}var rm=class Td{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var ee,ce;this.parentMenu=(ee=b==null?void 0:b.parentMenu)!=null?ee:null,this._submenuClass=b==null?void 0:b.submenuClass,this.columnCount=(ce=b==null?void 0:b.columnCount)!=null?ce: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(ee=>ee.onCreate?ee.onCreate(ee,this):new tm(ee,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,ee,ce;this._menuItems.forEach(gt=>gt.updateState(y));const _e=this.hasCheck;this.hasCheck=this._menuItems.some(gt=>gt.visible&>.hasCheck),this.hasCheck!==_e&&this._menuItems.forEach(gt=>gt.updateState(y));let je,et=0;for(const gt of this._menuItems)gt.type==="heading"?(je&&et===0&&(je.visible=!1),je=gt,et=0):gt.type==="divider"&&je?(je.visible=et>0,je=void 0,et=0):je&>.visible&&(et+=1);je&&(je.visible=et>0);let ot=!0;for(const gt of this._menuItems)gt.type==="divider"?(gt.visible=!ot,ot=!0):gt.visible&&(ot=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((ee=this.activeMenuItem)!=null&&ee.enabled)&&((ce=this.activeMenuItem)==null?void 0:ce.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:ee}of this._menuItems)b&&ee&&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,ee,ce,_e;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const je=this.activeMenuItem;je.active=!1,(b=je.submenu)==null||b.hide()}if(!((ee=y==null?void 0:y.visible)==null||ee)){this._activeMenuItem=null;return}this._activeMenuItem=y,y&&(y.active=!0)}y?(ce=y.element)==null||ce.focus({preventScroll:!0}):(_e=this._element)==null||_e.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const ee=this._menuItems;for(;!b&&y<=ee.length-1;){const ce=ee[y];b=ce.type!=="divider"&&ce.visible&&ce.enabled,y+=1}return b?ee[y-1]:null}get lastMenuItem(){this.updateIfDirty();const y=this._menuItems;let b=y.length-1,ee=!1;for(;!ee&&b>=0;){const ce=y[b];ee=ce.type!=="divider"&&ce.visible&&ce.enabled,b-=1}return ee?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),ee=this._menuItems.indexOf(this.lastMenuItem);let ce=this._menuItems.indexOf(this._activeMenuItem),_e=1;for(;ce>=b&&ce<=ee;){ce+=y>0?1:-1;const je=this._menuItems[ce];if(!je)break;if(je.visible&&je.enabled){if(_e===Math.abs(y))return this._menuItems[ce];_e+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const ee=this._menuItems.filter(ce=>ce.visible&&ce.enabled).indexOf(y);return ee<0?-1:ee%this.columnCount}static get collator(){return Td._collator||(Td._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Td._collator}findMenuItem(y){var b;this.updateIfDirty();const ee=this._menuItems.filter(et=>et.type!=="divider"&&et.visible&&et.enabled);if(ee.length===0)return null;const ce=Math.max(...ee.map(et=>et.label.length))-y.length;if(ce<0)return null;let _e=null,je=0;for(;je<ce&&!_e;)_e=(b=ee.find(et=>Td.collator.compare(y,et.label.substring(je,y.length))===0))!=null?b:null,je++;return _e}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),we()&&(this.element.popover="manual",this.element.showPopover()),y.location&&xv(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,ee,ce,_e;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),we()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(ee=(b=this.parentMenu)==null?void 0:b.element)==null||ee.focus(),(_e=(ce=this._element)==null?void 0:ce.parentNode)==null||_e.removeChild(this._element)}set openSubmenu(y){var b,ee,ce,_e;const je=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((ee=this.activeMenuItem.element)==null||ee.setAttribute("aria-expanded",je.toString())),(_e=(ce=this.activeMenuItem)==null?void 0:ce.element)==null||_e.classList.toggle("is-submenu-open",je),this.isSubmenuOpen=je}},nm=class i0 extends rm{constructor(y,b){var ee;super(y),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(ee=b==null?void 0:b.host)!=null?ee:null,this.isDynamic=y.some(im),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){z0(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=Bu(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,ee,ce;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Bu(y));let _e=!0;const je=this.activeSubmenu,et=je.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":et==null||et.select(Bu(y));break;case"ArrowRight":if((et==null?void 0:et.type)==="submenu")et.select(Bu(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!et)je.activeMenuItem=je.firstMenuItem;else{const ot=(b=je.getMenuItemColumn(et))!=null?b:-1;if(ot>=0&&ot<((ee=je.columnCount)!=null?ee:1)-1){const gt=je.nextMenuItem(1);gt&&(je.activeMenuItem=gt)}}break;case"ArrowLeft":if(je===this.rootMenu)et||(je.activeMenuItem=je.firstMenuItem);else if((et&&(ce=je.getMenuItemColumn(et))!=null?ce:-1)<=0||!et){je.hide();const gt=je.parentMenu.activeMenuItem;if(gt){const{element:wt}=gt;wt==null||wt.focus(),wt==null||wt.classList.remove("is-submenu-open")}}else{const gt=je.nextMenuItem(-1);gt&&(je.activeMenuItem=gt)}break;case"ArrowDown":je.activeMenuItem=je.nextMenuItem(je.columnCount);break;case"ArrowUp":je.activeMenuItem=je.nextMenuItem(-je.columnCount);break;case"Home":case"PageUp":je.activeMenuItem=je.firstMenuItem;break;case"End":case"PageDown":je.activeMenuItem=je.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const ot=je.findMenuItem(this.typingBuffer);ot&&(je.activeMenuItem=ot),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(kf(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const ot=je.findMenuItem(this.typingBuffer);ot&&(je.activeMenuItem=ot),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else _e=!1}_e&&(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 Tc.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),Tc.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),Tc.state==="open"&&Tc.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(oe(ie({},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,Tc.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(y){this.cancelDelayedOperation();const b=i0.SUBMENU_DELAY;if(b<=0){y();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,y()},b)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};nm.SUBMENU_DELAY=120;var Cv=nm;function im(a){return zh(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Ic(a)||bd(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Ic(a)&&typeof a.checked=="function"?!0:bd(a)?a.submenu.some(im):!1}var qf=class{};qf.DELAY=300,qf.MAX_DISTANCE=10;function Ev(a){return new Promise((y,b)=>{const ee=_f(a);ee||y(!1);let ce=ee;const _e=setTimeout(()=>{je.abort(),y(wv(ce,ee)<qf.MAX_DISTANCE)},qf.DELAY),je=new AbortController,et=je.signal;for(const ot of["pointermove","pointerup","pointercancel"])window.addEventListener(ot,gt=>{if(gt.type==="pointerup"||gt.type==="pointercancel")clearTimeout(_e),je.abort(),y(!1);else if(gt.type==="pointermove"){const wt=_f(gt);wt&&(ce=wt)}},{passive:!0,signal:et})})}function am(a,y,b){return bu(this,null,function*(){if(a.type==="contextmenu"){const ee=a;if(b.show({target:y,location:_f(ee),modifiers:Bu(ee)}))return a.preventDefault(),a.stopPropagation(),!0}if(a.type==="keydown"){const ee=a;if(ee.code==="ContextMenu"||ee.code==="F10"&&ee.shiftKey){const ce=y==null?void 0:y.getBoundingClientRect();if(ce&&b.show({target:y,location:{x:Math.ceil(ce.left+ce.width/2),y:Math.ceil(ce.top+ce.height/2)},modifiers:Bu(ee)}))return a.preventDefault(),a.stopPropagation(),!0}}if(a.type==="pointerdown"&&a.pointerType!=="mouse"&&a.button===0){let ee=a.target;for(;ee&&y!==ee;)ee=ee.parentNode;if(!ee||!b.visible)return!1;const ce=_f(a);if(yield Ev(a))return b.state!=="closed"?!1:(b.show({target:y,location:ce}),!0)}return!1})}var om={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};Ct(Object.keys(om),"{body:auto}",{createAtom:a=>new te(oe(ie({},a),{body:qe(a.args[0]),accentChar:om[a.command.slice(1)]}))}),Ct(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=at(qe(a.args[0]));return new te(oe(ie({},a),{body:qe(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),Ct(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new te(oe(ie({},a),{body:qe(a.args[0]),svgAccent:"overarc"}))}),Ct(["underarc","underparen"],"{body:auto}",{createAtom:a=>new ql(oe(ie({},a),{body:qe(a.args[0]),svgBelow:"underarc"}))}),Ct("utilde","{body:auto}",{createAtom:a=>{const y=qe(a.args[0]),b=at(y),ee="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new ql(oe(ie({},a),{body:y,svgBelow:ee,boxType:wc(y)}))}}),Ct("^","{:string}",{createAtom:a=>{var y;return new an(oe(ie({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE2",e:"\xEA",i:"\xEE",o:"\xF4",u:"\xFB",A:"\xC2",E:"\xCA",I:"\xCE",O:"\xD4",U:"\xDB"}[a.args[0]])!=null?y:"^"}))}}),Ct("`","{:string}",{createAtom:a=>{var y;return new an(oe(ie({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE0",e:"\xE8",i:"\xEC",o:"\xF2",u:"\xF9",A:"\xC0",E:"\xC8",I:"\xCC",O:"\xD2",U:"\xD9"}[a.args[0]])!=null?y:"`"}))}}),Ct("'","{:string}",{createAtom:a=>{var y;return new an(oe(ie({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE1",e:"\xE9",i:"\xED",o:"\xF3",u:"\xFA",A:"\xC1",E:"\xC9",I:"\xCD",O:"\xD3",U:"\xDA"}[a.args[0]])!=null?y:"'"}))}}),Ct('"',"{:string}",{createAtom:a=>{var y,b;return new an(oe(ie({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\xE4",e:"\xEB",i:"\xEF",o:"\xF6",u:"\xFC",A:"\xC4",E:"\xCB",I:"\xCB",O:"\xD6",U:"\xDC"}[a.args[0]])!=null?b:'"'+a.args[0]:'"'}))}}),Ct(".","{:string}",{createAtom:a=>{var y,b;return new an(oe(ie({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\u0227",e:"\u0117",i:"\u0307i",o:"\u022F",u:"\u0307u",A:"\u0226",E:"\u0116",I:"\u0130",O:"\u022E",U:"\u0307U"}[a.args[0]])!=null?b:"."+a.args[0]:"."}))}}),Ct("=","{:string}",{createAtom:a=>{var y,b;return new an(oe(ie({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\u0101",e:"\u0113",i:"\u012B",o:"\u014D",u:"\u016B",A:"\u0100",E:"\u0112",I:"\u012A",O:"\u014C",U:"\u016A"}[a.args[0]])!=null?b:"="+a.args[0]:"="}))}}),Ct("~","{:string}",{createAtom:a=>{var y;return new an(oe(ie({type:"mord"},a),{isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={n:"\xF1",N:"\xD1",a:"\xE3",o:"\xF5",A:"\xC3",O:"\xD5"}[a.args[0]])!=null?y:"\xB4"}))}}),Ct("c","{:string}",{createAtom:a=>{var y;return new an(oe(ie({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),Ct("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const ee=a.args,ce={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(y=a.style)!=null?y:{}};if(ee[1]){const je=ee[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const et of je){const ot=et.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(ot)ce.strokeWidth=ot[1],ce.strokeStyle=ot[2],ce.strokeColor=ot[3];else{const gt=et.match(/\s*([a-z]*)\s*=\s*"(.*)"/);gt&&(gt[1]==="mathbackground"?ce.backgroundcolor=gt[2]:gt[1]==="mathcolor"?ce.strokeColor=gt[2]:gt[1]==="padding"?ce.padding=gt[2]:gt[1]==="shadow"&&(ce.shadow=gt[2]))}}ce.strokeStyle==="dashed"?ce.svgStrokeStyle="5,5":ce.strokeStyle==="dotted"&&(ce.svgStrokeStyle="1,5")}ce.borderStyle=`${ce.strokeWidth} ${ce.strokeStyle} ${ce.strokeColor}`;const _e={};return((b=ee[0])!=null?b:"").split(/[, ]/).filter(je=>je.length>0).forEach(je=>{_e[je.toLowerCase()]=!0}),new zd(a.command,qe(ee[2]),_e,ce)}}),Ct("cancel","{body:auto}",{createAtom:a=>{var y;return new zd(a.command,qe(a.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Ct("bcancel","{body:auto}",{createAtom:a=>{var y;return new zd(a.command,qe(a.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Ct("xcancel","{body:auto}",{createAtom:a=>{var y;return new zd(a.command,qe(a.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Ct(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new ql(oe(ie({},a),{body:qe((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),Ct("overbrace","{:auto}",{createAtom:a=>new ql(oe(ie({},a),{body:qe(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),Ct(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new ql(oe(ie({},a),{body:qe(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),Ct(["underbrace"],"{:auto}",{createAtom:a=>new ql(oe(ie({},a),{body:qe(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),Ct(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:a=>{var y,b,ee,ce,_e;return new ql(oe(ie({},a),{svgBody:a.command.slice(1),above:((b=qe((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:qe((ee=a.args)==null?void 0:ee[1]),below:(_e=qe((ce=a.args)==null?void 0:ce[0]))!=null?_e:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(a,y)=>a.command+(a.hasEmptyBranch("below")?"":`[${a.belowToLatex(y)}]`)+`{${a.aboveToLatex(y)}}${a.supsubToLatex(y)}`}),Ct(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:a=>new Ru(a.command.slice(1),oe(ie({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),Ct(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new Ru({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],oe(ie({},a),{limits:"over-under",variant:"main"}))}),Ct(["lim","mod"],"",{ifMode:"math",createAtom:a=>new Ru(a.command.slice(1),oe(ie({},a),{limits:"over-under",variant:"main"}))}),Ct(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new Ru(a.command.slice(1),oe(ie({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),Ct(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new an(oe(ie({},a),{body:qe(a.args[0])})),serialize:(a,y)=>`\\ang{${a.bodyToLatex(y)}}`,render:(a,y)=>{const b=a.createBox(y),ee=b.caret;b.caret=void 0;const ce=new Fn("\xB0",{style:oe(ie({},a.style),{variant:"normal",variantStyle:"up"})});return new Fn([b,ce],{type:"inner",isSelected:a.isSelected,caret:ee})}}),Ct("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new sp(oe(ie({},a),{body:qe(a.args[1]),index:a.args[0]?qe(a.args[0]):void 0}))}),Ct(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=ie({},a),b=a.command,ee=a.args;switch(b){case"\\dfrac":case"\\frac":case"\\tfrac":y.hasBarLine=!0;break;case"\\atopfrac":y.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":y.hasBarLine=!1,y.leftDelim="(",y.rightDelim=")";break;case"\\cfrac":y.hasBarLine=!0,y.continuousFraction=!0;break;default:}switch(b){case"\\dfrac":case"\\dbinom":y.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":y.mathstyleName="textstyle";break;default:}return new ud(ee[0]?qe(ee[0]):[new zi],ee[1]?qe(ee[1]):[new zi],y)},serialize:(a,y)=>{const b=a.aboveToLatex(y),ee=a.belowToLatex(y);return/^[0-9]$/.test(b)&&/^[0-9]$/.test(ee)?`${a.command}${b}${ee}`:so(a.command,b,ee)}}),Ct(["brace","brack"],"",{infix:!0,createAtom:a=>new ud(qe(a.args[0]),qe(a.args[1]),oe(ie({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>ya([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),Ct(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const ee=a.args;return a.command==="\\choose"&&(y="(",b=")"),new ud(qe(ee[0]),qe(ee[1]),oe(ie({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>ya([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),Ct(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:a=>{var y,b;const ee=a.args;return new ud(qe(ee[0]),qe(ee[1]),oe(ie({},a),{leftDelim:(y=ee[2])!=null?y:".",rightDelim:(b=ee[3])!=null?b:".",hasBarLine:!1}))},serialize:(a,y)=>`${a.aboveToLatex(y)} ${a.command}${a.leftDelim}${a.rightDelim}${a.belowToLatex(y)}`}),Ct("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new ud(qe(a.args[0]),qe(a.args[1]),oe(ie({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),Ct(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new hh({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)],oe(ie({},a),{limits:"auto",variant:"main"}))}),Ct("smallint","",{ifMode:"math",createAtom:a=>new Ru("\u222B",oe(ie({},a),{limits:"adjacent",variant:"main"}))});var sm={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};Ct(Object.keys(sm),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=sm[y.slice(1)];return new hh(b,oe(ie({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),Ct(["Re","Im"],"",{ifMode:"math",createAtom:a=>new Ru({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],oe(ie({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),Ct("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new ip(oe(ie({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),Ct("the","{:value}",{createAtom:a=>new an(oe(ie({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const ee=new Da({parent:y},a.style);let ce="";a.isSelected&&(ce+=" ML__selected");const _e=ee.evaluate(a.args[0]);return new Fn(((b=Ao(_e))!=null?b:"").split("").map(je=>new Fn(je,{type:"ord",classes:ce,mode:a.mode,isSelected:a.isSelected,style:ie({variant:"main"},a.style)})),{type:"lift",style:a.style,caret:a.caret,isSelected:a.isSelected,classes:ce}).wrap(ee)},serialize:a=>{var y;return`\\the${(y=Ao(a.args[0]))!=null?y:"\\relax"}`}}),Ct("mathtip","{:auto}{:math}",{createAtom:a=>new ph(oe(ie({},a),{body:qe(a.args[0]),tooltip:qe(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${an.serialize([a.tooltip],oe(ie({},y),{defaultMode:"math"}))}}`}),Ct("texttip","{:auto}{:text}",{createAtom:a=>new ph(oe(ie({},a),{body:qe(a.args[0]),tooltip:qe(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${an.serialize([a.tooltip],oe(ie({},y),{defaultMode:"text"}))}}`}),Ct("error","{:math}",{createAtom:a=>new an(oe(ie({},a),{body:qe(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),Ct("ensuremath","{:math}",{createAtom:a=>new an(oe(ie({},a),{body:qe(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(oe(ie({},y),{defaultMode:"math"}))}}`}),Ct("color","{:value}",{applyStyle:(a,y,b)=>{var ee,ce;return{verbatimColor:(ee=Ao(y[0]))!=null?ee:void 0,color:b.toColor((ce=y[0])!=null?ce:{string:"red"})}}}),Ct("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var ee,ce;return{verbatimColor:(ee=Ao(y[0]))!=null?ee:void 0,color:b.toColor((ce=y[0])!=null?ce:{string:"red"})}}}),Ct("boxed","{content:math}",{createAtom:a=>new Jo(oe(ie({},a),{body:qe(a.args[0]),framecolor:{string:"black"}}))}),Ct("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var ee,ce;return{verbatimBackgroundColor:(ee=Ao(y[0]))!=null?ee:void 0,backgroundColor:b.toBackgroundColor((ce=y[0])!=null?ce:{string:"yellow"})}}}),Ct("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new Jo(oe(ie({},a),{body:qe(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,ee;return y.skipStyles?a.bodyToLatex(oe(ie({},y),{defaultMode:"text"})):so(a.command,(b=Ao(a.framecolor))!=null?b:"",(ee=Ao(a.backgroundcolor))!=null?ee:"",a.bodyToLatex(oe(ie({},y),{defaultMode:"text"})))}}),Ct("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],ee=qe(a.args[1]);return b?new Jo(oe(ie({},a),{body:ee,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new Jo(oe(ie({},a),{body:ee}))},serialize:(a,y)=>{var b,ee;if(y.skipStyles)return a.bodyToLatex(y);let ce=a.command;if(Number.isFinite(a.padding)||a.border!==void 0||a.backgroundcolor!==void 0){const _e=[];a.padding&&_e.push((b=Ao(a.padding))!=null?b:""),a.border&&_e.push(`border: ${a.border}`),a.backgroundcolor&&_e.push((ee=Ao(a.backgroundcolor))!=null?ee:""),ce+=`[${_e.join(",")}]`}return so(ce,a.bodyToLatex(y))}}),Ct(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new an(oe(ie({},a),{body:qe(a.args[0])})),render:(a,y)=>{const b=new Da({parent:y,mathstyle:a.command.slice(1)},a.style),ee=an.createBox(b,a.body,{type:"lift"});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)},serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{${ya([a.command,a.bodyToLatex(y)])}}`}),Ct(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:a=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[a]})}),Ct("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),Ct("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),Ct("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),Ct("selectfont","",{ifMode:"text",applyStyle:()=>({})}),Ct("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),Ct(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new an(oe(ie({},a),{body:qe(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),Ct("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),Ct("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),Ct("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),Ct("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),Ct("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),Ct("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),Ct("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),Ct("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),Ct("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),Ct("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),Ct("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),Ct("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),Ct("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),Ct("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),Ct("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),Ct("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),Ct("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),Ct("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),Ct("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),Ct("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),Ct("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),Ct("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),Ct("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),Ct("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),Ct("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),Ct("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),Ct("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),Ct(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),Ct(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),Ct("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),Ct("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),Ct("mbox","{:text}",{ifMode:"math",createAtom:a=>new an(oe(ie({},a),{type:"mord",body:qe(a.args[0]),mode:"math"})),serialize:(a,y)=>so("\\mbox",a.bodyToLatex(oe(ie({},y),{defaultMode:"text"})))}),Ct("text","{:text}",{ifMode:"math",applyMode:"text"}),Ct(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new an(oe(ie({},a),{body:qe(a.args[1])})),serialize:(a,y)=>!a.args[0]||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`,render:(a,y)=>{var b;return a.createBox(y,{classes:(b=a.args[0])!=null?b:""})}}),Ct(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new an(oe(ie({},a),{body:qe(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 ee=a.createBox(y);return ee.cssId=(b=a.args[0])!=null?b:"",ee}}),Ct("htmlData","{data:string}{content:auto}",{createAtom:a=>new an(oe(ie({},a),{body:qe(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 ee=a.createBox(y);return ee.htmlData=(b=a.args[0])!=null?b:"",ee}}),Ct(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new an(oe(ie({},a),{body:qe(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 ee=a.createBox(y);return ee.htmlStyle=(b=a.args[0])!=null?b:"",ee}}),Ct("em","{:rest}",{createAtom:a=>new an(oe(ie({},a),{body:qe(a.args[0])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{\\em ${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})}),Ct("emph","{:auto}",{createAtom:a=>new an(oe(ie({},a),{body:qe(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 lm={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};Ct(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new ap(oe(ie({},a),{delim:(y=a.args[0])!=null?y:".",size:lm[a.command].size,delimType:lm[a.command].mclass}))}}),Ct(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new Wd(oe(ie({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),Ct(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new Wd(oe(ie({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),Ct("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new an(a),render:(a,y)=>{let b=0;const ee=y.mathstyle.id;(ee===Hc||ee===jl)&&(b=1),(ee===Fl||ee===gs)&&(b=2),(ee===$s||ee===ns)&&(b=3);const ce=qe(a.args[b]);return an.createBox(y,ce)},serialize:(a,y)=>`\\mathchoice{${an.serialize(a.args[0],y)}}{${an.serialize(a.args[1],y)}}{${an.serialize(a.args[2],y)}}{${an.serialize(a.args[3],y)}}`}),Ct("mathop","{:auto}",{createAtom:a=>new an(oe(ie({},a),{type:"mop",body:qe(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let ee=an.createBox(y,a.body);if(a.superscript||a.subscript){const ce=(b=a.subsupPlacement)!=null?b:"auto";ee=ce==="over-under"||ce==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:ee}):a.attachSupsub(y,{base:ee})}return new Fn(a.bind(y,ee),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[so(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)),ya(b)}}),Ct(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new an(oe(ie({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:qe(a.args[0])}))}),Ct(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=qe(a.args[0]).map(b=>{var ee;return b.type!=="first"&&(b.type="mord",b.value=(ee={"\u2217":"*","\u2212":"-"}[b.value])!=null?ee:b.value,b.isFunction=!1,!b.style.variant&&!b.style.variantStyle&&(b.style.variant="main",b.style.variantStyle="up")),b});return new an(oe(ie({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let ee=an.createBox(y,a.body);if(a.superscript||a.subscript){const ce=(b=a.subsupPlacement)!=null?b:"auto";ee=ce==="over-under"||ce==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:ee}):a.attachSupsub(y,{base:ee})}return a.caret&&(ee.caret=a.caret),new Fn(a.bind(y,ee),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[so(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)),ya(b)}}),Ct(["char","unicode"],"{charcode:value}",{createAtom:a=>new an(oe(ie({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${Ao((y=a.args[0])!=null?y:{number:10067,base:"hexadecimal"})}`},render:(a,y)=>{let b=y.evaluate(a.args[0]);return(!b||!("number"in b))&&(b={number:10067,base:"hexadecimal"}),a.value=String.fromCodePoint(b.number),a.createBox(y)}}),Ct("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new an(a),render:(a,y)=>{var b,ee,ce;const _e=new Da({parent:y,mathstyle:"textstyle"},a.style),je=_e.toEm((b=a.args[0])!=null?b:{dimension:0}),et=_e.toEm((ee=a.args[1])!=null?ee:{dimension:10}),ot=_e.toEm((ce=a.args[2])!=null?ce:{dimension:10}),gt=new Fn(null,{classes:"rule",type:"ord"});return gt.width=et,gt.height=ot+je,gt.depth=-je,gt.setStyle("border-right-width",et,"em"),gt.setStyle("border-top-width",ot,"em"),gt.setStyle("border-color",a.style.color),gt.setStyle("vertical-align",je,"em"),a.isSelected&>.setStyle("opacity","50%"),a.bind(_e,gt),a.caret&&(gt.caret=a.caret),gt.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${Ao(a.args[0])}]`:""}{${Ao(a.args[1])}}{${Ao(a.args[2])}}`}),Ct(["overline","underline"],"{:auto}",{createAtom:a=>new an(oe(ie({},a),{body:qe(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),ee=new Da({parent:y,mathstyle:"cramp"},a.style),ce=an.createBox(ee,a.body);if(!ce)return null;const _e=ee.metrics.defaultRuleThickness/ee.scalingFactor,je=new Fn(null,{classes:b+"-line"});je.height=_e,je.maxFontSize=_e*1.125*ee.scalingFactor;let et;return b==="overline"?et=new qa({shift:0,children:[{box:ce},3*_e,{box:je},_e]}):et=new qa({top:ce.height,children:[_e,{box:je},3*_e,{box:ce}]}),a.caret&&(et.caret=a.caret),new Fn(et,{classes:b,type:"ignore"})}}),Ct("overset","{:auto}{base:auto}",{createAtom:a=>{const y=qe(a.args[1]);return new ql(oe(ie({},a),{above:qe(a.args[0]),body:y,skipBoundary:!1,boxType:wc(y)}))},serialize:(a,y)=>so(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),Ct("underset","{:auto}{base:auto}",{createAtom:a=>{const y=qe(a.args[1]);return new ql(oe(ie({},a),{below:qe(a.args[0]),body:y,skipBoundary:!1,boxType:wc(y)}))},serialize:(a,y)=>so(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),Ct("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=qe(a.args[2]);return new ql(oe(ie({},a),{above:qe(a.args[0]),below:qe(a.args[1]),body:y,skipBoundary:!1,boxType:wc(y)}))},serialize:(a,y)=>so(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),Ct(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new ql(oe(ie({},a),{body:qe(a.args[2]),above:qe(a.args[1]),below:qe(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>so(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),Ct("smash","[:string]{:auto}",{createAtom:a=>{var y,b,ee,ce;return new Hd(oe(ie({},a),{body:qe(a.args[1]),smashHeight:(b=(y=a.args[0])==null?void 0:y.includes("t"))!=null?b:!0,smashDepth:(ce=(ee=a.args[0])==null?void 0:ee.includes("b"))!=null?ce:!0}))}}),Ct(["vphantom"],"{:auto}",{createAtom:a=>new Hd(oe(ie({},a),{body:qe(a.args[0]),isInvisible:!0,smashWidth:!0}))}),Ct(["hphantom"],"{:auto}",{createAtom:a=>new Hd(oe(ie({},a),{body:qe(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),Ct(["phantom"],"{:auto}",{createAtom:a=>new Hd(oe(ie({},a),{body:qe(a.args[0]),isInvisible:!0}))}),Ct("not","{:math}",{createAtom:a=>{const y=qe(a.args[0]);return y.length===0?new an(oe(ie({},a),{type:"mrel",value:"\uE020"})):new an(oe(ie({},a),{body:[new Lu(oe(ie({},a),{body:"\uE020",align:"right"})),...y],captureSelection:!0}))},serialize:(a,y)=>{const b=a.args[0],ee=b&&typeof b=="object"&&"group"in b;return a.value!=="\uE020"?ee?`\\not{${an.serialize(b.group,y)}}`:`\\not${an.serialize(b,y)}`:ee?"\\not{}":"\\not"},render:(a,y)=>{if(a.value)return a.createBox(y);const ee=a.args[0]&&typeof a.args[0]=="object"&&"group"in a.args[0]?"ord":wc(qe(a.args[0])),ce=an.createBox(y,a.body,{type:ee});return a.caret&&(ce.caret=a.caret),a.bind(y,ce)}}),Ct(["ne","neq"],"",{createAtom:a=>new an(oe(ie({},a),{type:"mrel",body:[new Lu(oe(ie({},a),{body:"\uE020",align:"right",boxType:"rel"})),new an(oe(ie({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),Ct("rlap","{:auto}",{createAtom:a=>new Lu(oe(ie({},a),{body:qe(a.args[0]),align:"right"}))}),Ct("llap","{:auto}",{createAtom:a=>new Lu(oe(ie({},a),{body:qe(a.args[0]),align:"left"}))}),Ct("mathrlap","{:math}",{createAtom:a=>new Lu(oe(ie({},a),{body:qe(a.args[0]),align:"left"}))}),Ct("mathllap","{:math}",{createAtom:a=>new Lu(oe(ie({},a),{body:qe(a.args[0]),align:"left"}))}),Ct("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new Jo(oe(ie({},a),{body:qe(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return so("\\raisebox",(b=Ao(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),Ct("raise","{:value}{:auto}",{createAtom:a=>{var y;return new Jo(oe(ie({},a),{body:qe(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return so("\\raise",(b=Ao(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),Ct("lower","{:value}{:auto}",{createAtom:a=>{var y;return new Jo(oe(ie({},a),{body:qe(a.args[1]),padding:{dimension:0},offset:(y=nl(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,ee;return so("\\lower",(ee=Ao(nl((b=a.offset)!=null?b:{dimension:0},-1)))!=null?ee:"0pt",a.bodyToLatex(y))}}),Re("0123456789/@.?!"),ze(65,90),ze(97,122),Re([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Re([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Re([["\\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]]),Re([["\\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"),Re([["\\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"]]),Re([["\\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"]]),Re([["\\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"),Re([["+",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"),Re([["\\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"),Re([["\\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]]),Re([["=",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"),Re([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Re([["\\wp",8472],["\\aleph",8501]]),Re([["\\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"),Re([["\\ ",160],["~",160]],"space"),Ct(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new Wd(a)}),Ct("space","",{createAtom:a=>new Wd(a)}),Re([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Re([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Re([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var cm="<mo>⁡</mo>",eh="<mo>⁢</mo>";function th(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function po(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Mv(a,y,b){var ee,ce,_e,je,et,ot,gt,wt,jt,Vt,ar;let dr=!1;y=y!=null?y:a.atoms.length;let Zr="",Kn="",Hr=a.atoms[a.index];const fn=(ce=(ee=Hr.style)==null?void 0:ee.variant)!=null?ce:"",Yn=(je=(_e=Hr.style)==null?void 0:_e.variantStyle)!=null?je:"";let xn="";if(fn||Yn){const Ri=pt(Hr.value,(et=Hr.style)==null?void 0:et.variant,(ot=Hr.style)==null?void 0:ot.variantStyle);if(Ri!==Hr.value)return a.index+=1,Zr=`<mi${po(Hr.id,b)}>${Ri}</mi>`,Vc(Zr,a,b)||(a.mathML+=Zr,a.lastType="mi"),!0;xn=(gt={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"}[Yn+fn])!=null?gt:"",xn=` mathvariant="${xn}"`}const wi={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Hr.command==="!")return a.index+=1,Zr="<mo>!</mo>",Vc(Zr,a,b)||(a.mathML+=Zr,a.lastType="mo"),!0;if(wi[Hr.command]){a.index+=1;let Ri=`<mi${po(Hr.id,b)}${xn}>${wi[Hr.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(Ri=eh+Ri),Vc(Ri,a,b)||(a.mathML+=Ri,a.lastType="mi"),!0}if(Hr.command==="\\operatorname")Kn=wd(Hr.body),a.index+=1;else if(fn||Yn)for(;a.index<y&&(Hr.type==="mord"||Hr.type==="macro")&&!Hr.isDigit()&&fn===((jt=(wt=Hr.style)==null?void 0:wt.variant)!=null?jt:"")&&Yn===((ar=(Vt=Hr.style)==null?void 0:Vt.variantStyle)!=null?ar:"");)Kn+=wd([Hr]),a.index+=1,Hr=a.atoms[a.index];else(Hr.type==="mord"||Hr.type==="macro")&&!Hr.isDigit()&&(Kn+=wd([Hr]),a.index+=1);if(Kn.length>0){dr=!0,Zr=`<mi${xn}>${Kn}</mi>`;const Ri=a.lastType;Zr.endsWith(">f</mi>")||Zr.endsWith(">g</mi>")?(Zr+=cm,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(Zr)?"mo":"mi",Vc(Zr,a,b)||((Ri==="mi"||Ri==="mn"||Ri==="mtext"||Ri==="fence")&&(Zr=eh+Zr),a.mathML+=Zr)}return dr}function _v(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function kv(a){let y=-1,b=a.index,ee=!1,ce=!1;for(;b<a.atoms.length&&!ee&&!ce;){const _e=a.atoms[b];ee=!_e.isDigit(),ce=!ee&&_e.superscript!==void 0,b++}return ce&&(y=b-1),y}function Vc(a,y,b){var ee;let ce=y.atoms[y.index-1];if(!ce)return!1;if(!ce.superscript&&!ce.subscript)if(((ee=y.atoms[y.index])==null?void 0:ee.type)==="subsup")ce=y.atoms[y.index],y.index+=1;else return!1;const _e=y.lastType;y.lastType="";const je=Xa(ce.superscript,b);y.lastType="";const et=Xa(ce.subscript,b);if(y.lastType=_e,!je&&!et)return!1;let ot="";return je&&et?ot=`<msubsup>${a}${et}${je}</msubsup>`:je?ot=`<msup>${a}${je}</msup>`:et&&(ot=`<msub>${a}${et}</msub>`),y.mathML+=ot,y.lastType="",!0}function Tv(a,y,b){y=y!=null?y:a.atoms.length;const ee=a.index;let ce="";for(;a.index<y&&a.atoms[a.index].mode==="text";)ce+=a.atoms[a.index].value?a.atoms[a.index].value:" ",a.index+=1;return ce.length>0?(a.mathML+=`<mtext ${po(a.atoms[ee].id,b)}>${ce}</mtext>`,a.lastType="mtext",!0):!1}function Av(a,y,b){y=y!=null?y:a.atoms.length;const ee=a.index;let ce="",_e=kv(a);for(_e>=0&&_e<y&&(y=_e);a.index<y&&a.atoms[a.index].isDigit();)ce+=a.atoms[a.index].asDigit(),a.index+=1;return ce.length<=0?!1:(ce="<mn"+po(a.atoms[ee].id,b)+">"+ce+"</mn>",_e<0&&_v(a)&&(_e=a.index,a.index+=1),Vc(ce,a,b)||(a.mathML+=ce,a.lastType="mn"),!0)}function Ov(a,y,b){let ee=!1;y=y!=null?y:a.atoms.length;let ce="",_e="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let je=!1,et=0;const ot=a.index;let gt=-1,wt=ot+1;for(;wt<y&&!je;)a.atoms[wt].type==="mopen"?et+=1:a.atoms[wt].type==="mclose"&&(et-=1),et===-1&&(je=!0,gt=wt),wt+=1;je&&(ce="<mrow>",ce+=Zu(a.atoms[ot],b),ce+=Xa(a.atoms,b,ot+1,gt),ce+=Zu(a.atoms[gt],b),ce+="</mrow>",a.index=gt+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=eh),Vc(ce,a,b)&&(ee=!0,a.lastType="",ce=""),_e="fence")}return ce.length>0&&(ee=!0,a.mathML+=ce,a.lastType=_e),ee}function Dv(a,y,b){let ee=!1;y=y!=null?y:a.atoms.length;let ce="",_e="";const je=a.atoms[a.index];if(!je)return!1;const et={"\\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(et[je.command]){a.index+=1;const ot=`<mo${po(je.id,b)}>${et[je.command]}</mo>`;return Vc(ot,a,b)||(a.mathML+=ot,a.lastType="mo"),!0}if(a.index<y&&(je.type==="mbin"||je.type==="mrel"))ce+=Wh(a.atoms[a.index],b),a.index+=1,_e="mo";else if(a.index<y&&(je.type==="mop"||je.type==="operator"||je.type==="extensible-symbol")){if(je.subsupPlacement==="over-under"&&(je.superscript||je.subscript)){const ot=Zu(je,b);return je.superscript&&je.subscript?(ce+="<munderover>"+ot,ce+=Xa(je.subscript,b),ce+=Xa(je.superscript,b),ce+="</munderover>"):je.superscript?(ce+="<mover>"+ot,ce+=Xa(je.superscript,b),ce+="</mover>"):je.subscript&&(ce+="<munder>"+ot,ce+=Xa(je.subscript,b),ce+="</munder>"),a.mathML+=ce,a.lastType="mo",a.index+=1,!0}{const ot=a.atoms[a.index],gt=ot.value==="\\operatorname",wt=gt?'<mi class="MathML-Unit"'+po(ot.id,b)+">"+wd(ot.value)+"</mi>":Zu(ot,b);ce+=wt,!gt&&!/^<mo>(.*)<\/mo>$/.test(wt)?(ce+=cm,_e="applyfunction"):_e=gt?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ce)&&(ce=eh+ce),a.index+=1}return ce.length>0&&(ee=!0,Vc(ce,a,b)||(a.mathML+=ce,a.lastType=_e)),ee}function Xa(a,y,b,ee){y!=null||(y={});const ce={atoms:[],index:b!=null?b:0,mathML:"",lastType:""};if(typeof a=="number"||typeof a=="boolean")ce.mathML=a.toString();else if(typeof a=="string")ce.mathML=a;else if(a instanceof an)ce.mathML=Wh(a,y);else if(Array.isArray(a)){ce.atoms=a;let _e=0;for(ee=ee||(a?a.length:0);ce.index<ee;)if(Tv(ce,ee,y)||Av(ce,ee,y)||Mv(ce,ee,y)||Dv(ce,ee,y)||Ov(ce,ee,y))_e+=1;else if(ce.index<ee){let je=Wh(ce.atoms[ce.index],y);ce.lastType==="mn"&&je.length>0&&ce.atoms[ce.index].type==="genfrac"&&(je="<mo>⁤</mo>"+je),ce.atoms[ce.index].type==="genfrac"?ce.lastType="mfrac":ce.lastType="",ce.index+=1,Vc(je,ce,y)?_e+=1:je.length>0&&(ce.mathML+=je,_e+=1)}_e>1&&(ce.mathML="<mrow>"+ce.mathML+"</mrow>")}return ce.mathML}function Zu(a,y){let b="";const ee=wd(a.value);return ee&&(b="<mo"+po(a.id,y)+">"+ee+"</mo>"),b}function wd(a){if(!a)return"";if(typeof a=="string")return th(a);if(!Array.isArray(a)&&typeof a.body=="string")return th(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return th(y)}function Wh(a,y){var b,ee,ce,_e,je,et,ot,gt,wt,jt,Vt,ar,dr,Zr,Kn,Hr,fn,Yn,xn,wi,Ri,Ai;if(a.mode==="text")return`<mi${po(a.id,y)}>${a.value}</mi>`;const La={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"},co={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let ti="",Wl="",Lc,tc,Ms,Zl,hl,mo;const{command:qo}=a;if(a.command==="\\error")return`<merror${po(a.id,y)}>${Xa(a.body,y)}</merror>`;const _s={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Rc={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":ti=Xa(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(ti+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(ti+="<mo>"+(_s[a.leftDelim]||a.leftDelim)+"</mo>")),ti+="<mtable",a.colFormat){for(ti+=' columnalign="',Ms=0;Ms<a.colFormat.length;Ms++)a.colFormat[Ms].align&&(ti+={l:"left",c:"center",r:"right"}[a.colFormat[Ms].align]+" ");ti+='"'}for(ti+=">",tc=0;tc<a.array.length;tc++){for(ti+="<mtr>",Lc=0;Lc<a.array[tc].length;Lc++)ti+="<mtd>"+Xa(a.array[tc][Lc],y)+"</mtd>";ti+="</mtr>"}ti+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(ti+="<mo>"+(_s[a.leftDelim]||a.rightDelim)+"</mo>"),ti+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(ti+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(ti+="<mo"+po(a.id,y)+">"+(_s[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(ti+="<mfrac>",ti+=Xa(a.above,y)||"<mi> </mi>",ti+=Xa(a.below,y)||"<mi> </mi>",ti+="</mfrac>"):(ti+="<mtable"+po(a.id,y)+">",ti+="<mtr>"+Xa(a.above,y)+"</mtr>",ti+="<mtr>"+Xa(a.below,y)+"</mtr>",ti+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(ti+="<mo"+po(a.id,y)+">"+(_s[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(ti+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(ti+="<msqrt"+po(a.id,y)+">",ti+=Xa(a.body,y),ti+="</msqrt>"):(ti+="<mroot"+po(a.id,y)+">",ti+=Xa(a.body,y),ti+=Xa(a.above,y),ti+="</mroot>");break;case"leftright":const Bc=a,Nc=Bc.leftDelim;ti="<mrow>",Nc&&Nc!=="."&&(ti+=`<mo${po(a.id,y)}>${(b=_s[Nc])!=null?b:Nc}</mo>`),a.body&&(ti+=Xa(a.body,y));const jc=Bc.matchingRightDelim();jc&&jc!=="."&&(ti+=`<mo${po(a.id,y)}>${(ee=_s[jc])!=null?ee:jc}</mo>`),ti+="</mrow>";break;case"sizeddelim":case"delim":ti+=`<mo${po(a.id,y)}>${_s[a.value]||a.value}</mo>`;break;case"accent":ti+='<mover accent="true"'+po(a.id,y)+">",ti+=Xa(a.body,y),ti+="<mo>"+(Rc[qo]||a.accent)+"</mo>",ti+="</mover>";break;case"line":case"overlap":break;case"overunder":hl=a.above,Zl=a.below,(a.svgAbove||hl)&&(a.svgBelow||Zl)?mo=a.body:hl&&hl.length>0?(mo=a.body,(_e=(ce=a.body)==null?void 0:ce[0])!=null&&_e.below?(Zl=a.body[0].below,mo=a.body[0].body):((et=(je=a.body)==null?void 0:je[0])==null?void 0:et.type)==="first"&&((gt=(ot=a.body)==null?void 0:ot[1])!=null&>.below)&&(Zl=a.body[1].below,mo=a.body[1].body)):Zl&&Zl.length>0&&(mo=a.body,(jt=(wt=a.body)==null?void 0:wt[0])!=null&&jt.above?(hl=a.body[0].above,mo=a.body[0].body):((ar=(Vt=a.body)==null?void 0:Vt[0])==null?void 0:ar.type)==="first"&&((Zr=(dr=a.body)==null?void 0:dr[1])!=null&&Zr.above)&&(hl=a.body[1].overscript,mo=a.body[1].body)),(a.svgAbove||hl)&&(a.svgBelow||Zl)?(ti+=`<munderover ${po(a.id,y)}>`,ti+=(Kn=La[a.svgBody])!=null?Kn:Xa(mo,y),ti+=(Hr=La[a.svgBelow])!=null?Hr:Xa(Zl,y),ti+=(fn=La[a.svgAbove])!=null?fn:Xa(hl,y),ti+="</munderover>"):a.svgAbove||hl?(ti+=`<mover ${po(a.id,y)}>`+((Yn=La[a.svgBody])!=null?Yn:Xa(mo,y)),ti+=(xn=La[a.svgAbove])!=null?xn:Xa(hl,y),ti+="</mover>"):(a.svgBelow||Zl)&&(ti+=`<munder ${po(a.id,y)}>`+((wi=La[a.svgBody])!=null?wi:Xa(mo,y)),ti+=(Ri=La[a.svgBelow])!=null?Ri:Xa(Zl,y),ti+="</munder>");break;case"placeholder":ti+="?";break;case"mord":{ti=typeof a.value=="string"?a.value:qo,qo==="\\char"?ti="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":ti.length>0&&ti.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?ti="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?ti=a.value.charAt(0):(console.error("Did not expect this"),ti=""));const gc=/\d/.test(ti)?"mn":"mi";ti=`<${gc}${po(a.id,y)}>${th(ti)}</${gc}>`;break}case"mbin":case"mrel":case"minner":ti=Zu(a,y);break;case"mpunct":ti='<mo separator="true"'+po(a.id,y)+">"+qo+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(ti="<mo"+po(a.id,y)+">",ti+=qo==="\\operatorname"?a.body:qo||a.body,ti+="</mo>");break;case"box":ti='<menclose notation="box"',a.backgroundcolor&&(ti+=' mathbackground="'+a.backgroundcolor+'"'),ti+=po(a.id,y)+">"+Xa(a.body,y)+"</menclose>";break;case"spacing":ti+='<mspace width="'+((Ai=co[qo])!=null?Ai:0)+'em"/>';break;case"enclose":ti='<menclose notation="';for(const gc in a.notation)Object.prototype.hasOwnProperty.call(a.notation,gc)&&a.notation[gc]&&(ti+=Wl+gc,Wl=" ");ti+=po(a.id,y)+'">'+Xa(a.body,y)+"</menclose>";break;case"prompt":ti='<menclose notation="roundexbox""">'+Xa(a.body,y)+"</menclose>";break;case"space":ti+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":ti+=Zu(a,y);break;case"mclose":ti+=Zu(a,y);break;case"macro":{const gc=a.command+wd(a.macroArgs);gc&&(ti+=`<mo ${po(a.id,y)}>${gc}</mo>`)}break;case"latexgroup":ti+=Xa(a.body,y);break;case"latex":ti+="<mtext"+po(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":ti+=Xa(a.body,y);break;case"text":ti+=`<mtext ${po(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${po(a.id,y)} displaystyle="true">${Xa(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${po(a.id,y)} displaystyle="false">${Xa(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return ti}var Sd={"\\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"},Zh={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function Iv(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function of(a){let y=0;if(ne(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Pv(a){if(ne(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function um(a){let y="";if(ne(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Lv(a){return a?a.map(y=>y.value).join(""):""}function Aa(a,y){var b,ee,ce,_e,je;function et(wt){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(wt)?` <say-as interpret-as="character">${wt}</say-as>`:/[A-Z]/.test(wt)?`capital <say-as interpret-as="character">${wt.toLowerCase()}</say-as>`:wt:/[a-z]/.test(wt)?" '"+wt.toUpperCase()+"'":/[A-Z]/.test(wt)?" 'capital "+wt.toUpperCase()+"'":wt}function ot(wt){return"<emphasis>"+wt+"</emphasis>"}if(!y)return"";let gt="";if(ne(y)){let wt=!1,jt=!1;for(let Vt=0;Vt<y.length;Vt++)y[Vt].type!=="first"&&(y[Vt].mode!=="text"&&(jt=!1),Vt<y.length-2&&y[Vt].type==="mopen"&&y[Vt+2].type==="mclose"&&y[Vt+1].type==="mord"?(gt+=" of ",gt+=ot(Aa(a,y[Vt+1])),Vt+=2):y[Vt].mode==="text"?jt?gt+=(b=y[Vt].value)!=null?b:" ":(jt=!0,gt+=Aa("text",y[Vt])):y[Vt].isDigit()?wt?gt+=y[Vt].asDigit():(wt=!0,gt+=Aa(a,y[Vt])):(wt=!1,gt+=Aa(a,y[Vt])))}else if(y.mode==="text")y.id&&a==="math"&&(gt+='<mark name="'+y.id.toString()+'"/>'),gt+=y.value;else{y.id&&a==="math"&&(gt+='<mark name="'+y.id.toString()+'"/>');let wt="",jt="",Vt="",ar=!1;const{command:dr}=y;switch(dr){case"\\vec":return"vector "+Aa(a,y.body);case"\\acute":return Aa(a,y.body)+" acute";case"\\grave":return Aa(a,y.body)+" grave";case"\\dot":return"dot over"+Aa(a,y.body);case"\\ddot":return"double dot over"+Aa(a,y.body);case"\\mathring":return"ring over"+Aa(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Aa(a,y.body);case"\\bar":return Aa(a,y.body)+" bar";case"\\breve":return Aa(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Aa(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Aa(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Aa(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Aa(a,y.body)}switch(y.type){case"prompt":const Zr=y.body.length>1?'start input . <break time="500ms"/> '+Aa(a,y.body)+'. <break time="500ms"/> end input':"blank";gt+=' <break time="300ms"/> '+Zr+'. <break time="700ms"/>'+((ee=y.correctness)!=null?ee:"")+' . <break time="700ms"/> ';break;case"array":const Kn=y.array,Hr=y.environmentName;if(Object.keys(Zh).includes(Hr)){gt+=` begin ${Zh[Hr]} `;for(let xn=0;xn<Kn.length;xn++){xn>0&&(gt+=","),gt+=` row ${xn+1} `;for(let wi=0;wi<Kn[xn].length;wi++)wi>0&&(gt+=","),gt+=` column ${wi+1}: `,gt+=Aa("math",Kn[xn][wi])}gt+=` end ${Zh[Hr]} `}break;case"group":dr==="\\ne"?gt+=" not equal ":(dr==="\\not"&&(gt+=" not "),gt+=Aa("math",y.body));break;case"root":gt+=Aa("math",y.body);break;case"genfrac":if(wt=Aa("math",y.above),jt=Aa("math",y.below),of(y.above)&&of(y.below)){const wi={"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 "}[um(y.above)+"/"+um(y.below)];wi?gt=wi:gt+=wt+" over "+jt}else gt+=' the fraction <break time="150ms"/>'+wt+' over <break time="150ms"/>'+jt+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(Vt=Aa("math",y.body),y.hasEmptyBranch("above"))gt+=of(y.body)?" the square root of "+Vt+" , ":' the square root of <break time="200ms"/>'+Vt+'. <break time="200ms"/> End square root';else{let xn=Aa("math",y.above);xn=xn.trim();const wi=xn.replace(/<mark([^/]*)\/>/g,"");wi==="3"?gt+=' the cube root of <break time="200ms"/>'+Vt+'. <break time="200ms"/> End cube root':wi==="n"?gt+=' the nth root of <break time="200ms"/>'+Vt+'. <break time="200ms"/> End root':gt+=' the root with index: <break time="200ms"/>'+xn+', of <break time="200ms"/>'+Vt+'. <break time="200ms"/> End root'}break;case"leftright":{const xn=y;gt+=(ce=xn.leftDelim?Sd[xn.leftDelim]:void 0)!=null?ce:xn.leftDelim,gt+=Aa("math",y.body),gt+=(_e=xn.rightDelim?Sd[xn.rightDelim]:void 0)!=null?_e:xn.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const fn=dr.replace(/^\\/g,""),Yn=Bt()[fn];Yn&&(Yn!=null&&Yn.expand?gt+=Aa("math",y.body):gt+=`${fn} `);break;case"placeholder":gt+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(dr==="\\mathbin"||dr==="\\mathrel"||dr==="\\mathopen"||dr==="\\mathclose"||dr==="\\mathpunct"||dr==="\\mathord"||dr==="\\mathinner"){gt=Aa(a,y.body);break}let xn=y.isDigit()?y.asDigit():y.value,wi=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(wi=y.value,xn=wi),a==="text")gt+=xn;else{if(y.type==="mbin"&&(gt+='<break time="150ms"/>'),xn){const Ri=Sd[xn]||(wi?Sd[wi.trim()]:"");if(Ri)gt+=" "+Ri;else{const Ai=wi?Iv(wi.trim()):"";gt+=Ai||et(xn)}}else gt+=Aa("math",y.body);y.type==="mbin"&&(gt+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const xn=y.command;if(xn==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let wi=Aa("math",y.superscript);wi=wi.trim();let Ri=Aa("math",y.subscript);Ri=Ri.trim(),gt+=' the summation from <break time="200ms"/>'+Ri+'<break time="200ms"/> to <break time="200ms"/>'+wi+'<break time="200ms"/> of <break time="150ms"/>',ar=!0}else if(y.hasEmptyBranch("subscript"))gt+=" the summation of";else{let wi=Aa("math",y.subscript);wi=wi.trim(),gt+=' the summation from <break time="200ms"/>'+wi+'<break time="200ms"/> of <break time="150ms"/>',ar=!0}else if(xn==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let wi=Aa("math",y.superscript);wi=wi.trim();let Ri=Aa("math",y.subscript);Ri=Ri.trim(),gt+=' the product from <break time="200ms"/>'+Ri+'<break time="200ms"/> to <break time="200ms"/>'+wi+'<break time="200ms"/> of <break time="150ms"/>',ar=!0}else if(y.hasEmptyBranch("subscript"))gt+=" the product of ";else{let wi=Aa("math",y.subscript);wi=wi.trim(),gt+=' the product from <break time="200ms"/>'+wi+'<break time="200ms"/> of <break time="150ms"/>',ar=!0}else if(xn==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let wi=Aa("math",y.superscript);wi=wi.trim();let Ri=Aa("math",y.subscript);Ri=Ri.trim(),gt+=' the integral from <break time="200ms"/>'+ot(Ri)+'<break time="200ms"/> to <break time="200ms"/>'+ot(wi)+' <break time="200ms"/> of ',ar=!0}else gt+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const wi=(je=Sd[y.value])!=null?je:y.command?Sd[y.command]:void 0;gt+=wi||" "+y.value}else y.command&&(y.command==="\\mathop"?gt+=Aa("math",y.body):y.command==="\\operatorname"?gt+=Lv(y.body):gt+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":Vt=Aa("math",y.body),gt+=" crossed out "+Vt+". End crossed out.";break;case"space":case"spacing":break}if(!ar&&!y.hasEmptyBranch("superscript")){let Zr=Aa(a,y.superscript);Zr=Zr.trim();const Kn=Zr.replace(/<[^>]*>/g,"");if(of(y.superscript)){if(a==="math"){const Hr=Pv(y.superscript);Hr&&(gt+='<mark name="'+Hr+'"/>')}Kn==="\u2032"?gt+=" prime ":Kn==="2"?gt+=" squared ":Kn==="3"?gt+=" cubed ":Number.isNaN(Number.parseInt(Kn))?gt+=" to the "+Zr+"; ":gt+=' to the <say-as interpret-as="ordinal">'+Kn+"</say-as> power; "}else Number.isNaN(Number.parseInt(Kn))?gt+=" raised to the "+Zr+"; ":gt+=' raised to the <say-as interpret-as="ordinal">'+Kn+"</say-as> power; "}if(!ar&&!y.hasEmptyBranch("subscript")){let Zr=Aa("math",y.subscript);Zr=Zr.trim(),gt+=of(y.subscript)?" sub "+Zr:" subscript "+Zr+". End subscript. "}}return gt}function Cd(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ce=Xa(a);if(ce){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=oe(ie({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=oe(ie({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=oe(ie({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const _e=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&_e.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let je="";try{je=_e.toSpeech(ce)}catch(et){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",et)}return je}return""}let ee=Aa("math",a);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let ce="";window.MathfieldElement.speechEngineRate&&(ce='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),ee='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+ce+"<p><s>"+ee+"</s></p>"+(ce?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&xe()==="macos"?ee=ee.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,""):ee=ee.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return ee}var sf={"\\ne":"\u2260","\\neq":"\u2260","\u2212":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},lf={"\\pm":"+-","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrack":"[","\\rbrack":"]","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"(:","\\rangle":":)","\\sum":" sum ","\\prod":" prod ","\\bigcap":" nnn ","\\bigcup":" uuu ","\\int":" int ","\\oint":" oint ","\\ge":">=","\\le":"<=","\\ne":"!=","\\neq":"!=","\\lt":"<","\\gt":">","\\gets":"<-","\\to":"->","\\land":" and ","\\lor":" or ","\\lnot":" not ","\\forall":" AA ","\\exists":" EE ","\\in":" in ","\\notin":" !in ","\\mapsto":"|->","\\implies":"=>","\\iff":"<=>","\\cdot":"*","\\ast":"**","\\star":"***","\\times":"xx","\\div":"-:","\\ltimes":"|><","\\rtimes":"><|","\\bowtie":"|><|","\\circ":"@"};function Rv(a){let y="";for(const b of a){const ee=y[y.length-1];ee!==void 0&&/\d/.test(ee)&&/^\d/.test(b)&&(y+=" "),y+=b}return y}function Qo(a){var y,b,ee,ce,_e,je,et,ot,gt,wt,jt,Vt,ar;if(!a)return"";if(ne(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(Qo).join("");if(a[0].mode==="text"){let Yn=0,xn="";for(;((y=a[Yn])==null?void 0:y.mode)==="text";)xn+=a[Yn].body?Qo(a[Yn].body):a[Yn].value,Yn++;return`"${xn}" ${Qo(a.slice(Yn))}`}let Hr=0;const fn=[];for(;a[Hr]&&a[Hr].mode==="math";){let Yn="";for(;a[Hr]&&a[Hr].type==="mord"&&/\d/.test(a[Hr].value);)Yn+=a[Hr++].value;Yn?fn.push(Yn):fn.push(Qo(a[Hr++]))}return fn.push(Qo(a.slice(Hr))),Rv(fn)}if(a.mode==="text")return`"${a.value}"`;let dr="";const{command:Zr}=a;let Kn;if(Zr==="\\placeholder")return`(${Qo(a.body)})`;switch(a.type){case"accent":const Hr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Zr];dr=`${Hr!=null?Hr:""} ${Qo(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(Ai=>Ai.value).join("");case"group":case"root":dr=(b=sf[Zr])!=null?b:Qo(a.body);break;case"genfrac":{const Ai=a;(Ai.leftDelim||Ai.rightDelim)&&(dr=Ai.leftDelim==="."||!Ai.leftDelim?"{:":Ai.leftDelim),Ai.hasBarLine?(dr+="(",dr+=Qo(Ai.above),dr+=")/(",dr+=Qo(Ai.below),dr+=")"):(dr+="("+Qo(Ai.above)+"),",dr+="("+Qo(Ai.below)+")"),(Ai.leftDelim||Ai.rightDelim)&&(dr+=Ai.rightDelim==="."||!Ai.rightDelim?"{:":Ai.rightDelim)}break;case"surd":dr+=a.hasEmptyBranch("above")?"sqrt("+Qo(a.body)+")":"root("+Qo(a.above)+")("+Qo(a.body)+")";break;case"latex":dr=a.value;break;case"leftright":{const Ai=a,La=Ai.leftDelim;dr+=La==="."||!La?"{:":La,dr+=Qo(Ai.body);const co=Ai.matchingRightDelim();dr+=co==="."||!co?":}":co}break;case"sizeddelim":case"delim":dr=a.value;break;case"overlap":break;case"overunder":break;case"mord":dr=(ce=(ee=sf[Zr])!=null?ee:Zr)!=null?ce:typeof a.value=="string"?a.value:"",dr.startsWith("\\")&&(dr+=" "),Kn=Zr?Zr.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Kn?dr=String.fromCodePoint(Number.parseInt("0x"+Kn[1])):dr.length>0&&dr.startsWith("\\")&&(dr=typeof a.value=="string"?a.value.charAt(0):a.command),dr=Bv(dr,a.style);break;case"mbin":case"mrel":case"minner":dr=(je=(_e=sf[Zr])!=null?_e:lf[Zr])!=null?je:a.value;break;case"mopen":case"mclose":dr=a.value;break;case"mpunct":dr=(et=lf[Zr])!=null?et:Zr;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(lf[Zr]?dr=lf[Zr]:dr=Zr==="\\operatorname"?Qo(a.body):(ot=a.value)!=null?ot:Zr,dr+=" ");break;case"array":const fn=a.array,Yn=a.environmentName,xn=(gt={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Yn])!=null?gt:["(",")"],wi=[];for(const Ai of fn){const La=[];for(const co of Ai)La.push(xn[0]+Qo(co)+xn[1]);wi.push(La.join(","))}const Ri=(wt={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Yn])!=null?wt:["(",")"];dr=Ri[0]+wi.join(",")+Ri[1];break;case"box":break;case"spacing":dr=(jt=sf[Zr])!=null?jt:" ";break;case"enclose":dr="("+Qo(a.body)+")";break;case"space":dr=" ";break;case"subsup":dr="";break;case"macro":dr=(ar=(Vt=sf[Zr])!=null?Vt:lf[Zr])!=null?ar:Qo(a.body);break}if(!a.hasEmptyBranch("subscript")){dr+="_";const Hr=Qo(a.subscript);dr+=Hr.length!==1?`(${Hr})`:Hr}if(!a.hasEmptyBranch("superscript")){dr+="^";const Hr=Qo(a.superscript);dr+=Hr.length!==1?`(${Hr})`:Hr}return dr}function Bv(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 Es(a,y){var b,ee;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ce=new Da({from:oe(ie({},nd()),{renderPlaceholder:()=>new Fn(160,{maxFontSize:1}),letterShapeStyle:(ee=y==null?void 0:y.letterShapeStyle)!=null?ee:"tex"}),mathstyle:y.mathstyle}),je=new an({mode:"math",type:"root",body:Cs(a,{context:ce,parseMode:"math",mathstyle:y.mathstyle})}).render(ce);return je?(su(Zd(je,ce)),lu(je,{classes:"ML__latex"}).toMarkup()):""}function Ty(a){return rp(a,{context:nd()})}function Nv(a,y={}){return Xa(Cs(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function jv(a){const y=Cs(a,{parseMode:"math",mathstyle:"displaystyle"});return Cd(y)}var rh;function Fv(a){var y,b;if(!rh){const ee=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;ee?rh=new ee: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=rh==null?void 0:rh.box(a).latex)!=null?b:""}function Ay(a,y="math"){return Qo(new an({type:"root",body:Cs(a,{parseMode:y})}))}function Oy(a){return Pu(a,{format:"ascii-math"})[1]}function Uh(a){if(typeof a=="string"){const y=$v(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Kv(a):"a"in a?dm(a):a}function Ed(a){return a<0?0:a>255?255:Math.round(a)}function $v(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&typeof y.a=="undefined"&&(y.a=1),y}function Vh(a){const[y,b,ee]=[a.L,a.C,a.H],ce=ee*Math.PI/180,_e={L:y,a:b*Math.cos(ce),b:b*Math.sin(ce)};return a.alpha!==void 0&&(_e.alpha=a.alpha),_e}function zv(a){const[y,b,ee]=[a.L,a.a,a.b],ce=Math.sqrt(b*b+ee*ee),je=Math.atan2(ee,b)*180/Math.PI,et={L:y,C:ce,H:je};return a.alpha!==void 0&&(et.alpha=a.alpha),et}function Gh(a){const[y,b,ee]=[a.L,a.a,a.b],ce=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*ee,3),_e=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*ee,3),je=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*ee,3),et=4.076741661347994*ce-3.307711590408193*_e+.230969928729428*je,ot=-1.2684380040921763*ce+2.6097574006633715*_e-.3413193963102197*je,gt=-.004196086541837188*ce-.7034186144594493*_e+1.7076147009309444*je,wt=jt=>{const Vt=Math.abs(jt);return Vt<=.0031308?jt*12.92:(Math.sign(jt)||1)*(1.055*Math.pow(Vt,1/2.4)-.055)};return[wt(et),wt(ot),wt(gt)]}function Xh(a){const[y,b,ee]=a;return y>=0&&y<=1&&b>=0&&b<=1&&ee>=0&&ee<=1}function Yh(a,y){let[b,ee,ce]=a;return b=Ed(b*255),ee=Ed(ee*255),ce=Ed(ce*255),y!==void 0?{r:b,g:ee,b:ce,alpha:y}:{r:b,g:ee,b:ce}}function dm(a){let[y,b,ee]=Gh(a);if(Xh([y,b,ee]))return Yh([y,b,ee],a.alpha);const ce=zv(a);if(ce.C=0,[y,b,ee]=Gh(Vh(ce)),!Xh([y,b,ee]))return Yh([y,b,ee],a.alpha);let _e=0,je=a.L,et=(_e+je)/2;ce.C=et;const ot=.36/Math.pow(2,12);for(;je-_e>ot;)et=(_e+je)/2,ce.C=et,[y,b,ee]=Gh(Vh(ce)),Xh([y,b,ee])?_e=et:je=et;return Yh([y,b,ee],a.alpha)}function Kv(a){return dm(Vh(a))}function fm(a,y){const b=Uh(a),ee=Uh(y),ce=.56,_e=.57,je=.62,et=.65,ot=.022,gt=1.414,wt=.1,jt=5e-4,Vt=1.14,ar=.027,dr=1.14,Zr=.027;function Kn(Ai){return Ai>=ot?Ai:Ai+Fc(ot-Ai,gt)}function Hr(Ai){return(Ai<0?-1:1)*Math.pow(Math.abs(Ai),2.4)}const fn=Kn(Hr(ee.r/255)*.2126729+Hr(ee.g/255)*.7151522+Hr(ee.b/255)*.072175),Yn=Kn(Hr(b.r/255)*.2126729+Hr(b.g/255)*.7151522+Hr(b.b/255)*.072175);let xn,wi,Ri;return Math.abs(Yn-fn)<jt?wi=0:Yn>fn?(xn=Fc(Yn,ce)-Fc(fn,_e),wi=xn*Vt):(xn=Fc(Yn,et)-Fc(fn,je),wi=xn*dr),Math.abs(wi)<wt?Ri=0:wi>0?Ri=wi-Zr:Ri=wi+ar,Ri*100}function hm(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const ee=fm(a,b),ce=fm(a,y);return Math.abs(ee)>Math.abs(ce)?b:y}function Hv(a){const y=Uh(a);let b=((1<<24)+(Ed(y.r)<<16)+(Ed(y.g)<<8)+Ed(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 Eo(a){const y=pm(a);let b="";for(const ee of y){if(typeof ee.value!="string")return"";b+=ee.value}return b}function pm(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function Wv(a,y){const b=pm(a);if(b.length!==1)return!1;const ee=mh[y];return ee?!!ee.test(b[0].value):!1}function Zv(a,y){return Eo(a).length>0}function Uv(a){return[Jh(a,"double-struck","mathbb","tooltip.blackboard"),Jh(a,"fraktur","mathfrak","tooltip.fraktur"),Jh(a,"calligraphic","mathcal","tooltip.caligraphic"),Qh(a,"up","mathrm","tooltip.roman-upright"),Qh(a,"bold","mathbf","tooltip.bold"),Qh(a,"italic","mathit","tooltip.italic")]}function Vv(a){return[{label:()=>Es(`\\vec{${Eo(a)}}`),visible:()=>Eo(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Es(`\\overrightarrow{${Eo(a)}}`),visible:()=>Eo(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Es(`\\overleftarrow{${Eo(a)}}`),visible:()=>Eo(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Es(`\\dot{${Eo(a)}}`),visible:()=>Eo(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Es(`\\ddot{${Eo(a)}}`),visible:()=>Eo(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Es(`\\bar{${Eo(a)}}`),visible:()=>Eo(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Es(`\\overline{${Eo(a)}}`),visible:()=>Eo(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Es(`\\overgroup{${Eo(a)}}`),visible:()=>Eo(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Es(`\\overbrace{${Eo(a)}}`),visible:()=>Eo(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Es(`\\underline{${Eo(a)}}`),visible:()=>Eo(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Es(`\\undergroup{${Eo(a)}}`),visible:()=>Eo(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Es(`\\underbrace{${Eo(a)}}`),visible:()=>Eo(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Gv(a){return[{label:()=>Es(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Es(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Es(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Xv(a){const y=[];for(const b of Object.keys(Ne))y.push({class:(Hv(hm(Ne[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ne[b]} "></span>`,ariaLabel:()=>{var ee;return(ee=Me(b))!=null?ee:b},checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({backgroundColor:b}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({backgroundColor:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}function Yv(a){const y=[];for(const b of Object.keys(Te))y.push({class:(hm(Te[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Te[b]} "></span>`,ariaLabel:()=>{var ee;return(ee=Me(b))!=null?ee:b},checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({color:b}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({color:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}var Jv=class extends tm{constructor(a,y,b,ee){super(a,y),this.row=b,this.col=ee}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 Qv(a){const y=[];for(let b=1;b<=5;b++)for(let ee=1;ee<=5;ee++)y.push({onCreate:(ce,_e)=>new Jv(ce,_e,b,ee),label:"\u2610",tooltip:()=>Me("tooltip.row-by-col",b,ee),data:{row:b,col:ee},onMenuSelect:()=>{a.insert(`\\begin{pmatrix}${Array(b).fill(Array(ee).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return y}function qv(a){return[{label:()=>Me("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>Uu(a)},{label:()=>Me("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>Uu(a)},{label:()=>Me("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>Uu(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,ee]=ty(a);return b<y.maxColumns}},{label:()=>Me("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>Uu(a)},{type:"divider"},{label:()=>Me("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>Uu(a)},{label:()=>Me("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>Uu(a)},{type:"divider"},{label:()=>Me("menu.borders"),visible:()=>(ey(a)||Uu(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>cf(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>cf(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>cf(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>cf(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>cf(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>Me("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Qv(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>Me("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>Me("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{hd(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>Me("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{hd(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>Me("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>Me("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Uv(a),submenuClass:"variant-submenu"},{label:()=>Me("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Yv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>Me("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Xv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>Me("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Vv(a),submenuClass:"variant-submenu"},{label:()=>Me("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&Eo(a).length>0,submenu:Gv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>Me("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:()=>Me("menu.simplify"),id:"ce-simplify",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var y,b;if(a.model.selectionIsCollapsed){const ee=(y=a.expression)==null?void 0:y.simplify();if(a.model.position=a.model.lastOffset,!ee){a.model.announce("plonk");return}a.insert(`=${ee.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const ee=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection)).simplify();if(!ee){a.model.announce("plonk");return}a.insert(ee.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?Me("menu.solve-for",Es(b)):Me("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,ee=b==null?void 0:b.unknowns[0],ce=(y=b.solve(ee))==null?void 0:y.map(_e=>{var je;return(je=_e.simplify().latex)!=null?je:""});if(!ce){a.model.announce("plonk");return}a.insert(`${ee}=${ce.length===1?ce[0]:"\\left\\lbrace"+(ce==null?void 0:ce.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>Me("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>Me("menu.copy"),id:"copy",submenu:[{label:()=>Me("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>ta.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>Me("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>ta.copyToClipboard(a,"ascii-math")},{label:()=>Me("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>ta.copyToClipboard(a,"math-ml")}]},{label:()=>Me("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>Me("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function Uu(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function ey(a){return a.model.at(a.model.position).type==="array"}function ty(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((ee,ce)=>Math.max(ee,ce.length),0)]:[0,0]}function cf(a,y){Af(a),a.flushInlineShortcutBuffer(),Pp(a.model,y),Ko(a)}function ry(a){var y,b;let ee;if(a.model.selectionIsCollapsed?ee=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):ee=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!ee)return"";let ce=ee.evaluate();return ce.isSame(ee)&&(ce=ee.N()),ce.latex}function Jh(a,y,b,ee){return{label:()=>Es(`\\${b}{${Eo(a)}}`),tooltip:()=>{var ce;return(ce=Me(ee))!=null?ce:ee},visible:()=>Wv(a,y),checked:()=>{var ce;return{some:"mixed",all:!0}[(ce=a.queryStyle({variant:y}))!=null?ce:!1]},onMenuSelect:()=>{a.applyStyle({variant:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Qh(a,y,b,ee){return{label:()=>Es(`\\${b}{${Eo(a)}}`),tooltip:()=>{var ce;return(ce=Me(ee))!=null?ce:ee},visible:()=>Zv(a,y),checked:()=>{var ce;return{some:"mixed",all:!0}[(ce=a.queryStyle({variantStyle:y}))!=null?ce:!1]},onMenuSelect:()=>{a.applyStyle({variantStyle:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Md(a,y){return a+Cd(y)}kl({speak:(a,y,b)=>ny(a,y,b)},{target:"mathfield"});function ny(a,y,b){var ee,ce;b=b!=null?b:{withHighlighting:!1};const{model:_e}=a;function je(wt){let jt=null;switch(wt){case"all":jt=_e.root;break;case"selection":jt=_e.getAtoms(_e.selection);break;case"left":{jt=_e.getAtoms(_e.offsetOf(_e.at(_e.position).leftSibling),_e.position);break}case"right":{jt=_e.getAtoms(_e.position,_e.offsetOf(_e.at(_e.position).rightSibling));break}case"group":jt=_e.getAtoms(_e.getSiblingsRange(_e.position));break;case"parent":{const{parent:Vt}=_e.at(_e.position);Vt!=null&&Vt.parent?jt=Vt:jt=_e.root;break}default:jt=_e.root}return jt}function et(wt){let jt="";switch(wt){case"all":console.log("Internal failure: speak all failed");break;case"selection":jt="no selection";break;case"left":jt="at start";break;case"right":jt="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":jt="no parent";break;default:console.log('unknown speak_ param value: "'+wt+'"');break}return jt}const ot=je(y);if(ot===null)return(ce=(ee=window.MathfieldElement).speakHook)==null||ce.call(ee,et(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const gt=Cd(ot);return ue()&&b.withHighlighting?(yu().readAloudMathfield=a,Nu(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,gt)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(gt),!1}function iy(a){var y,b;if(!ue()){console.log("Speak:",a);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const ee=new SpeechSynthesisUtterance(a);window.speechSynthesis.speak(ee)}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 ee=new window.AWS.Polly({apiVersion:"2016-06-10"}),ce={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"};ee.synthesizeSpeech(ce,(_e,je)=>{if(_e)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${_e}`);else if(je!=null&&je.AudioStream){const et=new Uint8Array(je.AudioStream),ot=new Blob([et.buffer],{type:"audio/mpeg"}),gt=URL.createObjectURL(ot);new Audio(gt).play().catch(jt=>console.log(jt))}else console.log("polly.synthesizeSpeech():",je)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function mm(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 ay(a,y,b,ee){let ce="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ce=Md("deleted: ",ee);else if(y==="focus"||y.includes("move"))ce=oy(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+sy(a.model);else if(y==="replacement")ce=Md("",a.model.at(a.model.position));else if(y==="line"){const _e=Md("",a.model.root);a.keyboardDelegate.setAriaLabel(_e)}else ce=ee?Md(y+" ",ee):y;if(ce){const _e=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ce+_e}}function oy(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let ee="",ce=b.parent;const _e=a.at(a.position).parent;for(;ce!==a.root&&ce!==_e;)ee+=`out of ${mm(ce)};`,ce=ce.parent;return ee}function sy(a){if(!a.selectionIsCollapsed)return Md("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),ee=mm(b);return b.isFirstSibling&&(y=(ee?"start of "+ee:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=ee?"end of "+ee:"unknown"):y+=Md("",b),y}var ly=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 ee=this.silenceNotifications;this.silenceNotifications=(b=y==null?void 0:y.silenceNotifications)!=null?b:!0;let ce={};if((y==null?void 0:y.type)==="undo"&&(ce={inputType:"historyUndo"}),(y==null?void 0:y.type)==="redo"&&(ce={inputType:"historyRedo"}),this.contentWillChange(ce)){const _e=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=pu(a.content),this.selection=a.selection,this.silenceNotifications=_e,this.contentDidChange(ce)}this.silenceNotifications=ee}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,ee,ce;const _e=this.normalizeSelection(a,y);if(_e===void 0)throw new TypeError("Invalid selection");if(_e.ranges.length===1&&_e.ranges[0][0]===_e.ranges[0][1]){const wt=_e.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(wt))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((ee=this.at(wt-1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(wt-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ce=this.at(wt+1))!=null&&ce.parentPrompt){this._anchor=this.normalizeOffset(wt+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=wt,this._position=wt,this._selection=_e;return}const je=ws(_e);_e.direction==="backward"?[this._position,this._anchor]=je:[this._anchor,this._position]=je;const et=this.at(je[0]+1),ot=this.at(je[1]),gt=an.commonAncestor(et,ot);(gt==null?void 0:gt.type)==="array"&&et.parent===gt&&ot.parent===gt?this._selection={ranges:[je],direction:_e.direction}:this._selection={ranges:[je],direction:_e.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 Ps&&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 ee=y.parent.branch(y.parentBranch);return[this.offsetOf(ee[0]),this.offsetOf(ee[ee.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 ee=b!=null?b:{};if(ad(a)){if(ee=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((gt,wt)=>[...gt,...this.getAtoms(wt,ee)],[]);a=a.ranges[0]}let ce,_e;if(Cc(a)){if(ce=a,!Cc(y))return[];_e=y}else[ce,_e]=a,ee=y!=null?y:{};if(!Number.isFinite(ce))return[];ee.includeChildren===void 0&&(ee.includeChildren=!1),ce<0&&(ce=this.lastOffset-ce+1),_e<0&&(_e=this.lastOffset-_e+1);const je=Math.min(ce,_e)+1,et=Math.max(ce,_e);if(!ee.includeChildren&&je===1&&et===this.lastOffset)return[this.root];let ot=[];for(let gt=je;gt<=et;gt++){const wt=this.atoms[gt];gm(this,wt,je,et)&&ot.push(wt)}return ee.includeChildren||(ot=ot.filter(gt=>{let wt=!1,{parent:jt}=gt;for(;jt&&!wt;)wt=gm(this,jt,je,et),jt=jt.parent;return!wt})),ot}getAllAtoms(a=0){const y=[],b=this.lastOffset;for(let ee=a;ee<=b;ee++)y.push(this.atoms[ee]);for(let ee=0;ee<a;ee++)y.push(this.atoms[ee]);return y}findAtom(a,y=0,b="forward"){let ee;const ce=this.lastOffset;if(b==="forward"){for(let _e=y;_e<=ce;_e++)if(ee=this.atoms[_e],a(ee))return ee;for(let _e=0;_e<y;_e++)if(ee=this.atoms[_e],a(ee))return ee;return}for(let _e=y;_e>=0;_e--)if(ee=this.atoms[_e],a(ee))return ee;for(let _e=ce;_e>y;_e--)if(ee=this.atoms[_e],a(ee))return ee}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 an({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 an.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 Xa(a);if(b==="spoken")return Cd(a);if(b==="spoken-text"){const ee=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ce=Cd(a);return window.MathfieldElement.textToSpeechMarkup=ee,ce}if(b==="spoken-ssml"||b==="spoken-ssml-with-highlighting"){const ee=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const ce=Cd(a);return window.MathfieldElement.textToSpeechMarkup=ee,ce}return b==="ascii-math"?Qo(a):(console.error(`MathLive 0.98.5: Unexpected format "${b}`),"")}getValue(a,y,b){if(a===void 0)return this.atomToString(this.root,"latex");if(typeof a=="string"&&a!=="math-json")return this.atomToString(this.root,a);let ee,ce;if(Cc(a)&&Cc(y)?(ee=[this.normalizeRange([a,y])],ce=b):id(a)?(ee=[this.normalizeRange(a)],ce=y):ad(a)?(ee=a.ranges,ce=y):(ee=[this.normalizeRange([0,-1])],ce=a),ce!=null||(ce="latex"),ce==="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 _e=this.getValue({ranges:ee},"latex-unstyled");try{const je=window.MathfieldElement.computeEngine.parse(_e);return JSON.stringify(je.json)}catch(je){return JSON.stringify(["Error",`'${je.toString()}'`])}}if(ce.startsWith("latex")){const _e={expandMacro:ce==="latex-expanded",skipStyles:ce==="latex-unstyled",skipPlaceholders:ce==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return ya(ee.map(je=>an.serialize(this.getAtoms(je),_e)))}return ee.map(_e=>this.getAtoms(_e).map(je=>this.atomToString(je,ce)).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[ee,ce]=b,{parent:_e}=this.at(ce);if(_e&&(_e.type==="genfrac"||_e.type==="subsup"))for(;_e!==this.root&&qh(this,_e,[ee,ce]);)ce=this.offsetOf(_e),_e=_e.parent;for(_e=this.at(ee).parent;_e!==this.root&&qh(this,_e,[ee,ce]);)ee=this.offsetOf(_e.leftSibling),_e=_e.parent;if(_e=this.at(ce).parent,(_e==null?void 0:_e.type)==="genfrac")for(;_e!==this.root&&qh(this,_e,[ee,ce]);)ce=this.offsetOf(_e),console.assert(ce>=0),_e=_e.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[ee,ce]],direction:"none"}})}announce(a,y,b=[]){var ee,ce;((ce=(ee=this.mathfield.host)==null?void 0:ee.dispatchEvent(new CustomEvent("announce",{detail:{command:a,previousPosition:y,atoms:b},cancelable:!0,bubbles:!0,composed:!0})))!=null?ce:!0)&&ay(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,ee=this._anchor,ce=this._position,_e=this.silenceNotifications;this.silenceNotifications=!0;const je=this.root.changeCounter;y();const et=this.root.changeCounter!==je,ot=ee!==this._anchor||ce!==this._position||Iu(this._selection,b)==="different";return this.silenceNotifications=_e,a.content&&et&&this.contentDidChange({inputType:a.type}),a.selection&&ot&&this.selectionDidChange(),et||ot}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 ee;if(Cc(a)){const ce=this.normalizeOffset(a);if(Cc(y)){const _e=this.normalizeOffset(y);ee=ce<=_e?{ranges:[[ce,_e]],direction:"none"}:{ranges:[[_e,ce]],direction:"backward"}}else ee={ranges:[[ce,ce]],direction:"none"}}else if(id(a)){const ce=this.normalizeOffset(a[0]),_e=this.normalizeOffset(a[1]);ee=ce<=_e?{ranges:[[ce,_e]],direction:"none"}:{ranges:[[_e,ce]],direction:"backward"}}else ad(a)&&(ee={ranges:a.ranges.map(ce=>this.normalizeRange(ce)),direction:(b=a.direction)!=null?b:"none"});return console.assert(ee!==void 0),ee}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(Dc(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",oe(ie({},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(Dc(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function gm(a,y,b,ee){const ce=a.offsetOf(y);if(ce<b||ce>ee)return!1;if(!y.hasChildren)return!0;const _e=a.offsetOf(y.firstChild);if(_e>=b&&_e<=ee){const je=a.offsetOf(y.lastChild);if(je>=b&&je<=ee)return!0}return!1}function qh(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[ee,ce]=b,_e=a.offsetOf(y.firstChild),je=a.offsetOf(y.lastChild);return _e>=ee&&_e<=ce&&je>=_e&&je<=ce}function uf(a,y,b,ee){var ce,_e,je,et,ot,gt;const wt=b.parent;if(wt&&b instanceof Ga){const jt=!ee&&y==="forward"||ee==="body"&&y==="backward";let Vt=jt?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return jt?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(wt.addChildrenAfter(b.removeBranch("body"),b),wt.removeChild(b),Vt--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(wt.addChildrenAfter(b.removeBranch("body"),b),wt.removeChild(b),Vt--),a.position=Vt,!0}if(wt&&b.type==="surd"){if(y==="forward"&&!ee||y==="backward"&&ee==="body"){const jt=b.leftSibling;b.hasChildren&&wt.addChildrenAfter(b.removeBranch("body"),b),wt.removeChild(b),a.position=a.offsetOf(jt)}else y==="forward"&&ee==="body"?a.position=a.offsetOf(b):!ee&&y==="backward"?b.hasChildren?a.position=a.offsetOf(b.lastChild):(a.position=Math.max(0,a.offsetOf(b)-1),wt.removeChild(b)):ee==="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(wt&&(b.type==="box"||b.type==="enclose")){const jt=ee&&y==="backward"||!ee&&y==="forward"?b.leftSibling:b.lastChild;return wt.addChildrenAfter(b.removeBranch("body"),b),wt.removeChild(b),a.position=a.offsetOf(jt),!0}if(b.type==="genfrac"||b.type==="overunder"){if(!ee)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 jt=df.fractionNavigationOrder==="numerator-denominator"?"above":"below",Vt=jt==="above"?"below":"above";if(wt&&(y==="forward"&&ee===jt||y==="backward"&&ee===Vt)){const ar=b.removeBranch(jt),dr=b.removeBranch(Vt);return wt.addChildrenAfter([...ar,...dr],b),wt.removeChild(b),a.position=a.offsetOf(ar.length>0?ar[ar.length-1]:dr[0]),!0}return y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b),!0}if(b.isExtensibleSymbol||b.type==="subsup"){if(!ee&&y==="forward")return!1;if(!ee){if(b.subscript||b.superscript){const jt=y==="forward"?(je=(ce=b.superscript)==null?void 0:ce[0])!=null?je:(_e=b.subscript)==null?void 0:_e[0]:(gt=(et=b.subscript)==null?void 0:et[0].lastSibling)!=null?gt:(ot=b.superscript)==null?void 0:ot[0].lastSibling;return jt&&(a.position=a.offsetOf(jt)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const jt=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=jt,!0}if(ee==="superscript")if(y==="backward"){const jt=a.offsetOf(b.firstChild)-1;console.assert(jt>=0),a.position=jt}else b.subscript?a.position=a.offsetOf(b.subscript[0]):a.position=a.offsetOf(b);else ee==="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(ee&&b.hasEmptyBranch(ee)&&(b.removeBranch(ee),b.type==="subsup"&&!b.subscript&&!b.superscript)){const jt=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=jt}return!0}if((wt==null?void 0:wt.type)==="genfrac"&&!ee&&b.type!=="first"){let jt=a.offsetOf(b.leftSibling);return wt.removeChild(b),wt.hasEmptyBranch("above")&&wt.hasEmptyBranch("below")?(jt=a.offsetOf(wt.leftSibling),wt.parent.removeChild(wt),a.announce("delete",void 0,[wt]),a.position=jt,!0):(a.announce("delete",void 0,[b]),a.position=jt,!0)}if(y==="backward"&&((wt==null?void 0:wt.command)==="\\ln"||(wt==null?void 0:wt.command)==="\\log")&&b.parentBranch!=="body"){const jt=a.offsetOf(wt.leftSibling);return wt.parent.removeChild(wt),a.announce("delete",void 0,[wt]),a.position=jt,!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&&uf(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(uf(a,"backward",y.parent,y.parentBranch))return;y=null}if(!y){a.announce("plonk");return}a.position=a.offsetOf(y.leftSibling),y.parent.removeChild(y),a.announce("delete",void 0,[y])}}):Pc(a,ws(a.selection),"deleteContentBackward")}function uy(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentForward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var y,b;let ee=a.at(a.position).rightSibling;if(ee&&uf(a,"forward",ee))return;if(ee){if(a.at(a.position).isLastSibling&&uf(a,"forward",ee.parent,ee.parentBranch))return}else{if(ee=a.at(a.position),ee.isLastSibling&&uf(a,"forward",ee.parent,ee.parentBranch))return;ee=void 0}if(a.position===a.lastOffset||!ee){a.announce("plonk");return}ee.parent.removeChild(ee);let ce=(y=a.at(a.position))==null?void 0:y.rightSibling;for(;(ce==null?void 0:ce.type)==="subsup";)ce.parent.removeChild(ce),ce=(b=a.at(a.position))==null?void 0:b.rightSibling;a.announce("delete",void 0,[ee])}):Pc(a,ws(a.selection),"deleteContentForward")}function Pc(a,y,b){const ee=a.getAtoms(y);if(ee.length>0&&ee[0].parent){let ce=ee[0].parent.firstChild;ce.type==="first"&&(ce=ce.rightSibling);const _e=ee[ee.length-1].parent.lastChild;let je=ee[0];je.type==="first"&&(je=je.rightSibling);const et=ee[ee.length-1];if(je===ce&&et===_e){const ot=ee[0].parent;ot.parent&&ot.type!=="prompt"&&(y=[a.offsetOf(ot.leftSibling),a.offsetOf(ot)])}if(ee.length===1&&ee[0].type==="placeholder"&&ee[0].parent.type==="genfrac"){const ot=ee[0].parent,gt=ee[0].parentBranch==="below"?"above":"below",wt=a.offsetOf(ot.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var jt,Vt;const ar=ot.removeBranch(gt);if(ar.length===1&&ar[0].type==="placeholder")(Vt=ot.parent)==null||Vt.removeChild(ot),a.position=Math.max(0,wt);else{const dr=ot.parent.addChildrenAfter(ar,ot);(jt=ot.parent)==null||jt.removeChild(ot),a.position=a.offsetOf(dr)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}kl({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Pc(a,[0,-1],"deleteContent"),deleteForward:a=>uy(a),deleteBackward:a=>cy(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Pc(a,[a.anchor,Th(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Pc(a,[a.anchor,Th(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Pc(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Pc(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Pc(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Pc(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var dy=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${Me("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>`,fy=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${Me("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>`,hy=class{constructor(a,y){this.focusBlurInProgress=!1;var b,ee,ce;this.options=ie(oe(ie({},$f()),{macros:Bt(),registers:Jl()}),Ff(y)),this.eventController=new AbortController;const _e=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 je=(ee=(b=y.value)!=null?b:this.element.textContent)!=null?ee:"";je=je.trim();const et=Op(this.options),ot=new an({type:"root",mode:et,body:Cs(je,{context:this.context})});this.model=new ly(this,et,ot),this.undoManager=new jg(this.model);const gt=[];if(gt.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>"),gt.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),gt.push("<span part=content class=ML__content>"),gt.push(Sp(this)),gt.push("</span>"),window.mathVirtualKeyboard&&(gt.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">`),gt.push(dy),gt.push("</div>")),gt.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),gt.push(fy),gt.push("</div>"),gt.push("</span>"),gt.push("<span class=ML__sr-only>"),gt.push("<span role=status aria-live=assertive aria-atomic=true></span>"),gt.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(gt.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=be.subscribe(()=>be.update(this.element)),be.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",jt=>jt.stopImmediatePropagation(),{capture:!1,signal:_e}),this.field.addEventListener("wheel",this,{passive:!1,signal:_e}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:_e}):this.field.addEventListener("mousedown",this,{signal:_e}),(ce=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||ce.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(Dc(this)))},{signal:_e}),this._menu=new Cv(qv(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:_e});const wt=this.element.querySelector("[part=menu-toggle]");wt==null||wt.addEventListener("pointerdown",jt=>{if(jt.currentTarget!==wt||this._menu.state!=="closed")return;this.element.classList.add("tracking");const Vt=wt.getBoundingClientRect();this._menu.modifiers=Bu(jt),this._menu.show({target:wt,location:{x:Vt.left,y:Vt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),jt.preventDefault(),jt.stopPropagation()},{signal:_e}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(wt.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=H0(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:_e}),document.addEventListener("scroll",this,{signal:_e}),this.resizeObserver=new ResizeObserver(()=>Ko(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:_e}),Gd&&!be.locale.startsWith(Gd.locale)&&F0(be.locale),Hl!=="ready"&&document.fonts.ready.then(()=>Lf(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(Dc(this)),Qf(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,Fh())}showMenu(a){var y,b;const ee=(b=(y=a==null?void 0:a.location)!=null?y:_c(this.field))!=null?b:void 0,ce=a==null?void 0:a.modifiers,_e=this.element.querySelector("[part=container]");return this._menu.show({target:_e,location:ee,modifiers:ce})}get colorMap(){return a=>{var y,b,ee;return(ee=(b=(y=this.options).colorMap)==null?void 0:b.call(y,a))!=null?ee:Pe(a)}}get backgroundColorMap(){return a=>{var y,b,ee,ce,_e,je;return(je=(_e=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?_e:(ce=(ee=this.options).colorMap)==null?void 0:ce.call(ee,a))!=null?je: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=an.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=ie({},a[0].style);for(const b of a)for(const[ee,ce]of Object.entries(b.style))y[ee]!==ce&&delete y[ee];return y}queryStyle(a){const y=Lh(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 ot of Object.keys(y)){const gt=this.queryStyle({[ot]:y[ot]});if(gt==="none")return"none";if(gt==="some")return"some"}return"all"}const ee=Object.keys(y)[0],ce=y[ee];if(this.model.selectionIsCollapsed)return this.effectiveStyle[ee]===ce?"all":"none";const _e=this.model.getAtoms(this.model.selection,{includeChildren:!0});let je=_e.length;if(je===0)return"none";let et=0;for(const ot of _e){if(ot.type==="first"){je-=1;continue}ot.style[ee]===ce&&(et+=1)}return et===0?"none":et===je?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,ee]=G0(this.options.keybindings,(a=Xd())!=null?a:$0());return((y=Xd())==null?void 0:y.score)>0&&(this._keybindings=b,ee.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",ee)),b}get menu(){return this._menu}setOptions(a){var y;this.options=ie(ie({},this.options),Ff(a)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let b=this.options.defaultMode;b==="inline-math"&&(b="math"),((y=this.model.root.firstChild)==null?void 0:y.mode)!==b&&(this.model.root.firstChild.mode=b),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const ee=an.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==ee)&&ta.insert(this.model,ee,{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)&&Ko(this)}getOptions(a){return Fu(this.options,a)}getOption(a){return Fu(this.options,a)}handleEvent(a){return bu(this,null,function*(){var y;if($l(this)){if(Eh(a)){if(!$d(a.origin,(y=this.options.originValidator)!=null?y:"none"))throw new DOMException(`Message from unknown origin (${a.origin}) cannot be handled`,"SecurityError");const{action:b}=a.data;if(b==="execute-command"){const ee=a.data.command;if(md(ee)==="virtual-keyboard")return;this.executeCommand(ee)}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"&&Zp(this,a);break;case"pointerdown":this.userSelect!=="none"&&(Zp(this,a),a.shiftKey===!1&&(yield am(a,this.element.querySelector("[part=container]"),this._menu))&&Gf.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield am(a,this.element.querySelector("[part=container]"),this._menu))&&Gf.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&Qf(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>$l(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>$l(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!$l(this))return;be.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,Xg(),eg(),gv()}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 md(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Dc(this))),!1):sg(this,a)}get errors(){return rp(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=oh(this.model,this.model.position))!=null?b:"math");const ee=this.undoManager.canUndo();ta.insert(this.model,a,y)&&(Ko(this),ee||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 ee=window.mathVirtualKeyboard.boundingRect,ce=this.host.getBoundingClientRect();ce.bottom>ee.top&&((a=window.document.scrollingElement)==null||a.scrollBy(0,ce.bottom-ee.top+8))}}this.dirty&&Nu(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=_c(this.field);else{const ee=Fd(this);if(ee.length>0){let ce=-1/0,_e=-1/0;for(const je of ee)je.right>ce&&(ce=je.right),je.top<_e&&(_e=je.top);b={x:ce+y.left-this.field.scrollLeft,y:_e+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const ee=this.host.getBoundingClientRect(),ce=b.y;let _e=this.host.scrollTop;ce<ee.top?_e=ce-ee.top+this.host.scrollTop:ce>ee.bottom&&(_e=ce-ee.bottom+this.host.scrollTop+b.height),this.host.scroll({top:_e,left:0})}if(b){const ee=b.x-window.scrollX;let ce=this.field.scrollLeft;ee<y.left?ce=ee-y.left+this.field.scrollLeft-20:ee>y.right&&(ce=ee-y.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:ce})}}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&&he()&&navigator.vibrate(Cp),window.MathfieldElement.playSound("keypress")),a==="\\\\"?Dp(this.model):a==="&"?Ip(this.model):this.model.selectionIsCollapsed?ta.insert(this.model,a,ie({style:this.model.at(this.model.position).computedStyle},y)):ta.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Ko(this),y.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(a,y="",b=""){var ee;if(this.model.mode===a||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const ce=this.model.mode;if(this.model.mode=a,!((ee=this.host)!=null&&ee.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=ce;return}const _e=this.model.mode,{model:je}=this;je.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let et=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const ot=Cs(y,{context:this.context,parseMode:a});je.collapseSelection("forward");const gt=je.at(je.position);je.position=je.offsetOf(gt.parent.addChildrenAfter(ot,gt)),et=!0}if(this.model.mode=a,a==="latex"){let ot=je.selectionIsCollapsed;hd(this,"accept");let gt,wt=je.at(je.position);if(ot)gt="\\";else{const Vt=ws(je.selection);gt=this.model.getValue(Vt,"latex");const ar=this.model.extractAtoms(Vt);ar.length===1&&ar[0].type==="placeholder"&&(gt=y,ot=!0),wt=je.at(Vt[0])}const jt=new Kd(gt);wt.parent.addChildAfter(jt,wt),ot?je.position=je.offsetOf(jt.lastChild):je.setSelection(je.offsetOf(jt.firstChild),je.offsetOf(jt.lastChild))}else Yd(je).forEach(ot=>{ot.isError=!1});if(b){const ot=Cs(b,{context:this.context,parseMode:_e});je.collapseSelection("forward");const gt=je.at(je.position);je.position=je.offsetOf(gt.parent.addChildrenAfter(ot,gt)),et=!0}return Ko(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),et}),this.model.mode=a,window.mathVirtualKeyboard.update(Dc(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,ee;const ce={operation:"set",silenceNotifications:!1};id(y)?ce.range=y:(y.operation==="toggle"&&(ce.operation="toggle"),ce.range=y.range,ce.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const _e=Lh(this,a),je=(ee=ce.operation)!=null?ee:"set";if(ce.range===void 0&&this.model.selectionIsCollapsed){if(je==="set"){this.defaultStyle=ie(ie({},this.defaultStyle),_e);return}const et=ie({},this.defaultStyle);for(const ot of Object.keys(_e))et[ot]===_e[ot]?(ot==="color"&&delete et.verbatimColor,ot==="backgroundColor"&&delete et.verbatimBackgroundColor,delete et[ot]):et[ot]=_e[ot];this.defaultStyle=et;return}this.model.deferNotifications({content:!ce.silenceNotifications,type:"insertText"},()=>{if(ce.range===void 0)for(const et of this.model.selection.ranges)_h(this.model,et,_e,{operation:je});else _h(this.model,ce.range,_e,{operation:je})}),Ko(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=_c(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=af(this,a,y,{bias:0});if(b<0)return!1;const ee=this.model.position;return this.model.position=b,this.model.announce("move",ee),Ko(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 ee=this.model.offsetOf(b.firstChild),ce=this.model.offsetOf(b.lastChild);return this.model.getValue(ee,ce,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 ee=this.getPrompt(a);if(!ee){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}const ce=this.model.getBranchRange(this.model.offsetOf(ee),"body");this.model.setSelection(ce),this.insert(y,oe(ie({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Ko(this)}setPromptState(a,y,b){const ee=this.getPrompt(a);if(!ee){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}y==="undefined"?ee.correctness=void 0:typeof y=="string"&&(ee.correctness=y),typeof b=="boolean"&&(ee.locked=b,ee.captureSelection=b),Ko(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(Dc(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(Dc(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(Dc(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 ee=b.at(b.position),ce=(a=ee.mode)!=null?a:Op(this.options);this.model.mode!==ce&&(this.model.mode==="latex"?(hd(this,"accept",{mode:ce}),b.position=b.offsetOf(ee)):this.switchMode(ce))}(y=this.host)==null||y.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Dc(this)),Qf(this)}onContentWillChange(a){var y,b,ee;return(ee=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",oe(ie({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?ee:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),Nu(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="",pd(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})),Ko(this),this.focusBlurInProgress=!1,Fh();const ee=new AbortController,ce=ee.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{$l(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ce})},{once:!0,signal:ce}),setTimeout(()=>ee.abort(),100)}onInput(a){Dh(this,a)}onKeystroke(a){return Kp(this,a)}onCompositionStart(a){this.model.deleteAtoms(ws(this.model.selection));const y=_c(this.field);y&&requestAnimationFrame(()=>{Nu(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Ag(this.model,a),Ko(this)}onCompositionEnd(a){Og(this.model),Dh(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),ta.onCopy(this,a),Pc(this.model,ws(this.model.selection),"deleteByCut"),this.snapshot("cut"),Ko(this))}onCopy(a){ta.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=ta.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(),Df(this),Qf(this)}onWheel(a){const y=5*a.deltaX;if(!Number.isFinite(y)||y===0)return;const b=this.field;y<0&&b.scrollLeft===0||y>0&&b.offsetWidth+b.scrollLeft>=b.scrollWidth||(b.scrollBy({top:0,left:y}),a.preventDefault(),a.stopPropagation())}getHTMLElement(a){let y=a;for(;!y.id&&y.hasChildren;)y=a.children[0];return this.field.querySelector(`[data-atom-id="${y.id}"]`)}get context(){var a,y;return{registers:(a=this.options.registers)!=null?a:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:(y=this.options.placeholderSymbol)!=null?y:"\u25A2",colorMap:b=>this.colorMap(b),backgroundColorMap:b=>this.backgroundColorMap(b),getMacro:b=>Ft(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function vm(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)vm(y)}function ep(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(ee=>{ee instanceof HTMLElement&&ep(ee)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(ee=>{ee instanceof HTMLElement&&ep(ee,y)})))}function py(a,y){var b;if(!ue())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 ee=new window.AWS.Polly({apiVersion:"2016-06-10"}),ce={OutputFormat:"json",VoiceId:(b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna",Engine:"standard",Text:y,TextType:"ssml",SpeechMarkTypes:["ssml"]};yu().readAloudElement=a,ee.synthesizeSpeech(ce,(_e,je)=>{if(_e){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${_e}`);return}if(!(je!=null&&je.AudioStream)){console.log("polly.synthesizeSpeech():",je);return}const et=new TextDecoder("utf-8").decode(new Uint8Array(je.AudioStream));yu().readAloudMarks=et.split(`
|
|
|
`).map(ot=>ot?JSON.parse(ot):{}),yu().readAloudTokens=[];for(const ot of yu().readAloudMarks)ot.value&&yu().readAloudTokens.push(ot.value);yu().readAloudCurrentMark="",ce.OutputFormat="mp3",ce.SpeechMarkTypes=[],ee.synthesizeSpeech(ce,(ot,gt)=>{if(ot){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${ot}`);return}if(!(gt!=null&>.AudioStream))return;const wt=new Uint8Array(gt.AudioStream),jt=new Blob([wt.buffer],{type:"audio/mpeg"}),Vt=URL.createObjectURL(jt),ar=yu();ar.readAloudAudio?ar.readAloudAudio.pause():(ar.readAloudAudio=new Audio,ar.readAloudAudio.addEventListener("ended",()=>{const dr=ar.readAloudMathfield;ar.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),dr?(Nu(dr),ar.readAloudElement=null,ar.readAloudMathfield=null,ar.readAloudTokens=[],ar.readAloudMarks=[],ar.readAloudCurrentMark=""):vm(ar.readAloudElement)}),ar.readAloudAudio.addEventListener("timeupdate",()=>{let dr="";const Zr=ar.readAloudAudio.currentTime*1e3+100;for(const Kn of ar.readAloudMarks)Kn.time<Zr&&(dr=Kn.value);ar.readAloudCurrentMark!==dr&&(ar.readAloudCurrentToken=dr,dr&&dr===ar.readAloudFinalToken?ar.readAloudAudio.pause():(ar.readAloudCurrentMark=dr,ep(ar.readAloudElement,ar.readAloudCurrentMark)))})),ar.readAloudAudio.src=Vt,ar.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),ar.readAloudAudio.play()})})}ue()||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 za=new WeakMap,my=.5,vu={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 = ..."},Ls=class Vu extends HTMLElement{static get formAssociated(){return _d()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(y){y!==this._fontsDirectory&&(this._fontsDirectory=y,ng())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(y){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(y){this._soundsDirectory=y,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(y){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(y){var b,ee,ce;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:(ee=y.return)!=null?ee:y.default,delete:(ce=y.delete)!=null?ce: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 be.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),be.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 be.strings}static set strings(y){be.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 ee=(y=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;if(!ee)return null;this._computeEngine=new ee,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 bu(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 ee=this.soundsDirectory;if(!(ee==null||ee==="null"||b==="none"||b==="null"))try{const _e=yield(yield fetch(yield wp(`${ee}/${b}`))).arrayBuffer(),je=yield this.audioContext.decodeAudioData(_e);this.audioBuffers[y]=je}catch(ce){}})}static playSound(y){return bu(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 ee=this.audioContext.createGain();ee.gain.value=my,b.connect(ee).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const ee of Object.keys(y))if(vu[ee])if(vu[ee].startsWith("mf."))if(vu[ee].startsWith(`mf.${ee}`))b.push(`Option \`${ee}\` cannot be used as a constructor option. Use ${vu[ee]}`);else{const ce=vu[ee].match(/([a-zA-Z]+) =/);b.push(`Option \`${ee}\` has been renamed \`${ce[1]}\``)}else b.push(`Option \`${ee}\` cannot be used as a constructor option. Use ${vu[ee]}`);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 ee of b)console.warn(ee);console.groupEnd()}}if(_d()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[hu("core"),hu("mathfield"),hu("mathfield-element"),hu("ui"),hu("menu")],this.shadowRoot.appendChild(document.createElement("span"));const b=document.createElement("slot");b.style.display="none",this.shadowRoot.appendChild(b)}else this.shadowRoot.innerHTML="<style>"+Wc("core")+Wc("mathfield")+Wc("mathfield-element")+Wc("ui")+Wc("menu")+'</style><span></span><slot style="display:none"></slot>';y&&this._setOptions(y),this.shadowRoot.addEventListener("slotchange",()=>{var b;const ee=this.shadowRoot.querySelector("slot:not([name])");this.value=(b=ee==null?void 0:ee.assignedNodes().map(ce=>ce.nodeType===3?ce.textContent:"").join("").trim())!=null?b:""})}showMenu(y){var b,ee;return(ee=(b=this._mathfield)==null?void 0:b.showMenu(y))!=null?ee:!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 ee,ce;return(ce=(ee=this._mathfield)==null?void 0:ee.getPromptValue(y,b))!=null?ce:""}setPromptValue(y,b,ee){var ce;(ce=this._mathfield)==null||ce.setPromptValue(y,b,ee)}getPromptRange(y){var b,ee;return(ee=(b=this._mathfield)==null?void 0:b.getPromptRange(y))!=null?ee:null}getPrompts(y){var b,ee;return(ee=(b=this._mathfield)==null?void 0:b.getPrompts(y))!=null?ee:[]}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,ee;if(!this._mathfield)return;const ce=(ee=(b=Vu.computeEngine)==null?void 0:b.box(y).latex)!=null?ee:null;ce!==null&&this._mathfield.setValue(ce),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?Fu(this._mathfield.options,y):za.has(this)?ie({},Fu(ie(ie({},$f()),Ff(za.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?Fu(this._mathfield.options,y):za.has(this)?Fu(ie(ie({},$f()),Ff(za.get(this).options)),y):null}reflectAttributes(){const y=$f(),b=this._getOptions();Object.keys(Vu.optionsAttributes).forEach(ee=>{const ce=Gc(ee);Vu.optionsAttributes[ee]==="on/off"?y[ce]!==b[ce]?this.setAttribute(ee,b[ce]?"on":"off"):this.removeAttribute(ee):y[ce]!==b[ce]&&(Vu.optionsAttributes[ee]==="boolean"?b[ce]?this.setAttribute(ee,""):this.removeAttribute(ee):(typeof b[ce]=="string"||typeof b[ce]=="number")&&this.setAttribute(ee,b[ce].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(za.has(this)){const b=ie(ie({},za.get(this).options),y);za.set(this,oe(ie({},za.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else za.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))vu[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${vu[b]}`);console.groupEnd(),this._setOptions(y)}executeCommand(y){var b,ee;return(ee=(b=this._mathfield)==null?void 0:b.executeCommand(y))!=null?ee:!1}getValue(y,b,ee){var ce,_e;if(this._mathfield)return this._mathfield.model.getValue(y,b,ee);if(za.has(this)){let je,et,ot;if(ad(y)?([je,et]=y.ranges[0],ot=b):id(y)?([je,et]=y,ot=b):Cc(y)&&Cc(b)?(je=y,et=b,ot=ee):(je=0,et=-1,ot=y),(ot===void 0||ot==="latex")&&je===0&&et===-1)return(_e=(ce=za.get(this).value)!=null?ce:this.textContent)!=null?_e:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(za.has(this)){const ce=za.get(this).options;za.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ce,menuItems:void 0});return}const ee=ff(this);za.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,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 ee,ce;return(ce=(ee=this._mathfield)==null?void 0:ee.insert(y,b))!=null?ce:!1}applyStyle(y,b){var ee;return(ee=this._mathfield)==null?void 0:ee.applyStyle(y,b)}queryStyle(y){var b,ee;return(ee=(b=this._mathfield)==null?void 0:b.queryStyle(y))!=null?ee:"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 ee,ce;return(ce=(ee=this._mathfield)==null?void 0:ee.setCaretPoint(y,b))!=null?ce:!1}offsetFromPoint(y,b,ee){return this._mathfield?af(this._mathfield,y,b,ee):-1}hitboxFromOffset(y){if(!this._mathfield)return null;const b=this._mathfield.model.at(y);if(!b)return null;const ee=du(this._mathfield,b);return ee?new DOMRect(ee.left,ee.top,ee.right-ee.left,ee.bottom-ee.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,ee,ce,_e;Tc.state==="closed"&&((ee=(b=this._mathfield)==null?void 0:b.menu)==null?void 0:ee.state)==="closed"&&(y.type==="pointerdown"&&this.onPointerDown(),y.type==="focus"&&((ce=this._mathfield)==null||ce.focus()),y.type==="blur"&&((_e=this._mathfield)==null||_e.blur()))}connectedCallback(){var y,b,ee,ce;const _e=window.getComputedStyle(this),je=this.shadowRoot,et=_e.userSelect!=="none";if(et)je.host.addEventListener("pointerdown",this,!0);else{const wt=je.querySelector("span");wt.style.pointerEvents="none"}je.host.addEventListener("focus",this,!0),je.host.addEventListener("blur",this,!0),_d()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),et&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const ot=je.querySelector("slot:not([name])");if(ot)try{this._style=ot.assignedElements().filter(wt=>wt.tagName.toLowerCase()==="style").map(wt=>wt.textContent).join("")}catch(wt){console.error(wt)}if(this._style){const wt=document.createElement("style");wt.textContent=this._style,je.appendChild(wt)}let gt="";if(this.hasAttribute("value")?gt=this.getAttribute("value"):gt=(y=ot==null?void 0:ot.assignedNodes().map(wt=>wt.nodeType===3?wt.textContent:"").join("").trim())!=null?y:"",this._mathfield=new hy(je.querySelector(":host > span"),oe(ie({},(ee=(b=za.get(this))==null?void 0:b.options)!=null?ee:ff(this)),{eventSink:this,value:gt})),!za.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const wt of Object.keys(Vu.optionsAttributes))this.upgradeProperty(Gc(wt))}if(!((ce=this._mathfield)!=null&&ce.model)){this._mathfield=null;return}if(za.has(this)){const wt=this._mathfield,jt=za.get(this),Vt=jt.menuItems;wt.model.deferNotifications({content:!1,selection:!1},()=>{const ar=jt.value;ar!==void 0&&wt.setValue(ar),wt.model.selection=jt.selection,za.delete(this)}),Vt&&(this.menuItems=Vt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),Pf()}disconnectedCallback(){var y,b;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask(()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0})));const ee=Fu(this._mathfield.options,Object.keys(Vu.optionsAttributes).map(ce=>Gc(ce)));za.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:ee}),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,ee){if(b===ee)return;const ce=ee!==null;switch(y){case"contenteditable":Ko(this._mathfield);break;case"disabled":this.disabled=ce;break;case"read-only":case"readonly":this.readOnly=ce;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(y){const b=!!y;b?(this.setAttribute("readonly",""),_d()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(_d()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:b})}get disabled(){return this.hasAttribute("disabled")}set disabled(y){var b;const ee=!!y;ee?this.setAttribute("disabled",""):this.removeAttribute("disabled"),_d()?this._internals.ariaDisabled=ee?"true":"false":this.setAttribute("aria-disabled",ee?"true":"false"),ee&&((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,ee)=>{if(typeof ee=="string")return y._getOption("registers")[ee]},set(b,ee,ce){return typeof ee!="string"?!1:(y._setOptions({registers:oe(ie({},y._getOption("registers")),{[ee]:ce})}),!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,ee;return this._mathfield?(y=this._mathfield.menu._menuItems.map(ce=>ce.menuItem))!=null?y:[]:(ee=(b=za.get(this))==null?void 0:b.menuItems)!=null?ee:[]}set menuItems(y){var b;if(this._mathfield){const ee=(b=this._mathfield.element)==null?void 0:b.querySelector("[part=menu-toggle]");ee&&(ee.style.display=y.length===0?"none":""),this._mathfield.menu.menuItems=y}za.has(this)?za.set(this,oe(ie({},za.get(this)),{menuItems:y})):za.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:ff(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,ee){var ce;(ce=this._mathfield)==null||ce.setPromptState(y,b,ee)}getPromptState(y){var b,ee;return(ee=(b=this._mathfield)==null?void 0:b.getPromptState(y))!=null?ee:[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:za.has(this)?za.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,Ko(this._mathfield);return}if(za.has(this)){za.set(this,oe(ie({},za.get(this)),{selection:y}));return}za.set(this,{value:void 0,selection:y,options:ff(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:za.has(this)?za.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Ko(this._mathfield)),za.has(this)){za.set(this,oe(ie({},za.get(this)),{selection:{ranges:[[y,y]]}}));return}za.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:ff(this),menuItems:void 0})}getOffsetDepth(y){var b,ee;return this._mathfield?((ee=(b=this._mathfield.model.at(y))==null?void 0:b.treeDepth)!=null?ee:2)-2:0}get lastOffset(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.lastOffset)!=null?b:-1}};Ls.version="0.98.5",Ls._fontsDirectory="./fonts",Ls._soundsDirectory="./sounds",Ls.keypressVibration=!0,Ls._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},Ls._plonkSound="plonk.wav",Ls.audioBuffers={},Ls.createHTML=a=>a,Ls._speechEngineRate="100%",Ls._speechEngineVoice="Joanna",Ls._textToSpeechMarkup="",Ls._textToSpeechRules="mathlive",Ls._textToSpeechRulesOptions={},Ls.speakHook=iy,Ls.readAloudHook=py,Ls._decimalSeparator=".",Ls.fractionNavigationOrder="numerator-denominator",Ls._isFunction=a=>{var y,b;const ee=window.MathfieldElement.computeEngine;return(b=(y=ee==null?void 0:ee.parse(a).domain)==null?void 0:y.isFunction)!=null?b:!1};var df=Ls;function Gc(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function ff(a){const y={readOnly:!1},b=df.optionsAttributes;return Object.keys(b).forEach(ee=>{if(a.hasAttribute(ee)){const ce=a.getAttribute(ee);ee==="placeholder"?y.contentPlaceholder=ce!=null?ce:"":b[ee]==="boolean"?y[Gc(ee)]=!0:b[ee]==="on/off"?ce==="on"?y[Gc(ee)]=!0:ce==="off"?y[Gc(ee)]=!1:y[Gc(ee)]=void 0:b[ee]==="number"?y[Gc(ee)]=Number.parseFloat(ce!=null?ce:"0"):y[Gc(ee)]=ce}}),y}function _d(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var ym=df,bm,xm,wm,Sm;if(ue()&&!((bm=window.customElements)!=null&&bm.get("math-field"))){(wm=window[xm=Symbol.for("io.cortexjs.mathlive")])!=null||(window[xm]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=df,(Sm=window.customElements)==null||Sm.define("math-field",df)}function gy(a,y,b){let ee=b,ce=0;const _e=a.length;for(;ee<y.length;){const je=y[ee];if(ce<=0&&y.slice(ee,ee+_e)===a)return ee;je==="\\"?ee++:je==="{"?ce++:je==="}"&&ce--,ee++}return-1}function nh(a,y,b,ee,ce="latex"){const _e=[];for(const je of a)if(je.type==="text"){const et=je.data;let ot=!0,gt=0,wt;wt=et.indexOf(y),wt!==-1&&(gt=wt,gt>0&&_e.push({type:"text",data:et.slice(0,gt)}),ot=!1);let jt=!1;for(;!jt;){if(ot){if(wt=et.indexOf(y,gt),wt===-1){jt=!0;break}gt!==wt&&_e.push({type:"text",data:et.slice(gt,wt)}),gt=wt}else{if(wt=gy(b,et,gt+y.length),wt===-1){jt=!0;break}let Vt=et.slice(gt+y.length,wt);ce==="ascii-math"&&([,Vt]=Pu(Vt,{format:"ascii-math"})),_e.push({type:"math",data:Vt,rawData:et.slice(gt,wt+b.length),mathstyle:ee}),gt=wt+b.length}ot=!ot}gt<et.length&&_e.push({type:"text",data:et.slice(gt)})}else _e.push(je);return _e}function Cm(a,y,b){let ee=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ce,_e])=>{ee=nh(ee,ce,_e,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ce,_e])=>{ee=nh(ee,ce,_e,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ce,_e])=>{ee=nh(ee,ce,_e,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ce,_e])=>{ee=nh(ee,ce,_e,"displaystyle","ascii-math")}),ee}function vy(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const ee="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+y.renderToMathML(a)+"</math>";b.innerHTML=window.MathfieldElement.createHTML(ee)}catch(ee){console.error(`MathLive 0.98.5: Could not convert "${a}"' to MathML with ${ee}`),b.textContent=a}return b.className="ML__sr-only",b}function yy(a,y,b,ee){try{const ce=y.renderToMarkup(a,{mathstyle:b,format:"html"}),_e=document.createElement("span");return _e.dataset.latex=a,_e.style.display=b==="displaystyle"?"flex":"inline-flex",_e.setAttribute("aria-hidden","true"),_e.setAttribute("translate","no"),_e.innerHTML=window.MathfieldElement.createHTML(ce),_e}catch(ce){if(console.error("Could not parse'"+a+"' with ",ce),ee)return document.createTextNode(a)}return null}function kd(a,y,b,ee){var ce;const _e=yy(a,b,y||"textstyle",ee),je=(ce=b.renderAccessibleContent)!=null?ce:"";if(_e&&/\b(mathml|speakable-text)\b/i.test(je)){const et=document.createElement("span");if(/\bmathml\b/i.test(je)&&b.renderToMathML&&et.append(vy(a,b)),/\bspeakable-text\b/i.test(je)&&b.renderToSpeakableText){const ot=document.createElement("span");ot.setAttribute("translate","no");const gt=b.renderToSpeakableText(a);ot.innerHTML=window.MathfieldElement.createHTML(gt),ot.className="ML__sr-only",et.append(ot)}return et.append(_e),et}return _e}function by(a,y){var b,ee,ce;let _e=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){_e=document.createDocumentFragment();const je=kd(a,"",y,!0);je&&_e.appendChild(je)}else{if(!a.trim())return null;const je=Cm(a,(ee=y.TeX)==null?void 0:ee.delimiters,(ce=y.asciiMath)==null?void 0:ce.delimiters);if(je.length===1&&je[0].type==="text")return null;_e=document.createDocumentFragment();for(const et of je)if(et.type==="text")_e.appendChild(document.createTextNode(et.data));else{const ot=kd(et.data,et.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);ot&&_e.appendChild(ot)}}return _e}function Em(a,y){var b,ee,ce,_e,je,et,ot,gt,wt,jt,Vt,ar,dr,Zr,Kn,Hr;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const fn=(b=a.childNodes[0].textContent)!=null?b:"";if((ee=y.TeX)!=null&&ee.processEnvironments&&/^\s*\\begin/.test(fn)){a.textContent="";const xn=kd(fn,"",y,!0);xn&&a.append(xn);return}const Yn=Cm(fn,(ce=y.TeX)==null?void 0:ce.delimiters,(_e=y.asciiMath)==null?void 0:_e.delimiters);if(Yn.length===1&&Yn[0].type==="math"){a.textContent="";const xn=kd(Yn[0].data,Yn[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);xn&&a.append(xn);return}if(Yn.length===1&&Yn[0].type==="text")return}for(let fn=a.childNodes.length-1;fn>=0;fn--){const Yn=a.childNodes[fn];if(Yn.nodeType===3){const xn=by((je=Yn.textContent)!=null?je:"",y);xn&&(fn+=xn.childNodes.length-1,Yn.replaceWith(xn))}else if(Yn.nodeType===1){const xn=Yn,wi=Yn.nodeName.toLowerCase();if(wi==="script"){const Ri=Yn;let Ai;if((et=y.processScriptTypePattern)!=null&&et.test(Ri.type))Ai=(ot=Ri.textContent)!=null?ot:"";else if((gt=y.processMathJSONScriptTypePattern)!=null&>.test(Ri.type))try{Ai=(jt=y.serializeToLatex)==null?void 0:jt.call(y,JSON.parse((wt=Ri.textContent)!=null?wt:""))}catch(La){console.error(La)}if(Ai){let La="textstyle";for(const ti of Ri.type.split(";")){const[Wl,Lc]=ti.toLowerCase().split("=");Wl.trim()==="mode"&&(La=Lc.trim()==="display"?"displaystyle":"textstyle")}const co=kd(Ai,La,y,!0);co&&Ri.parentNode.replaceChild(co,Ri)}}else if(((ar=(Vt=y.processClassPattern)==null?void 0:Vt.test(xn.className))!=null?ar:!1)||!((Zr=(dr=y.skipTags)==null?void 0:dr.includes(wi))!=null&&Zr||(Hr=(Kn=y.ignoreClassPattern)==null?void 0:Kn.test(xn.className))!=null&&Hr))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Ai=a.textContent;a.textContent="";const La=kd(Ai!=null?Ai:"","displaystyle",y,!0);La&&a.append(La)}else Em(xn,y)}}}var xy={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 wy(a,y){var b,ee,ce,_e;try{const je=ie(ie({},xy),y);je.ignoreClassPattern=new RegExp((b=je.ignoreClass)!=null?b:""),je.processClassPattern=new RegExp((ee=je.processClass)!=null?ee:""),je.processScriptTypePattern=new RegExp((ce=je.processScriptType)!=null?ce:""),je.processMathJSONScriptTypePattern=new RegExp((_e=je.processMathJSONScriptType)!=null?_e:""),Pf(),_l("core"),Em(a,je)}catch(je){je instanceof Error?console.error("renderMathInElement(): "+je.message):console.error("renderMathInElement(): Could not render math for element",a)}}function Sy(a,y){const b=mu.singleton;return b?(b.show(),qd(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function Cy(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}kl({switchKeyboardLayer:Sy,toggleVirtualKeyboard:Cy,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function yu(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function Dy(){return console.warn("%cMathLive 0.98.5: %cmakeSharedVirtualKeyboard() is deprecated. \n Use `window.mathVirtualKeyboard` to access the virtual keyboard instance.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),window.mathVirtualKeyboard}function Iy(a){My(document.body,a)}function Ey(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 My(a,y){var b,ee,ce,_e;const je=Ey(a);if(!je)return;const et=y!=null?y:{};(b=et.renderToMarkup)!=null||(et.renderToMarkup=Es),(ee=et.renderToMathML)!=null||(et.renderToMathML=Nv),(ce=et.renderToSpeakableText)!=null||(et.renderToSpeakableText=jv),(_e=et.serializeToLatex)!=null||(et.serializeToLatex=Fv),wy(je,et)}var Py={mathlive:"0.98.5"}},16722:function(gr,Wt,ke){"use strict";ke.d(Wt,{Z:function(){return ie}});const Ye=oe=>typeof oe=="object"&&oe!=null&&oe.nodeType===1,vt=(oe,se)=>(!se||oe!=="hidden")&&oe!=="visible"&&oe!=="clip",x=(oe,se)=>{if(oe.clientHeight<oe.scrollHeight||oe.clientWidth<oe.scrollWidth){const pe=getComputedStyle(oe,null);return vt(pe.overflowY,se)||vt(pe.overflowX,se)||(ne=>{const ae=(ue=>{if(!ue.ownerDocument||!ue.ownerDocument.defaultView)return null;try{return ue.ownerDocument.defaultView.frameElement}catch(de){return null}})(ne);return!!ae&&(ae.clientHeight<ne.scrollHeight||ae.clientWidth<ne.scrollWidth)})(oe)}return!1},Ae=(oe,se,pe,ne,ae,ue,de,he)=>ue<oe&&de>se||ue>oe&&de<se?0:ue<=oe&&he<=pe||de>=se&&he>=pe?ue-oe-ne:de>se&&he<pe||ue<oe&&he>pe?de-se+ae:0,me=oe=>{const se=oe.parentElement;return se==null?oe.getRootNode().host||null:se},re=(oe,se)=>{var pe,ne,ae,ue;if(typeof document=="undefined")return[];const{scrollMode:de,block:he,inline:xe,boundary:Se,skipOverflowHiddenElements:we}=se,be=typeof Se=="function"?Se:ut=>ut!==Se;if(!Ye(oe))throw new TypeError("Invalid target");const Me=document.scrollingElement||document.documentElement,Le=[];let Ce=oe;for(;Ye(Ce)&&be(Ce);){if(Ce=me(Ce),Ce===Me){Le.push(Ce);break}Ce!=null&&Ce===document.body&&x(Ce)&&!x(document.documentElement)||Ce!=null&&x(Ce,we)&&Le.push(Ce)}const Ne=(ne=(pe=window.visualViewport)==null?void 0:pe.width)!=null?ne:innerWidth,Te=(ue=(ae=window.visualViewport)==null?void 0:ae.height)!=null?ue:innerHeight,{scrollX:De,scrollY:Ee}=window,{height:Pe,width:Be,top:Ve,right:Ie,bottom:Ze,left:Qe}=oe.getBoundingClientRect(),{top:tt,right:it,bottom:ht,left:Ge}=(ut=>{const rt=window.getComputedStyle(ut);return{top:parseFloat(rt.scrollMarginTop)||0,right:parseFloat(rt.scrollMarginRight)||0,bottom:parseFloat(rt.scrollMarginBottom)||0,left:parseFloat(rt.scrollMarginLeft)||0}})(oe);let Xe=he==="start"||he==="nearest"?Ve-tt:he==="end"?Ze+ht:Ve+Pe/2-tt+ht,ct=xe==="center"?Qe+Be/2-Ge+it:xe==="end"?Ie+it:Qe-Ge;const pt=[];for(let ut=0;ut<Le.length;ut++){const rt=Le[ut],{height:qe,width:nt,top:xt,right:yt,bottom:Rt,left:Ot}=rt.getBoundingClientRect();if(de==="if-needed"&&Ve>=0&&Qe>=0&&Ze<=Te&&Ie<=Ne&&(rt===Me&&!x(rt)||Ve>=xt&&Ze<=Rt&&Qe>=Ot&&Ie<=yt))return pt;const lt=getComputedStyle(rt),Ue=parseInt(lt.borderLeftWidth,10),$e=parseInt(lt.borderTopWidth,10),le=parseInt(lt.borderRightWidth,10),fe=parseInt(lt.borderBottomWidth,10);let Fe=0,He=0;const ye="offsetWidth"in rt?rt.offsetWidth-rt.clientWidth-Ue-le:0,Re="offsetHeight"in rt?rt.offsetHeight-rt.clientHeight-$e-fe:0,ze="offsetWidth"in rt?rt.offsetWidth===0?0:nt/rt.offsetWidth:0,Ke="offsetHeight"in rt?rt.offsetHeight===0?0:qe/rt.offsetHeight:0;if(Me===rt)Fe=he==="start"?Xe:he==="end"?Xe-Te:he==="nearest"?Ae(Ee,Ee+Te,Te,$e,fe,Ee+Xe,Ee+Xe+Pe,Pe):Xe-Te/2,He=xe==="start"?ct:xe==="center"?ct-Ne/2:xe==="end"?ct-Ne:Ae(De,De+Ne,Ne,Ue,le,De+ct,De+ct+Be,Be),Fe=Math.max(0,Fe+Ee),He=Math.max(0,He+De);else{Fe=he==="start"?Xe-xt-$e:he==="end"?Xe-Rt+fe+Re:he==="nearest"?Ae(xt,Rt,qe,$e,fe+Re,Xe,Xe+Pe,Pe):Xe-(xt+qe/2)+Re/2,He=xe==="start"?ct-Ot-Ue:xe==="center"?ct-(Ot+nt/2)+ye/2:xe==="end"?ct-yt+le+ye:Ae(Ot,yt,nt,Ue,le+ye,ct,ct+Be,Be);const{scrollLeft:We,scrollTop:st}=rt;Fe=Ke===0?0:Math.max(0,Math.min(st+Fe/Ke,rt.scrollHeight-qe/Ke+Re)),He=ze===0?0:Math.max(0,Math.min(We+He/ze,rt.scrollWidth-nt/ze+ye)),Xe+=st-Fe,ct+=We-He}pt.push({el:rt,top:Fe,left:He})}return pt},z=oe=>oe===!1?{block:"end",inline:"nearest"}:(se=>se===Object(se)&&Object.keys(se).length!==0)(oe)?oe:{block:"start",inline:"nearest"};function ie(oe,se){if(!oe.isConnected||!(ae=>{let ue=ae;for(;ue&&ue.parentNode;){if(ue.parentNode===document)return!0;ue=ue.parentNode instanceof ShadowRoot?ue.parentNode.host:ue.parentNode}return!1})(oe))return;const pe=(ae=>{const ue=window.getComputedStyle(ae);return{top:parseFloat(ue.scrollMarginTop)||0,right:parseFloat(ue.scrollMarginRight)||0,bottom:parseFloat(ue.scrollMarginBottom)||0,left:parseFloat(ue.scrollMarginLeft)||0}})(oe);if((ae=>typeof ae=="object"&&typeof ae.behavior=="function")(se))return se.behavior(re(oe,se));const ne=typeof se=="boolean"||se==null?void 0:se.behavior;for(const{el:ae,top:ue,left:de}of re(oe,z(se))){const he=ue-pe.top+pe.bottom,xe=de-pe.left+pe.right;ae.scroll({top:he,left:xe,behavior:ne})}}}}]);
|
|
|
}()); |